/* crux: holding site stylesheet.
   Static, CSP-safe: no inline styles anywhere; per-frame motion values are set through the CSSOM
   (element.style / setAttribute), which a `style-src 'self'` policy allows.
   Mark and wordmark: #0A0A0A on light, #FFFFFF on dark, from the outlined SVGs only. */

/* ------------------------------------------------------------------ fonts (bundled, OFL) */
@font-face { font-family: "Inter"; src: url("../fonts/Inter-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/IBMPlexMono-400-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/IBMPlexMono-500-latin.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* ------------------------------------------------------------------ tokens */
:root {
  color-scheme: light;
  --font-ui: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;

  --ground: #FFFFFF;
  --ground-2: #FAFAF9;
  --surface: #FFFFFF;
  --surface-2: #F4F4F2;
  --ink: #0A0A0A;
  --ink-2: #3A3A3F;
  --muted: #6B6B72;
  --hair: #E4E4E0;
  --hair-2: #D9D9D6;
  --con: #9B9BA3;
  --frame: #C9C9C6;
  --grid: rgba(10, 10, 10, .045);
  --grid-2: rgba(10, 10, 10, .075);
  --mark: #0A0A0A;
  --on-ink: #FFFFFF;
  --blue: #3B82F6;          /* strokes, pen, focus ring */
  --blue-text: #1D4ED8;     /* blue as text: AA on light */
  --blue-wash: rgba(59, 130, 246, .08);
  --warn: #8A5300;
  --warn-wash: rgba(178, 107, 0, .10);
  --shadow: 0 1px 0 rgba(10, 10, 10, .04), 0 12px 32px -18px rgba(10, 10, 10, .18);

  --xo: cubic-bezier(0.16, 1, 0.3, 1);
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;

  --gutter: clamp(16px, 4vw, 40px);
  --wrap: 1240px;
  --section: clamp(80px, 11vw, 152px);
  --header-h: 64px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ground: #0A0A0A;
    --ground-2: #0E0E10;
    --surface: #111114;
    --surface-2: #18181C;
    --ink: #F4F4F2;
    --ink-2: #C9C9CE;
    --muted: #8E8E97;
    --hair: #26262B;
    --hair-2: #303036;
    --con: #5F5F68;
    --frame: #34343A;
    --grid: rgba(255, 255, 255, .04);
    --grid-2: rgba(255, 255, 255, .065);
    --mark: #FFFFFF;
    --on-ink: #0A0A0A;
    --blue-text: #8AB0FF;
    --blue-wash: rgba(59, 130, 246, .14);
    --warn: #F2B233;
    --warn-wash: rgba(242, 178, 51, .10);
    --shadow: 0 1px 0 rgba(255, 255, 255, .03), 0 16px 40px -20px rgba(0, 0, 0, .8);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #0A0A0A;
  --ground-2: #0E0E10;
  --surface: #111114;
  --surface-2: #18181C;
  --ink: #F4F4F2;
  --ink-2: #C9C9CE;
  --muted: #8E8E97;
  --hair: #26262B;
  --hair-2: #303036;
  --con: #5F5F68;
  --frame: #34343A;
  --grid: rgba(255, 255, 255, .04);
  --grid-2: rgba(255, 255, 255, .065);
  --mark: #FFFFFF;
  --on-ink: #0A0A0A;
  --blue-text: #8AB0FF;
  --blue-wash: rgba(59, 130, 246, .14);
  --warn: #F2B233;
  --warn-wash: rgba(242, 178, 51, .10);
  --shadow: 0 1px 0 rgba(255, 255, 255, .03), 0 16px 40px -20px rgba(0, 0, 0, .8);
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-ui);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; }
p, li { text-wrap: pretty; }
p, li, dd, td, th, a, summary { overflow-wrap: break-word; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--ink); color: var(--on-ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 10px 14px; border-radius: var(--r-md); background: var(--ink); color: var(--on-ink); font-weight: 600; text-decoration: none; transition: top .2s var(--xo); }
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.mono { font-family: var(--font-mono); }
.num { font-variant-numeric: tabular-nums; }
.kicker {
  font: 500 12px/1.4 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px 2px;
  border: 1px solid var(--hair-2);
  border-radius: 4px;
  font: 500 12px/1.45 var(--font-mono);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.tag.blue { border-color: color-mix(in srgb, var(--blue) 45%, transparent); color: var(--blue-text); background: var(--blue-wash); }
.tag.warn { border-color: color-mix(in srgb, var(--warn) 40%, transparent); color: var(--warn); background: var(--warn-wash); }
.tag.ink { border-color: var(--ink); color: var(--ink); }

/* theme-cut swaps for brand images */
.cut-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cut-light { display: none; } :root:not([data-theme="light"]) .cut-dark { display: block; } }
:root[data-theme="dark"] .cut-light { display: none; }
:root[data-theme="dark"] .cut-dark { display: block; }

/* ------------------------------------------------------------------ buttons */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h);
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: var(--r-md);
  background: var(--ink);
  color: var(--on-ink);
  font: 600 15px/1 var(--font-ui);
  letter-spacing: -.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s var(--xo), background-color .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn .arr { width: 14px; height: 14px; transition: transform .25s var(--xo); }
.btn:hover .arr { transform: translateX(3px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--hair-2); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.sm { --h: 44px; padding: 0 16px; font-size: 14.5px; }
.btn.block { width: 100%; }
.arr path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  background: color-mix(in srgb, var(--ground) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--hair); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand-link { display: inline-flex; align-items: center; height: 44px; padding: 0 4px; margin-left: -4px; border-radius: 8px; }
.brand-link img { width: 74px; height: auto; }
.home .brand-link { opacity: 1; transition: opacity .35s var(--xo), transform .5s var(--xo); }
.js.home .site-header:not(.scrolled) .brand-link { opacity: 0; transform: translateY(6px); pointer-events: none; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  border-radius: 8px;
  color: var(--ink-2); font-size: 14.5px; font-weight: 500; text-decoration: none;
  transition: color .2s, background-color .2s;
}
.nav a:not(.btn):hover { color: var(--ink); background: var(--surface-2); }
.nav .btn { margin-left: 8px; }
.theme-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; margin-left: 2px;
  border: 1px solid transparent; border-radius: 10px;
  background: transparent; color: var(--ink-2); cursor: pointer;
  transition: background-color .2s, color .2s;
}
.theme-btn:hover { background: var(--surface-2); color: var(--ink); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .ring { fill: none; stroke: currentColor; stroke-width: 1.5; }
.theme-btn .half { fill: currentColor; }
.no-js-hide { display: none; }
.js .no-js-hide { display: inline-grid; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.menu-btn { display: none; }
@media (max-width: 860px) {
  .btn.sm { --h: 44px; }
  .nav-links { display: none; }
  .js .menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--hair-2); border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; }
  .menu-btn svg { width: 18px; height: 18px; }
  .menu-btn path { stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; fill: none; transition: transform .3s var(--xo); transform-box: fill-box; transform-origin: 50% 50%; }
  .nav-open .menu-btn .m1 { transform: translateY(3px) rotate(45deg); }
  .nav-open .menu-btn .m2 { transform: translateY(-3px) rotate(-45deg); }
  .nav-open .nav-links { display: flex; position: absolute; left: 0; right: 0; top: var(--header-h); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 16px; background: var(--ground); border-bottom: 1px solid var(--hair); box-shadow: var(--shadow); }
  .nav-open .nav-links a { min-height: 52px; font-size: 17px; border-bottom: 1px solid var(--hair); border-radius: 0; padding: 0 4px; }
  .nav-open .nav-links a:last-child { border-bottom: 0; }
  .site-header.nav-open { border-bottom-color: var(--hair); background: var(--ground); }
}

/* ------------------------------------------------------------------ drafting sheet (shared) */
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-2) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 40px 40px, 40px 40px;
  background-position: -1px -1px;
}

/* ------------------------------------------------------------------ hero */
.hero { position: relative; padding: 0 clamp(10px, 1.6vw, 24px) clamp(10px, 1.6vw, 24px); }
.sheet {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - var(--header-h) - clamp(10px, 1.6vw, 24px));
  border: 1px solid var(--frame);
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(56px, 8vh, 110px) 0 clamp(64px, 9vh, 120px);
  background: var(--ground);
}
@media (min-height: 1100px) { .sheet { min-height: 880px; } }
.sheet .grid-bg {
  -webkit-mask-image: radial-gradient(ellipse 75% 72% at 50% 40%, #000 30%, transparent 95%);
  mask-image: radial-gradient(ellipse 75% 72% at 50% 40%, #000 30%, transparent 95%);
}
/* zone ticks along the frame, like a drawing border */
.zones { position: absolute; inset: 0; pointer-events: none; }
.zones span {
  position: absolute; font: 500 12px/1 var(--font-mono); letter-spacing: .06em; color: var(--muted);
  transform: translate(-50%, -50%);
}
.zones i { position: absolute; background: var(--frame); }
.zones i.t { top: 0; width: 1px; height: 8px; }
.zones i.b { bottom: 0; width: 1px; height: 8px; }
.zones i.l { left: 0; height: 1px; width: 8px; }
.zones i.r { right: 0; height: 1px; width: 8px; }
@media (max-width: 640px) { .zones span { display: none; } }

.hero-inner { position: relative; z-index: 1; }
.mark-stage { position: relative; width: clamp(236px, 52vw, 820px); margin: 0 auto; }
@media (max-width: 640px) { .mark-stage { width: min(74vw, 330px); margin-left: max(12px, calc((100% - min(74vw, 330px)) / 2)); } }
.wordmark { width: 100%; height: auto; overflow: visible; }
.wordmark .ink { fill: var(--mark); }
.wordmark .x-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wordmark .x-light { display: none; } :root:not([data-theme="light"]) .wordmark .x-dark { display: inline; } }
:root[data-theme="dark"] .wordmark .x-light { display: none; }
:root[data-theme="dark"] .wordmark .x-dark { display: inline; }
.wordmark .datum line { stroke: var(--con); stroke-width: 1; fill: none; }
.wordmark .datum .ov { stroke: var(--frame); stroke-dasharray: 6 5; }
.wordmark .con * { fill: none; stroke: var(--con); stroke-width: 1; }
.wordmark .con .dash { stroke-dasharray: 8 6; }
.wordmark .con .on { stroke: var(--blue); stroke-width: 1.5; }
.wordmark .con .pen { fill: var(--blue); stroke: none; }
.wordmark .con .tgt { stroke: var(--ink); stroke-width: 1.5; }
.js .wordmark .con { opacity: 0; }

/* datum labels */
.dl {
  position: absolute; left: 0;
  font: 500 12px/1 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap;
}
.dl.xh { top: 3.02%; transform: translateY(calc(-100% - 8px)); }
.dl.bl { top: 96.98%; transform: translateY(9px); }
.dl.cross { left: 85.79%; top: 46.22%; transform: translate(calc(clamp(58px, 7vw, 120px)), -50%); color: var(--blue-text); opacity: 0; }
@media (min-width: 1000px) {
  .dl.xh, .dl.bl { left: auto; right: calc(100% + 28px); transform: translateY(calc(-100% - 6px)); }
  .dl.bl { transform: translateY(8px); }
  .dl .unit { display: block; margin-top: 6px; color: var(--con); }
}
.dl .unit { color: var(--con); }
@media (max-width: 999px) { .dl .unit { display: none; } }

/* hero copy */
.hero-copy { margin-top: clamp(44px, 7vh, 88px); display: grid; gap: 28px; }
@media (min-width: 1000px) {
  .hero-copy { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(40px, 5vw, 96px); align-items: end; }
}
.hero-copy .kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-wash); }
.hero h1 {
  font-size: clamp(34px, 4.6vw, 66px);
  line-height: 1.04;
  letter-spacing: -.035em;
  max-width: 14ch;
}
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero h1 .w > span { display: inline-block; }
.hero .lede { font-size: clamp(16.5px, 1.25vw, 18.5px); line-height: 1.6; color: var(--ink-2); max-width: 46ch; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero .fine { margin-top: 20px; font: 400 12.5px/1.7 var(--font-mono); letter-spacing: .01em; color: var(--muted); }
.hero .fine a { color: var(--ink); text-decoration-color: var(--con); }

/* intro state: hidden until the hero script takes over (failsafe reveals after 4 s) */
.intro .wordmark .rise, .intro .wordmark .x-grp, .intro .hero .fade, .intro .hero h1 .w > span, .intro .dl, .intro .wordmark .datum { opacity: 0; animation: failsafe .01s 4s forwards; }
@keyframes failsafe { to { opacity: 1; } }

/* title block (bottom right of the sheet) */
.title-block {
  position: absolute; right: -1px; bottom: -1px; z-index: 2;
  display: grid; grid-template-columns: 104px 216px;
  border: 1px solid var(--frame);
  background: var(--ground);
  font: 500 12px/1 var(--font-mono); letter-spacing: .07em; text-transform: uppercase;
}
.title-block dt, .title-block dd { margin: 0; padding: 9px 12px; border-top: 1px solid var(--frame); }
.title-block dt { color: var(--muted); border-right: 1px solid var(--frame); }
.title-block dd { color: var(--ink); }
.title-block dt:first-of-type, .title-block dd:first-of-type { border-top: 0; }
@media (max-width: 1099px), (max-height: 760px) { .title-block { display: none; } }
@media (min-width: 1100px) and (min-height: 761px) { .sheet { padding-bottom: 176px; } }

/* ------------------------------------------------------------------ sections */
.section { position: relative; padding: var(--section) 0; }
.section.alt { background: var(--ground-2); border-block: 1px solid var(--hair); }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 72px); }
@media (min-width: 1000px) { .sec-head { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(40px, 5vw, 96px); align-items: end; } }
.sec-head .kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.sec-head .kicker::before { content: ""; width: 24px; height: 1px; background: var(--ink); }
.sec-head h2 { font-size: clamp(28px, 3.3vw, 46px); line-height: 1.08; letter-spacing: -.03em; }
.sec-head .intro-p { font-size: 17px; color: var(--ink-2); max-width: 58ch; }
.sheet-no {
  position: absolute; top: 20px; right: var(--gutter);
  font: 500 12px/1 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
}
@media (max-width: 640px) { .sheet-no { display: none; } }

/* reveal on scroll: additive only. Content is always fully visible (no opacity hiding anywhere);
   JS arms only elements that start below the fold, and armed items just rise 20 px into place. */
.rv.armed { transform: translateY(20px); }
.rv.armed.in { transform: none; transition: transform 1s var(--xo); transition-delay: var(--d, 0s); }

/* ------------------------------------------------------------------ capabilities */
.caps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); border-top: 1px solid var(--hair); border-left: 1px solid var(--hair); }
.cap { position: relative; padding: 28px 28px 32px; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); background: var(--ground); }
.cap .cap-n { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.cap .glyph { width: 40px; height: 40px; }
.glyph * { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.glyph .b { stroke: var(--blue); }
.glyph .f { fill: var(--ink); stroke: none; }
.cap h3 { font-size: 19px; letter-spacing: -.015em; line-height: 1.25; margin-bottom: 10px; }
.cap p { color: var(--ink-2); font-size: 15.5px; }
.cap .src { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.also { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.also .kicker { margin-right: 6px; }

/* ------------------------------------------------------------------ trade packs */
.packs { display: grid; gap: 16px; }
@media (min-width: 900px) { .packs { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.pack { position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); }
.pack.live { border: 1px solid var(--ink); background: var(--surface); box-shadow: var(--shadow); }
.pack.next { border: 1px dashed var(--con); background: var(--ground-2); }
.pack-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.pack-top .live-dot { width: 6px; height: 6px; box-shadow: none; }
.pack h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.025em; line-height: 1.15; }
.pack > p { color: var(--ink-2); font-size: 15.5px; max-width: 46ch; }
.pack .ticks { margin-top: 6px; }
.pack .src { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; }
.pack.next .btn { align-self: flex-start; margin-top: auto; }
.pack-plan { width: 100%; max-width: 320px; height: auto; margin: 6px 0 8px; }
.pack-plan path { fill: none; stroke: var(--con); stroke-width: 1; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.pack-plan circle { fill: var(--blue); }

/* ------------------------------------------------------------------ story (how it works) */
.story { display: grid; gap: clamp(72px, 9vw, 128px); }
.step { display: grid; gap: 32px; align-items: center; }
@media (min-width: 768px) and (max-width: 1023px) { .step > .panel { order: -1; } }
@media (min-width: 1024px) {
  .step { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(40px, 4.5vw, 80px); }
  .step.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .step.flip > .panel { order: 1; }
  .step.flip > .step-text { order: 2; }
  .step.flip.wide { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
}
.step-text .kicker { margin-bottom: 14px; display: flex; gap: 10px; align-items: center; }
.step-text .kicker b { color: var(--ink); font-weight: 500; }
.step-text h3 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.025em; line-height: 1.15; margin-bottom: 14px; }
.step-text p { color: var(--ink-2); max-width: 46ch; }
.step-text .rule { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--hair); font: 400 13px/1.6 var(--font-mono); color: var(--muted); max-width: 46ch; }

/* the illustrative panel: a small drawing sheet (container-sized, so its insides respond to its own width) */
.panel {
  position: relative; margin: 0; min-width: 0;
  container-type: inline-size;
  border: 1px solid var(--hair-2);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-bar { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--hair); }
.panel-bar .dots { display: flex; gap: 6px; flex: none; }
.panel-bar .dots i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--hair-2); }
.panel-bar .kicker { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel-bar .tag { flex: none; }
.panel-body { position: relative; padding: clamp(18px, 4cqi, 32px); }
.panel-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px;
  padding: 10px 18px; border-top: 1px solid var(--hair);
  font: 500 12px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.nw { white-space: nowrap; }

/* panel 1: documents */
.docs { list-style: none; display: grid; }
.docs li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.docs li:last-child { border-bottom: 0; }
.docs .di { width: 20px; height: 26px; }
.docs .di rect { fill: none; stroke: var(--con); stroke-width: 1.2; }
.docs .changed .di rect { stroke: var(--blue); }
.docs .dn { display: block; font-size: 15px; font-weight: 500; letter-spacing: -.01em; }
.docs .dm { display: block; margin-top: 2px; font: 400 12.5px/1.45 var(--font-mono); color: var(--muted); }
.docs li > .tag { justify-self: end; }
@container (max-width: 420px) { .docs li { grid-template-columns: 20px minmax(0, 1fr); } .docs li > .tag { grid-column: 2; justify-self: start; } }

/* panel 2: takeoff: drawing left, conversation + calculation right */
.takeoff { display: grid; gap: 20px; }
@container (min-width: 620px) { .takeoff { grid-template-columns: minmax(0, 1.12fr) minmax(260px, 1fr); align-items: start; } }
.plan { width: 100%; height: auto; border: 1px solid var(--hair); border-radius: var(--r-md); background: var(--ground); }
.plan .gl { stroke: var(--grid-2); stroke-width: 1; }
.plan .wall { fill: var(--surface-2); stroke: var(--ink-2); stroke-width: 1.2; }
.plan .wall-n { fill: var(--surface-2); stroke: var(--con); stroke-width: 1; }
.plan .door { fill: none; stroke: var(--ink-2); stroke-width: 1.2; }
.plan .door-arc { fill: none; stroke: var(--con); stroke-width: 1; stroke-dasharray: 3 3; }
.plan .dim { stroke: var(--muted); stroke-width: 1; fill: none; }
.plan .dimt { font: 500 14px var(--font-mono); fill: var(--ink-2); }
.plan .tagt { font: 600 16px var(--font-ui); fill: var(--ink); letter-spacing: .02em; }
.plan .tagm { font: 500 13px var(--font-mono); letter-spacing: .08em; fill: var(--muted); }
.plan .bubble { fill: var(--ground); stroke: var(--con); stroke-width: 1; }
.plan .bubt { font: 500 12px var(--font-mono); fill: var(--muted); text-anchor: middle; }
.plan .meas { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.plan .meas-fill { fill: var(--blue-wash); }
.plan .node { fill: var(--ground); stroke: var(--blue); stroke-width: 2; }
.panel.armed .plan .meas { stroke-dashoffset: 1; }
.panel.armed.in .plan .meas { stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s var(--xo) .3s; }
.chat { display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; line-height: 1.55; min-width: 0; }
.msg { max-width: 94%; padding: 12px 15px 13px; border-radius: 16px; border: 1px solid var(--hair); color: var(--ink-2); }
.msg p { margin: 0; }
.msg .who { display: block; margin-bottom: 5px; font: 500 12px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.msg.crux { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 5px; }
.msg.you { align-self: flex-end; background: var(--ink); border-color: var(--ink); color: var(--on-ink); border-bottom-right-radius: 5px; }
.msg.you .who { color: color-mix(in srgb, var(--on-ink) 78%, var(--ink)); }
.msg.calc-msg { width: 94%; }
.calc-t { width: 100%; margin-top: 12px; border-collapse: collapse; font: 400 13px/1.45 var(--font-mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.calc-t th, .calc-t td { padding: 7px 0; border-bottom: 1px solid var(--hair-2); vertical-align: middle; }
.calc-t th { text-align: left; font-weight: 400; padding-right: 12px; }
.calc-t td.v { text-align: right; white-space: nowrap; color: var(--ink); font-weight: 500; }
.calc-t td.c { width: 64px; min-width: 64px; padding-left: 10px; text-align: right; white-space: nowrap; }
.calc-t tr.sub th, .calc-t tr.sub td { color: var(--ink); }
.calc-t tfoot th, .calc-t tfoot td { border-bottom: 0; border-top: 1.5px solid var(--ink); padding-top: 10px; color: var(--ink); font-weight: 600; }
.calc-t tfoot td.v { font-size: 14px; }

/* panel 3: estimate */
.est { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.est caption { text-align: left; padding-bottom: 12px; }
.est th { text-align: left; padding: 0 12px 10px 0; font: 500 12px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--hair-2); white-space: nowrap; }
.est td { padding: 13px 12px 13px 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
.est td:last-child, .est th:last-child { padding-right: 0; }
.est td.q, .est th.q { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.est td.q { font: 500 15px/1.4 var(--font-mono); }
.est td.u { font: 400 12.5px/1.7 var(--font-mono); color: var(--muted); }
.est .it { font-weight: 500; }
.est .src { display: block; margin-top: 4px; font: 400 12.5px/1.5 var(--font-mono); color: var(--muted); }
@container (max-width: 440px) { .est .u-col { display: none; } }
.flagline { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 16px; }

/* panel 4: proposal: reads like a letter page */
.letter { position: relative; padding: clamp(22px, 6cqi, 48px) clamp(20px, 7cqi, 56px); border: 1px solid var(--hair); border-radius: var(--r-md); background: var(--ground); font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.lh { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 2px solid var(--ink); }
.lh .logo-slot {
  flex: none; width: 128px; height: 38px; border: 1px dashed var(--con); border-radius: 6px;
  display: grid; place-items: center; font: 500 12px/1 var(--font-mono); letter-spacing: .06em; color: var(--muted);
}
.lh .meta { text-align: right; font: 400 12.5px/1.55 var(--font-mono); color: var(--muted); }
.letter-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 6px; }
.letter h4 { font-size: 18px; letter-spacing: -.015em; color: var(--ink); line-height: 1.3; }
.letter .lbl { display: block; margin: 18px 0 4px; font: 500 12px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.letter p { max-width: 62ch; }
.cite { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; margin-left: 1px; vertical-align: 1px; border: 1px solid color-mix(in srgb, var(--blue) 45%, transparent); border-radius: 4px; background: var(--blue-wash); font: 500 12px/1 var(--font-mono); color: var(--blue-text); white-space: nowrap; }.stamp {
  flex: none; margin: 0; padding: 7px 12px 6px; border: 1.5px solid var(--ink); border-radius: 4px;
  font: 500 13px/1.2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); text-align: center;
  transform: rotate(-2deg);
}
.stamp small { display: block; margin-top: 2px; font-size: 12px; letter-spacing: .06em; color: var(--muted); }
@container (max-width: 380px) { .letter-title { flex-direction: column; } .lh { flex-direction: column; } .lh .meta { text-align: left; } }

/* ------------------------------------------------------------------ rules band (inverted) */
.band { background: var(--ink); color: var(--on-ink); position: relative; overflow: hidden; }
.band .grid-bg { opacity: .9; --grid: color-mix(in srgb, var(--on-ink) 6%, transparent); --grid-2: color-mix(in srgb, var(--on-ink) 9%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); }
.band .sec-head .kicker { color: color-mix(in srgb, var(--on-ink) 72%, var(--ink)); }
.band .sec-head .kicker::before { background: var(--on-ink); }
.band .sec-head .intro-p { color: color-mix(in srgb, var(--on-ink) 86%, var(--ink)); }
.rules { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 0; border-top: 1px solid color-mix(in srgb, var(--on-ink) 18%, transparent); position: relative; }
.rules li { padding: 24px 24px 8px 0; }
.rules .rn { display: block; margin-bottom: 18px; font: 500 12px/1 var(--font-mono); letter-spacing: .1em; color: color-mix(in srgb, var(--on-ink) 72%, var(--ink)); }
.rules h3 { font-size: 17.5px; line-height: 1.3; letter-spacing: -.015em; margin-bottom: 8px; }
.rules p { font-size: 15px; color: color-mix(in srgb, var(--on-ink) 84%, var(--ink)); }

/* ------------------------------------------------------------------ your data (flow map on the inverted band)
   Three equal cards on one top line: crux's servers | YOUR COMPUTER (inside a drawn boundary) | your Claude account.
   All colours are solid mixes with the band colour, so text contrast is fixed and no grid shows through cards. */
.data {
  --b-line: color-mix(in srgb, var(--on-ink) 26%, var(--ink));
  --b-mut: color-mix(in srgb, var(--on-ink) 72%, var(--ink));
  --b-2: color-mix(in srgb, var(--on-ink) 88%, var(--ink));
  --b-card: color-mix(in srgb, var(--on-ink) 5%, var(--ink));
  --b-home: color-mix(in srgb, var(--on-ink) 9%, var(--ink));
}
.data .sec-head h2 { font-size: clamp(36px, 4.8vw, 68px); letter-spacing: -.04em; line-height: 1; }
.data .sec-head .intro-p { font-size: clamp(17px, 1.35vw, 19.5px); color: var(--b-2); }
.flowmap { position: relative; display: grid; grid-template-areas: "srv" "ll" "home" "lr" "ai"; }
@media (min-width: 1100px) {
  .flowmap { grid-template-columns: minmax(0, 1fr) 116px minmax(0, 1.12fr) 116px minmax(0, 1fr); grid-template-areas: "srv ll home lr ai"; align-items: stretch; }
}
.home-node { grid-area: home; } .srv-node { grid-area: srv; } .ai-node { grid-area: ai; } .link-l { grid-area: ll; } .link-r { grid-area: lr; }
.node-card { position: relative; display: flex; flex-direction: column; padding: clamp(24px, 2.4vw, 32px); border-radius: var(--r-lg); border: 1px solid var(--b-line); background: var(--b-card); }
.node-card .kicker { color: var(--b-mut); margin-bottom: 14px; }
.node-card h3 { font-size: clamp(19px, 1.5vw, 21px); line-height: 1.25; letter-spacing: -.02em; margin-bottom: 18px; color: var(--on-ink); }
.node-card .ticks { gap: 10px; }
.node-card .ticks li { color: var(--b-2); font-size: 15px; }
.node-card .ticks li::before { border-color: var(--on-ink); }
.node-note { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--b-line); font-size: 14px; line-height: 1.55; color: var(--b-2); }
.node-card .ticks + .node-note { margin-top: 22px; }
@media (min-width: 1100px) { .node-card .ticks + .node-note { margin-top: auto; } .node-card .ticks { margin-bottom: 22px; } }
.srv-node { border-style: dashed; }
.home-node { border: 1.5px solid var(--on-ink); background: var(--b-home); }
.home-node h3 { font-size: clamp(21px, 1.8vw, 24px); }
/* the drawn boundary: "your machine" */
.home-node::before { content: ""; position: absolute; inset: -8px; border: 1px dashed var(--b-mut); border-radius: calc(var(--r-lg) + 8px); pointer-events: none; }
@media (min-width: 1100px) { .home-node::before { inset: -12px; border-radius: calc(var(--r-lg) + 12px); } .boundary { top: -12px; } }
.boundary { position: absolute; top: -8px; left: 22px; transform: translateY(-50%); padding: 0 8px; background: var(--ink); font: 500 12px/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--on-ink); white-space: nowrap; }
.flowmap { padding-top: 12px; padding-bottom: 12px; }
/* connectors */
.link-l, .link-r { position: relative; display: flex; align-items: center; min-height: 76px; padding-left: 58px; }
.link-l::before, .link-r::before { content: ""; position: absolute; left: 36px; top: 0; bottom: 0; border-left: 1px dashed var(--b-mut); }
.link-l::after, .link-r::after { content: ""; position: absolute; left: 32px; width: 9px; height: 9px; border-radius: 50%; background: var(--on-ink); }
.link-l::after { top: -4px; } .link-r::after { bottom: -4px; }
.link-l span, .link-r span { font: 500 12px/1.35 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--b-mut); }
.link-r { padding-top: 12px; } .link-l { padding-bottom: 12px; }
@media (min-width: 1100px) {
  .link-l, .link-r { min-height: 0; padding: 0; justify-content: center; }
  .link-l::before, .link-r::before { top: 50%; bottom: auto; border-left: 0; border-top: 1px dashed var(--b-mut); }
  .link-l::before { left: 0; right: 12px; } .link-r::before { left: 12px; right: 0; }
  .link-l::after, .link-r::after { top: calc(50% - 4px); bottom: auto; }
  .link-l::after { left: -5px; } .link-r::after { left: auto; right: -5px; }
  .link-l span, .link-r span { position: relative; width: 96px; padding: 8px 0; background: var(--ink); text-align: center; letter-spacing: .04em; }
  .link-l span { margin-right: 12px; } .link-r span { margin-left: 12px; }
}
.data-foot { margin-top: 36px; font-size: 15px; color: var(--b-2); }
.data-foot a { color: var(--on-ink); }

/* ------------------------------------------------------------------ pricing */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.plan-card { position: relative; display: flex; flex-direction: column; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--hair-2); border-radius: var(--r-lg); background: var(--surface); }
.plan-card.featured { border-color: var(--ink); box-shadow: var(--shadow); }
.plan-card .ph { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 28px; }
.plan-card h3 { font-size: 18px; letter-spacing: -.01em; }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price .amt { font-size: clamp(44px, 5vw, 60px); font-weight: 600; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.price .per { color: var(--muted); font-size: 15px; }
.plan-card .sub { margin-top: 12px; color: var(--ink-2); font-size: 15px; min-height: 3.2em; }
.plan-card .btn { margin-top: 28px; }
.founder {
  margin-top: 16px; display: grid; gap: 18px; align-items: center;
  padding: clamp(22px, 3vw, 32px); border: 1px dashed var(--ink); border-radius: var(--r-lg);
}
@media (min-width: 900px) { .founder { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 36px; } }
.founder .fp { font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.founder .fp small { font-size: 15px; font-weight: 500; letter-spacing: -.01em; color: var(--muted); }
.founder p { color: var(--ink-2); font-size: 15px; }
.founder .fk { margin-bottom: 8px; }
.terms-grid { margin-top: 40px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.box { padding: clamp(22px, 3vw, 32px); border: 1px solid var(--hair); border-radius: var(--r-lg); background: var(--ground); }
.section.alt .box { background: var(--ground); }
.box .kicker { margin-bottom: 16px; }
.ticks { list-style: none; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 26px; font-size: 15px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 5px; border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(-45deg); }
.ticks li b { color: var(--ink); font-weight: 600; }
.ticks.dash li::before { width: 10px; height: 0; border-left: 0; transform: none; top: .8em; }
.price-note { margin-top: 20px; font-size: 14px; color: var(--muted); }

/* ------------------------------------------------------------------ faq */
.faq { border-top: 1px solid var(--hair-2); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--hair-2); }
.faq summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: 16px; align-items: center;
  padding: 22px 0; font-size: clamp(16.5px, 1.4vw, 19px); font-weight: 600; letter-spacing: -.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline-offset: -2px; }
.faq .pm { position: relative; width: 16px; height: 16px; justify-self: end; }
.faq .pm::before, .faq .pm::after { content: ""; position: absolute; left: 0; top: 7.25px; width: 16px; height: 1.5px; background: var(--ink); transition: transform .35s var(--xo); }
.faq .pm::after { transform: rotate(90deg); }
.faq details[open] .pm::after { transform: rotate(0deg); }
.faq .ans { padding: 0 40px 24px 0; color: var(--ink-2); max-width: 70ch; }
.faq .ans p + p { margin-top: 10px; }
.faq-grid { display: grid; gap: 40px; }
@media (min-width: 1000px) { .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(40px, 5vw, 96px); } .faq-grid .sec-head { display: block; } }

/* ------------------------------------------------------------------ early access */
.access { display: grid; gap: 32px; }
@media (min-width: 1000px) { .access { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(40px, 5vw, 96px); align-items: start; } }
.access h2 { font-size: clamp(30px, 3.6vw, 50px); line-height: 1.05; letter-spacing: -.035em; margin-bottom: 18px; }
.access .intro-p { color: var(--ink-2); font-size: 17px; max-width: 44ch; }
.contact-line { margin-top: 28px; display: grid; gap: 6px; }
.contact-line a { display: inline-flex; align-items: center; min-height: 44px; font: 500 16px/1.4 var(--font-mono); letter-spacing: .01em; }
form.ea { padding: clamp(22px, 3vw, 36px); border: 1px solid var(--hair-2); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); display: grid; gap: 18px; }
.row2 { display: grid; gap: 18px; }
@media (min-width: 640px) { .row2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 7px; }
.field label { font: 500 12px/1.2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.field label .opt { text-transform: none; letter-spacing: .02em; color: var(--con); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 11px 13px;
  border: 1px solid var(--hair-2); border-radius: var(--r-md);
  background: var(--ground); color: var(--ink);
  font: 400 15.5px/1.4 var(--font-ui);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--con); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-wash); }
.field input:user-invalid { border-color: #C0362C; }
.form-note { font-size: 14px; color: var(--muted); }
.form-status { font: 400 13px/1.5 var(--font-mono); color: var(--ink-2); min-height: 1.5em; }

/* ------------------------------------------------------------------ footer */
.site-footer { border-top: 1px solid var(--hair); padding: 56px 0 40px; background: var(--ground); }
.foot-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: minmax(0, 5fr) repeat(2, minmax(0, 2fr)); } }
.foot-brand img { width: 88px; height: auto; margin-bottom: 18px; }
.foot-brand p { color: var(--muted); font-size: 14px; max-width: 40ch; }
.foot-col h2 { font: 500 12px/1 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.foot-col ul { list-style: none; display: grid; gap: 4px; }
.foot-col a { display: inline-flex; min-height: 40px; align-items: center; color: var(--ink-2); text-decoration: none; font-size: 14.5px; }
.foot-col a:hover { color: var(--ink); text-decoration: underline; }
.foot-base { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--hair); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 14px; color: var(--muted); }
.foot-base .mono { letter-spacing: .04em; }

/* ------------------------------------------------------------------ legal pages */
.doc-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--hair); padding: clamp(56px, 9vw, 112px) 0 clamp(40px, 6vw, 64px); }
.doc-hero .grid-bg { -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%); mask-image: linear-gradient(180deg, #000, transparent 90%); }
.doc-hero .wrap { position: relative; }
.doc-hero .kicker { margin-bottom: 16px; }
.doc-hero h1 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -.035em; }
.doc-hero .meta { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.doc-hero .lede { margin-top: 20px; max-width: 60ch; color: var(--ink-2); font-size: 17px; }
.doc { display: grid; gap: 40px; padding: clamp(40px, 6vw, 72px) 0 var(--section); }
@media (min-width: 1000px) { .doc { grid-template-columns: 240px minmax(0, 1fr); column-gap: clamp(40px, 6vw, 96px); } }
.toc { align-self: start; }
@media (min-width: 1000px) { .toc { position: sticky; top: calc(var(--header-h) + 28px); } }
.toc .kicker { margin-bottom: 12px; }
.toc ol { list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--hair); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--muted); text-decoration: none; font-size: 14px; line-height: 1.4; }
.toc a:hover { color: var(--ink); border-left-color: var(--ink); }
@media (max-width: 999px) { .toc ol { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); border-left: 0; } .toc a { padding: 11px 0; min-height: 44px; } }
.prose { max-width: 70ch; color: var(--ink-2); font-size: 16.5px; line-height: 1.7; }
.prose section { position: relative; padding-top: 8px; margin-bottom: 40px; }
.prose h2 { display: flex; align-items: baseline; gap: 14px; font-size: 22px; letter-spacing: -.02em; line-height: 1.25; color: var(--ink); margin-bottom: 14px; }
.prose h2 .n { flex: none; font: 500 12px/1 var(--font-mono); letter-spacing: .06em; color: var(--muted); }
.prose h3 { font-size: 17px; color: var(--ink); margin: 22px 0 8px; letter-spacing: -.01em; }
.prose p + p, .prose p + ul, .prose ul + p, .prose p + table, .prose table + p { margin-top: 12px; }
.prose ul { padding-left: 1.2em; display: grid; gap: 6px; }
.prose li::marker { color: var(--con); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .ph { padding: 0 4px; border-radius: 4px; background: var(--warn-wash); color: var(--warn); font: 500 .88em/1.4 var(--font-mono); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
.prose th { font: 500 12px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--hair-2); }
.prose .tbl { overflow-x: auto; }
@media (max-width: 640px) {
  .prose table, .prose tbody, .prose tr, .prose td { display: block; width: 100%; }
  .prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .prose tr { padding: 12px 0; border-bottom: 1px solid var(--hair-2); }
  .prose td { border: 0; padding: 3px 0; }
  .prose td::before { content: attr(data-label); display: block; font: 500 12px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
  .prose td:first-child { font-weight: 600; color: var(--ink); }
  .prose td:first-child::before { display: none; }
}
@media (pointer: coarse) { .foot-col a { min-height: 44px; } }
.summary-box { margin-bottom: 44px; padding: 22px 24px; border: 1px solid var(--hair-2); border-radius: var(--r-lg); background: var(--ground-2); }
.summary-box .kicker { margin-bottom: 12px; }

/* 404 */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 0; position: relative; overflow: hidden; }
.nf h1 { font-size: clamp(32px, 4vw, 52px); letter-spacing: -.03em; margin: 18px 0 12px; }
.nf p { color: var(--ink-2); margin-bottom: 28px; }
.nf .wrap { position: relative; }

/* ------------------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001s !important; transition-delay: 0s !important; animation-duration: .001s !important; animation-delay: 0s !important; }
  .js .rv { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ print */
@media print {
  .site-header, .theme-btn, .toc, .skip { display: none !important; }
  body { background: #fff; color: #000; }
  .prose { max-width: none; }
}
