/* =========================================================
   N.I.D CLUB — one line, two elements
   Palette: paper (snow) · ink · deep (ocean night) · signal
   ========================================================= */

:root {
  --paper: #ECEBE6;
  --ink: #0C0C0D;
  --deep: #070B0F;
  --signal: #FF4D1A;            /* rescue-gear orange: used for one thing — "you are here" */

  /* live theme — interpolated by JS between paper/ink and deep/paper */
  --bg: var(--paper);
  --fg: var(--ink);
  --muted: color-mix(in srgb, var(--fg) 56%, transparent);
  --faint: color-mix(in srgb, var(--fg) 14%, transparent);
  --veil: color-mix(in srgb, var(--bg) 72%, transparent);

  --sans: 'Inter Tight', system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 76px;
}

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

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; }
::selection { background: var(--signal); color: var(--paper); }

@media (hover: hover) and (pointer: fine) {
  body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor label { cursor: none; }
}

/* ---------- type ---------- */
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.mono { font-family: var(--mono); font-size: 11px; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; font-weight: 400; }
.label { color: var(--muted); display: inline-block; margin-bottom: 28px; }

.display {
  font-size: clamp(88px, 21vw, 360px);
  line-height: .8;
  letter-spacing: -.065em;
  font-weight: 600;
  margin-left: -.04em;
}
.display em { letter-spacing: -.035em; }
.display--sm { font-size: clamp(56px, 11vw, 190px); line-height: .86; }

.h2 { font-size: clamp(40px, 6.6vw, 112px); line-height: .92; letter-spacing: -.045em; font-weight: 500; }
.h3 { font-size: clamp(26px, 2.6vw, 40px); line-height: 1; letter-spacing: -.03em; font-weight: 500; }
.lead { font-size: clamp(22px, 2.4vw, 38px); line-height: 1.12; letter-spacing: -.025em; font-weight: 400; }
.lead b { font-weight: 600; }
.body { font-size: clamp(15px, 1.1vw, 18px); line-height: 1.55; color: var(--muted); max-width: 46ch; }

/* split words */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .1em 0; margin: 0 -.06em -.1em 0; }
.wi { display: inline-block; will-change: transform; }

/* ---------- layers ---------- */
#webgl { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
#trail { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 90; pointer-events: none; mix-blend-mode: difference; }
main { position: relative; z-index: 2; }

.grain {
  position: fixed; inset: -50%; z-index: 89; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; mix-blend-mode: difference; color: #fff; display: none; }
body.has-cursor .cursor { display: block; }
.cursor-dot, .cursor-ring { position: absolute; left: 0; top: 0; border-radius: 50%; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; }
.cursor-ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid rgba(255,255,255,.55);
  display: grid; place-items: center; transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), background .4s, border-color .4s;
}
.cursor-label { font-family: var(--mono); font-style: normal; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #000; opacity: 0; transition: opacity .3s; }
.cursor.is-hover .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: #fff; }
.cursor.is-label .cursor-ring { width: 88px; height: 88px; margin: -44px 0 0 -44px; background: #fff; border-color: #fff; }
.cursor.is-label .cursor-label { opacity: 1; }
.cursor.is-down .cursor-ring { width: 28px; height: 28px; margin: -14px 0 0 -14px; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--paper); color: var(--ink);
  display: grid; place-items: center;
  clip-path: inset(0 0 0 0);
}
.loader-mark { width: min(28vw, 220px); overflow: visible; }
.loader-mark path { fill: none; stroke-width: 124; stroke-linecap: round; }
.loader-ghost { stroke: rgba(12,12,13,.07); }
.loader-path { stroke: var(--ink); }
.loader-foot { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 32px; display: flex; justify-content: space-between; }
.loader-count { font-variant-numeric: tabular-nums; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav-h);
  padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between;
  color: var(--fg);
  transition: transform .8s var(--ease);
}
.nav.is-hidden { transform: translateY(-110%); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 26px; height: 26px; color: var(--fg); }
.brand-name { font-weight: 600; letter-spacing: -.02em; font-size: 17px; }
.brand-name span { font-weight: 400; color: var(--muted); }

.nav-links { display: flex; gap: clamp(20px, 3vw, 44px); position: absolute; left: 50%; transform: translateX(-50%); }
.nav-links a { display: flex; align-items: baseline; gap: 6px; font-size: 15px; letter-spacing: -.01em; position: relative; }
.nav-links a .mono { font-size: 9px; color: var(--muted); }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-actions { display: flex; align-items: center; gap: 18px; }
.sound { display: flex; align-items: center; gap: 10px; padding: 8px 4px; }
.sound-bars { display: flex; align-items: center; gap: 2px; height: 14px; }
.sound-bars i { width: 2px; height: 3px; background: currentColor; border-radius: 1px; transition: height .3s; }
.sound[aria-pressed="true"] .sound-bars i { animation: bar 1s ease-in-out infinite; }
.sound[aria-pressed="true"] .sound-bars i:nth-child(2) { animation-delay: -.6s; }
.sound[aria-pressed="true"] .sound-bars i:nth-child(3) { animation-delay: -.2s; }
.sound[aria-pressed="true"] .sound-bars i:nth-child(4) { animation-delay: -.8s; }
.sound[aria-pressed="true"] .sound-bars i:nth-child(5) { animation-delay: -.4s; }
@keyframes bar { 0%, 100% { height: 3px; } 50% { height: 14px; } }

.pill {
  position: relative; display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  height: 40px; padding: 0 20px; border-radius: 99px; border: 1px solid var(--fg);
  font-size: 14px; letter-spacing: -.01em; isolation: isolate;
}
.pill--lg { height: 56px; padding: 0 30px; font-size: 16px; }
.pill-fill { position: absolute; inset: -1px; background: var(--fg); border-radius: inherit; transform: translateY(102%); transition: transform .6s var(--ease); z-index: -1; }
.pill-text { position: relative; transition: color .4s; }
.pill:hover .pill-fill { transform: translateY(0); }
.pill:hover .pill-text { color: var(--bg); }
.pill--solid { background: var(--fg); }
.pill--solid .pill-text { color: var(--bg); }
.pill--solid .pill-fill { background: var(--signal); }
.pill--solid:hover .pill-text { color: var(--paper); }
.magnetic { will-change: transform; }

.burger { display: none; width: 40px; height: 40px; position: relative; }
.burger i { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.burger i:first-child { top: 16px; } .burger i:last-child { top: 23px; }
.burger[aria-expanded="true"] i:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--bg); color: var(--fg);
  display: flex; flex-direction: column; justify-content: center; padding: var(--gutter);
  clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease); pointer-events: none;
}
.menu.is-open { clip-path: inset(0 0 0 0); pointer-events: auto; }
.menu-links a { display: flex; align-items: baseline; gap: 14px; font-size: clamp(56px, 16vw, 120px); letter-spacing: -.05em; line-height: 1; font-weight: 500; padding: 6px 0; }
.menu-links a .mono { font-size: 11px; color: var(--muted); }
.menu-foot { position: absolute; bottom: 32px; left: var(--gutter); color: var(--muted); }

/* ---------- HUD ---------- */
.hud {
  position: fixed; right: var(--gutter); top: 50%; z-index: 40; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: flex-end; gap: 14px; color: var(--fg);
  opacity: 0; transition: opacity 1s;
}
body.is-ready .hud { opacity: 1; }
.hud-mark { width: 46px; height: 46px; overflow: visible; }
.hud-mark path { fill: none; stroke-width: 124; stroke-linecap: round; }
.hud-ghost { stroke: var(--faint); }
.hud-fill { stroke: var(--fg); }
.hud-dot { fill: var(--signal); }
.hud-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 10px; }
.hud-ch { color: var(--fg); }
.hud-alt { color: var(--muted); font-variant-numeric: tabular-nums; }
.hud-alt b { font-weight: 500; color: var(--fg); }

/* ---------- shared section ---------- */
section { position: relative; padding: 0 var(--gutter); }
.section-head { margin-bottom: clamp(48px, 8vw, 120px); }
.kf { position: absolute; left: 0; width: 1px; height: 1px; pointer-events: none; }
.kf--end { top: calc(100% - 100vh); }
.kf--last { bottom: 0; }

/* ---------- hero ---------- */
.hero { height: 100vh; height: 100svh; min-height: 620px; }
.hero-side { position: absolute; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; }
.hero-side--l { left: var(--gutter); }
.hero-side--r { right: calc(var(--gutter) + 80px); align-items: flex-end; text-align: right; }
.hero-side .mono { color: var(--muted); }
.hero-side-word { font-size: 22px; letter-spacing: -.02em; position: relative; }
.hero-side-word::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.hero-side:hover .hero-side-word::after { transform: scaleX(1); transform-origin: left; }

.hero-bottom { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(28px, 5vh, 52px); display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.hero-title { font-size: clamp(54px, 8.6vw, 156px); line-height: .88; letter-spacing: -.055em; font-weight: 500; }
.hero-title em { letter-spacing: -.03em; }
.hero-aside { max-width: 340px; display: flex; flex-direction: column; gap: 28px; padding-bottom: 8px; }
.hero-copy { font-size: 15px; line-height: 1.5; color: var(--muted); }
.scroll-cue { display: flex; align-items: center; gap: 14px; }
.scroll-cue-line { width: 48px; height: 1px; background: var(--faint); position: relative; overflow: hidden; }
.scroll-cue-line::after { content: ""; position: absolute; inset: 0; background: var(--fg); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* ---------- marquee ---------- */
.marquee { position: relative; z-index: 2; overflow: hidden; padding: clamp(40px, 6vw, 90px) 0; border-top: 1px solid var(--faint); border-bottom: 1px solid var(--faint); }
.marquee-track { display: flex; align-items: center; width: max-content; will-change: transform; }
.marquee-track span { font-size: clamp(56px, 9vw, 150px); line-height: 1; letter-spacing: -.05em; font-weight: 500; padding: 0 .3em; }
.marquee-track svg { width: clamp(36px, 5vw, 80px); height: clamp(36px, 5vw, 80px); color: var(--fg); flex: none; }

/* ---------- manifesto ---------- */
.manifesto { height: 300vh; }
.manifesto-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; max-width: 1400px; }
.manifesto-text { font-size: clamp(40px, 6.8vw, 120px); line-height: .98; letter-spacing: -.05em; font-weight: 500; max-width: 15ch; }
.manifesto-text .wi { opacity: .1; transition: none; }
.manifesto-sign { margin-top: 40px; color: var(--muted); }

/* ---------- story ---------- */
.story { height: 400vh; }
.story-sticky { position: sticky; top: 0; height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 6vw; padding-top: var(--nav-h); }
.story-text .body { margin-top: 32px; }
.story-list { list-style: none; margin-top: 48px; display: grid; gap: 12px; }
.story-list li { color: var(--muted); opacity: .35; transition: opacity .6s, color .6s; display: flex; gap: 14px; }
.story-list li b { font-weight: 500; color: var(--fg); }
.story-list li.is-on { opacity: 1; color: var(--fg); }
.story-figure { position: relative; width: min(38vw, 64vh); aspect-ratio: 1; justify-self: center; margin-right: 60px; }
.story-svg { width: 100%; height: 100%; overflow: visible; }
.story-svg path { fill: none; stroke-width: 124; stroke-linecap: round; }
.story-ghost { stroke: var(--faint); stroke-width: 2 !important; stroke-dasharray: 6 10; }
.story-path { stroke: var(--fg); }
.story-tip { fill: var(--signal); }
.story-tag { position: absolute; width: max-content; max-width: 220px; opacity: 0; transform: translateY(10px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.story-tag.is-on { opacity: 1; transform: none; }
.story-tag .mono { color: var(--muted); display: flex; align-items: center; gap: 10px; }
.story-tag .mono::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.story-tag p { font-size: 18px; letter-spacing: -.02em; margin-top: 6px; }
.story-tag--ascent { left: -6%; top: 64%; transform: translate(-100%, 10px); text-align: left; }
.story-tag--ascent.is-on { transform: translate(-100%, 0); }
.story-tag--summit { left: 20%; top: -15%; }
.story-tag--valley { left: 52%; top: 104%; }
.story-tag--rise { left: 103%; top: 4%; }

/* ---------- divisions ---------- */
.divisions { padding-top: clamp(120px, 16vw, 220px); padding-bottom: clamp(80px, 10vw, 140px); }
.split { display: flex; gap: 12px; min-height: 68vh; }
.split-panel {
  flex: 1; position: relative; display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(20px, 2.4vw, 36px); border: 1px solid var(--faint); border-radius: 4px;
  background: color-mix(in srgb, var(--bg) 30%, transparent);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  transition: flex 1s var(--ease), background .6s, border-color .6s;
  overflow: hidden;
}
.split:hover .split-panel { flex: .7; }
.split .split-panel:hover { flex: 1.3; border-color: var(--fg); background: color-mix(in srgb, var(--bg) 10%, transparent); }
.split-top { display: flex; justify-content: space-between; color: var(--muted); }
.split-word { font-size: clamp(90px, 14vw, 240px); line-height: .8; letter-spacing: -.065em; font-weight: 600; transition: transform 1s var(--ease); transform-origin: left bottom; }
.split-word em { font-weight: 400; letter-spacing: -.04em; }
.split-panel:hover .split-word { transform: translateY(-8px); }
.split-copy { font-size: clamp(18px, 1.6vw, 24px); letter-spacing: -.02em; line-height: 1.2; max-width: 22ch; }
.split-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.split-meta span { border: 1px solid var(--faint); border-radius: 99px; padding: 6px 10px; }
.split-hint { margin-top: 20px; color: var(--muted); text-align: center; }

/* ---------- chapters ---------- */
.chapter { padding-top: clamp(120px, 18vw, 260px); }
.chapter-head { margin-bottom: clamp(56px, 8vw, 120px); }
.chapter-sub { margin-top: 28px; color: var(--muted); }
.chapter-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 6vw; align-items: end; max-width: 1400px; }
.chapter-grid .lead { max-width: 24ch; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(80px, 10vw, 160px); border-top: 1px solid var(--faint); }
.stat { padding: 28px 0 0; display: flex; flex-direction: column; gap: 16px; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--faint); }
.stat-num { font-size: clamp(64px, 9vw, 160px); line-height: .85; letter-spacing: -.06em; font-weight: 300; font-variant-numeric: tabular-nums; }
.stat .mono { color: var(--muted); }

/* ---------- riders ---------- */
.riders { padding: 0; margin-top: clamp(120px, 14vw, 220px); }
.riders-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.riders-track { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); padding: 0 var(--gutter); width: max-content; will-change: transform; }
.riders-intro { width: min(36vw, 480px); padding-right: 4vw; flex: none; }
.riders-intro .h2 { font-size: clamp(40px, 5vw, 84px); }
.riders-intro .body { margin-top: 28px; }
.riders-progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 36px; height: 1px; background: var(--faint); }
.riders-progress span { position: absolute; inset: 0; background: var(--fg); transform-origin: left; transform: scaleX(0); }

.rider {
  flex: none; width: clamp(260px, 24vw, 360px); aspect-ratio: 3 / 4.3; perspective: 900px;
}
.rider-inner {
  position: relative; width: 100%; height: 100%; padding: 18px; border-radius: 4px;
  border: 1px solid var(--faint); display: flex; flex-direction: column; justify-content: space-between;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transform-style: preserve-3d; transition: transform .8s var(--ease), border-color .5s;
}
.rider:hover .rider-inner { border-color: var(--fg); }
.rider-top { display: flex; justify-content: space-between; color: var(--muted); }
.rider-art { position: absolute; inset: 44px 18px 120px; transform: translateZ(30px); }
.rider-art svg { width: 100%; height: 100%; overflow: visible; }
.rider-art .ridge { fill: none; stroke: var(--fg); stroke-width: 1.2; stroke-linejoin: round; }
.rider-art .contour { fill: none; stroke: var(--faint); stroke-width: 1; stroke-linejoin: round; }
.rider-art .lineride { fill: none; stroke: var(--fg); stroke-width: 2.4; stroke-linecap: round; transition: stroke-dashoffset 2.2s var(--ease); }
.rider-art .start { fill: var(--fg); }
.rider-art .end { fill: var(--signal); opacity: 0; transition: opacity .4s 1.8s; }
.rider.is-drawn .lineride { stroke-dashoffset: 0 !important; }
.rider.is-drawn .end { opacity: 1; }
.rider-bottom { transform: translateZ(40px); }
.rider-num { font-size: 86px; line-height: .8; letter-spacing: -.06em; font-weight: 300; }
.rider-name { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--faint); }
.rider-name strong { font-weight: 500; font-size: 17px; letter-spacing: -.02em; }
.rider-name .mono { color: var(--muted); }

/* ---------- roadmap ---------- */
.roadmap { padding-top: clamp(140px, 16vw, 240px); }
.profile { position: relative; height: clamp(160px, 22vw, 300px); margin: 0 calc(var(--gutter) * -1); }
.profile-svg { width: 100%; height: 100%; overflow: visible; }
.profile-svg path { fill: none; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.profile-ghost { stroke: var(--faint); stroke-width: 1; }
.profile-path { stroke: var(--fg); stroke-width: 2; }
.profile-node { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--bg); border: 2px solid var(--fg); transform: scale(0); transition: transform .6s var(--ease); }
.profile-node.is-on { transform: scale(1); }
.profile-node--peak { background: var(--signal); border-color: var(--signal); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.step { border-top: 1px solid var(--faint); padding-top: 22px; }
.step .mono { color: var(--muted); }
.step h4 { font-size: clamp(24px, 2.4vw, 38px); line-height: 1; letter-spacing: -.035em; font-weight: 500; margin: 14px 0 12px; }
.step p { color: var(--muted); max-width: 34ch; font-size: 15px; }

/* ---------- guidance ---------- */
.guidance { padding-top: clamp(140px, 16vw, 240px); padding-bottom: clamp(140px, 16vw, 240px); }
.converge { display: grid; grid-template-columns: 1fr minmax(120px, 1fr) 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 0; row-gap: 48px; }
.converge-card { grid-column: 1; border: 1px solid var(--faint); border-radius: 4px; padding: 24px; background: var(--veil); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.converge-card:nth-of-type(2) { grid-row: 2; }
.converge-card .mono { color: var(--muted); }
.converge-card h4 { font-size: clamp(40px, 4.4vw, 72px); line-height: .9; letter-spacing: -.05em; font-weight: 500; margin: 20px 0 12px; }
.converge-card p { color: var(--muted); max-width: 32ch; }
.converge-svg { grid-column: 2; grid-row: 1 / span 2; width: 100%; height: 100%; overflow: visible; }
.converge-svg path { fill: none; stroke: var(--fg); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.converge-out { grid-column: 3; grid-row: 1 / span 2; padding-left: 24px; }
.converge-out .mono { font-size: 18px; color: var(--signal); }
.converge-out p { font-size: clamp(40px, 5vw, 88px); line-height: .92; letter-spacing: -.05em; font-weight: 500; margin-top: 8px; }
.guidance-foot { margin-top: clamp(80px, 10vw, 160px); max-width: 26ch; }

/* ---------- descent ---------- */
.descent { height: 320vh; padding: 0; }
.descent-sticky { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; text-align: center; overflow: hidden; }
.descent-sticky > * { grid-area: 1 / 1; }
.descent-rule { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--faint); }
.descent-rule i { position: absolute; left: -.5px; top: 0; width: 2px; height: 100%; background: var(--fg); transform-origin: top; transform: scaleY(0); }
.descent-line { font-size: clamp(48px, 8vw, 140px); line-height: .9; letter-spacing: -.055em; font-weight: 500; padding: 0 var(--gutter); }
.descent-line--a { align-self: start; margin-top: 18vh; }
.descent-line--b { align-self: end; margin-bottom: 14vh; opacity: 0; }
.descent-alt { display: flex; flex-direction: column; align-items: center; gap: 10px; background: var(--bg); padding: 22px 28px; border-radius: 4px; position: relative; }
.descent-alt .mono { color: var(--muted); }
.descent-num { font-size: clamp(64px, 10vw, 180px); line-height: .85; letter-spacing: -.05em; font-weight: 200; font-variant-numeric: tabular-nums; }

/* ---------- surf ---------- */
.surf .display em { font-size: 1.08em; }
.medals { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: clamp(100px, 12vw, 180px); }
.medal { border: 1px solid var(--faint); border-radius: 4px; padding: clamp(20px, 2.4vw, 36px); display: flex; flex-direction: column; gap: 18px; min-height: 52vh; justify-content: space-between; position: relative; overflow: hidden; background: color-mix(in srgb, var(--bg) 40%, transparent); }
.medal .mono { color: var(--muted); }
.medal-num { font-size: clamp(120px, 20vw, 340px); line-height: .78; letter-spacing: -.07em; font-weight: 300; }
.medal-num sup { font-family: var(--serif); font-style: italic; font-size: .28em; letter-spacing: 0; vertical-align: top; position: relative; top: .3em; margin-left: .06em; }
.medal p { font-size: 18px; letter-spacing: -.02em; }
.medal::after { content: ""; position: absolute; right: clamp(20px, 2.4vw, 36px); top: clamp(20px, 2.4vw, 36px); width: 12px; height: 12px; border-radius: 50%; background: var(--signal); }
.medals-note { grid-column: 1 / -1; margin-top: 48px; }

.wave { padding: clamp(100px, 12vw, 180px) 0 clamp(80px, 10vw, 140px); overflow: hidden; }
.wave-svg { width: 100%; height: clamp(200px, 26vw, 380px); overflow: visible; }
.wave-svg path { fill: none; stroke: var(--faint); stroke-width: 1; }
.wave-text { font-family: var(--sans); font-size: 64px; letter-spacing: -.015em; word-spacing: .12em; fill: var(--fg); font-weight: 500; }
.wave-cta { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 40px var(--gutter) 0; flex-wrap: wrap; }

/* ---------- join ---------- */
.join { padding-top: clamp(160px, 18vw, 280px); padding-bottom: clamp(100px, 12vw, 180px); }
.join .section-head .body { margin-top: 32px; }
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.way {
  position: relative; padding: 24px; border: 1px solid var(--faint); border-radius: 4px; min-height: 280px;
  display: flex; flex-direction: column; background: var(--veil); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background .6s var(--ease), color .6s var(--ease), border-color .6s; overflow: hidden;
}
.way .mono { color: var(--muted); transition: color .6s; }
.way h4 { font-size: clamp(28px, 2.6vw, 44px); line-height: .95; letter-spacing: -.04em; font-weight: 500; margin-top: auto; }
.way p { color: var(--muted); margin-top: 12px; max-width: 30ch; transition: color .6s; }
.way-arrow { position: absolute; right: 24px; top: 20px; font-size: 22px; transition: transform .6s var(--ease); }
.way:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.way:hover .mono, .way:hover p { color: color-mix(in srgb, var(--bg) 60%, transparent); }
.way:hover .way-arrow { transform: translateX(6px) rotate(-45deg); }

.form { position: relative; margin-top: clamp(80px, 10vw, 160px); display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; max-width: 1100px; }
.form-head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 36px; }
.form-head .mono { color: var(--muted); }
.field { position: relative; border-bottom: 1px solid var(--faint); padding-top: 26px; margin-bottom: 28px; transition: border-color .4s; }
.field:focus-within { border-color: var(--fg); }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--fg); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.field input, .field textarea { width: 100%; background: none; border: 0; outline: 0; color: var(--fg); font: inherit; font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -.02em; padding: 8px 0 12px; resize: none; }
.field label { position: absolute; left: 0; top: 34px; color: var(--muted); font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -.02em; pointer-events: none; transform-origin: left top; transition: transform .6s var(--ease), color .4s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-30px) scale(.5); color: var(--fg); }
.field.is-invalid { border-color: var(--signal); }
.field--area { grid-column: 1 / -1; }
.chips { grid-column: 1 / -1; border: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 28px; }
.chips legend { color: var(--muted); margin-bottom: 14px; width: 100%; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; height: 40px; align-items: center; padding: 0 18px; border-radius: 99px; border: 1px solid var(--faint); font-size: 15px; transition: background .4s, color .4s, border-color .4s; }
.chips label:hover span { border-color: var(--fg); }
.chips input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chips input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; margin-top: 12px; }
.form-status { color: var(--muted); }
.form-done { position: absolute; right: 0; bottom: 0; width: 64px; height: 64px; overflow: visible; pointer-events: none; }
.form-done path { fill: none; stroke: var(--signal); stroke-width: 124; stroke-linecap: round; stroke-dasharray: 1800; stroke-dashoffset: 1800; transition: stroke-dashoffset 1.6s var(--ease); }
.form.is-sent .form-done path { stroke-dashoffset: 0; }

/* ---------- footer ---------- */
.footer { position: relative; z-index: 2; min-height: 100vh; padding: calc(var(--nav-h) + 24px) var(--gutter) 28px; display: flex; flex-direction: column; overflow: hidden; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.footer-slogan { font-size: clamp(22px, 2.2vw, 34px); line-height: 1.1; letter-spacing: -.025em; max-width: 24ch; }
.footer-stage { flex: 1; min-height: 34vh; }
.footer-top-link { white-space: nowrap; }
.footer-top-link:hover { color: var(--fg); }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 190px)); gap: 32px; }
.footer-cols div { display: flex; flex-direction: column; gap: 8px; }
.footer-cols .mono { color: var(--muted); margin-bottom: 8px; }
.footer-cols a { font-size: 17px; letter-spacing: -.02em; width: max-content; position: relative; }
.footer-cols a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.footer-cols a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer-word { font-size: clamp(72px, 16.5vw, 330px); line-height: .78; letter-spacing: -.07em; font-weight: 600; margin: 40px 0 24px -.04em; white-space: nowrap; display: flex; align-items: baseline; gap: .12em; }
.footer-word span { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.04em; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); border-top: 1px solid var(--faint); padding-top: 18px; flex-wrap: wrap; }

/* ---------- reveal defaults (JS sets initial state; this is the no-JS fallback) ---------- */
[data-reveal] { will-change: transform, opacity; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .story-tag { display: none; }
  .story-figure { margin-right: 0; }
}

@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  .nav-links, .sound-label { display: none; }
  .burger { display: block; }
  .nav .pill { display: none; }
  .nav-actions { gap: 6px; }

  .hud { top: auto; bottom: 18px; transform: none; flex-direction: row-reverse; align-items: center; gap: 10px; }
  .hud-mark { width: 30px; height: 30px; }
  .hud-meta { align-items: flex-end; }

  .hero-side { top: 22%; }
  .hero-side--r { right: var(--gutter); }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 24px; bottom: 72px; }
  .hero-aside { max-width: none; }

  .story-sticky { grid-template-columns: 1fr; align-content: center; gap: 40px; }
  .story-figure { width: min(56vw, 34vh); order: -1; }
  .story-list { margin-top: 28px; }

  .split { flex-direction: column; min-height: 0; }
  .split-panel, .split:hover .split-panel, .split .split-panel:hover { flex: none; min-height: 46vh; }

  .chapter-grid { grid-template-columns: 1fr; gap: 28px; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { padding-left: 0; border-left: 0; border-top: 1px solid var(--faint); margin-top: 28px; }

  .riders-intro { width: 78vw; }
  .rider { width: 72vw; }

  .steps { grid-template-columns: 1fr; }

  .converge { grid-template-columns: 1fr; }
  .converge-card, .converge-card:nth-of-type(2), .converge-out { grid-column: 1; grid-row: auto; }
  .converge-svg { display: none; }
  .converge-out { padding: 16px 0 0; }

  .medals { grid-template-columns: 1fr; }
  .medal { min-height: 40vh; }

  .ways { grid-template-columns: 1fr; }
  .way { min-height: 200px; }

  .form { grid-template-columns: 1fr; }
  .form-head { flex-direction: column; gap: 8px; }

  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-top { flex-direction: column; }
  .footer-stage { min-height: 30vh; }
}

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
