/*! EXCO Foundation 3.0.0 — the EXCO Commercial direction of 2026-10-17; proposed for adoption by EXCOSciences.com.
    Written fresh. Spec: planning/research/v3/DIRECTION-v3.md (D); changes: foundation/CHANGELOG.md.
    Load order: fonts.css > this file > commercial.css > pages/<key>.css. Every token and base rule lives here only. */

/* ============================================================ tokens */
:root {
  /* grounds (D 1.2) */
  --paper: #EEEAE0; /* the page (Reed 2026-10-18: warmer, was #F4F2EC) */
  --paper-2: #E6E1D5; /* contained tonal panels only; never full-width */
  --ink-deep: #26231F; /* the dark ground, warm charcoal: footer, Home pathways band, image plates (Reed 2026-10-19: was spruce #0F2A23) */
  --ink-deep-2: #34302A; /* the lifted charcoal step: a window inside a dark object, a hovered row on dark (was #163A31) */
  /* text */
  --ink: #111F1B;
  --muted: #51605B; /* secondary text on paper and paper-2 */
  --muted-dk: #B1AA9E; /* secondary text on ink-deep: warm grey, 6.8:1 (5.7:1 on ink-deep-2) (2026-10-19: was #A6B4AD) */
  /* lines */
  --line: rgba(17, 31, 27, 0.14); /* hairlines on paper */
  --line-ui: #6B7873; /* form field borders, 4.1:1 on paper */
  --line-dk: rgba(238, 234, 224, 0.16); /* hairlines on ink-deep */
  /* the one accent: primary fill, StableHOCL bar, focus on dark */
  --accent: #EFA32A;
  --accent-hover: #DD9220;
  /* status */
  --error: #B42318;
  --error-dk: #FFB4A8;
  --success: #1E6B4C;
  /* focus */
  --focus-on-light: var(--ink-deep);
  --focus-on-dark: var(--accent);

  /* type (D 2.2): one face, six sizes */
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, system-ui;
  --fs-1: clamp(2.5rem, 1.6rem + 2.8vw, 3.375rem); /* 40 > 54  h1, close statement (60 to 2026-10-18; gate HERO) */
  --fs-2: clamp(1.75rem, 1.35rem + 1.3vw, 2.25rem); /* 28 > 36  h2 */
  --fs-3: clamp(1.25rem, 1.18rem + 0.25vw, 1.375rem); /* 20 > 22  h3, titles, lead */
  --fs-4: 1.0625rem; /* 17       body */
  --fs-5: 0.9375rem; /* 15       small, nav, buttons, labels */
  --fs-6: 0.75rem; /* 12       fine: ticks, numbers, tags */
  --fs-stat: clamp(4.5rem, 2.6rem + 6.6vw, 8rem); /* 72 > 128  hero stat numeral only (Home hero variants; Reed 2026-10-18) */
  --lh-1: 1.02; --lh-2: 1.1; --lh-3: 1.3; --lh-body: 1.55;
  --ls-1: -0.03em; --ls-2: -0.02em; --ls-3: -0.01em;

  /* space (D 3): 8px base */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px; --s-11: 160px;
  --section-y: clamp(4.5rem, 7.5vw, 6rem); /* 72 to 960, 96 from 1280 (Reed 2026-10-18: was 128 at 1280, 144 cap) */
  --maxw: 1200px;
  --measure: 60ch;
  --measure-lead: 48ch;
  --gutter: clamp(1rem, 4vw, 4rem); /* 16 at 375, 51 at 1280, 64 cap */
  --col-gap: clamp(1rem, 2.5vw, 2rem);
  --radius: 2px;
  --header-h: 64px;
  --header-h-compact: 56px;

  /* motion (D 7) */
  --dur-fast: .15s;
  --dur-med: .25s;
  --dur-draw: 1.2s;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

/* ============================================================ reset and page */
*, *::before, *::after { box-sizing: border-box; }
/* no text inflation; full height for the footer column */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; height: 100%; }
/* the one ground; body text */
body {
  margin: 0; min-height: 100%;
  display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: var(--fs-4); font-weight: 400; line-height: var(--lh-body);
  font-synthesis: none; text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
/* main grows so the footer sits at the bottom */
body > main { flex: 1 0 auto; }
/* [hidden] beats component display rules */
[hidden] { display: none !important; }
/* no empty frames (D 17): an image slot whose photograph has not landed renders nothing until it does. The flag is the
   switch: remove data-pending from a slot and it (and the page spacing keyed to it) is back; check.py --launch lists
   every flagged slot as an open item. */
[data-pending] { display: none !important; }
/* media are blocks that never overflow their column */
img, video, canvas, svg { display: block; max-width: 100%; }
/* anchors land clear of the sticky header */
[id] { scroll-margin-top: calc(var(--header-h) + var(--s-4)); }
/* selection in the page's own ink, never amber */
::selection { background: var(--ink-deep); color: var(--paper); }

/* ============================================================ type */
/* headings: one tone, balanced lines */
h1, h2, h3, h4 { margin: 0; color: inherit; text-wrap: balance; }
/* h1: 60px at 400 */
h1 { font-size: var(--fs-1); font-weight: 400; line-height: var(--lh-1); letter-spacing: var(--ls-1); max-width: 20ch; }
/* h2: section claims */
h2 { font-size: var(--fs-2); font-weight: 400; line-height: var(--lh-2); letter-spacing: var(--ls-2); max-width: 26ch; margin-bottom: var(--s-5); }
/* h3: row, card and panel titles */
h3 { font-size: var(--fs-3); font-weight: 500; line-height: var(--lh-3); letter-spacing: var(--ls-3); margin-bottom: var(--s-2); }
/* h4: a body-size title */
h4 { font-size: var(--fs-4); font-weight: 500; line-height: var(--lh-3); margin-bottom: var(--s-2); }
/* close statement (h2.statement) */
.statement { font-size: var(--fs-1); font-weight: 400; line-height: var(--lh-1); letter-spacing: var(--ls-1); max-width: 18ch; text-wrap: wrap; }
/* paragraphs and lists: one rhythm; paragraphs end at the measure */
p, ul, ol, dl { margin: 0 0 var(--s-4); }
p { max-width: var(--measure); }
:is(p, ul, ol, dl):last-child { margin-bottom: 0; }
p, li, dd { text-wrap: pretty; }
dd { margin: 0; }
/* the second weight */
b, strong { font-weight: 500; }
/* no italic anywhere (Geist has none) */
em, i, cite { font-style: normal; }
/* lead: one sentence by the h1 */
.lead { font-size: var(--fs-3); font-weight: 400; line-height: 1.4; color: var(--muted); max-width: var(--measure-lead); }
/* Home hero lead in ink */
.lead--ink { color: var(--ink); }
/* small: captions, asides */
.small { font-size: var(--fs-5); line-height: 1.4; }
/* fine: ticks, numbers, tags, legal line */
.fine { font-size: var(--fs-6); font-weight: 500; line-height: 1.4; letter-spacing: 0.01em; color: var(--muted); font-variant-numeric: tabular-nums; }
/* secondary color for any line */
.muted { color: var(--muted); }
/* section label, between the rule and the h2 */
.label { font-size: var(--fs-5); font-weight: 500; line-height: 1.4; color: var(--muted); margin: 0 0 var(--s-4); }

/* ============================================================ layout */
/* container */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
/* 12-column grid, one column below 760; pages place children inside @media (min-width: 760px) */
.grid { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--col-gap); }
.grid > * { grid-column: 1 / -1; min-width: 0; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
/* two-column reading layout: h2 in 1-5, body in 7-12 from 960 */
.split { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--col-gap); }
@media (min-width: 960px) {
  .split { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .split__head { grid-column: 1 / 6; }
  .split__body { grid-column: 7 / 13; }
}
/* a section: air above and below */
.section { padding-block: var(--section-y); }
/* neighboring sections share one gap, at every width (Reed 2026-10-18: no doubled padding between sections) */
.section + .section { padding-top: 0; }
/* the only separator: a hairline 24px above the label or h2 */
.section__rule { display: block; height: 0; margin: 0 0 var(--s-5); border: 0; border-top: 1px solid var(--line); }
/* actions in a row */
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-5); }

/* rows (D 4.5): <ul class="rows"><li><a class="row"> or <li class="row"> */
.rows { list-style: none; margin: 0; padding: 0; }
.rows > * + * { border-top: 1px solid var(--line); }
/* closed top and bottom where no section rule sits above */
.rows--ruled { border-block: 1px solid var(--line); }
/* one row: title, text, arrow on the 12-column grid; below 760 the arrow ends the title line */
.row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-2) var(--s-4);
  min-height: 48px; padding-block: var(--s-5); color: inherit; text-decoration: none;
}
.row__text { grid-column: 1 / -1; }
.row__arrow { grid-column: 2; grid-row: 1; }
@media (min-width: 760px) {
  .row { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: baseline; }
  .row__title { grid-column: 1 / 5; }
  .row__text { grid-column: 5 / 12; }
  .row__text:last-child { grid-column: 5 / 13; }
  .row__arrow { grid-column: 12; justify-self: end; }
}
.row__title { margin: 0; font-size: var(--fs-3); font-weight: 500; line-height: var(--lh-3); letter-spacing: var(--ls-3); }
.row__text { margin: 0; font-size: var(--fs-4); max-width: var(--measure); }
.row__arrow { font-size: var(--fs-4); line-height: 1; }
/* link rows: the title underlines; no background change */
a.row:hover .row__title { text-decoration: underline 1px; text-underline-offset: 0.2em; }

/* ============================================================ links */
a { color: inherit; text-decoration: none; }
/* links inside running text and inside row titles: 1px underline at 45% ink (gate P2: .row__title added, P2-A-1) */
:is(p, dd, .row__title) a:not([class]) {
  text-decoration: underline 1px color-mix(in srgb, currentColor 45%, transparent);
  text-underline-offset: 0.2em;
}
:is(p, dd, .row__title) a:not([class]):hover { text-decoration-color: currentColor; }
/* standalone text link; the arrow is not underlined */
.tlink {
  display: inline-block; min-height: 24px;
  font-size: var(--fs-5); font-weight: 500; line-height: 1.4; color: var(--ink);
  text-decoration: underline 1px transparent; text-underline-offset: 0.25em;
}
.tlink:hover, .tlink:focus-visible { text-decoration-color: currentColor; }
.tlink .arrow { display: inline-block; margin-left: 0.25em; }
/* on an ink-deep object the link is paper */
:is(.is-dark, .site-footer) .tlink { color: var(--paper); }
@media (pointer: coarse) { .tlink { padding-block: var(--s-3); } }

/* ============================================================ buttons (D 4.8) */
/* one size: 48px, square, 15/500 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 20px; margin: 0;
  font: inherit; font-size: var(--fs-5); font-weight: 500; line-height: 1.2; text-align: center;
  color: var(--ink); background: transparent; border: 1px solid var(--ink); border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
}
/* primary: the one amber fill in a viewport */
.btn--primary { background: var(--accent); }
.btn--primary:hover { background: var(--accent-hover); }
/* ghost: ink outline */
.btn--ghost:hover { background: var(--paper-2); }
/* ghost on an ink-deep object */
:is(.is-dark, .site-footer) .btn--ghost { color: var(--paper); border-color: var(--paper); }
:is(.is-dark, .site-footer) .btn--ghost:hover { background: var(--ink-deep-2); }
/* disabled */
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: default; pointer-events: none; }

/* ============================================================ header (D 4.1) */
/* paper at 92%, blur, hairline, sticky */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
/* the bar: wordmark, links, CTA */
.nav { display: flex; align-items: center; gap: var(--s-4); height: var(--header-h); }
[data-compact="true"] .nav { height: var(--header-h-compact); }
/* Custom EXCO wordmark: a split X, with one quiet descriptor (Reed 2026-10-23; S-36 / N-88).
   Letters are vector outlines, not a new typeface; no external asset or font request. */
.brand {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; flex: none; min-height: 44px; width: 116px; color: var(--ink-deep);
}
.brand__wordmark { display: block; width: 116px; height: auto; flex: none; }
.brand__descriptor {
  display: block; font-size: var(--fs-6); font-weight: 400; line-height: 1.2;
  letter-spacing: 0.12em; white-space: nowrap; color: inherit;
}
/* four links 32px apart; current page underlined */
.nav__links { display: flex; align-items: center; gap: var(--s-6); margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav__links a {
  display: block; padding-block: 13px;
  font-size: var(--fs-5); font-weight: 500; line-height: 1.2; white-space: nowrap;
  text-decoration: underline 1px transparent; text-underline-offset: 0.35em;
}
.nav__links a:hover { text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.nav__links a[aria-current="page"] { text-decoration-color: currentColor; }
/* header CTA: ghost, 40px (44 on touch) */
.nav__cta { flex: none; min-height: 40px; padding: 0 var(--s-4); white-space: nowrap; }
.nav__cta[aria-current="page"] { background: var(--paper-2); }
@media (pointer: coarse) { .nav__cta { min-height: 44px; } }
/* menu toggle: 44px, three lines; an X when open */
.nav__toggle {
  display: none; flex: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 44px; height: 44px; margin-right: -10px; padding: 0;
  color: var(--ink); background: none; border: 0; border-radius: var(--radius); cursor: pointer;
}
.nav__toggle span { display: block; width: 20px; height: 1.5px; background: currentColor; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
/* below 1000: links in a paper panel of 48px rows; CTA beside the toggle */
@media (max-width: 999px) {
  .nav__toggle { display: flex; }
  .nav__cta { margin-left: auto; }
  .nav__links {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    padding: var(--s-2) var(--gutter) var(--s-5);
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 0 0 100vmax color-mix(in srgb, var(--ink) 24%, transparent); /* scrim */
    opacity: 0; visibility: hidden; transform: translateY(-8px);
  }
  [data-compact="true"] .nav__links { top: var(--header-h-compact); }
  .nav__links[data-open="true"] { opacity: 1; visibility: visible; transform: none; }
  .nav__links li + li { border-top: 1px solid var(--line); }
  .nav__links a { display: flex; align-items: center; min-height: 48px; padding: 0; font-size: var(--fs-4); }
  /* no JS: the links sit under the bar as a static list */
  html:not(.js) .site-header { position: relative; }
  html:not(.js) .nav { flex-wrap: wrap; height: auto; }
  html:not(.js) .brand { min-height: var(--header-h); }
  html:not(.js) .nav__toggle { display: none; }
  html:not(.js) .nav__links {
    position: static; order: 1; flex-basis: 100%; padding: 0 0 var(--s-4);
    border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none;
  }
}
/* Keep the complete name readable on phones. */
@media (max-width: 559px) {
  .nav { gap: var(--s-3); }
  .nav .brand { width: 100px; }
  .nav .brand__wordmark { width: 100px; }
}
/* S-54: retain a single-line CTA at 320px without crowding the logo or menu. */
@media (max-width: 359px) { .nav { gap: var(--s-2); } .nav__cta { padding: 0 var(--s-2); font-size: 13px; } }

/* ============================================================ footer (D 4.12) */
/* the page's only full-width dark surface */
.site-footer { padding: var(--s-8) 0 var(--s-4); background: var(--ink-deep); color: var(--muted-dk); }
@media (max-width: 759px) { .site-footer { padding: var(--s-7) 0 var(--s-5); } }
/* S-51: two quiet footer groups, with copyright and legal links on one secondary row below. */
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); align-items: start; }
.site-footer .brand { color: var(--paper); }
.footer-lockup { display: flex; align-items: center; }
.footer-line { margin: var(--s-4) 0 0; font-size: var(--fs-6); line-height: 1.5; color: var(--muted-dk); }
.footer-links, .footer-legal { margin: 0; padding: 0; list-style: none; }
.footer-links :is(a, .link-pending), .footer-legal a {
  display: flex; align-items: center; min-height: 44px; padding-block: var(--s-2);
  font-size: var(--fs-5); line-height: 1.4; color: var(--paper); overflow-wrap: anywhere;
  text-decoration: underline 1px transparent; text-underline-offset: 0.25em;
}
.footer-links a { font-weight: 400; }
.footer-links .link-pending, .footer-legal a { color: var(--muted-dk); }
.footer-links a:is(:hover, :focus-visible), .footer-legal a:is(:hover, :focus-visible) { text-decoration-color: currentColor; color: var(--paper); }
.footer-bottom { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); margin-top: var(--s-7); padding-top: var(--s-2); border-top: 1px solid var(--line-dk); }
.footer-copy { margin: 0; font-size: var(--fs-6); font-weight: 400; line-height: 1.4; color: var(--muted-dk); max-width: none; }
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--s-5); }
.footer-legal a { font-size: var(--fs-6); }
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); }
  .footer-links { justify-self: end; min-width: 14rem; }
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--s-6); }
}

/* ============================================================ forms (D 4.11) */
.form, .form__fields { display: grid; gap: var(--s-5); }
/* field: label above, hint and message below */
.field { display: grid; gap: var(--s-2); min-width: 0; }
.field > label, .field__label, .choices > legend { font-size: var(--fs-5); font-weight: 500; line-height: 1.4; color: var(--ink); }
/* hints, notes, legal line: small, muted */
.hint, .note-block, .form__note, .form__legal { margin: 0; font-size: var(--fs-5); line-height: 1.5; color: var(--muted); }
.form__legal a { text-decoration: underline 1px; text-underline-offset: 0.2em; }
/* two fields side by side from 560 */
.field-row { display: grid; gap: var(--s-5) var(--s-4); }
@media (min-width: 560px) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* inputs: 48px, paper well, 17px text */
.field :is(input:not([type="radio"]):not([type="checkbox"]), select, textarea) {
  width: 100%; min-height: 48px; margin: 0; padding: 0 var(--s-3);
  font: inherit; font-size: var(--fs-4); line-height: 1.4; color: var(--ink);
  background-color: var(--paper); border: 1px solid var(--line-ui); border-radius: var(--radius);
  -webkit-appearance: none; appearance: none;
}
.field textarea { padding-block: var(--s-3); resize: vertical; }
/* select: CSS-drawn chevron (no data URI) */
.field select {
  padding-right: 40px; text-overflow: ellipsis; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 21px) 52%, calc(100% - 16px) 52%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.field :is(input, select, textarea):disabled { opacity: 0.5; cursor: not-allowed; }
/* radio fieldset: one column at every width, every option on one 44px row (gate P2; D 4.11 amended) */
.choices { display: grid; gap: 0 var(--col-gap); min-width: 0; margin: 0; padding: 0; border: 0; }
.choices > legend { margin-bottom: var(--s-2); padding: 0; }
.choice { display: flex; align-items: flex-start; gap: var(--s-3); min-height: 44px; padding-block: 10px; font-size: var(--fs-4); line-height: 1.4; cursor: pointer; }
.choice input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink-deep); cursor: pointer; }
/* error: border + message with a drawn "!" (never color alone); same specificity as the base field rule (gate P2, P2-D-2) */
.field :is(input:not([type="radio"]):not([type="checkbox"]), select, textarea)[aria-invalid="true"] { border-color: var(--error); }
.field__msg { display: flex; align-items: flex-start; gap: var(--s-2); margin: 0; font-size: var(--fs-5); line-height: 1.4; color: var(--error); }
.field__msg::before, .form__error::before {
  content: "!"; flex: none; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-top: 2px;
  font-size: var(--fs-6); font-weight: 500; line-height: 1; color: var(--paper); background: var(--error); border-radius: var(--radius);
}
/* character counter */
.form__count { margin: 0; font-size: var(--fs-6); font-weight: 500; line-height: 1.4; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; max-width: none; }
.form__count.is-near { color: var(--ink); }
/* submit-time summary linking to each field */
.form__summary { padding: var(--s-4) var(--s-5); border: 1px solid var(--error); border-radius: var(--radius); }
.form__summary-title { margin: 0 0 var(--s-2); font-size: var(--fs-4); font-weight: 500; }
.form__summary ul { margin: 0; padding-left: 1.1em; font-size: var(--fs-5); }
.form__summary a { color: var(--error); text-decoration: underline 1px; text-underline-offset: 0.2em; }
/* submit row: button + reply-time sentence */
.form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-5); }
.form__submit p { margin: 0; max-width: 36ch; font-size: var(--fs-5); line-height: 1.4; color: var(--muted); }
/* success replaces the form in place */
.form__success { padding: var(--s-5); border: 1px solid var(--success); border-radius: var(--radius); }
/* send failure, form kept */
.form__error { display: flex; gap: var(--s-3); padding: var(--s-4) var(--s-5); border: 1px solid var(--error); border-radius: var(--radius); }

/* ============================================================ focus and utilities */
/* focus: 2px ink-deep ring; amber on ink-deep */
:focus-visible { outline: 2px solid var(--focus-on-light); outline-offset: 2px; }
:is(.site-footer, .is-dark) :focus-visible { outline-color: var(--focus-on-dark); }
/* content on an ink-deep object */
.is-dark { background: var(--ink-deep); color: var(--paper); }
/* skip link: off-screen until focused */
.skip-link {
  position: fixed; left: var(--s-4); top: -100px; z-index: 100;
  padding: var(--s-3) var(--s-4); font-size: var(--fs-5); font-weight: 500;
  color: var(--paper); background: var(--ink-deep); border-radius: var(--radius);
}
.skip-link:focus-visible { top: var(--s-4); outline-color: var(--focus-on-dark); }
/* screen-reader-only text */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ============================================================ motion (D 7): JS on, motion allowed */
@media (prefers-reduced-motion: no-preference) {
  /* color, background, underline: 150ms */
  html.js :is(.btn, .tlink, .nav__links a, .footer-links a, .footer-legal a) {
    transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, text-decoration-color var(--dur-fast) ease;
  }
  /* header compaction: 200ms */
  html.js .nav { transition: height .2s var(--ease-out); }
  html.js .nav__toggle span { transition: transform var(--dur-fast) ease, opacity var(--dur-fast) ease; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 999px) {
  /* menu panel: 250ms ease-out */
  html.js .nav__links { transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out), visibility 0s linear var(--dur-med); }
  html.js .nav__links[data-open="true"] { transition-delay: 0s; }
}
/* reduced motion: nothing moves */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ============================================================ print */
@media print {
  body { background: none; }
  .site-header { position: static; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .skip-link, .nav__links, .nav__cta, .nav__toggle { display: none; }
  .site-footer { background: none; border-top: 1px solid var(--line); }
  .site-footer, .site-footer :is(a, p, span) { color: var(--ink) !important; }
}
