/* Hero: one-time cinematic intro (Veo video) → real 3D logo → logo flies into the header → copy reveals.
   Without JS, or with reduced motion / repeat visit in the session, the final state is shown directly. */
:root{--header-h:100px;--ease-out:cubic-bezier(.22,1,.36,1)}
@media(max-width:900px){:root{--header-h:84px}}
@media(max-width:680px){:root{--header-h:76px}}

.site-header{position:fixed;top:0;left:0;right:0;transition:transform .9s var(--ease-out),opacity .6s ease}
body{padding-top:var(--header-h)}

/* Cinematic band (~2.2:1) instead of a full screen: trims studio ceiling and floor, the end logo (15–85% of frame height) stays whole */
.hero{margin-top:calc(-1*var(--header-h));height:clamp(560px,calc(100vw/2.2),100svh);background:#0d0f11;isolation:isolate}
.hero-stage{position:absolute;inset:0;overflow:hidden;container-type:size;z-index:0}
/* 16:9 box that always covers the hero, so the overlay logo sits exactly on the video's logo */
.hero-frame{position:absolute;left:50%;top:50%;width:max(100cqw,calc(100cqh*16/9));aspect-ratio:16/9;transform:translate(-50%,-50%)}
.hero-frame>*{position:absolute}
.hero-backdrop,.hero-video{inset:0;width:100%;height:100%;object-fit:cover}
.hero-backdrop{transform:translateX(8%) scale(.86);transform-origin:50% 60%;transition:opacity 1.4s ease,transform 2.2s var(--ease-out)}
.hero-video{opacity:0;transition:opacity 1s ease;background:#0d0f11}
/* Logo position in the 3840×2160 last frame: 1500px square, centred */
.hero-logo{left:30.4688%;top:15.2778%;width:39.0625%;height:auto;opacity:0;transform-origin:0 0;transition:opacity .45s ease;pointer-events:none}
.hero-shade{position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,var(--background) 0%,color-mix(in srgb,var(--background) 82%,transparent) 26%,color-mix(in srgb,var(--background) 25%,transparent) 52%,transparent 70%),linear-gradient(0deg,var(--background) 0%,transparent 22%);transition:opacity 1.2s ease}
.hero-inner{z-index:2;height:100%;min-height:0;padding-top:var(--header-h)}
.hero-copy{width:44%}
.hero-copy .hero-title .line{display:block;overflow:hidden;padding-bottom:.06em;margin-bottom:-.06em}
.hero-copy .hero-title .line>span{display:block}
.hero-feature{right:0;bottom:64px;width:auto;max-width:300px;padding:16px 18px;border:1px solid var(--border);border-radius:var(--radius);background:color-mix(in srgb,var(--card) 62%,transparent);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);gap:18px}
.hero-feature strong{font-size:18px;line-height:1.25}
.hero-feature .hero-feature-facts{white-space:nowrap}
.ai-note{position:absolute;z-index:3;right:20px;top:calc(var(--header-h) + 14px);margin:0;font-size:10px;letter-spacing:.04em;color:color-mix(in srgb,var(--foreground) 42%,transparent)}
.hero-skip{position:absolute;z-index:4;right:28px;bottom:44px;display:inline-flex;align-items:center;gap:10px;padding:10px 16px;border:1px solid var(--input);border-radius:999px;background:color-mix(in srgb,var(--background) 55%,transparent);backdrop-filter:blur(10px);color:var(--foreground);font-size:12px;opacity:0;visibility:hidden;transition:opacity .4s ease,visibility .4s,border-color .2s,color .2s}
.hero-skip svg{width:16px;height:16px}
.hero-skip:hover{border-color:var(--primary);color:var(--primary)}

/* ---------- Intro state (set before first paint by the inline script in <head>) ---------- */
.intro .site-header{transform:translateY(-100%);opacity:0}
.intro .hero-video{opacity:1;transition:none}
.intro .hero-backdrop{opacity:0;transform:none}
.intro .hero-shade{opacity:0}
.intro .hero-skip{opacity:1;visibility:visible;transition-delay:1.2s}
.intro .ai-note{opacity:1}
.intro .hero-copy>*,.intro .hero-feature{opacity:0;transform:translateY(26px)}
.intro .hero-copy .hero-title{opacity:1;transform:none}
.intro .hero-copy .hero-title .line>span{transform:translateY(108%)}
.hero[data-phase="logo"] .hero-logo{opacity:1}

/* ---------- Reveal (intro → final) ---------- */
.revealing .hero-video{opacity:0}
.revealing .hero-copy>*,.revealing .hero-feature{transition:opacity .9s ease,transform 1.1s var(--ease-out)}
.revealing .hero-copy .hero-title .line>span{transition:transform 1.1s var(--ease-out)}
.revealing .hero-copy>.location{transition-delay:.15s}
.revealing .hero-copy .hero-title .line:nth-child(1)>span{transition-delay:.25s}
.revealing .hero-copy .hero-title .line:nth-child(2)>span{transition-delay:.36s}
.revealing .hero-copy .hero-title .line:nth-child(3)>span{transition-delay:.47s}
.revealing .hero-copy>.hero-description{transition-delay:.55s}
.revealing .hero-copy>.hero-button{transition-delay:.68s}
.revealing .hero-copy>.hero-services{transition-delay:.78s}
.revealing .hero-feature{transition-delay:.95s}

@media(max-width:1000px){.hero-copy{width:58%}.hero-backdrop{transform:translateX(14%) scale(.8)}}
@media(max-width:680px),(orientation:portrait) and (max-width:1100px){
  .hero{height:auto;min-height:100svh;max-height:none;display:flex;flex-direction:column;padding-bottom:28px}
  .hero-stage{position:relative;inset:auto;margin-top:var(--header-h);width:100%;aspect-ratio:16/9;flex:none;container-type:normal}
  .hero-frame{position:absolute;inset:0;width:100%;transform:none;left:0;top:0}
  .hero-backdrop{transform:none}
  .hero-shade{background:linear-gradient(0deg,var(--background) 0%,transparent 40%);inset:0 0 auto;height:calc(var(--header-h) + 56.25vw)}
  .hero-inner{padding-top:0;height:auto;display:flex;flex-direction:column;align-items:stretch;gap:0}
  .hero-copy{width:100%;padding:26px 0 18px}
  .hero-feature{position:relative;inset:auto;max-width:none;width:100%;margin:6px 0 0}
  .hero-skip{right:10px;bottom:auto;top:calc(var(--header-h) + 56.25vw - 46px);padding:7px 12px;font-size:11px;gap:7px}
  .hero-skip svg{width:13px;height:13px}
  /* Phone/portrait: no empty screen — header and copy are visible while the (faster) clip plays above */
  .intro .site-header{transform:none;opacity:1}
  .intro .hero-copy>*,.intro .hero-feature{opacity:1;transform:none}
  .intro .hero-copy .hero-title .line>span{transform:none}
  .intro .hero-shade{opacity:1}
  .ai-note{right:auto;left:12px;top:calc(var(--header-h) + 56.25vw - 26px);text-shadow:0 1px 6px #000}
}
@media(prefers-reduced-motion:reduce){.hero-backdrop,.hero-copy>*,.hero-feature,.site-header{transition:none!important}}

/* Original 3D logo everywhere (transparent cut-outs in assets/logo, one per language) */
.brand{gap:0}
.site-header .brand-logo{width:auto;height:78px;object-fit:contain;mix-blend-mode:normal;filter:drop-shadow(0 4px 14px rgb(0 0 0/.5))}
.footer-brand{display:inline-block}
.footer-logo{display:block;width:auto;height:116px}
.about-signature img.symbol-logo{width:auto;height:96px;mix-blend-mode:normal}
@media(max-width:900px){.site-header .brand-logo{height:66px}}
@media(max-width:680px){.site-header .brand-logo{height:60px}.footer-logo{height:96px}.about-signature img.symbol-logo{height:80px}}
