/* ============================================================
   HelloRocket — "ASCENT"
   Modern, matte, brandable blue. Dive the desk into a blue launch
   home screen, then climb from daylight blue into deep space.
   ============================================================ */

:root {
  --ink:   #0F1A30;          /* deep navy text */
  --ink-2: #2B3A57;
  --mute:  #54648400;        /* (overridden below) */
  --mute:  #53627F;
  --blue:  #2E5BFF;          /* vivid modern brand blue */
  --blue-d:#1E40C8;
  --blue-l:#6E93FF;
  --navy:  #0B1530;          /* deep space */
  --glass: rgba(255,255,255,.66);
  --glass-line: rgba(255,255,255,.7);
  --line:  rgba(15,26,48,.12);
  --radius: 100px;

  --font-display: 'Archivo', system-ui, sans-serif;
  --font-serif:   'Instrument Serif', Georgia, serif;
  --font-sans:    'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(.22,1,.36,1);
  --gutter: clamp(1.25rem, 5vw, 6rem);
  --maxw: 78rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* overflow-x: clip (not hidden) — hidden creates a scroll container that kills position:sticky, which the Drive section relies on */
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { font-family: var(--font-sans); background: #0B1530; color: var(--ink); line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
::selection { background: var(--blue); color: #fff; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em; line-height: .94; }
h1 em, h2 em, h3 em { font-family: var(--font-serif); font-weight: 400; font-style: italic; letter-spacing: -.01em; color: var(--blue); }
.eyebrow { font-size: .73rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 700; color: var(--blue); display: inline-flex; align-items: center; gap: .6em; }
.eyebrow::before { content: ""; width: 1.6em; height: 2px; background: var(--blue); display: inline-block; }
.eyebrow--light { color: #cfe0ff; }
.eyebrow--light::before { background: var(--blue-l); }
.eyebrow--c { justify-content: center; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: .6em; font-family: var(--font-sans); font-size: .96rem; font-weight: 600; padding: 1em 1.7em; border-radius: var(--radius); cursor: pointer; border: 0; transition: transform .5s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease); will-change: transform; }
.btn i { transition: transform .4s var(--ease); }
.btn:hover i { transform: translateX(.3em); }
.btn--solid { background: var(--blue); color: #fff; box-shadow: 0 12px 30px -10px rgba(46,91,255,.7); }
.btn--solid:hover { background: var(--blue-d); box-shadow: 0 16px 36px -10px rgba(46,91,255,.85); }
.btn--lg { font-size: 1.04rem; padding: 1.08em 1.95em; }
.btn--xl { font-size: 1.14rem; padding: 1.2em 2.3em; }
.btn:focus-visible { outline: 3px solid var(--blue-l); outline-offset: 3px; }

/* ============================================================ ATMOSPHERE */
.sky { position: fixed; inset: 0; z-index: 0; background: linear-gradient(180deg, #cfe0fb 0%, #9cc0f5 45%, #6f9eea 100%); transition: none; }
.stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0; }
.cursor { position: fixed; top: 0; left: 0; z-index: 200; pointer-events: none; width: 11px; height: 11px; border-radius: 50%; background: var(--blue); transform: translate(-50%,-50%); transition: width .3s var(--ease), height .3s var(--ease), background .3s var(--ease), opacity .3s; opacity: 0; }
.cursor.is-active { opacity: 1; }
.cursor.is-hover { width: 54px; height: 54px; background: rgba(110,147,255,.4); }
@media (hover: none) { .cursor { display: none; } }

/* ============================================================ NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: clamp(1rem,2.2vw,1.5rem) var(--gutter); transition: padding .4s var(--ease), background .4s var(--ease); }
/* no backdrop-filter: blurring the scrubbing canvas behind the nav re-renders every frame and tanks scroll smoothness */
.nav.is-compact { padding-top: .8rem; padding-bottom: .8rem; background: rgba(11,21,48,.72); }
.nav__logo { height: clamp(20px,2.2vw,26px); width: auto; filter: brightness(0) invert(1); opacity: .95; }
.nav__cta { padding: .72em 1.3em; font-size: .9rem; }

/* ============================================================ HERO / DIVE */
.hero { position: relative; z-index: 2; }
.hero__stage { position: relative; height: 100vh; height: 100dvh; width: 100%; overflow: hidden; background: transparent; }
.mobile-hero #screen-site, .mobile-hero #hero-intro, .mobile-hero #hero-room { display: none; }
.hero__room { position: absolute; inset: 0; z-index: 2; transform-origin: center center; will-change: transform, filter; backface-visibility: hidden; }
.hero__room-img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__room-veil { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 56%, transparent 36%, rgba(6,12,28,.42) 100%); opacity: 0; will-change: opacity; }
.hero__intro { position: absolute; inset: 0; z-index: 6; pointer-events: none; will-change: opacity, transform; }
.hero__kicker { position: absolute; left: var(--gutter); bottom: clamp(1.6rem,4.5vh,3.2rem); color: #fff; font-size: .76rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; text-shadow: 0 1px 24px rgba(0,0,0,.5); }
.hero__cue { position: absolute; bottom: clamp(1.6rem,4.5vh,3.2rem); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .8rem; color: #fff; font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; text-shadow: 0 1px 24px rgba(0,0,0,.5); }
.hero__cue-line { width: 1px; height: 46px; background: linear-gradient(to bottom, rgba(255,255,255,.9), rgba(255,255,255,0)); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0%{transform:scaleY(0);opacity:0} 35%{transform:scaleY(1);opacity:1} 100%{transform:scaleY(1) translateY(46px);opacity:0} }

.screen { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 8; transform-origin: 0 0; overflow: hidden; will-change: transform; visibility: hidden;
  background: linear-gradient(180deg, #16306e 0%, #1f4aa8 60%, #2f63d6 100%); }
.screen.is-ready { visibility: visible; }
.screen.is-static { transform: none !important; visibility: visible; }
.screen.is-static .screen__inner { opacity: 1; }
.screen__frame { position: absolute; top: 0; left: 0; width: 100%; height: 100%; transform-origin: 0 0; will-change: transform; backface-visibility: hidden; }
.screen__scene { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.screen__pad { position: absolute; left: 64%; bottom: 11%; width: 26%; height: 10px; transform: translateX(-50%); background: radial-gradient(ellipse at center, rgba(255,255,255,.25), transparent 70%); border-radius: 50%; }
.screen__rocket { position: absolute; left: 64%; bottom: 12%; width: clamp(140px, 17vw, 300px); transform: translateX(-50%); transform-origin: 50% 100%; will-change: transform; filter: saturate(.4) brightness(1.12) drop-shadow(0 20px 40px rgba(0,0,0,.35)); }
.screen__flame { position: absolute; left: 64%; bottom: 12%; width: clamp(40px,5vw,80px); height: 0; transform: translateX(-50%); background: radial-gradient(ellipse at 50% 0, #cfe0ff, #6E93FF 40%, rgba(46,91,255,0) 75%); border-radius: 50% 50% 60% 60%; opacity: 0; will-change: height, opacity; filter: blur(2px); }
.screen__inner { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 0 var(--gutter); will-change: opacity; }
.eyebrow--hero { margin-bottom: 1.5rem; }
.hero__h1 { font-size: clamp(3rem, 9vw, 8.5rem); max-width: 14ch; color: #fff; text-shadow: 0 6px 60px rgba(0,0,0,.35); }
.hero__h1 .hw { display: inline-block; }
/* 3D headline: white face extruded in deep navy, floating off the screen.
   --rx/--ry are driven by the cursor (initHeroTilt) so it leans toward you. */
.hero__h1 {
  transform: perspective(900px) rotateX(var(--rx, 7deg)) rotateY(var(--ry, -3deg));
  transition: transform .3s cubic-bezier(.22,1,.36,1);
  will-change: transform;
  text-shadow:
    0 .012em 0 #2a4a9e,
    0 .024em 0 #25428f,
    0 .036em 0 #203a80,
    0 .048em 0 #1b3271,
    0 .060em 0 #162a62,
    0 .072em 0 #122353,
    0 .084em 0 #0d1c44,
    0 .16em .45em rgba(4, 10, 30, .5),
    0 .34em 1em rgba(4, 10, 30, .38);
}
.hero__h1 em { display: block; color: #dbe6ff; }
@media (prefers-reduced-motion: reduce) { .hero__h1 { transform: none; } }
.reduced .hero__h1 { transform: none; }
.hero__sub { color: rgba(255,255,255,.84); max-width: 42ch; margin: 1.7rem 0 2.3rem; font-size: clamp(1.02rem,1.4vw,1.24rem); font-weight: 300; }

/* MOBILE hero */
.mhero { display: none; }
.mobile-hero .mhero { display: block; }
.mhero { position: absolute; inset: 0; z-index: 6; background: linear-gradient(180deg, #16306e, #2f63d6); overflow: hidden; }
.mhero__scene { position: absolute; right: -6%; bottom: 6%; width: 62%; z-index: 1; }
.mhero__rocket { width: 100%; filter: saturate(.4) brightness(1.12) drop-shadow(0 16px 30px rgba(0,0,0,.35)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
.mhero__copy { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); top: clamp(9vh,13dvh,16vh); }
.mhero__copy .eyebrow { margin-bottom: 1rem; }
.mhero__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem,12vw,3.8rem); line-height: .92; letter-spacing: -.03em; color: #fff; }
.mhero__title em { font-family: var(--font-serif); font-weight: 400; color: #bcd0ff; }
.mhero__sub { color: rgba(255,255,255,.9); font-weight: 300; max-width: 30ch; margin-top: 1rem; font-size: 1rem; }
.mhero__btn { position: relative; z-index: 2; margin-top: 1.5rem; }
.mhero__cue { position: absolute; bottom: clamp(2rem,4dvh,3.2rem); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .6rem; color: #fff; font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; }

/* ============================================================ MARQUEE */
.marquee { position: relative; z-index: 2; overflow: hidden; background: var(--navy); color: #fff; padding: .9rem 0; }
.marquee__track { display: flex; white-space: nowrap; width: max-content; animation: marq 34s linear infinite; }
@keyframes marq { to { transform: translateX(-50%); } }
.marquee__track span { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem,2.6vw,2rem); text-transform: uppercase; letter-spacing: .02em; padding-right: .4em; display: inline-flex; align-items: center; }
.marquee__track i { color: var(--blue-l); font-style: normal; margin: 0 .5em; }

/* ============================================================ BANDS (content on the climbing sky) */
.band { position: relative; z-index: 2; display: flex; align-items: center; justify-content: flex-start; min-height: 100vh; padding: clamp(5rem,13vh,9rem) var(--gutter); }
.band--c { justify-content: center; }
.band__card { position: relative; width: 100%; max-width: 42rem; padding: clamp(2rem,4vw,3.4rem); border-radius: 26px;
  background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 30px 70px -30px rgba(11,21,48,.5), inset 0 0 0 1px var(--glass-line); }
.band__card--c { text-align: center; max-width: 46rem; }
.band__card--wide { max-width: 60rem; }
.band__num { display: inline-block; font-family: var(--font-display); font-weight: 900; font-size: clamp(.9rem,1.2vw,1.05rem); letter-spacing: .2em; color: var(--blue); margin-bottom: 1rem; }
.band .eyebrow { margin-bottom: 1.1rem; }
.band__title { font-size: clamp(2.3rem,5.5vw,4.6rem); color: var(--ink); margin-bottom: 1.4rem; }
.band__title--xl { font-size: clamp(2.6rem,7vw,5.6rem); }
.band__title em { color: var(--blue); }
.band__lead { max-width: 52ch; font-size: clamp(1.04rem,1.35vw,1.25rem); font-weight: 300; line-height: 1.65; color: var(--ink-2); }
.band__card--c .band__lead { margin-left: auto; margin-right: auto; }

/* ---- ADRIFT (the problem) ---- */
.adrift { position: relative; z-index: 2; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: clamp(5rem,13vh,9rem) var(--gutter); overflow: hidden; }
.adrift__links { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.adrift__field { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.frag { position: absolute; top: 0; left: 0; display: inline-flex; align-items: center; gap: .5em; padding: .58em .82em; border-radius: 13px; font-size: clamp(.76rem,1vw,.92rem); font-weight: 500; color: #dce6ff; white-space: nowrap; will-change: transform; transform: translate(-50%,-50%);
  background: rgba(255,255,255,.07); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 14px 34px -18px rgba(0,0,0,.7); }
.frag svg { width: 1.2em; height: 1.2em; color: var(--blue-l); }
.adrift__copy { position: relative; z-index: 3; max-width: 40rem; text-align: center; }
.adrift__copy::before { content: ""; position: absolute; inset: -18% -22%; z-index: -1; background: radial-gradient(60% 60% at 50% 50%, rgba(8,16,40,.78), transparent 72%); }
.adrift .band__num { color: var(--blue-l); }
.adrift .eyebrow { color: var(--blue-l); justify-content: center; }
.adrift .eyebrow::before { background: var(--blue-l); }
.adrift__title { font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em; line-height: .94; font-size: clamp(2.3rem,5.5vw,4.6rem); color: #fff; margin: .2rem 0 1.3rem; text-shadow: 0 4px 40px rgba(0,0,0,.4); }
.adrift__title em { font-family: var(--font-serif); font-weight: 400; font-style: italic; color: var(--blue-l); }
.adrift__lead { max-width: 50ch; margin: 0 auto; font-size: clamp(1.04rem,1.35vw,1.22rem); font-weight: 300; line-height: 1.65; color: rgba(255,255,255,.82); text-shadow: 0 2px 20px rgba(0,0,0,.4); }
@media (max-width: 760px) { .frag { font-size: .72rem; padding: .5em .7em; } .frag svg { width: 1.05em; height: 1.05em; } }
.reduced .frag { transition: none; }

/* capabilities */
.caps { list-style: none; margin-top: clamp(1.6rem,3vh,2.4rem); }
.cap { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 1.1rem; padding: clamp(1rem,2vh,1.5rem) 0; border-top: 1.5px solid var(--line); position: relative; cursor: pointer; transition: padding-left .4s var(--ease); }
.cap::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--blue); transition: width .4s var(--ease); }
.cap:hover { padding-left: 1rem; }
.cap:hover::before { width: 3px; }
.cap__i { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.1rem,1.6vw,1.4rem); color: var(--blue); }
.cap__h { font-size: clamp(1.3rem,2.2vw,1.9rem); color: var(--ink); }
.cap__p { color: var(--mute); font-weight: 300; font-size: 1rem; margin-top: .2rem; max-width: 46ch; }

/* timeline */
.steps { list-style: none; position: relative; margin-top: clamp(1.6rem,3vh,2.5rem); padding-left: clamp(3.2rem,5vw,4.5rem); }
.steps__rail { position: absolute; left: clamp(1.1rem,1.8vw,1.5rem); top: .5rem; bottom: .5rem; width: 2.5px; background: var(--line); overflow: hidden; }
.steps__fill { position: absolute; inset: 0; transform-origin: top; transform: scaleY(0); background: var(--blue); }
.step { position: relative; padding: clamp(.9rem,2vh,1.5rem) 0; }
.step__n { position: absolute; left: calc(clamp(3.2rem,5vw,4.5rem) * -1 + clamp(1.1rem,1.8vw,1.5rem) + 1.25px); transform: translateX(-50%); width: clamp(2.2rem,3.2vw,2.8rem); height: clamp(2.2rem,3.2vw,2.8rem); display: grid; place-items: center; border-radius: 50%; background: #fff; border: 2px solid var(--line); font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--mute); transition: all .5s var(--ease); }
.step.is-on .step__n { border-color: var(--blue); color: #fff; background: var(--blue); transform: translateX(-50%) scale(1.08); box-shadow: 0 0 0 6px rgba(46,91,255,.14); }
.step__h { font-size: clamp(1.3rem,2.3vw,1.9rem); color: var(--ink); margin-bottom: .25rem; }
.step__h em { color: var(--blue); }
.step__p { color: var(--mute); font-weight: 300; max-width: 44ch; font-size: 1rem; }
.step__b { opacity: .45; transform: translateY(6px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.step.is-on .step__b { opacity: 1; transform: none; }

/* CLOSE — in deep space */
.close { position: relative; z-index: 2; text-align: center; padding: clamp(8rem,20vh,13rem) var(--gutter); color: #fff; }
.close__title { font-size: clamp(3rem,9vw,7rem); color: #fff; margin: 1.1rem auto; }
.close__title em { color: var(--blue-l); }
.close__lead { max-width: 46ch; margin: 0 auto 2.6rem; color: rgba(255,255,255,.8); font-weight: 300; font-size: clamp(1.06rem,1.5vw,1.32rem); }

/* ============================================================ FOOTER */
.footer { position: relative; z-index: 2; background: var(--navy); color: #fff; padding: clamp(3rem,8vh,5rem) var(--gutter); }
.footer__row { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer__brand { font-weight: 800; letter-spacing: .2em; font-size: .85rem; font-family: var(--font-display); }
.footer__links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer__links a { color: rgba(255,255,255,.66); font-size: .82rem; transition: color .3s var(--ease); }
.footer__links a:hover { color: var(--blue-l); }
.footer__copy { color: rgba(255,255,255,.5); font-size: .82rem; }

/* ---- reveal primitives ---- */
[data-reveal], [data-reveal-card] { will-change: transform, opacity; }
.line { display: block; overflow: hidden; }
.line > span { display: block; will-change: transform; }

/* ============================================================ RESPONSIVE */
@media (max-width: 760px) {
  .band { min-height: auto; padding: clamp(4rem,10vh,6rem) var(--gutter); }
  .band__card { padding: clamp(1.5rem,6vw,2.2rem); }
  .band__title { font-size: clamp(2.1rem,9vw,3rem); }
  .band__title--xl { font-size: clamp(2.3rem,11vw,3.4rem); }
  .hero__h1 { font-size: clamp(2.6rem,12vw,3.8rem); }
  .close__title { font-size: clamp(2.6rem,12vw,4rem); }
  .marquee__track span { font-size: clamp(1.2rem,6vw,1.7rem); }
  .footer__row { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .steps { padding-left: 3rem; }
  /* mobile home screen: stack copy on top, rocket at the bottom (no overlap) */
  .screen__inner { justify-content: flex-start; padding-top: 15vh; }
  .hero__sub { max-width: 26ch; }
  .screen__rocket { left: 62%; bottom: 5%; width: 160px; }
  .screen__pad { left: 62%; bottom: 4%; width: 150px; }
  .screen__flame { left: 62%; bottom: 5%; }
}

@media (prefers-reduced-motion: reduce) { .hero__cue-line, .marquee__track, .mhero__rocket { animation: none; } html { scroll-behavior: auto; } }
.reduced [data-reveal], .reduced [data-reveal-card] { opacity: 1 !important; transform: none !important; }
.reduced .steps__fill { transform: scaleY(1); }
.reduced .step__b { opacity: 1; transform: none; }
.reduced .step__n { border-color: var(--blue); color: #fff; background: var(--blue); }

/* ============================================================
   LEGACY COMPAT — book.html + legal pages
   ============================================================ */
:root { --accent: #2E5BFF; --ink-cool: #0F1A30; --mute-cool: #53627F; --line-cool: rgba(15,26,48,.12); --sky-hi: #EAF0FB; --sky-2: #DCE6F7; }
.legal { max-width: 48rem; margin: 0 auto; padding: clamp(5rem,12vh,8rem) var(--gutter); background: #fff; }
.legal__nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3rem; }
.legal__nav img { height: 24px; filter: brightness(0); }
.legal__back { color: var(--mute); font-size: .85rem; transition: color .3s var(--ease); }
.legal__back:hover { color: var(--blue); }
.legal__eyebrow { color: var(--blue); text-transform: uppercase; letter-spacing: .2em; font-size: .74rem; font-weight: 700; margin-bottom: 1rem; }
.legal__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem,6vw,3.6rem); letter-spacing: -.02em; margin-bottom: .5rem; color: var(--ink); }
.legal__meta { color: var(--mute); margin-bottom: 2.5rem; font-size: .9rem; }
.legal h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; margin: 2.2rem 0 .6rem; color: var(--ink); }
.legal p { color: var(--ink-2); margin-bottom: 1rem; line-height: 1.7; }
.legal strong { color: var(--ink); }
.legal a { color: var(--blue); }
body:has(.legal), body:has(.book) { background: #fff; }

/* ============================================================ THE DRIVE
   Services journey: clouds → billboard (GET FOUND) → tunnel
   (GET IN FRONT) → dusk HQ (GET THEM BOOKED). Pinned via
   position:sticky (iOS-safe), videos scrubbed by scroll. */
:root { --ember: #E4572E; --ember-l: #FF7B4F; --drv-paper: #F4F1EA; --drv-ink: #1A1916; }

.drv { position: relative; height: 950vh; margin-top: -100vh; }
/* the hero's pinned stage ends fully transparent; pulling the Drive up one
   viewport puts its world directly beneath that end-state, so the handoff
   happens the instant the launch completes — no dead traversal scroll */
.drv__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #cfe0fb; }
.drv__layer { position: absolute; inset: 0; }
.drv__layer canvas, .drv__layer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.drv__fallback { opacity: 0; }

.drv__veil {
  position: absolute; inset: -20%;
  background:
    radial-gradient(60% 45% at 30% 30%, rgba(255,255,255,.95) 0%, rgba(255,255,255,0) 70%),
    radial-gradient(55% 40% at 75% 55%, rgba(255,255,255,.92) 0%, rgba(255,255,255,0) 72%),
    radial-gradient(70% 50% at 50% 85%, rgba(255,255,255,.9) 0%, rgba(255,255,255,0) 70%),
    linear-gradient(180deg, #cfe0fb 0%, #ffffff 100%);
}
.drv__scrim { position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(90deg, rgba(244,241,234,.82) 0%, rgba(244,241,234,.45) 38%, rgba(244,241,234,0) 62%); }
.drv__scrim--dark { background: linear-gradient(90deg, rgba(15,20,26,.78) 0%, rgba(15,20,26,.42) 40%, rgba(15,20,26,0) 64%); }

.drv__copy {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--gutter); max-width: 46rem; pointer-events: none;
}
.drv__copy .eyebrow { opacity: 0; transform: translateY(18px); }
.eyebrow--ember { color: var(--ember); }
.eyebrow--ember::before { background: var(--ember); }
.drv__title {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em; line-height: .96;
  font-size: clamp(2.3rem, 5.8vw, 4.8rem); color: var(--drv-ink); margin: 1rem 0 1.2rem;
  text-shadow: 0 2px 30px rgba(244,241,234,.85);
}
.drv__title .w { display: inline-block; opacity: 0; transform: translateY(.55em); }
.drv__title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--ember); letter-spacing: -.01em; }
.drv__lead {
  font-weight: 300; font-size: clamp(1rem, 1.35vw, 1.2rem); line-height: 1.65; color: var(--drv-ink);
  max-width: 44ch; opacity: 0; transform: translateY(18px); text-shadow: 0 1px 18px rgba(244,241,234,.9);
}
.drv__copy--dark .drv__title { color: var(--drv-paper); text-shadow: 0 2px 30px rgba(10,12,16,.75); }
.drv__copy--dark .drv__title em { color: var(--ember-l); }
.drv__copy--dark .drv__lead { color: rgba(244,241,234,.92); text-shadow: 0 1px 18px rgba(10,12,16,.8); }
.drv__copy--dark .eyebrow--ember { color: var(--ember-l); }
.drv__copy--dark .eyebrow--ember::before { background: var(--ember-l); }

.btn--ember { background: var(--ember); color: #fff; box-shadow: 0 14px 34px -10px rgba(228,87,46,.65); }
.btn--ember:hover { background: #c94724; box-shadow: 0 18px 40px -10px rgba(228,87,46,.8); }
.btn--ember:focus-visible { outline: 3px solid var(--ember-l); }
.drv__cta { pointer-events: auto; align-self: flex-start; margin-top: 1.6rem; opacity: 0; transform: translateY(18px); }

@media (max-width: 760px) {
  .drv { height: 750vh; }
  /* vertically CENTERED on the screen — balanced empty space above and
     below, symmetrical with the whole viewport (no bottom void) */
  .drv__copy { justify-content: center; align-items: center; text-align: center;
    padding: 4rem 1.5rem; max-width: 100%; }
  .drv__copy .eyebrow { font-size: .62rem; letter-spacing: .16em; white-space: nowrap; }
  /* center-weighted scrim: darkens the middle band where the text sits,
     fading to clear at the top and bottom edges so the art still breathes */
  .drv__scrim { background: linear-gradient(180deg, rgba(244,241,234,0) 0%, rgba(244,241,234,.6) 20%, rgba(244,241,234,.82) 40%, rgba(244,241,234,.82) 62%, rgba(244,241,234,.5) 82%, rgba(244,241,234,0) 100%); }
  .drv__scrim--dark { background: linear-gradient(180deg, rgba(15,20,26,0) 0%, rgba(15,20,26,.52) 20%, rgba(15,20,26,.8) 40%, rgba(15,20,26,.8) 62%, rgba(15,20,26,.44) 82%, rgba(15,20,26,0) 100%); }
  .drv__title { font-size: clamp(1.9rem, 8.4vw, 2.7rem); line-height: 1.06; margin: 1.25rem auto; }
  .drv__lead { font-size: .95rem; line-height: 1.62; max-width: 32ch; margin: 0 auto; }
  .drv__cta { width: 100%; justify-content: center; margin-top: 1.7rem; }
}

/* reduced-motion / no-GSAP: stack the three beats as static scenes */
.reduced .drv { height: auto; margin-top: 0; }
.reduced .drv__stage { position: relative; height: auto; min-height: 60vh; background: var(--drv-paper); }
.reduced #drv-canvas, .reduced .drv__poster, .reduced .drv__veil, .reduced .drv__scrim { display: none; }
.reduced .drv__fallback { opacity: 1; position: relative; height: 42vh; }
.reduced .drv__copy { position: static; max-width: 46rem; padding: 3rem var(--gutter); }
.reduced .drv__copy--dark { background: #10151a; }
.reduced .drv__copy .eyebrow, .reduced .drv__title .w, .reduced .drv__lead, .reduced .drv__cta { opacity: 1; transform: none; }

/* cloud bridge — one fixed cloud layer shared by the hero launch (fades in)
   and the Drive opening (fades out), so the two worlds blend instead of stack */
.cloudbridge {
  position: fixed; inset: -20%; z-index: 50; pointer-events: none;
  opacity: 0; transform: translateY(16%); will-change: opacity, transform;
  background:
    radial-gradient(60% 45% at 30% 30%, rgba(255,255,255,.95) 0%, rgba(255,255,255,0) 70%),
    radial-gradient(55% 40% at 75% 55%, rgba(255,255,255,.92) 0%, rgba(255,255,255,0) 72%),
    radial-gradient(70% 50% at 50% 85%, rgba(255,255,255,.9) 0%, rgba(255,255,255,0) 70%),
    linear-gradient(180deg, #cfe0fb 0%, #ffffff 100%);
}
.reduced .cloudbridge { display: none; }

/* ============================================================ A TRUE PARTNER
   Centered, confident, glowing headline over subtle ambient motion
   (drifting glow + faint twinkle) that flows with the site's deep-space feel. */
.team {
  position: relative; z-index: 2; overflow: hidden;
  background: radial-gradient(135% 105% at 50% 22%, #14254a 0%, #0B1530 68%);
  min-height: 100svh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: clamp(5rem, 12vh, 9rem) var(--gutter);
}
.team__glow, .team__stars { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.team__glow::before, .team__glow::after { content: ""; position: absolute; border-radius: 50%; filter: blur(90px); will-change: transform; }
.team__glow::before {
  width: 60vw; height: 60vw; left: 5%; top: 0%;
  background: radial-gradient(circle, rgba(46,91,255,.42), transparent 68%);
  animation: teamDriftA 28s ease-in-out infinite;
}
.team__glow::after {
  width: 46vw; height: 46vw; right: 3%; bottom: -8%;
  background: radial-gradient(circle, rgba(228,87,46,.20), transparent 68%);
  animation: teamDriftB 34s ease-in-out infinite;
}
@keyframes teamDriftA { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(7%,5%) scale(1.14); } }
@keyframes teamDriftB { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-6%,-7%) scale(1.16); } }
.team__stars {
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1.5px 1.5px at 82% 16%, rgba(200,220,255,.42), transparent 60%),
    radial-gradient(1px 1px at 62% 72%, rgba(255,255,255,.4), transparent 60%),
    radial-gradient(1px 1px at 28% 82%, rgba(255,255,255,.3), transparent 60%),
    radial-gradient(1px 1px at 92% 58%, rgba(255,255,255,.3), transparent 60%),
    radial-gradient(1px 1px at 44% 34%, rgba(200,220,255,.34), transparent 60%),
    radial-gradient(1px 1px at 70% 40%, rgba(255,255,255,.28), transparent 60%),
    radial-gradient(1px 1px at 20% 55%, rgba(255,255,255,.28), transparent 60%),
    radial-gradient(1px 1px at 55% 12%, rgba(255,255,255,.3), transparent 60%),
    radial-gradient(1px 1px at 36% 62%, rgba(255,255,255,.26), transparent 60%);
  animation: teamTwinkle 7s ease-in-out infinite;
}
@keyframes teamTwinkle { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
.team__inner { position: relative; z-index: 1; max-width: 42rem; margin: 0 auto; }
.team .eyebrow { justify-content: center; color: var(--ember-l); }
.team .eyebrow::before { background: var(--ember-l); }
.team__title {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 5.2rem); line-height: .98; letter-spacing: -.035em;
  color: #F6F3EC; margin: 1.3rem auto 1.5rem; text-wrap: balance;
  animation: teamTitleGlow 5s ease-in-out infinite;
}
.team__title em { font-family: var(--font-serif); font-weight: 400; font-style: italic; letter-spacing: -.01em; color: var(--ember-l); }
@keyframes teamTitleGlow {
  0%,100% { text-shadow: 0 0 26px rgba(150,180,255,.22), 0 3px 30px rgba(2,6,18,.45); }
  50% { text-shadow: 0 0 54px rgba(150,180,255,.5), 0 0 100px rgba(120,150,255,.22), 0 3px 30px rgba(2,6,18,.45); }
}
.team__lead {
  color: rgba(226,232,246,.82); font-weight: 300;
  font-size: clamp(1.04rem, 1.35vw, 1.24rem); line-height: 1.7; max-width: 52ch; margin: 0 auto;
  text-shadow: 0 2px 18px rgba(2,6,18,.5);
}
.team::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: 0;
  background: linear-gradient(180deg, rgba(11,21,48,0), #0B1530); pointer-events: none; }
@media (max-width: 760px) {
  .team { min-height: 90svh; }
  .team__title { font-size: clamp(2.3rem, 10.5vw, 3.5rem); }
  .team__lead { font-size: 1rem; max-width: 40ch; }
}
@media (prefers-reduced-motion: reduce) {
  .team__glow::before, .team__glow::after, .team__stars, .team__title { animation: none; }
}
.reduced .team__glow::before, .reduced .team__glow::after, .reduced .team__stars, .reduced .team__title { animation: none; }
