/* ===================== CINEMATIC MOTION LAYER ============================
   Entrance choreography is pure CSS (runs offline, LCP-friendly, fully
   disabled by prefers-reduced-motion above). Scroll-driven choreography is
   GSAP/ScrollTrigger and activates only when html.motion-gsap is present;
   otherwise the original .reveal IntersectionObserver system is used.
   ======================================================================== */

/* ---------- header entrance (once per load) ---------- */
@keyframes hdrIn{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:none}}
.site-header{animation:hdrIn .7s .25s cubic-bezier(.22,.61,.36,1) both}

/* ---------- hero entrance — "museum lights on a sculpture" ---------- */
@keyframes hkIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes hkDraw{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes hMaskIn{from{transform:translateY(115%)}to{transform:none}}
@keyframes hFrameIn{from{opacity:0;transform:scale(1.045)}to{opacity:1;transform:scale(1)}}
@keyframes hVeil{from{opacity:1}to{opacity:0}}
@keyframes hSpot{from{opacity:0}to{opacity:1}}
@keyframes hHintIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes hDot{0%{top:-12px;opacity:0}25%{opacity:1}75%{opacity:1}100%{top:42px;opacity:0}}

.hero-kicker{animation:hkIn .8s .45s cubic-bezier(.22,.61,.36,1) both}
.hero-kicker::after{animation:hkDraw .8s .58s cubic-bezier(.22,.61,.36,1) both;transform-origin:100% 50%}
html[dir="ltr"] .hero-kicker::after{transform-origin:0 50%}
.hero-title{line-height:1.25}
.title-mask{display:block;overflow:hidden;padding-block:.04em}
.title-mask .mask-in{display:block;animation:hMaskIn 1.05s .55s cubic-bezier(.19,1,.22,1) both}
.hero-sub{animation:hkIn .8s .95s cubic-bezier(.22,.61,.36,1) both}
.hero-ctas{animation:hkIn .8s 1.12s cubic-bezier(.22,.61,.36,1) both}
.hero-frame{animation:hFrameIn 1.35s .18s cubic-bezier(.26,.53,.24,1) both}
.hero-media .veil{position:absolute;inset:0;z-index:3;background:#0b0908;opacity:0;pointer-events:none;animation:hVeil 1.25s .12s cubic-bezier(.33,0,.2,1) both}
.hero-media .spotlight{position:absolute;inset:0;z-index:2;pointer-events:none;background:
  radial-gradient(58% 52% at 66% 36%, rgba(240,228,200,.16), rgba(240,228,200,.045) 46%, transparent 72%);
  animation:hSpot 1.1s .5s ease both}
.hero-caption{z-index:4}

/* minimal scroll indicator */
.scroll-hint{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:7px;color:var(--muted);font-size:.68rem;z-index:3;animation:hHintIn .9s 1.7s both;transition:opacity .5s ease;pointer-events:none}
body.scrolled .scroll-hint{opacity:0!important}
.scroll-hint .track{width:1px;height:42px;background:var(--line);position:relative;overflow:hidden}
.scroll-hint .dot{position:absolute;top:-12px;left:0;width:1px;height:12px;background:var(--gold-bright);animation:hDot 2.2s ease-in-out infinite}

/* ---------- bronze ambience (scroll-driven via --warm, GSAP only) ---------- */
.ambient{position:fixed;inset:0;z-index:0;pointer-events:none;opacity:var(--warm,0);background:
  radial-gradient(120% 85% at 50% 118%, rgba(181,150,88,.14), transparent 55%),
  radial-gradient(85% 65% at 88% -8%, rgba(105,84,58,.22), transparent 60%)}
#app{position:relative;z-index:1}

/* ---------- GSAP mode: neutralize the CSS reveal system ----------
   The .reveal IO observer keeps running (harmless) but visual control
   is handed to ScrollTrigger.batch for richer, staggered choreography. */
html.motion-gsap .reveal{opacity:1;transform:none;transition:none}

/* ---------- Lenis smooth-scroll base (recommended) ---------- */
html.lenis, html.lenis body{height:auto}
.lenis.lenis-smooth{scroll-behavior:auto!important}
.lenis.lenis-stopped{overflow:hidden}

/* ---------- artwork card — museum hover ---------- */
.art-card{transition:transform .45s ease,border-color .45s ease,box-shadow .45s ease}
.art-card .thumb img{transition:transform .9s cubic-bezier(.22,.61,.36,1) ease}
.art-card .thumb::before{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(11,9,8,.5),transparent 45%);opacity:0;transition:opacity .45s ease;z-index:1;pointer-events:none}
.art-card:hover .thumb::before{opacity:1}
.art-card::after{content:"";position:absolute;inset-inline:16px;bottom:0;height:1px;background:linear-gradient(90deg,transparent,var(--gold),transparent);transform:scaleX(0);transition:transform .55s cubic-bezier(.22,.61,.36,1);pointer-events:none}
.art-card:hover::after{transform:scaleX(1)}

/* ---------- mobile: calmer, shorter entrances ---------- */
@media (max-width:900px){
  .scroll-hint{display:none}
  .hero-kicker{animation-delay:.3s}
  .hero-kicker::after{animation-delay:.4s}
  .title-mask .mask-in{animation-duration:.85s;animation-delay:.38s}
  .hero-sub{animation-delay:.68s}
  .hero-ctas{animation-delay:.82s}
  .hero-frame{animation-duration:1s;animation-delay:.1s}
  .hero-media .veil{animation-duration:.9s;animation-delay:.08s}
  .hero-media .spotlight{animation-delay:.35s}
}
