/* Base only. This file holds the few rules the plumbing needs to work (hidden things stay hidden, the skip link
   and focus ring work, the demo label is readable). It has no layout, grid, type scale, palette, or components.

   Each site's CSS is written fresh, after the bones and skin are chosen (ministry-site SKILL.md, build order),
   below this block. Never paste another site's stylesheet here: that is how six homes came out the same
   (PROJECTS/ministry-site-kit 2026-10-09-006). */
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 0.5rem; top: -4rem; z-index: 100; padding: 0.5rem 0.75rem; background: Canvas; color: CanvasText; }
.skip:focus { top: 0.5rem; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }  /* form honeypot */
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.demo-tag { display: inline-block; margin: 0.75rem; padding: 0.35rem 0.7rem; background: Canvas; color: CanvasText; border: 1px solid currentColor; font-size: 0.8rem; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* The site's own CSS starts here. */

/* ===== David Lee · direction A "The manual", accent 1 Signal blue =====
   Warm paper, Newsreader for the voice, IBM Plex Sans for reading, Plex Mono for labels only.
   The accent has three jobs and no others: the "For ..." line on each piece, the "a person approves" checks in the
   Sunday drawing, and the contact action (nav link, buttons). Contrast: ink 15.6, soft 6.38, accent text #1565C8
   4.87, white on #1A6FD6 4.90, error #A8281C 6.08 (all on paper #F3EEE3). */
:root {
  --paper: #F3EEE3; --ink: #1E1B16; --soft: #5B554B; --rule: #D9D0BE; --well: #E8E1D2;
  --fill: #1A6FD6; --on: #FFFFFF; --tx: #1565C8; --g: #1A6FD6; --err: #A8281C;
  --serif: 'Newsreader', Georgia, serif; --sans: 'IBM Plex Sans', system-ui, sans-serif; --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --mk-bg: #E8E1D2; --mk-card: #F3EEE3; --mk-line: #B9AE98; --mk-ink: #1E1B16; --mk-soft: #5B554B;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.skip { background: var(--ink); color: var(--paper); }

/* labels: the manual's margin */
.lab { font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }

/* header */
.nav { max-width: 1200px; margin: 0 auto; padding: 28px 40px 0; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font: 500 21px/1 var(--serif); letter-spacing: -.01em; }
.brand .mark { width: 24px; height: 24px; flex: none; }
.links { display: flex; gap: 28px; font-size: 15px; }
.links a { text-decoration: none; color: var(--soft); padding: 6px 0; }
.links a:hover, .links a[aria-current="page"] { color: var(--ink); }
.links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.links a.go { color: var(--tx); font-weight: 500; }
.menu-btn { display: none; }

/* buttons and links */
.btn { display: inline-block; background: var(--fill); color: var(--on); text-decoration: none; padding: 13px 22px; font: 500 15px/1.2 var(--sans); border: 0; cursor: pointer; }
.btn:hover { background: #1560BB; }
.plain, .more, .allwork, .out a { font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.plain:hover, .more:hover, .allwork:hover, .out a:hover { border-bottom-width: 2px; }
.more { display: inline-block; margin-top: 12px; font-size: 15px; }
.allwork { display: inline-block; margin-top: 32px; font-size: 16px; }

/* home hero: the sentence, then photo, what he says, where he works */
.hero { padding: 72px 0 0; }
.hero h1 .love { color: var(--tx); }
/* motion plan: the headline settles (CSS, so it works without JS; the base block turns it off for reduced motion),
   then motion.js sweeps the blue through "to love people." once. Without JS the words are simply blue. */
.hero h1 { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
/* home intro guard: set inline in <head> only when motion is allowed, removed by motion.js or after 1.2 s */
.is-intro .hero h1, .is-intro .hero-grid { opacity: 0; }
.hero h1 .love.sweep { background: linear-gradient(90deg, var(--tx) 0 50%, var(--ink) 50% 100%); background-size: 200% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; -webkit-box-decoration-break: clone; box-decoration-break: clone; color: transparent; }
.hero h1 { text-wrap: balance; font: 400 clamp(40px, 6.4vw, 84px)/1.02 var(--serif); letter-spacing: -.025em; max-width: 15ch; }
.hero-grid { display: grid; grid-template-columns: 4fr 5fr 3fr; gap: 40px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--ink); }
.photo { background: var(--well); aspect-ratio: 4 / 5; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; mix-blend-mode: multiply; }
.role { font: 500 14px/1.45 var(--sans); color: var(--soft); }
.second { font: 400 22px/1.45 var(--serif); margin-top: 10px; }
.calls { display: flex; gap: 28px; margin-top: 28px; flex-wrap: wrap; align-items: center; }
.wherelist { list-style: none; margin-top: 12px; font-size: 15px; }
.wherelist li { padding: 7px 0; border-bottom: 1px solid var(--rule); }

/* sections: label column, then the body */
.blk { display: grid; grid-template-columns: 3fr 9fr; gap: 40px; padding: 72px 0 0; }
.blk > .lab { padding-top: 10px; border-top: 1px solid var(--ink); }
.blk > .body { border-top: 1px solid var(--ink); padding-top: 10px; min-width: 0; }
.cares { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.cares h3 { font: 500 22px/1.25 var(--serif); margin: 8px 0 10px; }
.cares p { font-size: 16px; }

/* the work */
.for { font: 600 13px/1.3 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--tx); }
.wip { margin: 0 0 10px; }
.feature { padding: 12px 0 36px; border-bottom: 1px solid var(--rule); }
.feature-t { font: 400 40px/1.1 var(--serif); letter-spacing: -.015em; margin: 8px 0 12px; }
.feature-t a, .case-t a { text-decoration: none; }
.feature-t a:hover, .case-t a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.feature > p { font-size: 17px; max-width: 62ch; }
.fnote { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-top: 14px; }
.case { display: grid; grid-template-columns: 6fr 5fr; gap: 40px; padding: 28px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.case-text > p { max-width: 58ch; }
.case .note { margin-top: 18px; }
.case-t { font: 400 30px/1.15 var(--serif); letter-spacing: -.01em; margin: 8px 0 10px; }
.case p { font-size: 16px; }
.note, .case .note { font: 400 13px/1.55 var(--mono); color: var(--soft); padding-left: 14px; border-left: 1px solid var(--rule); max-width: 34ch; }
.note b { display: block; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; font-size: 11.5px; margin-bottom: 6px; }
.mock svg { width: 100%; height: auto; }
.mock figcaption { margin-top: 8px; }
.mk-bg { fill: var(--mk-bg); } .mk-card { fill: var(--mk-card); } .mk-line { stroke: var(--mk-line); fill: none; }
.mk-fill { fill: var(--mk-line); } .mk-ink { fill: var(--mk-ink); } .mk-inks { stroke: var(--mk-ink); fill: none; }
.mk-t { fill: var(--mk-ink); font: 500 11px/1 var(--sans); } .mk-card-t { fill: var(--mk-card); font: 500 9px/1 var(--sans); } .mk-s { fill: var(--mk-soft); font: 400 9.5px/1 var(--sans); }

/* the Sunday drawing: finished in the markup; motion.js draws it (home: scrubbed, short desktop pin) */
.flow { margin: 32px 0 20px; padding: 28px 0 8px; border-top: 1px solid var(--rule); }
.flow svg { width: 100%; height: auto; }
.flow .flow-v { display: none; }
.fl { stroke: var(--ink); stroke-width: 1; fill: none; }
.fn { fill: var(--paper); stroke: var(--ink); stroke-width: 1; }
.fd { fill: var(--ink); }
.fc { fill: var(--g); }
.fk { stroke: var(--on); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fsr { fill: var(--ink); font: 400 19px var(--serif); }
.fbig { fill: var(--ink); font: 400 24px var(--serif); }
.fm { fill: var(--soft); font: 500 11px var(--mono); letter-spacing: .06em; }
/* its motion lives in motion.js (GSAP, once, reduced-motion safe); the markup is the finished drawing */

/* about (home) */
.about .body p { font: 400 22px/1.5 var(--serif); max-width: 40ch; }
.about .body p + p { margin-top: 18px; }

/* invitation */
.invite { padding-bottom: 8px; }
.invite h2 { font: 400 44px/1.1 var(--serif); letter-spacing: -.015em; }
.invite .line { font-size: 18px; margin: 12px 0 28px; max-width: 46ch; }

/* inner pages */
.page-head { padding: 64px 0 0; }
.page-head h1 { text-wrap: balance; font: 400 clamp(38px, 5.4vw, 68px)/1.05 var(--serif); letter-spacing: -.02em; max-width: 20ch; margin: 10px 0 14px; }
.page-head .intro { font: 400 22px/1.45 var(--serif); max-width: 44ch; margin-bottom: 8px; }
.crumb { font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 28px; }
.crumb a { color: var(--soft); text-decoration: none; display: inline-block; padding: 14px 0; margin: -14px 0; }
.crumb a::before { content: "\2190\00a0"; }
.crumb a:hover { color: var(--ink); }
#list-hero { padding-bottom: 20px; border-bottom: 1px solid var(--ink); }
.cases .case:first-child { padding-top: 32px; }
.cases .case-t { font-size: 32px; }
.piece-visual { margin-top: 36px; }
.piece-visual .flow { margin-top: 0; }
.piece-row { display: grid; grid-template-columns: 7fr 4fr; gap: 40px; align-items: end; margin-top: 28px; }
.piece-mock { max-width: 720px; }
.piece .blk .body p { font-size: 18px; max-width: 62ch; }
.piece .note-line { font: 400 15px/1.6 var(--mono) !important; color: var(--soft); }
.out { margin-top: 18px; }
.next { display: grid; grid-template-columns: 3fr 9fr; gap: 40px; margin-top: 72px; padding: 18px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); align-items: baseline; }
.next a { font: 400 26px/1.25 var(--serif); text-decoration: none; }
.next a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

/* about page */
.about-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 40px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--ink); }
.about-text > p { font: 400 22px/1.5 var(--serif); max-width: 40ch; }
.about-text > p + p { margin-top: 18px; }
.about-text .small { font: 16px/1.55 var(--sans); color: var(--soft); }
.facts { margin-top: 32px; border-top: 1px solid var(--rule); }
.facts div { display: grid; grid-template-columns: 1fr 3fr; gap: 24px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 16px; }
.facts dt { padding-top: 3px; }
.about-text .more { margin-top: 28px; }

/* contact */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; padding-top: 64px; }
.contact h1 { font: 400 clamp(38px, 5vw, 60px)/1.05 var(--serif); letter-spacing: -.02em; }
.contact .line { font-size: 19px; margin: 16px 0 0; max-width: 34ch; }
.kc { font-size: 15px; color: var(--soft); margin-top: 28px; max-width: 34ch; }
.kc a { color: var(--ink); font-weight: 500; }
.rform { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; align-content: start; padding-top: 10px; border-top: 1px solid var(--ink); }
.rform label { display: block; font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.rform label i { font-style: normal; text-transform: none; letter-spacing: 0; }
.rform input, .rform textarea { display: block; width: 100%; margin-top: 6px; background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; padding: 10px 0; font: 17px/1.5 var(--sans); color: var(--ink); letter-spacing: 0; text-transform: none; }
.rform textarea { resize: vertical; min-height: 140px; }
.rform input:focus, .rform textarea:focus { outline: none; border-bottom: 2px solid var(--ink); }
.rform [aria-invalid="true"], .rform [aria-invalid="true"]:focus { border-bottom: 2px solid var(--err); }
.rform .full { grid-column: 1 / -1; }
.rform button { justify-self: start; background: var(--fill); color: var(--on); border: 0; padding: 14px 26px; font: 500 15px/1.2 var(--sans); cursor: pointer; }
.rform button:hover { background: #1560BB; }
.ferr { display: block; margin-top: 6px; font: 400 14px/1.4 var(--sans); color: var(--err); text-transform: none; letter-spacing: 0; }
.fmsg { font-size: 15px; min-height: 1em; }
.fmsg.err { color: var(--err); }
.fmsg.ok { padding: 14px 16px; background: var(--well); color: var(--ink); }
.fmsg:focus { outline: none; }

/* 404 */
.nf { padding-bottom: 40px; }
.nf-links { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 24px; }
.nf-links a { padding-top: 12px; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* footer */
.foot { max-width: 1120px; margin: 96px auto 0; padding: 24px 0 48px; border-top: 1px solid var(--ink); display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
@media (max-width: 1200px) { .foot { margin-left: 40px; margin-right: 40px; } }
.foot-id .brand { font-size: 18px; }
.foot-id .brand .mark { width: 20px; height: 20px; }
.foot-id p { margin-top: 10px; font-size: 14px; color: var(--soft); }
.foot nav { display: flex; gap: 0 24px; flex-wrap: wrap; font-size: 14px; align-items: flex-start; margin-top: -12px; }
.foot nav a { color: var(--soft); text-decoration: none; padding: 12px 0; }
.foot nav a:hover { color: var(--ink); }

/* phone */
@media (max-width: 800px) {
  .wrap { padding: 0 16px; }
  .nav { padding: 12px 16px 0; flex-wrap: wrap; gap: 0 16px; }
  .menu-btn { display: none; }
  .links { width: 100%; gap: 0 20px; font-size: 15px; border-top: 1px solid var(--rule); margin-top: 6px; }
  .links a { padding: 11px 0; }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; margin-top: 28px; padding-top: 20px; }
  .photo { aspect-ratio: 1 / 1; }
  .second { font-size: 20px; }
  .calls { gap: 20px; }
  .blk { grid-template-columns: 1fr; gap: 10px; padding-top: 56px; }
  .blk > .body { border-top: 0; padding-top: 0; }
  .cares { grid-template-columns: 1fr; gap: 20px; }
  .case { grid-template-columns: 1fr; gap: 18px; }
  .piece-row { grid-template-columns: 1fr; gap: 18px; }
  .case-t, .cases .case-t { font-size: 27px; }
  .feature-t { font-size: 30px; }
  .flow .flow-h { display: none; } .flow .flow-v { display: block; max-width: 420px; }
  .btn { padding: 13px 18px; }
  .invite h2 { font-size: 36px; }
  .page-head { padding-top: 40px; }
  .page-head .intro { font-size: 20px; }
  .next { grid-template-columns: 1fr; gap: 6px; margin-top: 56px; }
  .next a { font-size: 22px; }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-text > p { font-size: 20px; }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
  .contact { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; }
  .rform { grid-template-columns: 1fr; }
  .foot { margin: 72px 16px 0; padding: 24px 0 40px; flex-direction: column; gap: 16px; }
  .foot nav a { padding: 8px 0; }
}

/* the work, grouped by the person it serves (David, Gate 2): the "For ..." heading reads first */
.group { padding: 18px 0 8px; border-bottom: 1px solid var(--rule); }
.group + .group { padding-top: 40px; }
.for-head { font: 400 34px/1.15 var(--serif); letter-spacing: -.01em; text-transform: none; color: var(--tx); }
.kind { font: 400 20px/1.45 var(--serif); max-width: 46ch; margin-top: 8px; }
.copyflag { font: 500 11px/1 var(--mono); letter-spacing: .04em; background: #F5E7A8; color: var(--ink); padding: 2px 5px; margin-right: 6px; vertical-align: 3px; }
.example { margin-top: 26px; }
.group .feature, .group .case { border-bottom: 0; }
.group .case + .case { border-top: 1px solid var(--rule); }
.group .feature { padding-top: 6px; }
.group .case:first-of-type { padding-top: 10px; }
.feature-t { font-size: 34px; }
.piece-head .for-head { font-size: 26px; }
#list-hero + .cases .group:first-child { padding-top: 32px; }
@media (max-width: 800px) {
  .for-head { font-size: 28px; }
  .kind { font-size: 18px; }
  .feature-t { font-size: 27px; }
  .piece-head .for-head { font-size: 22px; }
}

/* tools churches already use (round 1b): plain names in mono, no logos */
.tools-sec h2 { font: 400 28px/1.2 var(--serif); letter-spacing: -.01em; margin-top: 6px; }
.tools-sec .line { font-size: 17px; max-width: 60ch; margin-top: 10px; }
.toollist { list-style: none; display: flex; flex-wrap: wrap; gap: 0; margin-top: 20px; border-top: 1px solid var(--rule); }
.toollist li { font: 500 12.5px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); padding: 10px 22px 10px 0; margin-right: 22px; border-bottom: 1px solid var(--rule); }
.checknote { font-size: 13px; color: var(--soft); margin-top: 10px; }
.tools-line, .case .tools-line { margin-top: 10px; padding-left: 15px; font: 500 12px/1.5 var(--mono); text-transform: none; letter-spacing: .02em; color: var(--soft); }
.fnote > div { min-width: 0; }
.piece .blk .body p + p { margin-top: 14px; }

/* the piece demonstrations (tools/demos.py, motion.js): drawn finished; motion only shows how they got there */
[data-demo] svg { overflow: visible; }
/* each demo carries a desktop drawing (dm-d) and a 260-wide phone drawing (dm-p); one shows, the other is display:none
   so only one role="img" reaches the accessibility tree (2026-10-17, like .flow-h / .flow-v) */
[data-demo] .dm-p { display: none; }
@media (max-width: 800px) {
  [data-demo] .dm-d { display: none; }
  [data-demo] .dm-p { display: block; max-width: 420px; }
  .dm-p .d-qt { font-size: 10px; }   /* the Ask line fits the 232-wide pill */
}
.mk-card-t { font-size: 9px; }
.d-ck, .fc { fill: var(--g); }
.d-ckm, .d-ck-w { stroke: var(--on); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.d-ck-w { stroke: var(--mk-card); }
.d-ok { fill: var(--tx); font: 500 10px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.d-evt { fill: var(--ink); font: 400 15px/1 var(--serif); }
.d-chipo { fill: none; stroke: var(--soft); stroke-width: 1; }
.d-btnt { fill: var(--mk-card); font: 500 15px/1 var(--sans); }
.d-slt { fill: var(--mk-card); font: 400 15px/1 var(--serif); }
.d-gold { fill: #C99A2E; }
.d-aa { font: 400 46px/1 var(--serif); }
.d-st { font: 400 15px/1 var(--serif); }
.b1 { fill: var(--b1); } .b2 { fill: var(--b2); } .b3 { fill: var(--b3); }

/* final review (2026-10-10): touch targets and phone legibility, with no visual change to the links */
.more, .allwork, .plain, .nf-links a, .case-t a, .feature-t a, .foot nav a, .links a, .out a { position: relative; }
.more::after, .allwork::after, .plain::after, .nf-links a::after, .case-t a::after, .feature-t a::after,
.foot nav a::after, .links a::after, .out a::after { content: ""; position: absolute; inset: -10px -6px; }
.skip { padding: 0.75rem 1rem; }
@media (max-width: 800px) {
  /* titles in the 400-wide mocks that have no phone drawing render near 9px on a phone; lift them. The demos have
     their own phone drawings (dm-p, 2026-10-17), where 11px already renders near 14px, so they are left out. */
  .mock .mk-t { font-size: 12.5px; }
  .mock .dm-p .mk-t { font-size: 11px; }
}

/* Audit round (2026-10-11): the pattern line above the groups, the who-I-am line on piece pages, the form hint */
.pattern { font: 400 18px/1.55 var(--sans); color: var(--soft); max-width: 56ch; margin: 0 0 28px; }
.byline { border-top: 1px solid var(--rule); padding-top: 18px; margin-top: 40px; font: 400 16px/1.6 var(--sans); color: var(--soft); max-width: 62ch; }
.byline a { color: var(--ink); }
label .hint, .hint { display: block; font: 400 14px/1.4 var(--sans); color: var(--soft); margin: 4px 0 6px; text-transform: none; letter-spacing: normal; }

/* ===== Home, Who I build for: five doors (David, 2026-10-11, IA round 3, option B3 v2; prototypes look/ia/) =====
   A closed door: the "For ..." heading, its line, its piece titles. An open door: numbered contents and a stage that
   shows one piece at a time. On desktop the contents (and a closed door's titles) sit in the label column, the same
   1/4 grid as every .blk, and the stage takes the whole body column. Markup = all open, all stacked (no JS);
   assets/doors.js closes them. The inline head script adds .dl-doors so they are closed before first paint. */
.doors { border-top: 1px solid var(--rule); }
.door { border-bottom: 1px solid var(--rule); padding: 6px 0 18px; scroll-margin-top: 12px; }
.door-h { margin: 0; }
.door-btn { all: unset; box-sizing: border-box; cursor: pointer; display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0 4px; min-height: 44px; }
.door-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.door-btn .for-head { font-size: 32px; }
.door.is-open .door-btn .for-head { font-size: 40px; line-height: 1.05; }
.door-ic { position: relative; flex: none; width: 34px; height: 34px; border: 1px solid var(--ink); border-radius: 50%; }
.door-ic::before, .door-ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); }
.door-ic::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s ease; }
.door-btn[aria-expanded="true"] .door-ic::after { transform: translate(-50%, -50%) rotate(0deg); }
.door-btn:hover .door-ic { background: var(--well); }
.door > .kind { margin-top: 4px; }
.door-titles { list-style: none; margin-top: 12px; padding: 0; }
.door-titles a { display: inline-block; padding: 5px 0; font: 400 15px/1.4 var(--sans); color: var(--soft); text-decoration: none; }
.door-titles a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
html:not(.dl-doors) .door-titles, .door.is-open > .door-titles { display: none; }   /* no JS: the open doors list them */
html:not(.dl-doors) .door-ic { display: none; }   /* no JS: the button does nothing, so no plus */
.dl-doors:not(.dl-doors-ready) .door-panel { display: none; }   /* before doors.js runs: closed, no shift */
.door-panel { overflow: clip; }
.door-panel[hidden="until-found"], .st[hidden="until-found"] { display: block !important; content-visibility: hidden; padding: 0; margin: 0; }
.toc { list-style: none; padding: 0; margin-top: 22px; border-top: 1px solid var(--ink); }
.toc-a { display: grid; grid-template-columns: 34px 1fr; gap: 6px; align-items: baseline; padding: 12px 10px 12px 0; border-bottom: 1px solid var(--rule);
  text-decoration: none; color: var(--soft); font: 400 16px/1.35 var(--sans); min-height: 44px; }
.toc-n { font: 500 12px/1 var(--mono); letter-spacing: .04em; }
.toc-a:hover { color: var(--ink); }
.toc-a[aria-current="true"] { color: var(--ink); font-weight: 500; background: var(--well); box-shadow: inset 2px 0 0 var(--ink); padding-left: 10px; }
.stage { margin-top: 22px; min-width: 0; }
.st .mock, .st .flow { margin: 0 0 6px; }
.st .flow { padding-top: 0; border-top: 0; }
.st-n { margin: 10px 0 6px; }
.st-t { font: 400 38px/1.08 var(--serif); letter-spacing: -.012em; margin: 0 0 8px; }
.st-t a { text-decoration: none; }
.st-t a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.st-l { font-size: 18px; max-width: 60ch; }
html:not(.dl-doors) .st + .st { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rule); }   /* no JS: stacked */
@media (min-width: 801px) {
  /* the doors reach into the label column: -(1/3 of the body column + the gap) = exactly the .blk label column */
  .doors { margin-left: calc(-100% / 3 - 40px); border-top: 0; }
  .door { display: grid; grid-template-columns: 1fr 3fr; grid-template-rows: auto 1fr auto; column-gap: 40px; padding: 0 0 22px; border-bottom: 0; }
  .door > .kind { align-self: start; }   /* a long title list in the rail grows the line row, never the gap under the heading */
  .door > * { grid-column: 2; }
  .door > .door-h { grid-row: 1; border-top: 1px solid var(--rule); }
  .door > .kind { grid-row: 2; }
  .door > .door-titles { grid-column: 1; grid-row: 1 / span 2; margin: 0; padding-top: 16px; border-top: 1px solid var(--rule); align-self: start; }
  .door-titles a { font-size: 14.5px; line-height: 1.35; padding: 4px 0; }
  .door-titles li + li { margin-top: 2px; }
  .door > .door-panel { grid-column: 1 / -1; grid-row: 3; display: grid; grid-template-columns: 1fr 3fr; column-gap: 40px; align-items: start; }
  .door-panel > .toc { grid-column: 1; margin-top: 26px; position: sticky; top: 24px; }
  .door-panel > .stage { grid-column: 2; margin-top: 26px; }
}
@media (max-width: 800px) {
  .door-btn .for-head { font-size: 26px; }
  .door.is-open .door-btn .for-head { font-size: 30px; }
  .toc-a { padding: 10px 8px 10px 0; }
  .st-t { font-size: 25px; line-height: 1.12; }
  .st-l { font-size: 16px; }
  /* a tighter phone hero (2026-10-11, IA shared change 2): photo beside the role line, Where I work on one line */
  .hero-grid { grid-template-columns: 112px 1fr; gap: 16px 18px; align-items: start; }
  .hero-grid .photo { aspect-ratio: 4 / 5; grid-row: 1; }
  .hero-grid .hero-say { display: contents; }
  .hero-grid .role { grid-column: 2; grid-row: 1; align-self: end; }
  .hero-grid .second, .hero-grid .calls, .hero-grid .hero-where { grid-column: 1 / -1; }
  .hero-grid .second, .hero-grid .calls { margin-top: 0; }
  .wherelist { display: flex; flex-wrap: wrap; margin-top: 6px; }
  .wherelist li { border: 0; padding: 2px 0; }
  .wherelist li:not(:last-child)::after { content: "·"; margin: 0 8px; color: var(--soft); }
}

/* Piece pages: the same person's other pieces, above the byline (2026-10-11, IA shared change 3) */
.mf { list-style: none; padding: 0; }
.mf li + li { border-top: 1px solid var(--rule); }
.mf a { display: block; padding: 12px 0; text-decoration: none; }
.mf-t { display: block; font: 400 24px/1.2 var(--serif); letter-spacing: -.01em; }
.mf-l { display: block; margin-top: 4px; font-size: 15.5px; color: var(--soft); max-width: 62ch; }
.mf a:hover .mf-t { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
@media (max-width: 800px) { .mf-t { font-size: 21px; } }

/* By the numbers (David, 2026-11-06): piece pages and /builds/, from tools/builds.json */
.nums { display: grid; gap: 0; margin: 0; }
.num { display: grid; grid-template-columns: 9.5rem 1fr; gap: 20px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--rule); }
.num:first-child { border-top: 0; padding-top: 4px; }
.num dt { font: 400 30px/1.1 var(--serif); letter-spacing: -.01em; color: var(--ink); white-space: nowrap; }
.num dd { margin: 0; font: 400 17px/1.5 var(--sans); color: var(--ink); max-width: 52ch; }
.num-k { display: block; margin-top: 4px; font-size: 11px; }
.nums-asof, .piece .blk .body p.nums-asof { margin-top: 18px; font: 500 12px/1.4 var(--mono); }
.nums-asof a { color: var(--ink); text-transform: none; letter-spacing: 0; font: 500 14px/1.4 var(--sans); border-bottom: 1px solid currentColor; text-decoration: none; }
.asof { margin-top: 6px; }
.build { display: grid; grid-template-columns: 5fr 7fr; gap: 32px; padding: 28px 0; border-top: 1px solid var(--rule); }
.build-h { min-width: 0; }
.build-b { min-width: 0; padding-top: 4px; }
.build-b .build-l { max-width: 54ch; font-size: 17px; }
.build-b .more { margin-top: 2px; }
.build:first-child { border-top: 0; padding-top: 0; }
.build-t { font: 400 26px/1.2 var(--serif); letter-spacing: -.01em; margin: 0 0 6px; text-wrap: balance; }
.build-t a { text-decoration: none; }
.build-t a:hover { text-decoration: underline; text-underline-offset: 4px; }
.build-s { margin: 0 0 10px; }
.build-l { font: 400 16px/1.55 var(--sans); max-width: 42ch; margin: 0 0 12px; }
.build .num { grid-template-columns: 7.5rem 1fr; }
.build .num dt { font-size: 26px; }
.build .num dd { font-size: 15.5px; }
.nums-none { font: 400 15.5px/1.55 var(--sans); color: var(--soft); max-width: 44ch; margin: 4px 0 0; }
@media (max-width: 800px) {
  .build { grid-template-columns: 1fr; gap: 14px; }
  .num, .build .num { grid-template-columns: 1fr; gap: 2px; }
  .num dt { font-size: 26px; }
}

/* Case study: the 3D walkthrough (/builds/3d-building-walkthrough/, tools/walkthrough.py, 2026-11-17).
   Three examples, each a label column (number, title) beside its words, then the pictures at full body width. */
.cs-kicker { margin-bottom: -2px; }
.cs .page-head .intro { max-width: 40ch; }
.cs-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin-top: 28px; max-width: 760px; border-top: 1px solid var(--ink); }
.cs-facts .num, .cs-facts .num:first-child { grid-template-columns: 1fr; gap: 2px; border-top: 0; padding: 12px 0 0; }
.cs-facts .num dd { font-size: 15.5px; color: var(--soft); }
.cs-how { margin-top: 22px; font: 400 16px/1.55 var(--sans); color: var(--soft); max-width: 60ch; }
.cs-ex { display: grid; grid-template-columns: 3fr 9fr; column-gap: 40px; padding-top: 72px; }
.cs-ex-head { border-top: 1px solid var(--ink); padding-top: 10px; }
.cs-ex-head h2 { font: 400 30px/1.15 var(--serif); letter-spacing: -.01em; margin-top: 10px; text-wrap: balance; }
.cs-ex-body { border-top: 1px solid var(--ink); padding-top: 14px; min-width: 0; }
.cs-desc { font-size: 18px; max-width: 62ch; }
.cs-settled { margin-top: 18px; padding: 14px 18px; background: var(--well); font: 400 19px/1.45 var(--serif); max-width: 60ch; }
.cs-settled .lab { display: block; margin-bottom: 6px; color: var(--ink); }
.cs-url { display: none; }
.cs-fig { grid-column: 1 / -1; margin-top: 32px; min-width: 0; }
.cs-ex > *, .cs-360, .cs-pano { min-width: 0; max-width: 100%; }
.cs-fig img, .cs-fig video { width: 100%; height: auto; background: var(--well); }
.cs-fig figcaption, .cs-fig .lab { margin-top: 8px; }
.cs-video video { display: block; aspect-ratio: 16 / 9; }
.cs-print-only { display: none !important; }
.cs-shots { display: grid; grid-template-columns: 1fr 230px; gap: 24px; align-items: end; }
.cs-shots img { border: 1px solid var(--rule); }
.cs-shots figcaption { grid-column: 1 / -1; margin-top: 0; }
.cs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 16px; }
.cs-grid figure figcaption { margin-top: 6px; }
.cs-360 { margin-top: 28px; }
.cs-pano { overflow-x: auto; overflow-y: hidden; cursor: grab; background: var(--well); scrollbar-width: thin; overscroll-behavior-x: contain; }
.cs-pano.is-drag { cursor: grabbing; }
.cs-pano img { width: auto; max-width: none; height: 460px; user-select: none; -webkit-user-drag: none; }
.cs-offer { display: grid; grid-template-columns: 3fr 9fr; gap: 40px; margin-top: 88px; }
.cs-offer > .lab { padding-top: 10px; border-top: 1px solid var(--ink); }
.cs-offer .body { border-top: 1px solid var(--ink); padding-top: 10px; }
.cs-offer h2 { font: 400 44px/1.1 var(--serif); letter-spacing: -.015em; }
.cs-offer .line { font: 400 24px/1.4 var(--serif); margin: 12px 0 28px; max-width: 34ch; }
@media (max-width: 800px) {
  .cs-facts { grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .cs-facts .num dt { font-size: 26px; }
  .cs-ex { grid-template-columns: 1fr; padding-top: 56px; }
  .cs-ex-head h2 { font-size: 26px; }
  .cs-ex-body { border-top: 0; padding-top: 12px; }
  .cs-desc { font-size: 17px; }
  .cs-settled { font-size: 18px; padding: 12px 14px; }
  .cs-fig { margin-top: 24px; }
  .cs-shots { grid-template-columns: 1fr; }
  .cs-shot-p { max-width: 260px; justify-self: center; }
  .cs-grid { grid-template-columns: 1fr 1fr; gap: 14px 10px; }
  .cs-pano img { height: 240px; }
  .cs-offer { grid-template-columns: 1fr; gap: 10px; margin-top: 64px; }
  .cs-offer .body { border-top: 0; padding-top: 0; }
  .cs-offer h2 { font-size: 34px; }
  .cs-offer .line { font-size: 21px; }
}

/* Print (the case study is a leave-behind; 2026-11-17): paper white, no nav or controls, pictures kept whole. */
@media print {
  @page { margin: 14mm 14mm 16mm; }
  :root { --paper: #FFFFFF; --well: #F1EDE4; }
  body { font-size: 11pt; background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .skip, .links, .menu-btn, .foot, .demo-tag, .next, .cs-drag, video, .btn, .invite { display: none !important; }
  .cs-print-only { display: block !important; }
  .nav { padding-top: 0; }
  .wrap { max-width: none; padding: 0; }
  .foot { margin: 28px 0 0; padding: 12px 0 0; }
  .crumb { display: none; }
  .page-head { padding-top: 18px; }
  .page-head h1 { font-size: 30pt; max-width: 24ch; margin-bottom: 8px; }
  .cs .page-head .intro { font-size: 15pt; max-width: 52ch; }
  .cs-ex { padding-top: 26px; break-inside: avoid; }
  .cs-ex-head, .cs-settled, .cs-desc { break-inside: avoid; }
  .cs-video .cs-print-only { width: 66%; }
  .cs-ex-head h2 { font-size: 18pt; }
  .cs-desc { font-size: 11pt; }
  .cs-settled { font-size: 12.5pt; }
  .cs-fig { margin-top: 14px; }
  .cs-fig figure, .cs-grid figure, .cs-video, .cs-shots, .cs-360, .cs-offer { break-inside: avoid; }
  .cs-url { display: inline; margin-left: 12px; font: 400 10pt var(--mono); color: var(--soft); }
  .out a span { display: none; }
  .cs-shots { grid-template-columns: 1fr 190px; width: 100%; }
  .cs-pano { overflow: visible; background: none; }
  .cs-pano img { width: 100%; height: auto; }
  .cs-offer { margin-top: 26px; }
  .cs-offer h2 { font-size: 22pt; }
  .cs-offer .line { font-size: 14pt; margin-bottom: 4px; }
  .cs-contact { font: 500 12pt var(--sans); }
  .byline { display: none; }
  a { text-decoration: none; }
}
