/* ==========================================================================
   Fae — faebuild.com
   System: quiet, product-first. Neutral near-black canvas, one neutral
   grotesque at modest sizes, two-tone statements (ink then muted),
   screenshots in hairline frames doing the talking. Ornament ≈ zero.
   The marketing surface follows Fae's graphite-and-white product palette.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Canvas */
  --bg: #0f0f0f;
  --bg2: #141414;
  --cell: #181818;
  --well: #222222;

  /* Lines */
  --line: rgba(255, 255, 255, 0.07);
  --line2: rgba(255, 255, 255, 0.14);

  /* Ink */
  --text: #f0f0f0;
  --mut: #b8b8b8;
  --dim: #858585;
  --ink: #0a0a0a;

  /* Semantic contrast, kept monochrome on the marketing surface */
  --ok: #d0d0d0;
  --gate: #a8a8a8;

  --max: 1200px;
  --gutter: clamp(20px, 4vw, 44px);

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --head: "Inter Tight", var(--sans);
  --mono: "IBM Plex Mono", Consolas, "SFMono-Regular", monospace;

  font-family: var(--sans);
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.98rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p, figure { margin: 0; }
ol, ul { margin: 0; padding: 0; }

::selection { background: rgba(245, 244, 242, 0.16); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

/* Quiet overline label (kept small and rare) */
.mono-label {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--dim);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  background: var(--text);
  color: var(--ink);
  font-weight: 600;
  transform: translateY(-220%);
  transition: transform 140ms ease;
}
.skip-link:focus { transform: translateY(0); outline: none; }

html.js .reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0) scale(0.992);
  transform-origin: center top;
  transition:
    opacity 760ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 760ms cubic-bezier(0.16, 1, 0.3, 1);
}
html.js .reveal.is-in { opacity: 1; transform: none; }

@supports (animation-timeline: view()) {
  html.js.scroll-driven .reveal {
    opacity: 1;
    transform: none;
    transition: none;
    animation: reveal-on-scroll both linear;
    animation-timeline: view();
    animation-range: entry 0% cover 28%;
  }

  @keyframes reveal-on-scroll {
    from { opacity: 0.06; transform: translate3d(0, 30px, 0) scale(0.99); }
    72%, to { opacity: 1; transform: none; }
  }
}

@media (prefers-reduced-motion: no-preference) {
  html.js .hero-inner > *,
  html.js .page-hero > *,
  html.js .access-layout > .reveal:first-child > * {
    animation: page-enter 820ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  html.js .hero-inner > *:nth-child(2),
  html.js .page-hero > *:nth-child(2),
  html.js .access-layout > .reveal:first-child > *:nth-child(2) { animation-delay: 70ms; }
  html.js .hero-inner > *:nth-child(3),
  html.js .page-hero > *:nth-child(3),
  html.js .access-layout > .reveal:first-child > *:nth-child(3) { animation-delay: 140ms; }
  html.js .hero-inner > *:nth-child(4),
  html.js .access-layout > .reveal:first-child > *:nth-child(4) { animation-delay: 210ms; }
  html.js .hero-stage { animation: page-enter 1000ms 180ms cubic-bezier(0.16, 1, 0.3, 1) both; }

  @keyframes page-enter {
    from { opacity: 0; transform: translate3d(0, 18px, 0); }
    to { opacity: 1; transform: none; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal,
  html.js .hero-inner > *,
  html.js .page-hero > *,
  html.js .access-layout > .reveal:first-child > *,
  html.js .hero-stage { opacity: 1; transform: none; transition: none; animation: none; }
}

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(15, 15, 15, 0.88);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.nav.is-scrolled {
  background: rgba(15, 15, 15, 0.95);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

.nav-inner {
  width: min(100% - (var(--gutter) * 2), var(--max));
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--head);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand .mark {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
}
.brand .mark img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(96%) sepia(3%) saturate(120%) hue-rotate(22deg) brightness(101%) contrast(92%);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--mut);
  font-size: 0.875rem;
  font-weight: 500;
}
.nav-links a {
  padding: 7px 12px;
  border-radius: 999px;
  transition: color 130ms ease, background 130ms ease;
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--text); background: rgba(245, 244, 242, 0.06); }
.nav-links a.active { color: var(--text); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 500;
}
.nav-toggle:hover, .nav-toggle:focus-visible { background: rgba(245, 244, 242, 0.06); }
.nav-toggle .bars {
  position: relative;
  width: 13px;
  height: 9px;
  display: inline-block;
}
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 13px;
  height: 1.5px;
  background: currentColor;
  transition: transform 160ms ease, top 160ms ease, bottom 160ms ease;
}
.nav-toggle .bars::before { top: 0.5px; }
.nav-toggle .bars::after { bottom: 0.5px; }
.nav.open .nav-toggle .bars::before { top: 3.5px; transform: rotate(45deg); }
.nav.open .nav-toggle .bars::after { bottom: 4px; transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
   Buttons — quiet pills
   -------------------------------------------------------------------------- */

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  background: rgba(245, 244, 242, 0.04);
  color: var(--text);
  font-weight: 500;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: background 140ms ease, border-color 140ms ease;
}
.button:hover,
.button:focus-visible {
  background: rgba(245, 244, 242, 0.09);
  border-color: rgba(245, 244, 242, 0.24);
}

.button.primary {
  border-color: var(--text);
  background: var(--text);
  color: var(--ink);
  font-weight: 600;
}
.button.primary:hover,
.button.primary:focus-visible {
  background: #ffffff;
  border-color: #ffffff;
}

.button:disabled { cursor: wait; opacity: 0.55; }

.button .arrow { font-weight: 400; }

/* --------------------------------------------------------------------------
   Hero — modest statement, then the product
   -------------------------------------------------------------------------- */

.hero { padding-top: clamp(56px, 8vw, 110px); }

.hero-inner {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

.hero-kicker { display: none; }

.hero h1 {
  font-family: var(--head);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  font-weight: 550;
  line-height: 1.22;
  letter-spacing: -0.015em;
  max-width: 24ch;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; }

.hero-sub {
  margin-top: 16px;
  max-width: 56ch;
  color: var(--mut);
  font-size: 1.02rem;
  line-height: 1.62;
}
.hero-sub strong { color: var(--mut); font-weight: 500; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px;
}
.hero-meta span {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--dim);
}

/* The product, full width, floating on a neutral Fae panel */
.hero-stage {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin: clamp(36px, 5vw, 56px) auto 0;
  padding: clamp(14px, 2.6vw, 36px);
  border-radius: 18px;
  background:
    radial-gradient(120% 140% at 20% 0%, rgba(255, 255, 255, 0.055), rgba(20, 20, 20, 0.58) 55%, rgba(10, 10, 10, 0.24) 100%),
    var(--bg2);
  border: 1px solid var(--line);
}
.hero-shot {
  border-radius: 10px;
  border: 1px solid rgba(245, 244, 242, 0.12);
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}
.hero-shot img { width: 100%; height: auto; }

/* --------------------------------------------------------------------------
   Sections — space over rules; two-tone statements
   -------------------------------------------------------------------------- */

.sec {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
  padding: clamp(64px, 9vw, 128px) 0 0;
}
main > .sec:last-of-type { padding-bottom: clamp(64px, 9vw, 128px); }

.sec-head {
  display: block;
  max-width: 780px;
}

.sec-index {
  display: block;
  margin-bottom: 14px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--dim);
  font-family: var(--sans);
}
.sec-index .n { color: var(--dim); }

/* Two-tone statement: ink sentence, muted continuation */
.sec-title {
  font-family: var(--head);
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 550;
  line-height: 1.32;
  letter-spacing: -0.012em;
  max-width: 44ch;
  text-wrap: balance;
}
.sec-title em { font-style: normal; }
.sec-title .mut { color: var(--mut); font-weight: 500; }

.sec-copy {
  max-width: 58ch;
  margin-top: 14px;
  color: var(--mut);
  font-size: 0.98rem;
  line-height: 1.64;
}
.sec-copy strong { color: var(--text); font-weight: 550; }
.sec-copy a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line2); }
.sec-copy a:hover { text-decoration-color: var(--text); }

.sec-body { margin-top: clamp(28px, 4vw, 44px); }
.sec-body.indent { margin-left: 0; }

/* Center variant for the ledger section */
.sec-center { text-align: left; }
.sec-center .plate-wrap { max-width: 800px; margin-top: clamp(28px, 4vw, 44px); }

/* --------------------------------------------------------------------------
   Run ledger — the live replay panel
   -------------------------------------------------------------------------- */

.plate-wrap { position: relative; }
.stamp { display: none; }

.ledger {
  position: relative;
  border: 1px solid var(--line2);
  border-radius: 12px;
  background: var(--bg2);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.ledger-chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 244, 242, 0.025);
}
.ledger-dots { display: inline-flex; gap: 6px; }
.ledger-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(245, 244, 242, 0.14);
}
.ledger-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--mut);
}
.ledger-status {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: var(--dim);
}
.ledger-status.is-running { color: var(--gate); }
.ledger-status.is-done { color: var(--ok); }

.ledger-rows {
  list-style: none;
  padding: 16px 18px 8px;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.5;
}

.ledger-row {
  display: grid;
  grid-template-columns: 44px 52px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 6px 0;
}
html.js .ledger.is-armed .ledger-row {
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 300ms ease, transform 300ms ease;
}
html.js .ledger.is-armed .ledger-row.is-on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .ledger.is-armed .ledger-row { opacity: 1; transform: none; transition: none; }
}

.lr-time { color: var(--dim); font-size: 0.7rem; }

.lr-tag {
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: var(--mut);
}
.lr-tag.t-edit { color: var(--text); }
.lr-tag.t-gate { color: var(--gate); }
.lr-tag.t-pass, .lr-tag.t-rcpt { color: var(--ok); }

.lr-msg { color: var(--mut); overflow-wrap: break-word; }
.lr-msg em { font-style: normal; color: var(--text); }
.lr-msg .ok { color: var(--ok); }
.lr-msg .gate { color: var(--gate); }

.ledger-row.is-live .lr-msg::after {
  content: "▌";
  margin-left: 4px;
  color: var(--mut);
}
@media (prefers-reduced-motion: no-preference) {
  .ledger-row.is-live .lr-msg::after { animation: caret 900ms steps(2) infinite; }
}
@keyframes caret { 50% { opacity: 0; } }

.ledger-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px 15px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--dim);
}
html.js .ledger.is-armed .ledger-foot .ledger-verdict {
  opacity: 0;
  transition: opacity 400ms ease;
}
html.js .ledger.is-armed.is-done .ledger-foot .ledger-verdict { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  html.js .ledger.is-armed .ledger-foot .ledger-verdict { opacity: 1; }
}

.ledger-foot .ok-dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
}

.ledger-verdict { flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 10px; }

.ledger-replay {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 5px 13px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  background: transparent;
  color: var(--mut);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  transition: color 130ms ease, border-color 130ms ease;
}
.ledger-replay:hover,
.ledger-replay:focus-visible { color: var(--text); border-color: rgba(245, 244, 242, 0.3); }
html:not(.js) .ledger-replay { display: none; }
@media (prefers-reduced-motion: reduce) {
  .ledger-replay { display: none; }
}

/* --------------------------------------------------------------------------
   Fae process artifact surface
   -------------------------------------------------------------------------- */

.ledger {
  border-radius: 16px;
  background: var(--cell);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
}

.ledger-chrome {
  gap: 10px;
  padding: 16px 22px;
  background: rgba(245, 246, 247, 0.018);
}
.ledger-chrome::before {
  content: "";
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  background: url("/assets/fae-icon.svg") center / contain no-repeat;
  opacity: 0.9;
}
.ledger-dots { display: none; }
.ledger-title {
  flex: 1;
  font-family: var(--sans);
  font-size: 0;
  font-weight: 550;
  letter-spacing: 0.01em;
  color: var(--mut);
}
.ledger-title::before {
  content: "Fae / Code";
  font-size: 0.78rem;
  color: var(--text);
}
.ledger-status {
  padding: 5px 9px;
  border: 1px solid var(--line2);
  border-radius: 7px;
  color: var(--mut);
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.ledger-status.is-running { color: var(--gate); border-color: rgba(255, 255, 255, 0.2); }
.ledger-status.is-done { color: var(--ok); border-color: rgba(255, 255, 255, 0.22); }

.ledger-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px 18px;
  border-bottom: 1px solid var(--line);
}
.ledger-summary-copy { display: grid; gap: 4px; }
.ledger-kicker,
.ledger-artifact {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--dim);
}
.ledger-summary-copy strong {
  font-family: var(--head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}
.ledger-duration { font-size: 0.75rem; color: var(--dim); }
.ledger-summary-actions { display: flex; align-items: center; gap: 14px; padding-top: 2px; }
.ledger-artifact {
  padding: 5px 8px;
  border: 1px solid var(--line2);
  border-radius: 6px;
}
.ledger-show-steps { color: var(--mut); font-size: 0.78rem; white-space: nowrap; }
.ledger-show-steps span { color: var(--dim); font-size: 1rem; }

.ledger-rows {
  position: relative;
  padding: 14px 22px 16px;
  font-family: var(--sans);
  font-size: 0.8rem;
}
.ledger-rows::before {
  content: "";
  position: absolute;
  top: 25px;
  bottom: 25px;
  left: 29px;
  width: 1px;
  background: var(--line);
}
.ledger-row {
  position: relative;
  grid-template-columns: 14px 44px 56px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  align-items: center;
}
.ledger-row::before {
  content: "";
  z-index: 1;
  grid-column: 1;
  width: 7px;
  height: 7px;
  margin-left: 3px;
  border: 1px solid var(--line2);
  border-radius: 50%;
  background: var(--cell);
}
.ledger-row.is-on::before { border-color: var(--text); background: var(--text); }
.lr-time { grid-column: 2; font-size: 0.66rem; }
.lr-tag { grid-column: 3; font-family: var(--mono); font-size: 0.6rem; }
.lr-msg { grid-column: 4; }

.ledger-foot {
  padding: 14px 22px 16px;
  background: rgba(245, 246, 247, 0.018);
  font-family: var(--sans);
  font-size: 0.75rem;
}
.ledger-replay { border-radius: 7px; }

/* --------------------------------------------------------------------------
   Spec list
   -------------------------------------------------------------------------- */

.spec-list { border-top: 1px solid var(--line); }

.spec-row {
  display: grid;
  grid-template-columns: 56px 230px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 40px);
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.spec-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--dim);
  padding-top: 5px;
}

.spec-term h3 {
  font-family: var(--head);
  font-size: 1.04rem;
  font-weight: 550;
  line-height: 1.3;
}
.spec-term .mono-label { display: block; margin-top: 5px; }

.spec-desc {
  color: var(--mut);
  font-size: 0.94rem;
  line-height: 1.62;
  max-width: 58ch;
}
.spec-desc strong { color: var(--text); font-weight: 550; }
.spec-desc em { font-family: var(--mono); font-style: normal; font-size: 0.9em; }

/* --------------------------------------------------------------------------
   Boundary board
   -------------------------------------------------------------------------- */

.board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.board-col {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--cell);
  padding: 24px 24px 16px;
}

.board-col header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.board-col header .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.board-col.local header .dot { background: var(--ok); }
.board-col.gated header .dot { background: var(--gate); }

.board-col header h3 {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
}

.board-col ul { list-style: none; }
.board-col li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--mut);
  font-size: 0.9rem;
  line-height: 1.55;
}
.board-col li:last-child { border-bottom: 0; }
.board-col li .glyph {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding-top: 3px;
}
.board-col.local li .glyph { color: var(--ok); }
.board-col.gated li .glyph { color: var(--gate); }
.board-col li strong { color: var(--text); font-weight: 550; }

.board-note {
  margin-top: 16px;
  color: var(--dim);
  font-size: 0.86rem;
  line-height: 1.6;
  max-width: 70ch;
}

/* --------------------------------------------------------------------------
   Figures
   -------------------------------------------------------------------------- */

.fig { min-width: 0; }

.fig-frame {
  border: 1px solid var(--line2);
  border-radius: 12px;
  background: var(--bg2);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.fig-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 244, 242, 0.025);
}
.fig-bar .ledger-dots i { width: 7px; height: 7px; }
.fig-bar span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--dim);
}

.fig-body { position: relative; }
.fig-body img { width: 100%; height: auto; }

.fig figcaption {
  margin-top: 12px;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--dim);
}
.fig figcaption .fig-id { color: var(--mut); font-weight: 550; }

/* Zoom lens */
.zoom-frame { cursor: zoom-in; }
.zoom-frame.is-zooming, .zoom-frame.is-zooming * { cursor: none; }
.zoom-lens {
  position: absolute;
  z-index: 3;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(245, 244, 242, 0.4);
  border-radius: 50%;
  background-color: var(--bg2);
  background-repeat: no-repeat;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 150ms ease, transform 150ms ease;
}
.zoom-frame.is-zooming .zoom-lens { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (hover: none) {
  .zoom-frame { cursor: default; }
  .zoom-lens { display: none; }
}

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.showcase.reverse { grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr); }

.showcase .text-block .mono-label { color: var(--dim); }
.showcase .text-block h3 {
  max-width: 24ch;
  font-family: var(--head);
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  font-weight: 550;
  line-height: 1.28;
  letter-spacing: -0.01em;
  margin-top: 10px;
  text-wrap: balance;
}
.showcase .text-block p {
  margin-top: 12px;
  max-width: 48ch;
  color: var(--mut);
  font-size: 0.95rem;
  line-height: 1.62;
}
.showcase .text-block p strong { color: var(--text); font-weight: 550; }

.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */

.page-hero {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
  padding: clamp(52px, 7vw, 88px) 0 0;
}

.page-hero .mono-label { color: var(--dim); }

.page-hero .page-title {
  margin-top: 12px;
  max-width: 26ch;
  font-family: var(--head);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 550;
  line-height: 1.18;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.page-hero .page-title em { font-style: normal; }

.page-hero .page-copy {
  margin-top: 16px;
  max-width: 60ch;
  color: var(--mut);
  font-size: 1rem;
  line-height: 1.64;
}
.page-hero .page-copy strong { color: var(--mut); font-weight: 500; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  margin-top: clamp(64px, 9vw, 128px);
  padding: clamp(56px, 8vw, 96px) 0;
  border-top: 1px solid var(--line);
  background: var(--bg2);
}

.cta-band > .reveal,
.cta-band > .button-row {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

.cta-band .mono-label { color: var(--dim); }

.cta-band h2 {
  margin-top: 12px;
  max-width: 30ch;
  font-family: var(--head);
  font-size: clamp(1.4rem, 2.3vw, 1.9rem);
  font-weight: 550;
  line-height: 1.25;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.cta-band h2 em { font-style: normal; }

.cta-band .cta-sub {
  margin-top: 12px;
  max-width: 56ch;
  color: var(--mut);
  font-size: 0.96rem;
}

.cta-band > .button-row { margin-top: 26px; }

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   Access form
   -------------------------------------------------------------------------- */

.access-layout {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
  padding: clamp(52px, 7vw, 84px) 0 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(400px, 0.75fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.access-points { display: grid; gap: 0; margin-top: 26px; border-top: 1px solid var(--line); max-width: 56ch; }
.access-points > div {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--mut);
  font-size: 0.92rem;
  line-height: 1.6;
}
.access-points .glyph { font-family: var(--mono); font-size: 0.7rem; color: var(--ok); padding-top: 4px; }
.access-points strong { color: var(--text); font-weight: 550; }

.access-request {
  border: 1px solid var(--line2);
  border-radius: 16px;
  background: var(--cell);
  padding: clamp(22px, 3vw, 30px);
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.request-head { display: grid; gap: 6px; margin-bottom: 22px; }
.request-head .mono-label { color: var(--dim); }
.request-head p { color: var(--mut); font-size: 0.9rem; line-height: 1.6; }

label {
  color: var(--dim);
  font-size: 0.76rem;
  font-weight: 550;
  letter-spacing: 0.01em;
}

input, textarea {
  width: 100%;
  border: 1px solid var(--line2);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--well);
  color: var(--text);
  outline: none;
  transition: border-color 130ms ease;
}
input::placeholder, textarea::placeholder { color: var(--dim); }
input:focus, textarea:focus { border-color: rgba(245, 244, 242, 0.4); }

input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--gate); }

.email-capture { display: grid; gap: 8px; }

.choice-field { min-inline-size: 0; margin: 22px 0 0; padding: 0; border: 0; }
.choice-field legend {
  margin-bottom: 10px;
  padding: 0;
  color: var(--dim);
  font-size: 0.76rem;
  font-weight: 550;
}

.track-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.track-option {
  position: relative;
  display: block;
  padding: 13px 36px 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--well);
  color: var(--mut);
  cursor: pointer;
  transition: border-color 130ms ease, background 130ms ease;
}
.track-option:hover, .track-option:focus-within { border-color: var(--line2); }
.track-option:has(input:checked) {
  border-color: rgba(245, 244, 242, 0.4);
  background: rgba(245, 244, 242, 0.04);
}

.track-option input {
  position: absolute;
  top: 14px;
  right: 13px;
  width: 15px;
  height: 15px;
  margin: 0;
  appearance: none;
  border: 1px solid var(--line2);
  border-radius: 50%;
  background: transparent;
  padding: 0;
}
.track-option input:checked {
  border-color: var(--text);
  background: radial-gradient(circle, var(--text) 0 34%, transparent 42%);
}

.track-option strong {
  display: block;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 550;
  line-height: 1.25;
}
.track-option small {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--mut);
}

.access-note { display: grid; gap: 8px; margin-top: 22px; }

.access-request .button { width: 100%; margin-top: 22px; }

.form-consent {
  margin-top: 13px;
  color: var(--dim);
  font-size: 0.76rem;
  line-height: 1.55;
}
.form-consent a { color: var(--mut); text-decoration: underline; text-underline-offset: 3px; }

.form-status {
  min-height: 20px;
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--mut);
}
.form-status.ready { color: var(--ok); }
.form-status.error { color: var(--gate); }
.form-status a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(32px, 5vw, 56px);
  border-top: 1px solid var(--line);
}

.faq-item {
  min-width: 0;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.faq-item h3 {
  font-family: var(--sans);
  font-size: 0.96rem;
  font-weight: 550;
  line-height: 1.4;
}
.faq-item h3::before {
  content: attr(data-q) " ";
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--dim);
  display: block;
  margin-bottom: 6px;
}
.faq-item p {
  margin-top: 8px;
  color: var(--mut);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 52ch;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  margin-top: clamp(64px, 9vw, 128px);
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.cta-band + .footer { margin-top: 0; }

.footer-inner {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
  padding: 48px 0 36px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 0.55fr));
  gap: 32px 40px;
  align-items: start;
}

.footer-brand { display: grid; gap: 8px; color: var(--dim); font-size: 0.86rem; max-width: 34ch; }
.footer-brand .brand { color: var(--text); }
.footer-honest {
  font-size: 0.76rem;
  color: var(--dim);
}
.footer-honest .ok { color: var(--ok); font-size: 0.6rem; }

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 550;
  color: var(--dim);
}
.footer-col a {
  display: block;
  padding: 4px 0;
  color: var(--mut);
  font-size: 0.88rem;
  transition: color 130ms ease;
}
.footer-col a:hover, .footer-col a:focus-visible { color: var(--text); }

.footer-base {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
  padding: 16px 0 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  color: var(--dim);
  font-size: 0.76rem;
}

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */

.legal-layout {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
  padding: clamp(40px, 5vw, 64px) 0 0;
  display: grid;
  grid-template-columns: minmax(180px, 0.26fr) minmax(0, 0.84fr);
  gap: clamp(40px, 7vw, 88px);
  align-items: start;
}

.legal-index {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 4px;
  color: var(--mut);
  font-size: 0.84rem;
}
.legal-index a { width: fit-content; padding: 4px 0; }
.legal-index a:hover, .legal-index a:focus-visible { color: var(--text); }

.legal-content { max-width: 70ch; }

.legal-note {
  font-size: 0.78rem;
  color: var(--dim);
}

.legal-section { margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line); }
.legal-section h2 {
  font-family: var(--head);
  font-size: 1.2rem;
  font-weight: 550;
  line-height: 1.25;
}
.legal-section p, .legal-section li { color: var(--mut); font-size: 0.94rem; line-height: 1.7; }
.legal-section p { margin-top: 12px; }
.legal-section ul { display: grid; gap: 8px; margin: 12px 0 0; padding-left: 20px; }
.legal-section a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line2); }

.surface-list { border-top: 1px solid var(--line); }
.surface-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 40px);
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.surface-row__index {
  padding-top: 4px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.68rem;
}
.surface-row__body { min-width: 0; max-width: 760px; }
.surface-row__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}
.surface-row__eyebrow,
.surface-row__state,
.surface-row__meta {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.surface-row__state { color: var(--mut); white-space: nowrap; }
.surface-row h3 {
  margin-top: 8px;
  color: var(--text);
  font-family: var(--head);
  font-size: 1.14rem;
  font-weight: 550;
  line-height: 1.3;
}
.surface-row p {
  max-width: 64ch;
  margin-top: 7px;
  color: var(--mut);
  font-size: 0.94rem;
  line-height: 1.6;
}
.surface-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
}
.surface-row__meta span + span::before {
  content: "·";
  margin-right: 18px;
  color: var(--line2);
}

/* --------------------------------------------------------------------------
   Completion contract
   -------------------------------------------------------------------------- */

.completion-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.62fr);
  gap: clamp(42px, 8vw, 120px);
  align-items: end;
}

.completion-intro .sec-index { margin-bottom: 18px; }
.completion-intro .sec-title { max-width: 13ch; }

.completion-lede {
  max-width: 50ch;
  color: var(--mut);
  font-size: clamp(0.96rem, 1.3vw, 1.08rem);
  line-height: 1.7;
}

.completion-list {
  margin-top: clamp(48px, 7vw, 78px);
  border-top: 1px solid var(--line2);
}

.completion-row {
  display: grid;
  grid-template-columns: 48px minmax(180px, 0.42fr) minmax(260px, 0.72fr) auto;
  gap: clamp(18px, 3vw, 44px);
  align-items: center;
  min-height: 106px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.completion-num,
.completion-proof,
.completion-rule span {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.completion-num { color: var(--dim); }

.completion-copy h3 {
  color: var(--text);
  font-family: var(--head);
  font-size: 1rem;
  font-weight: 560;
  letter-spacing: -0.01em;
}

.completion-copy p {
  color: var(--mut);
  font-size: 0.88rem;
  line-height: 1.55;
}

.completion-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 12px;
  color: var(--dim);
  white-space: nowrap;
}

.completion-proof span + span::before {
  content: "/";
  margin-right: 12px;
  color: rgba(255, 255, 255, 0.22);
}

.completion-rule {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  color: var(--mut);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.completion-rule span { color: var(--dim); }

/* --------------------------------------------------------------------------
   Fae Mobile
   -------------------------------------------------------------------------- */

.mobile-hero {
  width: min(100% - (var(--gutter) * 2), var(--max));
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(520px, 1.18fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
  margin-inline: auto;
  padding: clamp(54px, 7vw, 94px) 0 clamp(48px, 6vw, 82px);
}

.mobile-hero__copy { min-width: 0; grid-column: 1; grid-row: 1; align-self: end; }
.mobile-hero__stage { grid-column: 2; grid-row: 1 / span 2; }
.mobile-hero > .mobile-hero__facts { grid-column: 1; grid-row: 2; align-self: start; }

.mobile-hero__copy h1 {
  max-width: 15ch;
  margin-top: 13px;
  font-family: var(--head);
  font-size: clamp(2.15rem, 4.3vw, 4.1rem);
  font-weight: 550;
  line-height: 1.03;
  letter-spacing: -0.034em;
  text-wrap: balance;
}

.mobile-hero__lede {
  max-width: 54ch;
  margin-top: 22px;
  color: var(--mut);
  font-size: 1rem;
  line-height: 1.7;
}

.mobile-hero__lede strong { color: var(--text); font-weight: 520; }

.mobile-hero__facts {
  display: grid;
  gap: 0;
  margin-top: 34px;
  border-top: 1px solid var(--line2);
}

.mobile-hero__facts > div {
  display: grid;
  grid-template-columns: minmax(118px, 0.44fr) minmax(0, 1fr);
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.mobile-hero__facts dt {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 550;
}

.mobile-hero__facts dd {
  margin: 0;
  color: var(--dim);
  font-size: 0.78rem;
  line-height: 1.55;
}

.mobile-status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #92cbaa;
  box-shadow: 0 0 0 4px rgba(146, 203, 170, 0.09);
}

.mobile-hero__stage {
  position: relative;
  min-height: 710px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(18px, 2.5vw, 32px);
  padding: 34px 26px 20px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(90% 70% at 50% 22%, rgba(255, 255, 255, 0.075), transparent 68%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
    var(--bg2);
  overflow: hidden;
  isolation: isolate;
}

.mobile-hero__stage::before {
  content: "";
  position: absolute;
  inset: auto 8% 10px;
  height: 34%;
  z-index: -1;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.74);
  filter: blur(44px);
}

.mobile-phone {
  position: relative;
  min-width: 0;
  margin: 0;
}

.mobile-phone__screen {
  position: relative;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 32px;
  background: #080808;
  box-shadow:
    0 36px 80px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.mobile-phone__screen::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 26px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  pointer-events: none;
}

.mobile-phone__screen img {
  width: 100%;
  height: auto;
  border-radius: 26px;
}

.mobile-phone figcaption {
  margin-top: 13px;
  color: var(--dim);
  font-size: 0.74rem;
  line-height: 1.5;
  text-align: center;
}

.mobile-phone--hero-main { width: min(44%, 286px); }
.mobile-phone--hero-side { width: min(38%, 246px); transform: translateY(-42px); }
.mobile-phone--hero-side .mobile-phone__screen { opacity: 0.78; }

.mobile-principles {
  width: min(100% - (var(--gutter) * 2), var(--max));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-inline: auto;
  border-top: 1px solid var(--line2);
  border-bottom: 1px solid var(--line);
}

.mobile-principles > div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 14px;
  padding: 22px clamp(18px, 2.6vw, 34px);
  border-right: 1px solid var(--line);
}

.mobile-principles > div:first-child { padding-left: 0; }
.mobile-principles > div:last-child { padding-right: 0; border-right: 0; }

.mobile-principles__index {
  padding-top: 2px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.66rem;
}

.mobile-principles p {
  color: var(--mut);
  font-size: 0.84rem;
  line-height: 1.6;
}

.mobile-principles strong { color: var(--text); font-weight: 550; }

.mobile-usecases { margin-top: clamp(32px, 5vw, 52px); }
#reasoning-title, #boundary-title { scroll-margin-top: 92px; }

.mobile-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.mobile-tab {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 3px 10px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--mut);
  text-align: left;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.mobile-tab:hover,
.mobile-tab:focus-visible {
  color: var(--text);
  border-color: var(--line2);
  background: rgba(255, 255, 255, 0.035);
}

.mobile-tab[aria-selected="true"] {
  border-color: rgba(255, 255, 255, 0.24);
  background: var(--well);
  color: var(--text);
}

.mobile-tab > span {
  grid-row: 1 / span 2;
  padding-top: 3px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.66rem;
}

.mobile-tab strong {
  font-family: var(--head);
  font-size: 0.98rem;
  font-weight: 560;
}

.mobile-tab small {
  overflow: hidden;
  color: var(--dim);
  font-size: 0.72rem;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-panels {
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(70% 90% at 78% 52%, rgba(255, 255, 255, 0.045), transparent 70%),
    var(--bg2);
  overflow: hidden;
}

.mobile-panel {
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(330px, 1.22fr);
  gap: clamp(44px, 7vw, 96px);
  align-items: center;
  padding: clamp(32px, 5vw, 64px);
}

.mobile-panel + .mobile-panel { border-top: 1px solid var(--line); }
.js .mobile-panel[hidden] { display: none; }

.mobile-panel__copy h3 {
  max-width: 17ch;
  margin-top: 12px;
  font-family: var(--head);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 550;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.mobile-panel__copy > p:not(.mono-label) {
  max-width: 48ch;
  margin-top: 18px;
  color: var(--mut);
  font-size: 0.95rem;
  line-height: 1.68;
}

.mobile-checks {
  display: grid;
  gap: 0;
  margin-top: 26px;
  border-top: 1px solid var(--line2);
  list-style: none;
}

.mobile-checks li {
  position: relative;
  padding: 12px 0 12px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.8rem;
  line-height: 1.55;
}

.mobile-checks li::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mut);
}

.mobile-phone--feature {
  width: min(100%, 322px);
  justify-self: center;
}

.mobile-story {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(360px, 1.22fr);
  gap: clamp(54px, 9vw, 126px);
  align-items: center;
  padding: clamp(36px, 6vw, 72px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(70% 80% at 24% 50%, rgba(255, 255, 255, 0.05), transparent 72%),
    var(--bg2);
}

.mobile-phone--story { width: min(100%, 314px); justify-self: center; }
.mobile-story__copy .sec-title { max-width: 20ch; }

.mobile-story__facts {
  display: grid;
  gap: 0;
  margin-top: 30px;
  border-top: 1px solid var(--line2);
}

.mobile-story__facts > div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.mobile-story__facts dt {
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.mobile-story__facts dd {
  margin: 0;
  color: var(--dim);
  font-size: 0.82rem;
  line-height: 1.55;
}

.mobile-boundary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(34px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
  overflow: hidden;
}

.mobile-boundary-grid article {
  min-height: 208px;
  padding: clamp(24px, 3.5vw, 40px);
  background: var(--bg2);
}

.mobile-boundary-grid__index {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.66rem;
}

.mobile-boundary-grid h3 {
  margin-top: 22px;
  font-family: var(--head);
  font-size: 1.12rem;
  font-weight: 560;
  letter-spacing: -0.01em;
}

.mobile-boundary-grid p {
  max-width: 48ch;
  margin-top: 9px;
  color: var(--mut);
  font-size: 0.88rem;
  line-height: 1.65;
}

@media (prefers-reduced-motion: no-preference) {
  html.js .mobile-hero__copy > * {
    animation: page-enter 820ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  html.js .mobile-hero__copy > *:nth-child(2) { animation-delay: 60ms; }
  html.js .mobile-hero__copy > *:nth-child(3) { animation-delay: 120ms; }
  html.js .mobile-hero__copy > *:nth-child(4) { animation-delay: 180ms; }
  html.js .mobile-hero__copy > *:nth-child(5) { animation-delay: 240ms; }
  .mobile-tab[aria-selected="true"] { transform: translateY(-2px); }
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.notfound {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
  min-height: 60vh;
  display: grid;
  align-content: center;
  justify-items: start;
  padding: 80px 0;
}
.notfound .ledger { max-width: 560px; width: 100%; margin-top: 28px; }
.notfound h1 {
  font-family: var(--head);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 550;
  letter-spacing: -0.015em;
  line-height: 1.15;
  max-width: 22ch;
  text-wrap: balance;
}
.notfound .hero-actions { margin-top: 28px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .spec-row { grid-template-columns: 44px minmax(0, 1fr); }
  .spec-row .spec-desc { grid-column: 2; margin-top: 6px; }

  .board { grid-template-columns: 1fr; }
  .showcase, .showcase.reverse { grid-template-columns: 1fr; }
  .showcase.reverse .text-block { order: 2; }
  .showcase.reverse .fig { order: 1; }

  .access-layout { grid-template-columns: 1fr; }

  .legal-layout { grid-template-columns: 1fr; }
  .legal-index {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
  }

  .footer-inner { grid-template-columns: 1fr 1fr; }

  .mobile-hero {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 56px;
  }
  .mobile-hero__copy { max-width: 720px; }
  .mobile-hero__copy h1 { max-width: 17ch; }
  .mobile-hero__copy, .mobile-hero__stage, .mobile-hero > .mobile-hero__facts {
    grid-column: 1;
    grid-row: auto;
  }
  .mobile-hero__stage { width: min(100%, 700px); justify-self: center; }
  .mobile-panel { grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 1.1fr); gap: 40px; }
}

@media (max-width: 720px) {
  .nav-inner { flex-wrap: wrap; gap: 10px; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
    padding: 4px 0 14px;
    font-size: 0.98rem;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .nav-links { display: flex; }

  .hero-actions .button { width: 100%; }
  .hero-stage { padding: 10px; border-radius: 14px; }

  .ledger-rows { padding: 13px 12px 6px; font-size: 0.7rem; }
  .ledger-row { grid-template-columns: 36px 44px minmax(0, 1fr); gap: 8px; }

  .spec-row { grid-template-columns: minmax(0, 1fr); }
  .spec-num { display: none; }
  .spec-row .spec-desc { grid-column: 1; }

  .completion-intro { grid-template-columns: 1fr; gap: 22px; }
  .completion-lede { max-width: 62ch; }
  .completion-row {
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: start;
    min-height: 0;
    padding: 22px 0;
  }
  .completion-proof {
    grid-column: 2;
    justify-content: flex-start;
    white-space: normal;
  }
  .completion-rule { flex-direction: column; gap: 6px; }

  .track-grid { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }

  .button-row, .button-row .button { width: 100%; }

  .footer-inner { grid-template-columns: 1fr; gap: 26px; }

  .mobile-hero { padding-top: 42px; }
  .mobile-hero__copy h1 { font-size: clamp(2.2rem, 12vw, 3.35rem); }
  .mobile-hero__facts > div { grid-template-columns: 106px minmax(0, 1fr); gap: 14px; }

  .mobile-hero__stage {
    min-height: 610px;
    gap: 0;
    padding: 26px 12px 16px;
  }
  .mobile-phone--hero-main { width: min(63vw, 280px); transform: translateX(16px); z-index: 2; }
  .mobile-phone--hero-side {
    width: min(52vw, 230px);
    z-index: 1;
    margin-left: -56px;
    transform: translate(0, -34px);
  }
  .mobile-phone figcaption { font-size: 0.68rem; }

  .mobile-principles { grid-template-columns: 1fr; }
  .mobile-principles > div,
  .mobile-principles > div:first-child,
  .mobile-principles > div:last-child {
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .mobile-principles > div:last-child { border-bottom: 0; }

  .mobile-tabs {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(218px, 78%);
    overflow-x: auto;
    padding: 2px 2px 10px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }
  .mobile-tab { scroll-snap-align: start; }
  .mobile-panel {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 28px 20px 34px;
  }
  .mobile-panel__copy h3 { max-width: 20ch; }
  .mobile-phone--feature { width: min(100%, 310px); }

  .mobile-story {
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 30px 20px 36px;
  }
  .mobile-story__copy { order: 1; }
  .mobile-phone--story { order: 2; width: min(100%, 306px); }

  .mobile-boundary-grid { grid-template-columns: 1fr; }
  .mobile-boundary-grid article { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .zoom-lens, .nav-links a, .mobile-tab { transition: none; }
  html.js .mobile-hero__copy > * { opacity: 1; transform: none; transition: none; animation: none; }
}

@media (max-width: 720px) {
  .surface-row { grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 22px 0; }
  .surface-row__head { display: grid; gap: 4px; }
  .surface-row__meta { gap: 6px 12px; }
  .surface-row__meta span + span::before { margin-right: 12px; }
}

@media (max-width: 720px) {
  .ledger-summary { display: grid; gap: 14px; padding: 18px 16px 16px; }
  .ledger-summary-actions { justify-content: space-between; padding-top: 0; }
  .ledger-rows { padding: 12px 16px 14px; font-size: 0.72rem; }
  .ledger-rows::before { left: 23px; }
  .ledger-row { grid-template-columns: 14px 36px 44px minmax(0, 1fr); gap: 7px; }
  .ledger-chrome, .ledger-foot { padding-left: 16px; padding-right: 16px; }
  .ledger-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
