/* Direction C: A's engineer's notebook, with a margin line that is drawn as you read. Light only on purpose (print-emulating). */
@font-face { font-family: "Newsreader"; src: url(fonts/newsreader-opsz.woff2) format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(fonts/newsreader-opsz-italic.woff2) format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url(fonts/plex-sans.woff2) format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(fonts/plex-mono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(fonts/plex-mono-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #f3f4f0;      /* cool engineering-pad white */
  --paper-2: #e9ebe5;    /* fills */
  --ink: #15171c;        /* drafting ink */
  --graphite: #545963;   /* secondary text, 6.6:1 on paper */
  --rule: #c9ccc4;       /* hairlines */
  --red: #b3301c;        /* margin line and red-pen notes, 5.6:1 on paper */
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, Menlo, monospace;
  --margin-w: 11.5rem;
  --pad: clamp(16px, 3vw, 40px);
  --gap: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 4.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, h1, h2, h3, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
code { font: 0.86em var(--mono); }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* language switch: content carries both, html[lang] picks */
html[lang="en"] [lang="es"], html[lang="es"] [lang="en"] { display: none !important; }

.skip { position: absolute; left: 8px; top: -60px; z-index: 30; background: var(--ink); color: var(--paper); padding: 8px 12px; font-size: .9rem; }
.skip:focus { top: 8px; }

.mono { font-family: var(--mono); }
.small { font-size: .78rem; }
.red { color: var(--red); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); border-bottom: 1px solid var(--rule); }
@supports (backdrop-filter: blur(6px)) { .nav { backdrop-filter: blur(6px); } }
.nav-in { max-width: 1360px; margin: 0 auto; padding: 0 var(--pad); height: 56px; display: flex; align-items: center; gap: 1.5rem; }
.nav-name { font: 500 1.15rem/1 var(--serif); text-decoration: none; letter-spacing: -.01em; margin-right: auto; white-space: nowrap; }
.nav ul { display: flex; gap: 1.4rem; }
.nav nav a { font-size: .9rem; text-decoration: none; color: var(--graphite); padding: 6px 0; background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease), color .2s; }
.nav nav a:hover { color: var(--ink); background-size: 100% 1px; }
.nav nav a[aria-current="true"] { color: var(--ink); background-image: linear-gradient(var(--red), var(--red)); background-size: 100% 2px; }
.lang { display: flex; border: 1px solid var(--rule); }
.lang button { font: 500 .72rem/1 var(--mono); padding: 6px 8px; color: var(--graphite); min-width: 32px; min-height: 28px; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* ---------- Sheet: margin column + red margin line ---------- */
.sheet { position: relative; max-width: 1360px; margin: 0 auto; padding: 0 var(--pad); }
/* The margin line. Without motion it is simply drawn in full (red, like the pad's printed margin).
   With motion it starts as a pencil guide and is inked in red as the reader goes down the page. */
.spine { position: absolute; top: 0; bottom: 0; left: calc(var(--pad) + var(--margin-w)); width: 1px; background: color-mix(in srgb, var(--red) 75%, var(--paper)); pointer-events: none; z-index: 1; }
.spine i { display: none; }
.motion .spine { background: var(--rule); }
.motion .spine i { display: block; position: absolute; left: 0; top: 0; }
.spine-fill { width: 2px; height: 100%; margin-left: -.5px; background: var(--red); transform-origin: 50% 0; transform: scaleY(var(--p, 0)); will-change: transform; }
.spine-head { width: 9px; height: 9px; margin: -4px 0 0 -4px; background: var(--red); box-shadow: 0 0 0 3px var(--paper); transform: translateY(var(--y, 0px)); will-change: transform; }
.spine-head::after { content: ""; position: absolute; left: -8px; top: 4px; width: 25px; height: 1px; background: var(--red); opacity: .55; }

/* Marks in the margin: section and entry numbers, index numbers, the end mark.
   They are ink until the line reaches them, then they are inked red and a tick joins them to the line. */
.num::after, .num-s::after, .end::after { content: ""; position: absolute; right: -1.25rem; width: .85rem; height: 2px; background: var(--red); transform-origin: 100% 50%; transform: scaleX(0); transition: transform .5s var(--ease); }
.num::after { top: .52em; }
.num-s::after { top: .5em; }
.end::after { top: .62em; }
.ix-no { position: relative; }
.ix-no::before { content: ""; position: absolute; left: calc(-1 * var(--gap) - 1px); top: .66em; width: calc(var(--gap) - .7rem); height: 1px; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); transition: transform .45s var(--ease); }
html:not(.motion) .num::after, html:not(.motion) .num-s::after, html:not(.motion) .end::after, .lit::after { transform: scaleX(1); }
html:not(.motion) .ix-no::before, .ix-no.lit::before { transform: scaleX(1); }
html:not(.motion) .ix-no, .ix-no.lit { color: var(--red); }
.motion .num, .motion .num-s, .motion .end { color: var(--graphite); transition: color .45s var(--ease); }
.motion .num.lit, .motion .num-s.lit, .motion .end.lit { color: var(--red); }
.row { display: grid; grid-template-columns: var(--margin-w) minmax(0, 1fr); }
.row > .margin { padding: 0 1.25rem 0 0; text-align: right; }
.row > .main { padding-left: var(--gap); min-width: 0; }

.note { font-size: .85rem; line-height: 1.45; color: var(--graphite); margin-bottom: .6rem; }
.note.mono { font-size: .74rem; }
.note.red { color: var(--red); }
.note.big { font: 400 1.5rem/1.1 var(--serif); color: var(--red); margin-top: 1rem; }
.note.big span { display: block; font: .74rem/1.4 var(--mono); }
.num { font: 300 3.6rem/1 var(--serif); color: var(--red); position: sticky; top: 5rem; }
.num-s { position: relative; font: 400 1.5rem/1 var(--serif); color: var(--red); margin-bottom: .9rem; }
.note.with { font: italic 400 1.05rem/1.3 var(--serif); color: var(--ink); margin-top: 1rem; }
.stick { position: sticky; top: 5.25rem; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(3rem, 9vh, 6rem); }
.hero .margin { padding-top: .35rem; }
.role { font: 500 1rem/1.4 var(--sans); color: var(--graphite); margin-bottom: 1.25rem; }
.name { font: 350 clamp(3.6rem, 11.5vw, 10.5rem)/.9 var(--serif); font-variation-settings: "opsz" 72; letter-spacing: -.035em; margin-left: -.05em; }
.name-l { display: block; overflow: hidden; padding: .12em 0 .14em; margin: -.12em 0 -.14em; }
.name-l > span { display: block; }
[data-split] > [lang] { display: block; }
.name-l + .name-l { padding-left: clamp(1.5rem, 9vw, 9rem); }
.lede { font: 400 clamp(1.3rem, 2.1vw, 1.75rem)/1.35 var(--serif); max-width: 31ch; margin: clamp(1.75rem, 4vh, 2.5rem) 0 1.75rem; }
.hero-links { display: flex; flex-wrap: wrap; gap: .75rem 2rem; }

/* red-pen links: underline drawn in red on hover */
.pen { font: 500 .95rem/1.4 var(--sans); text-decoration: none; padding-bottom: 2px; background: linear-gradient(var(--ink), var(--ink)) 0 100% / 100% 1px no-repeat, linear-gradient(var(--red), var(--red)) 0 100% / 0 2px no-repeat; transition: background-size .45s var(--ease), color .2s; }
.pen:hover { color: var(--red); background-size: 100% 1px, 100% 2px; }
.pen.ext::after { content: "\2197"; font-family: var(--mono); font-size: .8em; margin-left: .3em; }
.pen.small { font-size: .82rem; }

/* trace + facts */
.trace-row { padding-top: clamp(2rem, 6vh, 4rem); }
.trace-row .margin { display: flex; align-items: flex-start; justify-content: flex-end; padding-top: 1.25rem; }
.trace-row .note { max-width: 10rem; }
.trace { display: block; width: 100%; height: clamp(56px, 9vw, 110px); overflow: visible; }
.trace path { fill: none; stroke: var(--ink); stroke-width: 1.25; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; border-top: 1px solid var(--rule); padding-top: 1.1rem; margin-top: .5rem; }
.facts dt { font: .74rem/1.4 var(--mono); color: var(--red); margin-bottom: .35rem; }
.facts dd { font-size: .92rem; line-height: 1.45; }

/* ---------- Sections ---------- */
.sec { padding-top: clamp(6rem, 14vh, 10rem); }
.h2 { font: 350 clamp(2.6rem, 6vw, 5rem)/1 var(--serif); font-variation-settings: "opsz" 72; letter-spacing: -.03em; max-width: 16ch; }
.sec-lede { font-size: 1.05rem; color: var(--graphite); max-width: 52ch; margin-top: 1.25rem; }
.h-more { font: 400 1.6rem/1.2 var(--serif); letter-spacing: -.01em; margin: 5rem 0 1.5rem; }

/* ---------- Entries ---------- */
.entry { padding-top: clamp(4.5rem, 10vh, 7rem); }
.entry .margin { padding-top: .6rem; }
.e-head { margin-bottom: 2.25rem; max-width: 46rem; }
.h3, .h2, .e-line { text-wrap: balance; }
.h3 { font: 400 clamp(2.4rem, 5vw, 4.2rem)/1 var(--serif); font-variation-settings: "opsz" 72; letter-spacing: -.03em; margin-bottom: 1rem; }
.e-line { font: 400 clamp(1.15rem, 1.6vw, 1.35rem)/1.4 var(--serif); color: var(--graphite); max-width: 40ch; }
.prose { font: 400 1.18rem/1.6 var(--serif); max-width: 62ch; }
.prose.big { font-size: clamp(1.3rem, 1.9vw, 1.6rem); line-height: 1.45; }
.e-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem var(--gap); margin-top: 2.5rem; }
.e-body .stack { grid-column: 1 / -1; }
.e-body.cols .stack { grid-column: auto; }
.notes { counter-reset: n; display: grid; gap: .8rem; }
.notes li { counter-increment: n; position: relative; padding-left: 2.2rem; font-size: .95rem; line-height: 1.5; }
.notes li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: .15rem; font: .72rem/1.4 var(--mono); color: var(--red); }
.stack { font: .76rem/1.9 var(--mono); color: var(--graphite); margin-top: 1.5rem; }
.stack .si { white-space: nowrap; display: inline-block; }
.stack i { display: inline-block; font-style: normal; color: var(--rule); margin: 0 .55em; }
.links { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin-top: 1.5rem; }

.fig figcaption { font-size: .82rem; color: var(--graphite); margin-top: 1rem; max-width: 64ch; }
.fig-n { font-family: var(--mono); font-size: .74rem; color: var(--red); margin-right: .4rem; }

/* Fig 1: case-file flow */
.flow-fig { margin-top: .5rem; }
.flow { --p: 1; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; padding-top: 1.75rem; }
.flow::before, .flow::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--rule); }
.flow::after { height: 2px; top: -.5px; background: var(--red); transform-origin: 0 50%; transform: scaleX(var(--p)); }
.flow li { position: relative; display: flex; flex-direction: column; gap: .35rem; }
.flow li::before { content: ""; position: absolute; top: calc(-1.75rem - 4px); left: 0; width: 9px; height: 9px; background: var(--paper); border: 1px solid var(--graphite); transition: background .3s, border-color .3s; }
.flow li.on::before, html:not(.motion) .flow li::before { background: var(--red); border-color: var(--red); }
.flow strong { transition: color .4s; }
.motion .flow li:not(.on) strong { color: var(--graphite); }
.f-k { font: .72rem/1 var(--mono); color: var(--red); }
.flow strong { font: 400 1.35rem/1.15 var(--serif); }
.f-d { font-size: .86rem; line-height: 1.45; color: var(--graphite); }
.audit { margin-top: 1.5rem; padding: .7rem 1rem; border: 1px dashed var(--graphite); font: .78rem/1.4 var(--mono); color: var(--ink); }

/* Fig 2: Planiar */
.pla-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); align-items: start; }
.pla-text .prose { font-size: 1.12rem; }
.pla-text .notes { margin-top: 1.75rem; }
.pla-fig { position: relative; padding-bottom: 3rem; margin-top: 1rem; }
.shot-desk { border: 1px solid var(--ink); background: var(--paper-2); }
.shot-desk img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.shot-phone { position: absolute; right: -1rem; bottom: 4.5rem; width: 26%; border: 1px solid var(--ink); background: var(--paper); box-shadow: 0 18px 40px -18px rgba(21, 23, 28, .35); }
.shot-phone img { aspect-ratio: 600 / 1298; width: 100%; }
.pla-fig figcaption { max-width: 70%; }

/* Fig 2: Unit, desktop with the phone view in front */
.u-shots { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); padding-bottom: 5.5rem; }
.unit-fig figcaption { max-width: 46%; }
.u-shot { grid-row: 1; border: 1px solid var(--ink); background: var(--paper-2); overflow: hidden; }
.u-shot img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; object-position: top; }
.u-b img { aspect-ratio: 9 / 16; }
.u-a { grid-column: 1 / 11; }
.u-b { grid-column: 10 / 13; align-self: end; margin-bottom: -4.5rem; position: relative; z-index: 2; box-shadow: 0 22px 44px -22px rgba(21, 23, 28, .4); }

/* Fig 4: gbrain blocks */
.blocks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2.25rem; counter-reset: b; }
.blocks li { position: relative; border: 1px solid var(--ink); padding: .9rem .9rem 1rem; display: flex; flex-direction: column; gap: .4rem; background: var(--paper); }
.blocks li:nth-child(4) { border-color: var(--red); box-shadow: 4px 4px 0 var(--red); }
.blocks li + li::before { content: ""; position: absolute; top: 50%; left: calc(-2.25rem - 1px); width: 2.25rem; height: 1px; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--w, 1)); }
.blocks li + li::after { content: ""; position: absolute; top: calc(50% - 4px); left: -9px; border: 4px solid transparent; border-left: 6px solid var(--ink); opacity: var(--w, 1); }
.b-k { font: .7rem/1 var(--mono); color: var(--red); }
.blocks strong { font: 400 1.25rem/1.15 var(--serif); }
.b-d { font-size: .82rem; line-height: 1.45; color: var(--graphite); }
.b-d code { color: var(--ink); white-space: nowrap; }
.gb-fig { margin-bottom: .5rem; }

/* ---------- Index ---------- */
.ix-cols, .ix-head { display: grid; grid-template-columns: 3.4rem minmax(0, 1.25fr) minmax(0, 2fr) 7.5rem 6.5rem 1.25rem; gap: 1.25rem; align-items: baseline; }
.ix-cols { margin-top: 3.5rem; padding-bottom: .6rem; border-bottom: 1px solid var(--ink); font: .72rem/1.4 var(--mono); color: var(--graphite); }
.ix-row { border-bottom: 1px solid var(--rule); }
.ix-head { width: 100%; text-align: left; padding: 1.05rem 0; transition: color .2s; }
.ix-no { font: .74rem/1.4 var(--mono); color: var(--graphite); transition: color .2s; }
.ix-name { font: 400 1.3rem/1.2 var(--serif); letter-spacing: -.01em; transition: transform .45s var(--ease); }
.ix-line { font-size: .9rem; line-height: 1.45; color: var(--graphite); }
.ix-field, .ix-year { font: .74rem/1.4 var(--mono); color: var(--graphite); }
.ix-plus { position: relative; width: 11px; height: 11px; align-self: start; margin-top: .55rem; }
.ix-plus::before, .ix-plus::after { content: ""; position: absolute; left: 0; top: 5px; width: 11px; height: 1px; background: var(--ink); transition: transform .35s var(--ease); }
.ix-plus::after { transform: rotate(90deg); }
.ix-head[aria-expanded="true"] .ix-plus::after { transform: rotate(0deg); }
.ix-head:hover .ix-no, .ix-head[aria-expanded="true"] .ix-no { color: var(--red); }
.ix-head:hover .ix-name { transform: translateX(.4rem); }
.ix-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.ix-row.open .ix-body { grid-template-rows: 1fr; }
.ix-clip { overflow: hidden; min-height: 0; }
.ix-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; padding: .25rem 0 2.25rem calc(3.4rem + 1.25rem); }
.ix-inner.has-shot { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.ix-inner .prose { font-size: 1.08rem; }
.ix-inner .notes { margin-top: 1.25rem; }
.ix-shot { border: 1px solid var(--ink); background: var(--paper-2); aspect-ratio: 16 / 10; overflow: hidden; }
.ix-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* cursor preview */
.peek { position: fixed; left: 0; top: 0; z-index: 15; width: 22rem; pointer-events: none; opacity: 0; visibility: hidden; }
.peek-in { aspect-ratio: 16 / 10; border: 1px solid var(--ink); background: var(--paper); box-shadow: 0 24px 48px -24px rgba(21, 23, 28, .45); overflow: hidden; transform-origin: 0 0; }
.peek-in img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.peek-card { height: 100%; padding: 1.1rem 1.2rem; display: flex; flex-direction: column; justify-content: space-between; background-color: var(--paper); background-image: radial-gradient(var(--rule) 1px, transparent 1.2px); background-size: 14px 14px; }
.peek-card b { font: 400 1.9rem/1.05 var(--serif); letter-spacing: -.02em; background: var(--paper); align-self: flex-start; padding-right: .3rem; }
.peek-card span { font: .72rem/1.5 var(--mono); color: var(--graphite); background: var(--paper); align-self: flex-start; padding-right: .3rem; }
.peek-card span:first-child { color: var(--red); }

/* compact list */
.more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem var(--gap); }
.m-name { font: 400 1.15rem/1.3 var(--serif); margin-bottom: .2rem; }
.m-line { font-size: .88rem; line-height: 1.5; color: var(--graphite); max-width: 52ch; }
.m-line .pen { color: var(--ink); white-space: nowrap; }

/* ---------- About ---------- */
.about .margin .num { position: static; margin-bottom: 2.5rem; }
.about-notes { text-align: right; }
.about-notes .note.mono { color: var(--red); margin-top: 1.4rem; margin-bottom: .3rem; }
.about-prose { display: grid; gap: 1.25rem; margin-top: 2.25rem; max-width: 62ch; }
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem var(--gap); border-top: 1px solid var(--rule); padding-top: 1.5rem; }
.tools dt { font: .74rem/1.4 var(--mono); color: var(--red); margin-bottom: .35rem; }
.tools dd { font-size: .95rem; line-height: 1.55; }

/* ---------- Contact ---------- */
.contact { padding-bottom: clamp(5rem, 12vh, 8rem); }
.mail { margin: 2.5rem 0 2rem; }
.mail a { font: 350 clamp(1.7rem, 5.6vw, 4.8rem)/1.05 var(--serif); font-variation-settings: "opsz" 72; letter-spacing: -.03em; text-decoration: none; overflow-wrap: anywhere; background: linear-gradient(var(--red), var(--red)) 0 100% / 0 2px no-repeat; transition: background-size .6s var(--ease), color .25s; padding-bottom: .08em; }
.mail a:hover { background-size: 100% 2px; color: var(--red); }
.elsewhere { display: flex; flex-wrap: wrap; gap: .75rem 2.25rem; align-items: baseline; }
.elsewhere .small { color: var(--graphite); margin-left: .3rem; }

.foot { padding: 2.5rem 0 3.5rem; border-top: 1px solid var(--rule); }
.foot .margin { padding-top: .35rem; }
.end { position: relative; font: .74rem/1.4 var(--mono); color: var(--red); }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1rem 2rem; }
.foot-name { font: 400 1.6rem/1.1 var(--serif); letter-spacing: -.01em; }
.pen.up::after { content: "\2191"; font-family: var(--mono); font-size: .8em; margin-left: .35em; }
.foot-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 1.75rem; font-size: .8rem; color: var(--graphite); }

/* ---------- Motion initial states (only with .motion, set before paint) ---------- */
.motion .name-l > span, .motion [data-hero], .motion .facts > div { visibility: hidden; }
.motion [data-split] { visibility: hidden; }
.motion .trace path { visibility: hidden; }
.split-line { padding: .14em 0 .08em; margin: -.14em 0 -.08em; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .ix-cols, .ix-head { grid-template-columns: 3rem minmax(0, 1.2fr) minmax(0, 2fr) 6.5rem 1.25rem; }
  .ix-field, .c-field { display: none; }
  .blocks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .blocks li:nth-child(4)::before, .blocks li:nth-child(4)::after { display: none; }
  .pla-grid { grid-template-columns: minmax(0, 1fr); }
  .pla-fig { max-width: 52rem; }
}
@media (max-width: 860px) {
  :root { --margin-w: 0px; --gap: 18px; }
  .spine { left: calc(var(--pad) - 2px); }
  .sheet { padding-left: calc(var(--pad) + 6px); }
  .row { grid-template-columns: minmax(0, 1fr); }
  .row > .margin { text-align: left; padding: 0 0 0 var(--gap); }
  .row > .main { padding-left: var(--gap); }
  .stick, .num { position: static; }
  .num { font-size: 2.6rem; margin-bottom: .75rem; }
  .entry .margin .stick { display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; align-items: baseline; margin-bottom: 1rem; }
  .entry .margin .note, .num-s { margin: 0; }
  .note.big { font-size: 1rem; margin: 0; }
  .note.big span { display: inline; }
  .hero .margin { order: 2; margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
  .trace-row .margin { order: 2; justify-content: flex-start; padding-top: .5rem; }
  .trace-row .note { max-width: none; }
  .about .margin { display: contents; }
  .about .margin .num { padding-left: var(--gap); }
  .about-notes { order: 3; text-align: left; padding: 2.5rem 0 0 var(--gap); }
  .about .margin .num { margin-bottom: .75rem; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; padding: 0 0 0 1.6rem; }
  .flow::before, .flow::after { top: 0; bottom: 0; left: 4px; right: auto; width: 1px; height: auto; }
  .flow::after { width: 2px; left: 3.5px; transform-origin: 50% 0; transform: scaleY(var(--p)); }
  .flow li::before { top: .1rem; left: calc(-1.6rem); }
  .e-body, .e-body.cols, .ix-inner.has-shot, .tools, .more { grid-template-columns: minmax(0, 1fr); }
  .blocks { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .blocks li + li::before { top: -1.5rem; left: 50%; width: 1px; height: 1.5rem; transform-origin: 50% 0; transform: scaleY(var(--w, 1)); }
  .blocks li + li::after { top: -10px; left: calc(50% - 4px); border: 4px solid transparent; border-top: 6px solid var(--ink); }
  .blocks li:nth-child(4)::before, .blocks li:nth-child(4)::after { display: block; }
  .ix-cols { display: none; }
  .ix-head { grid-template-columns: 2.6rem minmax(0, 1fr) 1rem; row-gap: .25rem; margin-top: 0; }
  .ix-line { grid-column: 2; grid-row: 2; }
  .ix-year { display: none; }
  .ix-plus { grid-column: 3; grid-row: 1; }
  .ix-inner { padding-left: 0; }
  .ix-row:first-child { border-top: 1px solid var(--ink); }
  .ix { margin-top: 2.25rem; }
  .shot-phone { right: .5rem; width: 30%; bottom: 5rem; }
  .pla-fig figcaption { max-width: 64%; }
  .nav .opt { display: none; }
  .num::after, .num-s::after, .end::after, .ix-no::before { display: none; }
  .spine-head::after { display: none; }
  .u-a { grid-column: 1 / 12; }
  .u-b { grid-column: 9 / 13; margin-bottom: -2.5rem; }
  .u-shots { padding-bottom: 4rem; }
  .unit-fig figcaption { max-width: none; }
  .foot .margin { display: none; }
  .nav-in { gap: 1rem; }
  .h-more { margin-top: 3.5rem; }
}
@media (max-width: 420px) {
  .facts { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .nav-name { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
