/* Home hero intro + scroll-linked motion (owner round). Scoped to .hero-motion; uses independent translate/scale/rotate so tilt, float, parallax and Ken Burns keep working. */
.hero-motion{--hm-e:cubic-bezier(.22,1,.36,1);--hs:0;--hk:1}
.hero-motion h1 .hero-line{display:block;overflow:hidden;padding-bottom:.1em;margin-bottom:-.1em}
.hero-motion h1 .hero-line>span{display:inline-block}
.hero-motion h1 em{display:inline-block}
.hero-motion .scroll-cue{background:none;border:0;padding:0;cursor:pointer;font-family:var(--sans);text-transform:uppercase;opacity:calc(1 - var(--hs) / .15)}
.hero-motion .scroll-cue .scroll-cue-line{position:relative;display:block;width:1px;height:34px;background:color-mix(in srgb,var(--gold) 35%,transparent);overflow:hidden;font-size:0}
.hero-motion .scroll-cue .scroll-cue-line i{position:absolute;left:-2px;top:0;width:5px;height:5px;border-radius:50%;background:var(--gold);animation:hero-cue-dot 1.8s ease-in-out infinite}
@keyframes hero-cue-dot{0%{translate:0 -6px;opacity:0}25%{opacity:1}80%{opacity:1}100%{translate:0 34px;opacity:0}}

/* Scroll-linked (JS writes --hs 0..1 only) */
.hero-motion .hero-copy{translate:0 calc(var(--hs) * -60px * var(--hk));opacity:calc(1 - .7 * var(--hs))}
.hero-motion .hero-media{translate:0 calc(var(--hs) * -110px * var(--hk))}
.hero-motion .hero-slideshow-stage .hero-frame .hero-slideshow img{scale:calc(1 + .12 * var(--hs))}
.hero-motion .hero-slideshow-stage .hero-seal{--hm-seal:calc(var(--hs) * -70px * var(--hk));rotate:calc(var(--hs) * 25deg);animation:hero-seal-float 4.4s ease-in-out -.6s infinite}
@keyframes hero-seal-float{0%,100%{translate:0 calc(var(--hm-seal) - 6px)}50%{translate:0 calc(var(--hm-seal) + 6px)}}
.hero-motion .hero-orbit-one{translate:calc(var(--hs) * 50px * var(--hk)) calc(var(--hs) * -50px * var(--hk));rotate:calc(var(--hs) * 90deg)}
.hero-motion .hero-orbit-two{translate:calc(var(--hs) * -50px * var(--hk)) calc(var(--hs) * 50px * var(--hk));rotate:calc(var(--hs) * -90deg)}
.hero-motion .vertical-quote{translate:calc(var(--hs) * 40px * var(--hk)) 0}
.hero-motion.hero-scrolling :is(.hero-copy,.hero-media,.hero-seal,.hero-orbit,.vertical-quote){will-change:translate,opacity}


/* Intro (pure CSS so it never depends on JS; .hero-intro-done = 1500ms fail-safe) */
@keyframes hm-left40{from{translate:-40px 0;opacity:0}}
@keyframes hm-left30{from{translate:-30px 0;opacity:0}}
@keyframes hm-right40{from{translate:40px 0;opacity:0}}
@keyframes hm-line{from{transform:translateY(100%)}}
@keyframes hm-draw{from{scale:0 1}}
@keyframes hm-script{from{scale:.85;clip-path:inset(0 100% 0 0);filter:blur(6px)}to{clip-path:inset(0 -10% 0 0)}}
@keyframes hm-up{from{translate:0 14px;opacity:0}}
@keyframes hm-fade{from{opacity:0}}
@keyframes hm-frame{from{translate:80px 0;clip-path:inset(100% -50% -50% -50%)}to{clip-path:inset(-50% -50% -50% -50%)}}
@keyframes hm-settle{from{scale:1.1}}
@keyframes hm-pop{from{scale:.6;opacity:0}}
@keyframes hm-orbit{from{clip-path:circle(0% at 50% 50%);opacity:0}to{clip-path:circle(75% at 50% 50%)}}
.hero-motion:not(.hero-intro-done){
  .hero-copy .eyebrow{animation:hm-left40 .7s var(--hm-e) 0s backwards}
  .hero-copy .eyebrow::before{transform-origin:left center;animation:hm-draw .7s var(--hm-e) .05s backwards}
  h1 .hero-line>span{animation:hm-line .9s var(--hm-e) .1s backwards}
  h1 .hero-line+.hero-line>span{animation-delay:.22s}
  h1 em{animation:hm-script 1s var(--hm-e) .4s backwards}
  .hero-sub{animation:hm-left30 .7s var(--hm-e) .35s backwards}
  .button-row>:nth-child(1){animation:hm-left40 .7s var(--hm-e) .5s backwards}
  .button-row>:nth-child(2){animation:hm-right40 .7s var(--hm-e) .58s backwards}
  .hero-meta>:nth-child(1){animation:hm-up .5s var(--hm-e) .65s backwards}
  .hero-meta>:nth-child(2){animation:hm-up .5s var(--hm-e) .73s backwards}
  .hero-meta>:nth-child(3){animation:hm-up .5s var(--hm-e) .81s backwards}
  .hero-media{animation:hm-frame 1.1s var(--hm-e) .15s backwards}
  .hero-slideshow-stage .hero-frame .hero-slideshow img{animation:hm-settle 1.1s var(--hm-e) .15s backwards,hero-slide-zoom 5s linear forwards}
  .hero-slideshow-stage .hero-seal{animation:hm-pop .45s var(--hm-e) 1s backwards,hero-seal-float 4.4s ease-in-out -.6s infinite}
  .hero-orbit{animation:hm-orbit .7s var(--hm-e) .75s backwards}
  .vertical-quote{animation:hm-fade .6s ease .85s backwards}
  .hero-slide-controls,.scroll-cue{animation:hm-fade .5s ease .95s backwards}
}
.hero-motion:not(.hero-intro-done) .hero-slideshow-stage .hero-slide:not(.is-active) img{animation:none}
.hero-motion .hero-slideshow-stage.slideshow-paused .hero-slide.is-active img{animation-play-state:paused}

@media(prefers-reduced-motion:reduce){
  .hero-motion{--hs:0!important}
  .hero-motion :is(.hero-copy,.hero-media,.hero-orbit,.vertical-quote,.hero-seal),.hero-motion .hero-slideshow-stage .hero-frame .hero-slideshow img{translate:none!important;rotate:none!important;scale:none!important}
  .hero-motion:not(.hero-intro-done) :is(.eyebrow,.eyebrow::before,.hero-line>span,em,.hero-sub,.button-row>*,.hero-meta>*,.hero-media,.hero-seal,.hero-orbit,.vertical-quote,.hero-slide-controls,.scroll-cue){animation:hm-fade .5s ease backwards!important}
  .hero-motion .hero-slideshow-stage .hero-frame .hero-slideshow img{animation:none!important}
  .hero-motion .scroll-cue .scroll-cue-line i{animation:none;translate:0 14px}
}
