/* Visual depth and motion: readable by default, even without JavaScript. */
:root { --ease-out: cubic-bezier(.22, 1, .36, 1); }
header { position: sticky; top: 0; z-index: 20; background: #faf8f3e8; backdrop-filter: blur(18px); transition: box-shadow .4s, border-color .4s; }
header.is-scrolled { box-shadow: 0 8px 32px #29251f0a; border-color: #ff650025; }
nav a { position: relative; transition: color .25s; }
nav a::after { content: ''; position: absolute; bottom: -6px; left: 0; height: 2px; width: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
nav a:hover::after, nav a:focus-visible::after { transform: scaleX(1); }
.hero { position: relative; }
.hero-copy { position: relative; z-index: 1; }
h1 { font-weight: 700; }
h1 em { background: linear-gradient(110deg, #e65a00, #ff8d27, #ed5900); background-clip: text; -webkit-background-clip: text; color: transparent; }
.hero-art { border-radius: 24px; background: radial-gradient(ellipse at 80% 15%, #ffe0ba, transparent 60%), linear-gradient(135deg, #f2ebdd, #ecdfca); border: 1px solid #fff8; box-shadow: 0 24px 65px #78502514; }
.hero-art::before { content: ''; position: absolute; inset: 12%; border-radius: 50%; background: #ff8c2833; filter: blur(40px); pointer-events: none; }
.art-center { background: linear-gradient(145deg, #fffdf5ee, #e8d5b4); border: 1px solid #fff9; }
.floating { backdrop-filter: blur(12px); background: #fffdf8dd; border-radius: 10px; }
.orbit { z-index: 0; pointer-events: none; }
.art-center { z-index: 1; }
.floating, .spark, .art-label, .coordinate { z-index: 2; }
.button, .contact-link { position: relative; overflow: hidden; transition: transform .35s var(--ease-out), box-shadow .35s, background .3s, color .3s; }
.primary { box-shadow: 0 8px 22px #ff650025; border-radius: 8px; }
.primary::before { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 20%, #fff3 50%, transparent 80%); transform: translateX(-120%); transition: transform .65s var(--ease-out); pointer-events: none; }
.button span, .text-link span { display: inline-block; transition: transform .35s var(--ease-out); }
.contact-link:hover { background: var(--ink); color: white; transform: translateY(-2px); }
.service-grid article { position: relative; overflow: hidden; border-radius: 14px; box-shadow: 0 4px 16px #29251f03; transition: transform .55s var(--ease-out), border-color .4s, box-shadow .4s, background .4s; }
.service-grid article::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--orange), #ffbe75); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
.icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 13px; background: #ff65000c; transition: transform .5s var(--ease-out), background .4s; }
.project-art { border-radius: 16px; border: 1px solid #29251f08; transition: box-shadow .5s, transform .6s var(--ease-out); }
.project-art strong, .project-art img { transition: transform .7s var(--ease-out); }
.project-art::before, .project-art::after { transition: transform .9s var(--ease-out); }
.project-esboxs { background: #000; color: #fff; }
.project-tbc { background: radial-gradient(ellipse at 100% 0, #65543b, transparent 70%), #302f2b; }
.project-airlines { background: radial-gradient(ellipse at 10% 100%, #c8d5c4, transparent 70%), #e9ebe7; }
.project-emart { background: #ffd633; color: #37352c; }
.project-caption > span { display: none; }
.partner-placeholder { border-radius: 12px; background: linear-gradient(130deg, #fffdf8, #f6eee2); }
.contact-section { border-radius: 20px; background: radial-gradient(ellipse at 100% 100%, #ffb24c55, transparent 65%), linear-gradient(115deg, #f35b00, #ff7c16); box-shadow: 0 20px 60px #ff650018; }
.contact-section::before { content: ''; position: absolute; width: 470px; height: 470px; border: 1px solid #ffffff25; border-radius: 50%; right: -90px; top: -130px; pointer-events: none; }
.contact-section::after { content: ''; position: absolute; width: 570px; height: 570px; border: 1px solid #ffffff18; border-radius: 50%; right: -140px; top: -180px; pointer-events: none; }
.contact-art { transform: rotate(-8deg); }
@media (hover: hover) and (pointer: fine) {
  .button:hover { transform: translateY(-3px); box-shadow: 0 12px 28px #ff650038; }
  .primary:hover::before { transform: translateX(120%); }
  .button:hover span { transform: translate(2px, -2px); }
  .text-link:hover span { transform: translateX(5px); }
  .service-grid article:hover { transform: translateY(-9px); background: #fffefa; box-shadow: 0 20px 40px #7a4a1010; border-color: #ff650060; }
  .service-grid article:hover::before { transform: scaleX(1); }
  .service-grid article:hover .icon { transform: rotate(-7deg) scale(1.07); background: #ff650018; }
  .project-grid article:hover .project-art { transform: translateY(-5px); box-shadow: 0 18px 35px #29251f14; }
  .project-grid article:hover .project-art strong, .project-grid article:hover .project-art img { transform: scale(1.06); }
  .project-grid article:hover .project-art::before { transform: translate(-16px, 16px); }
  .project-grid article:hover .project-art::after { transform: translate(-25px, 25px); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: entrance .95s var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation-delay: .1s; }
  .hero-copy > :nth-child(3) { animation-delay: .2s; }
  .hero-copy > :nth-child(4) { animation-delay: .3s; }
  .hero-copy > :nth-child(5) { animation-delay: .4s; }
  .hero-art { animation: entrance 1.2s .15s var(--ease-out) both; }
  .art-center { animation: logo-float 7s ease-in-out infinite; }
  .floating.top { animation: float 6s ease-in-out infinite; }
  .floating.code { animation: float 7s -3s ease-in-out infinite; }
  .spark { animation: spin 32s linear infinite; }
  .orbit-one { animation: orbit-one 22s ease-in-out infinite; }
  .orbit-two { animation: orbit-two 26s ease-in-out infinite; }
  .capability-strip b { animation: spin 24s linear infinite; }
  .reveal { transition: opacity .8s var(--ease-out), translate .9s var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
  .reveal:not(.is-visible) { opacity: 0; translate: 0 28px; }
  .reveal.is-visible { opacity: 1; translate: 0 0; }
  .service-grid article.reveal { transition: opacity .8s var(--ease-out), translate .9s var(--ease-out), transform .55s var(--ease-out), border-color .4s, box-shadow .4s, background .4s; transition-delay: var(--reveal-delay, 0ms), var(--reveal-delay, 0ms), 0s, 0s, 0s, 0s; }
  .hero-art.is-paused, .hero-art.is-paused * { animation-play-state: paused !important; }
  body.motion-paused *, body.motion-paused *::before, body.motion-paused *::after { animation-play-state: paused !important; }
}
@keyframes entrance { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes logo-float { 0%, 100% { transform: translateY(0) rotate(-15deg); } 50% { transform: translateY(-12px) rotate(-11deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes orbit-one { 0%, 100% { transform: rotate(-35deg); } 50% { transform: rotate(-18deg); } }
@keyframes orbit-two { 0%, 100% { transform: rotate(45deg); } 50% { transform: rotate(62deg); } }
@media (max-width: 700px) { header { position: sticky; } .hero-art { border-radius: 18px; } .contact-section { border-radius: 16px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal:not(.is-visible) { opacity: 1; translate: none; }
  html { scroll-behavior: auto; }
}

/* Project logos keep their original aspect ratio and brand backgrounds. */
.project-logo { max-width: 72%; max-height: 170px; object-fit: contain; position: relative; z-index: 1; }
.project-logo[hidden], .project-logo-fallback[hidden] { display: none; }
.project-tbc { background: #2475ee; color: white; }
.project-airlines { background: #fff; color: #0864a8; }
@media (max-width: 700px) { .project-logo { max-width: 82%; max-height: 120px; } }

.project-esboxs::before, .project-esboxs::after { display: none; }

.project-esboxs .project-logo { width: 190px; max-height: 215px; }
.project-tbc .project-logo { width: 230px; }
.project-airlines .project-logo, .project-emart .project-logo { width: 310px; }
@media (max-width: 700px) { .project-esboxs .project-logo { width: 125px; max-height: 140px; } }
