@font-face { font-family: "SS4 Text"; src: url("/assets/fonts/ss4-text-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "SS4 Text"; src: url("/assets/fonts/ss4-text-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "SS4 Text"; src: url("/assets/fonts/ss4-text-semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "SS4 Small"; src: url("/assets/fonts/ss4-smtext-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "SS4 Display"; src: url("/assets/fonts/ss4-display-semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "SS4 Fallback"; src: local("Georgia"); size-adjust: 98.8%; ascent-override: 104.9%; descent-override: 33.9%; line-gap-override: 0%; }

:root {
  --paper: #FCFCFA;
  --paper-2: #F2F2EE;
  --ink: #17181B;
  --ink-2: #565A61;
  --ink-3: #8B8F96;
  --rule: #D6D6D2;
  --accent: #A3231A;
  --accent-hover: #7E1A13;
  --wash: #F4E1DD;

  --text: "SS4 Text", "SS4 Fallback", Georgia, serif;
  --small: "SS4 Small", "SS4 Text", "SS4 Fallback", Georgia, serif;
  --display: "SS4 Display", "SS4 Text", "SS4 Fallback", Georgia, serif;
  --code: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;

  --gut: 1.25rem;
  --gap: 2.5rem;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.1875rem/1.6 var(--text);
  font-variant-numeric: oldstyle-nums proportional-nums;
  font-kerning: normal; font-synthesis: none;
  hanging-punctuation: first;
}
h1, h2, h3, p, dl, dd, ol, ul, figure, table, pre { margin: 0; }
ol, ul { padding: 0; list-style: none; }
p { text-wrap: pretty; }
h1, h2 { text-wrap: balance; }
strong, b { font-weight: 600; }
abbr { font-variant-caps: all-small-caps; letter-spacing: .04em; text-decoration: none; }
:is(h1, h2, h3, strong, b, th, caption, .kicker, .step-n, .c-t) abbr { font-variant-caps: normal; letter-spacing: 0; }
code { font-family: var(--code); font-size: .84em; white-space: nowrap; }
.dates, time, td, th, .num { font-variant-numeric: lining-nums tabular-nums; }
.sep { color: var(--ink-3); padding: 0 .4em; }
.nw { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

a { color: var(--accent); text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: .2em;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
a:hover, a:focus-visible { color: var(--accent-hover); text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 1px; }
::selection { background: var(--wash); }
button { font: inherit; color: inherit; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: .5rem 1rem; z-index: 10; }

/* ---------- the grid ---------- */
.g {
  display: grid;
  grid-template-columns:
    [full-start] minmax(var(--gut), 1fr)
    [wide-start] minmax(0, 12rem)
    [text-start] minmax(0, 40rem)
    [text-end] minmax(0, 18rem)
    [wide-end] minmax(var(--gut), 1fr) [full-end];
  column-gap: var(--gap);
}
.g > * { grid-column: text; }
.wide, .g > .wide { grid-column: wide; }
.full, .g > .full { grid-column: full; }
.entry, .roles, .roles > div { grid-column: full; display: grid; grid-template-columns: subgrid; }
.entry > .l { grid-column: wide-start / text-start; }
.entry > .t { grid-column: text; }
.entry > .n { grid-column: text-end / wide-end; }

/* ---------- running head ---------- */
.rh { align-items: baseline; padding: 1.1rem 0 1rem; border-bottom: 1px solid var(--rule);
  font: 400 .9375rem/1.4 var(--small); }
.rh > .rh-name { grid-column: wide-start / text-start; color: var(--ink); text-decoration: none; font-family: var(--text); font-weight: 600; }
.rh > .rh-nav { grid-column: text; }
.rh-nav .sep { padding: 0 .3em 0 .55em; }
.rh-nav a { white-space: nowrap; }
.rh > .rh-end { grid-column: text-end / wide-end; justify-self: end; display: flex; align-items: baseline; gap: 1.25rem; }
.lang { white-space: nowrap; font: 400 .875rem/1.4 var(--small); letter-spacing: .04em; }
.lang .sep { padding: 0 .3em; }
.lang a { color: var(--ink-2); text-decoration: none; }
.lang a:hover, .lang a:focus-visible { color: var(--accent); text-decoration: underline; }
.lang a[aria-current] { color: var(--ink); font-weight: 600; font-family: var(--text); }
.motion-toggle { background: none; border: 1px solid var(--rule); border-radius: 2px; padding: .2rem .65rem; cursor: pointer;
  font: 400 .875rem/1.4 var(--small); color: var(--ink-2); transition: border-color 120ms, color 120ms; }
.motion-toggle:hover { border-color: var(--ink-2); color: var(--ink); }
.motion-toggle:active { transform: scale(.97); }
.motion-toggle[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }

/* ---------- title ---------- */
.title { padding-top: clamp(3rem, 9vh, 6.5rem); }
.title h1 { grid-column: wide; font: 600 clamp(3rem, 11.5vw, 10.4rem)/.9 var(--display); letter-spacing: -.028em; margin-left: -.04em; }
.title .role { grid-column: wide; margin-top: 1.1rem; font: italic 400 clamp(1.2rem, 1.8vw, 1.5rem)/1.3 var(--text); color: var(--ink-2); }
.title .lede { grid-column: wide-start / text-end; grid-row: 3; margin-top: 2.75rem; font-size: clamp(1.25rem, 1.75vw, 1.5625rem); line-height: 1.45; max-width: 33em; }
.particulars { grid-column: text-end / wide-end; grid-row: 3; margin-top: 3.15rem; font: 400 .9375rem/1.45 var(--small); }
.particulars div { padding: .45rem 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 5.5rem 1fr; }
.particulars dt { color: var(--ink-2); font-style: italic; font-family: var(--text); }

.contents { grid-column: wide; margin-top: clamp(3rem, 7vh, 5rem); border-top: 2px solid var(--ink); }
.contents-h { font: italic 400 .9375rem/1 var(--text); color: var(--ink-2); padding: .8rem 0 1rem; }
.contents ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.contents a { display: block; color: var(--ink); text-decoration: none; }
.c-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-2); }
.c-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.c-img--cs { background: #050B19; } .c-img--cs img { object-position: 50% 38%; transform: scale(1.45); }
.c-img--dw { background: #1E3E31; }
.c-img--fb img { object-position: 0 0; }
.c-t { display: block; margin-top: .7rem; font: 600 1.125rem/1.3 var(--text); }
.c-d { display: block; font: 400 .9375rem/1.4 var(--small); color: var(--ink-2); margin-top: .15rem; }
.contents a:hover .c-t, .contents a:focus-visible .c-t { color: var(--accent); }

/* ---------- section heads ---------- */
.sec-head { grid-column: wide; margin-top: clamp(5rem, 12vh, 8.5rem); padding-top: 1rem; border-top: 2px solid var(--ink); display: grid; grid-template-columns: subgrid; }
.g > .sec-head { grid-column: wide; }
.sec-head .sec-h { grid-column: wide-start / text-end; }
.sec-head .deck { grid-column: text; }
.sec-h { font: 600 clamp(2.6rem, 5.2vw, 4.75rem)/.95 var(--display); letter-spacing: -.02em; }
.sec-h--small { font-size: clamp(1.9rem, 3.2vw, 2.75rem); }
.sec-head .deck { margin-top: 1rem; font-size: 1.3125rem; line-height: 1.5; color: var(--ink-2); }
.sec-head--small { margin-top: 5rem; }

/* ---------- body text ---------- */
.entry { margin-top: 3rem; }
.entry .t p + p { margin-top: .85em; }
.entry .t p { hyphens: auto; }
.entry h3 { font: 400 1.1875rem/1.4 var(--text); margin-bottom: .6rem; }
.entry h3 strong { font-weight: 600; }
.l.dates { font: 400 .9375rem/1.9 var(--small); color: var(--ink-2); padding-top: .1rem; }
.n { font: 400 .9375rem/1.5 var(--small); color: var(--ink-2); padding-top: .25rem; }
sup { line-height: 0; vertical-align: baseline; position: relative; top: -.4em; }
sup a, .mark { font: 600 .75rem/1 var(--text); text-decoration: none; }
.mark { color: var(--accent); margin-right: .25em; }
.feat-h { text-wrap: balance; }
.dropcap::first-letter { font: 600 3.6em/.8 var(--display); float: left; margin: .08em .08em 0 -.02em; }

.roles { margin-top: 3.5rem; border-top: 1px solid var(--rule); }
.roles > div { padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.roles dt { grid-column: wide-start / text-start; font: 400 .9375rem/1.9 var(--small); color: var(--ink-2); }
.roles dd { grid-column: text; }
.roles h3 { font: 400 1.125rem/1.4 var(--text); }
.roles h3 strong { font-weight: 600; }
.roles p { font-size: 1.0625rem; color: var(--ink-2); margin-top: .2rem; }

.stack { font: 400 .9375rem/1.6 var(--small); color: var(--ink-2); margin-top: 1.5rem; }
.wide-text { grid-column: wide; }

/* ---------- figures ---------- */
.fig { margin-top: 3.5rem; }
.fig figcaption, .story-cap, .plate-small figcaption, .plate-paper figcaption, .ba figcaption, .shot-annot figcaption {
  font: 400 .9375rem/1.5 var(--small); color: var(--ink-2); margin-top: .9rem; max-width: 44em; }
figcaption b, .story-cap b { color: var(--ink); font-family: var(--text); font-weight: 600; }
.fig-ctl { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; margin-top: 1rem; }
.fig-play, .phases button, .vid-btn, .annot button {
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--accent);
  font: 400 .9375rem/1.4 var(--small); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: .2em; }
.fig-play { font-family: var(--text); font-weight: 600; text-decoration: none; border: 1px solid currentColor; border-radius: 2px; padding: .12rem .6rem; transition: background-color 120ms, color 120ms; }
.fig-play:hover { background: var(--accent); color: var(--paper); }
.fig-play:active, .vid-btn:active { transform: scale(.97); }
.phases { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.phases button[aria-pressed="true"] { color: var(--ink); text-decoration-color: var(--ink); text-decoration-thickness: 2px; }
.fig-status { font: italic 400 1.0625rem/1.45 var(--text); margin-top: .7rem; min-height: 2.9em; }

/* Figure 1: timeline */
.tl-wrap { margin-top: 2.5rem; }
.tl { display: block; width: 100%; height: auto; overflow: visible; }
.tl--m { display: none; }
.tl text { font-family: var(--small); font-size: 14px; fill: var(--ink); }
.tl--m text { font-size: 11.5px; }
.tl .tl-org { font-family: var(--text); font-weight: 600; }
.tl-bar { fill: var(--ink-3); }
.tl-bar--main { fill: var(--ink); }
.tl-bar--edu { color: var(--ink-3); }
.tl-year { stroke: var(--rule); stroke-width: 1; }
.tl .tl-yt { font-family: var(--display); font-weight: 600; font-size: 26px; fill: var(--ink-3); font-variant-numeric: lining-nums; }
.tl--m .tl-yt { font-size: 15px; }
.tl-axis { stroke: var(--ink); stroke-width: 1.25; }
.tl-now { stroke: var(--ink-3); stroke-dasharray: 2 3; }
.tl-cursor line { stroke: var(--accent); stroke-width: 1.75; }
.tl .tl-curlab { fill: var(--accent); font-size: 13px; font-family: var(--text); font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }
.tl--m .tl-curlab { font-size: 11px; }
.tl-lab { transition: opacity .3s ease-out; }
.tl-lab.is-pre { opacity: 0; }

/* Figure 2: FHIR */
.fhir > * { min-width: 0; }
.fhir { display: grid; grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); gap: 3rem; align-items: center;
  padding: 2rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.fhir-seq { width: 100%; height: auto; display: block; }
.fhir-seq text { font: 400 14px var(--small); fill: var(--ink); }
.fhir-actor rect { fill: var(--paper); stroke: var(--ink); stroke-width: 1.25; }
.fhir-actor:first-child rect { stroke: var(--accent); stroke-width: 1.75; }
.fhir-actor text { font-family: var(--text); font-weight: 600; font-size: 15px; }
.fhir-life { stroke: var(--rule); stroke-dasharray: 3 4; }
.fhir-arrow { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 0; }
.fhir-arrow--back { stroke-width: 1.2; }
.fhir-head { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.fhir-msg text { font-family: var(--code); font-size: 13px; }
.fhir-pkt { fill: var(--accent); opacity: 0; }
.fhir-code code { white-space: pre; font-size: inherit; }
.fhir-code { font: 400 .875rem/1.75 var(--code); color: var(--ink); overflow-x: auto; background: var(--paper-2); padding: 1.1rem 1.25rem; border-left: 2px solid var(--accent); }
.fhir-code .ln { display: block; transition: opacity .25s ease-out; }
.fhir-code .ln--resp { color: var(--ink); }
.c-k { color: var(--accent); font-weight: 600; }
.c-s, .c-n { color: #23524A; }

/* ---------- plates (product colour spreads) ---------- */
.feature { margin-top: clamp(5rem, 12vh, 8rem); }
.plate { --pbg: #050B19; --pink: #E9EBF1; --pink-2: #9AA2B5; --pacc: #F29A8B;
  background: var(--pbg); color: var(--pink); padding: clamp(3.5rem, 9vh, 6.5rem) 0 clamp(3rem, 7vh, 5rem); row-gap: 0; }
.plate--dw { --pbg: #1E3E31; --pink: #EEF3EF; --pink-2: #A9C2B4; --pacc: #F5B19C; }
.plate--bw { --pbg: #121318; --pink: #ECECEE; --pink-2: #9C9EA7; --pacc: #F29A8B; }
.plate a { color: var(--pacc); }
.plate a:hover { color: #fff; }
.plate :focus-visible { outline-color: var(--pacc); }
.plate .fig-play { color: var(--pacc); }
.plate .fig-play:hover { background: var(--pacc); color: var(--pbg); }
.plate .sep { color: var(--pink-2); }
.plate figcaption { font: 400 .9375rem/1.5 var(--small); color: var(--pink-2); margin-top: .9rem; max-width: 46em; }
.plate figcaption b { color: var(--pink); }
.kicker { font: italic 400 1.0625rem/1.4 var(--text); color: var(--pink-2, var(--ink-2)); }
.feat-h { font: 600 clamp(3.4rem, 8.8vw, 8.5rem)/.88 var(--display); letter-spacing: -.035em; margin: .9rem 0 0 -.04em; }
.plate .deck { font-size: clamp(1.2rem, 1.6vw, 1.4375rem); line-height: 1.45; margin-top: 1.6rem; max-width: 30em; color: var(--pink); }
.plate-link { margin-top: 1.5rem; font: 400 1rem/1.4 var(--small); }

.plate--cs { grid-template-columns: [full-start] minmax(var(--gut), 1fr) [wide-start] minmax(0, 29rem) [mid] minmax(0, 43.5rem) [wide-end] minmax(var(--gut), 1fr) [full-end]; align-items: center; }
.plate--cs > .plate-text { grid-column: wide-start / mid; }
.plate--cs > .plate-media { grid-column: mid / wide-end; }
.plate--cs .feat-h { font-size: clamp(3.4rem, 6.4vw, 6.25rem); }
.pull { margin-top: 2.25rem; padding-top: 1.1rem; border-top: 1px solid color-mix(in srgb, var(--pink) 22%, transparent); }
.pull-n { display: block; font: 600 clamp(3.5rem, 6vw, 5.5rem)/.95 var(--display); letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.pull-l { display: block; font: italic 400 1.0625rem/1.4 var(--text); color: var(--pink-2); margin-top: .35rem; }

.plate-text--wide { grid-column: wide; display: grid; grid-template-columns: subgrid; }
.plate-text--wide > * { grid-column: wide-start / text-end; }
.plate-text--wide .deck, .plate-text--wide .plate-link { grid-column: text; }
.plate-media { margin-top: 0; }
.plate:not(.plate--cs) > .plate-media { grid-column: wide; margin-top: clamp(2.5rem, 6vh, 4rem); }
.media-bw img { display: block; width: 100%; height: auto; }

.vid { position: relative; }
.vid video { display: block; width: 100%; height: auto; background: #000; }
.media-dw .vid video { background: #1E3E31; }
.vid-btn { margin-right: .5rem; min-width: 3.6em; text-align: center; font-size: .875rem; }

/* ---------- CS2Locker: scrollytelling ---------- */
.story { grid-column: wide; display: grid; grid-template-columns: minmax(0, 21rem) minmax(0, 1fr); column-gap: 4.5rem; margin-top: 3rem; }
.story-graphic { grid-column: 2; grid-row: 1; position: sticky; top: 4vh; height: 92vh; display: flex; flex-direction: column; justify-content: center; }
.story-steps { grid-column: 1; grid-row: 1; padding: 30vh 0 34vh; }
.story-steps li { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; transition: opacity .3s ease-out; }
.js .story-steps li:not(.is-on) { opacity: .38; }
.step-n { font: 600 1.3125rem/1.3 var(--text); margin-bottom: .5rem; }
.step-n::before { content: counter(step) "  "; counter-increment: step; color: var(--accent); font-variant-numeric: lining-nums; }
.story-steps { counter-reset: step; }
.story-steps li p:not(.step-n) { font-size: 1.125rem; line-height: 1.6; }
.px-wrap { position: relative; }
.px { display: block; width: 100%; height: auto; max-height: 82vh; overflow: visible; }
.px--m { display: none; }
.px-canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; color: var(--accent); }
.px text { font-family: var(--small); font-size: 13px; fill: var(--ink); }
.px--m text { font-size: 13px; }
.px .px-cnt, .px .px-colhead, .px .px-tick, .px .px-hubnote, .px .px-reft { font-size: 11px; fill: var(--ink-2); }
.px--m .px-cnt, .px--m .px-colhead, .px--m .px-tick, .px--m .px-hubnote, .px--m .px-reft { font-size: 12.5px; }
.px .px-price, .px .px-cnt, .px .px-tick, .px .px-endt { font-variant-numeric: lining-nums tabular-nums; }
.px-colhead { font-style: italic; }
.route { fill: none; stroke: var(--rule); stroke-width: 1.1; }
.route--nc { stroke-dasharray: 2 4; }
.route--out { stroke: var(--ink); stroke-width: 1.5; }
.px-hub rect { fill: var(--ink); }
.px .px-hub text:not(.px-hubnote) { fill: var(--paper); font-family: var(--text); font-weight: 600; font-size: 15px; }
.px--m .px-hub text:not(.px-hubnote) { font-size: 14px; }
.px-grid { stroke: var(--rule); stroke-width: 1; }
.px-axl, .px-break { stroke: var(--ink); stroke-width: 1.1; fill: none; }
.px-stem { stroke: var(--rule); stroke-width: 1; }
.px-dot { fill: var(--ink); }
.is-lo .px-dot { fill: var(--accent); }
.is-lo .px-name, .is-steam .px-name, .is-lo .px-price, .is-steam .px-price { font-family: var(--text); font-weight: 600; }
.px-bracket path { fill: none; stroke: var(--accent); stroke-width: 1.25; }
.px .px-bracket text { fill: var(--accent); font-family: var(--text); font-weight: 600; font-size: 13px; }
.px-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.px-ref { stroke: var(--accent); stroke-dasharray: 4 4; stroke-width: 1.2; }
.px .px-reft { fill: var(--accent); }
.px-end { fill: var(--ink); }
.px-end--now { fill: var(--accent); }
.px .px-endt { font-family: var(--text); font-weight: 600; font-size: 13px; paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }

/* step states: default (no JS) is "spread" */
.px-routes, .px-hub, .px-axis, .px-bracket, .px-chart, .px-dot, .px-stem, .px-price, .px-row, .px-cnt, .px-name, .px-colhead { transition: opacity .5s ease-out; }
.px-dot { transition: transform .8s cubic-bezier(.3, .7, .2, 1) calc(var(--i) * 28ms), opacity .4s ease-out calc(var(--i) * 28ms); }
.px-line { transition: stroke-dashoffset 1.8s cubic-bezier(.45, .05, .25, 1) .2s; }
[data-step="sources"] :is(.px-axis, .px-bracket, .px-chart, .px-stem, .px-price, .px-colhead--price) { opacity: 0; }
[data-step="sources"] .px-dot { opacity: 0; transform: translateX(var(--dx)); transition: opacity .15s ease-out, transform 0s linear .15s; }
[data-step="ladder"] :is(.px-routes, .px-hub, .px-bracket, .px-chart),
[data-step="spread"] :is(.px-routes, .px-hub, .px-chart),
[data-step="history"] :is(.px-routes, .px-hub, .px-bracket, .px-axis, .px-colhead) { opacity: 0; }
[data-step="spread"] .px-row:not(.is-lo):not(.is-steam) { opacity: .3; }
[data-step="history"] .px-row { opacity: 0; }
[data-step="history"] .px-chart { opacity: 1; }
:not([data-step="history"]) > .px-wrap .px-line { stroke-dashoffset: 1; transition-duration: 0s; }
.story-graphic:not([data-step="sources"]) .px-canvas { opacity: 0; }

/* annotated screenshot */
.shot-annot { margin-top: 5rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 17rem); gap: var(--gap); align-items: end; }
.shot { position: relative; overflow: hidden; background: #020916; }
.shot img { display: block; width: 100%; height: auto; }
.shot-scrim { position: absolute; inset: 0; background: rgba(2, 5, 12, .66); opacity: 0; transition: opacity .2s ease-out; pointer-events: none; }
.shot::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7%; background: linear-gradient(rgba(2, 9, 22, 0), #020916 85%); pointer-events: none; }
.shot-win { position: absolute; inset: 0; background: 0 0 / 100% 100% no-repeat;
  clip-path: inset(var(--t, 40%) var(--r, 40%) var(--b, 40%) var(--l, 40%) round 8px); opacity: 0; pointer-events: none;
  transition: opacity .2s ease-out, clip-path .38s var(--ease-out); }
.shot[data-focus] .shot-scrim, .shot[data-focus] .shot-win { opacity: 1; }
.shot-annot figcaption { margin-top: 0; }
.annot { margin: .75rem 0 1rem; }
.annot li { padding: .45rem 0; border-top: 1px solid var(--rule); color: var(--ink-2); }
.annot button { font-size: inherit; text-align: left; }
.annot button.is-on { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.small { font-size: .875rem; }

/* Table 1 + build notes */
.built-block { margin-top: 5rem; display: grid; grid-template-columns: minmax(0, 19rem) minmax(0, 1fr); gap: 4.5rem; align-items: start; }
table { border-collapse: collapse; width: 100%; font: 400 1rem/1.45 var(--small); }
caption { text-align: left; font: 400 .9375rem/1.4 var(--small); color: var(--ink-2); padding-bottom: .6rem; }
caption b { color: var(--ink); font-family: var(--text); }
.figures { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); }
.figures th { text-align: left; font-weight: 400; padding: .5rem 0; border-bottom: 1px solid var(--rule); }
.figures td { text-align: right; padding: .5rem 0; border-bottom: 1px solid var(--rule); }
.built h3 { font: 600 1.375rem/1.3 var(--text); margin-bottom: .9rem; }
.built dl > div { display: grid; grid-template-columns: 8rem 1fr; gap: 1.5rem; padding: .7rem 0; border-top: 1px solid var(--rule); }
.built dt { font: 600 1rem/1.6 var(--text); }
.built dd { font-size: 1.0625rem; line-height: 1.55; }

/* ---------- Draweroo ---------- */
.pair { margin-top: 4rem; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; }
.pair .fig { margin-top: 0; }
.dw-svg { display: block; width: 100%; height: auto; overflow: visible; }
.dw-svg text { font-family: var(--small); }
.dim { stroke: var(--ink-2); stroke-width: 1; }
.dim-t, .dw-front { font-size: 12px; fill: var(--ink-2); font-variant-numeric: lining-nums; }
.dw-front { font-style: italic; }
.dw-plate, .gap-svg .plate { fill: #BFC6BB; }
.dw-cells rect, .gap-svg .cell { fill: #ECEFE8; }
.dw-svg .hatch-line { stroke: var(--accent); stroke-width: 1.4; }
.gap-svg .hatch-line { stroke: var(--ink-3); stroke-width: 1.2; }
.dw-svg .call, .gap-svg .call { font-size: 12px; fill: var(--accent); font-family: var(--text); font-weight: 600; font-variant-numeric: lining-nums; }
.gap-svg .call--gap { fill: var(--ink); }
.dw-binr { fill: var(--c); stroke: rgba(0, 0, 0, .16); stroke-width: 1; }
.dw-div { stroke: rgba(0, 0, 0, .26); stroke-width: 1; }
.dw-svg .dw-lab { font-family: var(--text); font-weight: 600; font-size: 12.5px; fill: #15171a; }
.dw-binlab { transform-box: fill-box; transform-origin: 50% 50%; }
.dw-binlab text { paint-order: stroke; stroke: var(--c); stroke-width: 5px; stroke-linejoin: round; }
.dw-lab--two { display: none; }
.dw-svg .dw-sz { font-size: 9.5px; fill: rgba(0, 0, 0, .62); font-variant-numeric: lining-nums; }
.dw-sel { fill: none; stroke: var(--accent); stroke-width: 2.5; opacity: 0; }
.dw-bin { transform-box: fill-box; transform-origin: 50% 50%; }
.dw-col { transform-box: fill-box; transform-origin: 50% 0; }
.dw-seams line { stroke: var(--ink); stroke-width: 1.6; stroke-dasharray: 6 4; }
.dw-svg .dw-part { font: 600 15px var(--display); fill: var(--ink); paint-order: stroke; stroke: rgba(255, 255, 255, .75); stroke-width: 3px; }
.dw-drawer { fill: none; stroke: var(--ink); stroke-width: 2.25; stroke-dasharray: 1; stroke-dashoffset: 0; }
.media-build .vid video { background: #e8ebe8; border: 1px solid var(--rule); }

.fig-gap { margin-top: 5rem; padding-top: 1.75rem; border-top: 1px solid var(--rule); }
.gap-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; font: 400 1rem/1.4 var(--small); }
.gap-ctl label { font-family: var(--text); font-weight: 600; }
.gap-ctl input { flex: 1 1 16rem; max-width: 28rem; accent-color: var(--accent); }
.gap-out { font: 600 1.5rem/1 var(--display); font-variant-numeric: lining-nums tabular-nums; min-width: 5ch; }
.gap-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: 1.5rem; }
.gap-h { font: 600 1.0625rem/1.3 var(--text); margin-bottom: .4rem; }
.gap-svg { display: block; width: 100%; height: auto; overflow: visible; }
.gap-svg text { font-family: var(--small); }
.gap-svg .drawer { fill: none; stroke: var(--ink); stroke-width: 2; }
.gap-t { font: 400 .9375rem/1.5 var(--small); color: var(--ink-2); margin-top: .35rem; }

.parts { margin-top: 4.5rem; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); }
.parts th, .parts td { text-align: left; vertical-align: top; padding: .6rem 1.25rem .6rem 0; border-bottom: 1px solid var(--rule); }
.parts thead th { font-style: italic; font-family: var(--text); color: var(--ink-2); font-weight: 400; }
.parts tbody th { font-family: var(--text); font-weight: 600; }
.parts .note { color: var(--ink-2); }

/* ---------- open source ---------- */
.os-intro { margin-top: clamp(5rem, 12vh, 8rem); }
.os-intro .sec-head { margin-top: 0; }
#freebird.feature { margin-top: 3rem; }
.feat-head { grid-column: wide; display: grid; grid-template-columns: subgrid; }
.feat-head > * { grid-column: wide-start / text-end; }
.feat-head .deck { grid-column: text; font-size: clamp(1.2rem, 1.6vw, 1.4375rem); line-height: 1.45; margin-top: 1.4rem; max-width: 30em; }
.feat-h--paper { color: var(--ink); }
.plate-paper { margin-top: 3rem; }
.plate-paper img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); }
.n-phone img { display: block; width: 100%; max-width: 15rem; height: auto; border: 1px solid var(--rule); }
.n-phone figcaption { margin-top: .5rem; }

.fig-fb { margin-top: 4rem; }
.fb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1.15fr); gap: 3.25rem; padding: 2.25rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.fb-col { position: relative; }
.fb-col + .fb-col::before { content: "→"; position: absolute; left: -2.3rem; top: 3.1rem; color: var(--ink-3); font-size: 1.25rem; }
.fb-h { font: italic 400 1rem/1.3 var(--text); color: var(--ink-2); margin-bottom: .9rem; }
.fb-tx { display: grid; grid-template-columns: auto 1fr auto; gap: .9rem; align-items: baseline; padding: .8rem .9rem; border: 1px solid var(--ink); background: var(--paper);
  font: 400 1rem/1.35 var(--small); }
.fb-date { color: var(--ink-2); font-variant-numeric: lining-nums tabular-nums; }
.fb-who { font-family: var(--text); font-weight: 600; }
.fb-who small { display: block; font: 400 .8125rem/1.3 var(--small); color: var(--ink-2); }
.fb-amt { font-variant-numeric: lining-nums tabular-nums; font-family: var(--text); font-weight: 600; }
.fb-note { font: 400 .875rem/1.4 var(--small); color: var(--ink-2); margin-top: .55rem; }
.fb-card { position: relative; padding: .8rem .9rem 1rem; border: 1px dashed var(--ink-2); transition: border-color .2s; }
.fb-card.is-conf { border-style: solid; border-color: var(--ink); }
.fb-conf { font: 400 .875rem/1.3 var(--small); color: var(--ink-2); }
.fb-conf span { font-variant-numeric: lining-nums; }
.fb-rule { font: 600 1.125rem/1.3 var(--text); margin-top: .2rem; }
.fb-why { font: 400 .875rem/1.4 var(--small); color: var(--ink-2); }
.fb-btn { display: inline-block; margin-top: .75rem; padding: .25rem .8rem; border: 1px solid var(--accent); color: var(--accent); border-radius: 2px;
  font: 600 .9375rem/1.3 var(--text); transition: background-color .15s, color .15s; }
.fb-card.is-press .fb-btn { transform: scale(.96); }
.fb-card.is-conf .fb-btn { background: var(--accent); color: var(--paper); }
.fb-tab { font-size: .9375rem; table-layout: fixed; }
.fb-tab th:not(:first-child) { width: 5.5em; }
.fb-tab tfoot td { white-space: nowrap; }
.fb-tab th { font: italic 400 .875rem/1.3 var(--text); color: var(--ink-2); text-align: left; padding: 0 0 .35rem; border-bottom: 1px solid var(--ink); }
.fb-tab th:not(:first-child), .fb-tab td:not(:first-child) { text-align: right; }
.fb-tab td { padding: .45rem 0; border-bottom: 1px solid var(--rule); font-variant-numeric: lining-nums tabular-nums; }
.fb-l { transition: opacity .3s ease-out; }
.fb-l.is-off { opacity: 0; }
.fb-tab tfoot td { border-bottom: 1px solid var(--ink); font-family: var(--text); font-weight: 600; padding-top: .6rem; }
.fb-sumv { font-variant-numeric: lining-nums tabular-nums; }
.fb-ok { font: italic 400 .875rem var(--text); color: var(--accent); margin-left: .4rem; transition: opacity .3s; }
.fb-empty { position: absolute; left: 0; right: 0; top: 4.6rem; text-align: center; font: italic 400 1rem/1.4 var(--text); color: var(--ink-2); opacity: 0; transition: opacity .3s; }
.fb.is-pre .fb-empty { opacity: 1; }
.fb-prop, .fb-by { transition: opacity .35s ease-out, transform .45s var(--ease-out); }

.sandbox { margin-top: 4.5rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 4.5rem; row-gap: .8rem; padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.sandbox > * { grid-column: 1; }
.sandbox h3 { font: 600 1.5rem/1.25 var(--text); }
.sandbox p { font-size: 1.125rem; }
.sandbox .sb-list { grid-column: 2; grid-row: 1 / span 4; }
.sb-list li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; align-items: baseline; padding: .7rem 0; border-bottom: 1px solid var(--rule); font: 400 1rem/1.4 var(--small); color: var(--ink-2); }
.sb-list code { font-size: 1rem; color: var(--ink); font-weight: 600; }
.sb-x { color: var(--accent); font-family: var(--text); font-weight: 600; }

/* Blockwright */
.pair--bw { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.loop { display: block; width: 100%; height: auto; overflow: visible; }
.loop text { font-family: var(--small); font-size: 14px; fill: var(--ink); }
.loop-track { fill: none; stroke: #C4C5C0; stroke-width: 2; }
.loop-in, .loop-out { fill: none; stroke: #C4C5C0; stroke-width: 2; }
.loop-arrow { fill: none; stroke: var(--ink-3); stroke-width: 1.5; }
.loop .loop-sub { font-size: 12.5px; fill: var(--ink-2); font-family: var(--small); font-weight: 400; }
.loop-node--out.is-on .loop-sub { fill: var(--paper); }
.loop-node rect { fill: var(--paper); stroke: var(--ink); stroke-width: 1.25; transition: fill .2s, stroke .2s; }
.loop-node text { font-family: var(--text); font-weight: 600; font-size: 15px; }
.loop-node.is-on rect { fill: var(--wash); stroke: var(--accent); stroke-width: 1.75; }
.loop-node--out.is-on rect { fill: var(--ink); stroke: var(--ink); }
.loop-node--out.is-on text { fill: var(--paper); }
.loop .loop-round { font: 600 30px var(--display); fill: var(--ink); font-variant-numeric: lining-nums; }
.loop .loop-desc { font-style: italic; font-family: var(--text); font-size: 15px; fill: var(--ink-2); }
.loop-tok { fill: var(--accent); }

.ba-frame { position: relative; aspect-ratio: 896 / 623; overflow: hidden; background: #8fb6ed; }
.ba-frame picture, .ba-frame img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.ba-handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.ba-tag { position: absolute; top: .7rem; font: 600 .8125rem/1 var(--text); color: #fff; background: rgba(18, 19, 24, .78); padding: .35rem .55rem; pointer-events: none; }
.ba-tag--b { left: .7rem; } .ba-tag--a { right: .7rem; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba-frame:has(.ba-range:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- rest ---------- */
.older-list { grid-column: wide; margin-top: 2rem; border-top: 1px solid var(--ink); }
.older-list li { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 11rem) minmax(0, 1fr); gap: 1.5rem; padding: .7rem 0; border-bottom: 1px solid var(--rule); font: 400 1rem/1.5 var(--small); }
.older-list a { font-family: var(--text); font-weight: 600; }
.older-list .kind { font-style: italic; font-family: var(--text); color: var(--ink-2); }
.older-list .desc { color: var(--ink-2); }
.skill-list { grid-column: wide; margin-top: 2rem; border-top: 1px solid var(--ink); }
.skill-list > div { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); column-gap: var(--gap); padding: .7rem 0; border-bottom: 1px solid var(--rule); }
.skill-list dt { font: 600 1rem/1.6 var(--text); }
.skill-list dt.dates { font: 400 .9375rem/1.7 var(--small); color: var(--ink-2); }
.skill-list dd { font-size: 1.0625rem; max-width: 40em; }
.contact { margin-top: clamp(5rem, 12vh, 8rem); }
.contact .sec-h { padding-top: 1rem; border-top: 2px solid var(--ink); }
.contact > * { grid-column: wide; }
.contact-mail { margin-top: 1.5rem; font: 600 clamp(1.9rem, 5.4vw, 4.75rem)/1 var(--display); letter-spacing: -.02em; }
.contact-mail a { text-decoration-thickness: 2px; text-underline-offset: .12em; overflow-wrap: anywhere; }
.contact-more { margin-top: 1.5rem; font: 400 1.0625rem/1.7 var(--small); color: var(--ink-2); max-width: 46em; }
.contact-more a { overflow-wrap: anywhere; }
.colophon { margin-top: 6rem; padding: 1.25rem 0 3rem; border-top: 1px solid var(--rule); }
.colophon p { grid-column: wide-start / text-end; font: 400 .875rem/1.55 var(--small); color: var(--ink-2); max-width: 52em; }

/* static frame (no JS, or ?static): the story is a plain figure with its notes beside it */
html:not(.js) .story-graphic, html[data-static] .story-graphic { position: static; height: auto; }
html:not(.js) .story-steps, html[data-static] .story-steps { padding: 0; align-self: center; }
html:not(.js) .story-steps li, html[data-static] .story-steps li { min-height: 0; margin: 0 0 1.75rem; opacity: 1 !important; }

/* ---------- motion switches ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation: none !important; }
}
html[data-motion="off"] *, html[data-static] * { transition-duration: 0s !important; transition-delay: 0s !important; animation-play-state: paused !important; }

/* ---------- narrow screens ---------- */
@media (max-width: 60rem) {
  :root { --gap: 1.25rem; }
  .g { grid-template-columns: [full-start] var(--gut) [wide-start text-start] minmax(0, 1fr) [text-end wide-end] var(--gut) [full-end]; column-gap: 0; }
  .entry > .l, .entry > .n, .roles dt, .roles dd { grid-column: text; }
  .entry > .n { margin-top: 1.25rem; padding-left: .9rem; border-left: 2px solid var(--rule); }
  .rh { row-gap: .55rem; padding: .8rem 0 .7rem; align-items: center; }
  .rh > .rh-name { grid-column: text; grid-row: 1; justify-self: start; }
  .rh > .rh-end { grid-column: text; grid-row: 1; justify-self: end; align-items: center; gap: .75rem; }
  .rh > .rh-nav { grid-column: full; grid-row: 2; padding: 0 2.5rem 0 var(--gut); white-space: nowrap; overflow-x: auto; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 2.75rem), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 2.75rem), transparent); }
  .rh-nav::-webkit-scrollbar { display: none; }
  .rh-nav .sep { padding: 0 .15em 0 .35em; }
  .title .lede, .particulars { grid-column: text; grid-row: auto; }
  .particulars { margin-top: 2rem; }
  .contents ol { grid-template-columns: 1fr 1fr; row-gap: 1.75rem; column-gap: 1rem; }
  .c-t { font-size: 1rem; }
  .c-d { font-size: .875rem; }
  .sec-head .sec-h, .sec-head .deck { grid-column: text; }
  .tl--d { display: none; } .tl--m { display: block; }
  .fhir { grid-template-columns: 1fr; gap: 1.5rem; }
  .fhir-code { font-size: .75rem; }
  .fhir-code code { white-space: pre-wrap; }
  .fhir-code .ln { padding-left: 4ch; text-indent: -4ch; }
  .plate--cs { grid-template-columns: [full-start] var(--gut) [wide-start] minmax(0, 1fr) [wide-end] var(--gut) [full-end]; }
  .plate--cs > .plate-text, .plate--cs > .plate-media { grid-column: wide; }
  .plate--cs > .plate-media { margin-top: 2.5rem; }
  .plate-text--wide > *, .plate-text--wide .deck, .plate-text--wide .plate-link, .feat-head > *, .feat-head .deck { grid-column: text; }
  .story { grid-template-columns: minmax(0, 1fr); }
  /* the figure stays on top; the step cards come up from below and slide under it */
  .story-graphic { grid-column: 1; position: sticky; top: 0; height: auto; z-index: 3; background: var(--paper); padding: .5rem 0 .6rem; border-bottom: 1px solid var(--rule); }
  .story-steps { grid-column: 1; grid-row: 2; position: relative; z-index: 1; padding: 1.25rem 0 2rem; }
  .story-steps li { min-height: 0; margin-bottom: 38svh; padding: .9rem 1rem; background: var(--paper); border: 1px solid var(--ink); }
  .story-steps li:last-child { margin-bottom: 0; }
  .js .story-steps li:not(.is-on) { opacity: 1; }
  .px--d { display: none; } .px--m { display: block; max-height: 54svh; margin: 0 auto; }
  .px--m .px-hubnote { display: none; }
  .story-steps li p:not(.step-n) { font-size: 1rem; line-height: 1.5; }
  .step-n { font-size: 1.125rem; }
  .story-cap { font-size: .8125rem; line-height: 1.4; margin-top: .35rem; }
  .shot-annot { grid-template-columns: 1fr; grid-column: full; }
  .shot-annot figcaption { padding: 0 var(--gut); }
  .built-block { grid-template-columns: 1fr; gap: 3rem; }
  .built dl > div { grid-template-columns: 1fr; gap: .1rem; }
  .pair, .pair--bw { grid-template-columns: 1fr; gap: 3.5rem; }
  .plate:not(.plate--cs) > .plate-media { grid-column: full; }
  .plate:not(.plate--cs) > .plate-media figcaption { padding: 0 var(--gut); }
  .fig-dw .dw-wrap { margin: 0 calc(-1 * var(--gut) + 4px); }
  .dw-svg .dw-lab { font-size: 16.5px; }
  .dw-svg .dw-lab--one { display: none; } .dw-svg .dw-lab--two { display: inline; }
  .dw-svg .dw-sz { display: none; }
  .dw-svg .dim-t, .dw-svg .dw-front, .dw-svg .call { font-size: 17px; }
  .dw-svg .dw-part { font-size: 20px; }
  .gap-svg text, .gap-svg .call { font-size: 20px; }
  .gap-pair { grid-template-columns: 1fr; }
  .parts thead { display: none; }
  .parts tr { display: grid; padding: .6rem 0; border-bottom: 1px solid var(--rule); }
  .parts th, .parts td { border: 0; padding: .1rem 0; }
  .fb { grid-template-columns: 1fr; gap: 2.5rem; }
  .fb-col + .fb-col::before { content: "↓"; left: 0; top: -2.1rem; }
  .fb-empty { top: 3.6rem; }
  .sandbox { grid-template-columns: 1fr; }
  .sandbox .sb-list { grid-column: 1; grid-row: auto; margin-top: .5rem; }
  .sb-list li { grid-template-columns: 7.5rem 1fr; }
  .n-phone { display: none; }
  .older-list li { grid-template-columns: 1fr; gap: .1rem; }
  .skill-list > div { grid-template-columns: 1fr; }
  .loop-wrap { margin: 0 calc(-1 * var(--gut) + 2px); }
  .loop text { font-size: 19px; }
  .loop .loop-sub { font-size: 16px; }
  .loop .loop-desc { font-size: 18px; }
  .tl--m .tl-yt { fill: var(--ink-2); }
  .entry .t p { hyphenate-limit-chars: 8 4 4; }
}
