/* AegisPQC — monochrome site styles */
/* Self-hosted fonts (SIL Open Font License) */
@font-face { font-family: "Schibsted Grotesk"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/schibsted-grotesk-400.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/schibsted-grotesk-500.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/schibsted-grotesk-600.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/schibsted-grotesk-700.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/instrument-serif-italic.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/jetbrains-mono-400.woff2") format("woff2"); }

:root {
  --black: #000000;
  --white: #ffffff;
  --silver: #c4c4c4;
  --graphite: #8a8a8a;
  --smoke: #3a3a3a;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.32);

  --serif: "Instrument Serif", "Times New Roman", serif;
  --display: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--white); color: var(--black); }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { text-decoration-color: var(--white); }
:focus-visible { outline: 1px solid var(--white); outline-offset: 4px; }
:focus:not(:focus-visible) { outline: none; }

img, svg, canvas { display: block; max-width: 100%; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--white); color: var(--black); padding: 8px 12px; font-size: 14px;
}
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  mix-blend-mode: difference;
  transition: background-color .25s;
}
.site-header.solid {
  mix-blend-mode: normal; background: rgba(0, 0, 0, .86);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center;
  height: 72px; padding: 0 var(--gutter);
}
.brand {
  grid-column: 1 / span 3;
  font-family: var(--display); font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; color: var(--white);
  display: inline-flex; align-items: center; gap: 10px; justify-self: start;
}
.brand svg { width: 18px; height: 18px; }
.nav-links { grid-column: 7 / span 4; display: flex; gap: 24px; font-size: 13px; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--white); opacity: .66; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; }
.nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: .35em; }
.hdr-icons { grid-column: 11 / span 2; justify-self: end; display: flex; gap: 6px; align-items: center; }
.icon-btn {
  width: 30px; height: 30px; border-radius: 50%; background: var(--white); color: var(--black);
  display: grid; place-items: center; text-decoration: none; transition: transform .2s;
}
.icon-btn:hover { transform: scale(1.1); }
.icon-btn svg { width: 15px; height: 15px; }
.menu-btn {
  display: none; background: none; border: 0; padding: 12px 0 12px 14px; cursor: pointer; color: var(--white);
}
.menu-btn span { display: block; width: 26px; height: 1px; background: currentColor; }
.menu-btn span + span { margin-top: 7px; }

.menu-overlay {
  position: fixed; inset: 0; z-index: 60; background: var(--black);
  display: flex; flex-direction: column; padding: 0 var(--gutter);
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s;
}
.menu-overlay.open { opacity: 1; visibility: visible; }
.menu-overlay .top { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.menu-overlay .close { background: none; border: 0; color: var(--white); font: 14px var(--sans); cursor: pointer; padding: 12px 0; }
.menu-overlay nav { margin-top: 8vh; display: flex; flex-direction: column; gap: 4px; }
.menu-overlay nav a {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.04em; font-size: clamp(44px, 12vw, 88px);
  line-height: 1.05; text-decoration: none;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .brand { grid-column: 1 / span 6; }
  .hdr-icons { grid-column: 7 / span 6; }
}

/* ---------- Hero (scattered layout) ---------- */
.hero {
  position: relative; height: 100svh; min-height: 640px; overflow: hidden;
  padding: 0 var(--gutter);
}
.levels {
  position: absolute; top: 0; height: 72px; left: calc(var(--gutter) + (100% - 2 * var(--gutter)) * 0.17);
  display: flex; align-items: center; gap: 14px; z-index: 55;
}
.levels button {
  background: none; border: 0; padding: 6px 0; cursor: pointer;
  font: 500 12px var(--sans); color: var(--graphite); letter-spacing: .01em;
}
.levels button:hover { color: var(--white); }
.levels button[aria-pressed="true"] { color: var(--white); text-decoration: underline; text-underline-offset: .4em; }

.hero-mark { position: absolute; left: var(--gutter); top: 30%; }
.flourish {
  position: absolute; left: -2%; top: 50%; transform: translateY(-50%);
  font-family: var(--serif); font-style: italic; font-size: clamp(300px, 58vh, 620px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.28);
  pointer-events: none; user-select: none; z-index: 0;
}
.swash {
  position: absolute; left: -9%; top: 50%; width: 118%; transform: translateY(-46%);
  pointer-events: none; z-index: 0; overflow: visible;
}
.swash path { fill: none; stroke: rgba(255,255,255,.24); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hero-pre {
  position: relative; z-index: 1; display: block;
  font-family: var(--serif); font-style: italic; font-size: clamp(30px, 3.4vw, 52px); line-height: 1;
  margin: 0 0 -0.12em 0.9em; color: var(--white);
}
.wordmark {
  position: relative; z-index: 1; margin: 0;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(64px, 9.6vw, 152px); line-height: .9; letter-spacing: -0.055em;
}
.wordmark .q {
  display: inline-block; position: relative; z-index: 2;
  font-size: 1.16em; margin: 0 -0.13em; transform: translateY(0.05em) rotate(-10deg);
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(160deg, #5c5c5c 0%, #ffffff 22%, #8f8f8f 38%, #fafafa 52%, #3d3d3d 66%, #d8d8d8 82%, #7a7a7a 100%);
  filter: drop-shadow(0 0 18px rgba(255,255,255,.18));
}
.hero-copy {
  position: absolute; left: var(--gutter); bottom: 32px; z-index: 2;
  width: min(380px, 28vw); margin: 0; font-size: 15px; line-height: 1.45; color: var(--silver);
}
.hero-copy a { color: var(--white); }

.hero-tile {
  position: absolute; margin: 0; left: calc(var(--gutter) + (100% - 2 * var(--gutter)) * 0.585);
  bottom: 32px; width: calc((100% - 2 * var(--gutter)) * 0.255);
}
.tile-frame { position: relative; aspect-ratio: 1.42; border: 1px solid var(--line-strong); overflow: hidden; background: #000; }
.tile-frame canvas, .tile-frame .chrome-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.chrome-fallback {
  background:
    radial-gradient(40% 45% at 62% 40%, rgba(255,255,255,.85), rgba(255,255,255,0) 70%),
    radial-gradient(30% 35% at 28% 62%, rgba(255,255,255,.45), rgba(255,255,255,0) 70%),
    #000;
  filter: blur(14px);
}
.hero-tile figcaption {
  position: absolute; bottom: calc(100% + 14px); left: 0; font-size: 12px; line-height: 1.5; color: var(--graphite);
}
.hero-tile figcaption strong { color: var(--white); font-weight: 500; display: block; }

.explore {
  position: absolute; right: var(--gutter); bottom: 32px; font-size: 15px; text-decoration: none; color: var(--white);
  display: inline-flex; align-items: center; gap: 10px;
}
.explore::after { content: ""; width: 28px; height: 1px; background: var(--white); transition: width .3s ease; }
.explore:hover::after { width: 48px; }
@media (max-width: 900px) {
  .hero { height: auto; min-height: 100svh; display: flex; flex-direction: column; padding-top: 72px; padding-bottom: 32px; }
  .levels { position: static; height: auto; margin: 8px 0 0; }
  .hero-mark { position: relative; left: 0; top: 0; margin: 15vh 0 0; }
  .flourish { font-size: 62vw; left: -2%; }
  .wordmark { font-size: 17.5vw; }
  .hero-mark { order: 1; }
  .hero-tile { order: 2; position: relative; left: 0; bottom: 0; width: 100%; margin-top: 16vh; }
  .hero-tile figcaption { position: static; margin-bottom: 12px; }
  .hero-copy { order: 3; position: static; width: auto; margin-top: 24px; max-width: 46ch; }
  .explore { order: 4; position: static; margin-top: 28px; align-self: flex-end; }
}

/* ---------- Sections ---------- */
section.block { padding: clamp(88px, 13vw, 180px) 0 0; }
.block-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.block-title {
  grid-column: 1 / span 4;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(40px, 5vw, 70px); line-height: .95; letter-spacing: -0.05em;
  margin: 0;
}
.block-body { grid-column: 6 / span 7; }
@media (max-width: 900px) {
  .block-title, .block-body { grid-column: 1 / -1; }
  .block-title { margin-bottom: 24px; }
}

.lede code { font-size: .62em; vertical-align: .12em; }
.lede {
  font-family: var(--display); font-weight: 400; font-size: clamp(24px, 2.5vw, 34px); letter-spacing: -0.025em;
  line-height: 1.2; margin: 0 0 28px; max-width: 30ch;
}
.block-body p { color: var(--silver); max-width: 60ch; margin: 0 0 18px; }
.block-body p strong { color: var(--white); font-weight: 500; }
.muted { color: var(--graphite); }
.small { font-size: 14px; }

/* Statement */
.statement {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(30px, 4.3vw, 62px); line-height: 1.04; letter-spacing: -0.04em;
  max-width: 22ch; margin: 0;
}
.statement-sub { margin-top: 40px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.statement-sub p { grid-column: 6 / span 6; color: var(--silver); margin: 0; max-width: 56ch; }
@media (max-width: 900px) { .statement-sub p { grid-column: 1 / -1; } }

/* Lists in two columns like reference */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 32px; }
@media (max-width: 600px) { .cols { grid-template-columns: 1fr; } }
.cols h3 { font-size: 15px; font-weight: 500; margin: 0 0 14px; color: var(--white); }
.cols ul { list-style: none; padding: 0; margin: 0; }
.cols li { color: var(--graphite); font-size: 15px; padding: 5px 0; }

/* Timeline (real sequence) */
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li {
  display: grid; grid-template-columns: 9.5rem 1fr; gap: 24px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.timeline time { font-size: 15px; color: var(--white); font-weight: 500; }
.timeline span { color: var(--silver); font-size: 15px; }
.timeline li.key time { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 30px; line-height: 1; }
@media (max-width: 520px) { .timeline li { grid-template-columns: 1fr; gap: 4px; } }

/* Handshake steps (sequence) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 0 36px 64px; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -6px;
  font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 46px; line-height: 1; color: var(--white);
}
.steps li::after {
  content: ""; position: absolute; left: 13px; top: 46px; bottom: 8px; width: 1px; background: var(--line);
}
.steps li:last-child::after { display: none; }
.steps h3 { margin: 0 0 6px; font-size: 17px; font-weight: 500; }
.steps p { margin: 0 0 10px; }
.steps .bytes { font-family: var(--mono); font-size: 12.5px; color: var(--graphite); word-break: break-word; }

/* Hybrid diagram */
.diagram { margin: 8px 0 32px; border: 1px solid var(--line); padding: clamp(16px, 3vw, 32px); }
.diagram svg { width: 100%; height: auto; }
.diagram svg text { font-family: var(--sans); fill: var(--white); }
.diagram svg .m { font-family: var(--mono); fill: var(--graphite); }

/* Profiles */
.profiles { border-top: 1px solid var(--line); }
.profile {
  display: grid; grid-template-columns: 11rem 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line);
}
.profile h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: -0.03em; line-height: 1.1; }
.profile p { margin: 0 0 6px; }
.profile .tag { font-size: 13px; color: var(--graphite); }
@media (max-width: 560px) { .profile { grid-template-columns: 1fr; gap: 8px; } }

/* Numbers */
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 8px 0 48px; }
.figure .n { font-family: var(--display); font-weight: 600; font-size: clamp(50px, 6vw, 90px); line-height: .95; letter-spacing: -0.055em; }
.figure .n small { font-family: var(--sans); font-size: .26em; letter-spacing: 0; margin-left: 6px; color: var(--silver); }
.figure .l { color: var(--graphite); font-size: 14px; margin-top: 10px; max-width: 22ch; }
@media (max-width: 600px) { .figures { grid-template-columns: 1fr; gap: 32px; } }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 28px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 500; color: var(--white); border-bottom-color: var(--line-strong); white-space: nowrap; }
td { color: var(--silver); }
td code, th code { font-size: 12.5px; }

/* Code */
code { font-family: var(--mono); font-size: 0.86em; color: var(--white); }
pre {
  font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--silver);
  border: 1px solid var(--line); background: #050505; padding: 20px 22px;
  overflow-x: auto; margin: 0 0 28px; tab-size: 4;
}
pre code { font-size: inherit; color: inherit; }
.code-head { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); border-bottom: 0; padding: 8px 12px 8px 22px; font-size: 13px; color: var(--graphite); }
.code-head + pre { margin-top: 0; }
.copy { background: none; border: 1px solid var(--line); color: var(--silver); font: 12px var(--sans); padding: 5px 12px; border-radius: 999px; cursor: pointer; }
.copy:hover { border-color: var(--white); color: var(--white); }

/* Fit / not fit */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 32px; }
.fit h3 { font-size: 15px; font-weight: 500; margin: 0 0 12px; }
.fit ul { margin: 0; padding: 0; list-style: none; }
.fit li { padding: 10px 0; border-top: 1px solid var(--line); color: var(--silver); font-size: 15px; }
@media (max-width: 640px) { .fit { grid-template-columns: 1fr; } }

/* Honest notice */
.notice { border: 1px solid var(--line-strong); padding: 24px 26px; margin-top: 8px; }
.notice p { margin: 0 0 10px; }
.notice p:last-child { margin-bottom: 0; }

/* Closing CTA: decrypting chrome button */
.closing { position: relative; padding: clamp(120px, 16vw, 220px) 0 clamp(80px, 10vw, 140px); overflow: hidden; }
.closing .grid { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; }
.closing h2 {
  grid-column: 1 / span 6; margin: 0;
  font-family: var(--display); font-weight: 600; letter-spacing: -0.035em;
  font-size: clamp(34px, 4.2vw, 60px); line-height: 1.02;
}
.star-wrap { grid-column: 8 / span 5; justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.star-btn {
  --mx: 0px; --my: 0px;
  position: relative; display: inline-flex; align-items: center; gap: 16px;
  height: 84px; padding: 0 12px 0 30px; border-radius: 999px; text-decoration: none; color: var(--black);
  background: linear-gradient(105deg, #6d6d6d 0%, #f4f4f4 14%, #9b9b9b 27%, #ffffff 40%, #545454 53%, #e6e6e6 66%, #8c8c8c 80%, #fafafa 92%, #707070 100%);
  background-size: 260% 100%; background-position: 0% 50%;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 0 rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.25), 0 24px 80px -20px rgba(255,255,255,.35);
  transform: translate(var(--mx), var(--my));
  transition: background-position 1.1s cubic-bezier(.2,.7,.2,1), transform .25s ease-out, box-shadow .3s;
}
.star-btn:hover, .star-btn:focus-visible { background-position: 100% 50%; box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 0 rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.5), 0 30px 100px -16px rgba(255,255,255,.55); }
.star-ico { width: 26px; height: 26px; flex: none; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.star-btn:hover .star-ico { transform: rotate(144deg); }
.star-label {
  font-family: var(--mono); font-size: 17px; letter-spacing: -.01em; white-space: pre; min-width: 14ch;
}
.star-count {
  height: 60px; min-width: 60px; padding: 0 16px; border-radius: 999px; background: var(--black); color: var(--white);
  display: grid; place-items: center; font: 600 15px var(--sans);
}
.star-count svg { width: 20px; height: 20px; }
.star-note { margin: 0; font-size: 13px; color: var(--graphite); text-align: right; max-width: 34ch; }
@media (prefers-reduced-motion: reduce) { .star-btn, .star-ico { transition: none; } }
@media (max-width: 900px) {
  .closing h2 { grid-column: 1 / -1; }
  .star-wrap { grid-column: 1 / -1; justify-self: start; align-items: flex-start; margin-top: 40px; }
  .star-note { text-align: left; }
}
@media (max-width: 420px) {
  .star-btn { height: 72px; padding-left: 22px; gap: 12px; }
  .star-label { font-size: 15px; }
  .star-count { height: 52px; min-width: 52px; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 13px; color: var(--graphite); }
.site-footer .row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.site-footer .c1 { grid-column: 1 / span 4; }
.site-footer .c2 { grid-column: 6 / span 3; }
.site-footer .c3 { grid-column: 9 / span 4; }
.site-footer h4 { margin: 0 0 8px; font-weight: 400; color: var(--graphite); font-size: 12px; }
.site-footer a { color: var(--white); text-decoration: none; display: block; padding: 2px 0; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .legal { margin-top: 48px; }
@media (max-width: 760px) {
  .site-footer .c1, .site-footer .c2, .site-footer .c3 { grid-column: 1 / -1; }
}

/* ---------- Docs pages ---------- */
.doc-hero { position: relative; padding: 168px 0 72px; overflow: hidden; border-bottom: 1px solid var(--line); }
.doc-hero .glow {
  position: absolute; width: 900px; height: 600px; left: 50%; top: -360px; transform: translateX(-30%);
  background: radial-gradient(closest-side, rgba(255,255,255,.42), rgba(255,255,255,0));
  filter: blur(30px); pointer-events: none;
}
.doc-hero h1 {
  position: relative; font-family: var(--display); font-weight: 700;
  font-size: clamp(50px, 8.6vw, 124px); line-height: .92; letter-spacing: -0.055em; margin: 0 0 28px;
}
.doc-hero p { position: relative; color: var(--silver); max-width: 56ch; margin: 0; font-size: 17px; }

.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding-top: 64px; padding-bottom: 120px; }
.toc { position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; font-size: 13.5px; padding-right: 8px; }
.toc summary { list-style: none; margin: 0 0 12px; color: var(--graphite); font-size: 12px; cursor: pointer; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: " +"; }
.toc details[open] summary::after { content: " \2212"; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; }
.toc a { display: block; padding: 5px 0 5px 12px; color: var(--graphite); text-decoration: none; border-left: 1px solid var(--line); line-height: 1.35; }
.toc a:hover { color: var(--white); }
.toc a.active { color: var(--white); border-left-color: var(--white); }
.toc .lvl3 a { padding-left: 24px; font-size: 12.5px; }
@media (max-width: 960px) {
  .doc-layout { grid-template-columns: 1fr; gap: 0; }
  .toc { position: static; max-height: none; border: 1px solid var(--line); padding: 16px 18px 4px; margin-bottom: 48px; }
  .toc summary { font-size: 14px; color: var(--white); }
  .toc .lvl3 { display: none; }
}

.prose { max-width: 76ch; min-width: 0; }
.prose > *:first-child { margin-top: 0; }
.prose h2 {
  font-family: var(--display); font-weight: 700; font-size: clamp(32px, 3.6vw, 48px); line-height: 1; letter-spacing: -0.045em;
  margin: 96px 0 24px; padding-top: 28px; border-top: 1px solid var(--line); scroll-margin-top: 88px;
}
.prose h3 { font-size: 19px; font-weight: 500; margin: 48px 0 14px; scroll-margin-top: 88px; }
.prose h4 { font-size: 16px; font-weight: 500; margin: 32px 0 10px; }
.prose p, .prose li { color: var(--silver); }
.prose p { margin: 0 0 18px; }
.prose strong { color: var(--white); font-weight: 500; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 22px; }
.prose li { margin: 0 0 10px; }
.prose li::marker { color: var(--graphite); }
.prose blockquote { margin: 0 0 24px; padding: 4px 0 4px 20px; border-left: 1px solid var(--white); }
.prose blockquote p { color: var(--white); }
.prose del { color: var(--graphite); }
.prose .table-wrap table { font-size: 13.5px; }
.prose a { color: var(--white); }
.prose pre.diagram-pre { font-size: 11.5px; line-height: 1.35; }
.prose .anchor { opacity: 0; margin-left: 10px; text-decoration: none; color: var(--graphite); font-size: .6em; vertical-align: middle; }
.prose h2:hover .anchor, .prose h3:hover .anchor { opacity: 1; }

.doc-next { margin-top: 96px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.doc-next a { text-decoration: none; }
.doc-next small { display: block; color: var(--graphite); font-size: 13px; }
.doc-next span { font-family: var(--display); font-size: 28px; font-weight: 600; letter-spacing: -0.035em; }

/* Hybrid diagram (HTML so text stays readable on phones) */
.hybrid { margin: 8px 0 36px; }
.hy-in { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hy-box { border: 1px solid var(--line-strong); padding: 16px 18px; text-align: center; }
.hy-box strong { display: block; font-weight: 500; font-size: 15px; }
.hy-box span { display: block; font-size: 13px; color: var(--graphite); margin-top: 4px; }
.hy-box code { display: block; font-size: 11.5px; color: var(--graphite); margin-top: 6px; word-break: break-word; }
.hy-join { width: 100%; height: 48px; }
.hy-join.single { height: 32px; }
.hy-mid { max-width: 440px; margin: 0 auto; }
.hy-out {
  width: max-content; max-width: 100%; margin: 0 auto; padding: 12px 26px; border-radius: 999px;
  background: var(--white); color: var(--black); font-size: 15px; font-weight: 500;
}
