/* ============================================================
   site.css, the practice.directcreate.com site layer (stage 4, 2026-09-06)
   ------------------------------------------------------------
   Sits on top of the locked brand bundle (colors_and_type.css, dc-brand.css).
   Brand tokens are never redefined here; this file adds the site's own
   tokens, the page anatomy (SITE_MAP.md 4.1), the navigation separated from
   narration (section 3), the evidence block (4.2), the rails, and the
   reading-first layout (8.3). Light theme only, per the brand.
   ============================================================ */

:root{
  /* Accent as TEXT fails AA on white (2.77:1). Text takes this tone; rules,
     marks and panels keep the brand terracotta. 5.85:1 on white. */
  --accent-ink: #9C4E45;
  --measure: 66ch;
  --site-max: 1200px;
  --gutter: clamp(20px, 5vw, 72px);
  --step-h2-site: clamp(1.5rem, 1.15rem + 1.6vw, 2.25rem);
  --step-h3-site: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  --step-title: clamp(2.2rem, 1.4rem + 4vw, 4.4rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { overflow-x: hidden; max-width: 100%; }
body { font-size: var(--step-body); line-height: 1.65; }
img { max-width: 100%; height: auto; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper);
  padding: 8px 12px; font-family: var(--font-grotesque); font-size: var(--step-cap);
  text-transform: uppercase; letter-spacing: var(--track-caption); z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---- shell ---- */
.site-shell { max-width: var(--site-max); margin: 0 auto; padding: 0 var(--gutter); }
.site-main { padding-bottom: var(--space-6); }

/* ---- header and navigation (section 3) ---- */
.site-header { border-bottom: 1px solid var(--ink); background: var(--paper); position: relative; z-index: 40; }
.site-header .site-shell { display: flex; align-items: center; gap: var(--space-4); min-height: 64px; flex-wrap: wrap; }
.site-logo { font-family: var(--font-grotesque); font-weight: var(--w-black); font-size: 1.05rem;
  letter-spacing: 0.04em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.site-logo .dot { color: var(--terracotta); }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; align-items: center; }
.site-nav li { position: relative; }
.site-nav a, .site-nav button { font-family: var(--font-grotesque); font-weight: var(--w-bold);
  font-size: var(--step-cap); text-transform: uppercase; letter-spacing: var(--track-caption);
  color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer;
  padding: 22px 12px; display: inline-flex; align-items: center; gap: 6px; line-height: 1; }
.site-nav a:hover, .site-nav button:hover, .site-nav a[aria-current="page"] { color: var(--accent-ink); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--terracotta); }
.site-nav button[aria-expanded="true"] { color: var(--accent-ink); }
.site-nav .chev { width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); margin-top: -4px; }
.site-nav .sub { display: none; position: absolute; left: 0; top: 100%; min-width: 220px; background: var(--paper);
  border: 1px solid var(--ink); padding: 8px 0; z-index: 50; }
.site-nav li.open > .sub { display: block; }
.site-nav .sub a { display: block; padding: 10px 16px; text-transform: none; letter-spacing: 0; font-weight: var(--w-medium);
  font-size: var(--step-meta); }
.site-nav .sub a:hover { background: var(--pale-grey); color: var(--ink); }
.site-tools { display: flex; align-items: center; gap: 10px; margin-left: 8px; flex-wrap: wrap; max-width: 100%; min-width: 0; }  /* reflows at 200% zoom on 375 px (WCAG 1.4.10) */
.site-search-link { font-family: var(--font-grotesque); font-weight: var(--w-bold); font-size: var(--step-cap);
  text-transform: uppercase; letter-spacing: var(--track-caption); color: var(--ink); text-decoration: none; padding: 10px 6px; }
.site-search-link:hover { color: var(--accent-ink); }
.site-action { display: inline-flex; align-items: center; font-family: var(--font-grotesque); font-weight: var(--w-bold);
  font-size: var(--step-cap); text-transform: uppercase; letter-spacing: var(--track-caption); text-decoration: none;
  padding: 11px 14px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); line-height: 1; white-space: nowrap; }
.site-action:hover { background: var(--terracotta); border-color: var(--terracotta); color: var(--ink); }
.site-menu-toggle { display: none; font-family: var(--font-grotesque); font-weight: var(--w-bold);
  font-size: var(--step-cap); text-transform: uppercase; letter-spacing: var(--track-caption);
  background: none; border: 1px solid var(--ink); color: var(--ink); padding: 10px 14px; cursor: pointer; }
@media (max-width: 900px) {
  .site-header .site-shell { min-height: 56px; gap: 8px; }
  .site-tools { margin-left: auto; gap: 6px; }
  .site-menu-toggle { display: inline-block; padding: 9px 10px; }
  .site-action { padding: 10px 10px; font-size: 0.66rem; min-height: 44px; }
  .site-search-link { padding: 9px 4px; }
  .site-nav { display: none; width: 100%; margin: 0; order: 10; }
  .site-header.open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; border-top: 1px solid var(--ink); }
  .site-nav li { border-bottom: 1px solid var(--mid-neutral); }
  .site-nav a, .site-nav button { width: 100%; padding: 14px 4px; justify-content: space-between; }
  .site-nav .sub { position: static; border: 0; border-left: 3px solid var(--terracotta); margin: 0 0 8px 8px; }
}
@media (max-width: 420px) { .site-logo { font-size: 0.92rem; } .site-search-link { display: none; } }

/* ---- breadcrumb and eyebrow (orient) ---- */
.crumbs { font-family: var(--font-grotesque); font-size: var(--step-cap); text-transform: uppercase;
  letter-spacing: var(--track-caption); color: var(--slate); margin: var(--space-4) 0 var(--space-3); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: "/"; flex: none; margin-right: 6px; color: var(--mid-neutral); }
.crumbs a { color: var(--slate); text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); }
.eyebrow { font-family: var(--font-grotesque); font-weight: var(--w-bold); font-size: var(--step-cap);
  text-transform: uppercase; letter-spacing: var(--track-wide); color: var(--accent-ink); display: block; margin-bottom: 10px; }

/* ---- page header (orient + state) ---- */
.page-head { margin-bottom: var(--space-4); }
.page-head h1 { font-family: var(--font-display-serif); font-weight: var(--w-bold); font-size: var(--step-title);
  line-height: 1.1; letter-spacing: 0; margin: 0 0 var(--space-3); max-width: 22ch; text-wrap: balance; }
.page-head h1.grot { font-family: var(--font-grotesque); font-weight: var(--w-black); letter-spacing: var(--track-tight);
  line-height: 1.02; text-transform: uppercase; }
.lead { font-family: var(--font-serif); font-size: clamp(1.1rem, 1rem + 0.6vw, 1.35rem); line-height: 1.5;
  max-width: var(--measure); margin: 0 0 var(--space-3); }
.meta { font-family: var(--font-grotesque); font-size: var(--step-meta); color: var(--slate);
  display: flex; flex-wrap: wrap; gap: 4px 20px; margin: var(--space-3) 0; line-height: 1.4; }
@media (max-width: 700px) { .meta { font-size: 0.8rem; gap: 2px 16px; } .meta b { font-size: 0.62rem; } }
.meta b { color: var(--ink); text-transform: uppercase; letter-spacing: var(--track-caption); font-size: var(--step-cap); margin-right: 6px; }
.meta a { color: var(--ink); }
.rule-accent { border: 0; border-top: 4px solid var(--terracotta); margin: var(--space-3) 0 var(--space-4); width: 88px; }

/* ---- hero (prove) ---- */
.hero { margin: 0 0 var(--space-5); }
.hero img { display: block; width: 100%; height: auto; }
.hero.cover img { aspect-ratio: 16 / 9; object-fit: cover; }
.hero.contain { background: var(--warm-paper); padding: var(--space-3); }
.hero.contain img { max-height: 70vh; width: auto; margin: 0 auto; object-fit: contain; }
/* Decision 711 (applied on the recommended answer, 2026-09-10): a source narrower than 900 px is never
   stretched to the measure; it sits as a contained evidence figure at its own size on warm paper. */
.hero.small img { max-width: min(100%, 600px); max-height: 60vh; }
.hero figcaption, .fig figcaption { font-family: var(--font-grotesque); font-size: var(--step-meta); color: var(--slate);
  margin-top: 10px; line-height: 1.45; max-width: var(--measure); }
.hero figcaption .prov, .fig figcaption .prov { display: block; font-size: var(--step-cap); text-transform: uppercase;
  letter-spacing: var(--track-caption); margin-top: 4px; }

/* ---- body (prove): one reading measure, never two columns ---- */
.body { max-width: var(--measure); }
.body h2 { font-family: var(--font-grotesque); font-weight: var(--w-black); font-size: var(--step-h2-site);
  letter-spacing: var(--track-tight); line-height: 1.05; margin: var(--space-5) 0 var(--space-3); scroll-margin-top: 80px; }
.body h2:first-child { margin-top: 0; }
.body h3 { font-family: var(--font-grotesque); font-weight: var(--w-bold); font-size: var(--step-h3-site);
  line-height: 1.15; margin: var(--space-4) 0 var(--space-2); }
.body p { margin: 0 0 var(--space-3); }
.body ul, .body ol { padding-left: 1.3em; margin: 0 0 var(--space-3); }
.body li { margin-bottom: 6px; }
.body blockquote { margin: var(--space-4) 0; padding: var(--space-3) var(--space-4); border-left: 4px solid var(--terracotta);
  background: var(--warm-paper); }
.body blockquote p { margin-bottom: 8px; }
.body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.body a:hover { color: var(--accent-ink); }
.body a.term { text-decoration-style: dotted; text-decoration-color: var(--accent-ink); }
.body a.link-pending, .body span.link-pending { color: var(--slate); text-decoration: none; border-bottom: 1px dashed var(--mid-neutral); cursor: help; }
.body table { border-collapse: collapse; width: 100%; font-size: var(--step-meta); margin: 0 0 var(--space-3); }
.body th, .body td { border-bottom: 1px solid var(--mid-neutral); padding: 8px; text-align: left; vertical-align: top; }
.body th { font-family: var(--font-grotesque); font-size: var(--step-cap); text-transform: uppercase; letter-spacing: var(--track-caption); }
.tablewrap { overflow-x: auto; }
.section-anchor { font-family: var(--font-grotesque); font-size: var(--step-cap); color: var(--mid-neutral);
  text-decoration: none; margin-left: 8px; }
.body h2:hover .section-anchor { color: var(--accent-ink); }

/* two-column page layout: body + aside rails on wide screens */
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
.page-grid > * { min-width: 0; }
.body, .lead, .meta, .evidence, .block { overflow-wrap: anywhere; }
@media (min-width: 1000px) { .page-grid { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } }
.aside { position: sticky; top: 24px; display: grid; gap: var(--space-4); }
@media (max-width: 999px) {
  /* the anatomy in reading order on one column: contents, body, evidence,
     questions, related, terms, cite, read next, the door */
  .page-main, .page-rails { display: contents; }
  .page-grid { gap: var(--space-4); }
  .page-grid .contents { order: 1; } .page-grid .body { order: 2; } .page-grid .evidence { order: 3; }
  .page-grid .body + section, .page-grid section.body { order: 4; } .page-grid .related { order: 5; }
  .page-grid .terms { order: 6; } .page-grid .cite { order: 7; } .page-grid .sec { order: 8; }
  .page-grid .door { order: 9; } .page-grid .door-essay { order: 5; } .page-grid .readnext { order: 10; } .page-grid .contact { order: 3; }
  .page-grid .evidence { margin: 0; }
}

/* ---- blocks: evidence, terms, related, cite, contents (trust, relate, act) ---- */
.block { border-top: 1px solid var(--ink); padding-top: var(--space-3); }
.block h2, .block h3 { font-family: var(--font-grotesque); font-weight: var(--w-bold); font-size: var(--step-cap);
  text-transform: uppercase; letter-spacing: var(--track-wide); margin: 0 0 var(--space-3); color: var(--ink); }
.block ul { list-style: none; margin: 0; padding: 0; }
.block li { margin: 0 0 10px; font-size: var(--step-meta); line-height: 1.45; }
.block li a { text-decoration: none; color: var(--ink); }
.block li a:hover { color: var(--accent-ink); text-decoration: underline; }
.block .kind { display: block; font-family: var(--font-grotesque); font-size: var(--step-cap); color: var(--slate);
  text-transform: uppercase; letter-spacing: var(--track-caption); }
.contents li a { font-family: var(--font-grotesque); }
.terms dt { font-family: var(--font-grotesque); font-weight: var(--w-bold); font-size: var(--step-meta); margin-top: 8px; }
.terms dd { margin: 2px 0 0; font-size: var(--step-meta); color: var(--slate); line-height: 1.45; }
.terms dt a { text-decoration: none; color: var(--ink); }
.evidence { background: var(--warm-paper); padding: var(--space-4); border-top: 4px solid var(--terracotta); margin: var(--space-5) 0; max-width: var(--measure); }
.evidence h2 { font-family: var(--font-grotesque); font-weight: var(--w-bold); font-size: var(--step-cap); text-transform: uppercase; letter-spacing: var(--track-wide); margin: 0 0 var(--space-3); }
.evidence dl { display: grid; grid-template-columns: 1fr; gap: 10px 0; margin: 0; }
@media (min-width: 640px) { .evidence dl { grid-template-columns: 150px 1fr; } }
.evidence dt { font-family: var(--font-grotesque); font-weight: var(--w-bold); font-size: var(--step-cap); text-transform: uppercase; letter-spacing: var(--track-caption); color: var(--slate); padding-top: 3px; }
.evidence dd { margin: 0; font-size: var(--step-meta); line-height: 1.5; }
.evidence dd ul { margin: 0; padding-left: 1.1em; }
.evidence .pending { color: var(--accent-ink); font-family: var(--font-grotesque); font-size: var(--step-cap); text-transform: uppercase; letter-spacing: var(--track-caption); }
.cite pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font-serif); font-size: var(--step-meta); background: var(--pale-grey);
  padding: 12px; margin: 0 0 8px; line-height: 1.45; }
.cite button { font-family: var(--font-grotesque); font-weight: var(--w-bold); font-size: var(--step-cap); text-transform: uppercase;
  letter-spacing: var(--track-caption); background: none; border: 1px solid var(--ink); padding: 8px 12px; cursor: pointer; }
.cite button:hover { background: var(--ink); color: var(--paper); }

/* ---- read next / prev-next (act) ---- */
.readnext { margin: var(--space-6) 0 0; border-top: 4px solid var(--ink); padding-top: var(--space-4); }
.readnext .pos { font-family: var(--font-grotesque); font-size: var(--step-cap); text-transform: uppercase; letter-spacing: var(--track-wide); color: var(--slate); margin-bottom: 8px; }
.readnext p { font-family: var(--font-serif); font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); max-width: var(--measure); margin: 0 0 var(--space-3); }
.readnext .pn { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between; }
.readnext .pn a { font-family: var(--font-grotesque); font-weight: var(--w-bold); font-size: var(--step-meta); text-decoration: none; color: var(--ink); border: 1px solid var(--ink); padding: 12px 16px; }
.readnext .pn a:hover { background: var(--ink); color: var(--paper); }
.readnext .pn a.next { margin-left: auto; background: var(--ink); color: var(--paper); }
.readnext .pn a.next:hover { background: var(--terracotta); border-color: var(--terracotta); color: var(--ink); }

/* ---- cards and lists (landings, home) ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--space-4); }
.card { border-top: 1px solid var(--ink); padding-top: var(--space-3); display: flex; flex-direction: column; min-width: 0; }
.card .media { margin: 0 0 var(--space-3); }
.card .media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.card .media.contain img { object-fit: contain; background: var(--warm-paper); padding: 12px; }
.card .kicker { font-family: var(--font-grotesque); font-size: var(--step-cap); text-transform: uppercase; letter-spacing: var(--track-caption); color: var(--accent-ink); margin-bottom: 6px; }
.card h3 { font-family: var(--font-grotesque); font-weight: var(--w-black); font-size: var(--step-h3-site); letter-spacing: var(--track-tight); line-height: 1.05; margin: 0 0 8px; }
.card h3 a { text-decoration: none; color: var(--ink); }
.card h3 a:hover { color: var(--accent-ink); }
.card p { font-size: var(--step-meta); color: var(--slate); margin: 0; line-height: 1.5; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { border-top: 1px solid var(--mid-neutral); padding: 14px 0; display: grid; grid-template-columns: 1fr; gap: 4px; }
@media (min-width: 700px) { .list li { grid-template-columns: 1fr 2fr; gap: var(--space-4); } }
.list a { text-decoration: none; color: var(--ink); font-family: var(--font-grotesque); font-weight: var(--w-bold); }
.list a:hover { color: var(--accent-ink); }
.list .desc { font-size: var(--step-meta); color: var(--slate); }

/* ---- sections on landings and home ---- */
.sec { margin: var(--space-6) 0 0; }
.sec > h2 { font-family: var(--font-grotesque); font-weight: var(--w-black); font-size: var(--step-h2-site); letter-spacing: var(--track-tight); line-height: 1.05; margin: 0 0 var(--space-3); }
.sec > .intro { max-width: var(--measure); margin: 0 0 var(--space-4); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-3); }
.sec-head a.more { font-family: var(--font-grotesque); font-weight: var(--w-bold); font-size: var(--step-cap); text-transform: uppercase; letter-spacing: var(--track-caption); text-decoration: none; color: var(--ink); }
.sec-head a.more:hover { color: var(--accent-ink); }

/* ---- Start here route ---- */
.start { border: 1px solid var(--ink); padding: var(--space-4); margin: var(--space-5) 0; }
.start .label { font-family: var(--font-grotesque); font-weight: var(--w-bold); font-size: var(--step-cap); text-transform: uppercase; letter-spacing: var(--track-wide); color: var(--accent-ink); margin-bottom: var(--space-3); }
.start ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: var(--space-3); counter-reset: s; }
.start li { counter-increment: s; border-top: 3px solid var(--terracotta); padding-top: 10px; }
.start li::before { content: counter(s); display: block; font-family: var(--font-grotesque); font-weight: var(--w-black); font-size: 1.6rem; line-height: 1; margin-bottom: 6px; }
.start li .role { font-family: var(--font-grotesque); font-size: var(--step-cap); text-transform: uppercase; letter-spacing: var(--track-caption); color: var(--slate); display: block; }
.start li a { font-family: var(--font-grotesque); font-weight: var(--w-bold); text-decoration: none; color: var(--ink); font-size: var(--step-meta); }
.start li a:hover { color: var(--accent-ink); }

/* ---- home statement ---- */
.home-head { padding: var(--space-6) 0 var(--space-4); }
.home-head h1 { font-family: var(--font-grotesque); font-weight: var(--w-black); font-size: clamp(2.6rem, 1.4rem + 7vw, 7rem); line-height: 0.92; letter-spacing: var(--track-tight); text-transform: uppercase; margin: 0 0 var(--space-4); max-width: 12ch; overflow-wrap: break-word; }
.home-head .lead { font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem); max-width: 60ch; }
.home-banner { margin: var(--space-4) 0 0; position: relative; }
.home-banner img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; display: block; }
@media (max-width: 700px) { .home-banner img { aspect-ratio: 4 / 3; } }
.home-banner figcaption { font-family: var(--font-grotesque); font-size: var(--step-meta); color: var(--slate); margin-top: 10px; max-width: var(--measure); }
.moves { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--space-4); counter-reset: m; }
.moves div { counter-increment: m; border-top: 1px solid var(--ink); padding-top: var(--space-3); }
.moves div::before { content: counter(m, upper-roman); font-family: var(--font-grotesque); font-weight: var(--w-black); font-size: var(--step-cap); letter-spacing: var(--track-wide); color: var(--accent-ink); display: block; margin-bottom: 8px; }
.moves h3 { font-family: var(--font-grotesque); font-weight: var(--w-black); font-size: var(--step-h3-site); letter-spacing: var(--track-tight); line-height: 1.05; margin: 0 0 8px; }
.moves h3 a { text-decoration: none; color: var(--ink); }
.moves h3 a:hover { color: var(--accent-ink); }
.moves p { font-size: var(--step-meta); color: var(--slate); margin: 0; }
.door { background: var(--ink); color: var(--paper); padding: var(--space-5) var(--space-4); margin: var(--space-6) 0 0; }
.door h2 { color: var(--paper); font-family: var(--font-grotesque); font-weight: var(--w-black); font-size: var(--step-h2-site); letter-spacing: var(--track-tight); margin: 0 0 var(--space-3); }
.door p { max-width: var(--measure); margin: 0 0 var(--space-3); color: var(--pale-grey); }
.door a { color: var(--paper); }
.door .btn { display: inline-block; font-family: var(--font-grotesque); font-weight: var(--w-bold); font-size: var(--step-cap); text-transform: uppercase; letter-spacing: var(--track-caption); text-decoration: none; border: 1px solid var(--paper); padding: 12px 18px; }
.door .btn:hover { background: var(--terracotta); border-color: var(--terracotta); color: var(--ink); }

/* ---- contact block (about) ---- */
.contact { border: 1px solid var(--ink); padding: var(--space-4); margin: var(--space-4) 0; max-width: var(--measure); scroll-margin-top: var(--space-4); }
.contact h2 { font-family: var(--font-grotesque); font-weight: var(--w-black); font-size: var(--step-h3-site); margin: 0 0 var(--space-2); }
.contact ul { list-style: none; margin: 0; padding: 0; }
.contact li { margin: 6px 0; font-family: var(--font-grotesque); font-size: var(--step-meta); }

/* ---- footer: compact ---- */
.site-footer { border-top: 4px solid var(--ink); margin-top: var(--space-5); padding: var(--space-4) 0 var(--space-4);
  font-family: var(--font-grotesque); font-size: var(--step-meta); color: var(--slate); }
.foot-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(0, 1.6fr); gap: var(--space-3) var(--space-4); }
.foot-col { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.foot-col a { color: var(--ink); text-decoration: none; font-size: 0.82rem; line-height: 1.35; }
.foot-col a:hover { color: var(--accent-ink); text-decoration: underline; }
.foot-h { font-size: 0.66rem !important; text-transform: uppercase; letter-spacing: var(--track-wide); font-weight: var(--w-bold); color: var(--ink); margin-bottom: 4px; }
.foot-door a { overflow-wrap: normal; word-break: keep-all; }
.foot-door a[href^="mailto:"] { word-break: normal; }   /* wraps only at the <wbr> after the @ (2026-09-09, 375 px overflow) */
.site-footer .imprint { margin-top: var(--space-3); padding-top: 10px; border-top: 1px solid var(--mid-neutral);
  font-size: 0.66rem; text-transform: uppercase; letter-spacing: var(--track-caption); display: flex; flex-wrap: wrap; gap: 4px 18px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3) var(--space-3); } .site-footer { margin-top: var(--space-5); } }

/* ---- search ---- */
.search-form { display: flex; gap: 8px; max-width: var(--measure); margin: 0 0 var(--space-4); }
.search-form input { flex: 1; font-family: var(--font-serif); font-size: var(--step-body); padding: 12px; border: 1px solid var(--ink); }
.search-form button { font-family: var(--font-grotesque); font-weight: var(--w-bold); font-size: var(--step-cap); text-transform: uppercase; letter-spacing: var(--track-caption); background: var(--ink); color: var(--paper); border: 1px solid var(--ink); padding: 0 18px; cursor: pointer; }
.search-results .group { margin: var(--space-4) 0; }
.search-results .group h2 { font-family: var(--font-grotesque); font-size: var(--step-cap); text-transform: uppercase; letter-spacing: var(--track-wide); margin: 0 0 8px; }

/* ---- print ---- */
@media print {
  .site-header, .site-footer, .aside, .readnext, .start, .door, .skip-link { display: none !important; }
  .page-grid { display: block; }
  .body, .lead { max-width: none; }
  a { color: inherit; text-decoration: none; }
}

/* WCAG 2.2 AA 2.5.8 target size (axe target-size, 850 nodes on 50 pages,
   2026-09-06): every footer link renders 17.7px tall. Give links in the
   footer columns and the door row a 24px minimum box without changing the
   type size. */
.foot-col > a, .foot-door > a { display: inline-block; min-height: 24px; line-height: 24px; padding: 0 2px; }

/* Stage 4 check at exactly 375 px (2026-09-07): the Home display heading broke
   "Intelligence" mid-word. At the phone width the black grotesque needs about
   34 px for the longest word in the 327 px column; below 420 px the size is
   fixed rather than fluid so the word never fractures. */
@media (max-width: 420px) { .home-head h1 { font-size: 2rem; letter-spacing: -0.01em; } }

/* Follow the work (Public Depth piece 5): the return path block. */
.follow p { margin: 0 0 var(--space-2); }
.follow .latest { list-style: none; padding: 0; margin: 0; }
.follow .latest li { padding: 4px 0; border-top: 1px solid var(--rule, #ddd); }
.follow .latest time { font-family: var(--font-grotesque); font-size: 0.8rem; letter-spacing: 0.02em; margin-right: 0.6em; color: var(--ink); }

/* Human Discovery Layer (2026-09-09): intents, the trail hand-off, print. Restrained: state
   changes only, no motion beyond the page's own smooth scroll. */
.intents { margin: var(--space-6) 0; }
.intents h2 { font-family: var(--font-grotesque); font-weight: var(--w-bold); font-size: var(--step-cap); letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 var(--space-3); }
.intent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
@media (max-width: 999px) { .intent-grid { grid-template-columns: 1fr; } }
.intent { display: flex; flex-direction: column; gap: 6px; padding: var(--space-3); border: 1px solid var(--ink); text-decoration: none; color: inherit; min-height: 150px; }
.intent:hover, .intent:focus-visible { background: var(--warm-paper); outline: 2px solid var(--ink); outline-offset: 2px; }
.intent-title { font-family: var(--font-grotesque); font-weight: var(--w-black); font-size: 1.25rem; line-height: 1.2; }
.intent-line { font-family: var(--font-serif); font-size: 1rem; line-height: 1.45; }
.intent-go { margin-top: auto; font-family: var(--font-grotesque); font-size: 0.85rem; letter-spacing: 0.02em; }
.handoff { border-top: 1px solid var(--ink); padding-top: var(--space-3); margin: var(--space-5) 0; }
.handoff .trail-name { font-family: var(--font-grotesque); font-size: 0.85rem; letter-spacing: 0.02em; margin-bottom: var(--space-2); }
.handoff-card { display: grid; grid-template-columns: 200px 1fr; gap: var(--space-3); text-decoration: none; color: inherit; align-items: start; }
@media (max-width: 700px) { .handoff-card { grid-template-columns: 1fr; } }
.handoff-card .media img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--warm-paper); display: block; }
.handoff-card .text { display: flex; flex-direction: column; gap: 6px; }
.handoff-card .why { font-family: var(--font-serif); font-size: 1.05rem; line-height: 1.45; }
.handoff-card .next-title { font-family: var(--font-grotesque); font-weight: var(--w-bold); font-size: 1.1rem; }
.handoff-card .learn { font-family: var(--font-serif); font-size: 0.95rem; color: var(--ink-soft, #444); }
.handoff-card:hover .next-title, .handoff-card:focus-visible .next-title { text-decoration: underline; }
.trail-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: var(--space-3); }
.trail-tools button { font-family: var(--font-grotesque); font-size: 0.85rem; padding: 10px 12px; border: 1px solid var(--ink); background: transparent; cursor: pointer; min-height: 44px; }
.trail-tools button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.trail-tools button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media print {
  .site-nav, .site-footer, .page-rails, .handoff .trail-tools, .follow, .door, .readnext { display: none !important; }
  body { color: #000; background: #fff; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}

/* Increment 1.1: intents first; the four moves compact; on a trail the hand-off is primary. */
.moves.compact { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
@media (max-width: 999px) { .moves.compact { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .moves.compact { grid-template-columns: 1fr; } }
.moves.compact h3 { font-size: 1rem; margin: 0 0 4px; }
.moves.compact p { font-size: 0.95rem; line-height: 1.45; margin: 0; }
.readnext.secondary { border-top: 0; padding-top: 0; }
.readnext.secondary .pos { font-size: 0.8rem; color: var(--ink); }
body.on-trail .readnext { display: none; }
body.on-trail .related li:nth-child(n+4) { display: none; }
body.on-trail .related h3::after { content: " (a few)"; font-weight: normal; }
.trail-end .end-actions { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; margin-top: var(--space-2); }
.trail-end .alt { font-family: var(--font-grotesque); font-size: 0.9rem; }
.resume-bar { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; padding: 8px var(--gutter); border-bottom: 1px solid var(--ink); font-family: var(--font-grotesque); font-size: 0.9rem; margin-bottom: var(--space-3); }
.resume-bar .resume-go { font-weight: var(--w-bold); display: inline-flex; align-items: center; gap: 0.3em; min-height: 44px; }
.resume-bar .resume-remove { font-family: inherit; font-size: 0.85rem; padding: 8px 12px; border: 1px solid var(--ink); background: transparent; cursor: pointer; min-height: 44px; margin-left: auto; }
.resume-bar .resume-remove:focus-visible, .resume-bar .resume-go:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sr-live { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Human Discovery Layer, Phase 1: visual chapters inside the argument. */
.chapters { margin: var(--space-5) 0; }
.chapters .sec-head h2, .sec-head h2 { overflow-wrap: anywhere; }
.chapters-intro { font-size: var(--step-meta); color: var(--slate); max-width: var(--measure); margin: 0 0 var(--space-4); }
.chapter-list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.chapter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: var(--space-4); align-items: start; padding: var(--space-4) 0; border-top: 1px solid var(--rule, #ddd); }
.chapter:last-child { border-bottom: 1px solid var(--rule, #ddd); }
.chapter-n { display: inline-block; font-family: var(--font-grotesque); font-weight: var(--w-bold); font-size: var(--step-cap); letter-spacing: 0.08em; border: 1px solid var(--ink); padding: 2px 8px; margin-bottom: 8px; }
.chapter-text h3 { margin: 0 0 6px; font-size: 1.25rem; }
.chapter-text .claim { margin: 0; max-width: 36ch; }
.chapter-fig { margin: 0; }
.chapter-fig img { width: 100%; height: auto; display: block; background: var(--paper-deep, #eee); }
@media (max-width: 999px) { .chapter { grid-template-columns: 1fr; gap: var(--space-3); } .chapter-text .claim { max-width: var(--measure); } }
@media print { .chapter { break-inside: avoid; } }

/* printable edition link (Field Guide) */
.print-edition { font-family: var(--font-grotesque); font-size: var(--step-meta); margin: 0 0 var(--space-4); }
.print-edition a { font-weight: var(--w-bold); }
.print-edition .note { color: var(--slate); }
@media print { .print-edition { display: none; } }

/* Gate 2 named defect (2026-09-11): every chapter figure opens at full size; diagrams keep a large derivative. */
.chapter-fig .fig-full { display: block; }
.chapter-fig .fig-open { font-family: var(--font-grotesque); font-size: var(--step-cap); text-transform: uppercase; letter-spacing: var(--track-caption); white-space: nowrap; }

/* Rajeev, 2026-09-11: a card with no image shows a palette block, never a hole (operations/site_images_needed.md). */
.card .media.placeholder { aspect-ratio: 4 / 3; background: var(--poster-ground); }
/* W8 (2026-11-08): the deliberate text card. Words carry the block until a cleared image exists. */
.card .media.textmark { aspect-ratio: 4 / 3; background: var(--poster-ground); display: flex; align-items: center; justify-content: center; padding: var(--space-3); text-align: center; overflow: hidden; }
.card .media.textmark .mark { font-family: var(--font-grotesque); font-weight: var(--w-black); font-size: clamp(1.5rem, 5vw, 2.25rem); letter-spacing: var(--track-tight); line-height: 1.05; color: var(--ink); overflow-wrap: anywhere; }


/* W8c (2026-11-08): the proof point near the opening. */
.proof { display: grid; grid-template-columns: 1fr; gap: var(--space-4); border-top: 1px solid var(--ink); padding-top: var(--space-3); }
@media (min-width: 800px) { .proof { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } }
.proof .media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.proof h3 { font-family: var(--font-grotesque); font-weight: var(--w-black); font-size: var(--step-h3-site); letter-spacing: var(--track-tight); line-height: 1.05; margin: 0 0 8px; }
.proof h3 a { text-decoration: none; color: var(--ink); }
.proof p { margin: 0 0 var(--space-2); line-height: 1.5; }
.proof .proof-facts, .proof .proof-source { font-size: var(--step-meta); color: var(--slate); }
/* ---- project spine (project_spine.py): index filters, role and link blocks, reverse list ---- */
.spine { max-width: var(--measure); margin: var(--space-5) 0; border-top: 1px solid var(--ink); padding-top: var(--space-3); }
.spine h2 { font-family: var(--font-grotesque); font-weight: var(--w-bold); font-size: var(--step-cap); text-transform: uppercase; letter-spacing: var(--track-wide); margin: 0 0 var(--space-3); }
.spine .spine-frame { font-size: var(--step-meta); color: var(--slate); line-height: 1.5; margin: 0 0 var(--space-3); }
.spine .spine-src { font-size: var(--step-meta); line-height: 1.5; margin: var(--space-2) 0 0; }
.spine-list { list-style: none; margin: 0; padding: 0; }
.spine-list li { margin: 0 0 6px; font-size: var(--step-meta); line-height: 1.45; }
.spine-list li a { color: var(--ink); text-decoration: none; } .spine-list li a:hover { color: var(--accent-ink); text-decoration: underline; }
.spine-list .yr { margin-left: 8px; color: var(--slate); font-family: var(--font-grotesque); font-size: var(--step-cap); }
.spine-links dl { display: grid; grid-template-columns: 1fr; gap: 10px 0; margin: 0; }
@media (min-width: 640px) { .spine-links dl { grid-template-columns: 130px 1fr; } }
.spine-links dt { font-family: var(--font-grotesque); font-weight: var(--w-bold); font-size: var(--step-cap); text-transform: uppercase; letter-spacing: var(--track-caption); color: var(--slate); padding-top: 3px; }
.spine-links dd { margin: 0; font-size: var(--step-meta); } .spine-links dd ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.spine-links dd a { color: var(--ink); } .spine-links dd a:hover { color: var(--accent-ink); }
.pfilter { border-top: 4px solid var(--ink); padding-top: var(--space-4); margin: 0 0 var(--space-5); }
.pfilter .pf-title { font-family: var(--font-grotesque); font-weight: var(--w-bold); font-size: var(--step-cap); text-transform: uppercase; letter-spacing: var(--track-wide); margin: 0 0 var(--space-3); }
.pf-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--space-4); }
.pf-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.pf-group legend { font-family: var(--font-grotesque); font-weight: var(--w-bold); font-size: var(--step-cap); text-transform: uppercase; letter-spacing: var(--track-caption); color: var(--slate); padding: 0; margin-bottom: 8px; }
.pf-group ul { list-style: none; margin: 0; padding: 0; max-height: 15em; overflow: auto; }
.pf-group li { margin: 0 0 4px; font-size: var(--step-meta); } .pf-group label { display: flex; gap: 8px; align-items: baseline; cursor: pointer; min-height: 24px; }
.pf-group .n { color: var(--slate); font-size: var(--step-cap); margin-left: auto; }
.pf-status { font-size: var(--step-meta); margin: var(--space-3) 0 0; display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }
.pf-clear { font-family: var(--font-grotesque); font-weight: var(--w-bold); font-size: var(--step-cap); text-transform: uppercase; letter-spacing: var(--track-caption); background: none; border: 1px solid var(--ink); color: var(--ink); padding: 8px 12px; cursor: pointer; }
.pf-clear:hover { background: var(--ink); color: var(--paper); }
.pf-empty { font-size: var(--step-meta); color: var(--slate); }
.pgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--space-4); }
.pgrid .pcard[hidden] { display: none; }
.ptags { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ptags li { font-family: var(--font-grotesque); font-size: var(--step-cap); border: 1px solid var(--slate); color: var(--ink); padding: 2px 8px; }
.prole { font-size: var(--step-cap); color: var(--slate); margin: 10px 0 0; }
.visually-hidden-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* ---- phone tap targets (W8, Path Zero): controls and link lists reach 44 px; prose links are exempt ---- */
@media (max-width: 700px) {
  .skip-link, .site-menu-toggle, .site-action, .site-logo, .crumbs a, .more, .contact a, .foot-col > a, .foot-door > a,
  .site-nav a, .site-nav button, .btn, a.alt, .cite button, button[onclick*="cite-text"], .intent, main h2 > a, main h3 > a, .cards h3 a, main li > a, main dt > a, .meta span > a {
    display: inline-flex; align-items: center; min-height: 44px; }
  .crumbs [aria-current] { display: inline-flex; align-items: center; min-height: 44px; }   /* the tail sits level with the links */
  .foot-col > a, .foot-door > a { line-height: 1.2; }
  .site-nav a, .site-nav button { min-height: 48px; }
}

/* ============================================================
   New platform preview (np_pages.py, 2026-10-14)
   ------------------------------------------------------------
   The decided home page (architecture test page_F) and the Winter Session
   space. Every rule is scoped to body.np-home, body.np-ws or an np- class, so
   no other page changes. Brand tokens are used as they are: warm paper ground,
   ink, the terracotta accent text tone, Libre Baskerville for display and
   Montserrat for text. The two local tokens below are page_F's card cream and
   hairline, which the brand bundle has no name for. These rules live in
   site.css, not a file of their own, so the layout gate, which inlines
   site.css, judges these pages styled.
   ============================================================ */

:root {
  --np-card: #FBF8F1;
  --np-line: #D9CFBE;
}

body.np-home, body.np-ws { background: var(--warm-paper); }
body.np-home .site-header, body.np-ws .site-header { background: transparent; border-bottom-color: var(--np-line); }
body.np-home .site-footer, body.np-ws .site-footer { border-top-color: var(--ink); }

/* ---- the home page: a film-led first screen, then six tiles ------------ */
body.np-home .site-shell, body.np-home .site-header .site-shell { max-width: 1440px; }

.np-film { position: relative; min-height: clamp(540px, 86vh, 900px); display: flex; flex-direction: column; justify-content: flex-end;
  color: #FBF8F1; background: #14110E; overflow: hidden; }
.np-film-media { position: absolute; inset: 0; }
.np-film-media img, .np-film-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.np-film-video { opacity: 0; transition: opacity .6s ease; }
.np-film-video.is-playing { opacity: 1; }
.np-film-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20, 17, 14, .78) 0%, rgba(20, 17, 14, .42) 40%, rgba(20, 17, 14, 0) 66%),
              linear-gradient(180deg, rgba(20, 17, 14, .25) 0%, rgba(20, 17, 14, 0) 30%, rgba(20, 17, 14, .55) 74%, rgba(20, 17, 14, .94) 100%); }
.np-film-over { position: relative; z-index: 2; width: 100%; padding-top: clamp(80px, 14vh, 160px); padding-bottom: 20px; }
.np-film .np-label { color: #E8C9A6; }
.np-film h1 { font-family: var(--font-display-serif); font-weight: 400; text-transform: none; color: #FBF8F1;
  font-size: clamp(2.2rem, 1.2rem + 4vw, 4.6rem); line-height: 1.04; letter-spacing: -0.01em; margin: 0 0 22px; max-width: 14ch; }
.np-film .np-founder { color: #EDE5D8; max-width: 40rem; }
.np-film-foot { position: relative; z-index: 2; width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-top: 14px; padding-bottom: 22px; border-top: 1px solid rgba(251, 248, 241, .22); }
.np-film-cap { font-family: var(--font-grotesque); font-size: 0.8rem; line-height: 1.4; color: #D9CFBE; margin: 0; max-width: 46rem; }
.np-film-toggle { font-family: var(--font-grotesque); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: #FBF8F1; background: transparent; border: 1px solid rgba(251, 248, 241, .5); padding: 8px 14px; cursor: pointer; flex: none; }
.np-film-toggle:hover, .np-film-toggle:focus-visible { background: rgba(251, 248, 241, .12); }
@media (max-width: 700px) {
  .np-film-media::after { background: linear-gradient(180deg, rgba(20, 17, 14, .3) 0%, rgba(20, 17, 14, .4) 40%, rgba(20, 17, 14, .85) 72%, rgba(20, 17, 14, .97) 100%); }
  .np-film-foot { flex-direction: column; align-items: flex-start; }
}

.np-label { font-family: var(--font-grotesque); font-weight: var(--w-medium); font-size: 0.8rem; line-height: 1.4;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 18px; }
.np-founder { font-family: var(--font-grotesque); font-size: clamp(1rem, 0.95rem + 0.35vw, 1.2rem); line-height: 1.55;
  color: var(--slate); margin: 0; max-width: 880px; }

.np-tiles-wrap { padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 6vw, 88px); }
.np-tiles-h { font-family: var(--font-display-serif); font-weight: 400; text-transform: none; letter-spacing: 0;
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem); line-height: 1.15; margin: 0 0 clamp(20px, 3vw, 32px); }
.np-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.np-tile { position: relative; display: block; min-height: clamp(340px, 34vw, 460px); overflow: hidden; background: #14110E;
  color: #FBF8F1; text-decoration: none; isolation: isolate; }
.np-tile-media { position: absolute; inset: 0; }
.np-tile-media img, .np-tile-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .8s ease; }
.np-tile-video { opacity: 0; transition: opacity .4s ease, transform .8s ease; }
.np-tile.is-playing .np-tile-video { opacity: 1; }
.np-tile:hover .np-tile-media img, .np-tile:hover .np-tile-video { transform: scale(1.03); }
.np-tile-media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 17, 14, 0) 25%, rgba(20, 17, 14, .7) 58%, rgba(20, 17, 14, .95) 100%); }
.np-tile-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; }
.np-tile-kicker { font-family: var(--font-grotesque); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: #E8C9A6; }
.np-tile-name { font-family: var(--font-display-serif); font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2rem); line-height: 1.1; color: #FBF8F1; }
.np-tile-desc { font-family: var(--font-grotesque); font-size: 0.95rem; line-height: 1.45; color: #EDE5D8; }
.np-tile-enter { font-family: var(--font-grotesque); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: #FBF8F1;
  margin-top: 4px; }
.np-tile:hover .np-tile-enter, .np-tile:focus-visible .np-tile-enter { text-decoration: underline; text-underline-offset: 4px; }
.np-tile:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; }
@media (max-width: 999px) { .np-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .np-tiles { grid-template-columns: minmax(0, 1fr); gap: 14px; } .np-tile { min-height: 320px; } }
@media (prefers-reduced-motion: reduce) {
  .np-tile-media img, .np-tile-video, .np-film-video { transition: none; }
  .np-tile:hover .np-tile-media img, .np-tile:hover .np-tile-video { transform: none; }
}

/* ---- the Winter Session space ---------------------------------------- */
.np-head h1 { font-family: var(--font-display-serif); font-weight: 700; text-transform: none; letter-spacing: 0;
  font-size: clamp(2rem, 1.2rem + 3.6vw, 3.6rem); line-height: 1.08; margin: 0 0 var(--space-3); }

.np-hero { margin: var(--space-4) 0 0; }
.np-hero img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: center 45%; display: block; height: auto; }
@media (max-width: 700px) { .np-hero img { aspect-ratio: 4 / 3; } }
.np-hero-film { position: relative; }
.np-hero-video { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; display: block; opacity: 0;
  transition: opacity .6s ease; }
.np-hero-video.is-playing { opacity: 1; }
@media (max-width: 700px) { .np-hero-video { aspect-ratio: 4 / 3; } }
.np-hero-toggle { color: var(--ink); border-color: var(--slate); padding: 4px 10px; margin-left: 8px; font-size: 0.7rem; }
.np-hero-toggle:hover, .np-hero-toggle:focus-visible { background: rgba(30, 26, 22, .06); }
.np-hero figcaption, .np-gallery figcaption, .np-inline figcaption { font-family: var(--font-grotesque); font-size: var(--step-meta);
  color: var(--slate); margin-top: 8px; max-width: var(--measure); line-height: 1.45; }

.np-credit { margin: var(--space-5) 0 0; padding: var(--space-3) var(--space-4); border-left: 4px solid var(--terracotta);
  background: var(--np-card); max-width: 46rem; }
.np-credit-label { font-family: var(--font-grotesque); font-weight: var(--w-bold); font-size: var(--step-cap); letter-spacing: var(--track-wide);
  text-transform: uppercase; color: var(--accent-ink); display: block; margin-bottom: 6px; }
.np-credit-line { font-family: var(--font-display-serif); font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem); line-height: 1.35; margin: 0; }

.np-facts { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; max-width: 60rem; }
.np-facts > div { border-top: 1px solid var(--mid-neutral); padding: 12px 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.np-facts dt { font-family: var(--font-grotesque); font-weight: var(--w-bold); font-size: var(--step-cap); letter-spacing: var(--track-caption);
  text-transform: uppercase; color: var(--accent-ink); }
.np-facts dd { margin: 0; font-family: var(--font-grotesque); font-size: 1rem; line-height: 1.5; }
@media (min-width: 700px) { .np-facts > div { grid-template-columns: 190px minmax(0, 1fr); gap: var(--space-3); } }

.np-cards .card { background: transparent; }
@media (min-width: 700px) { .np-cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.np-cards .card .media img { aspect-ratio: 4 / 3; }

.np-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; align-items: start; }
.np-gallery figure { margin: 0; }
.np-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; height: auto; }
.np-inline img { width: 100%; height: auto; max-height: 460px; object-fit: cover; display: block; }

.np-prose { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3) var(--space-4); }
.np-prose > h2, .np-prose > .intro { grid-column: 1 / -1; }
@media (min-width: 1000px) { .np-prose:has(.np-inline) { grid-template-columns: minmax(0, var(--measure)) minmax(0, 360px); justify-content: space-between; align-items: start; } }
.np-inline { margin: 0; }

.np-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 168px), 1fr)); gap: var(--space-3); counter-reset: np-step; }
.np-steps li { counter-increment: np-step; border-top: 4px solid var(--terracotta); background: var(--np-card); padding: var(--space-3); display: flex; flex-direction: column; gap: 8px; }
.np-step-label { font-family: var(--font-grotesque); font-weight: var(--w-black); font-size: 1.05rem; line-height: 1.15; letter-spacing: var(--track-tight); }
.np-step-label::before { content: counter(np-step, decimal-leading-zero); display: block; font-size: var(--step-cap); letter-spacing: var(--track-wide);
  color: var(--accent-ink); font-weight: var(--w-bold); margin-bottom: 6px; }
.np-step-text { font-family: var(--font-grotesque); font-size: var(--step-meta); line-height: 1.5; color: var(--slate); }

.np-dated li { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .np-dated li { grid-template-columns: 200px minmax(0, 1fr); } }
.np-when { font-family: var(--font-grotesque); font-weight: var(--w-bold); font-size: var(--step-cap); letter-spacing: var(--track-caption);
  text-transform: uppercase; color: var(--accent-ink); }
.np-dated .desc strong { color: var(--ink); font-family: var(--font-grotesque); }

body.np-ws .sec > h2, body.np-ws .sec-head h2 { font-family: var(--font-display-serif); font-weight: 700; text-transform: none; letter-spacing: 0; font-size: var(--step-h2-site); line-height: 1.1; margin: 0 0 var(--space-3); }
body.np-ws .card h3 { font-family: var(--font-display-serif); font-weight: 700; letter-spacing: 0; line-height: 1.2; }
body.np-ws .door { background: var(--ink); }

/* The Learning group makes six navigation groups, so the footer grid carries six columns and the door. */
body.np-home .foot-grid, body.np-ws .foot-grid { grid-template-columns: repeat(6, minmax(0, 1fr)) minmax(0, 1.6fr); }
@media (max-width: 900px) { body.np-home .foot-grid, body.np-ws .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { body.np-home .foot-grid, body.np-ws .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
