/* Home · SB-P01a frames 1-4. Board positions x2 at 1920 x 1080: horizontal in vw (via --u / %), vertical in vh. */
.stage { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--ease); }
.stage.is-on { opacity: 1; }
main { position: relative; }               /* no stacking context here: the loader must cover the nav */
.intro, .next-up { position: relative; z-index: 1; }
.ask { color: var(--stone); font-style: normal; }

/* intro = hero (pinned while the camera flies, 100 vh of scroll) + statement */
.intro { position: relative; }
.hero { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.intro::before { content: ''; display: block; height: 0; }
.intro { padding-bottom: 0; }
.hero + .statement { margin-top: 150vh; }   /* the fly-through + presentation turn take 150 vh */

.hero__text { position: absolute; left: var(--m); top: 17%; }
.hero__eyebrow { margin-bottom: calc(18 * var(--u)); }
.hero__h1 { display: grid; font: 300 var(--fs-h1)/1.02 var(--f-display); letter-spacing: -.01em; }
.hero__l1 { color: var(--gold); }
.hero__l2 { color: var(--ivory); }
.hero__l3 { color: var(--stone); }

/* rotating first line: fade + 12 px rise, 700 ms (T1 curve), every 2.6 s */
.rot { position: relative; display: inline-grid; }
.rot__w { grid-area: 1 / 1; white-space: nowrap; opacity: 0; transform: translate3d(0, var(--rise-y), 0); transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease); }
.rot__w.is-on { opacity: 1; transform: none; }
.rot__w.is-out { opacity: 0; transform: translate3d(0, calc(var(--rise-y) * -1), 0); }

.hero__side { position: absolute; z-index: 2; left: 66.67vw; top: 22.2%; width: 26vw; min-width: 300px; pointer-events: none; }   /* board x 640, w 250 (of 960) */
.hero__side a, .hero__side button { pointer-events: auto; }   /* B61: the buttons sit over the box's drag area and stay clickable; the words never block a drag */
.hero__sub { color: var(--ink-3); max-width: 31em; }
.hero__pills { display: flex; flex-wrap: wrap; gap: max(10px, calc(16 * var(--u))); margin-top: calc(40 * var(--u)); }
.hero__chips { position: absolute; left: var(--m); top: 87%; }

/* where the 3D box sits (frame 2: centre 75.5 % x 56.5 %, about 34 % of the width): the hit area for drag / hold */
.hero__hit { position: absolute; left: 58.3%; top: 35.2%; width: 34.4%; height: 42.6%; cursor: grab; touch-action: pan-y; border-radius: 8px; }
.hero__hit:active { cursor: grabbing; }

/* the headline lifts away when the camera starts to fly (frame 3) */
.hero [data-hero-text] { transition: opacity calc(var(--t-reveal) * .65) var(--ease-leave), transform calc(var(--t-reveal) * .65) var(--ease-leave); }
.hero.is-leaving [data-hero-text] { opacity: 0; transform: translate3d(0, calc(var(--reveal-y) * -1), 0); }

/* statement over the Forêt corridor (frame 4, B-S4) */
.statement { position: relative; min-height: 100vh; display: grid; align-content: center; padding: 18vh var(--m); }
.statement__rail { top: 46vh; }
.statement__p { display: grid; max-width: calc(1360 * var(--u)); margin-left: calc(120 * var(--u)); font: 300 var(--fs-statement)/1.2 var(--f-display); letter-spacing: -.005em; color: var(--ivory); }
.statement__line { display: block; }
.statement .w { color: var(--stone); transition: color var(--t-text) linear; }
.statement .w.is-lit { color: var(--ivory); }
.statement__last .w.is-lit { color: var(--stone); }
.statement__hit { position: absolute; right: 8vw; bottom: 10vh; width: 26vw; height: 32vh; }
.statement__meet { position: relative; z-index: 2; margin: calc(44 * var(--u)) 0 0 calc(120 * var(--u)); font: italic 400 max(17px, calc(24 * var(--u)))/1.4 var(--f-accent); }
.statement__meet a { color: var(--gold); transition: color var(--t-hover) var(--ease); }
.statement__meet a:hover { color: var(--ivory); }

.next-up { height: 60vh; background: var(--ebony); }

/* stacked layout (board phone notes; also tablets and narrow windows): headline, box below it, then text */
@media (max-width: 767px), (max-aspect-ratio: 23/20) {
  .hero__text { top: calc(var(--nav-h) + var(--nav-top) + 28px); right: var(--m); }
  .hero__side { left: var(--m); right: var(--m); width: auto; min-width: 0; top: auto; bottom: 12vh; }
  .hero__chips { display: none; }
  .hero__hit { left: 20%; width: 60%; top: 40%; height: 28%; }
}
@media (max-height: 600px) { .hero { min-height: 600px; } .hero__chips, .cue { display: none; } }
@media (min-width: 768px) and (max-width: 1279px) { .hero__side { width: 30vw; min-width: 260px; } }
@media (max-width: 767px) {
  .hero + .statement { margin-top: 90vh; }
  .hero__text { top: calc(var(--nav-h) + 40px); right: var(--m); }
  .hero__h1 { font-size: 40px; }
  .hero__side { left: var(--m); right: var(--m); width: auto; min-width: 0; top: auto; bottom: 16vh; }
  .hero__sub { font-size: 14px; }
  .hero__pills { margin-top: 18px; }
  .hero__chips { display: none; }
  .hero__hit { left: 15%; width: 70%; top: 40%; height: 26%; }
  .statement__p { margin-left: 0; font-size: 28px; display: block; }
  .statement__line { display: inline; }                        /* phones: one flowing paragraph (the desktop lines broke into 1-word rows) */
  .statement__meet { margin-left: 0; }
  .statement__rail, .statement__hit { display: none; }
}
