/* css/tokens.css — the only source of design values (AGENTS.md rule 6).
   Palette verbatim from the Entry Trail brand palette, founder-supplied 2026-07-23,
   recorded in DESIGN.md Part 6 and implemented in the product repository's
   workbench/src/theme.css. No value below may be duplicated elsewhere; no value may be
   added without asking. */

:root {
  /* palette — DESIGN.md Part 6, verbatim */
  --surface-0: #f2efe9;        /* page background (brand cream) */
  --surface-1: #fbfaf6;        /* cards, panels */
  --surface-2: #eae5da;        /* table headers, wells, hover */
  --border: #e2dcd0;           /* brand hairline */
  --border-strong: #c7bfae;
  --text-primary: #1a2421;     /* brand ink (near-black green) */
  --text-secondary: #59605b;
  --text-muted: #616763;       /* 5.04:1 on surface-0, 4.61:1 on surface-2 */
  --accent: #173f3b;           /* deep forest green — interactive ONLY */
  --accent-hover: #2f5d45;     /* pine green — same meaning, lighter state */
  --accent-surface: #e3ece7;
  --gate: #c9783d;             /* terracotta — broker gate. BORDERS ONLY, never text */
  --gate-text: #8f5722;        /* the text-safe darkening; 4.70:1 worst case */
  --gate-surface: #f5e7d5;
  --danger: #a33b2e;           /* brick red — error / legal risk */
  --danger-surface: #faeaea;

  /* faces — pin W-008, RESOLVED 2026-08-08 (docs/pin_register.md) */
  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Public Sans", "Helvetica Neue", Helvetica, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* type scale — document scale, not the product's row density (DESIGN.md Part 6). */
  --text-sm: 0.875rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 2.375rem;
  --leading-tight: 1.2;
  --leading-body: 1.55;

  /* homepage composition — founder direction 2026-09-21, DESIGN.md Part 1.10.
     Scoped to the homepage; the existing document scale stays available elsewhere. */
  --text-home-hero: clamp(3rem, 7vw, 6.5rem);
  --text-home-section: clamp(2rem, 3.5vw, 3.5rem);
  --leading-display: 1.05;
  --container-home: 88rem;
  --home-gutter: var(--space-12);
  --home-title-measure: 13ch;
  --home-copy-measure: 46ch;
  --home-stage-inset: var(--space-16);

  /* spacing — 4px grid; no value off the grid (DESIGN.md Part 6) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* geometry — DESIGN.md Part 6 */
  --radius: 4px;               /* maximum anywhere; tables 0 */
  --measure: 72ch;             /* prose cap */
  --container: 68rem;          /* page column */
  --hairline: 1px;

  /* motion — stronger entrances requested 2026-10-05 (DESIGN.md Part 1.23) */
  --transition: 150ms ease-out;
  --motion-duration: 650ms;
  --motion-easing: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-distance: var(--space-8);

  /* the two shadows — near-black at low opacity (DESIGN.md Part 1.4) */
  --shadow-1: 0 1px 2px rgba(26, 36, 33, 0.08);
  --shadow-2: 0 2px 8px rgba(26, 36, 33, 0.1);
}

@media (max-width: 56rem) {
  :root {
    --home-gutter: var(--space-6);
    --home-stage-inset: var(--space-4);
  }
}

/* css/site.css — all layout and component styling. Consumes css/tokens.css only:
   no hex codes, no raw design values (AGENTS.md rule 6). */

/* faces — pin W-008, RESOLVED 2026-08-08. Self-hosted latin subsets; licenses in
   assets/fonts/ (DESIGN.md Part 4.5). */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/newsreader-var-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/public-sans-var-latin.woff2") format("woff2");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--surface-0);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
}

h1,
h2,
h3,
p,
ol {
  margin: 0;
}

.wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

/* interactive = green, and green means nothing else (DESIGN.md Part 1.5) */
a {
  color: var(--accent);
  text-underline-offset: var(--space-1);
  transition: color var(--transition);
}
a:hover {
  color: var(--accent-hover);
}
a:focus-visible,
.button:focus-visible,
.accessibility-help summary:focus-visible,
.site-navigation summary:focus-visible {
  outline: var(--space-1) solid var(--accent);
  outline-offset: var(--space-1);
}

/* keyboard route past the repeated header (DESIGN.md Part 7 W3 accessibility pass);
   in the tab order always, painted only while focused */
.skip-link {
  position: absolute;
  z-index: 6;
  inset-inline-start: var(--space-6);
  inset-block-start: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--surface-1);
  border: var(--hairline) solid var(--border-strong);
  border-radius: var(--radius);
  opacity: 0;
  pointer-events: none;
}
.skip-link:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Shared brand and native sidebar disclosure; usable without JavaScript. */
html {
  scrollbar-gutter: stable;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--surface-0);
  border-bottom: var(--hairline) solid var(--border-strong);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  max-width: var(--container);
  padding-inline: var(--space-6);
  padding-block: var(--space-4);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
}
.wordmark img {
  display: block;
  width: var(--space-8);
  height: auto;
}
.wordmark:hover {
  color: var(--accent-hover);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-left: auto;
}
.header-walkthrough {
  font-size: var(--text-sm);
}
.site-navigation {
  width: var(--space-12);
  flex-shrink: 0;
}
.site-navigation summary {
  position: relative;
  z-index: 5;
  display: grid;
  place-items: center;
  width: var(--space-12);
  height: var(--space-12);
  list-style: none;
  cursor: pointer;
  color: var(--accent);
  background: var(--surface-0);
  border: var(--hairline) solid transparent;
  border-radius: var(--radius);
  transition: background-color var(--transition), border-color var(--transition);
}
.site-navigation summary::-webkit-details-marker {
  display: none;
}
.site-navigation summary:hover {
  background: var(--accent-surface);
  border-color: var(--accent);
}
.site-navigation[open] summary {
  position: fixed;
  inset-block-start: var(--space-4);
  inset-inline-end: var(--home-gutter);
}
.navigation-icon {
  position: relative;
  width: var(--space-6);
  height: var(--space-6);
}
.navigation-icon::before,
.navigation-icon::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 50%;
  height: calc(var(--hairline) * 2);
  background: var(--accent);
  transition: transform calc(var(--motion-duration) / 2) var(--motion-easing);
}
.navigation-icon::before {
  transform: translateY(calc(-1 * var(--space-1)));
}
.navigation-icon::after {
  transform: translateY(var(--space-1));
}
.site-navigation[open] .navigation-icon::before {
  transform: rotate(45deg);
}
.site-navigation[open] .navigation-icon::after {
  transform: rotate(-45deg);
}
.sr-only {
  position: absolute;
  width: var(--hairline);
  height: var(--hairline);
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.navigation-close-label,
.site-navigation[open] .navigation-open-label {
  display: none;
}
.site-navigation[open] .navigation-close-label {
  display: block;
}
.navigation-scrim {
  position: fixed;
  inset: 0;
  z-index: 3;
  background: var(--text-primary);
  opacity: 0.4;
}
.navigation-panel {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  z-index: 4;
  width: min(100%, calc(var(--space-24) * 4));
  padding: var(--space-24) var(--space-12) var(--space-12);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface-1);
  border-left: var(--hairline) solid var(--border-strong);
  box-shadow: var(--shadow-2);
}
.navigation-panel nav {
  display: flex;
  flex-direction: column;
}
.navigation-panel a:not(.button) {
  display: block;
  padding: var(--space-4) var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: var(--leading-tight);
  text-decoration: none;
  border-left: var(--space-1) solid var(--surface-1);
  border-bottom: var(--hairline) solid var(--border);
  transition: color var(--transition), background-color var(--transition), border-color var(--transition);
}
.navigation-panel a:not(.button):hover,
.navigation-panel a[aria-current="page"] {
  border-left-color: var(--accent);
  background: var(--accent-surface);
}
.navigation-panel .button {
  align-self: flex-start;
  margin-top: var(--space-8);
}
html.navigation-ready body:has(.site-navigation[open]) {
  overflow: hidden;
}
/* Without the enhancement, the disclosure stays in document flow for keyboard use. */
html:not(.navigation-ready) .site-header {
  position: static;
}
html:not(.navigation-ready) .site-header .wrap:has(.site-navigation[open]) {
  flex-wrap: wrap;
}
html:not(.navigation-ready) .header-actions:has(.site-navigation[open]) {
  display: block;
  flex-basis: 100%;
  margin-left: 0;
}
html:not(.navigation-ready) .site-navigation[open] {
  width: 100%;
}
html:not(.navigation-ready) .site-navigation[open] summary {
  position: relative;
  inset: auto;
  margin-left: auto;
}
html:not(.navigation-ready) .navigation-panel {
  position: static;
  width: 100%;
  padding: var(--space-6) 0;
  border: 0;
  box-shadow: none;
}
html:not(.navigation-ready) .navigation-scrim {
  display: none;
}

/* The introduction and concept illustration share the first desktop viewport. */
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: var(--space-12);
  align-items: center;
  padding-block: var(--space-20);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-home-section);
  font-weight: 400;
  line-height: var(--leading-display);
  max-width: var(--home-copy-measure);
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.hero-copy {
  min-width: 0;
  max-width: var(--home-copy-measure);
  margin-top: var(--space-6);
}
.hero .lede {
  font-size: var(--text-base);
  color: var(--text-secondary);
}
.hero-broker {
  display: block;
  margin-top: var(--space-4);
  color: var(--text-primary);
}
.hero .cta-row {
  align-items: flex-start;
  flex-direction: column;
  gap: var(--space-4);
}
.hero .trust-line {
  font-size: var(--text-sm);
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-6);
  font-size: var(--text-sm);
}
.product-showcase {
  min-width: 0;
  margin: 0;
}
.product-stage {
  padding: 0;
  border-radius: var(--radius);
}
.product-stage .shot {
  box-shadow: var(--shadow-1);
}
.screen-link {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  text-align: right;
}
main[id],
main section[id],
.product-showcase,
figure[id] {
  scroll-margin-block-start: calc(var(--space-24) + var(--space-8));
}
.cta-row {
  margin-top: var(--space-8);
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.button {
  display: inline-block;
  background: var(--accent);
  color: var(--surface-1);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  text-decoration: none;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius);
  transition: background-color var(--transition);
}
.button:hover {
  background: var(--accent-hover);
  color: var(--surface-1);
}
.trust-line {
  font-weight: 500;
}

/* placeholders — loud gaps, never content (DESIGN.md Part 3.5) */
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: var(--space-24);
  aspect-ratio: 4 / 3;
  padding: var(--space-6);
  background: var(--surface-1);
  border: var(--hairline) dashed var(--border-strong);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.placeholder-inline {
  display: inline-block;
  margin-top: var(--space-6);
  padding: var(--space-2) var(--space-4);
  background: var(--surface-1);
  border: var(--hairline) dashed var(--border-strong);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
/* Keep the outstanding capture request visible without imitating a product screen. */
.product-stage .placeholder {
  aspect-ratio: auto;
}

/* product imagery (STATE.md 2026-08-09 supersession; values per docs/canonical_dataset.md) */
.shot {
  display: block;
  width: 100%;
  height: auto;
  border: var(--hairline) solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-1);
}
.shot-block {
  margin: var(--space-8) 0 0;
}
.shot-caption {
  margin-top: var(--space-3);
  max-width: var(--measure);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* shared section rhythm */
section h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
}
.section-lede {
  margin-top: var(--space-4);
  max-width: var(--measure);
  color: var(--text-secondary);
}
.evidence .wrap,
.boundary .wrap,
.cta-section .wrap {
  padding-block: var(--space-16);
}

/* the broker gate section — terracotta carries its one meaning (DESIGN.md Part 1.5) */
.gate-section .wrap {
  padding-block: var(--space-8);
}
.gate-inner {
  border-left: var(--space-1) solid var(--gate);
  padding-left: var(--space-8);
}
.gate-inner p {
  margin-top: var(--space-4);
  max-width: var(--measure);
  color: var(--text-secondary);
}

.boundary .cta-row {
  margin-top: var(--space-8);
}
.boundary-list {
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
}
.boundary-list li {
  max-width: var(--measure);
  color: var(--text-secondary);
  padding-block: var(--space-3);
  border-top: var(--hairline) solid var(--border);
}

/* subpages */
.page-head .wrap {
  padding-block: var(--space-12);
}
.page-head h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 500;
  line-height: var(--leading-tight);
}
.stage .wrap {
  padding-block: var(--space-12);
}
.stage h2 {
  font-size: var(--text-xl);
}
.shot-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-top: var(--space-8);
}
@media (max-width: 56rem) {
  .shot-pair {
    grid-template-columns: 1fr;
  }
}

/* pipeline — a real sequence, numbered because it is one (DESIGN.md Part 1.18) */
.pipeline .wrap {
  padding-block: var(--space-16);
}
.pipeline h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
}
.pipeline ol {
  list-style: none;
  padding: 0;
  margin-top: var(--space-8);
}
.pipeline li {
  display: grid;
  grid-template-columns: var(--space-12) 1fr;
  gap: var(--space-6);
  padding-block: var(--space-6);
  border-top: var(--hairline) solid var(--border);
}
.step-number {
  font-weight: 600;
  color: var(--text-secondary);
}
.pipeline h3 {
  font-size: var(--text-base);
  font-weight: 600;
}
.pipeline li p {
  margin-top: var(--space-2);
  max-width: var(--measure);
  color: var(--text-secondary);
}
/* terracotta carries exactly one meaning: the broker gate (DESIGN.md Part 1.5).
   Borders only, never text (DESIGN.md Part 6). */
.step-gate {
  border-left: var(--space-1) solid var(--gate);
  padding-left: var(--space-6);
  margin-left: calc(-1 * var(--space-6) - var(--space-1));
}

/* data renders in mono, as the product renders it (DESIGN.md Part 1.11) */
.mono {
  font-family: var(--font-mono);
}

/* the reference ledger (how-it-works) — every reference the sample entry stands on,
   linked to the government source that answers for it. Tables render square
   (DESIGN.md Part 6: tables 0); green on the links is the one interactive meaning
   (DESIGN.md Part 1.5). */
.refs {
  margin-top: var(--space-8);
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.refs th,
.refs td {
  border: var(--hairline) solid var(--border);
  padding: var(--space-2) var(--space-3);
  text-align: left;
  vertical-align: top;
  color: var(--text-secondary);
}
.refs th {
  background: var(--surface-2);
  color: var(--text-primary);
  font-weight: 600;
}
.refs td:first-child {
  font-family: var(--font-mono);
  white-space: nowrap;
}
.refs td:last-child {
  max-width: var(--measure);
}

/* privacy policy — long-form legal document (privacy/index.html, STATE.md 2026-08-11) */
.policy-meta {
  margin-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.legal .wrap {
  padding-block: var(--space-4) var(--space-8);
}
.legal h2 {
  margin-top: var(--space-12);
  font-size: var(--text-xl);
}
.legal h3 {
  margin-top: var(--space-8);
  font-size: var(--text-base);
  font-weight: 600;
}
.legal p,
.legal ol,
.legal ul {
  margin-top: var(--space-4);
  max-width: var(--measure);
  color: var(--text-secondary);
}
.legal ol,
.legal ul {
  padding-left: var(--space-6);
}
.legal li {
  margin-top: var(--space-2);
}
.legal strong {
  color: var(--text-primary);
}
/* the "In short" summaries; neutral border — green stays interactive-only and
   terracotta stays the broker gate (DESIGN.md Part 1.5) */
.legal blockquote {
  margin: var(--space-6) 0 0;
  padding: var(--space-4) var(--space-6);
  max-width: var(--measure);
  background: var(--surface-1);
  border-left: var(--space-1) solid var(--border-strong);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.legal blockquote p {
  margin-top: 0;
}
.legal blockquote p + p {
  margin-top: var(--space-3);
}
/* tables render square, as everywhere else (DESIGN.md Part 6: tables 0) */
.legal table {
  display: block;
  overflow-x: auto;
  margin-top: var(--space-6);
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.legal th,
.legal td {
  border: var(--hairline) solid var(--border);
  padding: var(--space-2) var(--space-3);
  text-align: left;
  vertical-align: top;
  color: var(--text-secondary);
}
.legal th {
  background: var(--surface-2);
  color: var(--text-primary);
  font-weight: 600;
}
.legal code {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  background: var(--surface-2);
  padding: 0 var(--space-1);
}
/* section separation is carried by heading rhythm; the pandoc <hr>s would double it */
.legal hr {
  display: none;
}
/* the policy cites bare URLs; unbreakable, they push the page wider than a phone */
.legal a {
  overflow-wrap: anywhere;
}

/* footer — the entity-level disclaimer lives here verbatim (pin W-003) */
.site-footer {
  margin-top: var(--space-16);
  border-top: var(--hairline) solid var(--border);
}
.site-footer .wrap {
  padding-block: var(--space-8);
}
.site-footer p {
  max-width: var(--measure);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.site-footer .copyright {
  margin-top: var(--space-4);
}
.accessibility-help {
  margin-top: var(--space-4);
  max-width: var(--measure);
  font-size: var(--text-sm);
}
.accessibility-help summary {
  width: fit-content;
  padding: var(--space-3) var(--space-4);
  border: var(--hairline) solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--accent);
  cursor: pointer;
  font-weight: 500;
  transition: color var(--transition);
}
.accessibility-help summary:hover {
  color: var(--accent-hover);
}
.accessibility-help p {
  margin-top: var(--space-4);
}

/* homepage composition; document pages retain their existing scale and rhythm */
.home .wrap {
  max-width: var(--container);
  padding-inline: var(--space-6);
}
.home {
  overflow-wrap: anywhere;
}
.home .button {
  max-width: 100%;
}
.home section h2 {
  font-size: var(--text-3xl);
  font-weight: 400;
  line-height: var(--leading-tight);
  text-wrap: balance;
}
.home .evidence .wrap,
.home .pipeline .wrap,
.home .boundary .wrap,
.home .cta-section .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: var(--space-12);
  padding-block: var(--space-20);
}
.home .evidence .wrap {
  align-items: center;
}
.founder-portrait {
  display: block;
  width: 100%;
  max-width: calc(var(--space-24) * 3);
  height: auto;
  justify-self: center;
}
.home .section-copy .section-lede {
  margin-top: var(--space-6);
}
.home .section-lede,
.home .pipeline ol,
.home .boundary-list {
  margin-top: 0;
}
.home .evidence .shot-block {
  margin: 0;
}
.home .evidence .shot-caption {
  margin-top: var(--space-4);
}
.home .pipeline h2 {
  grid-column: 1 / -1;
}
.home .pipeline .shot-block {
  margin: 0;
  align-self: start;
}
.home .pipeline li:first-child {
  padding-top: 0;
  border-top: 0;
}
.home .gate-section .wrap {
  padding-block: var(--space-16);
}
.home .gate-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  column-gap: var(--space-12);
  row-gap: var(--space-4);
}
.home .gate-inner h2 {
  grid-row: 1 / 3;
}
.home .gate-inner p {
  margin-top: 0;
}
.home .evidence,
.home .pipeline,
.home .boundary {
  border-top: var(--hairline) solid var(--border);
}
.home .pipeline {
  background: var(--surface-1);
}
.home .gate-section {
  background: var(--gate-surface);
}
.home .cta-section {
  padding-block: var(--space-16);
}
.work-photo {
  position: absolute;
  inset-block: 0;
  inset-inline-start: var(--space-6);
  width: calc(50% - var(--space-6));
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.home .cta-section .wrap {
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  padding-block: 0;
}
.cta-panel {
  grid-column: 2;
  padding: var(--space-12);
  background: var(--surface-2);
}
.home .cta-panel .section-lede {
  margin-top: var(--space-6);
}
.home .cta-panel .cta-row {
  margin-top: var(--space-8);
}
.home .site-footer {
  margin-top: 0;
}
.home .site-footer .wrap {
  padding-block: var(--space-12);
}

@media (max-width: 40rem) {
  .hero h1 {
    font-size: var(--text-3xl);
  }
  .site-header .wrap {
    gap: var(--space-4);
  }
  .wordmark {
    font-size: var(--text-xl);
  }
  .wordmark img {
    width: var(--space-8);
  }
  .header-walkthrough {
    display: none;
  }
  .navigation-panel {
    padding-inline: var(--space-6);
  }
}

@media (max-width: 56rem) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
    padding-block: var(--space-12);
  }
  .hero-copy {
    justify-self: start;
  }
  .home .evidence .wrap,
  .home .pipeline .wrap,
  .home .boundary .wrap,
  .home .cta-section .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
    padding-block: var(--space-16);
  }
  .home .gate-section .wrap {
    padding-block: var(--space-8);
  }
  .home .gate-inner {
    grid-template-columns: minmax(0, 1fr);
    padding-left: var(--space-6);
    gap: var(--space-6);
  }
  .home .gate-inner h2 {
    grid-row: auto;
  }
  .home .cta-panel {
    grid-column: auto;
    padding: var(--space-6);
  }
  .home .cta-section .wrap {
    gap: 0;
    padding-block: 0;
  }
  .work-photo {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
  }
  .pipeline li {
    grid-template-columns: var(--space-8) 1fr;
    gap: var(--space-4);
  }
  .home .pipeline li {
    grid-template-columns: var(--space-8) minmax(0, 1fr);
  }
  .step-gate {
    margin-left: calc(-1 * var(--space-4) - var(--space-1));
    padding-left: var(--space-4);
  }
}

@keyframes panel-enter {
  from { transform: translateX(100%); }
  to { transform: none; }
}
@keyframes panel-exit {
  from { transform: none; }
  to { transform: translateX(100%); }
}
@keyframes scrim-enter {
  from { opacity: 0; }
  to { opacity: 0.4; }
}
@keyframes scrim-exit {
  from { opacity: 0.4; }
  to { opacity: 0; }
}

/* Content is visible in its final position unless a one-time entrance is running. */
@keyframes content-enter {
  from { transform: translateY(var(--motion-distance)); }
  to { transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  html.navigation-ready .site-navigation[open] .navigation-panel {
    animation: panel-enter calc(var(--motion-duration) / 2) var(--motion-easing) both;
  }
  html.navigation-ready .site-navigation[open] .navigation-scrim {
    animation: scrim-enter calc(var(--motion-duration) / 2) var(--motion-easing) both;
  }
  html.navigation-ready .site-navigation.is-closing .navigation-panel {
    animation-name: panel-exit;
  }
  html.navigation-ready .site-navigation.is-closing .navigation-scrim {
    animation-name: scrim-exit;
  }
  html {
    scroll-behavior: smooth;
  }
  [data-reveal].is-entering {
    animation: content-enter var(--motion-duration) var(--motion-easing);
  }
  [data-reveal]:focus-within,
  [data-reveal]:target,
  :target [data-reveal],
  html:has(.skip-link:focus) {
    animation: none;
    scroll-behavior: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
}
