/* Optimax site. Literata for headings, Recursive for prose and (MONO 1) code.
   Fonts are self-hosted variable files; see assets/fonts/LICENSE-*.txt. */
@font-face { font-family: "Literata"; font-style: normal; font-weight: 200 900; font-display: swap; src: url(fonts/literata-latin-opsz-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; font-style: italic; font-weight: 200 900; font-display: swap; src: url(fonts/literata-latin-opsz-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Recursive"; font-style: normal; font-weight: 300 1000; font-display: swap; src: url(fonts/recursive-latin-mono-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Recursive"; font-style: normal; font-weight: 300 1000; font-display: swap; src: url(fonts/recursive-latin-ext-mono-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
  /* glacier: frosted plates in cold daylight */
  --bg: #f0f4f8;
  --bg-deep: #dde6ef;
  --ink: #0b1a2c;
  --ink-2: #38495e;
  --ink-3: #4d5e73;
  --line: rgba(11, 26, 44, .12);
  --line-strong: rgba(11, 26, 44, .28);
  --plate: rgba(255, 255, 255, .7);
  --plate-solid: #fafcfe;
  --plate-shadow: 0 1px 0 rgba(255, 255, 255, .95) inset, 0 0 0 1px rgba(20, 52, 92, .07), 0 28px 48px -30px rgba(20, 52, 92, .38);
  --accent: #0a5878;
  --accent-soft: rgba(10, 88, 120, .09);
  --accent-solid: #0d2136;
  --on-accent: #eef5fb;
  --btn-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 14px 24px -14px rgba(13, 33, 54, .62);
  --btn-glass: rgba(255, 255, 255, .62);
  /* resource hues: madder, viridian, amber */
  --proc: #b3264a;
  --ctx: #08705a;
  --mem: #8a5300;
  --proc-g: #ee4f76;
  --ctx-g: #14b88f;
  --mem-g: #f0a013;
  --glow: rgba(40, 160, 215, .4);
  --amb-a: rgba(255, 255, 255, .9);
  --amb-k: rgba(150, 210, 244, .34);
  --amb-r1: rgba(179, 38, 74, .06);
  --amb-r2: rgba(8, 112, 90, .07);
  --amb-r3: rgba(200, 125, 0, .07);
  /* hero stack materials */
  --slab-top: linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(219, 232, 245, .9));
  --slab-under: rgba(126, 158, 194, .58);
  --host-top: linear-gradient(135deg, rgba(255, 255, 255, .72), rgba(196, 218, 240, .4));
  --host-rule: rgba(20, 52, 92, .42);
  --slab-edge: rgba(255, 255, 255, 1);
  --slab-line: rgba(20, 52, 92, .3);
  --sheet: linear-gradient(135deg, rgba(255, 255, 255, .72), rgba(142, 206, 242, .44));
  --sheet-edge: rgba(10, 88, 120, .78);
  --beam: rgba(18, 130, 185, .36);
  --beam-low-a: 92%;
  --beam-low-b: 40%;
  --stack-shadow: rgba(20, 52, 92, .26);
  --head-2: #38495e;
  --rung: linear-gradient(180deg, rgba(10, 88, 120, .2), rgba(10, 88, 120, .07));

  --serif: "Literata", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  /* one family, two settings: Recursive Sans Linear (MONO 0) for prose and UI, Recursive Mono Linear (MONO 1) for code */
  --sans: "Recursive", "Helvetica Neue", Arial, sans-serif;
  --mono: "Recursive", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1240px;
  --gutter: 16px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0f1a;
    --bg-deep: #05080f;
    --ink: #e8eef7;
    --ink-2: #a9b6c8;
    --ink-3: #8594a9;
    --line: rgba(200, 225, 255, .12);
    --line-strong: rgba(200, 225, 255, .3);
    --plate: rgba(190, 220, 255, .05);
    --plate-solid: #0f1726;
    --plate-shadow: 0 0 0 1px rgba(200, 225, 255, .12) inset, 0 1px 0 rgba(222, 240, 255, .1) inset;
    --accent: #bfe0ff;
    --accent-soft: rgba(191, 224, 255, .1);
    --accent-solid: #dcefff;
    --on-accent: #071425;
    --btn-shadow: 0 0 0 1px rgba(255, 255, 255, .55) inset, 0 0 30px -8px rgba(160, 212, 255, .6);
    --btn-glass: rgba(190, 220, 255, .06);
    --proc: #ff9fb2;
    --ctx: #7fe0c2;
    --mem: #f1c97c;
    --proc-g: #ff9fb2;
    --ctx-g: #7fe0c2;
    --mem-g: #f1c97c;
    --glow: rgba(160, 212, 255, .42);
    --amb-a: rgba(120, 175, 255, .1);
    --amb-k: rgba(191, 224, 255, .08);
    --amb-r1: rgba(255, 159, 178, .06);
    --amb-r2: rgba(127, 224, 194, .06);
    --amb-r3: rgba(241, 201, 124, .055);
    --slab-top: linear-gradient(135deg, rgba(42, 56, 80, .93), rgba(20, 29, 46, .9));
    --slab-under: rgba(3, 6, 12, .72);
    --host-top: linear-gradient(135deg, rgba(120, 150, 196, .2), rgba(60, 84, 124, .1));
    --host-rule: rgba(200, 225, 255, .34);
    --slab-edge: rgba(200, 225, 255, .42);
    --slab-line: rgba(200, 225, 255, .2);
    --sheet: linear-gradient(135deg, rgba(191, 224, 255, .22), rgba(191, 224, 255, .04));
    --sheet-edge: rgba(222, 240, 255, .92);
    --beam: rgba(225, 242, 255, .58);
    --beam-low-a: 80%;
    --beam-low-b: 26%;
    --stack-shadow: rgba(0, 0, 0, .6);
    --head-2: #a9b6c8;
    --rung: linear-gradient(180deg, rgba(191, 224, 255, .2), rgba(191, 224, 255, .05));
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0f1a;
  --bg-deep: #05080f;
  --ink: #e8eef7;
  --ink-2: #a9b6c8;
  --ink-3: #8594a9;
  --line: rgba(200, 225, 255, .12);
  --line-strong: rgba(200, 225, 255, .3);
  --plate: rgba(190, 220, 255, .05);
  --plate-solid: #0f1726;
  --plate-shadow: 0 0 0 1px rgba(200, 225, 255, .12) inset, 0 1px 0 rgba(222, 240, 255, .1) inset;
  --accent: #bfe0ff;
  --accent-soft: rgba(191, 224, 255, .1);
  --accent-solid: #dcefff;
  --on-accent: #071425;
  --btn-shadow: 0 0 0 1px rgba(255, 255, 255, .55) inset, 0 0 30px -8px rgba(160, 212, 255, .6);
  --btn-glass: rgba(190, 220, 255, .06);
  --proc: #ff9fb2;
  --ctx: #7fe0c2;
  --mem: #f1c97c;
  --proc-g: #ff9fb2;
  --ctx-g: #7fe0c2;
  --mem-g: #f1c97c;
  --glow: rgba(160, 212, 255, .42);
  --amb-a: rgba(120, 175, 255, .1);
  --amb-k: rgba(191, 224, 255, .08);
  --amb-r1: rgba(255, 159, 178, .06);
  --amb-r2: rgba(127, 224, 194, .06);
  --amb-r3: rgba(241, 201, 124, .055);
  --slab-top: linear-gradient(135deg, rgba(42, 56, 80, .93), rgba(20, 29, 46, .9));
  --slab-under: rgba(3, 6, 12, .72);
  --host-top: linear-gradient(135deg, rgba(120, 150, 196, .2), rgba(60, 84, 124, .1));
  --host-rule: rgba(200, 225, 255, .34);
  --slab-edge: rgba(200, 225, 255, .42);
  --slab-line: rgba(200, 225, 255, .2);
  --sheet: linear-gradient(135deg, rgba(191, 224, 255, .22), rgba(191, 224, 255, .04));
  --sheet-edge: rgba(222, 240, 255, .92);
  --beam: rgba(225, 242, 255, .58);
  --beam-low-a: 80%;
  --beam-low-b: 26%;
  --stack-shadow: rgba(0, 0, 0, .6);
  --head-2: #a9b6c8;
  --rung: linear-gradient(180deg, rgba(191, 224, 255, .2), rgba(191, 224, 255, .05));
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; scrollbar-color: var(--line-strong) var(--bg-deep); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.62;
  font-variation-settings: "MONO" 0;
  letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
::selection { background: var(--accent); color: var(--bg); }
h1, h2, h3, p, ol, ul, dl, dd, figure, table { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration-color: var(--line-strong); text-decoration-thickness: from-font; text-underline-offset: .22em; transition: text-decoration-color 180ms ease; }
@media (hover: hover) and (pointer: fine) { a:hover { text-decoration-color: currentColor; } }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
button { font: inherit; color: inherit; }
code, pre, kbd { font-family: var(--mono); font-size: .9em; }
/* every element set in var(--mono) switches the MONO axis on; prose never does */
code, pre, kbd, .version, .cmdline, .slots li, .score-row button, .file-name, .flow li::before, .steps li > span::before, .foot-brand span, .lost-code { font-variation-settings: "MONO" 1; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; font-variant-numeric: lining-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--accent-solid); color: var(--on-accent); padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.proc { --hue: var(--proc); --hue-g: var(--proc-g); }
.ctx { --hue: var(--ctx); --hue-g: var(--ctx-g); }
.mem { --hue: var(--mem); --hue-g: var(--mem-g); }

/* ---------- Ambient light: one fixed field per layer, crossfaded on scroll ---------- */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%); }
.ambient i { position: absolute; inset: 0; opacity: 0; will-change: opacity; }
.ambient .amb-app { opacity: 1; background: radial-gradient(60% 55% at 78% 22%, var(--amb-a), transparent 70%); }
.ambient .amb-kernel { background: linear-gradient(180deg, transparent 22%, var(--amb-k) 48%, transparent 76%); }
.ambient .amb-res { background: radial-gradient(34% 40% at 16% 88%, var(--amb-r1), transparent 70%), radial-gradient(34% 40% at 50% 96%, var(--amb-r2), transparent 70%), radial-gradient(34% 40% at 84% 88%, var(--amb-r3), transparent 70%); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 1.3rem; font-weight: 500; letter-spacing: -.018em; }
.brand svg { width: 26px; height: 26px; }
.brand .m-proc { fill: var(--proc); } .brand .m-ctx { fill: var(--ctx); } .brand .m-mem { fill: var(--mem); }
.version { font-family: var(--mono); font-size: .74rem; letter-spacing: 0; color: var(--ink-3); padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; font-size: .9rem; font-weight: 500; white-space: nowrap; }
.site-nav a { text-decoration: none; color: var(--ink-2); padding-block: 6px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: color 180ms ease, background-size 260ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .site-nav a:hover { color: var(--ink); background-size: 100% 1px; } }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--btn-glass); cursor: pointer; transition: transform 140ms var(--ease-out), border-color 180ms ease; }
.icon-btn:active { transform: scale(.95); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { border-color: var(--line-strong); } }
.icon-btn svg { width: 18px; height: 18px; }
.i-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .i-sun { display: none; } :root:not([data-theme="light"]) .i-moon { display: block; } }
:root[data-theme="dark"] .i-sun { display: none; } :root[data-theme="dark"] .i-moon { display: block; }
.menu-btn { display: none; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
@media (max-width: 940px) {
  .bar { gap: 10px; }
  .menu-btn { display: inline-grid; }
  #theme-toggle { margin-left: auto; }
  /* the section list drops below the bar; closed, it is out of the tab order too */
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 4px var(--gutter) 12px; background: var(--bg); border-bottom: 1px solid var(--line-strong); box-shadow: 0 26px 36px -28px var(--stack-shadow); font-size: 1.02rem; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding-block: 13px; border-bottom: 1px solid var(--line); background: none; color: var(--ink); }
  .site-nav a:last-child { border-bottom: 0; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 940px) {
  .site-nav.is-open { animation: menu 220ms var(--ease-out); }
  @keyframes menu { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0); } }
}

/* ---------- Depth gauge (wide screens) ---------- */
.gauge { position: fixed; left: max(14px, calc((100vw - var(--wrap)) / 2 - 76px)); top: 50%; z-index: 20; height: 348px; margin-top: -174px; display: none; grid-template-rows: repeat(4, 1fr); padding-left: 14px; }
@media (min-width: 1420px) { .gauge { display: grid; } }
.gauge::before, .gauge .fill { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line-strong); }
.gauge .fill { width: 2px; left: -.5px; background: var(--accent); transform-origin: 50% 0; transform: scaleY(0); box-shadow: 0 0 10px var(--glow); }
.gauge a { writing-mode: vertical-rl; white-space: nowrap; transform: rotate(180deg); text-align: center; font-size: .74rem; font-weight: 500; letter-spacing: 0; text-decoration: none; color: var(--ink-3); transition: color 300ms ease; }
.gauge a[aria-current="true"] { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--btn-glass); text-decoration: none; font-weight: 500; font-size: .97rem; letter-spacing: -.005em; white-space: nowrap; transition: transform 150ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent-solid); color: var(--on-accent); border-color: transparent; font-weight: 600; box-shadow: var(--btn-shadow); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { border-color: var(--accent); }
  .btn.primary:hover { transform: translateY(-1px); border-color: transparent; }
  .btn.primary:hover:active { transform: scale(.97); }
}

/* ---------- Hero ---------- */
.hero-band { overflow: clip; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; align-items: center; min-height: calc(100svh - 65px); padding-block: 40px 56px; }
.hero h1 { font-family: var(--serif); font-weight: 380; font-size: clamp(2.6rem, 4.8vw + .5rem, 5rem); line-height: 1.05; letter-spacing: -.03em; }
.hero h1 em { display: block; font-style: italic; font-weight: 360; letter-spacing: -.026em; color: var(--accent); }
.lede { margin-top: 26px; max-width: 33em; font-size: 1.09rem; line-height: 1.58; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.fine { margin-top: 22px; font-size: .875rem; line-height: 1.55; color: var(--ink-3); }

/* z stops for the four planes; beams and tethers are measured from them */
.scene { --z-host: 19.5em; --z-app: 10.5em; --z-kernel: -4.5em; --z-res: -19.5em; position: relative; height: 50em; font-size: clamp(8.6px, .6vw + 5.4px, 14.4px); perspective: 2600px; perspective-origin: 50% 42%; margin-right: -3em; }
.tilt, .drift, .iso, .spread, .open { position: absolute; inset: 0; transform-style: preserve-3d; }
.iso { transform: rotateX(66deg) rotateZ(-38deg); }
.plane, .rig { position: absolute; left: 50%; top: 50%; width: 24em; height: 24em; margin: -12em 0 0 -12em; }
.rig { transform-style: preserve-3d; }
.p-host { transform: translateZ(var(--z-host)); }
.p-app { transform: translateZ(var(--z-app)); }
.p-app.under { transform: translateZ(calc(var(--z-app) - .9em)); }
.p-kernel { transform: translateZ(var(--z-kernel)); }
.p-res { transform: translateZ(var(--z-res)); }
.p-res.under { transform: translateZ(calc(var(--z-res) - .8em)); }
.p-floor { transform: translateZ(calc(var(--z-res) - 4em)); background: radial-gradient(closest-side, var(--stack-shadow), transparent); width: 36em; height: 36em; margin: -18em 0 0 -18em; }

.slab { position: absolute; inset: 0; border-radius: 1em; background: var(--slab-top); border: 1px solid var(--slab-edge); box-shadow: 0 0 0 1px var(--slab-line); }
.under .slab, .under .strip { background: var(--slab-under); border-color: var(--slab-line); box-shadow: none; }
/* the agent host: a glass frame around the session, lighter than the slab it carries */
.hostplate { position: absolute; inset: 0; border-radius: 1em; background: var(--host-top); border: 1px solid var(--slab-edge); box-shadow: 0 0 0 1px var(--slab-line); }
.hostplate::before { content: ""; position: absolute; inset: .8em; border-radius: .5em; border: 1px dashed var(--host-rule); }
.slab .label, .hostplate .label { position: absolute; left: 1.6em; bottom: 1.5em; }
.hostplate .label { left: 2em; bottom: 3.7em; right: 2em; } /* sits clear of the Orchestrator port seen through the glass */
.hostplate .label b { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 2em; line-height: 1.12; letter-spacing: -.015em; color: var(--ink); white-space: nowrap; }
.hostplate .label b i { font-style: normal; font-weight: 400; color: var(--ink-3); margin-inline: .12em; }
/* two rows only, as on the other planes: foreshortening leaves no room for a third */
.hostplate .label span { display: block; margin-top: .5em; font-size: 1em; font-weight: 500; line-height: 1.35; color: var(--ink-2); white-space: nowrap; }
/* the host carries the session: hairline posts down to the Orchestrator at three corners,
   the near corner left open so the labels stay clear */
.tether { position: absolute; width: .14em; margin-left: -.07em; height: calc(var(--z-host) - var(--z-app)); background: linear-gradient(180deg, var(--host-rule), transparent 92%); transform-origin: 50% 0; transform: translateZ(var(--z-host)) rotateX(-90deg); pointer-events: none; }
.tether.x { transform: translateZ(var(--z-host)) rotateX(-90deg) rotateY(90deg); }
.tether.c1 { left: 4%; top: 4%; } .tether.c2 { left: 96%; top: 4%; } .tether.c4 { left: 96%; top: 96%; }
.slab .label b { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 2em; line-height: 1.12; letter-spacing: -.015em; color: var(--ink); }
.slab .label span { display: block; margin-top: .4em; font-size: 1em; font-weight: 500; color: var(--ink-2); }
.port { position: absolute; left: 86%; width: 1.7em; height: 1.7em; margin: -.85em 0 0 -.85em; border-radius: 50%; background: radial-gradient(closest-side, var(--beam), transparent); border: 1px solid var(--slab-line); }
.r1 { top: 16.667%; } .r2 { top: 50%; } .r3 { top: 83.333%; }

.sheet { position: absolute; inset: 0; border-radius: 1em; background: var(--sheet); border: 1px solid var(--sheet-edge); box-shadow: 0 0 3.4em var(--glow), 0 0 0 1px var(--accent-soft), 0 0 0 .5px rgba(255, 255, 255, .5) inset; }
.sheet .name { position: absolute; left: 1.6em; bottom: 1.5em; font-family: var(--serif); font-size: 2.2em; font-weight: 500; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }
.sheet .name small { display: block; margin-top: .4em; font-family: var(--sans); font-size: .455em; font-weight: 500; letter-spacing: 0; color: var(--ink-2); }
.aperture { position: absolute; left: 86%; width: 2.6em; height: 2.6em; margin: -1.3em 0 0 -1.3em; border-radius: 50%; border: 1.5px solid var(--hue); background: radial-gradient(closest-side, color-mix(in srgb, var(--hue-g) 60%, transparent), transparent 88%); }
.aperture span { position: absolute; right: 3.5em; top: 50%; transform: translateY(-50%); font-size: 1.05em; font-weight: 600; color: var(--ink); white-space: nowrap; }

.strip { position: absolute; left: 0; right: 0; height: 28%; border-radius: .9em; background: var(--slab-top); border: 1px solid var(--slab-edge); box-shadow: 0 0 0 1px var(--slab-line); }
.strip.s1 { top: 2.667%; } .strip.s2 { top: 36%; } .strip.s3 { top: 69.333%; }
.strip .txt { position: absolute; left: 1.5em; top: 50%; transform: translateY(-50%); }
.strip b { display: block; font-size: 1.15em; font-weight: 600; color: var(--ink); line-height: 1.25; }
.strip small { display: block; font-size: .84em; color: var(--ink-2); line-height: 1.3; }
.strip .land { position: absolute; left: 86%; top: 50%; width: 3.6em; height: 3.6em; margin: -1.8em 0 0 -1.8em; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--hue-g) 75%, transparent), transparent); }
.strip .land::after { content: ""; position: absolute; inset: 36%; border-radius: 50%; background: var(--hue); }

/* light columns: two crossed quads per segment so they read from any yaw */
.beam { position: absolute; left: 86%; width: 1.5em; margin-left: -.75em; transform-origin: 50% 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 50%, transparent); mask-image: linear-gradient(90deg, transparent, #000 50%, transparent); pointer-events: none; }
.beam.upper { height: calc(var(--z-app) - var(--z-kernel) - 1.4em); background: linear-gradient(180deg, transparent, var(--beam)); transform: translateZ(calc(var(--z-app) - 1.1em)) rotateX(-90deg); }
.beam.upper.x { transform: translateZ(calc(var(--z-app) - 1.1em)) rotateX(-90deg) rotateY(90deg); }
.beam.lower { height: calc(var(--z-kernel) - var(--z-res) - .6em); width: 2em; margin-left: -1em; background: linear-gradient(180deg, color-mix(in srgb, var(--hue-g) var(--beam-low-a), transparent), color-mix(in srgb, var(--hue-g) var(--beam-low-b), transparent)); transform: translateZ(calc(var(--z-kernel) - .3em)) rotateX(-90deg); }
.beam.lower.x { transform: translateZ(calc(var(--z-kernel) - .3em)) rotateX(-90deg) rotateY(90deg); }

@media (prefers-reduced-motion: no-preference) {
  .drift { animation: drift 18s var(--ease-in-out) infinite alternate; }
  .open { animation: open 1.7s var(--ease-out) backwards; }
  .open .plane { animation: fade 900ms ease-out backwards; }
  .open .p-res, .open .p-floor { animation-delay: 120ms; }
  .open .p-kernel { animation-delay: 260ms; }
  .open .p-app { animation-delay: 420ms; }
  .open .p-host { animation-delay: 580ms; }
  .open .beam, .open .tether { animation: fade 1100ms ease-out 1100ms backwards; }
  @keyframes drift { from { transform: rotateZ(-1.6deg) translate3d(0, -.5em, 0); } to { transform: rotateZ(1.6deg) translate3d(0, .5em, 0); } }
  @keyframes open { from { transform: scale3d(1, 1, .12); } to { transform: scale3d(1, 1, 1); } }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
}

@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; gap: 8px; min-height: 0; padding-block: 40px 24px; }
  .scene { font-size: clamp(8.6px, 2.5vw, 15px); margin-right: 0; height: 51em; }
  .strip small { display: none; }
  .slab .label span, .hostplate .label span { font-size: 1.15em; }
  .sheet .name small { font-size: .5em; }
  .strip b { font-size: 1.3em; }
  .aperture span { font-size: 1.2em; }
}

/* ---------- Layer dividers: a plane seen edge-on ---------- */
.stratum { padding-block: 72px 0; }
.stratum .edge { display: flex; align-items: baseline; gap: 18px; }
.stratum b { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.6rem; letter-spacing: -.015em; white-space: nowrap; }
.stratum span { color: var(--ink-3); font-size: .9rem; }
.stratum i { flex: 1; height: 1px; align-self: center; background: linear-gradient(90deg, var(--line-strong), transparent); min-width: 24px; }
.stratum.k b { color: var(--accent); }
.stratum.k i { height: 2px; background: linear-gradient(90deg, var(--accent), transparent); box-shadow: 0 0 14px var(--glow); }
@media (max-width: 600px) { .stratum .edge { flex-wrap: wrap; gap: 4px 14px; } .stratum i { flex-basis: 100%; margin-top: 10px; } }

/* ---------- Sections ---------- */
.section { padding-block: 72px 56px; }
.stratum + .section { padding-top: 40px; }
.head { max-width: 760px; margin-bottom: 48px; }
.head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 2.2vw + 1rem, 2.95rem); line-height: 1.12; letter-spacing: -.025em; }
.head h2 em { font-style: normal; color: var(--head-2); }
.head p { margin-top: 16px; color: var(--ink-2); font-size: 1.06rem; line-height: 1.6; max-width: 35em; }
h3 { font-family: var(--sans); font-size: 1.03rem; font-weight: 650; line-height: 1.35; letter-spacing: -.012em; }
.cmdline { display: block; margin-top: 10px; padding: 9px 12px; border-radius: 8px; background: var(--accent-soft); font-family: var(--mono); font-size: .8rem; line-height: 1.55; letter-spacing: -.01em; overflow-wrap: anywhere; }

/* ---------- Side view figure ---------- */
.side { display: grid; grid-template-columns: 190px repeat(3, minmax(0, 1fr)); column-gap: 20px; align-items: center; }
.side .row-label { font-family: var(--serif); font-style: italic; font-weight: 450; font-size: 1.2rem; line-height: 1.2; letter-spacing: -.01em; }
.side .row-label small { display: block; font-family: var(--sans); font-style: normal; font-weight: 400; font-size: .8rem; letter-spacing: 0; color: var(--ink-3); margin-top: 2px; }
/* the host row is an outline, not a plate: it surrounds the session and holds nothing of its own */
.side .slab-host { grid-column: 2 / -1; padding: 18px 28px 20px; border-radius: 14px; border: 1px dashed var(--line-strong); }
.side .slab-host strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.28rem; line-height: 1.25; letter-spacing: -.016em; }
.side .slab-host strong i { font-style: normal; font-weight: 400; color: var(--ink-3); margin-inline: .1em; }
.side .slab-host span { color: var(--ink-2); }
.side .pipe.one { grid-column: 2 / -1; height: 30px; background: var(--line-strong); }
.side .slab-app { grid-column: 2 / -1; padding: 26px 28px; border-radius: 14px; background: var(--plate); box-shadow: var(--plate-shadow); }
.side .slab-app strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.5rem; line-height: 1.2; letter-spacing: -.018em; }
.side .slab-app span { color: var(--ink-2); }
.side .pipe { height: 44px; justify-self: center; width: 2px; background: linear-gradient(180deg, transparent, var(--line-strong)); }
.side .pipe.low { background: linear-gradient(180deg, var(--hue), color-mix(in srgb, var(--hue) 25%, transparent)); box-shadow: 0 0 12px color-mix(in srgb, var(--hue) 45%, transparent); }
.side .gap { grid-column: 1; }
.side .band { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; position: relative; padding-block: 10px; }
.side .band::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--accent); box-shadow: 0 0 18px var(--glow); border-radius: 2px; }
.side .band span { position: relative; justify-self: center; padding: 3px 14px; border-radius: 999px; border: 1.5px solid var(--hue); background: var(--bg); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.side .res { align-self: stretch; padding: 20px 20px 22px; border-radius: 14px; background: var(--plate); box-shadow: var(--plate-shadow); }
.side .res svg { display: block; width: 84px; height: 38px; color: var(--hue); margin-bottom: 12px; }
.side .res strong { display: block; font-weight: 600; line-height: 1.3; }
.side .res span { display: block; color: var(--ink-2); font-size: .9rem; line-height: 1.45; margin-top: 3px; }
@media (max-width: 820px) {
  .side { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 8px; }
  .side .row-label { grid-column: 1 / -1; margin-bottom: 8px; }
  .side .row-label.mid { margin-top: 0; }
  .side .gap { display: none; }
  .side .slab-host, .side .slab-app, .side .band, .side .pipe.one { grid-column: 1 / -1; }
  .side .slab-host { padding: 14px 16px 16px; }
  .side .slab-app { padding: 20px 16px; }
  .side .pipe.one { height: 22px; }
  .side .band { column-gap: 8px; }
  .side .band span { padding-inline: 8px; font-size: .84rem; }
  .side .res { padding: 14px 10px 16px; }
  .side .res svg { width: 60px; height: 28px; }
  .side .res strong { font-size: .92rem; }
  .side .res span { font-size: .8rem; }
  .side .pipe { height: 30px; }
}

/* ---------- Managers ---------- */
.managers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.manager { position: relative; padding: 30px 32px 8px; border-left: 1px solid var(--line); }
.manager:first-child { padding-left: 0; border-left: 0; }
.manager::before { content: ""; position: absolute; left: 32px; top: 0; width: 56px; height: 2px; background: var(--hue); box-shadow: 0 0 12px color-mix(in srgb, var(--hue) 50%, transparent); }
.manager:first-child::before { left: 0; }
.manager h3 { font-family: var(--serif); font-weight: 450; font-size: 2rem; letter-spacing: -.024em; line-height: 1.1; color: var(--hue); }
.manager .q { margin-top: 14px; font-size: 1.12rem; line-height: 1.42; font-weight: 500; letter-spacing: -.014em; }
.manager p + p { margin-top: 14px; color: var(--ink-2); }
.manager .owner { font-size: .9rem; color: var(--ink); }
.manager .owner span { color: var(--ink-3); }
@media (max-width: 860px) {
  .managers { grid-template-columns: 1fr; gap: 40px; }
  .manager, .manager:first-child { padding: 24px 0 0; border-left: 0; }
  .manager::before { left: 0; }
}

/* ---------- Routing simulator ---------- */
.sim { padding: 32px 36px 34px; border-radius: 16px; background: var(--plate); box-shadow: var(--plate-shadow); }
.sim-top { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; border: 1px solid var(--line); }
.seg button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 7px; background: transparent; cursor: pointer; color: var(--ink-2); font-weight: 500; font-size: .92rem; white-space: nowrap; transition: background-color 180ms ease, color 180ms ease, transform 140ms var(--ease-out); }
.seg button:active { transform: scale(.97); }
.seg button[aria-pressed="true"] { background: var(--accent-solid); color: var(--on-accent); }
.tiers { display: inline-flex; align-items: center; gap: 4px; border: 0; padding: 0; margin: 0; min-width: 0; }
.tiers legend { float: left; padding: 0; margin-right: 12px; color: var(--ink-3); font-size: .9rem; }
.tiers label { position: relative; cursor: pointer; }
.tiers input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.tiers span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 8px; border: 1px solid transparent; color: var(--ink-2); font-size: .92rem; font-weight: 500; white-space: nowrap; transition: border-color 180ms ease, color 180ms ease; }
.tiers input:checked + span { border-color: var(--accent); color: var(--ink); background: var(--accent-soft); }
.tiers input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

.ladder-block { margin-top: 34px; }
.ladder-block h3, .notes h3 { margin-bottom: 14px; }
.ladder { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; align-items: end; }
.ladder li { --i: 0; display: flex; flex-direction: column; justify-content: flex-end; font-size: .84rem; line-height: 1.25; letter-spacing: -.01em; color: var(--ink-2); transition: opacity 260ms ease, color 260ms ease; }
.ladder li::before { content: ""; height: calc(10px + var(--i) * 11px); border-radius: 4px 4px 0 0; background: var(--rung); border-top: 2px solid var(--line-strong); margin-bottom: 10px; transition: background-color 320ms ease, box-shadow 320ms ease, border-color 320ms ease; }
.ladder li.below { opacity: .42; }
.ladder li.floor::after { content: "floor"; font-size: .72rem; color: var(--ink-3); margin-top: 2px; }
.ladder li:not(.floor)::after { content: "\00a0"; font-size: .72rem; margin-top: 2px; }
.ladder li.now { color: var(--ink); font-weight: 650; }
.ladder li.now::before { background: var(--accent); border-top-color: var(--accent); box-shadow: 0 0 22px var(--glow); }
.ladder.advisor li { font-size: .78rem; }
.ladder.advisor li::before { height: calc(8px + var(--i) * 8px); }
.ladder.advisor li::after { content: none; }
.ladder-note { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: .9rem; color: var(--ink-2); }
.ladder-note output, .ladder-note b { color: var(--ink); font-weight: 600; }
.key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 8px; background: var(--accent); }
.key.floor { background: transparent; border: 1.5px solid var(--ink-3); }

.sim-run { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 20px 44px; align-items: end; margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.sim-label { font-size: .9rem; color: var(--ink-3); margin-bottom: 10px; }
.slots, .score-row { display: flex; gap: 8px; }
.slots li { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px dashed var(--line-strong); font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: .95rem; }
.slots li.filled { border-style: solid; border-color: var(--ink-3); background: var(--accent-soft); }
.slots li.top { border-color: var(--accent); color: var(--accent); }
.score-row button { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; font-family: var(--mono); font-variant-numeric: tabular-nums; transition: transform 130ms var(--ease-out), background-color 160ms ease, border-color 160ms ease; }
.score-row button:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .score-row button:hover { background: var(--accent-soft); border-color: var(--accent); } }
.verdict { align-self: center; font-family: var(--serif); font-weight: 450; font-size: 1.25rem; line-height: 1.36; letter-spacing: -.012em; min-height: 2.72em; display: flex; align-items: center; }
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 32px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .92rem; line-height: 1.55; color: var(--ink-2); }
.rules strong { display: block; color: var(--ink); font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .slots li.filled { animation: pop 260ms var(--ease-out); }
  @keyframes pop { from { transform: scale(.86); opacity: .4; } to { transform: scale(1); opacity: 1; } }
}
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; margin-top: 56px; }
.notes p { color: var(--ink-2); }
/* stacked single-column prose keeps a 60 to 75 character measure */
.manager p, .notes p, .stack-notes p { max-width: 35em; }
.notes p + p, .notes .ladder + p { margin-top: 14px; }
@media (max-width: 980px) {
  .sim-run { grid-template-columns: auto minmax(0, 1fr); }
  .verdict { grid-column: 1 / -1; }
  .notes { grid-template-columns: 1fr; max-width: 640px; }
}
@media (max-width: 720px) {
  .sim { padding: 22px 16px 24px; margin-inline: -4px; }
  .sim-run { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr; }
  .ladder:not(.advisor) { grid-auto-flow: row; gap: 4px; }
  .ladder:not(.advisor) li { flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; min-height: 30px; font-size: .95rem; }
  .ladder:not(.advisor) li::before { height: 12px; width: calc(18px + var(--i) * 12px); flex: none; margin: 0 calc((6 - var(--i)) * 12px) 0 0; border-top: 0; border-right: 2px solid var(--line-strong); border-radius: 3px 0 0 3px; }
  .ladder:not(.advisor) li.now::before { border-right-color: var(--accent); }
  .ladder:not(.advisor) li::after { margin: 0 0 0 auto; }
  .slots li, .score-row button { width: 42px; height: 42px; }
  .slots, .score-row { gap: 6px; }
}

/* ---------- Five-tool stack ---------- */
.stack { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px 64px; align-items: start; }
.jobs { width: 100%; border-collapse: collapse; }
.jobs th, .jobs td { text-align: left; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.jobs thead th { font-size: .86rem; font-weight: 500; color: var(--ink-3); padding-block: 0 12px; }
.jobs tbody th { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; letter-spacing: -.02em; line-height: 1.2; white-space: nowrap; }
.jobs td { color: var(--ink-2); font-size: .97rem; line-height: 1.55; }
.jobs td:last-child { padding-right: 0; white-space: nowrap; color: var(--ink); font-size: .9rem; font-weight: 500; }
.jobs td:last-child::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--hue); margin-right: 9px; box-shadow: 0 0 10px color-mix(in srgb, var(--hue) 55%, transparent); }
.stack-notes h3 { margin-top: 26px; }
.stack-notes h3:first-child { margin-top: 0; }
.stack-notes p { margin-top: 6px; color: var(--ink-2); }
.invoke { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.invoke dt { font-size: .88rem; color: var(--ink-3); }
.invoke .cmdline { margin-top: 6px; }
@media (max-width: 900px) { .stack { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .jobs thead { display: none; }
  .jobs tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--line); }
  .jobs th, .jobs td { padding: 0; border: 0; }
  .jobs tbody th { order: 1; font-size: 1.28rem; }
  .jobs td:last-child { order: 2; align-self: center; }
  .jobs td:first-child { order: 3; grid-column: 1 / -1; margin-top: 2px; }
}

/* ---------- Team sync ---------- */
.sync { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px 64px; align-items: start; }
.file { padding: 22px 24px 24px; border-radius: 14px; background: var(--plate); box-shadow: var(--plate-shadow); }
.file-name { font-family: var(--mono); font-size: .8rem; color: var(--ink-3); }
.file pre { margin: 12px 0 0; font-size: .86rem; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.file-note { margin-top: 14px; font-size: .9rem; line-height: 1.55; color: var(--ink-2); }
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: step; }
.flow li { counter-increment: step; position: relative; padding: 0 28px 0 0; color: var(--ink-2); font-size: .95rem; line-height: 1.58; }
.flow li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--accent); font-family: var(--mono); font-size: .88rem; color: var(--ink); background: var(--bg); position: relative; z-index: 1; margin-bottom: 16px; }
.flow li::after { content: ""; position: absolute; left: 34px; right: 0; top: 17px; height: 1px; background: var(--line-strong); }
.flow li:last-child::after { background: linear-gradient(90deg, var(--line-strong), transparent); }
.flow strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.guards { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.guards li { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: .875rem; color: var(--ink-2); }
@media (max-width: 900px) { .sync { grid-template-columns: 1fr; } .guards { grid-column: 1; } }
@media (max-width: 620px) {
  .flow { grid-template-columns: 1fr; gap: 22px; }
  .flow li { padding: 0 0 0 52px; }
  .flow li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .flow li::after { left: 17px; right: auto; top: 34px; bottom: -22px; width: 1px; height: auto; }
  .flow li:last-child::after { display: none; }
}

/* ---------- Install ---------- */
.hosts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.host { padding: 30px 32px 32px; border-radius: 16px; background: var(--plate); box-shadow: var(--plate-shadow); }
.host h3 { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; letter-spacing: -.022em; }
.steps { counter-reset: s; margin-top: 18px; display: grid; gap: 18px; }
.steps li { counter-increment: s; }
.steps li > span { display: block; font-size: .93rem; color: var(--ink-2); margin-bottom: 8px; }
.steps li > span::before { content: counter(s) "."; font-family: var(--mono); color: var(--ink-3); margin-right: 8px; }
.cmd { display: flex; align-items: stretch; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--plate-solid); overflow: hidden; }
.cmd code { flex: 1; min-width: 0; padding: 12px 14px; font-size: .8rem; letter-spacing: -.01em; line-height: 1.6; overflow-wrap: anywhere; color: var(--ink); }
.cmd button { flex: none; min-width: 76px; padding: 0 14px; border: 0; border-left: 1px solid var(--line); background: transparent; cursor: pointer; font-size: .88rem; font-weight: 500; color: var(--ink-2); transition: background-color 160ms ease, color 160ms ease; }
.cmd button:active { background: var(--accent-soft); }
.cmd button.done { color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .cmd button:hover { background: var(--accent-soft); color: var(--ink); } }
.defaults { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 20px 64px; }
.defaults dl div { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: 4px 24px; padding-block: 13px; border-bottom: 1px solid var(--line); }
.defaults dl div:first-child { padding-top: 0; }
.defaults dt code { font-size: .8rem; letter-spacing: -.01em; overflow-wrap: anywhere; }
.defaults dd { color: var(--ink-2); font-size: .95rem; }
.defaults .fine { margin-top: 10px; }
@media (max-width: 900px) { .hosts { grid-template-columns: 1fr; } .defaults { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .host { padding: 22px 16px 24px; margin-inline: -4px; } .defaults dl div { grid-template-columns: 1fr; } }

/* ---------- Limits ---------- */
.limits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; }
.limits li { padding: 24px 44px 26px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.limits strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.34rem; line-height: 1.26; letter-spacing: -.018em; color: var(--ink); margin-bottom: 8px; }
@media (max-width: 760px) { .limits { grid-template-columns: 1fr; } .limits li { padding-right: max(0px, calc(100% - 34em)); } }

/* ---------- Footer ---------- */
.site-footer { margin-top: 56px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg-deep) 70%, transparent); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 48px; padding-block: 44px 56px; }
.foot-brand { font-family: var(--serif); font-size: 1.75rem; font-weight: 500; line-height: 1.1; letter-spacing: -.022em; }
.foot-brand span { font-family: var(--mono); font-size: .76rem; color: var(--ink-3); margin-left: 8px; }
.foot p + p { margin-top: 8px; color: var(--ink-2); font-size: .92rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 26px; align-items: center; font-size: .92rem; }
.foot nav a { padding-block: 6px; }

/* ---------- 404 ---------- */
.lost main { min-height: 100svh; display: grid; align-content: center; justify-items: start; padding-block: 72px; }
.lost-code { font-family: var(--mono); font-size: .95rem; color: var(--ink-3); padding: 3px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-variant-numeric: tabular-nums; }
.lost h1 { margin-top: 26px; font-family: var(--serif); font-weight: 380; font-size: clamp(2.3rem, 4vw + 1rem, 4rem); line-height: 1.06; letter-spacing: -.028em; max-width: 14em; }
.lost .brand { margin-bottom: 56px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .gauge .fill { display: none; }
}
