/* ══════════════════════════════════════════════════════════════
   ULTRA — scroll-controlled hero film
   Design system: near-black, one signal-orange accent, huge
   tight-tracked display type. All animated properties are
   opacity / transform so the film stays on the compositor.
   ══════════════════════════════════════════════════════════════ */

:root {
  --bg: #050506;
  --bg-2: #0b0b0d;
  --light: #c2c2c5;              /* matches the film's final frame */
  --ink: #111113;
  --accent: #ff6b1f;             /* signal orange, from the strap   */
  --accent-dim: #e2551f;
  --text: #f4f4f5;
  --dim: rgba(244, 244, 245, 0.55);
  --stage-h: 100vh;              /* overwritten by JS in px         */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;     /* iOS must not inflate our type */
  text-size-adjust: 100%;
}

html.menu-lock { overflow: hidden; }   /* menu open — page behind must not scroll */

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* keyboard users must always see where they are */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

img { display: block; max-width: 100%; }

::selection { background: var(--accent); color: #050506; }

/* ── loader ──────────────────────────────────────────────── */
#loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px;
  transition: opacity 0.9s ease;
}
#loader.done { opacity: 0; pointer-events: none; }
#loader .mark {
  font-size: 14px; letter-spacing: 0.55em; text-indent: 0.55em;
  color: var(--accent); text-transform: uppercase; font-weight: 600;
}
#loader .bar {
  width: 190px; height: 1px; background: rgba(255, 107, 31, 0.22);
  overflow: hidden; position: relative;
}
#loader .bar i {
  position: absolute; inset: 0 auto 0 0; width: 0%;
  background: var(--accent); transition: width 0.18s linear;
}
#loader #loadmsg {
  font-size: 11px; letter-spacing: 0.28em; text-indent: 0.28em;
  text-transform: uppercase; color: rgba(244, 244, 245, 0.35);
}

/* ── sticky nav ──────────────────────────────────────────── */
#brandnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 16px calc(clamp(16px, 4vw, 44px) + env(safe-area-inset-right, 0px))
              16px calc(clamp(16px, 4vw, 44px) + env(safe-area-inset-left, 0px));
  padding-top: calc(16px + env(safe-area-inset-top, 0px));
  background: rgba(5, 5, 6, 0.72);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(244, 244, 245, 0.07);
  opacity: 0; pointer-events: none;
  transform: translate3d(0, -100%, 0);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
#brandnav.on { opacity: 1; pointer-events: auto; transform: translate3d(0, 0, 0); }
#brandnav .mark {
  font-size: 13px; letter-spacing: 0.42em; text-indent: 0.42em;
  color: var(--accent); text-transform: uppercase; font-weight: 600;
  text-decoration: none;
}
#brandnav .links { display: flex; gap: clamp(14px, 2.4vw, 34px); }
#brandnav a {
  color: var(--dim); text-decoration: none;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  transition: color 0.25s ease;
}
#brandnav a:hover { color: var(--text); }
#brandnav .navcta {
  border: 1px solid rgba(255, 107, 31, 0.6); border-radius: 100px;
  padding: 8px 20px; color: var(--accent);
}
#brandnav .navcta:hover { background: var(--accent); color: #050506; }

/* ── hero title — laid over the film's dark opening frames,
      recedes as the first scroll begins (opacity driven by JS) ── */
#herotitle {
  position: absolute; z-index: 3;
  left: clamp(20px, 5vw, 58px);
  bottom: calc(clamp(56px, 11vh, 96px) + env(safe-area-inset-bottom, 0px));
  max-width: min(46ch, 84vw);
  pointer-events: none;
  will-change: opacity, transform;
}
#herotitle .kicker {
  font-size: 11px; letter-spacing: 0.4em; text-indent: 0.4em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 22px;
}
#herotitle h1 {
  font-size: clamp(56px, 9vw, 132px);
  font-weight: 700; letter-spacing: -0.055em; line-height: 0.9;
}
#herotitle .lead {
  margin-top: 20px; color: rgba(244, 244, 245, 0.8);
  font-size: clamp(15px, 1.5vw, 20px); line-height: 1.7;
}
@media (max-width: 700px) {
  #herotitle { bottom: calc(clamp(64px, 13vh, 110px) + env(safe-area-inset-bottom, 0px)); max-width: 86vw; }
  #herotitle .kicker { margin-bottom: 14px; font-size: 10px; }
  #herotitle .lead { margin-top: 14px; line-height: 1.55; }
}

/* ── the pinned film ─────────────────────────────────────── */
#track {
  position: relative;
  height: 1000vh;              /* fallback until JS measures the film */
}
#stage {
  position: sticky; top: 0;
  height: var(--stage-h);      /* exact px from JS — no vh drift */
  width: 100%;
  overflow: hidden;
  background: #000;
  isolation: isolate;          /* keep blend modes inside the stage */
}
#hero {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;           /* fills the viewport, always centred */
  object-position: 50% 50%;
  display: block;
  background: #000;
}

/* vignette — fades away as the film brightens, so the final
   frame is held completely untouched before the pin releases */
#grade {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(ellipse 75% 78% at 50% 50%, transparent 42%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.42), transparent 16%, transparent 80%, rgba(0, 0, 0, 0.42));
  opacity: 1;
  will-change: opacity;
}

/* HUD — difference-blended so it stays legible over both the
   near-black opening and the light-grey closing frames */
#hud {
  position: absolute; inset: 0; z-index: 3;
  pointer-events: none;
  mix-blend-mode: difference;
  color: #fff;
}
.hud-top {
  position: absolute; left: clamp(18px, 4vw, 46px);
  top: calc(clamp(18px, 4vh, 42px) + env(safe-area-inset-top, 0px));
  right: clamp(18px, 4vw, 46px);
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  opacity: 0.7;
}
.hud-mark { font-weight: 700; letter-spacing: 0.45em; }

#chapters {
  position: absolute; left: clamp(18px, 5vw, 58px); bottom: clamp(48px, 11vh, 96px);
}
.chapter {
  position: absolute; left: 0; bottom: 0; white-space: nowrap;
  display: flex; align-items: baseline; gap: 14px;
  font-size: clamp(28px, 4.4vw, 62px);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1;
  opacity: 0;
  will-change: opacity, transform;
}
.chapter i {
  font-style: normal; font-size: clamp(10px, 1vw, 13px);
  font-weight: 600; letter-spacing: 0.28em; opacity: 0.75;
  transform: translateY(-0.35em);
}

#cue {
  position: absolute; left: 50%;
  bottom: calc(clamp(20px, 4vh, 34px) + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  font-size: 10px; letter-spacing: 0.34em; text-indent: 0.34em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.4s ease;
}
#cue i {
  display: block; width: 34px; height: 1px; background: currentColor;
  transform-origin: left center;
  animation: sweep 1.7s ease-in-out infinite;
}
@keyframes sweep {
  0%, 100% { transform: translate3d(0, 0, 0) scaleX(0.4); opacity: 0.4; }
  50% { transform: translate3d(14px, 0, 0) scaleX(1); opacity: 1; }
}

/* ── light hand-off section (continues the final frame) ──── */
#lineup {
  position: relative;
  background: radial-gradient(125% 95% at 50% 22%, #dededf 0%, #c3c3c6 46%, #a9a9ad 100%);
  color: var(--ink);
  padding: clamp(70px, 14vh, 150px) clamp(20px, 7vw, 90px) clamp(120px, 26vh, 260px);
}
/* Colour-matched to the film's final row of pixels (sampled with ffmpeg:
   #a9a8a8 → #9a9897 across the width), so the released pin hands over to
   this section with no tonal step. Fades into the section's own backdrop. */
.seam {
  position: absolute; left: 0; right: 0; top: 0; z-index: 0;
  height: clamp(150px, 28vh, 280px);
  pointer-events: none;
  background: linear-gradient(to right,
    #aaaaaa 0%, #a9a8a8 17%, #a4a2a3 34%, #9e9c9c 50%,
    #9a9798 67%, #9a9897 84%, #9a9897 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0) 100%);
}
.lineup-grid { position: relative; z-index: 1; }
.lineup-grid {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(30px, 6vw, 80px); align-items: center;
}
#lineup .kicker { color: var(--accent-dim); }
#lineup h2 {
  font-size: clamp(36px, 5.4vw, 80px); font-weight: 650;
  letter-spacing: -0.035em; line-height: 1.0;
}
#lineup .lead {
  margin-top: 20px; color: rgba(17, 17, 19, 0.62);
  font-size: clamp(14px, 1.3vw, 18px); line-height: 1.7; max-width: 42ch;
}
#lineup figure img {
  width: 100%; border-radius: 12px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.28);
}
.light-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: clamp(140px, 30vh, 320px);
  background: linear-gradient(to bottom, rgba(5, 5, 6, 0), var(--bg));
  pointer-events: none;
}
@media (max-width: 860px) { .lineup-grid { grid-template-columns: 1fr; } }

.kicker {
  font-size: 11px; letter-spacing: 0.36em; text-indent: 0.36em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 18px;
}

/* ── brand sections ──────────────────────────────────────── */
.bp {
  position: relative; max-width: 1500px; margin: 0 auto;
  padding: clamp(70px, 15vh, 170px) clamp(20px, 7vw, 90px);
}
.bp h2 {
  font-weight: 650; letter-spacing: -0.03em; line-height: 1.0;
  font-size: clamp(32px, 4.6vw, 66px);
}
.bp h2 .accent { color: var(--accent); }
.bp p.lead {
  color: var(--dim); font-size: clamp(14px, 1.25vw, 18px);
  line-height: 1.75; max-width: 46ch;
}
.bp .kicker { color: var(--accent); }

[data-reveal] {
  opacity: 0; transform: translate3d(0, 26px, 0);
  transition: opacity 0.85s cubic-bezier(0.2, 0.6, 0.2, 1),
              transform 0.85s cubic-bezier(0.2, 0.6, 0.2, 1);
}
[data-reveal].in { opacity: 1; transform: translate3d(0, 0, 0); }

.bp-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 6vw, 80px); align-items: center;
}
.bp-split img {
  width: 100%; border-radius: 8px;
  -webkit-mask-image: radial-gradient(ellipse 88% 88% at 50% 50%, #000 58%, transparent 100%);
  mask-image: radial-gradient(ellipse 88% 88% at 50% 50%, #000 58%, transparent 100%);
}
.bp-split.flip > :first-child { order: 2; }
.bp-split h2 { margin-bottom: 18px; }
@media (max-width: 860px) {
  .bp-split { grid-template-columns: 1fr; }
  .bp-split.flip > :first-child { order: 0; }
}

.bp-manifesto { text-align: center; padding-top: clamp(90px, 20vh, 220px); padding-bottom: clamp(90px, 20vh, 220px); }
.bp-manifesto h2 { font-size: clamp(38px, 7vw, 108px); max-width: 15ch; margin: 0 auto; }

.bp-stats {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(34px, 7vw, 90px); text-align: center;
}
.bp-stats .num {
  font-weight: 650; letter-spacing: -0.03em;
  font-size: clamp(34px, 5vw, 74px); color: var(--accent);
}
.bp-stats .lbl {
  margin-top: 8px; font-size: 10px; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--dim);
}

.bp-specs { display: flex; justify-content: center; }
.bp-specs > div { width: 100%; max-width: 780px; }
.bp-specs table { width: 100%; border-collapse: collapse; }
.bp-specs td {
  padding: 16px 8px; border-bottom: 1px solid rgba(244, 244, 245, 0.1);
  font-size: clamp(13px, 1.15vw, 16px);
}
.bp-specs td:first-child {
  color: var(--dim); letter-spacing: 0.14em; text-transform: uppercase; font-size: 11px;
}
.bp-specs td:last-child { text-align: right; }

.bp-quote { text-align: center; }
.bp-quote blockquote {
  font-size: clamp(24px, 3.4vw, 46px); font-weight: 550;
  letter-spacing: -0.02em; line-height: 1.22; max-width: 22ch; margin: 0 auto;
}
.bp-quote cite {
  display: block; margin-top: 24px; font-style: normal;
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--dim);
}

.bp-gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(10px, 1.4vw, 18px); }
.bp-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.bp-gallery .g1 { grid-column: span 7; aspect-ratio: 16 / 10; }
.bp-gallery .g2 { grid-column: span 5; aspect-ratio: 4 / 5; }
.bp-gallery .g3 { grid-column: span 5; aspect-ratio: 1 / 1; }
.bp-gallery .g4 { grid-column: span 7; aspect-ratio: 16 / 10; }
@media (max-width: 860px) { .bp-gallery img { grid-column: span 12 !important; aspect-ratio: 16 / 10; } }

.bp-ctaband { text-align: center; }
.bp-ctaband .lead { margin-left: auto; margin-right: auto; }

.cta {
  display: inline-block; padding: 15px 40px;
  border: 1px solid var(--accent); border-radius: 100px;
  color: var(--accent); text-decoration: none;
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.cta:hover { background: var(--accent); color: #050506; transform: translate3d(0, -2px, 0); }
.dark-cta { border-color: rgba(17, 17, 19, 0.5); color: var(--ink); }
.dark-cta:hover { background: var(--ink); color: #fff; }

/* ── footer ──────────────────────────────────────────────── */
.bp-footer { border-top: 1px solid rgba(244, 244, 245, 0.08); padding: clamp(50px, 9vh, 100px) clamp(20px, 7vw, 90px) calc(50px + env(safe-area-inset-bottom, 0px)); }
.bp-footer .cols {
  display: grid; grid-template-columns: 2fr repeat(3, 1fr);
  gap: clamp(24px, 5vw, 60px); max-width: 1500px; margin: 0 auto;
}
.bp-footer .footmark {
  letter-spacing: 0.42em; text-indent: 0.42em; text-transform: uppercase;
  color: var(--accent); font-size: 13px; font-weight: 600;
}
.bp-footer .lead { margin-top: 16px; font-size: 13px; line-height: 1.7; color: var(--dim); max-width: 34ch; }
.bp-footer h4 {
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(244, 244, 245, 0.4); margin-bottom: 16px;
}
.bp-footer a {
  display: block; color: var(--dim); text-decoration: none;
  font-size: 14px; margin-bottom: 11px; transition: color 0.25s;
}
.bp-footer a:hover { color: var(--text); }
.bp-footer .fine {
  margin-top: clamp(40px, 8vh, 80px); text-align: center;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(244, 244, 245, 0.3);
}
@media (max-width: 860px) { .bp-footer .cols { grid-template-columns: 1fr 1fr; } }

/* ── motion preferences ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  #cue i { animation: none; }
  #brandnav { transition: none; }
}
