/* Back-end development: calm engineering sheet.
   Archivo (variable, width + weight) for words, the system monospace for anything a machine would print.
   Colours are tokens; dark mode swaps the tokens only. */

:root {
  --bg: #F4F3EF;
  --bg-alt: #ECEBE6;
  --surface: #FBFAF7;
  --ink: #15171A;
  --muted: #565B61;
  --faint: #8A8F94;
  --line: rgba(21, 23, 26, .12);
  --line-strong: rgba(21, 23, 26, .26);
  --accent: #0E7A5A;
  --accent-soft: rgba(14, 122, 90, .1);
  --on-ink: #F4F3EF;
  --grid: rgba(21, 23, 26, .045);

  /* the log panel stays dark in both themes */
  --p-bg: #15171A;
  --p-bar: #1C1F23;
  --p-ink: #E3E5E0;
  --p-muted: #959AA0;
  --p-line: rgba(255, 255, 255, .08);
  --p-ok: #5FD1A0;
  --p-wait: #E8B45A;
  --p-edge: transparent;

  --sans: "Archivo", "Archivo Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --pad: clamp(16px, 3vw, 40px);
  --max: 1240px;
  --r: 12px;
  --head: 64px;
  --ease: cubic-bezier(.2, .7, 0, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101214;
    --bg-alt: #14171A;
    --surface: #181B1F;
    --ink: #E7E8E4;
    --muted: #A3A8AD;
    --faint: #737A80;
    --line: rgba(231, 232, 228, .11);
    --line-strong: rgba(231, 232, 228, .24);
    --accent: #52D3A0;
    --accent-soft: rgba(82, 211, 160, .12);
    --on-ink: #101214;
    --grid: rgba(231, 232, 228, .035);

    --p-bg: #0A0C0D;
    --p-bar: #111416;
    --p-edge: rgba(231, 232, 228, .12);
    color-scheme: dark;
  }
}

/* Self-hosted, nothing loads from a third party */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Archivo Fallback"; src: local("Arial"); size-adjust: 102%; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--ink); color: var(--bg); }
h1, h2, h3, p, figure, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; font-weight: 700; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); }
.nw { white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: max(var(--pad), env(safe-area-inset-left, 0px)); padding-right: max(var(--pad), env(safe-area-inset-right, 0px)); }

.skip {
  position: fixed; left: var(--pad); top: 10px; z-index: 60;
  padding: 10px 16px; border-radius: 8px;
  background: var(--ink); color: var(--bg); text-decoration: none;
  transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px;
  border-radius: 8px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { background: var(--accent); color: var(--on-ink); }
.btn-line { border-color: var(--line-strong); }
.btn-line:hover { border-color: var(--ink); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16px; }
.btn:active { transform: translateY(1px); }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.top.is-scrolled { border-bottom-color: var(--line); }
.top-row { height: var(--head); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand-mark { width: 10px; height: 10px; border-radius: 2px; background: var(--accent); flex: none; }
.brand-name { font-weight: 800; font-size: 15px; font-variation-settings: "wdth" 118; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.nav { display: flex; gap: 26px; font-size: 14px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--ink); }
@media (max-width: 900px) { .nav { display: none; } }
@media (max-width: 480px) { .brand-sub { display: none; } }

/* ---------- Kicker / section heads ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; color: var(--muted); letter-spacing: .01em;
}
.kicker .num { color: var(--accent); }
.kicker-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.sec { padding: clamp(72px, 10vw, 128px) 0; border-top: 1px solid var(--line); }
.sec-alt { background: var(--bg-alt); }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head h2 {
  margin-top: 14px;
  font-size: clamp(32px, 4.6vw, 56px); line-height: 1.02;
  font-variation-settings: "wdth" 92; letter-spacing: -.025em;
}
.sec-sub { margin-top: 16px; color: var(--muted); font-size: 18px; max-width: 58ch; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 9vw, 120px);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
}
.hero::after { /* fade the grid out toward the next section */
  content: ""; position: absolute; inset: auto 0 0; height: 40%;
  background: linear-gradient(transparent, var(--bg)); pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 {
  margin-top: 20px;
  font-size: clamp(36px, 5.2vw, 70px); line-height: 1;
  font-variation-settings: "wdth" 90; letter-spacing: -.03em;
}
.lede { margin-top: 22px; font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 52ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin-top: 40px; border-top: 1px solid var(--line); }
.facts > div { padding: 14px 28px 0 0; }
.facts > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.facts dd { margin-top: 4px; font-weight: 700; font-size: 17px; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; }
  .facts > div, .facts > div + div { padding: 10px 0; border-left: 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .facts dd { margin: 0; font-size: 16px; }
  .cta-row .btn { flex: 1 1 auto; }
}

/* ---------- Trace: the event log ---------- */
.trace {
  background: var(--p-bg); color: var(--p-ink);
  border-radius: var(--r);
  box-shadow: 0 0 0 1px var(--p-edge), 0 30px 60px -36px rgba(0, 0, 0, .55);
  overflow: hidden; min-width: 0;
  font-family: var(--mono); font-size: 13.5px; line-height: 1.5;
}
.trace-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 10px 8px 8px; background: var(--p-bar); border-bottom: 1px solid var(--p-line);
}
.trace-tabs { display: flex; gap: 2px; min-width: 0; }
.trace-tabs button {
  padding: 6px 11px; border-radius: 6px;
  font-family: var(--mono); font-size: 12.5px; color: var(--p-muted);
  transition: background-color .2s, color .2s;
}
.trace-tabs button:hover { color: var(--p-ink); }
.trace-tabs button[aria-selected="true"] { background: rgba(255, 255, 255, .08); color: var(--p-ink); }
.trace-tabs button:focus-visible { outline-color: var(--p-ok); }
.trace-tag { font-size: 11.5px; color: var(--p-muted); white-space: nowrap; }
.trace-panel { padding: 16px 0 0; }
.trace-panel:focus-visible { outline: none; }
.log { counter-reset: ln; }
.log li {
  display: grid; grid-template-columns: 2.4em 5.6em minmax(0, 1fr) auto; gap: 0 12px; align-items: baseline;
  padding: 3px 18px 3px 0;
}
.log li::before { counter-increment: ln; content: counter(ln); text-align: right; color: rgba(255, 255, 255, .22); font-size: 12px; }
.log time { color: var(--p-muted); font-size: 12.5px; }
.log .msg { min-width: 0; overflow-wrap: anywhere; }
.log .msg b { font-weight: 600; color: var(--p-ok); margin-right: .4em; }
.log .msg i { font-style: normal; color: var(--p-muted); margin-right: .35em; }
.log .st { justify-self: end; font-size: 12px; color: var(--p-muted); padding: 1px 7px; border-radius: 4px; border: 1px solid var(--p-line); white-space: nowrap; }
.log .st.ok { color: var(--p-ok); border-color: rgba(95, 209, 160, .28); }
.log .st.wait { color: var(--p-wait); border-color: rgba(232, 180, 90, .3); }
.log .st.err { color: var(--p-err, #FF8A7A); border-color: rgba(255, 138, 122, .32); }
.log .msg u { text-decoration: underline wavy var(--p-err, #FF8A7A); text-underline-offset: 3px; }
.log .log-end { margin-top: 4px; }
.log .log-end .msg { color: var(--p-muted); }
.log .log-end .st { border-color: transparent; }
.trace-cap {
  margin-top: 14px; padding: 14px 18px 18px;
  border-top: 1px solid var(--p-line);
  font-family: var(--sans); font-size: 14.5px; line-height: 1.5; color: var(--p-muted);
}
/* line-by-line reveal, only when JS runs and motion is fine */
.js .trace-panel.is-playing .log li { opacity: 0; transform: translateY(4px); }
.js .trace-panel.is-playing .log li.is-in { opacity: 1; transform: none; transition: opacity .35s var(--ease), transform .35s var(--ease); }
@media (max-width: 520px) {
  .trace { font-size: 12.5px; }
  .log li { grid-template-columns: 1.8em minmax(0, 1fr) auto; gap: 0 10px; padding-right: 12px; }
  .log time { display: none; }
  .trace-tag { display: none; }
  .trace-cap { padding: 12px 14px 16px; }
}

/* ---------- Services ---------- */
.services { border-top: 1px solid var(--line-strong); }
.service {
  display: grid; grid-template-columns: 170px minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, .9fr); gap: 12px 28px; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.service-num { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.service h3 { font-size: 22px; line-height: 1.15; font-variation-settings: "wdth" 96; letter-spacing: -.01em; }
.service p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.tags li { font-family: var(--mono); font-size: 12px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); white-space: nowrap; }
@media (max-width: 1000px) {
  .service { grid-template-columns: 150px minmax(0, 1fr); }
  .service p, .service .tags { grid-column: 2; }
  .tags { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .service { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 22px 0; }
  .service p, .service .tags { grid-column: 1; }
  .tags { margin-top: 6px; }
}

/* ---------- Cases ---------- */
.cases { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.case {
  grid-column: span 2;
  display: flex; flex-direction: column; gap: 14px;
  padding: 22px 22px 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
}
.case-wide { grid-column: span 3; }
.case-meta { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.case-meta span:first-child { color: var(--accent); }
.case h3 { font-size: 24px; line-height: 1.1; font-variation-settings: "wdth" 94; letter-spacing: -.015em; }
.flow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding: 10px 12px; border-radius: 8px;
  background: var(--bg); border: 1px dashed var(--line-strong);
  font-family: var(--mono); font-size: 12px; color: var(--ink);
}
.flow span { white-space: nowrap; }
.flow i { font-style: normal; color: var(--accent); }
.case dl { display: grid; gap: 12px; margin-top: 2px; }
.case dl > div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.case dt { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 3px; }
.case dd { font-size: 15.5px; line-height: 1.5; }
.case dd.mono { font-size: 13px; padding-top: 2px; }
@media (max-width: 1000px) {
  .case, .case-wide { grid-column: span 3; }
  .case:last-child { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .cases { grid-template-columns: minmax(0, 1fr); }
  .case, .case-wide, .case:last-child { grid-column: auto; }
  .case { padding: 18px 16px 20px; }
  .case dl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* ---------- Prices ---------- */
.price-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.price-grid .sec-head { position: sticky; top: calc(var(--head) + 32px); margin-bottom: 0; }
.prices { border-top: 1px solid var(--line-strong); }
.price {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.price h3 { font-size: 20px; line-height: 1.2; font-variation-settings: "wdth" 96; }
.price-what p { margin-top: 4px; color: var(--muted); font-size: 15.5px; }
.price-num { display: flex; align-items: baseline; gap: 6px; font-family: var(--mono); white-space: nowrap; }
.price-num .amt { font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price-num .from, .price-num .per { font-size: 13px; color: var(--muted); }
.price-care { border-bottom-style: dashed; }
.price-note {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 24px; padding: 16px 18px; border-radius: 10px;
  background: var(--accent-soft); color: var(--ink); font-weight: 600; font-size: 16px;
}
.check { flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--accent); position: relative; }
.check::after { content: ""; position: absolute; left: 6px; top: 3px; width: 4px; height: 8px; border: solid var(--on-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
@media (max-width: 860px) {
  .price-grid { grid-template-columns: minmax(0, 1fr); }
  .price-grid .sec-head { position: static; margin-bottom: 8px; }
}
@media (max-width: 420px) {
  .price { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .price-num { order: -1; }
}

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-strong); counter-reset: step; }
.step { position: relative; padding: 24px 24px 0 0; }
.step + .step { padding-left: 24px; border-left: 1px solid var(--line); }
.step::before { /* node on the axis */
  content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg-alt); border: 2px solid var(--accent);
}
.step + .step::before { left: -5px; }
.step-k { display: flex; gap: 10px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.step-k span { color: var(--accent); }
.step h3 { margin-top: 14px; font-size: 21px; line-height: 1.15; font-variation-settings: "wdth" 96; }
.step p:last-child { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
@media (max-width: 900px) {
  .steps { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 1px solid var(--line-strong); margin-left: 4px; }
  .step, .step + .step { padding: 0 0 28px 24px; border-left: 0; }
  .step::before, .step + .step::before { top: 4px; left: -6px; }
  .step h3 { margin-top: 8px; }
}

.stack { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: clamp(48px, 6vw, 72px); padding-top: 24px; border-top: 1px solid var(--line); }
.stack-k { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.stack ul { display: flex; flex-wrap: wrap; gap: 8px; }
.stack li { font-family: var(--mono); font-size: 13px; padding: 6px 11px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); }

/* ---------- Brief ---------- */
.brief-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.brief-head { margin-bottom: 0; }
.mail-line { margin-top: 24px; font-family: var(--mono); font-size: 15px; }
.mail-line a { color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere; }
.brief {
  display: grid; gap: 20px;
  padding: 0 22px 24px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line);
  min-width: 0;
}
.brief-bar {
  display: flex; justify-content: space-between; gap: 12px;
  margin: 0 -22px; padding: 10px 22px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.field { display: grid; gap: 8px; }
.field > span, .need legend { font-size: 14px; font-weight: 600; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 6px; font-size: 13px; }
.field input, .field textarea {
  width: 100%; min-width: 0;
  font: 16px/1.45 var(--sans); color: var(--ink);
  padding: 12px 14px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--line-strong);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #C2412D; }
.need { border: 0; margin: 0; padding: 0; min-width: 0; }
.need legend { padding: 0; margin-bottom: 10px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { position: relative; }
.choices input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choices span {
  display: inline-flex; align-items: baseline; gap: 7px;
  padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line-strong);
  font-size: 14px; font-weight: 500; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s;
}
.choices small { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.choices span:hover { border-color: var(--ink); }
.choices input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.choices input:checked + span small { color: inherit; opacity: .75; }
.choices input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.brief .btn { justify-self: start; }
.brief-status { font-size: 15px; color: var(--muted); min-height: 1px; }
.brief-status:empty { display: none; }
.brief-status a { color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere; }
.brief-status strong { color: var(--ink); }
.brief-copy { display: block; width: 100%; margin-top: 10px; font: 13px/1.5 var(--mono); padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); resize: vertical; }
@media (max-width: 860px) {
  .brief-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .brief { padding: 0 16px 20px; }
  .brief-bar { margin: 0 -16px; padding: 10px 16px; }
  .brief .btn { justify-self: stretch; }
}

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: clamp(40px, 6vw, 72px) 0 28px; }
.word {
  font-weight: 800; font-variation-settings: "wdth" 112; letter-spacing: -.02em; line-height: .85;
  font-size: var(--word-size, clamp(48px, 13vw, 200px));
  white-space: nowrap; overflow: hidden; color: var(--ink);
}
.foot-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px;
  margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 13px; color: var(--muted);
}
.legal + .foot .foot-row { margin-top: 0; padding-top: 0; border-top: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { text-decoration: none; overflow-wrap: anywhere; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Reveal on scroll (JS only, motion only) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(40px, 7vw, 88px) 0 clamp(64px, 9vw, 112px); }
.legal-inner { max-width: 760px; }
.legal h1 { margin-top: 14px; font-size: clamp(34px, 5vw, 56px); line-height: 1.02; font-variation-settings: "wdth" 92; letter-spacing: -.025em; overflow-wrap: anywhere; hyphens: auto; }
.legal section { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.legal h2 { font-size: 19px; line-height: 1.25; font-variation-settings: "wdth" 96; }
.legal p, .legal ul { margin-top: 10px; color: var(--muted); }
.legal ul { list-style: disc; padding-left: 1.25em; }
.legal li + li { margin-top: 2px; }
.legal strong { color: var(--ink); }
.legal a { color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere; }
.back { text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .trace-panel.is-playing .log li { opacity: 1; transform: none; }
}
