@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jbmono-latin.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial");
  size-adjust: 104%;
  ascent-override: 88%;
  descent-override: 21%;
  line-gap-override: 0%;
}

:root {
  --bg: oklch(0.965 0.006 70);
  --bg-2: oklch(0.925 0.009 60);
  --bg-3: oklch(0.89 0.01 55);
  --text: oklch(0.17 0.012 40);
  --text-2: oklch(0.42 0.012 40);
  --text-3: oklch(0.52 0.01 40);
  --accent: oklch(0.63 0.215 33);
  --accent-ink: oklch(0.47 0.18 33);
  --accent-hover: oklch(0.42 0.17 33);
  --accent-pressed: oklch(0.38 0.15 33);
  --accent-on-dark: oklch(0.74 0.16 40);
  --accent-focus-ring: var(--bg);
  --night: oklch(0.16 0.012 40);
  --night-2: oklch(0.205 0.012 40);
  --night-3: oklch(0.25 0.012 40);
  --on-night: oklch(0.95 0.006 70);
  --on-night-2: oklch(0.74 0.01 60);
  --line: color-mix(in oklab, var(--text) 12%, transparent);
  --line-2: color-mix(in oklab, var(--text) 22%, transparent);
  --wline: oklch(1 0 0 / 0.1);
  --wline-2: oklch(1 0 0 / 0.18);

  --sans: "Archivo", "Archivo Fallback", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 104px; --s7: 168px; --s8: 240px;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.2,.7,0,1);
  --ease-h: cubic-bezier(.3,.7,.2,1);
  --r-xs: 4px; --r-sm: 8px; --r-md: 12px; --r-lg: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3, dt { text-wrap: balance; }
p, dd { text-wrap: pretty; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; font-feature-settings: "tnum" 1, "lnum" 1; }
.sr { 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: 100; background: var(--text); color: var(--bg); padding: 12px 16px; border-radius: var(--r-sm); text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  background: var(--accent-ink); color: var(--bg);
  border: 0; border-radius: var(--r-xs);
  font-weight: 600; font-size: 16px; letter-spacing: .005em; text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms var(--ease-h), transform 180ms var(--ease-h);
}
.btn:hover { background: var(--accent-hover); }
.btn:active { background: var(--accent-pressed); transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn--on-dark { background: var(--accent-on-dark); color: var(--night); }
.btn--on-dark:hover { background: oklch(0.69 0.16 40); }
.btn--on-dark:active { background: oklch(0.64 0.16 40); }
.btn--on-dark:focus-visible { outline-color: var(--on-night); }
.btn[disabled] { opacity: .55; cursor: progress; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; text-decoration: none; color: var(--text); }
.link-arrow svg { fill: none; stroke: var(--accent); stroke-width: 1.4; transition: transform 200ms var(--ease-h); }
.link-arrow:hover svg { transform: translateY(3px); }
.link-arrow:hover { color: var(--accent-ink); }

/* ---------- header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: var(--s4);
  height: 76px; padding-inline: var(--gutter);
  border-bottom: 1px solid transparent;
  transition: height 260ms var(--ease), background-color 260ms var(--ease), border-color 260ms var(--ease), color 260ms var(--ease);
}
.hdr[data-scrolled="true"] {
  height: 60px;
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.hdr[data-theme="dark"][data-scrolled="true"] {
  background: color-mix(in oklab, var(--night) 78%, transparent);
  border-bottom-color: var(--wline);
  color: var(--on-night);
}
.hdr__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-stretch: 125%; letter-spacing: .04em; font-size: 15px; min-height: 44px; }
.logo-sun { fill: var(--accent); }
.logo-ground { fill: var(--bg); transition: fill 260ms var(--ease); }
.hdr[data-theme="dark"][data-scrolled="true"] .logo-ground { fill: var(--night); }
.logo-line { fill: currentColor; }
.logo-refl { fill: var(--accent); opacity: .55; transform: scaleY(-1); transform-origin: 14px 14.5px; }
.hdr__nav { display: flex; gap: 4px; margin-left: auto; }
.hdr__nav a { text-decoration: none; font-size: 15px; font-weight: 500; padding: 10px 14px; border-radius: var(--r-xs); transition: color 180ms var(--ease-h); }
.hdr__nav a:hover { color: var(--accent); }
.hdr[data-theme="dark"][data-scrolled="true"] .hdr__nav a:hover { color: var(--accent-on-dark); }
.hdr__burger { display: none; }

.drawer {
  position: fixed; inset: 0; z-index: 49;
  background: var(--night); color: var(--on-night);
  padding: 96px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: var(--s4);
}
.drawer[hidden] { display: none; }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a {
  text-decoration: none; font-size: clamp(44px, 14vw, 64px); font-weight: 700; font-stretch: 62%; line-height: 1.05; letter-spacing: -.01em;
  padding: 10px 0; border-bottom: 1px solid var(--wline);
  opacity: 0; transform: translateY(18px);
  animation: drawerIn 520ms var(--ease) forwards;
}
.drawer nav a:nth-child(2) { animation-delay: 50ms; }
.drawer nav a:nth-child(3) { animation-delay: 100ms; }
.drawer nav a:nth-child(4) { animation-delay: 150ms; }
.drawer .btn { background: var(--accent-on-dark); color: var(--night); align-self: flex-start; }
.drawer__foot { margin-top: auto; color: var(--on-night-2); font-size: 14px; }
@keyframes drawerIn { to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .hdr { gap: 12px; height: 64px; }
  .hdr[data-scrolled="true"] { height: 56px; }
  .hdr__nav, .hdr__cta { display: none; }
  .hdr__burger {
    display: grid; place-content: center; gap: 6px; margin-left: auto;
    width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; border-radius: var(--r-xs);
  }
  .hdr__burger span { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform 260ms var(--ease); }
  .hdr__burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .hdr__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  body.menu-open .hdr { color: var(--on-night); background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  body.menu-open .logo-ground { fill: var(--night); }
}
body.menu-open { overflow: hidden; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; max-height: 1200px; overflow: hidden; background: var(--bg); }
.hero__stage { position: absolute; inset: 0; }
.hero__poster, .hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__poster { object-fit: cover; }
.hero__gl { opacity: 0; transition: opacity 900ms var(--ease); touch-action: pan-y; }
.hero.is-live .hero__gl { opacity: 1; }
.hero__copy {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(28px, 5vh, 56px);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s5); align-items: end;
}
.hero__line {
  font-size: clamp(40px, 5.4vw, 84px); line-height: .92; font-weight: 700; font-stretch: 62%; letter-spacing: -.012em;
  text-transform: uppercase;
}
.hero__line span { color: var(--accent-ink); }
.hero__side { max-width: 440px; justify-self: end; display: grid; gap: var(--s3); }
.hero__side p { color: var(--text-2); font-size: 17px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
.hero__hint {
  position: absolute; right: var(--gutter); top: 104px;
  display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2);
  opacity: 0; transition: opacity 600ms var(--ease);
}
.hero.is-live .hero__hint { opacity: 1; }
.hero.is-touched .hero__hint { opacity: 0; }
.hint-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.8); opacity: .35; } }

/* page-load choreography */
.hero__line, .hero__side { opacity: 0; transform: translateY(14px); animation: rise 900ms var(--ease) forwards; }
.hero__line { animation-delay: 250ms; }
.hero__side { animation-delay: 450ms; transform: translateY(8px); }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .hero { min-height: 600px; height: 100svh; }
  .hero__copy { grid-template-columns: 1fr; gap: var(--s3); bottom: calc(24px + env(safe-area-inset-bottom)); }
  .hero__line { font-size: clamp(40px, 12.4vw, 60px); }
  .hero__side { justify-self: start; gap: var(--s2); }
  .hero__side p { font-size: 16px; }
  .hero__hint { display: none; }
}

/* ---------- resolve ---------- */
.resolve { position: relative; height: 460vh; background: var(--bg); }
.resolve__pin {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: grid;
  grid-template-columns: minmax(300px, 380px) 1fr;
  grid-template-rows: auto 1fr;
  column-gap: var(--s5);
  padding: 104px var(--gutter) var(--s4);
}
.resolve__head { grid-column: 1; grid-row: 1; display: grid; gap: var(--s3); align-content: start; }
.resolve__head h2 { font-size: clamp(34px, 3.3vw, 50px); line-height: 1; font-weight: 700; font-stretch: 62%; text-transform: uppercase; letter-spacing: -.005em; }
.resolve__head h2 span { color: var(--text-3); }
.resolve__prompt { font-size: 16px; color: var(--text); line-height: 1.45; min-height: 5.6em; border-top: 1px solid var(--line-2); padding-top: var(--s2); }
.resolve__prompt .mono { display: block; color: var(--accent-ink); margin-bottom: 6px; }
.caret { display: inline-block; width: 2px; height: 1.05em; background: var(--accent); vertical-align: -.15em; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.resolve__canvas-wrap { grid-column: 2; grid-row: 1 / span 2; position: relative; min-height: 0; }
.resolve__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.resolve__stages { grid-column: 1; grid-row: 2; align-self: end; list-style: none; margin: 0; padding: 0; display: grid; }
.resolve__stages li { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 14px 0 12px; border-top: 1px solid var(--line); color: var(--text-3); transition: color 300ms var(--ease); position: relative; }
.resolve__stages b { font-weight: 700; font-size: 22px; font-stretch: 125%; letter-spacing: .01em; }
.resolve__stages span { font-size: 15px; }
.resolve__stages li.on { color: var(--text); }
.resolve__stages li.on b { color: var(--accent-ink); }
.bar { position: absolute; left: 0; right: 0; top: -1px; height: 1px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }

@media (max-width: 860px) {
  .resolve { height: 420vh; }
  .resolve__pin { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; padding: 76px var(--gutter) 20px; row-gap: 12px; }
  .resolve__head { gap: 10px; }
  .resolve__head h2 { font-size: 30px; }
  .resolve__prompt { font-size: 14px; min-height: 4.4em; padding-top: 10px; }
  .resolve__canvas-wrap { grid-column: 1; grid-row: 2; }
  .resolve__stages { grid-row: 3; grid-template-columns: repeat(4, 1fr); column-gap: 10px; }
  .resolve__stages li { padding: 10px 0 0; }
  .resolve__stages b { font-size: 13px; font-stretch: 100%; }
  .resolve__stages span { display: none; }
}

/* ---------- forge (dark) ---------- */
.forge {
  background: var(--night); color: var(--on-night);
  padding: var(--s7) var(--gutter) var(--s6);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--s3); row-gap: var(--s5);
}
.forge__intro { grid-column: 1 / span 5; display: grid; gap: var(--s3); align-content: start; }
.forge__intro h2 { font-size: clamp(56px, 8.6vw, 132px); line-height: .86; font-weight: 800; font-stretch: 62%; text-transform: uppercase; letter-spacing: -.02em; }
.forge__intro p { color: var(--on-night-2); max-width: 44ch; }
.forge__form { grid-column: 6 / span 7; align-self: end; display: grid; gap: var(--s2); }
.forge__label { font-size: 14px; color: var(--on-night-2); }
.forge__field {
  display: flex; align-items: flex-end; gap: var(--s2);
  border-bottom: 2px solid var(--wline-2); padding-bottom: 12px;
  transition: border-color 200ms var(--ease-h);
}
.forge__field:focus-within { border-color: var(--accent-on-dark); }
.forge__field textarea {
  flex: 1; resize: none; border: 0; background: transparent; outline: none;
  font-size: clamp(24px, 2.6vw, 38px); line-height: 1.15; font-weight: 500; font-stretch: 87.5%;
  color: var(--on-night); padding: 0; min-height: 1.2em;
}
.forge__field textarea::placeholder { color: oklch(0.55 0.01 50); }
.forge__presets { display: flex; flex-wrap: wrap; gap: 8px; }
.forge__presets button {
  min-height: 40px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--wline-2); color: var(--on-night-2); font-size: 14px;
  transition: color 180ms var(--ease-h), border-color 180ms var(--ease-h), background-color 180ms var(--ease-h);
}
.forge__presets button:hover { color: var(--on-night); border-color: var(--on-night-2); }
.forge__presets button[aria-pressed="true"] { color: var(--night); background: var(--on-night); border-color: var(--on-night); }

.forge__out { grid-column: 1 / -1; display: grid; grid-template-columns: 5fr 7fr; gap: var(--s3); min-height: 520px; }
.forge__log { border-top: 1px solid var(--wline-2); padding-top: var(--s2); overflow: hidden; }
.log { list-style: none; margin: 0; padding: 0; font-family: var(--mono); font-size: 12.5px; line-height: 1.7; color: var(--on-night-2); font-feature-settings: "tnum" 1; }
.log li { display: grid; grid-template-columns: 58px 1fr; gap: 12px; opacity: 0; transform: translateX(-6px); animation: logIn 340ms var(--ease) forwards; }
.log li .t { color: oklch(0.56 0.01 50); }
.log li b { font-weight: 500; color: var(--on-night); }
.log li.ok b { color: var(--accent-on-dark); }
@keyframes logIn { to { opacity: 1; transform: none; } }

.forge__artifact { background: var(--night-2); border-radius: var(--r-md); padding: var(--s2); border: 1px solid var(--wline); }
.art { display: grid; grid-template-columns: 1fr 200px; gap: var(--s2); height: 100%; }
.art__site {
  --a-bg: #eee; --a-fg: #111; --a-ac: #c33; --a-mut: #777;
  position: relative; overflow: hidden; border-radius: var(--r-sm);
  background: var(--a-bg); color: var(--a-fg);
  display: grid; grid-template-rows: auto 1fr; min-height: 460px;
  transition: background-color 700ms var(--ease), color 700ms var(--ease);
}
.art__nav { display: flex; align-items: center; gap: 10px; padding: 14px 18px; font-weight: 700; font-size: 14px; position: relative; z-index: 2; }
.art__mark { width: 26px; height: 26px; display: block; }
.art__mark svg { width: 100%; height: 100%; display: block; }
.art__links { display: flex; gap: 14px; margin-left: auto; }
.art__links i { display: block; width: 34px; height: 5px; border-radius: 3px; background: currentColor; opacity: .25; }
.art__cta { display: block; width: 74px; height: 26px; border-radius: 4px; background: var(--a-fg); }
.art__hero { position: relative; z-index: 2; padding: 28px 22px 22px; display: grid; gap: 14px; align-content: start; max-width: 54%; }
.art__h { font-size: clamp(30px, 3.3vw, 50px); line-height: .95; letter-spacing: -.01em; }
.art__sub { font-size: 14px; line-height: 1.45; opacity: .78; max-width: 32ch; }
.art__btn { justify-self: start; display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 4px; background: var(--a-ac); color: var(--a-bg); font-size: 13px; font-weight: 600; }
.art__pic { position: absolute; right: 0; bottom: 0; width: 46%; height: 70%; display: block; }
.art__spec { display: grid; grid-template-rows: auto auto 1fr; gap: var(--s2); }
.art__swatches { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sw { border-radius: var(--r-xs); height: 64px; padding: 6px 8px; display: flex; align-items: flex-end; font-family: var(--mono); font-size: 10.5px; line-height: 1.2; border: 1px solid var(--wline); opacity: 0; transform: scale(.94); animation: swIn 500ms var(--ease) forwards; }
@keyframes swIn { to { opacity: 1; transform: none; } }
.art__type { border-top: 1px solid var(--wline); padding-top: 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.art__specimen { font-size: 56px; line-height: 1; }
.art__typename { color: var(--on-night-2); text-align: right; }
.art__why { font-size: 14px; color: var(--on-night-2); border-top: 1px solid var(--wline); padding-top: 10px; }
.art__why b { color: var(--on-night); font-weight: 600; }
.art[data-ready="false"] .art__site > * { opacity: 0; }
.art__site > * { transition: opacity 500ms var(--ease); }
.art .reveal-mask { position: absolute; inset: 0; z-index: 5; pointer-events: none; }

@media (max-width: 1080px) {
  .forge__intro { grid-column: 1 / -1; }
  .forge__form { grid-column: 1 / -1; }
  .forge__out { grid-template-columns: 1fr; }
  .forge__log { order: 2; max-height: 220px; }
}
@media (max-width: 640px) {
  .forge { padding: var(--s6) var(--gutter) var(--s5); row-gap: var(--s4); }
  .forge__field { flex-direction: column; align-items: stretch; }
  .forge__field .btn { width: 100%; }
  .forge__presets { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .forge__presets::-webkit-scrollbar { display: none; }
  .forge__presets button { flex: none; min-height: 44px; }
  .forge__artifact { padding: 10px; }
  .art { grid-template-columns: 1fr; }
  .art__site { min-height: 440px; }
  .art__hero { max-width: 100%; padding: 18px 16px; }
  .art__pic { width: 100%; height: 44%; }
  .art__links { display: none; }
  .art__cta { margin-left: auto; }
  .art__spec { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .art__why { grid-column: 1 / -1; }
  .art__type { border-top: 0; padding-top: 0; flex-direction: column; align-items: flex-start; }
  .art__typename { text-align: left; }
}

/* ---------- outputs ledger ---------- */
.outputs { position: relative; padding: var(--s7) var(--gutter) var(--s6); background: var(--bg); }
.outputs__title { font-size: 17px; font-weight: 600; color: var(--text-2); margin-bottom: var(--s3); }
.ledger { border-top: 1px solid var(--text); }
.row {
  display: grid; grid-template-columns: 1fr minmax(220px, 320px) 80px; align-items: center; gap: var(--s4);
  padding: clamp(14px, 1.6vw, 22px) 0; border-bottom: 1px solid var(--line-2);
  text-decoration: none; position: relative;
}
.row__word {
  font-size: clamp(48px, 8.4vw, 136px); line-height: .9; font-weight: 700; text-transform: uppercase; letter-spacing: -.02em;
  transition: color 240ms var(--ease-h), transform 500ms var(--ease);
  white-space: nowrap;
}
.w1 { font-stretch: 125%; font-weight: 800; }
.w2 { font-stretch: 62%; font-weight: 600; }
.w3 { font-stretch: 112%; font-weight: 300; }
.w4 { font-stretch: 75%; font-weight: 800; }
.w5 { font-stretch: 100%; font-weight: 500; }
.row__desc { color: var(--text-2); font-size: 16px; }
.row__meta { color: var(--text-3); text-align: right; }
.row:hover .row__word, .row:focus-visible .row__word { color: var(--accent); transform: translateX(clamp(8px, 1.5vw, 24px)); }
.peek {
  position: fixed; left: 0; top: 0; z-index: 30; width: 300px; height: 200px; pointer-events: none;
  border-radius: var(--r-sm); opacity: 0; transform: translate3d(-999px, -999px, 0);
  transition: opacity 260ms var(--ease);
  box-shadow: 0 30px 60px -30px oklch(0.2 0.02 40 / .5);
}
.peek.on { opacity: 1; }
@media (max-width: 860px) {
  .outputs { padding: var(--s6) var(--gutter) var(--s5); }
  .row { grid-template-columns: 1fr auto; gap: 4px 16px; padding: 18px 0; }
  .row__word { font-size: clamp(34px, 11.5vw, 72px); grid-column: 1 / -1; }
  .row__desc { font-size: 15px; }
  .row__meta { align-self: start; }
  .peek { display: none; }
}
@media (hover: none) { .peek { display: none; } }

/* ---------- stat (tinted) ---------- */
.stat {
  background: color-mix(in oklab, var(--accent) 9%, var(--bg));
  padding: var(--s6) var(--gutter);
  display: grid; grid-template-columns: auto 1fr; gap: var(--s5); align-items: end;
  overflow: hidden;
}
.stat__num { display: flex; align-items: baseline; gap: 12px; line-height: .78; }
.stat__n { font-size: clamp(160px, 26vw, 400px); font-weight: 800; font-stretch: 62%; letter-spacing: -.04em; color: var(--text); font-variant-numeric: tabular-nums; }
.stat__u { font-family: var(--mono); font-size: 14px; color: var(--accent-ink); }
.stat__prose { max-width: 520px; display: grid; gap: var(--s2); padding-bottom: 12px; }
.stat__lead { font-size: clamp(22px, 2vw, 30px); line-height: 1.2; font-weight: 500; }
.stat__prose p:not(.stat__lead) { color: var(--text-2); }
@media (max-width: 860px) {
  .stat { grid-template-columns: 1fr; gap: var(--s3); padding: var(--s5) var(--gutter); }
  .stat__n { font-size: 52vw; }
}

/* ---------- principles ---------- */
.principles { padding: var(--s7) var(--gutter); display: grid; grid-template-columns: 1fr 2fr; gap: var(--s5); background: var(--bg); }
.principles h2 { font-size: clamp(34px, 3.3vw, 50px); line-height: 1; font-weight: 700; font-stretch: 62%; text-transform: uppercase; position: sticky; top: 100px; align-self: start; }
.dl { margin: 0; display: grid; }
.dl > div { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); padding: var(--s4) 0; border-top: 1px solid var(--line-2); }
.dl > div:last-child { border-bottom: 1px solid var(--line-2); }
.dl dt { font-size: clamp(22px, 2vw, 30px); line-height: 1.15; font-weight: 600; font-stretch: 112%; }
.dl dd { margin: 0; color: var(--text-2); padding-top: 4px; }
@media (max-width: 860px) {
  .principles { grid-template-columns: 1fr; padding: var(--s6) var(--gutter); gap: var(--s3); }
  .principles h2 { position: static; }
  .dl > div { grid-template-columns: 1fr; gap: 8px; padding: var(--s3) 0; }
}

/* ---------- access (dark) ---------- */
.access { background: var(--night); color: var(--on-night); padding: var(--s7) var(--gutter); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--s3); row-gap: var(--s4); }
.access h2 { grid-column: 1 / span 9; font-size: clamp(48px, 7.4vw, 120px); line-height: .88; font-weight: 800; font-stretch: 62%; text-transform: uppercase; letter-spacing: -.02em; }
.access__price { grid-column: 1 / span 6; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.35; color: var(--on-night-2); }
.access__price strong { color: var(--on-night); font-weight: 600; font-variant-numeric: tabular-nums; }
.access__form { grid-column: 7 / span 6; align-self: end; display: grid; gap: 10px; }
.access__form label { font-size: 14px; color: var(--on-night-2); }
.access__row { display: flex; gap: 10px; }
.access__row input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 16px; border-radius: var(--r-xs);
  background: var(--night-2); border: 1px solid var(--wline-2); color: var(--on-night); font-size: 17px;
  transition: border-color 180ms var(--ease-h), background-color 180ms var(--ease-h);
}
.access__row input::placeholder { color: oklch(0.58 0.01 50); }
.access__row input:hover { background: var(--night-3); }
.access__row input:focus { outline: none; border-color: var(--accent-on-dark); }
.access__row input[aria-invalid="true"] { border-color: oklch(0.7 0.17 25); }
.access__msg { min-height: 1.5em; font-size: 15px; color: var(--on-night-2); }
.access__msg.err { color: oklch(0.78 0.14 30); }
.access__msg.ok { color: var(--accent-on-dark); }
@media (max-width: 860px) {
  .access { padding: var(--s6) var(--gutter); }
  .access h2, .access__price, .access__form { grid-column: 1 / -1; }
  .access__row { flex-direction: column; }
}

/* ---------- footer ---------- */
.foot { background: var(--bg); padding: var(--s6) var(--gutter) var(--s3); overflow: hidden; }
.foot__mark { position: relative; display: grid; justify-items: center; padding-bottom: 9vw; }
.foot__word {
  grid-area: 1 / 1; display: block; font-size: 17.4vw; line-height: 1; font-weight: 900; font-stretch: 125%; letter-spacing: -.03em;
  color: var(--text); user-select: none; white-space: nowrap;
}
.foot__word--refl {
  color: var(--accent); opacity: .75;
  transform-origin: 50% 84.6%; transform: scaleY(-.62);
  filter: url(#heat);
  -webkit-mask-image: linear-gradient(to top, #000 22%, transparent 62%); mask-image: linear-gradient(to top, #000 22%, transparent 62%);
}
.foot__bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s2); padding-top: var(--s4); border-top: 1px solid var(--line-2); font-size: 14px; color: var(--text-2); }
.foot__bar nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot__bar a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--text-2); }
.foot__bar a:hover { color: var(--accent-ink); }
.foot__bar p { display: flex; align-items: center; min-height: 44px; }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(var(--rv-y, 20px)); transition: opacity 800ms var(--ease), transform 900ms var(--ease); transition-delay: var(--rv-d, 0ms); }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  .rv { opacity: 1; transform: none; }
  .foot__word--refl { filter: none; }
}
