/* One page: first screen, Work, Background. One type scale (rem), one right edge (--gutter), one section rhythm.
   Agreed by the design, hiring and front-end reviews (reviews/CONSENSUS.md). */
:root { --band: #eeeee8; --t-xs: .8125rem; --t-s: .9375rem; --t-m: 1.0625rem; --t-l: 1.375rem; --t-xl: clamp(2rem, 3.2vw, 3rem);
  --gutter: max(var(--side), calc((100vw - 1280px) / 2)); --lead-in: clamp(32px, 5vh, 56px); }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar, 64px) + 16px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
body.home { transition: background-color .35s var(--ease), color .35s var(--ease); }

/* ---- header: one height; scrolling only adds the hairline */
.home .bar { position: sticky; top: 0; z-index: 20; padding: 16px var(--gutter); background: color-mix(in srgb, var(--paper) 86%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .4s, background-color .35s; }
.home.down .bar { border-bottom-color: var(--line); }
.home nav a { position: relative; transition: color .25s; }
.home nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.home nav a.on { color: var(--ink); } .home nav a.on::after { transform: scaleX(1); }

/* ---- first screen: fills the window less 72px, so Work's title shows there's more below */
.home main { display: block; flex: 1 0 auto; padding: 0; }
.home .hero { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: calc(100svh - var(--bar, 64px) - 72px - var(--lead-in)); padding: 8px var(--gutter) clamp(28px, 6vh, 72px); }
.home .hero > :not(canvas) { position: relative; z-index: 1; }
.home .lead p { font-size: var(--t-m); }
/* there at first paint: a short slide, no fade; then the underlines draw */
.home .hero > .role, .home .hero > h1, .home .hero > .lead { animation: rise .6s var(--ease) backwards; }
.home .hero > h1 { animation-delay: .04s; } .home .hero > .lead { animation-delay: .08s; }
@keyframes rise { from { transform: translateY(8px); } }
#pulse { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; animation: show 1s .3s ease backwards; }
@keyframes show { from { opacity: 0; } }

/* ---- sections */
#work, #background { padding: clamp(72px, 12vh, 128px) var(--gutter) 0; font-size: 1rem; }
#work { padding-top: var(--lead-in); }
#background { padding-bottom: clamp(72px, 12vh, 128px); }
.sec-title { margin: 0; font: 600 var(--t-xl)/1.1 var(--sans); letter-spacing: -.03em; }
.intro { margin-top: 12px; max-width: 40em; color: var(--muted); font-size: var(--t-m); line-height: 1.55; }
.label { margin: 0; padding-bottom: 12px; font-weight: 600; font-size: var(--t-s); letter-spacing: -.01em; }
.label span { margin-left: 6px; color: var(--muted); font: 400 var(--t-xs) var(--mono); }

.systems { margin-top: clamp(28px, 6vh, 56px); border-bottom: 1px solid var(--line); }
article { display: grid; grid-template-columns: 3fr 5fr 4fr; column-gap: 32px; padding: clamp(20px, 4vh, 40px) 0; border-top: 1px solid var(--line); }
.no { display: block; color: var(--muted); font: 400 var(--t-xs) var(--mono); font-variant-numeric: tabular-nums; margin-bottom: 6px; }
article h4 { margin: 0; font-weight: 600; font-size: var(--t-l); line-height: 1.25; letter-spacing: -.02em; }
article h4 span { padding: 0 .06em; margin: 0 -.06em; border-radius: 2px; background: linear-gradient(var(--pen), var(--pen)) 0 88% / 0 .34em no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size .7s var(--ease) .35s; }
article:target h4 span { background-size: 100% .34em; }
.promise { margin-top: 4px; font: italic 400 1.25rem/1.3 var(--serif); letter-spacing: -.01em; }
.stack { margin-top: 14px; color: var(--muted); font: 400 var(--t-xs)/1.5 var(--mono); letter-spacing: -.01em; }
.body { max-width: 34em; line-height: 1.6; color: color-mix(in srgb, var(--ink) 82%, var(--paper)); text-wrap: pretty; }
.facts { margin: 0; display: grid; row-gap: 6px; align-content: start; }
.facts div { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); column-gap: 12px; }
.facts div:first-child dd { font-weight: 500; } .facts div:last-child { margin-top: 4px; padding-top: 10px; border-top: 1px dashed var(--line); }
.facts dt { color: var(--muted); font-size: var(--t-xs); line-height: 1.5; padding-top: .1em; }
.facts dd { margin: 0; font-size: var(--t-s); line-height: 1.5; font-variant-numeric: tabular-nums; text-wrap: pretty; }

.also { margin-top: clamp(48px, 9vh, 96px); }
table { width: 100%; border-collapse: collapse; font-size: var(--t-s); line-height: 1.45; font-variant-numeric: tabular-nums; }
thead th { text-align: left; font-weight: 400; color: var(--muted); font-size: var(--t-xs); padding: 0 0 8px; border-bottom: 1px solid var(--ink); }
tbody th, td { text-align: left; vertical-align: top; padding: 13px 0; border-bottom: 1px solid var(--line); text-wrap: pretty; }
th:first-child { width: 16%; padding-right: 24px; } td:nth-child(2) { width: 50%; padding-right: 32px; } td:last-child { color: var(--muted); }
tbody th { font-weight: 500; }
.fn { font-size: .7em; vertical-align: super; line-height: 0; margin-left: 2px; padding: 4px 2px; color: var(--muted); text-decoration: none; } .fn:hover { color: var(--ink); }
.note { margin-top: 12px; color: var(--muted); font-size: var(--t-xs); } .note a { color: inherit; text-decoration: none; margin-right: 4px; }
.more { margin: 48px 0 0; display: grid; }
.more div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: var(--t-s); }
.more div:last-child { border-bottom: 1px solid var(--line); } .more dt { font-weight: 500; } .more dd { margin: 0; color: var(--muted); }

#background .label { margin-top: clamp(28px, 6vh, 56px); border-bottom: 1px solid var(--line); }
.rows { margin: 0; padding: 0; list-style: none; }
.rows li { display: grid; grid-template-columns: 3fr 5fr 4fr; column-gap: 32px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.when { color: var(--muted); font: 400 var(--t-xs) var(--mono); font-variant-numeric: tabular-nums; }
.what b { display: block; font-weight: 600; font-size: var(--t-m); letter-spacing: -.01em; line-height: 1.35; } .what span { color: var(--muted); font-size: var(--t-s); }
.rows p { color: color-mix(in srgb, var(--ink) 82%, var(--paper)); font-size: var(--t-s); line-height: 1.55; text-wrap: pretty; }

/* ---- footer: name and year; on phones it also holds the theme switch */
.foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px var(--gutter) 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--t-xs); }
.theme-alt { display: none; color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: .25em; } .theme-alt:hover { color: var(--ink); }

/* ---- content settles in once as it scrolls into view (only while home.js runs, so nothing can stay hidden) */
.rv [data-rv]:not(article):not(.also) { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv [data-rv]:not(article):not(.also):not(.in) { opacity: 0; transform: translateY(14px); }
.rv article[data-rv] > * { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv article[data-rv] > :nth-child(2) { transition-delay: .07s; } .rv article[data-rv] > :nth-child(3) { transition-delay: .14s; }
.rv article[data-rv]:not(.in) > * { opacity: 0; transform: translateY(14px); }
.rv .also[data-rv] > *, .rv .also[data-rv] tbody tr { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv .also[data-rv]:not(.in) > :not(table), .rv .also[data-rv]:not(.in) thead, .rv .also[data-rv]:not(.in) tbody tr { opacity: 0; transform: translateY(10px); }
.rv .also[data-rv] thead { transition: opacity .7s var(--ease); }
.rv .also[data-rv] tbody tr:nth-child(1) { transition-delay: .09s; } .rv .also[data-rv] tbody tr:nth-child(2) { transition-delay: .13s; } .rv .also[data-rv] tbody tr:nth-child(3) { transition-delay: .17s; } .rv .also[data-rv] tbody tr:nth-child(4) { transition-delay: .21s; } .rv .also[data-rv] tbody tr:nth-child(5) { transition-delay: .25s; } .rv .also[data-rv] tbody tr:nth-child(6) { transition-delay: .29s; } .rv .also[data-rv] tbody tr:nth-child(7) { transition-delay: .33s; }

@media (max-width: 999px) {
  article, .rows li { grid-template-columns: minmax(0, 1fr); row-gap: 14px; } .rows li { row-gap: 4px; }
  .facts { margin-top: 4px; } .stack { margin-top: 8px; }
  .more div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  thead { display: none; }
  table, tbody, tr, tbody th, td { display: block; width: auto !important; padding: 0; }
  tr { padding: 14px 0; border-bottom: 1px solid var(--line); } tbody tr:first-child { border-top: 1px solid var(--ink); }
  tbody th, td { border: 0; }
  tbody th { color: var(--muted); font-size: var(--t-xs); font-weight: 400; margin-bottom: 2px; }
  td + td { margin-top: 2px; }
}
@media (max-width: 699px) { #pulse { display: none; } }
/* phones: one-row header (the theme switch moves to the footer), button and LinkedIn stacked */
@media (max-width: 559px) {
  .home .bar { flex-wrap: nowrap; gap: 12px; padding-block: 10px; } .home .name { font-size: 17px; }
  .home nav { order: 0; flex-basis: auto; gap: 12px; font-size: var(--t-xs); }
  .home #theme { display: none; } .theme-alt { display: inline; }
  .home .acts { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .rv [data-rv], .rv [data-rv] *, .rv .also[data-rv] tbody tr { opacity: 1 !important; transform: none !important; }
  .home .bar { position: static; backdrop-filter: none; -webkit-backdrop-filter: none; } nav, #pulse, #theme, .theme-alt { display: none; }
  .home .hero { min-height: 0; padding-block: 24px; } #work, #background { padding-top: 32px; } article, .rows li, tr { break-inside: avoid; }
}

/* ---- sections read as sections: a number, a larger title, and a change of ground */
:root[data-mood="dark"] { --band: #171d25; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: var(--muted); font: 400 var(--t-xs) var(--mono); letter-spacing: .04em; }
.eyebrow::after { content: ""; width: 40px; height: 1px; background: currentColor; opacity: .5; }
.sec-title { line-height: 1.05; letter-spacing: -.035em; }
.band { background: var(--band); margin-top: clamp(72px, 12vh, 128px); padding-top: clamp(64px, 11vh, 120px); }
#background.band { padding-bottom: clamp(64px, 11vh, 120px); }
.band .rows li, .band .label { border-color: color-mix(in srgb, var(--line) 80%, var(--ink) 8%); }

/* ---- contact: the page ends on a solid ink band */
.contact { --c-ink: var(--paper); --c-muted: color-mix(in srgb, var(--paper) 62%, var(--ink)); --c-line: color-mix(in srgb, var(--paper) 18%, var(--ink));
  background: var(--ink); color: var(--c-ink); padding: clamp(72px, 13vh, 140px) var(--gutter) clamp(64px, 11vh, 120px); font-size: 1rem; }
.contact .eyebrow { color: var(--c-muted); }
.say { margin-top: 16px; font: italic 400 clamp(1.5rem, 2.4vw, 2.25rem)/1.2 var(--serif); letter-spacing: -.02em; color: var(--c-muted); }
.say em { color: var(--c-ink); background: linear-gradient(var(--pen), var(--pen)) 0 92% / 100% .09em no-repeat; }
.reach { margin: clamp(32px, 6vh, 56px) 0 0; max-width: 720px; border-top: 1px solid var(--c-line); }
.reach div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--c-line); align-items: baseline; }
.reach dt { color: var(--c-muted); font: 400 var(--t-xs) var(--mono); }
.reach dd { margin: 0; font-size: var(--t-m); }
.reach a { color: var(--c-ink); text-decoration: underline; text-decoration-color: var(--pen); text-decoration-thickness: 2px; text-underline-offset: .28em; } .reach a:hover { text-decoration-thickness: 4px; }
.todo { color: var(--c-muted); border-bottom: 1px dashed var(--c-muted); }
.home .foot { background: var(--ink); color: color-mix(in srgb, var(--paper) 55%, var(--ink)); border-top: 1px solid color-mix(in srgb, var(--paper) 14%, var(--ink)); }
.home .foot .theme-alt { color: inherit; text-decoration-color: currentColor; }
.contact ::selection { background: var(--pen); color: var(--onpen); }

@media (max-width: 559px) { .reach div { grid-template-columns: 5.5rem minmax(0, 1fr); gap: 12px; } }
.mail { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.copy { color: var(--c-muted); font: 400 var(--t-xs) var(--mono); padding: 4px 8px; margin: -4px 0; border: 1px solid var(--c-line); border-radius: 6px; transition: color .2s, border-color .2s; }
.copy:hover, .copy.done { color: var(--c-ink); border-color: var(--c-muted); }

/* ================= Round 4 (design + creative reviews): sections change shape; points keep the Index ================= */
:root { --bend: clamp(112px, 15vh, 144px); --cg: 32px; --cink: var(--paper); --cline: color-mix(in srgb, var(--paper) 18%, var(--ink)); --cground: var(--ink); }
:root[data-mood="dark"] { --cink: var(--ink); --cline: #222a35; --cground: #0b0f14; }
.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--cg); }

/* section: number and title on the left, intro on the right, sitting on the title's baseline */
.sec-head { align-items: end; }
.sec-head .eyebrow { grid-column: 1 / 8; grid-row: 1; }
.sec-head .sec-title { grid-column: 1 / 8; grid-row: 2; }
.sec-head .intro { grid-column: 8 / 13; grid-row: 2; margin: 0; padding-bottom: .3em; }
.contact .sec-head .say { grid-column: 1 / 11; grid-row: 3; font-size: clamp(1.75rem, 3.2vw, 2.75rem); }
.eyebrow::after { transform-origin: left; transition: background-color .4s, opacity .4s; }
.sec-head.passed .eyebrow::after { background: var(--ink); opacity: 1; } .contact .sec-head.passed .eyebrow::after { background: var(--c-ink); }
.systems { margin-top: clamp(40px, 7vh, 72px); }

/* supporting blocks step in to column 4; their label hangs in columns 1-3 */
.hang { grid-column: 1 / 4; padding: 0 24px 0 0; align-self: start; }
.also { margin-top: var(--bend); align-items: start; }
.also .hang { position: sticky; top: calc(var(--bar, 64px) + 24px); }
.also table, .also .note { grid-column: 4 / 13; }
.practice { margin-top: clamp(64px, 9vh, 96px); align-items: start; }
.practice .more { grid-column: 4 / 12; margin: 0; }
.practice .hang { padding-top: 12px; }
.timeline { margin-top: var(--bend); display: grid; row-gap: clamp(40px, 7vh, 64px); }
.tl { align-items: start; }
#background .tl .hang { margin: 0; padding-top: 16px; border: 0; }
.tl .rows { grid-column: 4 / 13; border-top: 1px solid color-mix(in srgb, var(--line) 80%, var(--ink) 8%); }
.tl .rows li { grid-template-columns: 7rem minmax(0, 1fr) minmax(0, 1fr); }
.reach-wrap { margin-top: var(--bend); }
.reach { grid-column: 4 / 11; margin-top: 0; max-width: none; }
.narrow { display: none; }
:root[data-mood="dark"] .contact { background: #0b0f14; --c-ink: var(--ink); --c-muted: color-mix(in srgb, var(--ink) 62%, #0b0f14); --c-line: #222a35; }
:root[data-mood="dark"] .home .foot { background: #0b0f14; color: color-mix(in srgb, var(--ink) 55%, #0b0f14); border-top-color: #222a35; }

/* the lineage path: built from the layout by home.js; bends only in the gaps where the content changes kind */
.lineage { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; overflow: visible; }
.lineage path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.lin-track { stroke: var(--line); stroke-width: 1; }
.lin-done { stroke: var(--ink); stroke-width: 1.5; }
:root[data-mood="dark"] .lin-done { stroke: color-mix(in srgb, var(--ink) 85%, var(--paper)); }
.lin-mark { stroke: var(--pen); stroke-width: 5; transition: opacity .25s; }
.inv .lin-track { stroke: var(--cline); } .inv .lin-done { stroke: var(--cink); }
.lin-node { fill: var(--paper); stroke: var(--line); stroke-width: 1.5; transition: fill .25s, stroke .25s; }
.lin-node.on { fill: var(--ink); stroke: var(--ink); }
.lin-node.inv { fill: var(--cground); stroke: var(--cline); } .lin-node.inv.on { fill: var(--cink); stroke: var(--cink); }
.lin-node.end.on { fill: var(--pen); stroke: var(--pen); }
.lin-tick { stroke: var(--line); stroke-width: 1.5; transition: stroke .25s; } .lin-tick.on { stroke: var(--ink); }
.lineage-on .say em { background-size: 0 .09em; transition: background-size .5s var(--ease); } .lineage-on .say em.docked { background-size: 100% .09em; }

@media (max-width: 999px) {
  .g12 { display: block; } .hang { padding: 0 0 12px; } .also .hang { position: static; }
  .practice .more, .reach { margin-top: 0; } .tl .rows li { grid-template-columns: minmax(0, 1fr); }
  .sec-head .intro { margin-top: 12px; } .contact .sec-head .say { margin-top: 16px; }
}
/* phones: no path; the marker rides the header's bottom edge, left to right, as you read */
@media (max-width: 699px) {
  .lineage { display: none; }
  .home .bar::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 18px; height: 2px; border-radius: 2px; background: var(--pen); transform: translateX(var(--px, 0px)); opacity: var(--po, 0); transition: opacity .25s; }
}
@media (max-width: 559px) { .wide { display: none; } .narrow { display: inline; } }
@media print, (forced-colors: active) { .lineage { display: none; } }
@media print { .lineage-on .say em { background-size: 100% .09em; } }

/* ================= Round 5: more motion, all of it tied to reading ================= */
/* room for the line's two page-wide swings (left to right into Background, right to left into Contact) */
.band { margin-top: clamp(120px, 18vh, 200px); }
#background.band { padding-bottom: clamp(104px, 15vh, 168px); }
.contact { padding-top: clamp(104px, 15vh, 168px); }
::selection { background: var(--pen); color: var(--onpen); }

/* section titles rise out of a mask; the rule after the number draws in */
.rv .sec-title[data-rv] { transition: clip-path 1s var(--ease), transform 1s var(--ease), opacity .4s; }
.rv .sec-title[data-rv]:not(.in) { opacity: 1; clip-path: inset(0 0 100% 0); transform: translateY(.45em); }
.rv .sec-title[data-rv].in { clip-path: inset(-10% -5% -20% -5%); }
.rv .eyebrow[data-rv]::after { transform: scaleX(0); transition: transform 1s var(--ease) .25s, background-color .4s, opacity .4s; }
.rv .eyebrow[data-rv].in::after { transform: scaleX(1); }

/* hairlines draw from the left as their rows arrive */
article { border-top: 0; position: relative; margin-inline: -16px; padding-inline: 16px; border-radius: 6px; transition: background-color .3s; }
article::before { content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 1px; background: var(--line); transform-origin: left; transition: transform 1.1s var(--ease); }
.rv article[data-rv]:not(.in)::before { transform: scaleX(0); }
.rows li { border-bottom: 0; position: relative; transition: background-color .3s; }
.rows li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: color-mix(in srgb, var(--line) 80%, var(--ink) 8%); transform-origin: left; transition: transform 1s var(--ease) .1s; }
.rv .rows li[data-rv]:not(.in)::after { transform: scaleX(0); }
/* inside a system, the facts arrive one row after another */
.rv article[data-rv] .facts > div { transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rv article[data-rv]:not(.in) .facts > div { opacity: 0; transform: translateY(8px); }
.rv article[data-rv] .facts > div:nth-child(1) { transition-delay: .22s; } .rv article[data-rv] .facts > div:nth-child(2) { transition-delay: .28s; } .rv article[data-rv] .facts > div:nth-child(3) { transition-delay: .34s; } .rv article[data-rv] .facts > div:nth-child(4) { transition-delay: .4s; } .rv article[data-rv] .facts > div:nth-child(5) { transition-delay: .46s; }

/* pointing: a soft tint, and the matching tick on the line turns yellow */
@media (hover: hover) {
  article:hover, .rows li:hover { background: color-mix(in srgb, var(--ink) 2.5%, transparent); }
  tbody tr { transition: background-color .25s; } tbody tr:hover { background: color-mix(in srgb, var(--ink) 3%, transparent); }
  .rows li { margin-inline: -12px; padding-inline: 12px; border-radius: 6px; } .rows li::after { left: 12px; right: 12px; }
}
.lin-tick { transition: stroke .25s, stroke-width .25s; } .lin-tick.hot { stroke: var(--pen); stroke-width: 3; }

/* theme switch: the new theme spreads in a circle from the button (View Transitions; instant elsewhere) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
.vt body.home, .vt .home .bar { transition: none; }

@media (max-width: 999px) { article { margin-inline: 0; padding-inline: 0; } article::before { left: 0; right: 0; } }
@media (prefers-reduced-motion: reduce) { .rv .sec-title[data-rv]:not(.in) { clip-path: none; transform: none; } }
@media print { article::before, .rows li::after { transform: none !important; } }

/* ================= depth while scrolling: drifting section numbers and a texture per section ================= */
.deep { position: relative; isolation: isolate; overflow-x: clip; }
.bignum { position: absolute; z-index: -1; right: calc(var(--gutter) + 24px); top: clamp(24px, 6vh, 72px); pointer-events: none; user-select: none;
  font: 600 clamp(11rem, 26vw, 24rem)/.8 var(--sans); letter-spacing: -.07em; color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--ink) 11%, transparent); will-change: transform; }
.contact .bignum { -webkit-text-stroke-color: color-mix(in srgb, var(--c-ink) 14%, transparent); }
:root[data-mood="dark"] .bignum { -webkit-text-stroke-color: color-mix(in srgb, var(--ink) 13%, transparent); }
/* textures stay fixed while the content glides over them; each fades in from the section's top edge */
.deep::before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none; background-attachment: fixed;
  -webkit-mask-image: linear-gradient(transparent, #000 min(240px, 30%), #000 calc(100% - 160px), transparent); mask-image: linear-gradient(transparent, #000 min(240px, 30%), #000 calc(100% - 160px), transparent); }
#work::before { background-image: radial-gradient(circle, color-mix(in srgb, var(--ink) 9%, transparent) 1px, transparent 1.4px); background-size: 28px 28px; }
.contact::before { background-image: radial-gradient(circle, color-mix(in srgb, var(--c-ink) 10%, transparent) 1px, transparent 1.4px); background-size: 28px 28px; }
@media (max-width: 699px) { .bignum { font-size: 9rem; right: 12px; top: 16px; } .deep::before { background-attachment: scroll; } }
@media print { .bignum, .deep::before { display: none; } }

/* a system still being built says so, quietly */
.wip { margin-left: 8px; padding: 1px 8px; border: 1px solid var(--pen); border-radius: 999px; font: 500 .6875rem var(--mono); font-style: normal; color: var(--ink); letter-spacing: .02em; vertical-align: 1px; }
.more dt { min-width: 0; }
tbody th .wip { display: inline-block; margin: 4px 0 0; }

/* ================= Round 6 (design, content and overall reviews) ================= */
/* who and what, at a glance: a larger role line */
.home .role { font-size: 1.125rem; }
/* the proof carries the pen: one key figure per system and per row, underlined in the sentence; it draws in as it arrives */
.key { font-weight: inherit; padding: 0 .04em; margin: 0 -.04em; background: linear-gradient(var(--pen), var(--pen)) 0 92% / 100% .2em no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size .7s var(--ease) .45s; }
.rv [data-rv]:not(.in) .key { background-size: 0 .2em; }
/* results in ink, descriptions quieter */
td:nth-child(2) { color: color-mix(in srgb, var(--ink) 72%, var(--paper)); } td:last-child { color: var(--ink); }
@media (max-width: 999px) { tbody th { color: var(--ink); font-size: var(--t-s); font-weight: 600; } }
/* one right edge for every block in Work */
.practice .more { grid-column: 4 / 13; }
.stack { text-wrap: balance; }
/* quicker reveals for a skimming reader */
.rv [data-rv]:not(article):not(.also), .rv article[data-rv] > * { transition-duration: .55s; }
.rv article[data-rv] .facts > div { transition-duration: .45s; }
.rv article[data-rv] .facts > div:nth-child(1) { transition-delay: .12s; } .rv article[data-rv] .facts > div:nth-child(2) { transition-delay: .16s; } .rv article[data-rv] .facts > div:nth-child(3) { transition-delay: .2s; } .rv article[data-rv] .facts > div:nth-child(4) { transition-delay: .24s; } .rv article[data-rv] .facts > div:nth-child(5) { transition-delay: .28s; }
.rv .sec-title[data-rv] { transition-duration: .75s, .75s, .4s; }
/* focus stays visible on the ink contact band and footer */
.contact :focus-visible, .home .foot :focus-visible { outline-color: var(--pen); }
/* skip link, shown only when focused */
.skip { position: absolute; left: 12px; top: -48px; z-index: 30; padding: 8px 14px; border-radius: 6px; background: var(--ink); color: var(--paper); text-decoration: none; font-size: var(--t-s); }
.skip:focus { top: 12px; }
/* dark mode: Background reads as its own ground */
:root[data-mood="dark"] { --band: #1a212b; }
:root[data-mood="dark"] .band { border-block: 1px solid var(--line); }
/* phones have no line to swing, so they don't need its room */
@media (max-width: 699px) {
  :root { --bend: 64px; }
  .band { margin-top: clamp(72px, 12vh, 128px); } #background.band { padding-bottom: clamp(64px, 11vh, 120px); } .contact { padding-top: clamp(72px, 13vh, 140px); }
}
@media print { .key { background-size: 100% .2em !important; } }

/* one request, start to finish: a short story under the table */
.also .story { grid-column: 4 / 13; max-width: 68ch; margin: 32px 0 0; padding-left: 20px; border-left: 2px solid var(--pen); font-size: var(--t-s); color: color-mix(in srgb, var(--ink) 80%, var(--paper)); text-wrap: pretty; }
.also .story strong { color: var(--ink); font-weight: 600; }
@media (max-width: 999px) { .also .story { margin-top: 24px; } }
