/* ============================================================================
   oculus · post.css
   One post, read on paper, in one of three templates: print, tiles, focus.
   Loaded after pages.css; reuses its tokens, mast, hero, chapters, plates,
   folio, beam, colophon and footer. Everything continuous moves by transform,
   opacity or clip-path; the picture entrances draw on a canvas.
   ========================================================================== */

/* ------------------------------------------------------------- shared -- */
/* Source pictures for the canvases and the tiles are never displayed; site.css
   gives every plate image display: block, which would beat the hidden attribute. */
[hidden] { display: none !important; }
.pg-title--post .hero__h { max-width: 24ch; font-size: clamp(2rem, 1rem + 2.6vw, 3.4rem); }
.pg-title--post .hero__deck { max-width: 52ch; }
.post__back { margin: 0 0 var(--sc-5); font-size: var(--sc-t-sm); }
.post__back .link { color: var(--sc-ink-soft); }
.post__meta { margin: var(--sc-2) 0 0; color: var(--sc-ink-soft); font-size: var(--sc-t-sm); letter-spacing: 0.01em; }
.post__meta--hero { margin-top: var(--sc-5); }
.post-ch { position: relative; }
.ch__title--post { margin: 0 0 var(--sc-5); max-width: 24ch; font-size: clamp(1.8rem, 1.2rem + 1.9vw, 3rem); }

/* The article: the site's copy measure, a serif for headings, quiet figures. */
.post-body { max-width: var(--sc-measure); }
.post-body > * + * { margin-top: var(--sc-4); }
.post-body h2 {
  margin: var(--sc-8) 0 0; font-family: var(--sc-font-display); font-weight: 400;
  font-variation-settings: "SOFT" 50, "WONK" 0; font-size: var(--sc-t-xl); line-height: 1.12;
  letter-spacing: -0.008em; text-wrap: balance; max-width: 26ch;
}
.post-body h3 { margin: var(--sc-6) 0 0; font-family: var(--sc-font-display); font-weight: 400; font-size: var(--sc-t-lg); line-height: 1.2; }
.post-body h2 + p, .post-body h3 + p { margin-top: var(--sc-3); }
.post-body p { max-width: var(--sc-measure); text-wrap: pretty; line-height: 1.62; }
.post-body > p:first-of-type:not(.post__back) { font-size: 1.08em; }
.post-body a { color: var(--sc-ink); text-decoration: underline; text-decoration-color: var(--sc-accent); text-underline-offset: 0.22em; }
.post-body a:hover { color: var(--sc-accent); }
.post-body ul, .post-body ol { padding-left: 1.2em; }
.post-body li + li { margin-top: var(--sc-2); }
.post-body hr { border: 0; border-top: 1px solid var(--sc-hairline-strong); margin: var(--sc-7) 0; }
.post-body code { font-family: var(--sc-font-mono); font-size: 0.9em; background: rgba(22, 22, 26, 0.06); padding: 0.1em 0.3em; border-radius: var(--sc-r-sm); }
.post-body pre { overflow-x: auto; padding: var(--sc-4); background: rgba(22, 22, 26, 0.05); border-radius: var(--sc-r-md); font-size: var(--sc-t-sm); }
.post-body .plate { margin: var(--sc-7) 0 0; }
.post-body .plate__frame { aspect-ratio: 16 / 10; }
.post-body .plate__img { width: 100%; height: 100%; object-fit: cover; }
.post-body .plate__cap { max-width: 44ch; }
.post__tags { margin: var(--sc-7) 0 0; color: var(--sc-ink-soft); font-size: 0.74rem; letter-spacing: 0.09em; text-transform: uppercase; }
.post__tags:empty { display: none; }

/* A pull quote tipped in as a white card over the measure's edge. */
.pull--print, .pull--focus {
  position: relative; left: 0; right: auto; bottom: auto;
  margin: var(--sc-7) 0 var(--sc-7) -3rem; padding: var(--sc-5) var(--sc-6);
  width: min(calc(100% + 3rem), 40rem);
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
}
.pull--print p, .pull--focus p { margin: 0; max-width: 34ch; font-size: inherit; line-height: inherit; }
.pull--print p + p, .pull--focus p + p { margin-top: var(--sc-3); }
.post-body blockquote:not(.pull):not(.break) {
  margin: var(--sc-6) 0; padding: 0 0 0 var(--sc-5); border-left: 2px solid var(--sc-accent);
  font-family: var(--sc-font-display); font-style: italic; font-size: var(--sc-t-lg); line-height: 1.3;
}

/* ------------------------------------------------------ light and lines -- */
/* The disc is a moment on a post, not a companion: a template names how much
   of it it wants (post-render sets data-beam-mode; pages.js reads it). */
body[data-beam-mode="off"] .beam { display: none; }
.beam.is-off .beam__disc { opacity: 0 !important; }

/* Every picture in the copy enters with a left-to-right wipe. The clip and
   its leading edge share one registered property, so the edge rides the clip. */
@property --wipe { syntax: '<percentage>'; inherits: true; initial-value: 100%; }
[data-wipe] .plate__frame { --wipe: 100%; clip-path: inset(0 var(--wipe) 0 0); transition: --wipe 1150ms var(--sc-ease-out); }
[data-wipe].is-wiped .plate__frame { --wipe: 0%; }
.plate__edge { position: absolute; top: 0; bottom: 0; right: var(--wipe); width: 2px; background: var(--sc-accent); z-index: 4; pointer-events: none; opacity: 1; transition: opacity 260ms var(--sc-ease-out) 1000ms; }
.is-wiped .plate__edge { opacity: 0; }

/* An offset hairline frame behind each picture and crop marks outside its
   corners: the plate sits on a drafting table, not in a card. */
.plate--framed { position: relative; }
.plate__box { position: relative; }
.plate__box::before { content: ""; position: absolute; left: 14px; top: 14px; width: 100%; height: 100%; border: 1px solid var(--sc-hairline-strong); pointer-events: none; z-index: 0; }
.plate__box > .plate__frame { position: relative; z-index: 1; }
.plate--framed .plate__frame { border-radius: var(--sc-r-sm); }
.mark { position: absolute; width: 11px; height: 11px; border: 0 solid var(--sc-ink-soft); opacity: 0.75; pointer-events: none; z-index: 2; }
.plate__box > .mark { z-index: 3; }
.plate--framed .plate__cap { margin-top: calc(var(--sc-3) + 10px); }
.mark--tl { left: -9px; top: -9px; border-left-width: 1px; border-top-width: 1px; }
.mark--tr { right: -9px; top: -9px; border-right-width: 1px; border-top-width: 1px; }
.mark--bl { left: -9px; bottom: -9px; border-left-width: 1px; border-bottom-width: 1px; }
.mark--br { right: -9px; bottom: -9px; border-right-width: 1px; border-bottom-width: 1px; }
.plate__n, .mono-label { font-family: var(--sc-font-display); font-style: italic; font-variation-settings: "SOFT" 50, "WONK" 0; font-size: 0.95rem; color: var(--sc-ink); margin-right: 0.55em; }
.mono-label { font-family: var(--sc-font-mono); font-style: normal; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sc-ink-soft); }

/* A hairline in the margin that draws as the chapter is read (the engine
   publishes --sc-p on every act, and it inherits). */
.post-ch--line { position: relative; }
.post-ch--line::before { content: ""; position: absolute; left: -1.75rem; top: 0.4rem; width: 1px; height: calc(100% - 0.8rem); background: var(--sc-ink-soft); opacity: 0.55; transform: scaleY(var(--sc-p, 0)); transform-origin: top; pointer-events: none; }
.ch__title--post::before { content: ""; display: block; width: 2.75rem; height: 1px; background: var(--sc-ink); margin-bottom: 1.1rem; }
.pull--print, .pull--focus { position: relative; }
.pull--print::after, .pull--focus::after { content: ""; position: absolute; left: 12px; top: 12px; right: -12px; bottom: -12px; border: 1px solid var(--sc-hairline-strong); pointer-events: none; z-index: -1; }
.pull--print, .pull--focus { isolation: isolate; }

/* Blog index: each post is a link. */
.post__link { display: block; color: inherit; text-decoration: none; }
.post__link:hover .post__h { color: var(--sc-accent); }
.post__link .post__meta { margin-top: var(--sc-2); }

/* While the feed loads, the body is empty and the title reads "Loading". */
body:not(.is-loaded) #post-body { min-height: 30vh; }

/* -------------------------------------------------------------- print -- */
/* The cover develops as a print: a pinned stage, the picture resolving from
   coarse pixels behind a scanning line, the card arriving once it is up. */
.act-print { padding: 0; background: var(--paper-1); }
.print__stage { display: grid; place-items: center; padding: calc(var(--folio-h) * 0) var(--sc-gutter) 0; }
.print__fig {
  position: relative; margin: 0;
  width: min(calc(100vw - 2 * var(--sc-gutter)), 76rem, calc((100svh - 9rem) * 16 / 9));
}
.print__frame { aspect-ratio: 16 / 9; background: var(--paper-3); box-shadow: var(--sc-e3), var(--sc-edge); }
.print__cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.print__src { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.veil--print { opacity: 0.42; }
.print__label {
  position: absolute; right: 0.1rem; top: -1.7rem; margin: 0;
  font-family: var(--sc-font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sc-ink-soft);
  font-variant-numeric: tabular-nums;
}
.print__card { left: -2.5rem; bottom: 2rem; width: min(21rem, 70%); }
/* Construction lines: the frame's top and left edges extend across the stage
   and draw with the act, a rule of ticks along the top. */
.print__ext { position: absolute; pointer-events: none; background: var(--sc-ink-soft); opacity: 0.5; z-index: 0; }
.print__ext--h { right: 100%; left: -100vw; top: -1px; height: 1px; transform-origin: right; transform: scaleX(var(--sc-p, 0)); }
.print__ext--v { bottom: 100%; top: -100vh; left: -1px; width: 1px; transform-origin: bottom; transform: scaleY(var(--sc-p, 0)); }
.print__ext--ticks { right: 100%; left: -100vw; top: -9px; height: 8px; background: repeating-linear-gradient(90deg, var(--sc-ink-soft) 0 1px, transparent 1px 48px); opacity: 0.45; transform-origin: right; transform: scaleX(var(--sc-p, 0)); }
.print__plate { position: absolute; left: 0; top: 100%; margin: 0.7rem 0 0; }
.print__fig > .mark { z-index: 3; }
.focus__row > .mark { z-index: 5; }
.print__card .plate__fig { font-size: 1rem; }

/* Copy in one measure, indented so pictures have a margin on both sides. */
.post-body--print { max-width: var(--sc-measure); }
.plate--margin { width: 100%; }
.plate--margin .plate__frame { aspect-ratio: 4 / 5; }
.plate--framed .plate__frame--drift > .plate__img { position: absolute; left: 0; top: -7%; width: 100%; height: 114%; max-width: none; }
.plate--framed .plate__frame--drift { aspect-ratio: 16 / 10; }
.plate--margin .plate__frame--drift { aspect-ratio: 4 / 5; }
.plate--rail .plate__frame--drift { aspect-ratio: 4 / 5; }
@media (min-width: 1100px) {
  .print__ch .post-ch { margin-left: clamp(0px, 7vw, 9rem); }
  .plate--margin {
    float: right; clear: right; width: clamp(14rem, 19vw, 21rem);
    margin: 0.4rem calc(-1 * (clamp(14rem, 19vw, 21rem) + 2.5rem)) var(--sc-5) var(--sc-6);
  }
  .plate--margin .plate__card { left: -2rem; }
}
@media (min-width: 1300px) {
  .plate--margin-left { float: left; clear: left; margin: 0.4rem var(--sc-6) var(--sc-5) calc(-1 * (clamp(14rem, 19vw, 21rem) - 6rem)); }
}
.post-body--print::after { content: ""; display: block; clear: both; }

/* ---------------------------------------------- tiles (retired key) -- */
/* The title card sits on a paper tray; the cover assembles onto the tray
   from scattered tiles as the reader scrolls, behind the card. */
.pg-tiles { padding: 0; min-height: 0; }
.tiles__stage { display: grid; grid-template-rows: auto 1fr; overflow: clip; }
.tiles__dots { position: absolute; inset: -120px 0; z-index: 0; pointer-events: none; background-image: radial-gradient(circle, rgba(22, 22, 26, 0.16) 0.8px, transparent 1.4px); background-size: 26px 26px; background-position: 13px 13px; will-change: transform; }
.tiles__stage > .mast, .tiles__scene { position: relative; z-index: 1; }
/* the tray's registration cross draws with the act; the tiles land on it */
.tiles__ax { position: absolute; pointer-events: none; background: var(--sc-ink-soft); opacity: 0.5; z-index: 0; }
.tiles__ax--h { top: 50%; left: -100vw; right: -100vw; height: 1px; transform: scaleX(var(--sc-p, 0)); }
.tiles__ax--v { left: 50%; top: -100vh; bottom: -100vh; width: 1px; transform: scaleY(var(--sc-p, 0)); }
.tiles__ax--c { left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border: 1px solid var(--sc-ink-soft); border-radius: 50%; background: none; transform: scale(var(--sc-p, 0)); }
.tiles__marks { position: absolute; right: var(--sc-gutter); top: clamp(0.5rem, 4svh, 2.5rem); width: min(62vw, 66rem, calc((100svh - 13rem) * 16 / 9)); aspect-ratio: 16 / 9; pointer-events: none; z-index: 5; }
.tiles__cap .plate__n { color: var(--sc-ink); }
.tiles__scene { position: relative; z-index: 1; }
.tiles__plate {
  position: absolute; right: var(--sc-gutter); top: clamp(0.5rem, 4svh, 2.5rem);
  width: min(62vw, 66rem, calc((100svh - 13rem) * 16 / 9)); aspect-ratio: 16 / 9;
  overflow: visible; background: transparent; box-shadow: none; border-radius: 0;
}
.tiles__plate::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--paper-1); border-radius: var(--sc-r-sm); box-shadow: var(--sc-e2), var(--sc-edge);
}
.tile {
  position: absolute; z-index: 1; background-repeat: no-repeat;
  will-change: transform, opacity; backface-visibility: hidden; opacity: 0;
}
.veil--tiles { z-index: 3; opacity: 0.32; }
.tiles__card {
  position: absolute; left: var(--sc-gutter); bottom: clamp(1.5rem, 7svh, 4.5rem); z-index: 4;
  width: min(36rem, 62%); padding: var(--sc-6) var(--sc-7);
  color: var(--sc-ink); font-size: var(--sc-t-base); line-height: 1.5; box-shadow: var(--sc-e3), var(--sc-edge);
}
.tiles__h { font-size: clamp(1.7rem, 0.9rem + 2.1vw, 2.9rem); max-width: 18ch; }
.tiles__card .hero__deck { font-size: var(--sc-t-base); max-width: 40ch; margin-top: var(--sc-4) !important; }
.tiles__cap {
  position: absolute; right: var(--sc-gutter); bottom: 1.6rem; z-index: 2; margin: 0;
  max-width: 34ch; text-align: right; font-size: var(--sc-t-xs); color: var(--sc-ink-soft); letter-spacing: 0.01em;
}

/* The spread: copy left, a sticky rail of pictures right, quotes as breaks. */
.spread2 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--sc-6); align-items: start; }
.spread2__copy { grid-column: 1 / 8; }
.spread2__rail { grid-column: 9 / 13; align-self: stretch; }
.spread2__stick { position: sticky; top: clamp(4rem, 14vh, 8rem); }
.plate--rail { margin: 0; }
.plate--rail .plate__frame { aspect-ratio: 4 / 5; }
.plate--rail .plate__cap { max-width: 32ch; }
.spread2__ghost {
  margin: 0; font-family: var(--sc-font-display); font-style: italic; font-variation-settings: "SOFT" 50, "WONK" 0;
  font-size: clamp(8rem, 6rem + 8vw, 15rem); line-height: 1; letter-spacing: -0.03em; color: rgba(22, 22, 26, 0.06); user-select: none;
}
.break {
  margin: var(--sc-7) 0; padding: var(--sc-5) 0; max-width: 30ch;
  border-top: 1px solid var(--sc-hairline-strong); border-bottom: 1px solid var(--sc-hairline);
  font-family: var(--sc-font-display); font-style: italic; font-variation-settings: "SOFT" 50, "WONK" 0;
  font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); line-height: 1.25; letter-spacing: -0.008em; color: var(--sc-ink);
}
.break p { margin: 0; max-width: none; font-size: inherit; line-height: inherit; }
.break p + p { margin-top: var(--sc-3); }
.plate--inline .plate__frame { aspect-ratio: 16 / 10; }

/* -------------------------------------------------------------- focus -- */
/* The cover racks into focus under a paper band that carries the title; the
   page dims a step while the picture sharpens, then the chapters pick up. */
/* The sun parks in the corner and rakes the page: a fixed canvas multiplies
   warm shafts over the paper, cut behind every card and plate (post-fx.js).
   Chapters paint no ground of their own here so the light reaches the whole page. */
.rays { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; mix-blend-mode: multiply; }
.tpl-focus #main { position: relative; z-index: 1; }
.tpl-focus .ground-0, .tpl-focus .ground-1, .tpl-focus .ground-2, .tpl-focus .ground-3 { background: transparent; }
.tpl-focus .focus__ch + .focus__ch, .tpl-focus .frames + .focus__ch { border-top: 1px solid var(--sc-hairline); }
.tpl-focus .folio { --folio-paper: var(--paper-0) !important; }
.focus__arcs { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--sc-ink-soft); stroke-width: 1; opacity: 0.42; pointer-events: none; z-index: 0; }
.focus__arcs circle, .focus__arcs line { stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, (var(--sc-p, 0) - var(--d, 0)) * 1.6, 1)); vector-effect: non-scaling-stroke; }
.pg-focus { padding: 0; background: transparent; }
.tpl-focus body, body.tpl-focus { background: var(--sc-canvas); }
.focus__stage { display: grid; grid-template-rows: auto 1fr; }
.focus__scene {
  position: relative; align-self: center; width: 100%; max-width: var(--sc-maxw); margin-inline: auto;
  padding: clamp(0.5rem, 3svh, 2rem) var(--sc-gutter) clamp(1.5rem, 6svh, 4rem);
}
.focus__row { position: relative; margin-left: clamp(0px, 9vw, 10rem); }
.focus__frame {
  position: relative; aspect-ratio: 21 / 9; max-height: 60svh; width: 100%;
  background: var(--paper-3); box-shadow: var(--sc-e3), var(--sc-edge); overflow: hidden;
}
.focus__cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.focus__src { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.veil--focus { opacity: 0.4; }
.focus__band {
  position: relative; left: auto; right: auto; bottom: auto; z-index: 4;
  width: min(42rem, 84%); margin: -5.5rem 0 0; padding: var(--sc-6) var(--sc-7);
  color: var(--sc-ink); font-size: var(--sc-t-base); box-shadow: var(--sc-e3), var(--sc-edge);
}
.focus__h { font-size: clamp(1.8rem, 0.9rem + 2.3vw, 3.1rem); max-width: 20ch; }
.focus__deck { font-size: var(--sc-t-base); max-width: 44ch; margin-top: var(--sc-4) !important; }
.focus__cap {
  position: absolute; right: 0.25rem; top: 100%; margin: 0.8rem 0 0; z-index: 2;
  max-width: 34ch; text-align: right; font-size: var(--sc-t-xs); color: var(--sc-ink-soft);
}

/* Chapters with their numeral set large in pale ink behind the heading. */
.post-ch--focus { padding-left: clamp(0px, 7vw, 8rem); }
.focus__ghost {
  position: absolute; left: -0.3rem; top: -3.5rem; z-index: 0; margin: 0; pointer-events: none; user-select: none;
  font-family: var(--sc-font-display); font-style: italic; font-variation-settings: "SOFT" 50, "WONK" 0;
  font-size: clamp(9rem, 6rem + 9vw, 16rem); line-height: 1; letter-spacing: -0.03em; color: rgba(22, 22, 26, 0.055); white-space: nowrap;
}
.post-ch--focus > .ch__title, .post-ch--focus > .copy, .post-ch--focus > .colophon, .post-ch--focus > .post__tags { position: relative; z-index: 1; }
.plate--focus .plate__frame { aspect-ratio: 16 / 10; }

/* The frames: every picture in the post on one rail that pans through. */
.frames { padding: 0; }
.frames__stage { display: flex; align-items: center; background: var(--paper-3); }
.tpl-focus .frames__stage, .tpl-focus .frames--sheet .frames__sheet { background: transparent; border-top: 1px solid var(--sc-hairline); border-bottom: 1px solid var(--sc-hairline); }
.frames__rail { display: flex; align-items: center; gap: var(--sc-7); padding: 0 var(--sc-gutter); }
.frame { flex: 0 0 auto; width: clamp(19rem, 31vw, 31rem); margin: 0; }
.frame--head { width: clamp(16rem, 22vw, 21rem); padding-right: var(--sc-4); }
.frame--tail { width: 14rem; }
.frame__k { margin: 0 0 var(--sc-3); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sc-ink-soft); }
.frame__h { margin: 0; font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.4rem); line-height: 1.08; max-width: 12ch; }
.frame__p { margin: var(--sc-4) 0 0; max-width: 24ch; color: var(--sc-ink-soft); font-size: var(--sc-t-sm); line-height: 1.55; }
.frame__plate { aspect-ratio: 4 / 3; box-shadow: var(--sc-e2), var(--sc-edge); }
.frame.plate--framed .frame__plate { margin-top: 10px; }
.frame__plate .plate__img { width: 100%; height: 100%; object-fit: cover; }
.frame__cap { margin-top: var(--sc-3); font-size: var(--sc-t-xs); line-height: 1.5; color: var(--sc-ink-soft); max-width: 36ch; }
.frame__n { display: block; margin-bottom: 0.25rem; font-family: var(--sc-font-mono); font-size: 0.66rem; letter-spacing: 0.12em; color: var(--sc-ink); }
/* Not enough pictures to travel: the same frames as a sheet. */
.frames--sheet .frames__sheet { padding: var(--sc-section) var(--sc-gutter); background: var(--paper-3); }
.frames--sheet .frames__rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--sc-6); padding: 0; max-width: var(--sc-maxw); margin-inline: auto; align-items: start; }
.frames--sheet .frame, .frames--sheet .frame--head { width: auto; }

/* ------------------------------------------------------ reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  .tile { transform: none !important; opacity: 1 !important; }
  .print__label { display: none; }
  .plate__frame[data-wipe] { clip-path: none !important; transition: none; }
  .plate__edge { display: none; }
  .print__ext, .tiles__ax { transform: none !important; }
  .focus__arcs circle, .focus__arcs line { stroke-dashoffset: 0 !important; }
  .post-ch--line::before { transform: none; }
}

/* ---------------------------------------------------------------- 1100 -- */
@media (max-width: 1099.98px) {
  .pg-tiles .tiles__stage, .pg-focus .focus__stage, .print__stage { padding-top: var(--folio-h); }
  .tiles__plate { width: min(66vw, calc((100svh - 15rem) * 16 / 9)); }
  .tiles__card { width: min(30rem, 66%); padding: var(--sc-5) var(--sc-6); }
  .focus__row { margin-left: clamp(0px, 5vw, 4rem); }
  .spread2 { column-gap: var(--sc-5); }
  .spread2__copy { grid-column: 1 / 8; }
  .spread2__rail { grid-column: 8 / 13; }
}

/* ----------------------------------------------------------------- 860 -- */
@media (max-width: 860px) {
  .pg-title--post .hero__h { max-width: none; }
  .post-ch--line::before { display: none; }
  .tiles__marks { position: relative; right: auto; top: auto; width: 100%; aspect-ratio: auto; height: 0; }
  .tiles__marks .mark { display: none; }
  .print__fig { width: 100%; }
  .print__card { left: -0.75rem; bottom: 1rem; width: min(18rem, 78%); }
  .plate--margin { width: 82%; margin-left: auto; }
  .plate--margin-left { margin-left: 0; }

  /* the tiles scene stacks: the tray on top, the card below it, overlapping */
  .tiles__stage { grid-template-rows: auto auto; align-content: start; }
  .tiles__scene { padding: var(--sc-4) var(--sc-gutter) var(--sc-6); }
  .tiles__plate { position: relative; right: auto; top: auto; width: 100%; }
  .tiles__card { position: relative; left: auto; bottom: auto; width: min(100%, 30rem); margin: -2.5rem 0 0 0; }
  .tiles__cap { position: static; text-align: left; margin-top: var(--sc-4); max-width: 44ch; }
  .spread2 { grid-template-columns: 1fr; row-gap: var(--sc-6); }
  .spread2__copy { grid-column: auto; }
  .spread2__rail { grid-column: auto; order: -1; }
  .spread2__stick { position: static; }
  .spread2__ghost { display: none; }
  .plate--rail { width: 88%; margin-left: auto; }
  .plate--rail .plate__frame { aspect-ratio: 4 / 3; }

  .focus__row { margin-left: 0; }
  .focus__band { width: min(100%, 34rem); margin-top: -3rem; padding: var(--sc-5) var(--sc-6); }
  .focus__cap { position: static; text-align: left; margin-top: var(--sc-3); }
  .post-ch--focus { padding-left: 2.5rem; }
  .focus__ghost { font-size: 7rem; top: -2rem; left: -0.4rem; }
  .frame { width: clamp(16rem, 62vw, 24rem); }
  .frame--head { width: clamp(14rem, 50vw, 18rem); }
}

/* ----------------------------------------------------------------- 700 -- */
@media (max-width: 700px) {
  .ch__title--post { font-size: var(--sc-t-xl); }
  .print__label { top: -1.5rem; font-size: 0.62rem; }
  .print__fig { width: 100%; }
  .print__frame { aspect-ratio: 4 / 5; }
  .pull--print, .pull--focus { margin-left: 0; width: 100%; padding: var(--sc-4) var(--sc-5); }
  .tiles__h, .focus__h { font-size: clamp(1.45rem, 1rem + 2.4vw, 1.9rem); }
  .tiles__card, .focus__band { padding: var(--sc-4) var(--sc-5); }
  .tiles__card .hero__deck, .focus__deck { font-size: var(--sc-t-sm); }
  .focus__frame { aspect-ratio: 4 / 3; max-height: 48svh; }
  .focus__band { margin-top: -2rem; }
  .post-ch--focus { padding-left: 1.75rem; }
  .focus__ghost { font-size: 5.5rem; top: -1.6rem; }
  .break { font-size: var(--sc-t-lg); }
}


/* ------------------------------------------------------------- ri (D) -- */
/* Rapid Impact's branding through the rave-flyer lineage. Kallisto and
   General Sans arrive with the template; every other page keeps the site's
   faces. An ink opener, the copy on cream. */
@font-face { font-family: "Kallisto"; src: url("assets/fonts/Kallisto-Heavy.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Kallisto"; src: url("assets/fonts/Kallisto-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Kallisto"; src: url("assets/fonts/Kallisto-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("assets/fonts/GeneralSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
.tpl-ri {
  --ri-ink: #18171C; --ri-ink-2: #1E1D23; --ri-paper: #FCFEED; --ri-lime: #E3F850; --ri-mint: #8DEA9A; --ri-moss: #2d8a4e; --ri-hud: #6EFF82;
  --ri-ash: #5b5b52; --ri-ash-dark: #8A8A93; --ri-line: rgba(24, 23, 28, 0.16); --ri-line-dim: rgba(255, 255, 255, 0.12);
  --ri-display: "Kallisto", "Arial Narrow", system-ui, sans-serif; --ri-body: "General Sans", "Instrument Sans", system-ui, sans-serif;
  background: var(--ri-paper); color: var(--ri-ink);
}
.tpl-ri .ch { background: transparent; }
.tpl-ri .folio { font-family: var(--sc-font-mono); color: var(--ri-ash); }
.tpl-ri .folio__num { font-family: var(--ri-display); font-style: normal; font-weight: 700; color: var(--ri-ink); }
.tpl-ri .folio__sun { stroke: var(--ri-moss); }
.tpl-ri .folio { --folio-paper: var(--ri-paper) !important; }
.pg-ri { padding: 0; }
.ri__stage { display: grid; grid-template-rows: auto auto 1fr; background: var(--ri-ink); color: #F4F4F0; overflow: clip; }
.ri__stage .mast { position: relative; z-index: 3; }
.ri__stage .mast__mark img { filter: invert(1); }
.ri__stage .mast__nav a { font-family: var(--sc-font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: #b7b7b0; }
.ri__stage .mast__nav a:hover, .ri__stage .mast__nav a[aria-current="page"] { color: var(--ri-lime); text-decoration-color: var(--ri-lime); }
.ri__kanji { position: absolute; margin: 0; font-family: var(--ri-display); font-weight: 900; line-height: 0.8; pointer-events: none; user-select: none; white-space: nowrap; }
.ri__kanji--back { right: -4vw; top: 16%; font-size: min(40vw, 540px); color: #fff; opacity: 0.05; z-index: 0; }
.ri__web { position: absolute; left: -4%; top: 32%; width: 108%; height: 62%; z-index: 0; fill: none; stroke: var(--ri-hud); stroke-width: 1; opacity: 0.26; pointer-events: none; }
.ri__web path { stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, (var(--sc-p, 0) - var(--d, 0)) * 1.5, 1)); vector-effect: non-scaling-stroke; }
.ri__dots { position: absolute; width: clamp(120px, 15vw, 220px); height: auto; fill: none; stroke: #fff; stroke-width: 1.2; opacity: 0.32; z-index: 1; pointer-events: none; }
.ri__dots--a { left: 5%; top: 11%; }
.ri__dots--b { right: 7%; bottom: 9%; }
.ri__bar { position: relative; z-index: 3; display: flex; height: 6px; }
.ri__bar i { display: block; height: 100%; }
.ri__bar i:nth-child(1) { flex: 3; background: var(--ri-lime); }
.ri__bar i:nth-child(2) { flex: 1; background: var(--ri-mint); }
.ri__bar i:nth-child(3) { flex: 0.6; background: #F4F4F0; }
.ri__bar i:nth-child(4) { flex: 5; background: var(--ri-ink-2); }
.ri__bar i:nth-child(5) { flex: 1.4; background: var(--ri-hud); opacity: 0.7; }
.ri__bar i:nth-child(6) { flex: 2; background: var(--ri-lime); opacity: 0.5; }
.ri__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; width: 100%; max-width: var(--sc-maxw); margin-inline: auto; padding: clamp(0.5rem, 3svh, 2rem) var(--sc-gutter) clamp(2.5rem, 7svh, 4rem); }
.ri__reg { margin: 0 0 1.2rem; color: var(--ri-ash-dark); }
.ri__reg--br { position: absolute; right: var(--sc-gutter); bottom: 1rem; z-index: 3; margin: 0; }
.ri__back { margin: 0 0 1rem; }
.ri__back .link { color: #b7b7b0; text-decoration-color: var(--ri-lime); }
.ri__h { margin: 0 0 0 -0.03em; font-family: var(--ri-display); font-weight: 900; font-size: clamp(2rem, 4.1vw, 3.9rem); line-height: 0.9; letter-spacing: -0.02em; text-transform: uppercase; color: #F4F4F0; max-width: 15ch; text-wrap: balance; font-variation-settings: normal; }
.ri__grn { background: linear-gradient(93deg, var(--ri-lime) 20%, var(--ri-mint) 110%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ri__deck { margin: 1.3rem 0 0; font-family: var(--ri-body); font-size: clamp(1rem, 1.25vw, 1.15rem); line-height: 1.5; color: #b7b7b0; max-width: 46ch; }
.ri__telem { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 2rem; margin: 1.6rem 0 0; padding-top: 1rem; border-top: 1px solid var(--ri-line-dim); }
.ri__telem dt { color: var(--ri-ash-dark); }
.ri__telem dd { margin: 0.35rem 0 0; font-family: var(--ri-display); font-weight: 900; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 0.9; color: var(--ri-lime); font-variant-numeric: tabular-nums; }
.ri__telem dd small { font-family: var(--sc-font-mono); font-weight: 400; font-size: 0.6rem; letter-spacing: 0.16em; color: var(--ri-ash-dark); margin-left: 0.35rem; text-transform: uppercase; }
.ri__chev { margin: 1.4rem 0 0; font-family: var(--sc-font-mono); font-size: 0.9rem; letter-spacing: 0.35em; color: var(--ri-lime); line-height: 1; }
.ri__meta { margin-top: 1.2rem; color: var(--ri-ash-dark); font-family: var(--ri-body); }
.ri__fig { position: relative; margin: 0; will-change: transform; }
.ri__screen { position: relative; overflow: hidden; background: var(--ri-ink-2); }
.ri__screen--cover { aspect-ratio: 1; width: 100%; max-height: min(62svh, 36rem); margin-inline: auto; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8); }
.ri__screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2; background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0, 0, 0, 0.12) 2px 3px), linear-gradient(180deg, rgba(24, 23, 28, 0.04), rgba(24, 23, 28, 0.26)); }
.ri__cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ri__lbl { position: absolute; left: 10px; bottom: 9px; z-index: 3; color: var(--ri-lime); background: rgba(9, 9, 12, 0.72); padding: 0.24rem 0.5rem; font-size: 0.58rem; margin: 0; }
.ri__tick { position: absolute; width: 10px; height: 10px; border: 1px solid var(--ri-hud); z-index: 3; pointer-events: none; }
.ri__tick--tl { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.ri__tick--tr { top: 6px; right: 6px; border-left: 0; border-bottom: 0; }
.ri__tick--bl { bottom: 6px; left: 6px; border-right: 0; border-top: 0; }
.ri__tick--br { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }
.ri__cap { margin: 0.8rem 0 0; font-family: var(--sc-font-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.7; color: var(--ri-ash-dark); max-width: 46ch; }
/* the copy on cream */
.ri__ch { padding-block: clamp(3rem, 7vw, 5.5rem); }
.ri__ch + .ri__ch { border-top: 1px solid var(--ri-line); }
.ri__body { position: relative; max-width: 70rem; margin-inline: auto; padding-left: clamp(0px, 8vw, 9rem); }
.ri__kanji--ch { right: -1rem; top: -2.5rem; font-size: clamp(6rem, 13vw, 14rem); color: var(--ri-ink); opacity: 0.05; z-index: 0; }
.ri__secn { position: relative; z-index: 1; margin: 0 0 0.8rem; color: var(--ri-moss); }
.ri__h2 { position: relative; z-index: 1; margin: 0 0 1.2rem; font-family: var(--ri-display); font-weight: 700; font-size: clamp(1.5rem, 2.8vw, 2.4rem); line-height: 0.96; letter-spacing: -0.01em; text-transform: uppercase; color: var(--ri-ink); max-width: 22ch; text-wrap: balance; }
.post-body--ri { position: relative; z-index: 1; max-width: 64ch; font-family: var(--ri-body); }
.post-body--ri p { font-family: var(--ri-body); color: var(--ri-ink); font-size: clamp(1rem, 1.05vw, 1.1rem); line-height: 1.6; }
.post-body--ri h3 { font-family: var(--ri-display); font-weight: 700; text-transform: uppercase; font-size: 1.15rem; }
.post-body--ri a { color: var(--ri-moss); text-decoration-color: var(--ri-moss); }
.post-body--ri .plate { margin-top: var(--sc-7); }
.ri__plate .plate__frame { border-radius: 0; box-shadow: none; }
.ri__plate .plate__frame--drift { aspect-ratio: 16 / 10; }
.ri__plate .plate__edge { background: var(--ri-hud); box-shadow: 0 0 10px rgba(110, 255, 130, 0.8); }
.ri__plate .mark { border-color: var(--ri-ash); }
.ri__plate .plate__box::before { border-color: var(--ri-line); }
.tpl-ri .post-body--ri blockquote.ri__brief { position: relative; margin: 2.4rem 0; padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1.4rem, 3vw, 2.4rem) clamp(1.6rem, 3vw, 2.4rem) calc(clamp(1.4rem, 3vw, 2.4rem) + 6px); background: var(--ri-ink); color: #F4F4F0; overflow: hidden; border-left: 0; font-style: normal; }
.ri__brief::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--ri-lime), var(--ri-mint)); }
.ri__brief .brief__k { position: absolute; top: 0.9rem; right: 1rem; color: var(--ri-ash-dark); }
.tpl-ri .post-body--ri blockquote.ri__brief p { margin: 0; color: #F4F4F0; font-family: var(--ri-display); font-weight: 500; font-style: normal; font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.25; max-width: 30ch; }
.ri__brief p + p { margin-top: 0.9rem; }
.ri__chev--end { margin: 2.5rem 0 0; color: var(--ri-moss); font-size: 0.75rem; letter-spacing: 0.2em; }
.tpl-ri .post__tags { color: var(--ri-ash); }
.tpl-ri .post-ch--line::before { background: var(--ri-moss); }
@media (prefers-reduced-motion: reduce) {
  .ri__web path { stroke-dashoffset: 0 !important; }
}
@media (max-width: 860px) {
  .ri__grid { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 1rem; }
  .ri__fig { order: -1; }
  .ri__screen--cover { aspect-ratio: 16 / 10; max-height: 46svh; }
  .ri__h { font-size: clamp(1.9rem, 8vw, 2.8rem); max-width: none; }
  .ri__kanji--back { font-size: 110vw; right: -30%; top: 40%; }
  .ri__reg--br, .ri__dots--b { display: none; }
  .ri__body { padding-left: 0; }
  .ri__kanji--ch { font-size: 6rem; top: -1.5rem; }
}
@media (max-width: 700px) {
  .ri__telem { gap: 1rem; grid-template-columns: repeat(3, 1fr); }
  .ri__telem dd { font-size: 1.3rem; }
  .ri__brief p { font-size: 1.1rem; }
}


/* Planes may hang past the wrap; the chapter clips them sideways (clip, not
   hidden, so the sticky rails inside keep working). */
.print__ch, .win__ch, .focus__ch, .ri__ch, .ri__band, .tiles__ch { overflow-x: clip; }

/* ================================================================ the kit -- */
/* Thin vector planes and type devices shared by the templates (post-kit.js).
   Every piece is a plane: the engine parallaxes the element, CSS turns or
   draws its insides from --sc-p. Strokes are hairlines, never borders. */
.kit { position: absolute; pointer-events: none; fill: none; stroke: var(--sc-ink-soft); stroke-width: 1; vector-effect: non-scaling-stroke; will-change: transform; }
.kit * { vector-effect: non-scaling-stroke; }
.kit-dash { stroke-dasharray: 3 5; }
.kit-dot { fill: var(--sc-ink-soft); stroke: none; }
.kit-fill { fill: var(--sc-accent); fill-opacity: 0.08; }
/* the burst turns with the act; its rings counter-turn */
.kit-burst { width: 60vmin; height: 60vmin; opacity: 0.55; }
.kit-burst__g { transform-origin: 0 0; transform: rotate(calc(var(--sc-p, 0) * 40deg)); }
.kit-burst__rings { transform-origin: 0 0; transform: rotate(calc(var(--sc-p, 0) * -70deg)); }
.kit-target { width: 9rem; height: 9rem; opacity: 0.7; }
.kit-target circle[pathLength] { stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, var(--sc-p, 0) * 2.2, 1)); transform-origin: 0 0; }
.kit-target circle:nth-child(2) { transform: rotate(calc(var(--sc-p, 0) * 120deg)); }
.kit-hex { width: 22rem; height: 16.5rem; opacity: 0.6; }
.kit-hex path, .kit-hex line { stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, (var(--sc-p, 0) - var(--d, 0)) * 1.8, 1)); }
.kit-shards { width: 22rem; height: 13rem; opacity: 0.5; }
.kit-contour { opacity: 0.35; }
.kit-contour path { stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, (var(--sc-p, 0) - var(--d, 0)) * 1.5, 1)); }
.kit-bar { display: inline-flex; align-items: center; gap: 0.6rem; height: 14px; color: var(--sc-ink-soft); }
.kit-bar svg { width: 84px; height: 14px; fill: currentColor; }
.kit-bar__code { font-family: var(--sc-font-mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
/* a giant outlined word, its own plane, scrubbing sideways with the chapter */
.kit-ghost { position: absolute; margin: 0; z-index: 0; pointer-events: none; user-select: none; white-space: nowrap; line-height: 1; will-change: transform; }
.kit-ghost__i { display: inline-block; color: transparent; -webkit-text-stroke: 1px rgba(22, 22, 26, 0.16); transform: translate3d(calc((0.5 - var(--sc-p, 0)) * 22vw), 0, 0); will-change: transform; }
.kit-ghost--serif { font-family: var(--sc-font-display); font-style: italic; font-variation-settings: "SOFT" 50, "WONK" 0; font-size: clamp(6rem, 5rem + 9vw, 16rem); letter-spacing: -0.02em; }
.kit-ghost--slab { font-family: "Kallisto", var(--sc-font-text); font-weight: 900; text-transform: uppercase; font-size: clamp(6rem, 4rem + 11vw, 17rem); letter-spacing: -0.02em; }
/* brackets that open around a box with the chapter */
.kit-br { position: absolute; width: 16px; height: 16px; border: 0 solid var(--sc-ink); opacity: 0.8; pointer-events: none; z-index: 3; transition: transform 700ms var(--sc-ease-out); }
.kit-br--tl { left: -12px; top: -12px; border-left-width: 1px; border-top-width: 1px; transform: translate(10px, 10px); }
.kit-br--tr { right: -12px; top: -12px; border-right-width: 1px; border-top-width: 1px; transform: translate(-10px, 10px); }
.kit-br--bl { left: -12px; bottom: -12px; border-left-width: 1px; border-bottom-width: 1px; transform: translate(10px, -10px); }
.kit-br--br { right: -12px; bottom: -12px; border-right-width: 1px; border-bottom-width: 1px; transform: translate(-10px, -10px); }
.is-wiped .kit-br, .sc-in .kit-br, .kit-br--open { transform: none; }
/* the caption connector: a dot and a hairline leading into the plate number */
.plate__n--con { position: relative; padding-left: 3.2rem; }
.plate__n--con::before { content: ""; position: absolute; left: 0; top: 50%; width: 2.6rem; height: 1px; background: var(--sc-ink-soft); transform: scaleX(0); transform-origin: left; transition: transform 700ms var(--sc-ease-out) 900ms; }
.plate__n--con::after { content: ""; position: absolute; left: -2px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--sc-ink); opacity: 0; transition: opacity 300ms var(--sc-ease-out) 800ms; }
.is-wiped .plate__n--con::before { transform: scaleX(1); }
.is-wiped .plate__n--con::after { opacity: 1; }
/* a mono code that types itself on */
.code { margin: 0 0 0.9rem; }
.type-on { clip-path: inset(0 100% 0 0); }
.type-on.is-wiped { animation: type-on 900ms steps(26, end) forwards; }
@keyframes type-on { to { clip-path: inset(0 0 0 0); } }
/* a quote that arrives as an outline and fills in left to right */
.post-body blockquote.fill:not(.pull) { position: relative; margin: var(--sc-7) 0; padding: 0; border: 0; max-width: 30ch; font-family: var(--sc-font-display); font-style: italic; font-variation-settings: "SOFT" 50, "WONK" 0; font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.4rem); line-height: 1.18; letter-spacing: -0.01em; text-wrap: balance; }
.fill__out { display: block; color: transparent; -webkit-text-stroke: 1px var(--sc-ink); }
.fill__in { position: absolute; inset: 0; display: block; color: var(--sc-ink); clip-path: inset(0 var(--wipe, 100%) 0 0); --wipe: 100%; transition: --wipe 1400ms var(--sc-ease-out); }
.fill.is-wiped .fill__in { --wipe: 0%; }
.post-body blockquote.fill--win:not(.pull) { font-family: "Kallisto", var(--sc-font-text); font-style: normal; font-weight: 700; text-transform: uppercase; font-size: clamp(1.3rem, 1rem + 1.3vw, 2.1rem); line-height: 1.05; letter-spacing: -0.01em; max-width: 26ch; }
.fill--win .fill__out { -webkit-text-stroke: 1px var(--sc-ink); }
.fill--win .fill__in { color: var(--sc-accent); }
/* headings: the words are the kinetic unit */
.ch__title--post .ch__words { display: inline; }
.post-body h2 .ch__words { display: inline; }
/* pull cards get brackets too */
.pull--print::after, .pull--focus::after { border-color: var(--sc-hairline-strong); }
.print__ghost { left: -2vw; top: -4rem; }
.print__target { right: var(--sc-gutter); top: 14vh; }
.focus__burst { left: 58%; top: -12vmin; width: 74vmin; height: 74vmin; opacity: 0.32; z-index: 0; }
.focus__hex { right: -2rem; top: 5rem; width: 18rem; height: 13.5rem; opacity: 0.5; }
.focus__ghost-i { display: inline-block; transform: translate3d(calc((0.5 - var(--sc-p, 0)) * 10vw), 0, 0); will-change: transform; }
.post-ch--focus { position: relative; }

/* ---------------------------------------------------------- window (B) -- */
/* The cover seen through the title's biggest word; the letters grow past
   the frame while a radial burst turns behind it. Copy beside a stack of
   thin-line planes: a ghost word, hex links, a target, shards, a barcode. */
.pg-win { padding: 0; }
.win__stage { display: grid; grid-template-rows: auto 1fr; overflow: clip; }
.win__stage > .grid-layer { inset: -160px 0; }
.win__burst { left: 52%; top: 8%; width: 84vmin; height: 84vmin; opacity: 0.5; z-index: 0; }
.win__stage > .mast { position: relative; z-index: 3; }
.win__scene { position: relative; z-index: 2; width: 100%; max-width: var(--sc-maxw); margin-inline: auto; padding: clamp(0.5rem, 2svh, 1.5rem) var(--sc-gutter) clamp(2rem, 6svh, 4rem); }
.win__frame { position: relative; margin-left: clamp(0px, 14vw, 16rem); aspect-ratio: 16 / 10; max-height: 66svh; overflow: visible; }
.win__svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: hidden; border-radius: var(--sc-r-sm); box-shadow: var(--sc-e3), var(--sc-edge); }
.win__ground { fill: var(--paper-1); }
.win__word { font-family: "Kallisto", "Arial Narrow", system-ui, sans-serif; font-weight: 900; font-size: 300px; letter-spacing: -0.02em; }
.win__outline { font-family: "Kallisto", "Arial Narrow", system-ui, sans-serif; font-weight: 900; font-size: 300px; letter-spacing: -0.02em; fill: none; stroke: var(--sc-ink); stroke-width: 1.5; opacity: calc(1 - var(--win, 0) * 1.6); }
.win__ring { fill: none; stroke: var(--sc-accent); stroke-width: 1.5; opacity: calc(0.8 - var(--win, 0)); }
.win__br { border-color: var(--sc-ink); width: 22px; height: 22px; }
.win__br.kit-br--tl { left: -18px; top: -18px; } .win__br.kit-br--tr { right: -18px; top: -18px; } .win__br.kit-br--bl { left: -18px; bottom: -18px; } .win__br.kit-br--br { right: -18px; bottom: -18px; }
.win__frame .kit-br { transform: none; opacity: calc(0.9 - var(--win, 0)); }
.win__card { position: relative; left: auto; right: auto; bottom: auto; z-index: 4; width: min(38rem, 78%); margin: -4.5rem 0 0; padding: var(--sc-6) var(--sc-7); color: var(--sc-ink); font-size: var(--sc-t-base); box-shadow: var(--sc-e3), var(--sc-edge); }
.win__h { font-size: clamp(1.8rem, 0.9rem + 2.3vw, 3.1rem); max-width: 18ch; }
.win__card .hero__deck { font-size: var(--sc-t-base); max-width: 44ch; margin-top: var(--sc-4) !important; }
.win__code { position: absolute; right: var(--sc-gutter); bottom: 1.2rem; margin: 0; max-width: 40ch; text-align: right; }
.win__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--sc-6); align-items: start; }
.win__copy { grid-column: 1 / 8; }
.win__rail { grid-column: 8 / 13; align-self: stretch; position: relative; }
.win__stick { position: sticky; top: clamp(3rem, 10vh, 6rem); height: 70vh; }
.win__ghost { right: -1rem; top: -0.5rem; font-size: clamp(5rem, 3rem + 8vw, 13rem); }
.win__hex { left: 4%; top: 30%; width: 19rem; height: 14rem; }
.win__target { right: 1rem; top: 12%; }
.win__shards { right: 0; bottom: 14%; width: 16rem; height: 10rem; opacity: 0.45; }
.win__stick .kit-bar { position: absolute; right: 0; bottom: 4%; }
.post-body--win .plate__frame--drift { aspect-ratio: 16 / 10; }
.post-body--win .plate { margin-top: var(--sc-7); }

/* ------------------------------------------------------- ri (D) extras -- */
.ri__stage .kit { stroke: var(--ri-hud); }
.ri__stage .kit-dot { fill: var(--ri-hud); }
.ri__web { position: absolute; left: -4%; top: 32%; width: 108%; height: 62%; z-index: 0; opacity: 0.26; }
.ri__hex { z-index: 1; opacity: 0.34; width: clamp(140px, 17vw, 240px); height: auto; }
.ri__hex--a { left: 4%; top: 10%; }
.ri__hex--b { right: 6%; bottom: 8%; }
.ri__burst { right: -14vmin; top: 4vmin; width: 62vmin; height: 62vmin; opacity: 0.22; z-index: 0; }
.ri__chev--slide { display: inline-block; overflow: hidden; white-space: nowrap; max-width: 100%; }
.ri__chev--slide { transform: translate3d(calc((var(--sc-p, 0) - 0.5) * 6rem), 0, 0); will-change: transform; }
.ri__ch .kit { stroke: var(--ri-moss); }
.ri__ch .kit-dot { fill: var(--ri-moss); }
.ri__ch .kit-fill { fill: var(--ri-lime); fill-opacity: 0.45; }
.ri__gnum { right: 6rem; top: -3rem; font-size: clamp(7rem, 5rem + 12vw, 19rem); }
.ri__gnum .kit-ghost__i { -webkit-text-stroke: 1px rgba(45, 138, 78, 0.5); }
.ri__chhex { right: -4rem; top: 12rem; width: 18rem; height: 13.5rem; opacity: 0.55; }
.ri__chshards { right: -3rem; top: 30rem; width: 16rem; height: 10rem; opacity: 0.4; }
.ri__ch .kit-fill { fill-opacity: 0.3; }
.ri__h2 .ch__words { display: inline; }
.ri__scan { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--ri-hud); box-shadow: 0 0 10px rgba(110, 255, 130, 0.8); opacity: 0.8; transform: translate3d(calc(var(--sc-p, 0) * min(64ch, 100%)), 0, 0); will-change: transform; pointer-events: none; }
.ri__brief { overflow: hidden; }
.kit-br--ri { border-color: var(--ri-moss); }
.ri__capn { color: var(--ri-moss); font-family: var(--sc-font-mono); font-style: normal; font-size: 0.62rem; letter-spacing: 0.12em; }
.ri__capn::before { background: var(--ri-moss); } .ri__capn::after { background: var(--ri-moss); }
.kit-br--cover { border-color: var(--ri-hud); }
.ri__fig .kit-br { transform: none; }
/* the band: an ink strip mid-article, the flyer's information bar */
.ri__band { position: relative; padding: 0; margin: clamp(2rem, 5vw, 4rem) 0; background: var(--ri-ink); color: #F4F4F0; overflow: hidden; }
.ri__band-in { position: relative; max-width: var(--sc-maxw); margin-inline: auto; padding: 0 var(--sc-gutter) 2.2rem; min-height: 14rem; }
.ri__band .ri__bar { margin-left: calc(-1 * var(--sc-gutter)); margin-right: calc(-1 * var(--sc-gutter)); }
.ri__band-web { left: -5%; top: 20%; width: 110%; height: 90%; opacity: 0.3; stroke: var(--ri-hud); }
.ri__band-hex { right: 4%; top: 14%; width: 16rem; height: 12rem; opacity: 0.4; stroke: var(--ri-hud); }
.ri__band-hex .kit-dot { fill: var(--ri-hud); }
.ri__band-row { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding-top: 2rem; }
.ri__band-code { margin: 0; color: var(--ri-lime); }
.ri__band .kit-bar { color: #F4F4F0; }
.ri__band .ri__chev--slide { position: relative; z-index: 2; margin-top: 1.4rem; color: var(--ri-lime); }
.ri__kanji--band { right: 4rem; bottom: -3rem; font-size: clamp(5rem, 4rem + 8vw, 12rem); color: #fff; opacity: 0.06; }

@media (prefers-reduced-motion: reduce) {
  .kit-burst__g, .kit-burst__rings, .kit-target circle, .kit-ghost__i, .focus__ghost-i, .ri__chev--slide, .ri__scan { transform: none !important; }
  .kit-target circle[pathLength], .kit-hex path, .kit-hex line, .kit-contour path { stroke-dashoffset: 0 !important; }
  .type-on { clip-path: none; animation: none; }
  .fill__in { transition: none; }
  .kit-br { transition: none; transform: none; }
}
@media (max-width: 1099.98px) {
  .win__stage { padding-top: var(--folio-h); }
  .win__grid { column-gap: var(--sc-5); }
  .win__frame { margin-left: clamp(0px, 6vw, 5rem); }
}
@media (max-width: 860px) {
  .win__frame { margin-left: 0; max-height: 52svh; }
  .win__card { width: min(100%, 32rem); margin-top: -3rem; padding: var(--sc-5) var(--sc-6); }
  .win__code { position: static; text-align: left; margin-top: var(--sc-4); }
  .win__burst { left: 30%; top: 0; width: 120vmin; height: 120vmin; }
  .win__grid { grid-template-columns: 1fr; }
  .win__copy, .win__rail { grid-column: auto; }
  .win__rail { display: none; }
  .kit-ghost { display: none; }
  .print__target, .focus__hex, .ri__chhex, .ri__chshards, .ri__burst { display: none; }
  .ri__gnum { display: none; }
  .ri__band-in { min-height: 10rem; }
}

/* ======================================================================== v2 ==
   The drawing system (BRAND_LINEAGE.md). Loaded last, so it outranks the rules
   above it at equal specificity: two surfaces, four line weights, hard edges,
   no shadows, no cobalt, every mark measuring something, a titleblock on
   every sheet. The templates keep their picture entrances and their layouts.
   ========================================================================== */
.is-post {
  --sky: #8ecae6; --blue-mid: #219ebc; --blueprint: #023047; --amber: #ffd000; --orange: #faa700;
  --blue-deep: #176d82; --orange-deep: #996600; --amber-deep: #856c00;
  --sheet: #f7f8f8; --paper: #eceeef; --rule: #c8cdd0; --rule-2: #a1abaf; --quiet: #6a767c; --second: #464f53;
  /* the site's tokens, re-pointed at the sheet */
  --sc-canvas: var(--sheet); --sc-surface: #ffffff; --sc-ink: var(--blueprint); --sc-ink-soft: var(--quiet);
  --sc-accent: var(--blue-deep); --sc-accent-ink: #ffffff;
  --sc-hairline: var(--rule); --sc-hairline-strong: var(--rule-2);
  --paper-0: var(--sheet); --paper-1: var(--paper); --paper-2: #ffffff; --paper-3: #e4e7e9;
  --sc-e1: none; --sc-e2: none; --sc-e3: none; --sc-edge: none;
  --sc-r-sm: 0; --sc-r-md: 0; --sc-r-lg: 0;
  background: var(--sheet); color: var(--blueprint);
}
.is-post .grid-layer { --grid-ink: rgba(2, 48, 71, 0.06); }
/* four weights, assigned; nothing else */
.is-post .w-cut { stroke-width: 3; } .is-post .w-elev { stroke-width: 1.75; } .is-post .w-hid { stroke-width: 1; stroke-dasharray: 6 4; } .is-post .w-ref { stroke-width: 0.5; }
.is-post .kit, .is-post .kit * { vector-effect: non-scaling-stroke; }
/* hard edges: no shadow anywhere, no radius, frames at elevation weight */
.is-post .plate__frame, .is-post .plate__card, .is-post .pull, .is-post .win__card, .is-post .focus__band, .is-post .tiles__card, .is-post .print__frame, .is-post .fill, .is-post .btn { box-shadow: none !important; border-radius: 0 !important; }
.is-post .plate--framed .plate__frame, .is-post .print__frame, .is-post .focus__frame { outline: 1.75px solid var(--blueprint); outline-offset: -1px; }
.is-post .plate__card, .is-post .pull--print, .is-post .pull--focus, .is-post .win__card, .is-post .focus__band { border: 0.5px solid var(--rule-2); background: var(--sheet); }
.is-post .plate__box::before { border: 1px dashed var(--rule-2); }
.is-post .pull--print::after, .is-post .pull--focus::after { border: 1px dashed var(--rule-2); }
.is-post .plate__edge { background: var(--blue-mid); }
.is-post .mark { border-color: var(--blueprint); opacity: 1; }
.is-post .kit-br { border-color: var(--blueprint); }
.is-post .kit-ghost__i { -webkit-text-stroke: 0.5px var(--rule-2); }
.is-post .kit-bar { color: var(--blueprint); }
.is-post .post-ch--line::before { width: 3px; background: var(--blueprint); opacity: 1; }
.is-post .ch__title--post::before { display: none; }
.is-post .post-body a { text-decoration-color: var(--blue-deep); }
.is-post .post-body a:hover { color: var(--blue-deep); }
.is-post .folio__sun { stroke: var(--blue-deep); }
.is-post .beam__disc { background: radial-gradient(closest-side, rgba(255, 208, 0, 0.30) 0%, rgba(255, 208, 0, 0.30) 54%, rgba(255, 208, 0, 0.22) 61%, rgba(255, 208, 0, 0.08) 68%, rgba(255, 208, 0, 0) 74%); }
/* the scale jump: labels at 9px, the numerals and ghosts at 12 to 16rem */
.is-post .mono-label, .is-post .code, .is-post .kit-bar__code, .is-post .plate__n--con, .is-post .dim, .is-post .scale, .is-post .kn__tag, .is-post .cut__ref, .is-post .tb, .is-post .sched { font-family: var(--sc-font-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; font-style: normal; color: var(--blueprint); font-variant-numeric: tabular-nums; }
.is-post .plate__n { font-family: var(--sc-font-display); font-style: italic; font-size: 0.95rem; color: var(--blueprint); }
.is-post .plate__n--con::before, .is-post .plate__n--con::after { display: none; }
.is-post .plate__n--con { padding-left: 0; }

/* ---- titleblock: the corner cluster on every sheet ---- */
.tb { position: absolute; right: var(--sc-gutter); bottom: 1rem; z-index: 6; display: flex; margin: 0; border: 1px solid var(--blueprint); background: var(--sheet); }
.tb__cell { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.45rem 0.7rem 0.4rem; border-right: 1px solid var(--rule-2); min-width: 4.2rem; }
.tb__cell:last-child { border-right: 0; }
.tb dt { color: var(--quiet); }
.tb dd { margin: 0; color: var(--blueprint); font-weight: 500; }
.tb__cell:first-child { background: var(--blueprint); }
.tb__cell:first-child dt { color: var(--sky); }
.tb__cell:first-child dd { color: #ffffff; }
/* ---- schedule: mono labels against values ---- */
.sched { display: grid; grid-template-columns: max-content max-content; column-gap: 1.6rem; margin: 0; border-top: 1px solid var(--blueprint); }
.sched__row { display: contents; }
.sched dt, .sched dd { margin: 0; padding: 0.45rem 0; border-bottom: 0.5px solid var(--rule-2); }
.sched dt { color: var(--quiet); }
.sched dd { text-align: right; color: var(--blueprint); }
/* ---- gridref ---- */
.kit-grid { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; stroke: var(--blueprint); opacity: 0.35; pointer-events: none; will-change: transform; }
.kit-grid__l, .kit-grid__n { position: absolute; z-index: 1; pointer-events: none; font-family: var(--sc-font-mono); font-size: 9px; letter-spacing: 0.1em; color: var(--quiet); }
.kit-grid__l { left: 0; right: 0; top: 6px; height: 1rem; }
.kit-grid__l span { position: absolute; transform: translateX(-50%); }
.kit-grid__n { top: 0; bottom: 0; left: 8px; width: 1rem; }
.kit-grid__n span { position: absolute; transform: translateY(-50%); }
/* ---- dimstring and scale ---- */
.dim { position: relative; height: 26px; margin: 12px 0 0; opacity: 0; transition: opacity 400ms var(--sc-ease-out); }
.dim.is-set { opacity: 1; }
.dim__svg { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 16px; stroke: var(--blueprint); overflow: visible; }
.dim__ext { position: absolute; top: -12px; width: 0; height: 22px; border-left: 1px dashed var(--rule-2); }
.dim__ext--l { left: 0; } .dim__ext--r { right: 0; }
.dim__n { position: absolute; top: 14px; transform: translateX(-50%); }
.dim__n--0 { left: 0; transform: none; } .dim__n--m { left: 50%; } .dim__n--w { right: 0; transform: none; }
.dim__cap { position: absolute; right: 0; top: -14px; color: var(--quiet); }
.scale { display: inline-flex; align-items: center; gap: 0.5rem; margin-left: 0.9rem; vertical-align: middle; opacity: 0; transition: opacity 400ms var(--sc-ease-out); }
.scale.is-set { opacity: 1; }
.scale__bar { display: inline-flex; width: 48px; height: 6px; border: 1px solid var(--blueprint); }
.scale__bar b { flex: 1; } .scale__bar b:nth-child(odd) { background: var(--blueprint); }
/* ---- keynote: a tag, a leader, a node ---- */
.kn { position: absolute; left: 0; top: -1.9rem; z-index: 5; display: inline-flex; align-items: center; gap: 0; }
.kn__tag { padding: 0 0.4rem 0 0; background: var(--sheet); }
.kn__lead { display: block; width: 2.4rem; height: 0; border-top: 1px solid var(--blueprint); transform: scaleX(0); transform-origin: left; transition: transform 600ms var(--sc-ease-out) 700ms; }
.kn__node { display: block; width: 7px; height: 7px; margin-left: -1px; border: 1.75px solid var(--blueprint); border-radius: 50%; background: var(--sheet); opacity: 0; transition: opacity 200ms var(--sc-ease-out) 1250ms; }
.is-wiped .kn__lead, .sc-in .kn__lead, .kn--open .kn__lead { transform: scaleX(1); }
.is-wiped .kn__node, .sc-in .kn__node, .kn--open .kn__node { opacity: 1; }
/* ---- sectioncut: the chapter mark ---- */
.chead { position: relative; margin-bottom: var(--sc-4); }
.cut { display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; }
.cut__ring { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border: 1.75px solid var(--blueprint); border-radius: 50%; }
.cut__n { font-family: var(--sc-font-display); font-style: italic; font-variation-settings: "SOFT" 50, "WONK" 0; font-size: 1.1rem; line-height: 1; color: var(--blueprint); }
.cut__arrow { position: relative; width: 1.6rem; height: 0; border-top: 1.75px solid var(--blueprint); }
.cut__arrow::after { content: ""; position: absolute; right: -1px; top: -5px; width: 8px; height: 8px; border-top: 1.75px solid var(--blueprint); border-right: 1.75px solid var(--blueprint); transform: rotate(45deg); }
.cut__ref { color: var(--quiet); }
/* ---- rings, geometry, axo, hazard, badges, shapes ---- */
.kit-rings { position: absolute; width: 90vmin; height: 90vmin; stroke: var(--blueprint); opacity: 0.55; fill: none; pointer-events: none; }
.kit-rings circle[pathLength] { stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, (var(--sc-p, 0) - var(--d, 0)) * 1.6, 1)); }
.kit-geo { position: absolute; width: 22rem; height: 16.5rem; stroke: var(--blueprint); fill: none; opacity: 0.75; pointer-events: none; }
.kit-geo path[pathLength], .kit-geo rect[pathLength] { stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, (var(--sc-p, 0) - var(--d, 0)) * 1.8, 1)); }
.kit-contour { position: absolute; stroke: var(--blueprint); fill: none; opacity: 0.35; pointer-events: none; }
.kit-contour path { stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, (var(--sc-p, 0) - var(--d, 0)) * 1.5, 1)); }
.kit-axo { position: relative; width: 100%; max-width: 22rem; height: auto; stroke: var(--blueprint); fill: none; pointer-events: none; overflow: visible; }
.kit-axo .axo__fill { fill: var(--blueprint); stroke: none; }
.kit-axo .axo__t { font-family: var(--sc-font-mono); font-size: 22px; letter-spacing: 0.14em; fill: var(--quiet); stroke: none; }
.kit-axo .axo__p { transform: translateY(calc((1 - var(--sc-p, 0)) * var(--i) * -18px)); will-change: transform; }
.kit-hazard { display: block; height: 10px; background: repeating-linear-gradient(-45deg, var(--amber) 0 14px, var(--blueprint) 14px 28px); }
.kit-badges { display: inline-flex; flex-wrap: wrap; gap: 0.5rem; color: var(--blueprint); }
.kit-badge { display: inline-block; width: 2rem; height: 2rem; }
.kit-badge svg { width: 100%; height: 100%; display: block; fill: currentColor; }
.kit-shape { position: absolute; display: block; pointer-events: none; color: var(--blueprint); }
.kit-shape svg { width: 100%; height: auto; display: block; fill: none; stroke: currentColor; stroke-width: 0.5; vector-effect: non-scaling-stroke; overflow: visible; }
.kit-shape svg * { vector-effect: non-scaling-stroke; }
.code { color: var(--blueprint); }
/* ---- window's rail: one composition, aligned, not a cluster ---- */
.win__rail .kit-hex, .win__rail .kit-target, .win__rail .kit-shards { display: none; }
.win__stick { display: flex; flex-direction: column; gap: 2.2rem; height: auto; padding-top: 0.5rem; }
.win__ghost { position: absolute; right: 0; top: -1.2rem; font-size: clamp(5rem, 3rem + 8vw, 12rem); }
.win__axo { margin-top: 9rem; }
.win__railrings { position: relative; width: 20rem; height: 20rem; margin-top: 8rem; opacity: 0.7; }
.win__railgeo { position: relative; width: 20rem; height: 15rem; margin-top: 9rem; }
.win__marks { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.win__rings { left: 46%; top: 2%; width: 86vmin; height: 86vmin; }
.win__ring { stroke: var(--blue-mid); }
.win__stage > .grid-layer { display: none; }
.win__stage .tb { bottom: 1rem; }
.pg-title--post .grid-layer { display: none; }
.pg-title--post .kit-grid { opacity: 0.3; }
.pg-title--post { padding-bottom: 4.5rem; }
.pg-title--post .tb { bottom: 1.2rem; }
.pg-title--post .kit-grid__l, .pg-title--post .kit-grid__n { z-index: 0; }
.print__ghost { left: -1vw; top: -4rem; }
.print__fig .kn { top: -2rem; }
.print__fig .dim { position: absolute; left: 0; right: 0; top: 100%; }
.print__stage .kit-target { display: none; }
.focus__grid { opacity: 0.22; }
.focus__row .kn { top: -1.9rem; left: 0; }
.focus__row .dim { position: absolute; left: 0; right: 0; top: 100%; }
.focus__geo { right: -3rem; top: 2rem; }
.focus__hex { display: none; }
.focus__burst { display: none; }
.focus__stage .tb { bottom: 1rem; }
.plate--framed { padding-top: 1.9rem; }
.plate--framed .kn { top: 0; }
.plate--framed .plate__cap { margin-top: 0.6rem; }
/* the print label never shows a placeholder zero */
.print__label { color: var(--quiet); }

/* ---- ri (D): the blueprint surface ---- */
.tpl-ri {
  --ri-ink: var(--blueprint); --ri-ink-2: #04283a; --ri-paper: var(--sheet); --ri-lime: var(--amber); --ri-mint: var(--orange); --ri-moss: var(--blue-deep); --ri-hud: var(--sky);
  --ri-ash: var(--quiet); --ri-ash-dark: #6e97ab; --ri-line: var(--rule-2); --ri-line-dim: rgba(142, 202, 230, 0.22);
  background: var(--sheet); color: var(--blueprint);
}
.ri__stage { display: grid; grid-template-rows: auto 1fr auto auto; background: var(--blueprint); color: var(--sky); }
.ri__b { position: relative; }
.ri__b--sheet { background: var(--sheet); color: var(--blueprint); border-bottom: 3px solid var(--blueprint); }
.ri__b--sheet .mast__mark img { filter: none; }
.ri__b--sheet .mast__nav a { color: var(--blueprint); }
.ri__b--sheet .mast__nav a:hover, .ri__b--sheet .mast__nav a[aria-current="page"] { color: var(--blue-deep); text-decoration-color: var(--blue-deep); }
.ri__b--ink { overflow: clip; min-height: 0; display: grid; align-items: center; }
.ri__b--amber { background: var(--amber); color: var(--blueprint); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(1rem, 3vw, 3rem); align-items: center; padding: clamp(0.8rem, 2svh, 1.4rem) var(--sc-gutter); border-top: 3px solid var(--blueprint); }
.ri__b--amber .ri__deck { margin: 0; color: var(--blueprint); font-family: var(--ri-body); font-size: clamp(0.95rem, 1.15vw, 1.08rem); line-height: 1.45; max-width: 52ch; }
.ri__b--amber .sched { border-top-color: var(--blueprint); justify-self: end; column-gap: 1.2rem; }
.ri__b--amber .sched dt, .ri__b--amber .sched dd { padding: 0.28rem 0; border-bottom-color: rgba(2, 48, 71, 0.4); color: var(--blueprint); font-size: 9px; }
.ri__b--amber .sched dt { color: var(--amber-deep); }
.ri__hz { height: 10px; }
.ri__stage .kit { stroke: var(--sky); }
.ri__stage .kit-dot { fill: var(--sky); }
.ri__web { position: absolute; left: -4%; top: 30%; width: 108%; height: 64%; z-index: 0; opacity: 0.28; }
.ri__geo { z-index: 1; opacity: 0.6; }
.ri__geo--a { left: 2%; bottom: -6rem; width: 20rem; height: 15rem; }
.ri__rings { right: -20vmin; top: -10vmin; width: 70vmin; height: 70vmin; opacity: 0.4; z-index: 0; }
.ri__kanji { right: 4%; top: 5%; width: min(46vw, 620px); opacity: 0.7; z-index: 0; color: var(--sky); }
.ri__kanji svg { stroke-width: 0.9; }
.ri__kata { position: absolute; left: 4%; top: 8%; z-index: 1; color: var(--sky); opacity: 0.55; }
.ri__kata .kit-badge { width: 7rem; height: 7rem; }
.ri__hex, .ri__burst, .ri__dots, .ri__bar { display: none; }
.ri__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; width: 100%; max-width: var(--sc-maxw); margin-inline: auto; padding: clamp(1rem, 3svh, 2rem) var(--sc-gutter); }
.ri__reg { margin: 0 0 1rem; color: var(--ri-ash-dark); }
.ri__reg--br { display: none; }
.ri__back .link { color: var(--sky); text-decoration-color: var(--amber); }
.ri__h { color: #ffffff; font-size: clamp(2rem, 4.4vw, 4.2rem); max-width: 14ch; }
.ri__shout { color: var(--amber); }
.ri__grn { background: none; -webkit-text-fill-color: var(--amber); color: var(--amber); }
.ri__meta { margin-top: 1.2rem; color: var(--sky); font-family: var(--ri-body); }
.ri__telem, .ri__chev--slide:not(.ri__chev--end), .ri__deck:not(.ri__b--amber .ri__deck) { display: none; }
.ri__fig .kn { top: 0; }
.ri__fig { padding-top: 1.9rem; }
.ri__fig .kn__tag { background: var(--blueprint); color: var(--sky); }
.ri__fig .kn__lead { border-top-color: var(--sky); }
.ri__fig .kn__node { border-color: var(--sky); background: var(--blueprint); }
.ri__fig .dim { position: absolute; left: 0; right: 0; }
.ri__fig .dim__svg { stroke: var(--sky); } .ri__fig .dim__n, .ri__fig .dim__cap { color: var(--sky); } .ri__fig .dim__ext { border-left-color: var(--sky); }
.ri__screen--cover { max-height: min(52svh, 30rem); outline: 1.75px solid var(--sky); outline-offset: -1px; }
.ri__screen::after { background: repeating-linear-gradient(90deg, transparent 0 2px, rgba(2, 48, 71, 0.16) 2px 3px); }
.ri__lbl { color: var(--amber); background: rgba(2, 48, 71, 0.85); }
.ri__tick { border-color: var(--sky); }
.kit-br--cover { border-color: var(--sky); }
.ri__cap { color: var(--sky); }
.ri__fig .ri__cap { margin-top: 2.2rem; }
/* copy on the sheet */
.ri__ch { background: var(--sheet); color: var(--blueprint); }
.ri__script { right: -2rem; top: -1rem; width: min(38vw, 520px); color: var(--blueprint); opacity: 0.55; z-index: 0; }
.ri__kanji--ch { display: none; }
.ri__gnum { right: 30%; top: -2.5rem; }
.ri__gnum .kit-ghost__i { -webkit-text-stroke: 0.5px var(--rule-2); }
.ri__chgeo { right: -4rem; top: 16rem; width: 18rem; height: 13.5rem; opacity: 0.7; }
.ri__chhex, .ri__chshards { display: none; }
.ri__secn { color: var(--blue-deep); }
.ri__h2 { color: var(--blueprint); }
.post-body--ri p { color: var(--blueprint); }
.post-body--ri a { color: var(--blue-deep); text-decoration-color: var(--blue-deep); }
.tpl-ri .post-body--ri blockquote.ri__brief { background: var(--blueprint); color: var(--sky); }
.tpl-ri .post-body--ri blockquote.ri__brief::before { background: var(--amber); }
.tpl-ri .post-body--ri blockquote.ri__brief p { color: #ffffff; }
.ri__brief .brief__k { color: var(--ri-ash-dark); }
.ri__scan { background: var(--amber); box-shadow: none; }
.ri__plate .plate__frame { outline: 1.75px solid var(--blueprint); outline-offset: -1px; }
.ri__plate .plate__edge { background: var(--amber); box-shadow: none; }
.ri__plate .ri__tick { border-color: var(--amber); }
.kit-br--ri { border-color: var(--blueprint); }
.ri__capn { color: var(--blue-deep); }
.ri__chev--end { color: var(--blue-deep); }
.ri__hz--end { margin: 2rem 0 1rem; }
/* the band: a blueprint strip mid-article */
.ri__band { background: var(--blueprint); color: var(--sky); margin: clamp(2rem, 5vw, 4rem) 0; padding: 0; }
.ri__band-in { padding: 0 var(--sc-gutter); min-height: 0; }
.ri__band .ri__bar { display: none; }
.ri__band-web { stroke: var(--sky); left: -5%; top: 10%; width: 110%; height: 90%; opacity: 0.3; }
.ri__band-hex { display: none; }
.ri__band-geo { right: 6%; top: 8%; width: 16rem; height: 12rem; stroke: var(--sky); opacity: 0.6; }
.ri__band-row { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; padding: 2rem 0 1.6rem; }
.ri__band .sched { border-top-color: var(--sky); }
.ri__band .sched dt { color: var(--ri-ash-dark); } .ri__band .sched dd { color: #ffffff; } .ri__band .sched dt, .ri__band .sched dd { border-bottom-color: rgba(142, 202, 230, 0.3); }
.ri__band-marks { display: flex; flex-direction: column; align-items: flex-end; gap: 0.8rem; color: var(--sky); }
.ri__band .kit-bar { color: var(--sky); }
.ri__band-hz { margin: 0 calc(-1 * var(--sc-gutter)); }
.ri__band-code, .ri__band .ri__chev--slide, .ri__kanji--band { display: none; }

@media (prefers-reduced-motion: reduce) {
  .kit-axo .axo__p, .kit-rings circle { transform: none !important; }
  .kit-rings circle[pathLength], .kit-geo path[pathLength], .kit-geo rect[pathLength], .kit-contour path { stroke-dashoffset: 0 !important; }
  .kn__lead, .kn__node, .dim, .scale { transition: none; }
}
@media (max-width: 1099.98px) {
  .tb { right: 1rem; }
  .tb__cell { min-width: 3.4rem; padding: 0.35rem 0.5rem 0.3rem; }
}
@media (max-width: 860px) {
  .tb { position: relative; right: auto; bottom: auto; margin: 1.2rem var(--sc-gutter) 0; flex-wrap: wrap; width: fit-content; }
  .tb::before { display: none; }
  .win__stage .tb, .focus__stage .tb, .pg-title--post .tb { margin: 1rem var(--sc-gutter); }
  .kit-grid__l, .kit-grid__n { display: none; }
  .ri__b--amber { grid-template-columns: 1fr; gap: 0.8rem; }
  .ri__b--amber .sched { justify-self: start; }
  .ri__kanji { width: 80vw; right: -10%; top: 2%; opacity: 0.25; }
  .ri__kata, .ri__rings { display: none; }
  .ri__script, .ri__chgeo, .win__rail { display: none; }
  .print__fig .dim, .focus__row .dim, .ri__fig .dim { display: none; }
  .win__rings { display: none; }
}
@media (max-width: 700px) {
  .ri__h { font-size: clamp(1.8rem, 8.5vw, 2.6rem); }
  .ri__screen--cover { max-height: 40svh; }
}

/* ======================================================================== v3 ==
   The rave half. v2 built the drawing set; this layer supplies the voltage the
   flyers actually carry, and it is loaded last so it wins at equal specificity.

   Three corrections, in the order they matter (BRAND_LINEAGE.md sections 5, 8
   and 9):

   1. DISPLAY IS KALLISTO, NOT A SERIF. Fraunces is why the post pages read as
      the cream-and-serif AI default the brief exists to avoid. Kallisto is the
      wide geometric the brief asks for (the Eurostile / Bank Gothic / Handel
      Gothic family) and it already ships in assets/fonts/. Repointing the token
      moves every heading, folio numeral and plate number at once; the rules
      below undo the Fraunces-only properties (optical size, SOFT/WONK, italic)
      that would otherwise synthesise a fake oblique.

   2. THE PAGE STACKS. v2 alternated --paper-0 (#f7f8f8) against --paper-2
      (#ffffff): a 1.5% step, so the stack existed in the markup and not to the
      eye. A band is a stratum with its own ground and a hard cut edge, and
      geometry crosses the seams, which is the only reason the Foundation
      flyer's four grounds read as one poster.

   3. VIOLENT SCALE JUMP. Roughly 12:1 with the middle absent: 9px mono against
      a page-filling ghost, and nothing comfortable in between.
   ========================================================================== */

.is-post {
  /* Kallisto carries the display; Instrument Sans stays the reading face. */
  --sc-font-display: "Kallisto", "Arial Narrow", "Helvetica Neue Condensed", system-ui, sans-serif;

  /* The ladder, with the middle deliberately missing. 9px to 17rem is ~30:1. */
  --t-mono:  9px;
  --t-shout: clamp(2.1rem, 1.1rem + 4vw, 4.6rem);
  --t-giant: clamp(5.5rem, 2rem + 15vw, 17rem);

  /* Band seams are drawn at cut weight. */
  --seam: 3px solid var(--blueprint);
}

/* Kallisto is a caps-forward geometric: it needs none of Fraunces' machinery. */
.is-post .sc-display,
.is-post .hero__h,
.is-post .ch__title--post,
.is-post .post-body h2,
.is-post .post-body h3,
.is-post .copy .sc-lede,
.is-post .folio__num,
.is-post .plate__n {
  font-family: var(--sc-font-display);
  font-variation-settings: normal;
  font-style: normal;
  font-optical-sizing: none;
}

/* The two display sizes. Tight, wide, heavy, uppercase: the flyer register. */
.is-post .hero__h,
.is-post .ch__title--post,
.is-post .post-body h2 {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 0.93;
  text-wrap: balance;
}
.is-post .hero__h  { font-size: var(--t-shout); max-width: 16ch; }
.is-post .ch__title--post { font-size: var(--t-shout); max-width: 15ch; margin-bottom: var(--sc-5); }
.is-post .post-body h2 { font-size: clamp(1.6rem, 1rem + 2.2vw, 2.9rem); max-width: 18ch; }
.is-post .post-body h3 { font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; font-size: 1.15rem; }

/* The lede is the one place display type stays lowercase, so it reads as voice
   rather than as a second headline. */
.is-post .copy .sc-lede,
.is-post .hero__deck {
  font-family: var(--sc-font-text);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.22rem);
  line-height: 1.5;
  max-width: 46ch;
  color: var(--second);
}

/* The folio numeral and plate numbers were Fraunces italics. */
.is-post .folio__num { font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em; }
.is-post .plate__n { font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.7rem; }

/* ---------------------------------------------------------------- bands -- */
/* A stratum: its own ground, a hard cut edge, and no vertical padding
   collapse. Bands tile the page; nothing between them is left neutral. */
.band { position: relative; }
.band + .band { border-top: var(--seam); }

.band--sheet     { background: var(--sheet);     color: var(--blueprint); }
.band--paper     { background: var(--paper);     color: var(--blueprint); }
.band--blueprint { background: var(--blueprint); color: var(--sky); }
.band--amber     { background: var(--amber);     color: var(--blueprint); }

/* On the blueprint the whole type system inverts. Sky on #023047 measures
   7.74:1, amber 9.41:1, so body copy and shouts are both clear. */
.band--blueprint,
.band--blueprint .copy p,
.band--blueprint .post-body p,
.band--blueprint .post-body li { color: var(--sky); }
.band--blueprint .ch__title--post,
.band--blueprint .post-body h2,
.band--blueprint .post-body h3,
.band--blueprint .hero__h { color: #ffffff; }
.band--blueprint .mono-label,
.band--blueprint .code,
.band--blueprint .dim,
.band--blueprint .scale,
.band--blueprint .kn__tag,
.band--blueprint .cut__ref { color: var(--amber); }
.band--blueprint .post-body a { color: #ffffff; text-decoration-color: var(--amber); }
.band--blueprint .post-body a:hover { color: var(--amber); }
.band--blueprint .kit { stroke: var(--sky); }
.band--blueprint .kit-dot { fill: var(--sky); }
.band--blueprint .post-ch--line::before { background: var(--amber); }
.band--blueprint .mark { border-color: var(--sky); }
.band--blueprint .kit-br { border-color: var(--sky); }
.band--blueprint .kit-ghost__i { -webkit-text-stroke: 0.5px rgba(142, 202, 230, 0.42); }
.band--blueprint .plate__card { background: var(--blueprint); color: var(--sky); border-color: rgba(142, 202, 230, 0.4); }
.band--blueprint .plate--framed .plate__frame { outline-color: var(--sky); }
.band--blueprint .grid-layer { --grid-ink: rgba(142, 202, 230, 0.10); }

/* The amber strip is a thin band that carries a schedule or a shout. Amber is
   a fill with blueprint type on it, never ink: 1.47:1 as ink is unreadable. */
.band--amber .mono-label,
.band--amber .code,
.band--amber .sched dt { color: var(--amber-deep); }
.band--amber .sched dd,
.band--amber p { color: var(--blueprint); }
.band--amber .kit { stroke: var(--blueprint); }
.band--amber .kit-dot { fill: var(--blueprint); }

/* ------------------------------------------------------- seam geometry -- */
/* The reason four grounds read as one poster: outline geometry that belongs to
   no band and runs straight over the edge between them. Drawn in the middle of
   the blue ramp, which is the one value legible on both surfaces (3.14 on the
   sheet as a graphic stroke, 4.41 on the blueprint). */
.seam {
  position: absolute;
  left: 0; right: 0;
  height: 0;
  z-index: 5;
  pointer-events: none;
  color: var(--blue-mid);
  overflow: visible;
}
.seam svg { position: absolute; left: 0; width: 100%; overflow: visible; }
.seam--top svg { top: 0; transform: translateY(-50%); }
.seam__g { stroke: currentColor; fill: none; vector-effect: non-scaling-stroke; }

/* --------------------------------------------------------- scale jump -- */
/* The ghost is the big end of the ladder and it is genuinely page-filling. */
.is-post .kit-ghost--slab,
.is-post .kit-ghost--serif {
  font-family: var(--sc-font-display);
  font-weight: 900;
  font-style: normal;
  font-variation-settings: normal;
  text-transform: uppercase;
  font-size: var(--t-giant);
  letter-spacing: -0.03em;
  line-height: 0.78;
}

/* ------------------------------------------------------------- reduced -- */
@media (prefers-reduced-motion: reduce) {
  .seam svg { transform: none !important; }
}

/* --------------------------------------------- Fraunces leftovers, undone -- */
/* Every one of these set font-style: italic against --sc-font-display. Now that
   the token points at Kallisto, which ships no italic, the browser would
   synthesise an oblique: a slanted geometric, which is the one thing that reads
   as a mistake rather than a decision. */
.is-post .link--strong,
.is-post .plate__n,
.is-post .plate__fig,
.is-post .mono-label,
.is-post .cut__n,
.is-post .prints__note,
.is-post .contents__label,
.is-post .post__d,
.is-post .copy .lede-i,
.is-post .spread2__ghost,
.is-post .focus__ghost,
.is-post .post-body blockquote,
.is-post .post-body blockquote p,
.is-post .post-body blockquote.fill,
.is-post .post-body blockquote.pull {
  font-style: normal;
  font-variation-settings: normal;
}

/* Quotes are the loud register, not the soft one: a shout in wide caps against
   the reading face, which is the scale jump doing the work a serif italic used
   to do. */
.is-post .post-body blockquote:not(.pull):not(.break) {
  font-family: var(--sc-font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.25rem, 0.95rem + 1.3vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.005em;
  max-width: 22ch;
  border-left: 3px solid var(--blueprint);
  padding-left: var(--sc-5);
}
.band--blueprint .post-body blockquote:not(.pull):not(.break) {
  border-left-color: var(--amber);
  color: #ffffff;
}

/* The CTA was a Fraunces italic link; it becomes the page's closing shout. */
.is-post .link--strong,
.is-post .foot__cta a {
  font-family: var(--sc-font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-style: normal;
  letter-spacing: -0.01em;
  font-size: clamp(1.6rem, 1.1rem + 2vw, 3rem);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.14em;
}

/* ------------------------------------------------------- the sun, drawn -- */
/* The oculus disc stays: it is the signature of the print template and it
   lands on the cover. But a bare soft radial is the one thing the brief calls
   the opposite of a drawing, so the light now carries an instrument: a
   hairline ring struck at the umbra edge and a centre tick. It claims to
   locate the light rather than merely being a glow. */
.is-post .beam__disc::before,
.is-post .beam__disc::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.is-post .beam__disc::before {
  inset: 23%;
  border: 0.5px solid rgba(2, 48, 71, 0.30);
  border-radius: 50%;
}
.is-post .beam__disc::after {
  left: 50%; top: 50%;
  width: 9%; height: 0;
  margin-left: -4.5%;
  border-top: 0.5px solid rgba(2, 48, 71, 0.40);
}

/* Seam pieces: each one straddles the cut edge, half on each ground. */
.seam__i { position: absolute; top: 0; overflow: visible; }
.seam__g { stroke: currentColor; fill: none; vector-effect: non-scaling-stroke; }
.seam__i .w-ref { stroke-width: 0.5; }
.seam__i .w-hid { stroke-width: 1; stroke-dasharray: 6 4; }

/* ---------------------------------------------------- print (A): strip -- */
/* The amber stratum. Thin by design: it is a rule with information in it, not
   a section, and it is the hard hinge between the cover and the reading. */
.print__strip { padding-block: clamp(0.9rem, 2.2svh, 1.6rem); }
.print__strip-in {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 0.8rem 2rem;
}
.print__strip .mono-label { margin: 0; color: var(--amber-deep); }
.print__strip .sched { display: flex; flex-wrap: wrap; gap: 0 1.6rem; margin: 0; border: 0; }
.print__strip .sched__row { display: flex; align-items: baseline; gap: 0.5rem; border-bottom: 1px solid rgba(2, 48, 71, 0.35); padding-bottom: 0.2rem; }
.print__strip .sched dt { color: var(--amber-deep); }
.print__strip .sched dd { margin: 0; color: var(--blueprint); font-weight: 600; }

/* Chapters on the blueprint bleed to the full measure of the band. */
.print__ch.band--blueprint { padding-block: clamp(3.5rem, 9svh, 7rem); }
.print__ch.band--blueprint .print__ghost { opacity: 0.5; }

/* ------------------------------------ panels, inverted on the blueprint -- */
/* v2 gave every tipped-in panel the sheet as its ground. On a blueprint band
   that leaves sky type on white: 1.79:1, unreadable. A panel on the blueprint
   is cut from the blueprint, and the amber rule is what tips it in. */
.band--blueprint .pull--print,
.band--blueprint .pull--focus,
.band--blueprint .plate__card,
.band--blueprint .win__card,
.band--blueprint .focus__band {
  background: var(--blueprint);
  border-color: rgba(142, 202, 230, 0.45);
  color: var(--sky);
}
.band--blueprint .pull--print p,
.band--blueprint .pull--focus p { color: #ffffff; }
.band--blueprint .pull--print::after,
.band--blueprint .pull--focus::after { border-color: rgba(255, 208, 0, 0.55); }
.band--blueprint .plate__box::before { border-color: rgba(142, 202, 230, 0.35); }
.band--blueprint .fill__out { -webkit-text-stroke: 1px rgba(142, 202, 230, 0.5); }
.band--blueprint .fill__in { color: #ffffff; }
.band--blueprint .plate__cap,
.band--blueprint .plate__n { color: var(--sky); }
.band--blueprint .sched dt { color: var(--amber); }
.band--blueprint .sched dd { color: #ffffff; }
.band--blueprint .tb { background: var(--blueprint); border-color: var(--sky); }
.band--blueprint .tb dt { color: var(--amber); }
.band--blueprint .tb dd { color: #ffffff; }

/* The ghost carries further on ink than it does on paper, so it is struck
   back rather than up: it is a plane behind the type, never a competitor. */
.band--blueprint .kit-ghost--slab,
.band--blueprint .kit-ghost--serif { opacity: 0.34; }
.band--blueprint .kit-ghost__i { -webkit-text-stroke-color: rgba(142, 202, 230, 0.55); }

/* A tipped-in quote is a block box, so a right-floated margin plate slides
   underneath it and the two collide. Establishing a block formatting context
   makes the quote avoid the float and sit beside it instead. */
.pull--print, .pull--focus { display: flow-root; }

/* ------------------------------------------- the blueprint band as plate -- */
/* The rhythm the stack needs: sheet bands are for reading, blueprint bands are
   for looking. On ink the margin plate stops being a thumbnail in the gutter
   and becomes the subject, bleeding toward the band edge with the copy running
   beside it. It also closes the accidental void a small float left behind.
   The bleed stops at the gutter, never at the viewport, so nothing overflows. */
@media (min-width: 1100px) {
  .band--blueprint .plate--margin {
    width: clamp(22rem, 32vw, 34rem);
    margin-right: calc(-1 * clamp(1rem, var(--sc-gutter), 4rem));
    margin-bottom: var(--sc-6);
  }
  .band--blueprint .plate--margin .plate__frame,
  .band--blueprint .plate--margin .plate__frame--drift { aspect-ratio: 4 / 3; }
  .band--blueprint .plate--margin .plate__card { left: 0; }
}

/* ------------------------------------------------- the quote as a poche -- */
/* The dotted double-outline panel was the quietest thing on the page, which
   inverts the brief: a quote is a shout. It becomes the poche instead, the one
   solid filled block a composition is allowed, and it flips with the band so
   the stack keeps alternating. Blueprint on the sheet (13.85:1 as a fill with
   white on it), amber on the blueprint (9.41:1 against the ink). */
.is-post .pull--print,
.is-post .pull--focus {
  border: 0;
  padding: clamp(1.2rem, 2.4vw, 1.9rem) clamp(1.3rem, 2.6vw, 2.1rem);
  background: var(--blueprint);
  color: #ffffff;
  font-family: var(--sc-font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.05rem, 0.85rem + 0.95vw, 1.7rem);
  line-height: 1.1;
  letter-spacing: -0.005em;
}
.is-post .pull--print p,
.is-post .pull--focus p { color: #ffffff; max-width: 24ch; }
/* the offset reference frame stays: it is the tipping-in mark */
.is-post .pull--print::after,
.is-post .pull--focus::after { border: 1px solid var(--rule-2); }

.band--blueprint .pull--print,
.band--blueprint .pull--focus {
  background: var(--amber);
  color: var(--blueprint);
}
.band--blueprint .pull--print p,
.band--blueprint .pull--focus p { color: var(--blueprint); }
.band--blueprint .pull--print::after,
.band--blueprint .pull--focus::after { border-color: rgba(142, 202, 230, 0.5); }

/* The ghost sits back but must still be seen to be a plane. */
.band--sheet .kit-ghost__i,
.band--paper .kit-ghost__i { -webkit-text-stroke: 1px rgba(2, 48, 71, 0.16); }

/* ==================================================================== v3/ri ==
   Template D, returned to Rapid Impact.

   The block above ("ri (D): the blueprint surface") remapped every Rapid
   Impact variable onto this site's blueprint palette (--ri-lime: var(--amber),
   --ri-ink: var(--blueprint)) and then switched off the devices that carry the
   brand: .ri__hex, .ri__burst, .ri__dots and .ri__bar, the segmented colour bar
   that is one of Rapid Impact's signatures. The result was a Rapid Impact
   template with Rapid Impact painted out of it.

   Checked against the live site: rapidimpactlabs.com runs Kallisto over General
   Sans on ink #18171C, paper #FCFEED, lime #E3F850, moss #2d8a4e. Those are the
   values restored here. A template for someone else's site matches their house
   style; the rave lineage shows up in the layout and the devices, which is the
   half the two brands genuinely share.
   ========================================================================== */
.tpl-ri {
  --ri-ink: #18171C; --ri-ink-2: #1E1D23; --ri-paper: #FCFEED;
  --ri-lime: #E3F850; --ri-mint: #8DEA9A; --ri-moss: #2d8a4e; --ri-hud: #6EFF82;
  --ri-ash: #5b5b52; --ri-ash-dark: #8A8A93;
  --ri-line: rgba(24, 23, 28, 0.16); --ri-line-dim: rgba(255, 255, 255, 0.12);
  background: var(--ri-paper); color: var(--ri-ink);
}

/* the opener, back on ink */
.tpl-ri .ri__stage { background: var(--ri-ink); color: #F4F4F0; }
.tpl-ri .ri__b--sheet { background: var(--ri-paper); color: var(--ri-ink); border-bottom-color: var(--ri-ink); }
.tpl-ri .ri__b--sheet .mast__nav a { color: var(--ri-ink); }
.tpl-ri .ri__b--sheet .mast__nav a:hover,
.tpl-ri .ri__b--sheet .mast__nav a[aria-current="page"] { color: var(--ri-moss); text-decoration-color: var(--ri-moss); }
.tpl-ri .ri__stage .kit { stroke: var(--ri-mint); }
.tpl-ri .ri__stage .kit-dot { fill: var(--ri-mint); }
.tpl-ri .ri__kanji { color: var(--ri-mint); }
.tpl-ri .ri__kata { color: var(--ri-mint); }
.tpl-ri .ri__back .link { color: #F4F4F0; text-decoration-color: var(--ri-lime); }
.tpl-ri .ri__shout, .tpl-ri .ri__grn { color: var(--ri-lime); -webkit-text-fill-color: var(--ri-lime); background: none; }
.tpl-ri .ri__meta { color: var(--ri-ash-dark); }

/* the strip: lime as a fill with ink on it, 15:1 and unmistakably theirs */
.tpl-ri .ri__b--amber { background: var(--ri-lime); color: var(--ri-ink); border-top-color: var(--ri-ink); }
.tpl-ri .ri__b--amber .ri__deck { color: var(--ri-ink); }
.tpl-ri .ri__b--amber .sched { border-top-color: var(--ri-ink); }
.tpl-ri .ri__b--amber .sched dt { color: var(--ri-moss); }
.tpl-ri .ri__b--amber .sched dd { color: var(--ri-ink); }
.tpl-ri .ri__b--amber .sched dt, .tpl-ri .ri__b--amber .sched dd { border-bottom-color: rgba(24, 23, 28, 0.34); }

/* the cover, and the marks around it */
.tpl-ri .ri__fig .kn__tag { background: var(--ri-ink); color: var(--ri-lime); }
.tpl-ri .ri__fig .kn__lead { border-top-color: var(--ri-mint); }
.tpl-ri .ri__fig .kn__node { border-color: var(--ri-mint); background: var(--ri-ink); }
.tpl-ri .ri__fig .dim__svg { stroke: var(--ri-mint); }
.tpl-ri .ri__fig .dim__n, .tpl-ri .ri__fig .dim__cap { color: var(--ri-mint); }
.tpl-ri .ri__fig .dim__ext { border-left-color: var(--ri-mint); }
.tpl-ri .ri__screen--cover { outline-color: var(--ri-lime); }
.tpl-ri .ri__screen::after { background: repeating-linear-gradient(90deg, transparent 0 2px, rgba(24, 23, 28, 0.18) 2px 3px); }
.tpl-ri .ri__lbl { color: var(--ri-lime); background: rgba(24, 23, 28, 0.85); }
.tpl-ri .ri__tick { border-color: var(--ri-lime); }
.tpl-ri .kit-br--cover { border-color: var(--ri-lime); }
.tpl-ri .ri__cap { color: var(--ri-ash-dark); }

/* the article, on their cream paper */
.tpl-ri .ri__ch { background: var(--ri-paper); color: var(--ri-ink); }
.tpl-ri .ri__script { color: var(--ri-ink); opacity: 0.4; }
.tpl-ri .ri__gnum .kit-ghost__i { -webkit-text-stroke: 0.5px rgba(24, 23, 28, 0.28); }
.tpl-ri .ri__secn { color: var(--ri-moss); }
.tpl-ri .ri__h2 { color: var(--ri-ink); }
.tpl-ri .post-body--ri p { color: var(--ri-ink); }
.tpl-ri .post-body--ri a { color: var(--ri-moss); text-decoration-color: var(--ri-moss); }
.tpl-ri .post-body--ri blockquote.ri__brief { background: var(--ri-ink); color: #F4F4F0; }
.tpl-ri .post-body--ri blockquote.ri__brief::before { background: var(--ri-lime); }
.tpl-ri .post-body--ri blockquote.ri__brief p { color: #F4F4F0; }
.tpl-ri .ri__brief .brief__k { color: var(--ri-ash-dark); }
.tpl-ri .ri__scan { background: var(--ri-lime); }
.tpl-ri .ri__plate .plate__frame { outline-color: var(--ri-ink); }
.tpl-ri .ri__plate .plate__edge { background: var(--ri-lime); }
.tpl-ri .ri__plate .ri__tick { border-color: var(--ri-lime); }
.tpl-ri .kit-br--ri { border-color: var(--ri-ink); }
.tpl-ri .ri__capn, .tpl-ri .ri__chev--end { color: var(--ri-moss); }

/* the mid-article band */
.tpl-ri .ri__band { background: var(--ri-ink); color: #F4F4F0; }
.tpl-ri .ri__band-web { stroke: var(--ri-mint); }
.tpl-ri .ri__band-geo { stroke: var(--ri-mint); }
.tpl-ri .ri__band .sched { border-top-color: var(--ri-mint); }
.tpl-ri .ri__band .sched dt { color: var(--ri-mint); }
.tpl-ri .ri__band .sched dt, .tpl-ri .ri__band .sched dd { border-bottom-color: rgba(141, 234, 154, 0.3); }
.tpl-ri .ri__band-marks { color: var(--ri-mint); }
.tpl-ri .ri__band .kit-bar { color: var(--ri-mint); }

/* the segmented colour bar, switched back on: it is the brand's own mark and
   the one device here that is theirs rather than borrowed from the flyers */
.tpl-ri .ri__bar { display: flex; }
.tpl-ri .ri__bar i:nth-child(1) { background: var(--ri-lime); }
.tpl-ri .ri__bar i:nth-child(2) { background: var(--ri-mint); }
.tpl-ri .ri__bar i:nth-child(3) { background: var(--ri-moss); }
.tpl-ri .ri__bar i:nth-child(4) { background: var(--ri-ink-2); }
.tpl-ri .ri__band .ri__bar { display: flex; }

/* the hazard stripe, in their colours rather than amber on blueprint */
.tpl-ri .kit-hazard {
  background-image: repeating-linear-gradient(-45deg, var(--ri-ink) 0 10px, var(--ri-lime) 10px 20px);
}

/* ------------------------------------------------ mono, per surface -- */
/* v2 set every mono label inside .is-post to --blueprint, which is correct on
   the sheet and invisible anywhere else: on Rapid Impact's ink it measures
   1.29:1, so the schedule values were rendering as black on black. Mono is the
   face that carries the whole technical register, so it has to be resolved on
   each surface rather than once globally. */
.tpl-ri .ri__stage .mono-label, .tpl-ri .ri__stage .code, .tpl-ri .ri__stage .dim,
.tpl-ri .ri__stage .scale, .tpl-ri .ri__stage .kn__tag, .tpl-ri .ri__stage .cut__ref,
.tpl-ri .ri__stage .kit-bar__code, .tpl-ri .ri__stage .sched, .tpl-ri .ri__stage .tb,
.tpl-ri .ri__band .mono-label, .tpl-ri .ri__band .code, .tpl-ri .ri__band .dim,
.tpl-ri .ri__band .scale, .tpl-ri .ri__band .kit-bar__code, .tpl-ri .ri__band .sched,
.tpl-ri .ri__band .tb { color: var(--ri-mint); }

.tpl-ri .ri__band .sched dt, .tpl-ri .ri__stage .sched dt { color: var(--ri-mint); }
.tpl-ri .ri__band .sched dd, .tpl-ri .ri__stage .sched dd { color: #F4F4F0; }
.tpl-ri .ri__band .tb dt, .tpl-ri .ri__stage .tb dt { color: var(--ri-mint); }
.tpl-ri .ri__band .tb dd, .tpl-ri .ri__stage .tb dd { color: #F4F4F0; }

/* on their cream paper the same labels go to moss (5.4:1) over ink values */
.tpl-ri .ri__ch .mono-label, .tpl-ri .ri__ch .code, .tpl-ri .ri__ch .dim,
.tpl-ri .ri__ch .scale, .tpl-ri .ri__ch .kit-bar__code, .tpl-ri .ri__ch .sched dt { color: var(--ri-moss); }
.tpl-ri .ri__ch .sched dd { color: var(--ri-ink); }

/* the same catch-all for this site's own blueprint bands: anything mono that
   v2 painted blueprint has to become amber once the ground is the ink */
.band--blueprint .kit-bar__code,
.band--blueprint .plate__n--con,
.band--blueprint .sched,
.band--blueprint .tb,
.band--blueprint .kit-bar { color: var(--amber); }

/* ==================================================================== v3/ax ==
   Contrast, measured on the render rather than assumed. Every value below was
   read off the page by lab/contrast.mjs and corrected to the WCAG bar (4.5:1
   body, 3:1 large). The brief asks for measured contrast; these are the misses.
   ========================================================================== */

/* --quiet was #6a767c: 4.39:1 on the sheet and 4.01:1 on paper, so every mono
   label, meta line and caption in all four templates sat just under the bar.
   #626d72 is the same 200deg / 8% grey a step darker: 5.00 and 4.57. */
.is-post { --quiet: #626d72; }

/* On amber, --amber-deep measures 3.45:1 and fails at 9px. Blueprint on amber
   is 9.41:1, so the strip differentiates label from value by weight, which is
   the schedule convention anyway, not by a colour that cannot carry it. */
.print__strip .mono-label,
.print__strip .sched dt { color: var(--blueprint); font-weight: 400; }
.print__strip .sched dd { color: var(--blueprint); font-weight: 700; }

/* On the blueprint band a keynote chip keeps its sheet ground, so amber text
   on it measured 1.38:1. The chip inverts with the band instead. */
.band--blueprint .kn__tag { background: var(--blueprint); color: var(--amber); border-color: var(--sky); }
.band--blueprint .kn__lead { border-top-color: var(--sky); }
.band--blueprint .kn__node { border-color: var(--sky); background: var(--blueprint); }

/* Dimension text inherited --quiet, which is 2.96:1 on the ink. */
.band--blueprint .dim__n,
.band--blueprint .dim__cap,
.band--blueprint .plate__cap,
.band--blueprint .print__label,
.band--blueprint .post__meta,
.band--blueprint .foot__small,
.band--blueprint .post__tags { color: var(--sky); }
.band--blueprint .dim__svg { stroke: var(--sky); }
.band--blueprint .dim__ext { border-left-color: var(--sky); }

/* A folio numeral rendered blueprint on blueprint: 1.00:1, invisible. */
.band--blueprint .cut__n,
.band--blueprint .folio__num,
.band--blueprint .ch__num { color: #ffffff; }
.band--blueprint .cut__ref { color: var(--amber); }
.band--blueprint .kit-cut circle,
.band--blueprint .kit-cut path { stroke: var(--sky); }

/* Rapid Impact's lime strip sits inside .ri__stage, so the ink-band rules above
   it were painting paper (1.07:1) and mint (1.24:1) onto lime. On lime only the
   ink reads: 15.12:1. Label and value separate by weight. */
.tpl-ri .ri__b--amber .mono-label,
.tpl-ri .ri__b--amber .code,
.tpl-ri .ri__b--amber .sched,
.tpl-ri .ri__b--amber .sched dt { color: var(--ri-ink); font-weight: 400; }
.tpl-ri .ri__b--amber .sched dd { color: var(--ri-ink); font-weight: 700; }
.tpl-ri .ri__b--amber .sched dt,
.tpl-ri .ri__b--amber .sched dd { border-bottom-color: rgba(24, 23, 28, 0.34); }
.tpl-ri .ri__b--amber .kit { stroke: var(--ri-ink); }
.tpl-ri .ri__b--amber .kit-dot { fill: var(--ri-ink); }

/* Rapid Impact's moss and ash are brand values tuned for large type and for
   their dark ground; at 9 to 11px they land just under the bar on both of this
   template's surfaces (moss 4.23 on cream, 4.12 on ink; ash 3.35 on cream).
   Rather than change the brand, each gets a resolved step per surface: the same
   hue, moved only in lightness, which is what the palette already does between
   sky, blue-mid and blueprint. */
.tpl-ri {
  --ri-moss-deep: #287a45;   /* 5.19 on the cream paper */
  --ri-ash-deep:  #6c6c75;   /* 5.08 on the cream paper */
}
.tpl-ri .ri__ch .mono-label,
.tpl-ri .ri__ch .code,
.tpl-ri .ri__ch .dim,
.tpl-ri .ri__ch .scale,
.tpl-ri .ri__ch .kit-bar__code,
.tpl-ri .ri__ch .sched dt,
.tpl-ri .ri__secn,
.tpl-ri .ri__capn,
.tpl-ri .ri__chev--end,
.tpl-ri .post-body--ri a { color: var(--ri-moss-deep); }
.tpl-ri .ri__back .link,
.tpl-ri .ri__ch .post__back .link { color: var(--ri-moss-deep); }
.tpl-ri .ri__cap,
.tpl-ri .ri__ch .plate__cap,
.tpl-ri .ri__ch .post__meta,
.tpl-ri .ri__ch .post__tags,
.tpl-ri .ri__ch .foot__small { color: var(--ri-ash-deep); }

/* on the ink, the same jobs go the other way up the ramp to mint (12.2:1) */
.tpl-ri .ri__stage .ri__secn,
.tpl-ri .ri__band .ri__secn,
.tpl-ri .ri__stage .brief__k,
.tpl-ri .ri__band .brief__k,
.tpl-ri .post-body--ri blockquote.ri__brief .brief__k,
.tpl-ri .ri__stage .ri__cap,
.tpl-ri .ri__band .ri__cap { color: var(--ri-mint); }
.tpl-ri .ri__fig .ri__capn,
.tpl-ri .ri__stage .kit-bar__code { color: var(--ri-mint); }

/* The back link and the plate labels exist on both surfaces, so they cannot
   take one colour. Scoped by the ground they actually land on. */
.tpl-ri .ri__stage .ri__back .link,
.tpl-ri .ri__stage .post__back .link { color: #F4F4F0; text-decoration-color: var(--ri-lime); }
.tpl-ri .ri__stage .ri__back .link:hover,
.tpl-ri .ri__stage .post__back .link:hover { color: var(--ri-lime); }
.tpl-ri .ri__ch .post__back .link,
.tpl-ri .ri__ch .ri__back .link { color: var(--ri-moss-deep); }
.tpl-ri .ri__band .mono-label,
.tpl-ri .ri__band .ri__capn,
.tpl-ri .ri__band .ri__lbl,
.tpl-ri .ri__plate .ri__capn,
.tpl-ri .ri__plate .mono-label,
.tpl-ri .ri__plate .ri__lbl { color: var(--ri-mint); }

/* Rapid Impact's moss never clears the bar at label sizes on either surface
   (4.23 on cream, 4.12 on ink), so the token itself resolves to the deeper step
   and the ink surfaces use mint instead. The brand keeps its hue; only the
   lightness moves, and only where small type needs it. */
.tpl-ri { --ri-moss: #287a45; }
.tpl-ri .ri__ch .ri__plate .ri__capn,
.tpl-ri .ri__ch .ri__plate .mono-label,
.tpl-ri .ri__ch .ri__plate .ri__lbl,
.tpl-ri .ri__ch .plate__n { color: var(--ri-moss-deep); }

/* .ri__lbl is a chip with its own ink ground sitting on top of the picture, so
   it belongs to neither surface and must not follow the chapter. Lime on that
   chip is 12.4:1; the rule above had it following the cream paper down to moss. */
.tpl-ri .ri__lbl,
.tpl-ri .ri__ch .ri__plate .ri__lbl { color: var(--ri-lime); background: rgba(24, 23, 28, 0.85); }

/* ==================================================================== v3/c ==
   Template C, rebuilt on sign:age.

   The reference the brief calls "the whole brief in one image": architectural
   photography, halftoned and tinted to a blue monochrome, with isometric plan
   wireframes laid over it, dense micro-text used as pure texture, and layered
   translucent panels at different tints. Architecture treated as rave graphics
   with no seam between them, which is the thesis this template now carries.

   What it replaces: a warm diagonal ray wash. Streaks measure nothing, and
   cream-plus-diagonals is the look the brief exists to avoid.
   ========================================================================== */

/* the two fixed planes, behind everything, moving only by transform */
.sig { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

/* the screen: a dot halftone, not a gradient */
.sig__screen {
  position: absolute; inset: -10%;
  background-image: radial-gradient(circle at center, rgba(2, 48, 71, 0.5) 0.9px, transparent 1.1px);
  background-size: 6px 6px;
  opacity: 0.30;
}
/* the plan: struck once, large, and cropped by the viewport like a drawing
   sheet seen through a window rather than a diagram placed on the page */
.sig .iso {
  position: absolute; right: -12%; top: 4%;
  width: min(78vw, 1000px); height: min(62vh, 640px);
  color: var(--blue-mid); opacity: 0.42;
}
.iso__p { fill: none; stroke: currentColor; vector-effect: non-scaling-stroke; }
.iso .w-ref { stroke-width: 0.5; }
.iso .w-hid { stroke-width: 1; stroke-dasharray: 5 4; }
.iso .w-elev { stroke-width: 1.75; }

/* On the blueprint bands the planes invert so they stay visible without
   turning the ink grey. */
.tpl-focus .band--blueprint { isolation: isolate; }

/* the cover: grayscaled, tinted to the blueprint, then screened */
.tpl-focus .focus__frame { position: relative; isolation: isolate; }
.tpl-focus .focus__cv { filter: grayscale(1) contrast(1.06); }
.tpl-focus .focus__frame::before,
.tpl-focus .focus__frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.tpl-focus .focus__frame::before { background: var(--blueprint); mix-blend-mode: color; opacity: 0.86; }
.tpl-focus .focus__frame::after {
  background-image: radial-gradient(circle at center, rgba(2, 48, 71, 0.62) 1px, transparent 1.25px);
  background-size: 5px 5px;
  mix-blend-mode: multiply;
  opacity: 0.5;
}

/* micro-text: dense, tiny, deliberately illegible, and real strings */
.micro {
  position: absolute; right: 0; top: 8%;
  width: min(22rem, 30vw);
  z-index: 0; pointer-events: none; user-select: none;
  display: grid; gap: 1px;
  font-family: var(--sc-font-mono);
  font-size: 4.5px; line-height: 1.5; letter-spacing: 0.02em;
  color: var(--blueprint); opacity: 0.30;
  white-space: nowrap; overflow: hidden;
}
.band--blueprint .micro { color: var(--sky); opacity: 0.34; }

@media (max-width: 1099.98px) { .micro { display: none; } .sig .iso { opacity: 0.28; right: -30%; } }
@media (prefers-reduced-motion: reduce) { .sig { position: absolute; } }

/* The planes live inside the bands. The screen is a band-wide layer painted
   over the ground and under the content; the plan is struck into every other
   chapter and cropped by it. Both sit below text, so the contrast measured
   above is unaffected. */
.sig--band { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.sig--band .iso {
  position: absolute; right: -14%; top: 50%;
  width: min(70vw, 900px); height: min(56vh, 560px);
  transform: translateY(-50%);
  color: var(--blue-mid); opacity: 0.38;
}
.band--blueprint .sig--band .iso { color: var(--sky); opacity: 0.30; }

/* the halftone screen, per band */
.tpl-focus .focus__ch::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle at center, rgba(2, 48, 71, 0.5) 0.9px, transparent 1.1px);
  background-size: 6px 6px;
  opacity: 0.22;
}
.tpl-focus .band--blueprint.focus__ch::before {
  background-image: radial-gradient(circle at center, rgba(142, 202, 230, 0.55) 0.9px, transparent 1.1px);
  opacity: 0.20;
}
.tpl-focus .focus__ch > .sc-wrap { position: relative; z-index: 1; }
.tpl-focus .focus__ch .post-ch { position: relative; }

@media (max-width: 1099.98px) { .sig--band { display: none; } }

/* ------------------------------------------------ fill quote, realigned -- */
/* A fill quote is two copies of the same line stacked exactly: .fill__out is an
   outline in flow, .fill__in is absolutely positioned at inset 0 and wiped in
   by clip-path. inset 0 resolves against the padding box, so the border-left
   and padding-left the quote rule above adds shifted the flow copy by that
   padding while the absolute copy stayed put, and the two rendered doubled and
   illegible. The fill carries its own tipping-in mark instead. */
.is-post .post-body blockquote.fill:not(.pull) {
  border-left: 0;
  padding-left: 0;
}
.is-post .post-body blockquote.fill--win:not(.pull) {
  font-family: var(--sc-font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 1.02;
  font-size: clamp(1.5rem, 1rem + 2vw, 2.9rem);
  max-width: 20ch;
}
.is-post .fill__out { -webkit-text-stroke: 1.25px var(--blueprint); color: transparent; }
.is-post .fill--win .fill__in { color: var(--blue-deep); }
.band--blueprint .fill--win .fill__in { color: var(--amber); }

/* ==================================================================== v3/ix ==
   The blog index, on the same system as the posts it opens.

   blog.html was already loading post.css but carried no .is-post hook, so none
   of the drawing system reached it: the index stayed Fraunces on cream while
   every article behind it had moved to Kallisto on a band stack. Clicking a
   post changed languages, which is the same gap that started this work, only
   pointing the other way.
   ========================================================================== */

/* the accent that used to be a serif italic */
.is-index .shout {
  font-style: normal;
  color: var(--blue-deep);
}

/* Below a short page (an empty feed) the html ground shows: site.css paints it
   the old cream, so it takes the sheet like the body. */
html:has(body.is-index) { background: #f7f8f8; }

/* The chapter heading was still at the serif's weight in mixed case, with an
   italic numeral Kallisto cannot draw (the browser slanted it). Same register
   as the main pages' chapter heads (site-brand.css), at the size it had. */
.is-index .ch__title {
  font-weight: 900;
  font-style: normal;
  font-variation-settings: normal;
  text-transform: uppercase;
  letter-spacing: -0.012em;
  line-height: 0.95;
}
.is-index .ch__num {
  font-style: normal;
  font-weight: 900;
  font-size: 0.62em;
  color: var(--blue-deep);
  margin-right: 0.28em;
}

/* The list is a schedule of posts, so it reads as one: an index number, the
   title at display weight, the line under it, and the date as mono. */
.is-index .posts { list-style: none; margin: var(--sc-6) 0 0; padding: 0; counter-reset: post; }
.is-index .post { counter-increment: post; border-top: 1px solid var(--rule); }
.is-index .post:last-child { border-bottom: 1px solid var(--rule); }
.is-index .post__link {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: 0 clamp(0.8rem, 2vw, 1.6rem);
  padding: clamp(1.1rem, 2.4vw, 1.7rem) 0;
  text-decoration: none;
  color: inherit;
  transition: background-color 220ms var(--sc-ease-out);
}
.is-index .post__link::before {
  content: "0" counter(post);
  grid-row: 1 / span 3;
  font-family: var(--sc-font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--blue-deep);
  padding-top: 0.45rem;
}
.is-index .post__h {
  margin: 0;
  font-family: var(--sc-font-display);
  font-weight: 900;
  font-style: normal;
  font-variation-settings: normal;
  text-transform: uppercase;
  letter-spacing: -0.012em;
  line-height: 0.98;
  font-size: clamp(1.35rem, 0.9rem + 1.9vw, 2.5rem);
  max-width: 20ch;
  text-wrap: balance;
}
.is-index .post__d {
  margin: 0.5rem 0 0;
  font-family: var(--sc-font-text);
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 56ch;
  color: var(--second);
}
.is-index .post__meta {
  margin: 0.6rem 0 0;
  font-family: var(--sc-font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--quiet);
}
.is-index .post__link:hover,
.is-index .post__link:focus-visible { background: rgba(2, 48, 71, 0.045); }
.is-index .post__link:hover .post__h,
.is-index .post__link:focus-visible .post__h { color: var(--blue-deep); }
.is-index .post__link:focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 3px; }

@media (max-width: 700px) {
  .is-index .post__link { grid-template-columns: 2.2rem minmax(0, 1fr); }
}

/* ------------------------------------------------- the ghost, relocated -- */
/* Parked at the top of every chapter the ghost crowded the section cut and the
   sheet code that already sit there, and five identical entrances read as one
   effect rather than as a page. It now steps down the chapter and reverses
   direction each time, so the movement registers as movement. */
.is-post .print__ghost { top: auto; bottom: auto; }
.is-post .kit-ghost--top { top: -4rem; }
.is-post .kit-ghost--mid { top: 38%; }
.is-post .kit-ghost--bot { bottom: -2rem; }
.is-post .kit-ghost--rtl .kit-ghost__i { transform: translate3d(calc((var(--sc-p, 0) - 0.5) * 22vw), 0, 0); }
.is-post .kit-ghost--rtl { left: auto; right: -1vw; }

@media (prefers-reduced-motion: reduce) {
  .is-post .kit-ghost--rtl .kit-ghost__i { transform: none !important; }
}

/* ==================================================================== v4/b ==
   Template B: the reveal and the rail.

   The word-window is gone. It stretched the title's longest word to a fixed
   width with lengthAdjust="spacingAndGlyphs", which distorts the letterforms
   and fails outright on a long word, and the concept only worked when the word
   happened to be short. The cover now opens as a set of louvres (PostFX
   'slats'), which is a mechanism rather than a typographic trick and stays
   correct whatever the title says.
   ========================================================================== */
.win__plate { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; }
.win__cv { display: block; width: 100%; height: 100%; }
.win__frame { position: relative; }

/* The drawn aperture behind the stage, in place of the nested circles: one of
   the real tech shapes, opening as the act runs. Hairline stroke around a
   knocked-out fill, which is how these were exported. */
.win__aperture {
  position: absolute;
  right: -8vw; top: 4%;
  width: min(58vw, 760px); height: min(58vw, 760px);
  z-index: 0; pointer-events: none;
  color: var(--blue-mid);
  opacity: 0.30;
  transform: scale(calc(0.42 + var(--sc-p, 0) * 0.72)) rotate(calc(var(--sc-p, 0) * 14deg));
  transform-origin: 70% 40%;
  will-change: transform;
}
.win__aperture svg { width: 100%; height: 100%; overflow: visible; }
.win__aperture path { fill: none; stroke: currentColor; stroke-width: 0.6; vector-effect: non-scaling-stroke; }

/* One drawn shape per chapter in the rail, scaled by the chapter's own
   progress so it opens as you read rather than sitting there. */
.win__shape {
  display: block;
  width: min(15rem, 22vw); height: min(15rem, 22vw);
  color: var(--blue-mid);
  opacity: 0.55;
  transform: scale(calc(0.6 + var(--sc-p, 0) * 0.5));
  transform-origin: 50% 50%;
  will-change: transform;
}
.win__shape svg { width: 100%; height: 100%; overflow: visible; }
.win__shape path { fill: none; stroke: currentColor; stroke-width: 0.7; vector-effect: non-scaling-stroke; }
.band--blueprint .win__shape, .band--blueprint .win__aperture { color: var(--sky); }

@media (prefers-reduced-motion: reduce) {
  .win__aperture, .win__shape { transform: none !important; }
}

/* ==================================================================== v4/d ==
   Template D: less on the page, and what stays is placed.

   The chapter had three large things stacked in the same corner: the same kanji
   every time, the chapter numeral, and a field of generated outline geometry,
   all behind the copy. Three of them competing in one place is not layering, it
   is noise, and the copy had to be read through it.
   ========================================================================== */

/* The kanji: a different one per chapter, in a different place, and far enough
   back that it is a tint rather than an object. Filled at a few percent instead
   of outlined, so it reads as a ground and never as a second heading. */
.tpl-ri .ri__script {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  color: var(--ri-ink);
  opacity: 1;
}
.tpl-ri .ri__script svg { width: 100%; height: 100%; overflow: visible; }
.tpl-ri .ri__script path {
  fill: currentColor;
  fill-opacity: 0.035;
  stroke: currentColor;
  stroke-opacity: 0.10;
  stroke-width: 0.4;
  vector-effect: non-scaling-stroke;
}

/* lower left, clear of the reading column */
.tpl-ri .ri__script--low { left: -3vw; bottom: -4rem; top: auto; right: auto; width: min(34vw, 440px); height: min(34vw, 440px); }
/* right, high, small */
.tpl-ri .ri__script--right { right: 2vw; top: 2rem; left: auto; bottom: auto; width: min(26vw, 340px); height: min(26vw, 340px); }
/* the oversized pass: wider than the page, clipped by both edges, nearly gone */
.tpl-ri .ri__script--over {
  left: 50%; top: 50%;
  width: 140vw; height: 70vw;
  margin: 0;
  transform: translate(-50%, -50%);
  right: auto; bottom: auto;
}
.tpl-ri .ri__script--over path { fill-opacity: 0.022; stroke-opacity: 0.05; }
.tpl-ri .ri__ch { overflow: clip; }

/* The numeral now travels away from the copy instead of into it: it sits on the
   opposite side from the script and runs left to right with the scroll. */
.tpl-ri .ri__gnum { left: auto; right: 4%; top: -1.5rem; }
.tpl-ri .ri__gnum .kit-ghost__i {
  transform: translate3d(calc((var(--sc-p, 0) - 0.5) * 16vw), 0, 0);
  -webkit-text-stroke: 0.5px rgba(24, 23, 28, 0.22);
}
.tpl-ri .ri__script--right ~ .ri__gnum { right: auto; left: 3%; }

/* One drawn shape in the opener and one in the band, both from the flyer set. */
.tpl-ri .ri__openshape,
.tpl-ri .ri__bandshape { position: absolute; z-index: 1; pointer-events: none; color: var(--ri-mint); opacity: 0.5; }
.tpl-ri .ri__openshape { left: 3%; bottom: -5rem; width: 17rem; height: 17rem; }
.tpl-ri .ri__bandshape { right: 6%; top: 8%; width: 13rem; height: 13rem; }
.tpl-ri .ri__openshape svg, .tpl-ri .ri__bandshape svg { width: 100%; height: 100%; overflow: visible; }
.tpl-ri .ri__openshape path, .tpl-ri .ri__bandshape path {
  fill: none; stroke: currentColor; stroke-width: 0.7; vector-effect: non-scaling-stroke;
}

/* C gets the same treatment: one drawn shape per chapter. */
.focus__shape { position: absolute; right: 4%; top: 6rem; z-index: 0; pointer-events: none; width: min(16rem, 20vw); height: min(16rem, 20vw); color: var(--blue-mid); opacity: 0.45; transform: scale(calc(0.7 + var(--sc-p, 0) * 0.4)); will-change: transform; }
.focus__shape svg { width: 100%; height: 100%; overflow: visible; }
.focus__shape path { fill: none; stroke: currentColor; stroke-width: 0.7; vector-effect: non-scaling-stroke; }
.band--blueprint .focus__shape { color: var(--sky); }

/* The schedule in the lime strip ran as a narrow block pinned right. It now
   spreads across the full measure of the band, which is what a schedule does. */
.tpl-ri .ri__b--amber { grid-template-columns: minmax(0, 1fr); gap: 0.7rem; }
.tpl-ri .ri__b--amber .ri__deck { max-width: 62ch; }
.tpl-ri .ri__b--amber .sched { justify-self: stretch; display: flex; flex-wrap: wrap; gap: 0 clamp(1.2rem, 4vw, 3.4rem); width: 100%; }
.tpl-ri .ri__b--amber .sched .sched__row { display: flex; align-items: baseline; gap: 0.5rem; flex: 1 1 auto; }

@media (max-width: 1099.98px) {
  .tpl-ri .ri__script--over { width: 190vw; height: 95vw; }
  .tpl-ri .ri__script--right { display: none; }
  .focus__shape { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tpl-ri .ri__gnum .kit-ghost__i, .focus__shape { transform: none !important; }
}

/* The lime strip's schedule reads across the band, not down it. .sched__row is
   display: contents by default so the dl can be a two-column grid; here the
   rows become real boxes again and lay out as a row of label/value pairs. */
.tpl-ri .ri__b--amber .sched { display: flex; flex-wrap: wrap; gap: 0.2rem clamp(1rem, 3.4vw, 3rem); width: 100%; border-top: 1px solid var(--ri-ink); padding-top: 0.4rem; }
.tpl-ri .ri__b--amber .sched__row { display: flex; align-items: baseline; gap: 0.45rem; }
.tpl-ri .ri__b--amber .sched dt,
.tpl-ri .ri__b--amber .sched dd { border-bottom: 0; padding: 0.1rem 0; text-align: left; }
.tpl-ri .ri__b--amber { padding-block: clamp(0.9rem, 2.2svh, 1.5rem); }

/* ==================================================================== v4/c+d ==
   D's contour lines, and C's callouts.
   ========================================================================== */

/* The lines used to draw themselves in place, which made them read as two half
   panels, one on each side, rather than as one run of contours. They are now a
   single wide set that starts at the left edge and travels across as the act
   runs, so the movement is the effect. */
.tpl-ri .ri__web {
  left: -46%;
  width: 150%;
  transform: translate3d(calc(var(--sc-p, 0) * 42%), 0, 0);
  will-change: transform;
}
.tpl-ri .ri__web path {
  /* draw in early, then it is travel rather than draw that carries it */
  stroke-dashoffset: calc(1 - clamp(0, (var(--sc-p, 0) - var(--d, 0)) * 3.2, 1));
}
.tpl-ri .ri__band-web {
  left: -40%;
  width: 140%;
  transform: translate3d(calc(var(--sc-p, 0) * 34%), 0, 0);
  will-change: transform;
}

/* C: the callouts draw with the scroll rather than on a fixed delay, so the
   plate's instrumentation assembles as you come down onto it. */
.tpl-focus .kn__lead {
  transition: none;
  transform: scaleX(clamp(0, (var(--sc-p, 0) - 0.06) * 3.4, 1));
}
.tpl-focus .kn__node {
  transition: none;
  opacity: clamp(0, (var(--sc-p, 0) - 0.22) * 5, 1);
}
.tpl-focus .dim__svg line,
.tpl-focus .dim__svg path { stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, (var(--sc-p, 0) - 0.1) * 2.6, 1)); vector-effect: non-scaling-stroke; }
.tpl-focus .dim__ext { transform: scaleY(clamp(0, (var(--sc-p, 0) - 0.14) * 4, 1)); transform-origin: top; }
.tpl-focus .scale { opacity: clamp(0, (var(--sc-p, 0) - 0.3) * 4, 1); }

@media (prefers-reduced-motion: reduce) {
  .tpl-ri .ri__web, .tpl-ri .ri__band-web { transform: none !important; }
  .tpl-focus .kn__lead { transform: scaleX(1) !important; }
  .tpl-focus .kn__node, .tpl-focus .scale { opacity: 1 !important; }
  .tpl-focus .dim__svg line, .tpl-focus .dim__svg path { stroke-dashoffset: 0 !important; }
  .tpl-focus .dim__ext { transform: none !important; }
}

/* ------------------------------------------- the contact sheet, at width -- */
/* The panning rail falls back to a grid under 700px, but the stage it sits in
   keeps display:flex, and a flex item will not shrink below its content's
   min-content width. With one body picture the rail never rendered, so this
   never showed; with two it forced the document 832px wide at a 390px
   viewport. The sheet fallback is a block, and the rail is allowed to shrink. */
.frames__sheet { display: block; }
.frames--sheet .frames__rail { min-width: 0; width: 100%; }
.frames--sheet .frame { min-width: 0; width: auto; }
.frames--sheet .frame__plate { width: 100%; }

/* ==================================================================== v5/a ==
   Template A: one ghost placement, one direction, more travel.

   The ghost word now sits where chapter two had it on every chapter, and always
   runs right to left. Travel goes from 22vw to 29vw (about a third further), so
   the movement registers as travel rather than drift. The earlier per-chapter
   position cycle and direction flip are gone: read end to end they made each
   chapter look like a restart instead of a continuation.
   ========================================================================== */
.is-post .kit-ghost__i {
  transform: translate3d(calc((0.5 - var(--sc-p, 0)) * 29vw), 0, 0);
}
/* the two alternates are retired; --top is the placement */
.is-post .kit-ghost--mid { top: -4rem; }
.is-post .kit-ghost--bot { bottom: auto; top: -4rem; }
.is-post .kit-ghost--rtl { left: -1vw; right: auto; }
.is-post .kit-ghost--rtl .kit-ghost__i {
  transform: translate3d(calc((0.5 - var(--sc-p, 0)) * 29vw), 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .is-post .kit-ghost__i, .is-post .kit-ghost--rtl .kit-ghost__i { transform: none !important; }
}

/* ==================================================================== v5/d ==
   Template D: the numerals, the kanji, and one chapter on ink.
   ========================================================================== */

/* Numerals: right side on every chapter (the third had drifted left), and
   about 15% further travel. */
.tpl-ri .ri__gnum { left: auto; right: 4%; }
.tpl-ri .ri__script--right ~ .ri__gnum { left: auto; right: 4%; }
.tpl-ri .ri__gnum .kit-ghost__i {
  transform: translate3d(calc((var(--sc-p, 0) - 0.5) * 18.5vw), 0, 0);
}

/* Kanji: only the oversized passes survive, and they sit a touch further back.
   'over' is clipped by the sides; 'tall' is clipped by the top and bottom. */
.tpl-ri .ri__script path { fill-opacity: 0.026; stroke-opacity: 0.07; }
.tpl-ri .ri__script--over path { fill-opacity: 0.018; stroke-opacity: 0.045; }
.tpl-ri .ri__script--tall {
  left: 50%; top: 50%;
  width: 62vw; height: 150%;
  transform: translate(-50%, -50%);
  right: auto; bottom: auto; margin: 0;
}
.tpl-ri .ri__script--tall svg { width: 100%; height: 100%; }
.tpl-ri .ri__script--tall path { fill-opacity: 0.02; stroke-opacity: 0.05; }

/* Chapter three on ink. Paper and lime on #18171C both clear 15:1; the brief
   takes the brand gradient with ink type on it, mint's darker end still 11:1. */
.tpl-ri .ri__ch--ink { background: var(--ri-ink); color: #F4F4F0; }
.tpl-ri .ri__ch--ink .ri__h2 { color: #ffffff; }
.tpl-ri .ri__ch--ink .post-body--ri p,
.tpl-ri .ri__ch--ink .post-body--ri li { color: #F4F4F0; }
.tpl-ri .ri__ch--ink .ri__secn,
.tpl-ri .ri__ch--ink .ri__capn,
.tpl-ri .ri__ch--ink .ri__chev--end { color: var(--ri-lime); }
.tpl-ri .ri__ch--ink .post-body--ri a { color: var(--ri-lime); text-decoration-color: var(--ri-lime); }
.tpl-ri .ri__ch--ink .post-ch--line::before { background: var(--ri-lime); }
.tpl-ri .ri__ch--ink .ri__gnum .kit-ghost__i { -webkit-text-stroke: 0.5px rgba(244, 244, 240, 0.28); }
.tpl-ri .ri__ch--ink .ri__plate .plate__frame { outline-color: var(--ri-lime); }
.tpl-ri .ri__ch--ink .ri__plate .plate__edge { background: var(--ri-lime); }
.tpl-ri .ri__ch--ink .kit-br--ri { border-color: var(--ri-lime); }
.tpl-ri .ri__ch--ink .ri__fig .kn__tag { background: var(--ri-lime); color: var(--ri-ink); }
.tpl-ri .ri__ch--ink .kn__lead, .tpl-ri .ri__ch--ink .kn__node { border-color: var(--ri-lime); }
.tpl-ri .ri__ch--ink .kn__node { background: var(--ri-ink); }
.tpl-ri .ri__ch--ink .dim__svg { stroke: var(--ri-mint); }
.tpl-ri .ri__ch--ink .dim__n, .tpl-ri .ri__ch--ink .dim__cap, .tpl-ri .ri__ch--ink .scale, .tpl-ri .ri__ch--ink .plate__n { color: var(--ri-mint); }
.tpl-ri .ri__ch--ink .dim__ext { border-left-color: var(--ri-mint); }
.tpl-ri .ri__ch--ink .plate__cap, .tpl-ri .ri__ch--ink .ri__cap { color: #C9C9C0; }
.tpl-ri .ri__ch--ink .ri__brief .brief__k { color: rgba(24, 23, 28, 0.62); }

/* the brief on the ink chapter: the brand gradient, ink type */
.tpl-ri .ri__ch--ink .post-body--ri blockquote.ri__brief {
  background: linear-gradient(93deg, var(--ri-lime) 10%, var(--ri-mint) 100%);
  color: var(--ri-ink);
}
.tpl-ri .ri__ch--ink .post-body--ri blockquote.ri__brief p { color: var(--ri-ink); }
.tpl-ri .ri__ch--ink .post-body--ri blockquote.ri__brief::before { background: var(--ri-ink); }

@media (max-width: 1099.98px) {
  .tpl-ri .ri__script--tall { width: 120vw; }
}

/* ==================================================================== v5/b ==
   Template B: the rail lines up, and only the shape moves.
   ========================================================================== */
.win__stick { gap: 1.4rem; }
.win__marks { margin: 0; }
.win__marks .kit-badges { margin-left: 0; }
/* the shape opens from its top-left corner, so its left edge stays on the
   marks' left edge instead of sliding away as it scales */
.win__shape { transform-origin: 0 0; margin-left: 0; }

/* ==================================================================== v5/c ==
   Template C: the numeral was ink on ink on the blueprint chapter.
   ========================================================================== */
.band--blueprint .focus__ghost { color: rgba(142, 202, 230, 0.16); }
.band--paper .focus__ghost, .band--sheet .focus__ghost { color: rgba(2, 48, 71, 0.075); }

/* The Pantheon section draws itself in as the chapter scrolls: each path is
   normalised to pathLength 1 and staggered by --d, so the ground comes first,
   then the drum, the dome, the beam, the portico, and the dimension string. */
.iso--pantheon path {
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - clamp(0, (var(--sc-p, 0) - var(--d, 0)) * 1.7, 1));
  vector-effect: non-scaling-stroke;
  fill: none;
}
.iso--pantheon .w-cut { stroke-width: 2.2; }
.iso--pantheon .w-elev { stroke-width: 1.25; }
.iso--pantheon .w-hid { stroke-width: 0.9; stroke-dasharray: 1; }
.iso--pantheon .w-ref { stroke-width: 0.5; }
.sig--band .iso--pantheon { opacity: 0.55; }
.band--blueprint .sig--band .iso--pantheon { opacity: 0.42; }

/* C's plates and micro-text take rates of their own, so the chapter has three
   planes moving against the copy instead of one. */
.tpl-focus .plate--focus .plate__img { --par: -0.42; }
.tpl-focus .micro { transform: translate3d(0, calc((0.5 - var(--sc-p, 0)) * 6vh), 0); will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .iso--pantheon path { stroke-dashoffset: 0 !important; }
  .tpl-focus .micro { transform: none !important; }
}
/* the numeral on ink, a step brighter: legible as a numeral, still a ghost */
.band--blueprint .focus__ghost { color: rgba(142, 202, 230, 0.22); }
/* the plate number inside the caption on the ink chapter: mint, 11:1, not the
   moss that the cream chapters use (3.36:1 against ink) */
.tpl-ri .ri__ch--ink .ri__cap .plate__n,
.tpl-ri .ri__ch--ink .plate__n.ri__capn { color: var(--ri-mint); }

/* ==================================================================== v6 ==
   A: much more travel. C: the drawing finishes early and sits lower and to
   the right; the tech shapes draw themselves in. D: the kanji shows.
   ========================================================================== */

/* A: 29vw was still read as drift. 56vw carries the word clear across the
   column and out the left side before the chapter ends. */
.is-post .kit-ghost__i,
.is-post .kit-ghost--rtl .kit-ghost__i {
  transform: translate3d(calc((0.5 - var(--sc-p, 0)) * 56vw), 0, 0);
}

/* C: the section completes by 60% of the block. Stagger now tops out near
   0.3 (set in the renderer) and each path draws over the next 0.3, so the last
   line lands at ~0.6 with the block still on screen. */
.iso--pantheon path {
  stroke-dashoffset: calc(1 - clamp(0, (var(--sc-p, 0) - var(--d, 0)) * 3.4, 1));
}
/* lower and to the right */
.sig--band .iso { top: 60%; right: -6%; }
.sig--band .iso--pantheon { opacity: 0.6; }

/* C: the tech shapes on the middle blocks. Down and to the right of where they
   sat, and drawn in from nothing, complete at 60% of the block; the scale
   pulse is gone because the draw is the animation now. */
.focus__shape { right: 0.5%; top: 9.5rem; transform: none; }
.focus__shape--draw path {
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - clamp(0, var(--sc-p, 0) * 1.67, 1));
}
@media (max-width: 1099.98px) { .focus__shape { display: none; } }

/* D: the oversized kanji were so far past the frame that almost none of the
   glyph was left on the page. Still bigger than the frame, still clipped, but
   with most of the form showing, and a step less transparent so it reads. */
.tpl-ri .ri__script--over { width: 108vw; height: 54vw; }
.tpl-ri .ri__script--over path { fill-opacity: 0.032; stroke-opacity: 0.075; }
.tpl-ri .ri__script--tall { width: 58vw; height: 118%; }
.tpl-ri .ri__script--tall path { fill-opacity: 0.032; stroke-opacity: 0.075; }
@media (max-width: 1099.98px) {
  .tpl-ri .ri__script--over { width: 150vw; height: 75vw; }
  .tpl-ri .ri__script--tall { width: 110vw; }
}

@media (prefers-reduced-motion: reduce) {
  .is-post .kit-ghost__i, .is-post .kit-ghost--rtl .kit-ghost__i { transform: none !important; }
  .focus__shape--draw path { stroke-dashoffset: 0 !important; }
}

/* --------------------------------------------------- v6.1: kanji visible -- */
/* Chapter two's wide pass: same clip, twice the ink. */
.tpl-ri .ri__script--over path { fill-opacity: 0.05; stroke-opacity: 0.11; }

/* Chapter four: the kanji is a wide wordmark, so a tall box only ever held a
   horizontal strip of it in the middle. Turned through 90 degrees it runs as a
   vertical column, which is how the script is actually set, and the top and
   bottom of the page clip it the way the sides clip chapter two. */
.tpl-ri .ri__script--tall {
  left: 76%; top: 50%;
  width: 118vh; height: 24vw;
  transform: translate(-50%, -50%) rotate(90deg);
}
.tpl-ri .ri__script--tall path { fill-opacity: 0.05; stroke-opacity: 0.11; }
@media (max-width: 1099.98px) {
  .tpl-ri .ri__script--tall { left: 70%; width: 130vh; height: 40vw; }
}

/* C: the drawn shapes read a touch too faint while drawing; heavier line, more ink. */
.focus__shape { opacity: 0.62; }
.focus__shape path { stroke-width: 0.95; }
/* v6.2: checked on the page at 0.05 they were still a guess rather than a
   glyph. 0.075 fill / 0.16 stroke reads as a tint of the script without
   competing with the copy in front of it. */
.tpl-ri .ri__script--over path,
.tpl-ri .ri__script--tall path { fill-opacity: 0.075; stroke-opacity: 0.16; }

/* ==================================================================== v7 ==
   A: 90vw. C: dome further right and down, shapes draw late enough to be seen
   and turn a quarter as the block passes. B: marks locked, shape travels.
   ========================================================================== */
.is-post .kit-ghost__i,
.is-post .kit-ghost--rtl .kit-ghost__i {
  transform: translate3d(calc((0.5 - var(--sc-p, 0)) * 90vw), 0, 0);
}

/* C: the dome, to the right and down (the green circle) */
.sig--band .iso { top: 70%; right: -15%; }

/* C: the shape at the top of a block is on screen from p≈0.15 to ≈0.75, so a
   draw that ran 0→0.6 was three quarters done before it was really in view.
   It now starts at 0.2 and completes at 0.65, and turns 90° across the block. */
.focus__shape--draw path {
  stroke-dashoffset: calc(1 - clamp(0, (var(--sc-p, 0) - 0.2) * 2.22, 1));
}
.focus__shape {
  transform: rotate(calc(var(--sc-p, 0) * 90deg));
  transform-origin: 50% 50%;
  will-change: transform;
}

/* B: the badge row belongs to the block and stays where the block puts it;
   the drawn shape is the only thing that travels. The whole rail used to be
   sticky, which is why the marks appeared to move too. */
.win__stick { position: static; height: 100%; display: flex; flex-direction: column; gap: 1.4rem; }
.win__marks { position: static; }
.win__shape { position: sticky; top: clamp(4rem, 14vh, 8rem); }

@media (prefers-reduced-motion: reduce) {
  .focus__shape { transform: none !important; }
  .focus__shape--draw path { stroke-dashoffset: 0 !important; }
}

/* ==================================================================== v8 ==
   Direct notes from the review of the tenth pass.
   ========================================================================== */

/* ---- A: a wider measure, larger plates, the ghost carries further, and
   every poche wipes on behind a scan line like the cover does ---- */
.tpl-print { --sc-measure: 78ch; }
.tpl-print .post-body--print,
.tpl-print .post-body--print p,
.tpl-print .copy p { max-width: 78ch; }
.tpl-print .ch__title--post { max-width: 20ch; }
.tpl-print .pull--print p { max-width: 34ch; }
@media (min-width: 1100px) {
  .tpl-print .print__ch .post-ch { margin-left: clamp(0px, 3vw, 4rem); }
  /* plates a third larger; the bleed is recomputed from the same width */
  .tpl-print .plate--margin {
    width: clamp(18.2rem, 24.7vw, 27.3rem);
    margin-right: calc(-1 * (clamp(18.2rem, 24.7vw, 27.3rem) + 1.5rem));
  }
  .tpl-print .band--blueprint .plate--margin { width: clamp(28rem, 41vw, 44rem); }
}
.is-post .kit-ghost__i,
.is-post .kit-ghost--rtl .kit-ghost__i {
  transform: translate3d(calc((0.5 - var(--sc-p, 0)) * 150vw), 0, 0);
}
/* the poche wipes on left to right behind a scan line. Not a clip on the
   panel itself: a clip-path that hides an element zeroes its intersection
   rect and the engine's observer never fires (the .type-on bug again). A
   cover in the band's own ground slides off to the right instead, the warm
   line riding its leading edge, then the cover is gone. */
.tpl-print .pull--print { overflow: hidden; }
.tpl-print .pull--print::before {
  content: "";
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: var(--sheet);
  transform: translateX(0);
  transition: transform 1100ms cubic-bezier(0.22, 0.7, 0.18, 1);
}
.band--blueprint .tpl-print .pull--print::before,
.tpl-print .band--blueprint .pull--print::before { background: var(--blueprint); }
.tpl-print .pull--print::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: 0; width: 12px; z-index: 4; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 226, 138, 0) 0%, rgba(255, 244, 214, 0.95) 55%, rgba(255, 226, 138, 0) 100%);
  transform: translateX(-12px);
  transition: transform 1100ms cubic-bezier(0.22, 0.7, 0.18, 1), opacity 220ms linear 980ms;
}
.tpl-print .pull--print.sc-in::before { transform: translateX(101%); }
.tpl-print .pull--print.sc-in::after { transform: translateX(calc(100% * 40)); opacity: 0; }
/* the offset reference frame is drawn by the old ::after; it moves to a box-shadow ring */
.tpl-print .pull--print { box-shadow: 12px 12px 0 -11px var(--rule-2); }

/* ---- B: the shapes stop growing and turn slowly instead ---- */
.win__shape { transform: rotate(calc(var(--sc-p, 0) * 70deg)); transform-origin: 50% 50%; }

/* ---- D: the hero at 1.6x, the kanji full width at the back and drifting
   down, one full-width run of contour lines, the rings flickering on from
   the centre ---- */
@media (min-width: 861px) {
  .tpl-ri .ri__grid { grid-template-columns: minmax(0, 0.58fr) minmax(0, 1.42fr); }
}
.tpl-ri .ri__screen--cover { max-height: min(80svh, 46rem); width: 100%; }
.tpl-ri .ri__kanji {
  right: auto; left: -18vw; top: -4%;
  width: 136vw; max-width: none;
  opacity: 0.3; z-index: 0;
}
.tpl-ri .ri__kanji svg { width: 100%; height: auto; }
.tpl-ri .ri__web {
  left: 0; width: 100%; top: 26%; height: 70%;
  transform: none;
  opacity: 0.32;
}
.tpl-ri .ri__web path { stroke-dashoffset: calc(1 - clamp(0, (var(--sc-p, 0) - var(--d, 0)) * 2.4, 1)); }
.tpl-ri .ri__band-web { display: none; }
/* the rings no longer draw in: each one flickers on, innermost first */
.tpl-ri .ri__rings circle { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; transform: none !important; transition: none; }
.tpl-ri .ri__rings circle:nth-child(1) { opacity: calc(clamp(0, (var(--sc-p, 0) - 0.370) * 200, 1) - clamp(0, (var(--sc-p, 0) - 0.378) * 200, 1) + clamp(0, (var(--sc-p, 0) - 0.386) * 200, 1)); }
.tpl-ri .ri__rings circle:nth-child(2) { opacity: calc(clamp(0, (var(--sc-p, 0) - 0.315) * 200, 1) - clamp(0, (var(--sc-p, 0) - 0.323) * 200, 1) + clamp(0, (var(--sc-p, 0) - 0.331) * 200, 1)); }
.tpl-ri .ri__rings circle:nth-child(3) { opacity: calc(clamp(0, (var(--sc-p, 0) - 0.260) * 200, 1) - clamp(0, (var(--sc-p, 0) - 0.268) * 200, 1) + clamp(0, (var(--sc-p, 0) - 0.276) * 200, 1)); }
.tpl-ri .ri__rings circle:nth-child(4) { opacity: calc(clamp(0, (var(--sc-p, 0) - 0.205) * 200, 1) - clamp(0, (var(--sc-p, 0) - 0.213) * 200, 1) + clamp(0, (var(--sc-p, 0) - 0.221) * 200, 1)); }
.tpl-ri .ri__rings circle:nth-child(5) { opacity: calc(clamp(0, (var(--sc-p, 0) - 0.150) * 200, 1) - clamp(0, (var(--sc-p, 0) - 0.158) * 200, 1) + clamp(0, (var(--sc-p, 0) - 0.166) * 200, 1)); }
.tpl-ri .ri__rings circle:nth-child(6) { opacity: calc(clamp(0, (var(--sc-p, 0) - 0.095) * 200, 1) - clamp(0, (var(--sc-p, 0) - 0.103) * 200, 1) + clamp(0, (var(--sc-p, 0) - 0.111) * 200, 1)); }
.tpl-ri .ri__rings circle:nth-child(7) { opacity: calc(clamp(0, (var(--sc-p, 0) - 0.040) * 200, 1) - clamp(0, (var(--sc-p, 0) - 0.048) * 200, 1) + clamp(0, (var(--sc-p, 0) - 0.056) * 200, 1)); }
@media (prefers-reduced-motion: reduce) {
  .tpl-print .pull--print::before, .tpl-print .pull--print::after { display: none; }
  .win__shape { transform: none !important; }
  .tpl-ri .ri__rings circle { opacity: 1 !important; }
}

/* rings: corrected order, innermost (nth-child 1) first */
.tpl-ri .ri__rings circle:nth-child(1) { opacity: calc(clamp(0, (var(--sc-p, 0) - 0.040) * 200, 1) - clamp(0, (var(--sc-p, 0) - 0.048) * 200, 1) + clamp(0, (var(--sc-p, 0) - 0.056) * 200, 1)); }
.tpl-ri .ri__rings circle:nth-child(2) { opacity: calc(clamp(0, (var(--sc-p, 0) - 0.095) * 200, 1) - clamp(0, (var(--sc-p, 0) - 0.103) * 200, 1) + clamp(0, (var(--sc-p, 0) - 0.111) * 200, 1)); }
.tpl-ri .ri__rings circle:nth-child(3) { opacity: calc(clamp(0, (var(--sc-p, 0) - 0.150) * 200, 1) - clamp(0, (var(--sc-p, 0) - 0.158) * 200, 1) + clamp(0, (var(--sc-p, 0) - 0.166) * 200, 1)); }
.tpl-ri .ri__rings circle:nth-child(4) { opacity: calc(clamp(0, (var(--sc-p, 0) - 0.205) * 200, 1) - clamp(0, (var(--sc-p, 0) - 0.213) * 200, 1) + clamp(0, (var(--sc-p, 0) - 0.221) * 200, 1)); }
.tpl-ri .ri__rings circle:nth-child(5) { opacity: calc(clamp(0, (var(--sc-p, 0) - 0.260) * 200, 1) - clamp(0, (var(--sc-p, 0) - 0.268) * 200, 1) + clamp(0, (var(--sc-p, 0) - 0.276) * 200, 1)); }
.tpl-ri .ri__rings circle:nth-child(6) { opacity: calc(clamp(0, (var(--sc-p, 0) - 0.315) * 200, 1) - clamp(0, (var(--sc-p, 0) - 0.323) * 200, 1) + clamp(0, (var(--sc-p, 0) - 0.331) * 200, 1)); }
.tpl-ri .ri__rings circle:nth-child(7) { opacity: calc(clamp(0, (var(--sc-p, 0) - 0.370) * 200, 1) - clamp(0, (var(--sc-p, 0) - 0.378) * 200, 1) + clamp(0, (var(--sc-p, 0) - 0.386) * 200, 1)); }


/* ==================================================================== v9/c ==
   Template C's line work moved to fx-draw.js / fx-draw.css. The rules below
   retire the earlier stylesheet draw: pathLength="1" under vector-effect:
   non-scaling-stroke made Chrome resolve every dash in screen pixels, so the
   drawings appeared as one-pixel dot patterns instead of a pen. fx-draw
   measures real lengths and writes dash values inline; these resets only
   remove what would fight it.
   ========================================================================== */
.tpl-focus .iso--pantheon path,
.tpl-focus .focus__shape--draw path,
.tpl-focus .dim__svg line,
.tpl-focus .dim__svg path { vector-effect: none; stroke-dasharray: none; stroke-dashoffset: 0; }
.tpl-focus .iso--pantheon .w-hid { stroke-dasharray: none; }
.tpl-focus .focus__shape { transform: none; will-change: auto; }
.tpl-focus .kn__lead { transform: none; transition: none; }
.tpl-focus .kn__node { transition: none; }
.tpl-focus .dim__ext { transform: none; }
.tpl-focus .scale { opacity: 1; }
.tpl-focus.is-post .post-ch--line::before { width: 1px; transform: none; }

/* ---- A, from the review of v8: the measure comes in a step, and on the
   blueprint bands the plate stops floating into the copy: it sits in the flow
   at the full measure, between paragraphs, where nothing can hide behind it ---- */
.tpl-print { --sc-measure: 68ch; }
.tpl-print .post-body--print,
.tpl-print .post-body--print p,
.tpl-print .copy p { max-width: 68ch; }
@media (min-width: 1100px) {
  .tpl-print .band--blueprint .plate--margin,
  .tpl-print .band--blueprint .plate--margin-left {
    float: none; clear: both;
    width: 100%; max-width: 68ch;
    margin: var(--sc-6) 0 var(--sc-7);
  }
  .tpl-print .band--blueprint .plate--margin .plate__frame,
  .tpl-print .band--blueprint .plate--margin .plate__frame--drift { aspect-ratio: 16 / 10; }
  .tpl-print .band--blueprint .pull--print { margin-left: 0; }
  /* sheet-band margin plates a touch smaller than the v8 jump so the column
     and the plate never meet */
  .tpl-print .plate--margin {
    width: clamp(16rem, 21vw, 24rem);
    margin-right: calc(-1 * (clamp(16rem, 21vw, 24rem) + 1.5rem));
  }
}

/* ---- D, from review: the band's marks in lime, matching the barcode and
   micro text beside them (the badge row set its own blueprint colour) ---- */
.tpl-ri .ri__band .kit-badges,
.tpl-ri .ri__band .kit-badge,
.tpl-ri .ri__band .kit-badge svg { color: var(--ri-lime); fill: var(--ri-lime); }

/* ---- touch: the "Blog" back link is 29px wide; give it a 44px target
   without moving its text (the padding is transparent) ---- */
.is-post .post__back .link { display: inline-block; min-width: 44px; min-height: 44px; line-height: 44px; margin-left: -0.35rem; padding-inline: 0.35rem; }

/* ============================================================ footer social ==
   The footer's small line carries Zack's outside profiles (LinkedIn,
   Instagram, Facebook) on every page and post: ink on the sheet, a 44px
   target, the accent on hover and focus. */
.foot__social a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--sc-ink);
  text-decoration: none;
  transition: color var(--sc-d-fast) var(--sc-ease-out);
}
.foot__social a:hover,
.foot__social a:focus-visible {
  color: var(--sc-accent);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

/* Six links in the masthead since Reel joined the nav: on the narrowest phones
   the mono, tracked-out labels close up a little so the line still fits. */
@media (max-width: 380px) {
  .ri__stage .mast__nav a,
  .ri__b--sheet .mast__nav a,
  .tpl-ri .ri__b--sheet .mast__nav a { letter-spacing: 0.06em; padding-inline: 0.3rem; }
}
