:root{color-scheme:light;--ink:var(--rv-color-gray-950);--muted:var(--rv-color-gray-600);--line:var(--rv-color-gray-200)}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:36px}body{margin:0;color:var(--ink);background:#fff;font-family:var(--rv-font-sans);-webkit-font-smoothing:antialiased}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,.hero:focus-visible{outline:2px solid #537364;outline-offset:5px}.site-header{height:88px;margin:0 48px;display:flex;align-items:center;justify-content:space-between}.wordmark{font-family:var(--rv-font-display);font-size:36px;line-height:1;font-weight:500}.nav-label{font-size:14px;margin-left:50px}.visit{font-size:14px;border:1px solid var(--line);padding:10px 18px;border-radius:6px}.visit:hover{background:#f5f5f5}.intro{text-align:center;padding:55px 24px 18px}.eyebrow{text-transform:uppercase;font:12px var(--rv-font-mono);letter-spacing:.08em;display:flex;gap:13px;justify-content:center;align-items:center;color:var(--muted)}.eyebrow span{width:3px;height:3px;background:#777;border-radius:50%}h1{font:400 clamp(42px,4.7vw,68px)/1.04 var(--rv-font-display);letter-spacing:-.01em;word-spacing:.025em;margin:25px auto 20px}.dek{font-size:18px;line-height:1.5;color:var(--muted);margin:0}.hero-figure{max-width:1152px;margin:20px auto 0;padding:0 24px}.hero{height:410px;position:relative;background:radial-gradient(ellipse 44% 46% at 50% 52%,rgb(0 0 0 / .075) 0%,rgb(0 0 0 / .045) 30%,rgb(0 0 0 / .015) 62%,transparent 100%);border-radius:8px;touch-action:pan-y;overflow:hidden;cursor:crosshair}.hero canvas{display:block;width:100%;height:100%}.hero-note{position:absolute;left:25px;top:44%;display:flex;flex-direction:column;gap:5px;pointer-events:none}.micro{font:12px/1.5 var(--rv-font-mono);color:var(--muted)}.hero-signature{position:absolute;right:25px;bottom:48px;font:10px/1.5 var(--rv-font-mono);letter-spacing:.08em;color:#888;pointer-events:none}.loading{position:absolute;inset:0;display:grid;place-items:center;color:var(--muted);font-size:14px;pointer-events:none}.loading[hidden]{display:none}.hero-controls{display:flex;justify-content:space-between;align-items:center;padding:16px 0 12px;border-bottom:1px solid var(--line)}.replay{border:0;background:none;font-size:13px;color:var(--muted);padding:10px 4px}.replay span{font-size:18px;margin-left:8px}figcaption{font-size:12px;line-height:1.6;color:#666;display:flex;justify-content:space-between;gap:20px;padding-top:12px}.byline{max-width:768px;margin:44px auto 0;display:flex;align-items:center;gap:16px;padding-bottom:34px;font-size:13px}.byline strong{font-size:14px;font-weight:500}.byline div{display:flex;flex-direction:column;gap:5px}.byline div span{color:var(--muted)}.reading-time{margin-left:auto;color:var(--muted)}.reading-time span{margin:0 8px}.article-layout{max-width:1152px;margin:58px auto 100px;display:grid;grid-template-columns:230px minmax(0,704px);gap:50px;padding:0 24px}.article-layout aside{position:sticky;top:40px;align-self:start;padding-top:10px}.article-layout nav{display:flex;flex-direction:column;gap:17px;margin:25px 0 30px;font-size:13px;color:#6f6f6f}.article-layout nav a{line-height:1.45}.article-layout nav a.active{color:#171717;font-weight:500}.source-link{font-size:12px;border-bottom:1px solid #aaa;padding-bottom:3px}.article-kicker{font:12px var(--rv-font-mono);color:var(--muted);margin:8px 0 22px}article h2{font:400 39px/1.13 var(--rv-font-display);letter-spacing:0;margin:0 0 25px}article p{font-size:17px;line-height:1.75;color:#414141;margin:0 0 23px}article .lead{font-size:21px;line-height:1.5;color:#262626}article section{scroll-margin-top:40px;margin-bottom:72px}article strong{font-weight:550}blockquote{font:400 29px/1.3 var(--rv-font-display);letter-spacing:-.01em;margin:36px 0;padding:6px 0 6px 25px;border-left:2px solid #8a9b88}.section-number{font:12px var(--rv-font-mono);color:#777;letter-spacing:.04em;margin:0 0 20px}.architecture{margin:32px 0;display:flex;align-items:center;flex-wrap:wrap;border:1px solid var(--line);border-radius:8px;padding:26px 22px;background:#fafafa}.flow-node{display:flex;flex-direction:column;gap:12px;flex:1}.flow-node>span{font:11px ReveSansMono;color:#888}.flow-node strong{font-size:17px}.flow-node small{font-size:12px;color:#666}.flow-line{width:24px;height:1px;background:#ccc;margin:0 16px}.architecture figcaption{width:100%;border-top:1px solid var(--line);margin-top:24px;padding-top:15px;font-size:12px}.pipeline{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:30px 0;padding:23px 18px;border-block:1px solid var(--line);font:13px var(--rv-font-mono)}.pipeline b{font-weight:400;color:#999}.editorial-note{display:flex;align-items:flex-start;gap:18px;background:#f6f6f4;padding:22px 24px;border-radius:6px;margin:32px 0}.editorial-note p{font-size:13px;line-height:1.6;margin:0}.editorial-note img{margin-top:3px;opacity:.6}.end-mark{margin-top:35px}.report-link{border-top:1px solid var(--line);padding-top:32px;display:flex;gap:28px;align-items:center}.report-link h3{font:25px/1.2 ReveDisplay;margin:12px 0}.report-link p{font-size:13px;margin:0}.report-link a{font-size:13px;border:1px solid #ccc;border-radius:5px;padding:12px 16px;white-space:nowrap}footer{border-top:1px solid var(--line);margin:0 48px;min-height:130px;display:flex;align-items:center;justify-content:space-between;font-size:13px;color:var(--muted)}footer .wordmark{color:var(--ink)}.skip{position:absolute;left:15px;top:-100px;padding:15px;background:white;z-index:10}.skip:focus{top:10px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(min-width:1500px){.intro{padding-top:65px}.hero{height:470px}}
@media(max-width:900px){.site-header{margin:0 24px}.article-layout{grid-template-columns:1fr;max-width:752px;gap:0}.article-layout aside{position:static;border-bottom:1px solid var(--line);padding-bottom:25px;margin-bottom:35px}.article-layout nav{flex-direction:row;flex-wrap:wrap;gap:14px 20px;margin:15px 0 22px}.article-layout nav a{padding:0;border:0}.article-layout nav a.active{border:0}.byline{margin-inline:32px}.hero-note{left:12px}.hero-signature{right:12px}.hero{height:370px}}
@media(max-width:600px){.site-header{height:72px;margin:0 20px}.wordmark{font-size:31px}.nav-label{margin-left:0;font-size:12px}.visit{display:none}.intro{padding-top:36px}.eyebrow{font-size:10px;gap:9px}h1{font-size:43px;margin:23px 0 18px}.dek{font-size:16px}.hero-figure{margin-top:12px;padding:0 18px}.hero{height:310px}.hero-note{top:auto;bottom:8px;left:2px;flex-direction:row;gap:4px}.hero-note .micro{font-size:10px}.hero-signature{display:none}.hero-controls{padding:11px 0 8px;gap:0}.hero-controls .micro{font-size:10px}.replay{font-size:0;padding:12px}.replay span{font-size:22px;margin:0}figcaption{flex-direction:column;gap:3px;font-size:11px;padding-top:9px}.byline{margin:28px 20px 0;padding-bottom:24px;gap:11px;font-size:11px}.byline strong{font-size:13px}.reading-time{font-size:11px;max-width:75px;line-height:1.7;text-align:right}.reading-time span{display:none}.article-layout{margin-top:32px;padding:0 22px;margin-bottom:65px}.article-layout nav{font-size:12px}.article-layout aside>.micro{font-size:11px}article h2{font-size:33px}article p{font-size:16px}article .lead{font-size:20px}blockquote{font-size:25px;padding-left:18px}.architecture{padding:18px 14px}.flow-node strong{font-size:13px}.flow-node small{font-size:11px}.flow-line{width:12px;margin:0 8px}.pipeline{font-size:11px;gap:6px;padding-inline:8px}.report-link{flex-direction:column;align-items:flex-start}.editorial-note{padding:18px}footer{margin:0 22px;gap:20px;min-height:120px}footer>span:not(.wordmark){display:none}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
.report-button{display:inline-flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:11px 14px;border:1px solid var(--line);border-radius:6px;background:#fff;font-size:13px;line-height:1.4}
.report-button:hover{background:#f5f5f5;border-color:#aaa}
/* Source report typesetting. */
.intro h1{max-width:1050px}.intro .dek{max-width:850px;margin-inline:auto}.dek em{font-style:normal}.site-header .nav-label{margin-left:0}.site-header .nav-label strong{font-weight:400}.article-layout{grid-template-columns:230px minmax(0,1fr)}article{min-width:0}article h3,article h4{font-family:var(--rv-font-display);font-size:25px;line-height:1.25;font-weight:400;margin:34px 0 20px}article ul,article ol{padding-left:24px;color:#414141;font-size:17px;line-height:1.75;margin-bottom:24px}article li{margin-bottom:12px}article a{color:inherit;text-decoration:underline;text-decoration-color:#aaa;text-underline-offset:3px}article code{font:13px/1.6 var(--rv-font-mono);overflow-wrap:anywhere}article p code,article li code{background:#f3f3f3;border-radius:3px;padding:2px 4px}.code{max-width:100%;overflow-x:auto;padding:20px;background:#f7f7f7;border:1px solid var(--line);border-radius:6px;margin:26px 0;white-space:pre}.code code{overflow-wrap:normal}.table-scroll{max-width:100%;overflow-x:auto;margin:28px 0}table{width:100%;border-collapse:collapse;font-size:13px;line-height:1.5}th,td{text-align:left;vertical-align:top;padding:12px;border-bottom:1px solid var(--line);min-width:110px}th{background:#f5f5f5;font-weight:500}.equation{overflow-x:auto;overflow-y:hidden;max-width:100%;padding:16px 0;margin:20px 0}.article-layout aside{max-height:calc(100vh - 70px);overflow-y:auto;padding-right:8px}.article-layout nav{gap:14px;margin-top:8px}footer{min-height:100px}
@media(max-width:900px){.article-layout{grid-template-columns:1fr}.article-layout aside{max-height:none;overflow:visible}}
@media(max-width:600px){.intro h1{font-size:38px;line-height:1.08}.intro .dek{font-size:16px}.article-layout nav{font-size:12px}article h3,article h4{font-size:23px}article ul,article ol{font-size:16px}.katex{font-size:1em}th,td{padding:10px;min-width:100px}}


/* ---- Body ported from the technical-report-wireframes design project ---------------------
   Font aliases so ported markup can use the wireframe's token names verbatim. */
:root{--font-ui:var(--rv-font-sans);--font-display:var(--rv-font-display);--font-mono:var(--rv-font-mono);
--w-ink:#000;--w-ink-2:rgba(0,0,0,.54);--w-ink-3:rgba(0,0,0,.4);--w-line:#D6D6D6;--w-line-soft:#F0F0F0;--w-surface:#FAFAFA;--w-box:#fff;--w-arrow:rgba(0,0,0,.45)}

/* Measure: the wireframe is a 640px paper column, not an 824px blog column. The 16px body
   type below is set for that measure -- the two have to move together. */
.article-layout{grid-template-columns:230px minmax(0,690px)}
article{min-width:0;max-width:640px}

/* Section rhythm: one 16px gap between every block child, instead of per-element margins. */
article section{display:flex;flex-direction:column;gap:16px;padding-top:64px;margin-bottom:0;scroll-margin-top:40px}
article section:first-of-type{padding-top:0}
article section>*{margin-block:0}
article p{font-size:16px;line-height:1.5;color:var(--w-ink);margin:0;text-wrap:pretty}
article .lead{font-size:16px;line-height:1.5;color:var(--w-ink)}
article h2{font:500 24px/1.2 var(--font-display);letter-spacing:0;margin:0;text-wrap:balance}
article h3,article h4{font:500 18px/1.3 var(--font-ui);margin:16px 0 0;text-wrap:balance}
.section-number{font:12px var(--font-mono);color:var(--w-ink-3);letter-spacing:0;margin:0}
article :is(h2,h3,h4,h5,h6) .section-number{font:inherit}

/* Numbered lists get the wireframe's mono gutter. */
article ol{list-style:none;padding-left:0;margin:0;display:flex;flex-direction:column;gap:12px;counter-reset:goal}
article ol>li{counter-increment:goal;display:grid;grid-template-columns:24px minmax(0,1fr);gap:8px;margin:0;font-size:16px;line-height:1.5}
article ol>li::before{content:counter(goal) ".";font:12px/24px var(--font-mono);color:var(--w-ink-3)}
article ol>li em{font-style:normal;font-weight:500}
article ul{padding-left:24px;margin:0;font-size:16px;line-height:1.5;color:var(--w-ink)}
article li{margin-bottom:0}

/* Code: no border, lighter ground, 12px mono. Trailing "# ..." comments dim like the wireframe. */
.code{width:100%;max-width:100%;min-width:0;overflow-x:auto;background:var(--w-surface);border:0;border-radius:12px;padding:16px;margin:0;white-space:pre}
.code code{display:block;width:max-content;min-width:100%;font:12px/1.6 var(--font-mono);overflow-wrap:normal}
.code .cmt{color:var(--w-ink-3)}
.citation-code{white-space:pre-wrap;overflow-wrap:anywhere}
.citation-code code{overflow-wrap:anywhere}
/* The wireframe has no inline code at all (it rewrote those sentences); report.md does, so keep
   the distinction but drop the chip, which reads heavy at 16px. */
article p code,article li code,article td code{background:none;padding:0;font-family:var(--font-mono);font-size:.9em}

/* Tables: no header fill, heavier rule under the header, and flush to both edges of the measure. */
.table-scroll{max-width:100%;overflow-x:auto;margin:0}
table{width:100%;min-width:600px;border-collapse:collapse;font-size:12px;line-height:1.4}
th,td{text-align:left;vertical-align:top;padding:12px 12px 12px 0;border-bottom:1px solid var(--w-line-soft);min-width:0}
th{padding:10px 12px 10px 0;background:none;font-weight:500;border-bottom:1px solid var(--w-line)}
th:last-child,td:last-child{padding-right:0}

/* Figures. */
article figure{margin:0;display:flex;flex-direction:column;gap:8px}
article figure.table-figure{gap:12px}
article .diagram-frame{background:var(--w-surface);border-radius:16px;padding:24px;overflow-x:auto}
article .diagram-frame>svg{min-width:520px}
article figcaption{display:block;font-size:12px;line-height:1.5;color:var(--w-ink-2);padding-top:0;gap:0}
article figcaption b{font-weight:500;color:var(--w-ink)}

/* Equations sit on the same ground as the diagrams. */
.equation{overflow-x:auto;overflow-y:hidden;max-width:100%;background:var(--w-surface);border-radius:16px;padding:24px;margin:0}

/* Diagram theming. These override the literal presentation attributes baked into the SVGs. */
.diagram-frame .dg-box{fill:var(--w-box);stroke:var(--w-line)}
.diagram-frame .dg-frame{stroke:var(--w-line)}
.diagram-frame .dg-wire{stroke:var(--w-arrow)}
.diagram-frame .dg-head{fill:var(--w-arrow)}
.diagram-frame .dg-label{fill:var(--w-ink)}
.diagram-frame .dg-edge{fill:var(--w-ink-2)}

/* Observability figure (HTML, so it reflows). */
.ob-stack{display:flex;flex-direction:column;gap:10px;font-family:var(--font-ui)}
.ob-band{display:flex;flex-direction:column;gap:10px}
.ob-band-t{font-size:13px;font-weight:500}
.ob-row{display:grid;gap:10px}
.ob-row-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.ob-row-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.ob-group{border:1px solid var(--w-line);border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:8px}
.ob-group-t{font-size:12px;font-weight:500;color:var(--w-ink-2)}
.ob-chip{display:block;background:var(--w-box);border:1px solid var(--w-line);border-radius:8px;padding:8px 10px;font-size:12.5px;font-weight:500;line-height:1.3;text-align:center}
.ob-down{align-self:center;display:block}

/* Contributors. */
.contrib{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px 24px;font-size:14px;line-height:1.4;padding-top:8px}

/* Rail numerals. */
.article-layout nav a{display:flex;gap:10px}
.article-layout nav a i{font:12px var(--font-mono);font-style:normal;color:var(--w-ink-3);flex:none}

article a{color:inherit;text-decoration:underline;text-decoration-color:var(--w-line);text-underline-offset:3px}
article a:hover{color:var(--w-ink-2)}

/* Re-assert the stacked layout above; the base rule in this block would otherwise win on
   specificity ties against the earlier max-width:900px query. */
@media(max-width:900px){
  .article-layout aside{display:none}
  .article-layout{grid-template-columns:minmax(0,1fr)}
  article{max-width:none}
}
@media(max-width:600px){
  .article-layout{grid-template-columns:minmax(0,1fr)}
  article{max-width:none}
  article section{padding-top:44px;gap:14px}
  article h2{font-size:22px}
  article h3,article h4{font-size:17px}
  article .diagram-frame{padding:16px;overflow-x:hidden}
  article .diagram-frame>svg{width:100%;max-width:100%;min-width:0;height:auto}
  .ob-row-4,.ob-row-3{grid-template-columns:repeat(2,minmax(0,1fr))}
}

.header-links{display:flex;align-items:center;gap:28px;font-size:14px}
.header-links a{padding:12px 0}
.header-links a:hover{text-decoration:underline;text-underline-offset:4px}
.site-footer{display:block;min-height:0;margin:0;padding:32px;border:0;background:#fff}
.footer-inner{max-width:1280px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:32px}
.site-footer ul{display:flex;align-items:center;gap:32px;list-style:none;margin:0;padding:0}
.footer-links a{color:#434343;font-size:14px;font-weight:500;white-space:nowrap}
.footer-links a:hover{text-decoration:underline;text-underline-offset:3px}
.site-footer .footer-mobile-link{display:none}
.footer-meta{display:flex;align-items:center;gap:32px}
.footer-copyright{margin:0;color:#a5a5a5;font-size:14px;line-height:1.5;white-space:nowrap}
.footer-socials a{display:flex;align-items:center;justify-content:center;min-height:32px;color:#a5a5a5}
.footer-socials a:hover{color:#434343}
.footer-socials svg{display:block;width:20px;height:20px}
@media(max-width:1150px){
  .footer-inner{flex-direction:column;gap:12px}
  .site-footer ul{gap:16px}
  .footer-links{justify-content:center;flex-wrap:wrap}
  .footer-links a{font-size:12px;line-height:24px}
  .site-footer .footer-mobile-link{display:list-item}
  .footer-meta{gap:16px;justify-content:center;flex-wrap:wrap}
  .footer-copyright{order:2;font-size:12px;white-space:normal;max-width:110px}
}
.hero-actions{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:12px;margin:24px auto 0;padding:0 24px}

/* Original Layout Bet video, re-encoded for an inline blog preview. */
article .layout-film{margin-top:28px}
article .layout-film figcaption{display:block;text-align:center;font-size:12px;line-height:1.5;color:var(--muted)}
.layout-replay{border:0;background:none;padding:0;font:inherit;color:inherit;text-decoration:underline;text-underline-offset:2px;cursor:pointer}
.layout-replay:hover{color:var(--ink)}
.layout-video{display:block;width:100%;height:auto;border-radius:3px;background:#f5f4f7;pointer-events:none}

/* Match the article's measure, including its sidebar offset on desktop. */
@media screen{
  .byline{width:calc(100% - 48px);max-width:704px;margin-inline:auto}
}
@media screen and (min-width:901px){
  /* Equal air either side of the contents column: 38px page gutter, 38px grid gap.
     The byline offset tracks it -- 38 + 230 + 38 to the article's left edge. */
  .article-layout{padding-inline:38px;gap:38px}
  .byline{width:calc(100% - 344px);max-width:640px;margin-left:calc(max(0px, (100% - 1152px) / 2) + 306px);margin-right:0}
}

/* A centered 640px article needs 306px on either side for the rail and gutters:
   640 + 2 * (38 + 230 + 38) = 1252px. Below that, keep the desktop rail visible.
   Wider screens reveal it on scroll; below 901px the mobile layout omits the rail. */
@media screen and (min-width:1253px){
  .article-layout aside{
    opacity:0;
    visibility:hidden;
    transform:translateY(14px);
    transition:opacity .62s cubic-bezier(.22,.61,.36,1),transform .62s cubic-bezier(.22,.61,.36,1),visibility 0s .62s;
  }
  .article-layout aside.is-revealed{
    opacity:1;
    visibility:visible;
    transform:none;
    transition:opacity .62s cubic-bezier(.22,.61,.36,1),transform .62s cubic-bezier(.22,.61,.36,1),visibility 0s;
  }
}
@media screen and (max-width:600px){
  .byline{width:calc(100% - 44px)}
}

/* Numbered scholarly references, in the same measure as the article. */
article a.reference-callout{white-space:nowrap;font-size:.85em;color:var(--w-ink-2);text-decoration:none}
article a.reference-callout:hover{text-decoration:underline;color:var(--ink)}
article a.code-reference-callout{margin-left:.18em;font-family:var(--font-mono);font-size:.72em;letter-spacing:-.02em}
article .reference-list{gap:20px;padding:0;list-style:none}
article .reference-list>li{display:grid;grid-template-columns:34px minmax(0,1fr);gap:8px;font-size:14px;line-height:1.55;scroll-margin-top:48px;counter-increment:none}
article .reference-list>li::before{content:none}
article .reference-list>li em{font-style:italic;font-weight:400}
article a.reference-number{align-self:start;justify-self:start;color:var(--muted);font-variant-numeric:tabular-nums;text-decoration:none}
article a.reference-number:hover{text-decoration:underline;color:var(--ink)}
.reference-callout{scroll-margin-top:100px}
article a.reference-callout:target{background:var(--w-surface);outline:4px solid var(--w-line);border-radius:2px}
.reference-url{overflow-wrap:anywhere;color:var(--muted)}
article .reference-list>li:target{background:#f7f6f4;outline:8px solid #f7f6f4;border-radius:2px}

/* Reve's adaptive neutral palette, following the reader's system setting. Media assets
   retain their colors. */
@media(max-width:600px){.header-links{gap:18px}}
@media screen{
  :root[data-theme="light"]{color-scheme:light}
  :root[data-theme="dark"]{
    color-scheme:dark;
    --ink:var(--rv-color-gray-950);
    --muted:var(--rv-color-gray-700);
    --line:var(--rv-color-gray-300);
    --w-ink:var(--rv-color-gray-800);
    --w-ink-2:var(--rv-color-gray-700);
    --w-ink-3:var(--rv-color-gray-600);
    --w-line:var(--rv-color-gray-300);
    --w-line-soft:var(--rv-color-gray-200);
    --w-surface:var(--rv-color-gray-100);
    --w-box:var(--rv-color-gray-200);
    --w-arrow:var(--rv-color-gray-600);
  }
  html[data-theme="dark"] body,html[data-theme="dark"] .site-footer,html[data-theme="dark"] .skip{background:var(--rv-color-gray-50)}
  html[data-theme="dark"] .hero{background:radial-gradient(ellipse 44% 46% at 50% 52%,rgb(255 255 255 / .09) 0%,rgb(255 255 255 / .055) 30%,rgb(255 255 255 / .018) 62%,transparent 100%)}
  html[data-theme="dark"] .report-button{background:var(--rv-color-gray-50)}
  html[data-theme="dark"] .report-button:hover{background:var(--rv-color-gray-100);border-color:var(--rv-color-gray-500)}
  html[data-theme="dark"] .article-layout nav{color:var(--muted)}
  html[data-theme="dark"] .article-layout nav a.active{color:var(--ink);font-weight:500}
  html[data-theme="dark"] article ol{color:var(--w-ink)}
  html[data-theme="dark"] article a{text-decoration-color:var(--rv-color-gray-500)}
  html[data-theme="dark"] article a:hover{color:var(--ink)}
  html[data-theme="dark"] .byline>img{filter:invert(1);opacity:.9}
  html[data-theme="dark"] .layout-video{background:var(--w-surface)}
  /* Static diagrams sit on the page with a hairline frame instead of a grey card, which kept their
     ink too dim; the animated figures stay on their white cards, so the two kinds still read apart. */
  html[data-theme="dark"] article .diagram-frame{background:none;box-shadow:inset 0 0 0 1px var(--rv-color-gray-300);--w-ink:var(--rv-color-gray-950);--w-ink-2:var(--rv-color-gray-800);--w-line:var(--rv-color-gray-500);--w-box:var(--rv-color-gray-100);--w-arrow:var(--rv-color-gray-700)}
  html[data-theme="dark"] .footer-links a{color:var(--rv-color-gray-800)}
  html[data-theme="dark"] .footer-copyright,html[data-theme="dark"] .footer-socials a{color:var(--rv-color-gray-700)}
  html[data-theme="dark"] .footer-socials a:hover{color:var(--ink)}
  html[data-theme="dark"] article .reference-list>li:target{background:var(--w-surface);outline-color:var(--w-surface)}
  html[data-theme="dark"] :is(button,a,.hero):focus-visible{outline-color:var(--rv-color-gray-800)}
  html[data-theme="dark"] ::selection{background:var(--rv-color-gray-300);color:var(--rv-color-gray-950)}
}

@media print{:root[data-theme]{color-scheme:light}}

/* ---- "This version" spec, Figma "Home Page Branches" node 2110:10271 -------------------------
   Header through the image slot only; everything after the image keeps the styles above.
   The frame is a 1440x2225 light board. These tokens carry the spec's literal values and flip
   to the existing gray ramp in dark mode, which the frame does not cover. */
:root{--v2-ink:#000;--v2-line:#d6d6d6;--v2-nav:rgb(0 0 0 / .7)}
@media screen{
  :root[data-theme="dark"]{
    --v2-ink:var(--rv-color-gray-950);
    --v2-line:var(--rv-color-gray-300);
    --v2-nav:var(--rv-color-gray-700);
  }
}

/* 1. Header: 70px tall, 16/24 padding, a 38px row, logo left and pill nav right. */
.site-header{height:70px;margin:0;padding:16px 24px;display:block;border:0}
.site-header-row{height:38px;display:flex;align-items:center;justify-content:space-between}
.site-header .wordmark{font:500 24px/1.2 var(--font-display);letter-spacing:0}
.header-links{gap:8px;align-items:center}
.header-links a{
  display:inline-flex;
  align-items:center;
  height:32px;
  padding:8px 12px;
  border:0;
  border-radius:9999px;
  font:500 14px/1.5 var(--font-ui);
  color:var(--v2-nav);
}
.header-links a:hover{text-decoration:none;background:rgb(0 0 0 / .04)}
@media screen{html[data-theme="dark"] .header-links a:hover{background:var(--rv-color-gray-100)}}

/* 2. Main column: 909px centered, top edge 217px down the page (70px header + 147px), with a
      64px rhythm between blocks. */
.lede{
  max-width:909px;
  margin:0 auto;
  padding:147px 24px 0;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:64px;
}

/* 2a. Title block. */
.lede .intro{width:100%;max-width:637px;padding:0;text-align:center}
.lede .intro h1{font:400 60px/1.2 var(--font-display);letter-spacing:.6px;margin:0;max-width:none}
.lede .intro .dek{font:400 16px/1.5 var(--font-ui);letter-spacing:.064px;margin:16px auto 0;max-width:none;color:var(--v2-ink)}

/* 2b. Hero: spacing only. The collage is a canvas sized from its box, so it keeps the height it
       already had -- the frame sets no size and leaves it to be tuned on sight. */
.lede .hero-figure{width:100%;max-width:none;margin:0;padding:0}
/* The hero takes its height from its own width instead of stepping between fixed pixel heights,
   so the cloud, the butterfly and the tiles stay in proportion at any screen size. 2.1 is the
   861 x 410 it has at the 1440 design width. Mobile may want its own ratio. */
.lede .hero{height:auto;aspect-ratio:2.1}
/* The starting cloud paints on a surface larger than the hero box, so the box must not clip it;
   hero.js sets the canvas offset and size, stopping at the window edge. overflow-x only absorbs
   the rounding slop at that edge -- it is not what bounds the cloud. */
.hero{overflow:visible}
.hero canvas{position:absolute;width:auto;height:auto}
main{overflow-x:clip}

/* 2c. Byline over the two actions, 542px, centered. */
.masthead{width:100%;max-width:542px;display:flex;flex-direction:column;align-items:center;gap:8.5px}
.masthead .byline{
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  text-align:center;
  font:400 14px/1.5 var(--font-ui);
  letter-spacing:.084px;
  color:var(--v2-ink);
  gap:5px;
}
.masthead .byline-team{font-size:18px;font-weight:500}
.masthead .byline-team strong{font-size:inherit}
.masthead .byline-credit{font-size:12px;font-weight:400}
.masthead .byline-credit strong{font-size:inherit;font-weight:500}
.masthead .hero-actions{margin:0;padding:0;gap:12px;flex-wrap:nowrap}
.masthead .report-button{
  min-height:0;
  padding:8px 16px;
  border:1px solid var(--v2-line);
  border-radius:9999px;
  background:none;
  font:400 14px/1.5 var(--font-ui);
  letter-spacing:.084px;
  color:var(--v2-ink);
  white-space:nowrap;
}
.masthead .report-button:hover{background:rgb(0 0 0 / .04);border-color:var(--v2-line)}
@media screen{html[data-theme="dark"] .masthead .report-button:hover{background:var(--rv-color-gray-100)}}

/* 2d. Body + image slot: a 637px measure centered in the 909px column, text set left. 64px below
       the masthead keeps the column's rhythm. */
.article-layout{display:block;max-width:909px;margin:64px auto 100px;padding-inline:24px;gap:0}
.article-layout>article{max-width:637px;margin:0 auto;text-align:left}
article p,article .lead{font-size:16px;line-height:1.4}
article ul,article ol,article ol>li{line-height:1.4}
/* 16px between paragraphs plus 16px here makes the spec's 32px before the image. */
article .layout-film{margin-top:16px}
/* The image slot is 637x449 in the frame; as a ratio it holds that crop as the measure narrows. */
.layout-video{width:100%;height:auto;aspect-ratio:637/449;object-fit:cover;border-radius:2px}

/* The contents rail no longer takes a grid column, so it rides in the left margin instead. */
.catalog-trigger{display:none}
@media screen and (min-width:1150px){
  .article-layout aside{
    position:fixed;
    top:40px;
    left:max(24px,calc(50% - 572.5px));
    width:230px;
    max-height:calc(100vh - 80px);
    padding-top:0;
    opacity:0;
    visibility:hidden;
    transform:translateY(14px);
    pointer-events:none;
    transition:opacity .32s ease,transform .32s ease,visibility 0s .32s;
  }
  .article-layout aside.is-revealed{
    opacity:1;
    visibility:visible;
    transform:none;
    pointer-events:auto;
    transition:opacity .32s ease,transform .32s ease,visibility 0s;
  }
}
@media screen and (max-width:1149px){
  .catalog-trigger{
    position:fixed;
    z-index:31;
    top:16px;
    right:auto;
    left:16px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:var(--rv-button-height-medium);
    height:var(--rv-button-height-medium);
    padding:0;
    border:1px solid var(--line);
    border-radius:999px;
    background:Canvas;
    color:var(--ink);
    box-shadow:0 4px 18px rgb(0 0 0 / .08);
    opacity:0;
    visibility:hidden;
    transform:translateY(-8px);
    pointer-events:none;
    transition:opacity .2s ease,transform .2s ease,visibility 0s .2s;
  }
  .catalog-trigger.is-revealed{
    opacity:1;
    visibility:visible;
    transform:none;
    pointer-events:auto;
    transition:opacity .2s ease,transform .2s ease,visibility 0s;
  }
  .article-layout aside{
    display:block;
    position:fixed;
    z-index:30;
    top:62px;
    right:auto;
    left:16px;
    width:min(290px,calc(100vw - 32px));
    max-height:calc(100vh - 78px);
    overflow-y:auto;
    margin:0;
    padding:16px;
    border:1px solid var(--line);
    border-radius:14px;
    background:Canvas;
    box-shadow:0 12px 38px rgb(0 0 0 / .14);
    opacity:0;
    visibility:hidden;
    transform:translateY(-8px);
    pointer-events:none;
    transition:opacity .18s ease,transform .18s ease,visibility 0s .18s;
  }
  .article-layout aside.is-open{
    opacity:1;
    visibility:visible;
    transform:none;
    pointer-events:auto;
    transition:opacity .18s ease,transform .18s ease,visibility 0s;
  }
  .article-layout aside nav{margin:0}
}

@media screen and (max-width:900px){
  .lede{padding-top:72px;gap:48px}
  .lede .intro h1{font-size:44px}
  .article-layout{margin-top:48px}
}
@media screen and (max-width:600px){
  .site-header{height:auto;padding:12px 20px}
  .lede{padding:48px 20px 0;gap:36px}
  .lede .intro h1{font-size:38px;line-height:1.08}
  .masthead .hero-actions{flex-wrap:wrap;justify-content:center}
  .article-layout{padding-inline:20px}
  .code{padding:14px}
}
