/* LukeLang — lukelang.org
   Editorial, motion-led. No custom pointer, no pointer-driven effects. */

:root {
  --black: #050806;
  --ink: #0a0f0c;
  --white: #f4faf6;
  --mute: #8fa89a;
  --faint: rgba(244, 250, 246, 0.10);
  --hair: rgba(244, 250, 246, 0.14);

  --green: #19b96f;
  --green-deep: #0b3f28;
  --gold: #d8a32b;
  --yellow: #f7d24b;

  --shell: clamp(1.5rem, 5vw, 7rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --step--1: clamp(0.82rem, 0.78rem + 0.2vw, 0.94rem);
  --step-0: clamp(1rem, 0.95rem + 0.28vw, 1.15rem);
  --step-1: clamp(1.2rem, 1.05rem + 0.75vw, 1.75rem);
  --step-2: clamp(1.8rem, 1.3rem + 2.4vw, 3.4rem);
  --step-3: clamp(2.6rem, 1.4rem + 5.4vw, 6rem);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  font-size: var(--step-0);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
b, strong { font-weight: 700; }
em { font-style: normal; }

::selection { background: var(--green); color: var(--black); }

/* ── Film grain + scroll rail ───────────────────────────────────── */

.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.035;
  /* Shifting the background rather than the box keeps the grain from adding
     scrollable width on narrow screens. */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
  animation: grainShift 6s steps(6) infinite;
}
@keyframes grainShift {
  0% { background-position: 0 0; }
  25% { background-position: -40px 20px; }
  50% { background-position: 20px -40px; }
  75% { background-position: -20px -20px; }
  100% { background-position: 0 0; }
}

.scrollbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 55;
  background: rgba(244, 250, 246, 0.06);
}
.scrollbar i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green), var(--gold) 60%, var(--yellow));
}

/* ── Nav ────────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.15rem var(--shell);
  transition: background 400ms var(--ease), border-color 400ms var(--ease), padding 400ms var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(5, 8, 6, 0.78);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--faint);
  padding-block: 0.8rem;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: var(--step--1);
}
.nav__brand img { width: 34px; height: auto; }
.nav__links {
  display: flex;
  gap: clamp(0.9rem, 2vw, 2rem);
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--mute);
  min-width: 0;
  white-space: nowrap;
  padding-block: 0.15rem;
}
.nav__links a[aria-current="page"] { color: var(--white); }
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }

/* Mobile menu: a checkbox so it works with JavaScript disabled. */
.nav__switch { position: absolute; opacity: 0; pointer-events: none; }
.nav__burger { display: none; }
.nav__links a {
  position: relative;
  padding-block: 0.2rem;
  transition: color 260ms var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 420ms var(--ease);
}
.nav__links a:hover { color: var(--white); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 860px) {
  .nav {
    gap: 1rem;
    background: rgba(5, 8, 6, 0.9);
    backdrop-filter: blur(14px);
    border-bottom-color: var(--faint);
  }

  .nav__burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-right: -0.5rem;
    align-items: flex-end;
  }
  .nav__burger i {
    display: block;
    height: 1.5px;
    width: 22px;
    background: var(--white);
    transition: transform 320ms var(--ease), opacity 240ms var(--ease), width 320ms var(--ease);
  }
  .nav__switch:checked ~ .nav__burger i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav__switch:checked ~ .nav__burger i:nth-child(2) { opacity: 0; width: 0; }
  .nav__switch:checked ~ .nav__burger i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0 var(--shell);
    background: var(--black);
    border-bottom: 1px solid var(--faint);
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.9);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 420ms var(--ease), visibility 420ms;
  }
  .nav__switch:checked ~ .nav__links {
    max-height: 24rem;
    visibility: visible;
    padding-block: 0.5rem 1rem;
  }
  .nav__links a {
    padding: 0.9rem 0;
    font-size: var(--step-0);
    font-weight: 600;
    color: var(--white);
    border-bottom: 1px solid var(--faint);
  }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__links a::after { display: none; }
  .nav__links a[aria-current="page"] { color: var(--green); }
}

/* ── Hero ───────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem var(--shell) 2rem;
  overflow: hidden;
  isolation: isolate;
}

.hero__aura { position: absolute; inset: -20% -10%; z-index: -2; filter: blur(80px); }
.aura { position: absolute; display: block; border-radius: 50%; opacity: 0.85; }
.aura--green {
  width: 60vw; height: 60vw; left: -12vw; top: -14vw;
  background: radial-gradient(circle, rgba(25, 185, 111, 0.55), transparent 66%);
  animation: drift 22s ease-in-out infinite alternate;
}
.aura--gold {
  width: 46vw; height: 46vw; right: -8vw; top: 4vw;
  background: radial-gradient(circle, rgba(216, 163, 43, 0.42), transparent 66%);
  animation: drift 26s 1.5s ease-in-out infinite alternate-reverse;
}
.aura--yellow {
  width: 34vw; height: 34vw; left: 38vw; bottom: -14vw;
  background: radial-gradient(circle, rgba(247, 210, 75, 0.26), transparent 66%);
  animation: drift 30s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(5vw, -4vw, 0) scale(1.16); }
}

.hero__rules {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding-inline: var(--shell);
}
.hero__rules i {
  border-left: 1px solid rgba(244, 250, 246, 0.05);
  transform: scaleY(0);
  transform-origin: top;
  animation: dropRule 1.6s var(--ease) forwards;
}
.hero__rules i:nth-child(2) { animation-delay: 0.08s; }
.hero__rules i:nth-child(3) { animation-delay: 0.16s; }
.hero__rules i:nth-child(4) { animation-delay: 0.24s; }
.hero__rules i:nth-child(5) { animation-delay: 0.32s; }
@keyframes dropRule { to { transform: scaleY(1); } }

.hero__inner { position: relative; max-width: 74rem; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 clamp(1rem, 3vh, 2rem);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
}
.eyebrow__rule {
  display: block;
  width: clamp(2rem, 6vw, 5rem);
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform-origin: left;
  animation: growRule 1.2s 0.4s var(--ease) both;
}
@keyframes growRule { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.display {
  margin: 0;
  font-size: var(--step-3);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.9;
}
.display__word { display: inline-flex; flex-wrap: wrap; }
.display .ch {
  display: inline-block;
  /* background-clip:text paints inside the padding box only, and a 0.9 line box
     is shorter than the glyphs — pad it so the "g" keeps its tail. */
  padding-bottom: 0.42em;
  margin-bottom: -0.42em;
  transform: translateY(110%) rotate(6deg);
  opacity: 0;
  animation: charRise 1.05s var(--ease) forwards;
  background: linear-gradient(178deg, var(--white) 30%, #b7cfc1 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.display .ch--accent {
  background: linear-gradient(178deg, var(--yellow) 12%, var(--gold) 92%);
  -webkit-background-clip: text;
  background-clip: text;
}
@keyframes charRise {
  to { transform: translateY(0) rotate(0); opacity: 1; }
}

.hero__lede {
  margin: clamp(1.2rem, 3vh, 2.2rem) 0 0;
  font-size: var(--step-2);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 20ch;
}
.hero__lede em {
  background: linear-gradient(96deg, var(--green), var(--yellow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 500;
}

.hero__sub {
  margin: 1.4rem 0 0;
  max-width: 44ch;
  color: var(--mute);
  font-weight: 300;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  margin-top: clamp(1.6rem, 4vh, 2.6rem);
  flex-wrap: wrap;
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  background: var(--green);
  color: #04150d;
  font-weight: 700;
  font-size: var(--step--1);
  line-height: 1;
  letter-spacing: 0.01em;
  transition: transform 400ms var(--ease), box-shadow 400ms var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.55), transparent 80%);
  transform: translateX(-120%);
  animation: sheen 3.6s 1.4s var(--ease) infinite;
}
@keyframes sheen { 0% { transform: translateX(-120%); } 45%, 100% { transform: translateX(120%); } }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -18px var(--green); }

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
  font-size: var(--step--1);
}
.link svg { width: 22px; height: 12px; fill: none; stroke: var(--yellow); stroke-width: 1.5; }
.link span {
  position: relative;
  padding-bottom: 3px;
  background-image: linear-gradient(var(--yellow), var(--yellow));
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 420ms var(--ease);
}
.link:hover span { background-size: 0% 1px; background-position: 100% 100%; }
.link:hover svg { animation: nudge 700ms var(--ease); }
@keyframes nudge { 50% { transform: translateX(6px); } }

.hero__mark {
  position: absolute;
  right: -4vw;
  bottom: -2vh;
  width: clamp(200px, 30vw, 460px);
  opacity: 0.95;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.6));
  animation: markIn 1.6s 0.5s var(--ease) both, bob 8s 2s ease-in-out infinite;
  z-index: -1;
}
@keyframes markIn {
  from { opacity: 0; transform: translateY(40px) scale(0.94); }
  to { opacity: 0.95; transform: translateY(0) scale(1); }
}
@keyframes bob {
  50% { transform: translateY(-16px); }
}
@media (max-width: 900px) {
  .hero__mark { position: relative; right: auto; bottom: auto; margin: 2.5rem 0 0; width: 58vw; }
}

.hero__foot {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 3rem);
  align-items: center;
  margin-top: clamp(2.5rem, 8vh, 6rem);
  padding-top: 1.1rem;
  border-top: 1px solid var(--faint);
  font-size: var(--step--1);
  color: var(--mute);
}
.hero__foot b { color: var(--white); font-weight: 600; }
.hero__cue {
  margin-left: auto;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--green);
  animation: cue 2.4s ease-in-out infinite;
}
@keyframes cue { 0%, 100% { opacity: 0.35; transform: translateY(0); } 50% { opacity: 1; transform: translateY(4px); } }

/* ── Route rail ─────────────────────────────────────────────────── */

.routes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  padding: clamp(1.4rem, 4vh, 2.2rem) var(--shell);
  border-bottom: 1px solid var(--faint);
}
.routes__label {
  margin-right: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 700;
}
.route {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  border: 1px solid var(--hair);
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--mute);
  overflow: hidden;
  transition: color 320ms var(--ease), border-color 320ms var(--ease);
}
.route::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--green);
  transform: translateY(101%);
  transition: transform 420ms var(--ease);
}
.route span { position: relative; }
.route i {
  position: relative;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  transition: background 320ms var(--ease);
}
.route:hover { color: #04150d; border-color: var(--green); }
.route:hover::before { transform: translateY(0); }
.route:hover i { background: #04150d; }
.route--status i { background: var(--green); animation: pulseDot 2.4s ease-in-out infinite; }
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.45); }
}

/* ── Ticker ─────────────────────────────────────────────────────── */

.ticker {
  overflow: hidden;
  padding: 1rem 0;
  border-block: 1px solid var(--faint);
  background: linear-gradient(90deg, rgba(25, 185, 111, 0.08), rgba(216, 163, 43, 0.07));
}
.ticker__track {
  display: flex;
  gap: 1.6rem;
  align-items: center;
  width: max-content;
  animation: marquee 34s linear infinite;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.ticker__track span { color: var(--white); }
.ticker__track i { color: var(--gold); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Sections ───────────────────────────────────────────────────── */

.section {
  position: relative;
  padding: clamp(5rem, 14vh, 11rem) var(--shell);
  border-bottom: 1px solid var(--faint);
  scroll-margin-top: 4.5rem;
}

.index {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 1.4rem;
}

.h2 {
  margin: 0;
  font-size: var(--step-2);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.h2 em {
  font-weight: 700;
  background: linear-gradient(92deg, var(--green), var(--yellow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.h2--wide { max-width: 20ch; }

.lede {
  margin: 1.2rem 0 0;
  max-width: 46ch;
  color: var(--mute);
  font-weight: 300;
}

/* ── 01 · Pipeline ──────────────────────────────────────────────── */

.section__head { max-width: 62rem; }

.pipe {
  position: relative;
  margin: clamp(2.5rem, 6vh, 4.5rem) 0 0;
}
.pipe__svg { display: block; width: 100%; height: clamp(120px, 18vw, 190px); overflow: visible; }
.pipe__track { fill: none; stroke: rgba(244, 250, 246, 0.10); stroke-width: 1.5; }
.pipe__draw {
  fill: none;
  stroke: var(--green);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 12px rgba(25, 185, 111, 0.55));
  transition: stroke-dashoffset 2.4s var(--ease);
}
.pipe.is-live .pipe__draw { stroke-dashoffset: 0; }
.pipe__pulse { fill: var(--yellow); opacity: 0; filter: drop-shadow(0 0 12px var(--yellow)); }
.pipe.is-live .pipe__pulse { opacity: 1; transition: opacity 600ms 1.6s var(--ease); }

.pipe__stages {
  list-style: none;
  margin: clamp(1.5rem, 4vh, 3rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.2rem;
}
.pipe__stages li {
  padding-top: 1rem;
  border-top: 1px solid var(--hair);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease), border-color 700ms var(--ease);
}
.js .pipe__stages li { opacity: 0; transform: translateY(18px); }
.pipe.is-live .pipe__stages li { opacity: 1; transform: none; }
.pipe.is-live .pipe__stages li:nth-child(1) { transition-delay: 0.15s; border-top-color: var(--green); }
.pipe.is-live .pipe__stages li:nth-child(2) { transition-delay: 0.45s; border-top-color: var(--green); }
.pipe.is-live .pipe__stages li:nth-child(3) { transition-delay: 0.75s; border-top-color: var(--gold); }
.pipe.is-live .pipe__stages li:nth-child(4) { transition-delay: 1.05s; border-top-color: var(--gold); }
.pipe.is-live .pipe__stages li:nth-child(5) { transition-delay: 1.35s; border-top-color: var(--yellow); }
.pipe__stages b { display: block; font-size: var(--step--1); font-weight: 700; letter-spacing: -0.01em; }
.pipe__stages span {
  display: block;
  margin-top: 0.35rem;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  font-size: 0.76rem;
  color: var(--mute);
}
@media (max-width: 860px) {
  .pipe__stages { grid-template-columns: repeat(2, 1fr); }
  .pipe__svg { display: none; }
}

.claims {
  margin: clamp(3.5rem, 10vh, 7rem) 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}
.claims p {
  margin: 0;
  font-size: var(--step-2);
  font-weight: 200;
  letter-spacing: -0.035em;
  line-height: 1.08;
  transition: color 900ms var(--ease);
}
.js .claims p { color: rgba(244, 250, 246, 0.32); }
.js .claims p.is-in { color: var(--white); }
.claims__last { font-weight: 400; }
.claims__last b {
  font-weight: 800;
  background: linear-gradient(92deg, var(--green), var(--yellow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── 02 · Language ──────────────────────────────────────────────── */

.language {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
@media (max-width: 980px) { .language { grid-template-columns: minmax(0, 1fr); } }

/* Long code lines must not stretch the grid track — they scroll instead. */
.language__aside, .language__code { min-width: 0; }
.language__aside { position: sticky; top: 7rem; }
@media (max-width: 980px) { .language__aside { position: static; } }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: clamp(1.8rem, 5vh, 3rem);
}
.tabs button {
  appearance: none;
  background: none;
  border: 0;
  padding: 0 0 0.45rem;
  color: var(--mute);
  font: inherit;
  font-size: var(--step--1);
  font-weight: 600;
  position: relative;
  transition: color 320ms var(--ease);
}
.tabs button::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 460ms var(--ease);
}
.tabs button[aria-selected="true"] { color: var(--white); }
.tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.tabs button:hover { color: var(--white); }

.language__code { position: relative; min-height: 22rem; }

.code, .shell {
  margin: 0;
  padding: 0 0 0 clamp(1rem, 2vw, 1.8rem);
  border-left: 1px solid var(--hair);
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  font-size: clamp(0.78rem, 0.62rem + 0.4vw, 0.95rem);
  line-height: 1.85;
  max-width: 100%;
  overflow-x: auto;
}
.code { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.code.is-active { position: relative; opacity: 1; visibility: visible; }
.code .ln, .shell .ln { display: block; }
.code .ln:empty { height: 0.9em; }
.code.is-active .ln {
  opacity: 0;
  transform: translateY(10px);
  animation: lineIn 520ms var(--ease) forwards;
}
@keyframes lineIn { to { opacity: 1; transform: none; } }

.kw { color: var(--green); font-weight: 600; }
.fn { color: var(--white); font-weight: 600; }
.str { color: var(--yellow); font-weight: 400; }
.num { color: var(--gold); font-weight: 500; }
.ty { color: #7fd8b0; font-weight: 500; }
.cm { color: rgba(143, 168, 154, 0.75); font-weight: 300; font-style: italic; }
.sh { color: var(--green); font-weight: 700; }

/* ── 03 · Figures ───────────────────────────────────────────────── */

.figures {
  margin: clamp(3rem, 8vh, 5rem) 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
}
@media (max-width: 900px) { .figures { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .figures { grid-template-columns: 1fr; } }
.figures > div { padding-top: 1.2rem; border-top: 1px solid var(--hair); }
.figures dt {
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  background: linear-gradient(170deg, var(--white), var(--green) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.figures dd {
  margin: 0.8rem 0 0;
  color: var(--mute);
  font-size: var(--step--1);
  font-weight: 300;
  max-width: 26ch;
}

/* ── 04 · Creed ─────────────────────────────────────────────────── */

.creed {
  list-style: none;
  counter-reset: creed;
  margin: clamp(3rem, 8vh, 5rem) 0 0;
  padding: 0;
}
.creed li {
  counter-increment: creed;
  display: grid;
  grid-template-columns: 4rem minmax(0, 22ch) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 3rem);
  align-items: baseline;
  padding: clamp(1.4rem, 3vh, 2.2rem) 0;
  border-top: 1px solid var(--hair);
  position: relative;
}
.creed li::before {
  content: "0" counter(creed);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-weight: 700;
}
.creed li::after {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  height: 1px; width: 100%;
  background: linear-gradient(90deg, var(--green), var(--yellow));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease);
}
.creed li.is-in::after { transform: scaleX(1); }
.creed b { font-size: var(--step-1); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.creed span { color: var(--mute); font-weight: 300; }
@media (max-width: 820px) {
  .creed li { grid-template-columns: 2.6rem 1fr; }
  .creed span { grid-column: 2; }
}

/* ── 05 · Start ─────────────────────────────────────────────────── */

.shell {
  margin: clamp(2.5rem, 6vh, 4rem) 0 0;
  border-left-color: var(--green);
  color: var(--white);
  line-height: 2.05;
}
.start__links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.2rem, 3vw, 2.6rem);
  margin-top: clamp(2rem, 5vh, 3rem);
  font-size: var(--step--1);
  font-weight: 600;
}
.start__links a {
  position: relative;
  padding-bottom: 4px;
  color: var(--mute);
  background-image: linear-gradient(var(--green), var(--green));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: color 320ms var(--ease), background-size 460ms var(--ease);
}
.start__links a:hover { color: var(--white); background-size: 100% 1px; }

/* ── Footer ─────────────────────────────────────────────────────── */

.footer { padding: clamp(4rem, 10vh, 7rem) var(--shell) 3rem; }
.footer__mark img {
  width: min(100%, 46rem);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.js .footer__mark img { opacity: 0; transform: translateY(24px); }
.js .footer__mark img.is-in { opacity: 1; transform: none; }

.footer__grid {
  margin-top: clamp(2.5rem, 6vh, 4rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--faint);
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem clamp(2rem, 6vw, 5rem);
  align-items: start;
  justify-content: space-between;
  font-size: var(--step--1);
  color: var(--mute);
}
.footer__line { margin: 0; font-weight: 300; }
.footer__line b { color: var(--white); font-weight: 600; }
.footer__nav { display: flex; gap: 1.6rem; font-weight: 600; }
.footer__nav a { transition: color 300ms var(--ease); }
.footer__nav a:hover { color: var(--yellow); }
.footer__meta { margin: 0; }

/* ── Reveal utility ─────────────────────────────────────────────────
   Everything is visible by default; the hidden state only exists once
   the script has confirmed it can reveal it again. */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ── Small screens ──────────────────────────────────────────────── */

@media (max-width: 720px) {
  :root {
    --step-2: clamp(1.55rem, 1.2rem + 2.4vw, 2.2rem);
    --step-3: clamp(2.5rem, 1.6rem + 8vw, 4rem);
  }

  .hero { padding-top: 6rem; }
  .hero__lede { max-width: none; }
  .hero__sub { max-width: none; }
  .hero__actions { gap: 1.4rem; }
  .btn { padding: 0.9rem 1.7rem; }
  .hero__mark {
    width: min(62vw, 300px);
    margin-inline: auto;
    margin-top: 1.5rem;
  }
  .hero__foot { margin-top: 2rem; gap: 0.5rem 1.4rem; }
  .hero__cue { display: none; }
  /* Five hairlines across 390px reads as noise. */
  .hero__rules { grid-template-columns: repeat(2, 1fr); }

  /* The rail scrolls as one row instead of stacking into a block of pills. */
  .routes {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    mask-image: linear-gradient(90deg, #000 90%, transparent);
  }
  .routes::-webkit-scrollbar { display: none; }
  .routes__label { position: sticky; left: 0; }
  .route { flex: none; scroll-snap-align: start; min-height: 42px; }

  .section { padding-block: clamp(3.5rem, 9vh, 5rem); }
  .claims { margin-top: 2.5rem; }
  .language__code { min-height: 0; }
  .code { position: relative; }
  .code:not(.is-active) { display: none; }
  .tabs { gap: 1.1rem 1.4rem; }
  .tabs button { min-height: 40px; }
  .figures { gap: 1.6rem; }
  .creed li { padding-block: 1.2rem; }
  .start__links a, .footer__nav a { padding-block: 0.4rem; }
  .footer__grid { gap: 1.4rem; }
}

/* ── Reduced motion ─────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal], .pipe__stages li, .footer__mark img { opacity: 1 !important; transform: none !important; }
  .display .ch { opacity: 1; transform: none; }
  .grain { display: none; }
}
