/* High Lander × STEP — Houston demo day. Tokens live in tokens.css. */
:root {
  --us-navy: #19437f;   /* STEP navy */
  --us-red: #c41e3a;    /* STEP red bar */
  --flag-blue: #0a3161; /* Old Glory blue */
  --flag-red: #b31942;  /* Old Glory red */
  --header-h: 52px;
  --screen-bg: #15161d;
  --bezel: clamp(6px, .6vw, 10px); /* >= 0.3 x --radius, so no video corner reaches the rounding */ /* product-video frame = the pad colour baked into the reel */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
a, button, [role="button"] { touch-action: manipulation; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; overflow-x: clip;
  background: var(--hl-bg);
  color: var(--hl-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--hl-blue); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 50; background: var(--hl-ink); color: #fff; padding: 8px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 30; height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px) !important;
  display: flex; justify-content: space-between; align-items: center;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  font-size: 13px; letter-spacing: 0.005em;
  background: color-mix(in srgb, var(--hl-bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.site-header__mark { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.site-header__mark img { display: block; max-width: none; }
.site-header__hl { width: 146px; height: 20px; }
.site-header__step { width: 84px; height: 36px; transform: translateY(-5.1px); } /* dy: STEP lettering band on the HL centreline */
.site-header__x { font-size: 17px; font-weight: 300; line-height: 1; color: var(--hl-ink-2); }
.site-header__right { display: flex; align-items: center; gap: 22px; }
.site-header__meta { display: flex; gap: 20px; color: var(--hl-ink-2); }

/* ---------- buttons ----------
   ref: jjettas.com "View all": on hover the pill grows (1.12) with a coloured glow, a dome-topped
   fill rises from below, and the label springs down (0.82). Red buttons fill blue; white buttons
   take a red wave then blue. */
.btn {
  --btn-bg: var(--flag-red); --btn-fg: #fff; --glow: rgba(10,49,97,.55);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 15px/1 var(--font-sans); letter-spacing: 0.005em; text-decoration: none;
  color: var(--btn-fg); background: var(--btn-bg); border: 0; border-radius: 999px;
  padding: 15px 26px; cursor: pointer; user-select: none; -webkit-user-select: none;
  box-shadow: 0 8px 22px -12px rgba(179,25,66,.55);
  transition: scale .2s cubic-bezier(.4,0,.2,1), box-shadow .2s cubic-bezier(.4,0,.2,1), color .2s cubic-bezier(.4,0,.2,1);
}
.btn__fill {
  position: absolute; z-index: -1; left: -15%; right: -15%; top: -40%; bottom: 0; pointer-events: none;
  border-radius: 50% 50% 0 0 / 42% 42% 0 0;
  transform: translateY(calc(100% + 1px));
  transition: transform .2s cubic-bezier(.4,0,.2,1);
}
.btn__fill--blue { background: var(--flag-blue); }
.btn__fill--red { background: var(--flag-red); }
.btn--light .btn__fill { transition-duration: .26s; }
.btn--light .btn__fill--blue { transition-delay: .12s; }
.btn__label {
  position: relative; z-index: 1; display: inline-block; white-space: nowrap;
  transition: scale .32s cubic-bezier(.34,1.56,.64,1), color .2s cubic-bezier(.4,0,.2,1);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { scale: 1.12; box-shadow: 0 12px 34px -12px var(--glow); }
  .btn:hover .btn__fill { transform: translateY(0); }
  .btn:hover .btn__label { scale: .82; color: #fff; }
  .btn--light:hover .btn__fill--red { transition-delay: 0s; }
}
.btn:active { scale: 1.06; }
.btn:active .btn__fill { transform: translateY(0); }
.btn:active .btn__label { scale: .82; color: #fff; }
.btn:focus-visible .btn__fill { transform: translateY(0); }
.btn--sm { font-size: 13px; padding: 10px 16px; box-shadow: none; }
.btn--lg { font-size: 17px; padding: 19px 34px; }
.btn--block { width: 100%; }
.btn--block:hover { scale: 1.04; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--flag-blue); --glow: rgba(179,25,66,.6); box-shadow: 0 12px 30px -14px rgba(0,0,0,.5); }
.btn[disabled] { opacity: .7; cursor: progress; }
@media (prefers-reduced-motion: reduce) {
  .btn, .btn__fill, .btn__label { transition-duration: .01s; }
  .btn:hover, .btn:active { scale: 1; }
}

/* ---------- 1. hero ---------- */
.hero {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(var(--header-h) + clamp(32px, 6vh, 72px)) var(--gutter) 0;
}
.hero { min-height: 100svh; padding-bottom: clamp(56px, 9vh, 110px); }
/* STEP presents (big, top); High Lander is "featuring technology from" (segmented build, below the copy) */
.hero__k { font-size: 12px; font-weight: 600; color: var(--flag-red); letter-spacing: .04em; text-align: center; }
.hero__step { display: block; width: clamp(220px, 23vw, 360px); height: auto; margin-top: 12px; }
.hero__feat { margin-top: clamp(26px, 4vh, 44px); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero__hl { width: clamp(220px, 21vw, 320px); }
.hero__hl svg { display: block; width: 100%; height: auto; }
.hero__title {
  margin-top: clamp(26px, 4.5vh, 52px); max-width: none;
  font-size: clamp(32px, 4.1vw, 66px); font-weight: 700; line-height: 1.04; letter-spacing: -0.03em;
  text-align: center; text-wrap: balance; color: var(--hl-ink);
}
.hero__title .nw { white-space: nowrap; }
.hero__sub {
  margin-top: 14px; max-width: 46ch; text-align: center; text-wrap: balance;
  font-size: clamp(16px, 1.35vw, 21px); font-weight: 500; line-height: 1.35; color: var(--hl-ink-2);
}
.hero__facts {
  margin-top: clamp(30px, 5vh, 56px);
  display: flex; align-items: flex-start; justify-content: center; flex-wrap: wrap; gap: 18px clamp(28px, 3.4vw, 56px);
}
.fact {
  display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 3px; align-content: start;
  padding-right: clamp(28px, 3.4vw, 56px); border-right: 1px solid rgba(18,18,18,.18);
}
.fact > :not(.fact__i) { grid-column: 2; }
.fact__i { grid-row: 1 / span 3; width: 24px; height: 24px; margin-top: 2px; fill: none; stroke: var(--flag-blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hero__facts > .btn { align-self: center; }
.fact__k { font-size: 12px; font-weight: 600; color: var(--flag-red); letter-spacing: .04em; }
.fact__v { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.fact__s { font-size: 15px; color: var(--hl-ink-2); text-decoration: none; }
a.fact__s { text-decoration: underline; text-decoration-color: rgba(18,18,18,.25); text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { a.fact__s:hover { color: var(--hl-blue); text-decoration-color: currentColor; } }
.is-loading .hero__k, .is-loading .hero__step, .is-loading .hero__title, .is-loading .hero__sub,
.is-loading .hero__feat, .is-loading .hero__facts { opacity: 0; }

/* HL brand background language (blur orbs + diagonal pill strokes) in US flag colours */
.hero__bg { position: absolute; z-index: -1; inset: 0 0 -24vh 0; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%); mask-image: linear-gradient(180deg, #000 62%, transparent 100%); }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); }
.orb--navy { width: 46vw; height: 46vw; right: -14vw; top: -18vw; background: radial-gradient(circle, rgba(10,49,97,.42), rgba(10,49,97,0) 68%); }
.orb--red  { width: 40vw; height: 40vw; left: -15vw; top: 18vh; background: radial-gradient(circle, rgba(179,25,66,.26), rgba(179,25,66,0) 68%); }
.orb--sky  { width: 30vw; height: 30vw; left: 38vw; top: -14vw; background: radial-gradient(circle, rgba(203,210,255,.6), rgba(203,210,255,0) 70%); }
.comet { position: absolute; height: 26px; border-radius: 999px; transform: rotate(-49deg); transform-origin: 0 50%; }
.comet--red  { background: linear-gradient(90deg, var(--flag-red) 0%, rgba(179,25,66,.55) 45%, rgba(179,25,66,0) 100%); box-shadow: 0 0 0 9px rgba(179,25,66,.08); }
.comet--navy { background: linear-gradient(90deg, var(--flag-blue) 0%, rgba(10,49,97,.5) 45%, rgba(10,49,97,0) 100%); box-shadow: 0 0 0 9px rgba(10,49,97,.07); }
/* strokes rise from behind the reel frame or leave through the top corners — never across the lockup */
.comet--a { width: 22vw; left: -2vw;  top: 88vh; }
.comet--b { width: 14vw; left: 3vw;   top: 92vh; height: 13px; }
.comet--c { width: 22vw; left: 86vw;  top: 96vh; }
.comet--d { width: 15vw; left: 87vw;  top: 12vh; height: 12px; }

/* ---------- 2. about: description + footage ---------- */
.about {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 96px); align-items: center;
  padding: clamp(40px, 5vw, 84px) var(--gutter) clamp(96px, 11vw, 170px);
}
.about__text {
  font-size: clamp(22px, 2.15vw, 36px); font-weight: 500; line-height: 1.22; letter-spacing: -0.018em;
  max-width: 30ch; padding-left: clamp(0px, 3vw, 56px);
}
.about__text .w { color: var(--hl-ghost); }
.about__media { min-width: 0; padding-right: clamp(0px, 3vw, 56px); }
/* Product UI is never cropped. The frame is a thin screen bezel: its padding keeps the video clear of
   the rounded corners, and the 16:10 screen holds the reel (16:10 canvas) and the 2:1 Orion loop with
   bars only top and bottom, in the frame colour, so the two match. */
.reel__frame {
  position: relative; overflow: hidden; padding: var(--bezel);
  border-radius: var(--radius);
  background: var(--screen-bg); box-shadow: 0 40px 80px -48px rgba(10,49,97,.55);
}
.reel__video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; }
/* experience video inside the Orion app: drone footage fills the screen, the app chrome (one PNG built from the
   Figma elements by Pipeline/orion_frame/build_overlay.py, 16:10) sits on top */
.orion-ui { position: relative; overflow: hidden; border-radius: calc(var(--radius) - var(--bezel) / 2); isolation: isolate; }
.orion-ui__video { position: relative; z-index: 1; object-fit: cover; }
/* own stacking + GPU layer: iOS Safari can paint a playing <video> above un-layered siblings */
.orion-ui__chrome { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; max-width: none; pointer-events: none;
  transform: translateZ(0); -webkit-transform: translateZ(0); }

/* ---------- section titles ---------- */
.section-title {
  font-size: clamp(34px, 3.6vw, 60px); font-weight: 700; line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance;
}

/* ---------- 3. what you'll experience ----------
   Orion loop on the left (same frame size as the reel), the eight items orbiting the title on the right.
   Each item floats (GSAP); on hover the sentence clears and its brand icon grows. */
.experience {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 96px); align-items: center;
  padding: 0 var(--gutter) clamp(80px, 9vw, 140px);
}
.experience__media { min-width: 0; padding-left: clamp(0px, 3vw, 56px); }
/* positions (title + 8 items) are computed in main.js from measured sizes: tight around the title,
   no overlaps, centred in the column; below 900px it falls back to the static grid */
.xp-orbit { position: relative; min-width: 0; width: min(100% - clamp(0px, 3vw, 56px), 760px); justify-self: center; }
.xp-orbit__title {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: min(32%, 240px);
  text-align: center; font-size: clamp(28px, 2.6vw, 42px);
}
.xp { position: absolute; inset: 0; }
/* left/top are the item's top-left corner (set in JS). No CSS translate here: GSAP folds `translate`
   into its own x/y when the float starts, which would drop the centring offset. */
.xp__item { position: absolute; left: 0; top: 0; width: 26%; }
.xp__in { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.xp__text {
  font-size: clamp(13.5px, 1vw, 16px); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em;
  text-wrap: balance;
  transition: opacity .3s cubic-bezier(.22,1,.36,1), translate .3s cubic-bezier(.22,1,.36,1);
}
.xp__icon {
  width: clamp(50px, 4.4vw, 66px); height: auto; aspect-ratio: 1; object-fit: contain;
  transition: transform .34s cubic-bezier(.22,1,.36,1);
}
@media (hover: hover) and (pointer: fine) {
  .xp__in { cursor: default; }
  .xp__in:hover .xp__text { opacity: 0; translate: 0 -8px; }
  .xp__in:hover .xp__icon { transform: translateY(var(--lift, -30px)) scale(2.1); }
}

/* ---------- 5. agenda ---------- */
.agenda { position: relative; overflow: hidden; padding: clamp(110px, 12vw, 190px) var(--gutter); }
.agenda__bg { position: absolute; inset: 0; z-index: 0; }
.agenda__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; filter: saturate(.85) contrast(1.05); }
.agenda__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--hl-bg) 0%, rgba(248,248,248,.18) 20%, rgba(248,248,248,.18) 80%, var(--hl-bg) 100%);
}
.agenda__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 120px); align-items: center;
}
.agenda__date {
  display: flex; flex-direction: column; white-space: nowrap;
  font-weight: 700;
  font-size: clamp(46px, 5.4vw, 98px); line-height: .98; letter-spacing: -0.035em;
}
.agenda__date span:last-child { color: var(--hl-blue); }
.agenda__when { padding-left: clamp(0px, 7.5vw, 150px); }
.agenda__when .section-title { font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--flag-red); margin-bottom: 18px; }
.agenda__time { margin-top: 14px; font-size: clamp(24px, 2.4vw, 40px); font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.agenda__venue { margin-top: 30px; font-style: normal; display: flex; flex-direction: column; font-size: 17px; line-height: 1.55; }
.agenda__venue strong { font-weight: 700; }
.agenda__venue a { margin-top: 6px; font-weight: 600; color: var(--hl-blue); text-underline-offset: 3px; }
.agenda__arrival { margin-top: 18px; max-width: 34ch; font-size: 15px; color: #3d3d43; }
.flag-rule { margin-top: 16px; display: flex; flex-direction: column; gap: 7px; width: 132px; }
.flag-rule i { display: block; height: 7px; border-radius: 4px; background: var(--flag-blue); }
.flag-rule i:last-child { background: var(--flag-red); width: 64%; }
.agenda__list { counter-reset: ag; border-top: 1px solid rgba(18,18,18,.22); padding-top: 0; }
.agenda__list li {
  counter-increment: ag; display: grid; grid-template-columns: 3.2em 1fr; align-items: center;
  padding: clamp(18px, 2vw, 28px) 0; border-bottom: 1px solid rgba(18,18,18,.22);
  font-size: clamp(22px, 2.35vw, 38px); font-weight: 600; line-height: 1.14; letter-spacing: -0.02em; color: var(--flag-red);
  text-wrap: balance;
}
.agenda__list li::before {
  content: counter(ag, decimal-leading-zero); font-size: .42em; line-height: 1; font-weight: 600; color: var(--hl-blue);
  font-variant-numeric: tabular-nums; letter-spacing: 0;
}

/* ---------- 6. image grid ---------- */
.grid { display: flex; flex-direction: column; gap: 10px;
  padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(96px, 12vw, 170px); }
.grid__row { display: flex; gap: 10px; height: clamp(320px, 36vw, 620px); }
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius); background: #1a1a1a;
  flex: 0 0 auto; flex-basis: calc((100% - 10px) * var(--b, .5));
  transition: flex-basis .9s var(--ease-out);
}
.grid__row > .tile:first-child { --b: .64; }
.grid__row > .tile:last-child { --b: .36; }
.grid__row--flip > .tile:first-child { --b: .36; }
.grid__row--flip > .tile:last-child { --b: .64; }
.tile img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.04);
  transition: filter .7s var(--ease-out);
}
.tile.is-colour img { filter: grayscale(0) contrast(1); }
@media (hover: hover) and (pointer: fine) {
  .tile:hover img { filter: grayscale(0) contrast(1); }
}

/* ---------- 6. partners, grouped by role (client wireframe): centred stack, hosted > featuring > additional ---------- */
.partners { padding: 0 var(--gutter) clamp(96px, 11vw, 170px); display: grid; justify-items: center; }
.tier {
  width: min(100%, 760px); display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: clamp(26px, 3vw, 40px) 0; text-align: center;
}
.tier + .tier { border-top: 1px solid rgba(18,18,18,.16); }
.tier__label { font-size: 12px; font-weight: 600; color: var(--flag-red); letter-spacing: .04em; text-wrap: balance; }
.tier__logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; row-gap: 10px; }
.tier__logos li { display: flex; align-items: center; padding: 0 clamp(22px, 2.6vw, 40px); }
.tier__logos--split li + li { border-left: 1px solid rgba(18,18,18,.18); }
.tier__logos img { max-width: none; }
.tier--minor .tier__logos img { filter: grayscale(1); opacity: .72; }
.tier__more { font-size: 15px; font-weight: 500; color: var(--hl-ink-2); }

/* ---------- 7. RSVP ---------- */
.rsvp {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 110px); align-items: start;
  margin: 0 var(--gutter); padding: clamp(48px, 6vw, 96px) clamp(20px, 5vw, 88px);
  border-radius: 22px; background: #fff; overflow: hidden;
  box-shadow: 0 1px 0 rgba(18,18,18,.06), 0 50px 100px -60px rgba(10,49,97,.45);
  scroll-margin-top: calc(var(--header-h) + 24px);
  z-index: 4; /* its shadow sits over the closing section instead of being cut by it */
}
.rsvp::before { content: ""; position: absolute; z-index: -1; width: 46vw; height: 46vw; left: -18vw; bottom: -26vw;
  border-radius: 50%; background: radial-gradient(circle, rgba(203,210,255,.75), rgba(203,210,255,0) 66%); filter: blur(40px); }
.rsvp__title { font-size: clamp(40px, 4.6vw, 78px); font-weight: 700; line-height: .98; letter-spacing: -0.035em; }
.rsvp__lede { margin-top: 20px; max-width: 36ch; font-size: 18px; color: #3d3d43; }
.rsvp__facts { margin: 34px 0 0; display: grid; gap: 14px; }
.rsvp__facts div { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding-top: 14px; border-top: 1px solid rgba(18,18,18,.12); }
.rsvp__facts dt { font-size: 13px; font-weight: 600; color: var(--flag-red); padding-top: 2px; }
.rsvp__facts dd { margin: 0; font-size: 16px; font-weight: 500; }
.rsvp__form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--hl-ink-2); }
.field input {
  width: 100%; font: 400 16px/1.3 var(--font-sans); color: var(--hl-ink);
  padding: 15px 16px; border-radius: 12px; border: 1px solid #d5d7e0; background: #fafafc;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.field input:focus { outline: none; border-color: var(--hl-blue); background: #fff; box-shadow: 0 0 0 4px rgba(0,55,255,.12); }
.field input[aria-invalid="true"] { border-color: var(--flag-red); box-shadow: 0 0 0 4px rgba(179,25,66,.1); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.rsvp__form .btn { grid-column: 1 / -1; margin-top: 8px; }
.rsvp__status { grid-column: 1 / -1; min-height: 1.5em; font-size: 15px; font-weight: 500; }
.rsvp__status.is-error { color: var(--flag-red); }
.rsvp__status.is-ok { color: #1d7a46; }
.rsvp.is-done .rsvp__form { display: none; }
.rsvp__done { display: none; }
.rsvp.is-done .rsvp__done { display: block; }
.rsvp__done h3 { font-size: clamp(26px, 2.4vw, 38px); font-weight: 700; letter-spacing: -0.02em; }
.rsvp__done p { margin-top: 12px; font-size: 17px; color: #3d3d43; max-width: 40ch; }

/* ---------- 8. closing ---------- */
.closing { position: relative; z-index: 1; overflow: hidden; color: #fff; min-height: 128svh; display: flex; margin-top: clamp(40px, 6vw, 100px); }
.closing__bg { position: absolute; inset: 0; background: #0b1c6b;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%); mask-image: linear-gradient(180deg, transparent 0, #000 22%); }
.closing__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; filter: grayscale(.35); mix-blend-mode: luminosity; opacity: .9; }
.closing__bg::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, var(--hl-bg) 0%, rgba(248,248,248,.86) 10%, rgba(248,248,248,.45) 24%, rgba(248,248,248,0) 44%),
    linear-gradient(180deg, rgba(203,210,255,.35) 0%, rgba(0,55,255,.32) 30%, rgba(0,55,255,.6) 62%, rgba(8,22,90,.94) 100%);
}
.closing__bg::after { /* the brand coral comet from the color-story frames */
  content: ""; position: absolute; z-index: 2; right: -6vw; top: 22%;
  width: 34vw; height: 30px; border-radius: 999px; transform: rotate(-48deg);
  background: linear-gradient(90deg, rgba(255,108,76,0), rgba(255,108,76,.8));
  box-shadow: 0 0 0 12px rgba(255,197,186,.1);
}
.closing__stars {
  position: absolute; z-index: 2; right: 0; top: 0; width: 46%; height: 60%; opacity: .14;
  -webkit-mask-image: radial-gradient(120% 100% at 100% 0%, #000 20%, transparent 70%);
          mask-image: radial-gradient(120% 100% at 100% 0%, #000 20%, transparent 70%);
}
.closing__inner {
  position: relative; z-index: 3; width: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px));
}
.closing__line {
  font-size: clamp(56px, 11.6vw, 210px); font-weight: 500; line-height: .98; letter-spacing: -0.045em;
  padding-bottom: clamp(48px, 7vw, 110px); cursor: default;
}
.closing__line .ch { display: inline-block; will-change: transform; }
.closing__cta { align-self: flex-start; margin: calc(-1 * clamp(20px, 3vw, 60px)) 0 clamp(48px, 6vw, 96px); }
.footer {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--gutter);
  padding-top: 22px; border-top: 1px solid rgba(255,255,255,.28); font-size: 13px;
}
.footer__lockup { display: flex; align-items: center; gap: 14px; }
.footer__hl { height: 20px; width: auto; }
.footer__x { opacity: .85; font-size: 20px; line-height: 1; font-weight: 300; }
.footer__step { height: 34px; width: auto; }
.footer__addr { justify-self: center; opacity: .85; }
.footer__copy { opacity: .85; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .site-header__meta { display: none; }
}
/* 901-1100: the two side-by-side columns get too narrow for the orbit; stack both sections so the two
   videos stay the same size */
@media (min-width: 901px) and (max-width: 1100px) {
  .about, .experience { grid-template-columns: 1fr; gap: 48px; }
  .about__text { max-width: 34ch; }
  .about__media, .experience__media { width: min(100%, 720px); justify-self: center; padding: 0; }
  .xp-orbit { width: min(100%, 760px); }
}
@media (max-width: 900px) {
  :root { --header-h: 56px; }
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 56px); padding-bottom: 64px; }
  .hero__bg { inset: 0; } /* no bleed below the hero on phones: it ran under the logo marquee */
  .hero__step { width: min(58vw, 240px); }
  .hero__hl { width: min(60vw, 240px); }
  .hero__title { margin-top: 36px; font-size: clamp(30px, 8.6vw, 42px); }
  .hero__sub { margin-top: 12px; font-size: 16px; }
  .hero__title .nw--pair { white-space: normal; }
  .site-header__mark { gap: 9px; }
  .site-header__hl { width: 117px; height: 16px; }
  .site-header__step { width: 67px; height: 29px; transform: translateY(-4.1px); }
  .site-header__x { font-size: 14px; }
  .hero__facts { margin-top: 36px; flex-direction: column; align-items: stretch; width: 100%; gap: 0; }
  .fact { padding: 16px 0; border-right: 0; border-top: 1px solid rgba(18,18,18,.14); text-align: left; }
  .hero__facts .btn { margin-top: 20px; width: 100%; }
  .orb { filter: blur(44px); }
  .orb--navy { width: 90vw; height: 90vw; right: -40vw; top: -30vw; }
  .orb--red { width: 80vw; height: 80vw; left: -40vw; top: 20vh; }
  .comet--a { width: 26vw; left: -8vw; top: 13vh; height: 12px; } .comet--b { display: none; }
  .comet--c { width: 24vw; left: 88vw; top: 92vh; height: 12px; } .comet--d { width: 22vw; left: 80vw; top: 9vh; height: 10px; }
  .about { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 88px; gap: 32px; }
  .about__text { padding-left: 0; font-size: clamp(22px, 6vw, 28px); }
  .experience { grid-template-columns: 1fr; gap: 36px; padding-bottom: 88px; }
  .experience__media, .about__media { padding-left: 0; padding-right: 0; }
  .xp-orbit { width: auto; justify-self: stretch; min-height: 0; height: auto !important; }
  .xp-orbit__title { position: static; translate: none; width: auto; text-align: left; font-size: 40px; }
  .xp { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 30px 18px; margin-top: 28px; }
  .xp__item { position: static; width: auto !important; }
  .xp__text { font-size: 15px; }
  .xp__icon { width: 56px; }
  .agenda { padding-top: 96px; padding-bottom: 96px; }
  .agenda__inner { grid-template-columns: 1fr; }
  .agenda__when { padding-left: 0; }
  .agenda__date { font-size: clamp(48px, 14vw, 72px); }
  .agenda__list li { font-size: 22px; grid-template-columns: 2.6em 1fr; }
  .grid { padding-top: 24px; padding-bottom: 88px; gap: 8px; }
  .grid__row { flex-direction: column; height: auto; gap: 8px; }
  .tile { flex-basis: auto !important; aspect-ratio: var(--ar); } /* phones: whole photo, nothing cropped */
  .partners { padding-bottom: 88px; }
  .tier { gap: 10px; padding: 22px 0; }
  .tier__logos li { padding: 0 14px; }
  .tier__logos { zoom: .68; }
  .rsvp { grid-template-columns: 1fr; margin: 0 8px; padding: 40px 20px; border-radius: 18px; }
  .rsvp__form { grid-template-columns: 1fr; }
  .closing { min-height: 112svh; }
  .closing__line { font-size: clamp(54px, 17vw, 96px); padding-bottom: 40px; }
  .closing__cta { margin-top: 0; margin-bottom: 56px; }
  .closing__stars { width: 90%; height: 45%; }
  .closing__bg::after { width: 48vw; height: 22px; top: 12%; right: -10vw; opacity: .8; }
  .footer { grid-template-columns: 1fr; justify-items: start; }
  .footer__addr { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .tile img, .tile { transition-duration: .01s; }
}

/* ---------- dark theme: dark and semi-dark navy blues (not black). Opt-in via ?theme=dark (preview) ----------
   Token swap first; the rules below only cover the few literal colours (lines, the RSVP card, fields, logos). */
:root[data-theme="dark"] {
  color-scheme: dark;
  --hl-bg: #0b1a33;          /* page: deep navy */
  --hl-bg-2: #12264a;
  --hl-white: #10224a;       /* raised surfaces */
  --hl-ink: #eef2fb;
  --hl-ink-2: #a9b6d3;
  --hl-ghost: #2f4469;       /* unread words in the statement */
  --hl-blue: #7ea6ff;        /* links, agenda numbers: readable on navy */
  --flag-blue: #5d8dff;      /* icon strokes, flag rule, blue button fill */
  --flag-red: #e6385a;       /* labels + red buttons: brighter so it reads on navy */
  --line: rgba(206, 220, 255, .16);
  --card: #10244a;
  --field: #0d1f40;
  --screen-bg: #060e1f;
}
[data-theme="dark"] .fact { border-right-color: var(--line); border-top-color: var(--line); }
[data-theme="dark"] a.fact__s { text-decoration-color: rgba(206,220,255,.3); }
[data-theme="dark"] .orb--navy { background: radial-gradient(circle, rgba(70,120,230,.38), rgba(70,120,230,0) 68%); }
[data-theme="dark"] .orb--sky { background: radial-gradient(circle, rgba(120,150,255,.22), rgba(120,150,255,0) 70%); }
[data-theme="dark"] .orb--red { background: radial-gradient(circle, rgba(230,56,90,.24), rgba(230,56,90,0) 68%); }
[data-theme="dark"] .comet--navy { background: linear-gradient(90deg, #4f7fe8 0%, rgba(79,127,232,.5) 45%, rgba(79,127,232,0) 100%); box-shadow: 0 0 0 9px rgba(79,127,232,.1); }
[data-theme="dark"] .reel__frame { box-shadow: 0 40px 80px -40px rgba(0,0,0,.6), 0 0 0 1px var(--line); }
[data-theme="dark"] .agenda__bg img { opacity: .28; }
[data-theme="dark"] .agenda__bg::after { background: linear-gradient(180deg, var(--hl-bg) 0%, rgba(11,26,51,.35) 20%, rgba(11,26,51,.35) 80%, var(--hl-bg) 100%); }
[data-theme="dark"] .agenda__arrival, [data-theme="dark"] .rsvp__lede, [data-theme="dark"] .rsvp__done p { color: var(--hl-ink-2); }
[data-theme="dark"] .agenda__list, [data-theme="dark"] .agenda__list li { border-color: var(--line); }
[data-theme="dark"] .tier + .tier { border-top-color: var(--line); }
[data-theme="dark"] .tier__logos--split li + li { border-left-color: var(--line); }
[data-theme="dark"] .rsvp { background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 50px 100px -60px rgba(0,0,0,.7); }
[data-theme="dark"] .rsvp::before { background: radial-gradient(circle, rgba(93,141,255,.28), rgba(93,141,255,0) 66%); }
[data-theme="dark"] .rsvp__facts div { border-top-color: var(--line); }
[data-theme="dark"] .field input { background: var(--field); border-color: rgba(206,220,255,.22); color: var(--hl-ink); }
[data-theme="dark"] .field input:focus { background: #0f2550; box-shadow: 0 0 0 4px rgba(126,166,255,.18); }
[data-theme="dark"] .rsvp__status.is-ok { color: #5fd39a; }
[data-theme="dark"] .closing__bg { background: #081631; }
/* hero STEP logo: STEP's own dark-background file (white contours, white tagline), swapped in by main.js */
/* partner logos turn white (masks of each logo's alpha, see main.js) */
[data-theme="dark"] .tier__logo { display: block; background: #fff;
  -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
[data-theme="dark"] .tier--minor .tier__logo { opacity: .7; }
/* experience icons on navy: dark-variant files (media/icons/exp-N-dark.*) + one shared soft glow per colour family */
[data-theme="dark"] .xp__item:nth-child(odd) .xp__icon { filter: brightness(1.15) drop-shadow(0 0 12px rgba(110,140,255,.32)); }
[data-theme="dark"] .xp__item:nth-child(7) .xp__icon { filter: brightness(.95) saturate(1.3) drop-shadow(0 0 12px rgba(110,140,255,.32)); } /* the eye's silver disc ran hot */
[data-theme="dark"] .xp__item:nth-child(even) .xp__icon { filter: drop-shadow(0 0 12px rgba(240,85,44,.26)); }
