/* General Retrieval: site stylesheet. Self-hosted fonts only (SIL OFL, licences beside the files); no external url(). */
@font-face { font-family: "GR Sans"; src: url("/assets/fonts/inst-sans.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "GR Serif"; src: url("/assets/fonts/newsreader.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "GR Serif"; src: url("/assets/fonts/newsreader-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "GR Mono"; src: url("/assets/fonts/geist-mono.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --bg: #f6f8fc; --bg-2: #edf0f7; --card: #fbfcfe; --ink: #0e1d3c; --ink-2: #33435e; --muted: #5b6880;
  --rule: #d6dce8; --rule-2: #c2cada; --accent: #1d45d8; --accent-ink: #1d45d8; --accent-soft: rgba(29, 69, 216, .09);
  --hit: #ff5a1f; --hit-soft: rgba(255, 90, 31, .13);
  --code-bg: #0a1226; --code-ink: #e4eaf7; --code-muted: #8794b0; --code-rule: #1a2540;
  --t-key: #9fb8ff; --t-str: #a9e2b9; --t-num: #ffc47e; --t-com: #6c7a97; --t-flag: #7fd2ff; --t-kw: #d4a9ff;
  --dot: rgba(14, 29, 60, .22); --glow: rgba(29, 69, 216, .22);
  --serif: "GR Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "GR Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "GR Mono", ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --max: 1240px; --gutter: clamp(16px, 4vw, 40px); --header-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #060a12; --bg-2: #0c1220; --card: #0d1424; --ink: #e9eef8; --ink-2: #b9c3d5; --muted: #8794aa;
    --rule: #1b2538; --rule-2: #2a364d; --accent: #7b9bff; --accent-ink: #9db2ff; --accent-soft: rgba(123, 155, 255, .12);
    --hit: #ff7a45; --hit-soft: rgba(255, 122, 69, .15);
    --code-bg: #03060c; --code-rule: #172137; --dot: rgba(233, 238, 248, .2); --glow: rgba(123, 155, 255, .22);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #060a12; --bg-2: #0c1220; --card: #0d1424; --ink: #e9eef8; --ink-2: #b9c3d5; --muted: #8794aa;
    --rule: #1b2538; --rule-2: #2a364d; --accent: #7b9bff; --accent-ink: #9db2ff; --accent-soft: rgba(123, 155, 255, .12);
    --hit: #ff7a45; --hit-soft: rgba(255, 122, 69, .15);
    --code-bg: #03060c; --code-rule: #172137; --dot: rgba(233, 238, 248, .2); --glow: rgba(123, 155, 255, .22);
  color-scheme: dark;
}

/* ---------------------------------------------------------------- base */
/* Orange (--hit) marks a retrieved point only; cobalt (--accent) is links, focus and structure. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.62 var(--sans); font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--accent); color: #fff; }
img, svg { display: block; max-width: 100%; }
code, pre, kbd { font-family: var(--mono); font-size: .86em; }
strong { font-weight: 620; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

/* ---------------------------------------------------------------- site header (chrome) */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 80%, transparent); }
.site-header-in { max-width: var(--max); height: 100%; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 24px; }
.skip a { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 6px; z-index: 60; text-decoration: none; }
.skip a:focus { left: 12px; }
.brand a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.02rem/1 var(--sans); letter-spacing: -.01em; color: var(--ink); white-space: nowrap; }
.mark { width: 22px; height: 22px; }
.mark-g { stroke: currentColor; }
.mark-dot { fill: var(--hit); }
.brand a:hover .mark-dot { animation: gr-blink 1.2s ease-in-out 1; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav-primary a { display: block; padding: 7px 11px; border-radius: 999px; font: 500 .92rem/1 var(--sans); color: var(--ink-2); text-decoration: none; transition: background-color .15s, color .15s; }
.nav-primary a:hover { background: var(--bg-2); color: var(--ink); }
.nav-primary a[aria-current="page"] { color: var(--ink); background: var(--bg-2); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; background: var(--ink); color: var(--bg);
  font: 600 .88rem/1 var(--sans); text-decoration: none; white-space: nowrap; transition: transform .15s, box-shadow .2s; }
.btn::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--hit); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hit) 30%, transparent); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px -8px var(--glow); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule-2); }

/* ---------------------------------------------------------------- site footer (chrome) */
.site-footer { margin-top: 0; border-top: 1px solid var(--rule); background: var(--bg); position: relative; overflow: hidden; }
.site-footer-in { max-width: var(--max); margin: 0 auto; padding: 56px var(--gutter) 28px; display: grid; gap: 40px; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.foot-cols-min { grid-template-columns: 1fr; }
.foot-h { margin: 0 0 14px; font: 500 .72rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-list a { color: var(--ink-2); text-decoration: none; font-size: .93rem; }
.foot-list a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); }
.foot-word { margin: 8px 0 -6px; font: 400 clamp(3rem, 11.4vw, 10.8rem)/.9 var(--serif); letter-spacing: -.055em; color: var(--ink); white-space: nowrap; }
.foot-mark { height: 80px; margin: 0 calc(var(--gutter) * -1); opacity: .9; }
.foot-mark svg { width: 100%; height: 80px; }
.foot-base { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: baseline; justify-content: space-between; border-top: 1px solid var(--rule); padding-top: 20px; color: var(--muted); font-size: .82rem; }
.foot-base p { margin: 0; }
.foot-entity { max-width: 72ch; }
.foot-top a { font-family: var(--mono); font-size: .76rem; text-decoration: none; letter-spacing: .06em; }
.ff .ff-node { animation: gr-node-pulse 3.2s ease-in-out infinite; }

/* ---------------------------------------------------------------- shared visual vocabulary */
.hf { width: 100%; height: 100%; }
.hf-dot { fill: var(--dot); }
.hf-node { fill: var(--hit); }
.hf-halo { fill: var(--hit-soft); transform-box: fill-box; transform-origin: center; transform: scale(0); animation: gr-pop .6s ease-out forwards; animation-delay: calc(.7s + var(--i) * .42s); }
.hf-p { fill: var(--dot); }
.hf-tw { animation: gr-twinkle 4.8s ease-in-out infinite; animation-delay: var(--d); }
@keyframes gr-twinkle { 50% { fill: var(--accent); } }
.hf-origin { fill: var(--ink); }
.hf-beam { stroke: var(--accent); stroke-opacity: .22; stroke-width: 1; stroke-dasharray: 3 5; }
.hf-trail { fill: none; stroke: var(--hit); stroke-width: 1.5; stroke-linejoin: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: gr-draw 3.4s cubic-bezier(.6, .1, .2, 1) .4s forwards; }
.hf-node { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: gr-pop .5s cubic-bezier(.3, 1.6, .5, 1) forwards; animation-delay: calc(.6s + var(--i) * .42s); }
.hf-ring { fill: none; stroke: var(--hit); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; opacity: 0; animation: gr-ring 3.6s ease-out infinite; animation-delay: calc(3.6s + var(--i) * 1.2s); }
.hf-scan rect { fill: var(--accent); opacity: .0; animation: gr-scan 7s linear 1.2s infinite; }
@keyframes gr-draw { to { stroke-dashoffset: 0; } }
@keyframes gr-pop { to { transform: scale(1); } }
@keyframes gr-ring { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(6); } }
@keyframes gr-scan { 0% { transform: translateX(0); opacity: 0; } 10% { opacity: .16; } 70% { opacity: .1; } 100% { transform: translateX(1200px); opacity: 0; } }
@keyframes gr-blink { 50% { opacity: .2; } }
@keyframes gr-node-pulse { 50% { opacity: .35; } }
@keyframes gr-dash { to { stroke-dashoffset: -24; } }
@keyframes gr-breathe { 50% { transform: scale(1.35); opacity: .35; } }

.art { width: 100%; height: auto; overflow: visible; }
.art .a-rule { stroke: var(--rule-2); stroke-width: 1.2; fill: none; }
.art .a-line { stroke: var(--ink); stroke-width: 1.4; fill: none; }
.art .a-dash { stroke-dasharray: 4 4; }
.art .a-flow { stroke: var(--accent); stroke-dasharray: 5 7; animation: gr-dash 1.6s linear infinite; }
.art .a-node { fill: var(--ink); }
.art .a-hollow { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.art .a-acc { fill: var(--hit); }
.art .a-acc-f { fill: var(--hit); stroke: none; }
.art .a-acc-s { stroke: var(--accent); }
.art .a-box { fill: var(--card); stroke: var(--ink); stroke-width: 1.2; }
.art .a-box.a-acc-f { fill: var(--hit); stroke: var(--hit); }
.art .a-dot-in { fill: var(--bg); }
.art .a-pulse { fill: none; stroke: var(--hit); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: gr-ring 2.8s ease-out infinite; }
.art .a-wave { stroke: var(--accent); stroke-width: 1.8; }
.art .a-tile { fill: var(--ink); opacity: .82; }
.art .a-tile-old { fill: none; stroke: var(--hit); stroke-width: 1.2; opacity: 1; }
.art .a-hl { fill: var(--hit-soft); stroke: var(--hit); stroke-width: 1.2; }
.art .a-x { fill: var(--bg); stroke: var(--ink); stroke-width: 1.2; }
.art .a-xline { stroke: var(--ink); stroke-width: 1.4; }
.art .a-track { stroke: var(--rule-2); stroke-width: 10; stroke-linecap: round; }
.art .a-fill { stroke: var(--ink); stroke-width: 10; stroke-linecap: round; }
.art .a-tick { stroke: var(--accent); stroke-width: 1.6; }
.art .a-tick-hard { stroke: var(--ink); stroke-width: 2; }
.art .a-tick-min { stroke: var(--rule-2); stroke-width: 1.2; }
.art .a-hatch-a { fill: var(--hit-soft); stroke: none; }
.art .a-empty { fill: none; stroke: var(--rule-2); stroke-width: 1.2; stroke-dasharray: 5 5; }
.art .a-bar { fill: var(--ink); }
.art .a-bar.a-acc-f { fill: var(--hit); }

/* ---------------------------------------------------------------- landing */
.landing > p:first-child { margin: 0; }                       /* a dry-run bundle's banner, when present */
.landing .wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.landing p { margin: 0; }
.landing h1, .landing h2, .landing h3 { margin: 0; font-weight: 400; }
.landing .eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 .74rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.landing .eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--hit); border-radius: 1px; flex: none; }

header.hero { position: relative; isolation: isolate; padding-block: clamp(56px, 9vw, 120px) clamp(56px, 8vw, 104px); border-bottom: 1px solid var(--rule); overflow: hidden; }
.hero-field { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-field svg { width: 100%; height: 100%; }
header.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 140px; z-index: -1; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; }
.hero .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero .lede { display: grid; gap: 22px; align-content: start; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 6.9vw, 6.3rem); line-height: .97; letter-spacing: -.038em; text-wrap: balance; }
.hero .lede p { max-width: 54ch; color: var(--ink-2); font-size: 1.04rem; }
.hero .lede p.big { font-family: var(--serif); font-size: clamp(1.2rem, 1.7vw, 1.42rem); line-height: 1.45; color: var(--ink); max-width: 44ch; letter-spacing: -.005em; }
.hero .lede p strong { color: var(--ink); }
.hero .lede > p:has(> strong:only-child) { justify-self: start; display: inline-block; padding: 12px 18px 12px 16px; border: 1px solid var(--ink); border-radius: 999px;
  font-size: .95rem; background: color-mix(in srgb, var(--card) 70%, transparent); box-shadow: 4px 4px 0 0 var(--accent); }
.facts { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule-2); max-width: 560px; }
.facts li { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule); font: 500 .82rem/1.4 var(--mono); color: var(--ink-2); display: flex; gap: 10px; align-items: baseline; }
.facts li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--hit); flex: none; transform: translateY(-2px); }
.facts li:nth-child(odd) { padding-right: 18px; }

.specimen { position: relative; background: var(--code-bg); color: var(--code-ink); border-radius: 14px; overflow: hidden; min-width: 0;
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, .06) inset, 0 40px 80px -40px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .9), 0 0 120px -30px var(--glow); }
.specimen::before { content: ""; position: absolute; top: 15px; left: 16px; width: 9px; height: 9px; border-radius: 50%; background: #26314d; box-shadow: 15px 0 0 #26314d, 30px 0 0 var(--hit); }
.specimen .head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 16px 10px 64px; border-bottom: 1px solid var(--code-rule);
  font: 500 .74rem/1.6 var(--mono); color: var(--code-muted); letter-spacing: .02em; }
.specimen .head span:first-child { color: var(--code-ink); }
.turn { padding: 14px 18px; border-bottom: 1px solid var(--code-rule); display: grid; gap: 8px; min-width: 0; position: relative; }
.turn:nth-of-type(odd) { background: rgba(255, 255, 255, .018); }
.who { font: 500 .66rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--code-muted); display: flex; align-items: center; gap: 8px; }
.who::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1px solid currentColor; }
.turn:nth-of-type(even) .who { color: var(--t-key); }
.turn:nth-of-type(even) .who::before { background: var(--hit); border-color: var(--hit); }
.turn pre { margin: 0; white-space: pre-wrap; word-break: break-word; line-height: 1.6; font-size: .78rem; color: var(--code-ink); }
.specimen .k { color: var(--t-key); }
.specimen .note { color: #1a0d07; background: var(--hit); border-radius: 3px; padding: 0 4px; }
.specimen .foot { padding: 12px 18px; font-size: .74rem; line-height: 1.55; color: var(--code-muted); background: rgba(255, 255, 255, .025); border-top: 1px solid var(--code-rule); }

.landing { counter-reset: sec; }
.landing section { counter-increment: sec; position: relative; padding-block: clamp(64px, 9vw, 120px); border-top: 1px solid var(--rule); }
.landing section > .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 32px); row-gap: 24px; }
.landing section > .wrap > * { grid-column: 1 / -1; }
.landing section > .wrap > .eyebrow { grid-column: 1 / -1; }
.landing section > .wrap > .eyebrow::before { content: counter(sec, decimal-leading-zero); width: auto; height: auto; background: none; color: var(--accent); font-weight: 600; letter-spacing: .06em; margin-right: 6px; }
.landing section > .wrap > h2 { grid-column: 1 / span 8; font-family: var(--serif); font-weight: 400; font-size: clamp(2.3rem, 4.4vw, 4.1rem); line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; margin-bottom: 18px; }
.landing section > .wrap > p { grid-column: 1 / span 8; color: var(--ink-2); font-family: var(--serif); font-size: clamp(1.1rem, 1.35vw, 1.24rem); line-height: 1.55; max-width: 64ch; }
.landing section > .wrap > p + p { margin-top: -6px; }
.sec-art { position: absolute; top: clamp(56px, 8vw, 110px); right: var(--gutter); width: clamp(150px, 20vw, 260px); pointer-events: none; }
@media (min-width: 1320px) { .sec-art { right: calc((100vw - var(--max)) / 2 + var(--gutter)); } }

.steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; position: relative; }
.steps li { counter-increment: step; position: relative; display: grid; gap: 12px; align-content: start; padding: 34px 22px 26px 0; border-top: 1px solid var(--ink); }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; top: -12px; left: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--ink); font: 600 .62rem/1 var(--mono); color: var(--ink); }
.steps li:first-child::before { background: var(--accent); border-color: var(--accent); color: #fff; }
.steps h3 { font-family: var(--serif); font-weight: 400; font-size: 2rem; line-height: 1; letter-spacing: -.01em; }
.steps p { color: var(--ink-2); font-size: .95rem; }
.landing code { background: var(--bg-2); border: 1px solid var(--rule); border-radius: 5px; padding: .08em .36em; font-size: .84em; }

.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-block: 8px 16px; }
.codeblock { position: relative; background: var(--code-bg); color: var(--code-ink); border-radius: 12px; min-width: 0; box-shadow: 0 0 0 1px rgba(0, 0, 0, .85), 0 30px 60px -36px rgba(0, 0, 0, .5); }
.codeblock .label { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px 0 18px; font: 500 .7rem/1.4 var(--mono); color: var(--code-muted); letter-spacing: .12em; text-transform: uppercase; }
.codeblock .label span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--hit); margin-right: 9px; transform: translateY(-1px); }
.codeblock pre { margin: 0; padding: 14px 18px 18px; overflow-x: auto; line-height: 1.65; font-size: .8rem; }
.copy { font: 500 .7rem/1 var(--mono); letter-spacing: .06em; color: var(--code-ink); background: rgba(255, 255, 255, .06); border: 1px solid var(--code-rule); border-radius: 6px; padding: 7px 10px; cursor: pointer; transition: background-color .15s, border-color .15s; }
.copy:hover { background: rgba(255, 255, 255, .12); border-color: #3a3d42; }

.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--rule-2); border-radius: 14px; overflow: hidden; background: var(--card); margin-top: 8px; }
.mode { display: grid; gap: 14px; align-content: start; padding: 26px 24px 28px; border-right: 1px solid var(--rule); position: relative; transition: background-color .2s; }
.mode:last-child { border-right: 0; }
.mode:hover { background: color-mix(in srgb, var(--accent) 5%, var(--card)); }
.mode code.tag { justify-self: start; background: var(--ink); color: var(--bg); border: 0; border-radius: 999px; padding: 5px 12px; font: 600 .78rem/1 var(--mono); }
.mode:first-child code.tag { background: var(--accent); color: #fff; }
.mode p { color: var(--ink-2); font-size: .97rem; }
.mode .ex { font: 400 .8rem/1.5 var(--mono); color: var(--muted); padding-top: 14px; border-top: 1px dashed var(--rule-2); }

dl.facts2 { display: grid; grid-template-columns: minmax(130px, 1.1fr) minmax(0, 4fr); margin: 8px 0 0; border-top: 1px solid var(--ink); }
dl.facts2 dt, dl.facts2 dd { padding: 18px 0; border-bottom: 1px solid var(--rule); margin: 0; }
dl.facts2 dt { font: 500 .74rem/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-right: 16px; }
dl.facts2 dd { color: var(--ink-2); max-width: 74ch; }

ul.plain, ol.plain { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
ul.plain li { position: relative; padding: 18px 0 18px 26px; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: .97rem; }
ul.plain li::before { content: ""; position: absolute; left: 2px; top: 27px; width: 8px; height: 8px; border: 1.5px solid var(--accent); transform: rotate(45deg); }
section[aria-labelledby="h-limits"] ul.plain { grid-template-columns: 1fr; max-width: 920px; }

/* the access section: an inverted call-out */
section[aria-labelledby="h-access"] { background: var(--ink); color: var(--bg); border-top: 0; }
section[aria-labelledby="h-access"] .eyebrow { color: color-mix(in srgb, var(--bg) 60%, transparent); }
section[aria-labelledby="h-access"] > .wrap > p { color: color-mix(in srgb, var(--bg) 78%, transparent); }
section[aria-labelledby="h-access"] > .wrap > p:first-of-type { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.45; color: var(--bg); max-width: 52ch; }
section[aria-labelledby="h-access"] strong { color: var(--bg); background: linear-gradient(transparent 64%, color-mix(in srgb, var(--hit) 75%, transparent) 64%); }
section[aria-labelledby="h-access"] .art .a-bar { fill: var(--bg); }
section[aria-labelledby="h-access"] .art .a-rule { stroke: color-mix(in srgb, var(--bg) 35%, transparent); }
section[aria-labelledby="h-access"] .art .a-bar.a-acc-f { fill: var(--hit); }
section[aria-labelledby="h-measure"] > .wrap > p { font-family: var(--serif); font-size: clamp(1.35rem, 2.3vw, 1.8rem); line-height: 1.3; color: var(--ink); max-width: 40ch; }

.landing > footer { border-top: 1px solid var(--rule); padding-block: 40px; background: var(--bg-2); color: var(--muted); font-size: .86rem; }
.landing > footer .wrap { display: grid; gap: 8px; }
.landing > footer p { max-width: 96ch; }
.landing > footer a { color: var(--ink-2); }
.landing > footer p:last-child { margin-top: 8px; font: 500 .8rem/1.6 var(--mono); }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .landing section > .wrap > *, .sec-art { animation: gr-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 38%; }
  }
}
@keyframes gr-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- holding page (before GO) */
.holding-main { position: relative; isolation: isolate; min-height: calc(100svh - var(--header-h) - 230px); display: grid; align-items: end; overflow: hidden; border-bottom: 1px solid var(--rule); }
.holding-field { position: absolute; inset: 0; z-index: -1; }
.holding-in { max-width: var(--max); width: 100%; margin: 0 auto; padding: clamp(120px, 22vh, 260px) var(--gutter) clamp(48px, 9vh, 96px); display: grid; gap: 28px; }
.holding-word { margin: 0; font: 400 clamp(3.4rem, 12.4vw, 12rem)/.88 var(--serif); letter-spacing: -.05em; }
.holding-link { margin: 0; }
.holding-link a { display: inline-flex; align-items: center; gap: 12px; font: 500 .84rem/1.4 var(--mono); letter-spacing: .02em; text-decoration: none; color: var(--ink-2);
  padding: 10px 16px; border: 1px solid var(--rule-2); border-radius: 999px; background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(6px); }
.holding-link a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--hit); animation: gr-node-pulse 2.4s ease-in-out infinite; }
.holding-link a:hover { border-color: var(--ink); color: var(--ink); }

/* ---------------------------------------------------------------- docs / legal / bot pages */
.page { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.page-grid { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.bot .page-grid, .notfound .page-grid, .legal-index .page-grid { grid-template-columns: minmax(0, 1fr); }
.legal-index .prose { max-width: 820px; margin: 0 auto; min-height: 52vh; }
.legal-index .prose ul { list-style: none; padding: 0; border-top: 1px solid var(--ink); }
.legal-index .prose li { margin: 0; border-bottom: 1px solid var(--rule); }
.legal-index .prose li a { display: flex; justify-content: space-between; align-items: center; padding: 20px 2px; font: 400 clamp(1.4rem, 2.6vw, 2rem)/1.2 var(--serif); letter-spacing: -.02em; text-decoration: none; }
.legal-index .prose li a::after { content: ""; width: 10px; height: 10px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.legal-index .prose li a:hover { background: none; color: var(--accent); }
.legal-index .prose li a:hover::after { transform: translateX(4px) rotate(45deg); }
.side { position: sticky; top: calc(var(--header-h) + 8px); max-height: calc(100vh - var(--header-h) - 16px); overflow-y: auto; padding: 36px 0 40px; scrollbar-width: thin; }
.side-h { margin: 0 0 10px; font: 500 .7rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.side-list + .side-h { margin-top: 28px; }
.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; border-left: 1px solid var(--rule); }
.side-list a { display: block; padding: 6px 12px; margin-left: -1px; border-left: 1px solid transparent; color: var(--ink-2); text-decoration: none; font-size: .9rem; line-height: 1.35; }
.side-list a:hover { color: var(--ink); border-left-color: var(--rule-2); }
.side-list a[aria-current="page"] { color: var(--ink); font-weight: 600; border-left: 2px solid var(--accent); padding-left: 11px; }

.prose { min-width: 0; padding: 44px 0 96px; max-width: 800px; overflow-wrap: break-word; color: var(--ink-2); font-size: 1rem; }
.bot .prose, .notfound .prose { max-width: 820px; margin: 0 auto; }
.prose > h1:first-child, .prose > h1 { font: 400 clamp(2.5rem, 5vw, 3.8rem)/1.02 var(--serif); letter-spacing: -.034em; color: var(--ink); margin: 18px 0 26px; text-wrap: balance; }
.prose > h1::before { content: ""; display: block; width: 36px; height: 3px; background: var(--hit); margin-bottom: 26px; }
.prose h2 { font: 400 1.75rem/1.15 var(--serif); letter-spacing: -.022em; color: var(--ink); margin: 56px 0 14px; padding-top: 22px; border-top: 1px solid var(--rule); scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h3 { font: 600 1.06rem/1.3 var(--sans); color: var(--ink); margin: 34px 0 10px; scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h4 { font: 600 .95rem/1.3 var(--sans); color: var(--ink); margin: 26px 0 8px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; }
.prose a:hover { background: var(--accent-soft); }
.prose strong { color: var(--ink); }
.prose :not(pre) > code { background: var(--bg-2); border: 1px solid var(--rule); border-radius: 5px; padding: .06em .34em; font-size: .84em; color: var(--ink); overflow-wrap: anywhere; }
.prose pre { position: relative; margin: 16px 0 22px; padding: 18px 20px; background: var(--code-bg); color: var(--code-ink); border-radius: 12px; overflow-x: auto;
  line-height: 1.62; font-size: .84rem; box-shadow: 0 0 0 1px rgba(0, 0, 0, .8); overflow-wrap: normal; }
.prose pre code { font-size: inherit; background: none; border: 0; padding: 0; color: inherit; }
.prose blockquote { margin: 18px 0 22px; padding: 14px 20px; background: var(--card); border: 1px solid var(--rule); border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose .table-wrap { overflow-x: auto; margin: 16px 0 24px; border: 1px solid var(--rule); border-radius: 12px; background: var(--card); }
.prose table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.prose th, .prose td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); hyphens: auto; }
.prose td:first-child { min-width: 8.5em; }
.prose th { font: 500 .72rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--bg-2); white-space: nowrap; }
.prose th code { text-transform: none; letter-spacing: 0; }
.prose tr:last-child td { border-bottom: 0; }
.prose td + td, .prose th + th { border-left: 1px solid var(--rule); }
.prose hr { margin: 40px 0; }
.prose a[id]:target + code { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.prose a[id]:empty { scroll-margin-top: calc(var(--header-h) + 80px); }
.legal .prose { max-width: 760px; }
.legal .prose h2 { font: 400 1.85rem/1.15 var(--serif); letter-spacing: -.024em; }
.notfound .prose { min-height: 46vh; }

.t-key { color: var(--t-key); } .t-str { color: var(--t-str); } .t-num { color: var(--t-num); } .t-kw { color: var(--t-kw); }
.t-com { color: var(--t-com); font-style: italic; } .t-flag { color: var(--t-flag); } .t-var { color: var(--t-num); } .t-url { color: var(--t-str); }

.bot .prose > h1 + p { font-size: 1.12rem; line-height: 1.6; color: var(--ink); }
.bot .prose > h1 + p + p { display: flex; gap: 12px; align-items: baseline; padding: 14px 18px; border: 1px solid var(--rule-2); border-radius: 12px; background: var(--card); }
.bot .prose > h1 + p + p::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--hit); flex: none; transform: translateY(-1px); animation: gr-node-pulse 2.4s ease-in-out infinite; }
.bot .prose ul > li { padding-left: 4px; }

/* the CTO's dry-run marks, when a dry-run bundle is previewed */
mark.draft { background: #ffe066; color: #3d2f00; padding: 0 3px; border-radius: 3px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .hero .grid { grid-template-columns: minmax(0, 1fr); }
  header.hero .hf-trail, header.hero .hf-node, header.hero .hf-halo, header.hero .hf-ring, header.hero .hf-beam, header.hero .hf-origin { display: none; }
  header.hero .hero-field { opacity: .6; }
  .sec-art { position: static; width: 200px; margin: 0 var(--gutter) 28px auto; }
  .landing section { padding-top: 56px; }
  .landing section > .wrap > h2, .landing section > .wrap > p { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .page-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .side { position: static; max-height: none; padding: 20px 0 0; border-bottom: 1px solid var(--rule); }
  .side-in { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
  .side-list { grid-column: 1 / -1; display: flex; flex-wrap: wrap; border-left: 0; gap: 6px; padding-bottom: 14px; }
  .side-list + .side-h { margin-top: 4px; }
  .side-h { grid-column: 1 / -1; }
  .side-list a { border: 1px solid var(--rule); border-radius: 999px; padding: 5px 11px; margin: 0; font-size: .84rem; }
  .side-list a[aria-current="page"] { border: 1px solid var(--accent); padding-left: 11px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .modes { grid-template-columns: minmax(0, 1fr); }
  .mode { border-right: 0; border-bottom: 1px solid var(--rule); }
  .mode:last-child { border-bottom: 0; }
  .two, ul.plain { grid-template-columns: minmax(0, 1fr); }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-primary li:nth-child(n+4) { display: none; }
}
@media (max-width: 620px) {
  :root { --header-h: 58px; }
  .nav-primary { display: none !important; }
  .brand a span { font-size: .98rem; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  dl.facts2 { grid-template-columns: minmax(0, 1fr); }
  dl.facts2 dt { padding-bottom: 2px; border-bottom: 0; }
  dl.facts2 dd { padding-top: 4px; }
  .sec-art { width: 150px; }
  .prose { padding-top: 28px; }
  .prose pre { margin-inline: calc(var(--gutter) * -1); border-radius: 0; }
  .side-in { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .hf-trail { stroke-dashoffset: 0; }
  .hf-node { transform: none; }
}
@media print {
  .site-header, .side, .site-footer, .hero-field, .sec-art { display: none !important; }
  body { background: #fff; color: #000; }
  .prose pre, .specimen, .codeblock { background: #f4f4f4; color: #000; box-shadow: none; }
}

/* ================================================================ cinema: the WebGL pages (/, before and after GO) */
:root {
  --gl-line: #3a60e2; --gl-face: #2a52e6; --gl-pt: #1640c2; --gl-pt2: #4a78f5; --gl-hit: #ff5a1f;
  --gl-line-op: .92; --gl-face-op: 1; --gl-glow: #dbe4fb;
  --read: clamp(0, calc((var(--p, 0) - 4.6) * 1.2), 1);
  --hdr: clamp(0, calc(var(--p, 0) * 6 - .2), 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --gl-line: #6f8dff; --gl-face: #3a5cff; --gl-pt: #7a98ff; --gl-pt2: #c0ceff; --gl-hit: #ff7a45; --gl-line-op: .85; --gl-face-op: 1.35; --gl-glow: #10204a; }
}
:root[data-theme="dark"] { --gl-line: #6f8dff; --gl-face: #3a5cff; --gl-pt: #7a98ff; --gl-pt2: #c0ceff; --gl-hit: #ff7a45; --gl-line-op: .85; --gl-face-op: 1.35; --gl-glow: #10204a; }

body.cinema { background: radial-gradient(ellipse 68% 62% at 62% 46%, var(--gl-glow), transparent 76%) fixed, var(--bg); }
#gr-gl { position: fixed; inset: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; display: block; opacity: 0; transition: opacity 1.4s cubic-bezier(.2, .7, .2, 1); }
html.gl-ready #gr-gl { opacity: 1; }
html.no-gl #gr-gl, html.no-gl .gl-veil, html.no-gl .gl-cue { display: none; }
.gl-veil { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(0deg, color-mix(in srgb, var(--bg) 86%, transparent), transparent 22%, transparent 80%, color-mix(in srgb, var(--bg) 58%, transparent)),
    linear-gradient(90deg, color-mix(in srgb, var(--bg) calc(40% + var(--read) * 50%), transparent), color-mix(in srgb, var(--bg) calc(var(--read) * 55%), transparent) calc(30% + var(--read) * 14%), transparent calc(50% + var(--read) * 12%)); }
.gl-cue { position: fixed; left: 50%; bottom: 26px; z-index: 3; width: 1px; height: 64px; pointer-events: none; overflow: hidden;
  background: linear-gradient(color-mix(in srgb, var(--ink) 25%, transparent), transparent); opacity: calc(1 - var(--p, 0) * 6); }
.gl-cue span { position: absolute; left: -2px; top: -10px; width: 5px; height: 10px; border-radius: 3px; background: var(--hit); animation: gr-cue 2.2s cubic-bezier(.6, .1, .3, 1) infinite; }
@keyframes gr-cue { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(74px); opacity: 0; } }

/* header: transparent over the stage, a frosted strip once the flight starts */
.cinema .site-header { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.cinema .site-header::before { content: ""; position: absolute; inset: 0 0 -18px 0; z-index: -1; opacity: var(--hdr);
  background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  -webkit-mask: linear-gradient(#000 62%, transparent); mask: linear-gradient(#000 62%, transparent); }
.cinema .site-header-in { position: relative; }
.wm { display: none; }
@media (scripting: enabled) {
  html:not(.no-gl) .cinema .brand a span { opacity: var(--brand-in, 0); }
  html:not(.no-gl) .cinema .wm {
    display: block; position: fixed; z-index: 55; pointer-events: none; width: min-content; white-space: normal;
    left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); top: calc(50vh - .88em);
    font: 600 clamp(64px, 10.2vw, 200px)/.88 var(--sans); letter-spacing: -.07em; color: var(--ink);
    transform-origin: 0 0; will-change: transform, opacity; }
  .intro-track { height: 600vh; }
  html.no-gl .intro-track { height: 0; }
}
@media (scripting: enabled) and (prefers-reduced-motion: reduce) { .intro-track { height: 0; } html:not(.no-gl) .cinema .wm { display: none; } html:not(.no-gl) .cinema .brand a span { opacity: 1; } }

/* the reading layout: text on the left, the archive model floating on the right */
.cinema .landing { position: relative; z-index: 2; }
.cinema .landing > p:first-child, .cinema .landing > .intro-track + p { position: relative; z-index: 3; }
.cinema header.hero { border-bottom: 0; overflow: visible; padding-block: clamp(120px, 20vh, 220px) clamp(60px, 10vh, 120px); }
.cinema header.hero::after { display: none; }
.cinema .hero .grid { grid-template-columns: minmax(0, 1fr); gap: clamp(48px, 8vh, 96px); }
.cinema .hero .lede { max-width: min(660px, 46vw); gap: 26px; }
.cinema .hero h1 { font-size: clamp(3.2rem, 6.4vw, 6.6rem); letter-spacing: -.045em; line-height: .95; }
.cinema .hero .lede p { color: var(--ink-2); }
.cinema .hero .lede p.big { font-size: clamp(1.25rem, 1.75vw, 1.6rem); line-height: 1.42; }
.cinema .facts { max-width: none; border-top-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.cinema .facts li { border-bottom-color: color-mix(in srgb, var(--rule-2) 70%, transparent); }
.cinema .specimen { max-width: min(780px, 60vw); background: color-mix(in srgb, var(--code-bg) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

.cinema .landing section { border-top: 0; padding-block: clamp(120px, 24vh, 280px) 0; }
.cinema .landing section:last-of-type { padding-bottom: clamp(120px, 20vh, 240px); }
.cinema .landing section > .wrap { display: block; }
.cinema .landing section > .wrap > * + * { margin-top: 28px; }
.cinema .landing section > .wrap > .eyebrow + h2 { margin-top: 22px; }
.cinema .landing section > .wrap > h2 { max-width: min(15ch, 46vw); font-size: clamp(2.5rem, 4.5vw, 4.6rem); letter-spacing: -.048em; line-height: 1.02; margin-bottom: 0; }
.cinema .landing section > .wrap > p { max-width: min(60ch, 46vw); font-size: clamp(1.12rem, 1.42vw, 1.38rem); line-height: 1.55; }
.cinema .landing section > .wrap > p + p { margin-top: 20px; }
.cinema .landing section > .wrap > :is(.steps, .two, .modes, dl, ul) { max-width: min(1000px, 64vw); }

/* glass panels for the wide components (the archive stays visible, blurred, behind them) */
.cinema :is(.steps, .modes, dl.facts2, ul.plain) {
  background: color-mix(in srgb, var(--card) 62%, transparent); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid color-mix(in srgb, var(--rule-2) 60%, transparent); border-radius: 18px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 40px 90px -50px rgba(14, 29, 60, .35); }
.cinema .steps { padding: 34px 30px 8px; }
.cinema .steps li { border-top-color: color-mix(in srgb, var(--ink) 40%, transparent); }
.cinema .steps li::before { background: var(--card); }
.cinema .modes { overflow: hidden; }
.cinema .mode { background: transparent; }
.cinema dl.facts2 { padding: 6px 28px; border-top: 1px solid color-mix(in srgb, var(--rule-2) 60%, transparent); }
.cinema dl.facts2 dt:last-of-type, .cinema dl.facts2 dd:last-of-type { border-bottom: 0; }
.cinema ul.plain { padding: 4px 28px; }
.cinema ul.plain li:nth-child(-n+2) { border-top: 0; }
.cinema .two { gap: 22px; }
.cinema .codeblock { background: color-mix(in srgb, var(--code-bg) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.cinema section[aria-labelledby="h-access"] { margin-top: clamp(120px, 20vh, 220px); padding-block: clamp(100px, 16vh, 180px); background: color-mix(in srgb, var(--ink) 94%, transparent); backdrop-filter: blur(10px); }
.cinema section[aria-labelledby="h-access"] > .wrap > h2 { max-width: 14ch; }
.cinema section[aria-labelledby="h-access"] > .wrap > p { max-width: 58ch; }
.cinema .landing > footer, .cinema .site-footer { position: relative; z-index: 2; }

/* the pre-GO page */
.cinema .holding-main { position: relative; z-index: 2; min-height: 0; display: block; overflow: visible; border-bottom: 0; }
.cinema .holding-in { min-height: 150vh; align-content: center; padding: 120px var(--gutter) 80px; }
.cinema .holding-word { font: 400 clamp(3.4rem, 8.2vw, 8.6rem)/.9 var(--serif); letter-spacing: -.05em; max-width: min(8ch, 52vw); }
.cinema .holding-link a { background: color-mix(in srgb, var(--card) 70%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

@media (max-width: 760px) {
  html:not(.no-gl) .cinema .wm { font-size: 18.5vw; top: 22vh; }
  html.gl-ready .cinema #gr-gl { opacity: calc(1 - var(--read) * .78); }
  .cinema .hero .lede, .cinema .landing section > .wrap > p, .cinema .landing section > .wrap > h2,
  .cinema .landing section > .wrap > :is(.steps, .two, .modes, dl, ul), .cinema .specimen, .cinema .holding-word { max-width: none; }
  .cinema .gl-veil { background: linear-gradient(0deg, color-mix(in srgb, var(--bg) 86%, transparent), transparent 30%, transparent 78%, color-mix(in srgb, var(--bg) 60%, transparent)); }
  .cinema .steps, .cinema dl.facts2, .cinema ul.plain { padding-inline: 18px; }
}
@media (max-width: 1080px) and (min-width: 761px) {
  .cinema .hero .lede, .cinema .landing section > .wrap > p { max-width: min(640px, 60vw); }
  .cinema .landing section > .wrap > :is(.steps, .two, .modes, dl, ul), .cinema .specimen { max-width: 80vw; }
}
