/* Shared stylesheet for index.html and books.html.
   Edit here only — neither page carries its own styles.

   Structure of this file:
     1. tokens          6. cards
     2. base            7. projects / experience / education
     3. layout          8. short entries (writing, reads)
     4. site nav        9. footer
     5. hero + sections 10. responsive, motion, print */

/* ---------- 1. tokens ----------
   One committed palette: warm cream set on a deep olive ground. The surface
   tokens are the same hue a step lighter, so a card reads as raised off the
   band it sits on rather than as a different colour. */

:root {
  color-scheme: dark;

  --paper: #2C3528;
  --paper-band: #333E2E;
  --ink: #EDE6D2;
  --ink-soft: #A8A78E;
  --rule: #47513F;
  --accent: #CBBE92;
  --accent-wash: #36402F;
  --grid: rgba(237, 230, 210, 0.05);

  /* Raised surfaces. --surface is redefined inside a band section so cards
     keep the same one-step lift wherever they land. */
  --surface: #333E2E;
  --surface-raised: #3B4635;
  --band-bg: var(--paper);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.26);

  --radius: 14px;
  --radius-sm: 10px;

  /* One spacing scale, used everywhere instead of ad-hoc numbers. */
  --space-1: 6px;
  --space-2: 12px;
  --space-3: 20px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 72px;
  --section-pad: clamp(64px, 9vw, 112px);

  --nav-h: 64px;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* ---------- 2. base ---------- */

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Anchors land below the fixed nav rather than under it. */
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

/* Motif: faint engineering / lab-notebook graph paper under everything. */
body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  text-wrap: balance;
}

p { text-wrap: pretty; }

::selection { background: var(--accent); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Keyboard users get a way past the nav. */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--paper);
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
}

.skip-link:focus { left: 16px; }

/* ---------- 3. layout ---------- */

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

/* Shared card grids. Columns collapse in the responsive block at the end. */
.grid {
  display: grid;
  gap: var(--space-3);
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Small caps-free label: mono, letterspaced, quiet. Used for section
   eyebrows, card kickers and footer column heads. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 var(--space-2);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-style: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

/* The rule that trails an eyebrow, so the label reads as a marker on an
   axis rather than as floating text. */
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--rule), transparent);
}

.eyebrow.plain::after { display: none; }

/* ---------- helix ----------
   Motif: a double helix in the page's left margin, drawn as two phase-shifted
   sine strands. Scrolling advances the phase, so the strands cross and the
   rungs narrow — it reads as the molecule turning on its axis. Geometry comes
   from helix.js. It only appears once the window is wide enough to hold it
   clear of the content column. */

.helix {
  display: none;
  position: fixed;
  top: 0;
  bottom: 0;
  width: 72px;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
}

.helix svg { display: block; width: 100%; height: 100%; }
.helix .strand-a { stroke: var(--accent); }
.helix .strand-b { stroke: var(--ink-soft); }
.helix .rungs { stroke: var(--ink); }

body > header,
body > main,
body > footer { position: relative; z-index: 1; }

/* ---------- 4. site nav ----------
   Fixed, quiet, and always available: name on the left, sections on the
   right, a hairline underneath. The blur keeps the graph paper legible
   through it on browsers that support it. */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color 180ms ease, border-color 180ms ease;
}

/* Only once the page has scrolled does the bar acquire a background, so the
   hero reads as full-bleed at rest. */
.site-nav.is-stuck {
  background: rgba(44, 53, 40, 0.86);
  border-bottom-color: var(--rule);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  height: 100%;
}

.nav-name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.nav-name .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  /* On narrow screens the row scrolls sideways instead of collapsing into a
     menu — every destination stays one tap away. */
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.nav-links::-webkit-scrollbar { display: none; }

.nav-links a {
  display: block;
  padding: 7px 13px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--ink-soft);
  transition: color 140ms ease, background-color 140ms ease;
}

.nav-links a:hover { color: var(--ink); background: var(--accent-wash); }

/* Set by nav.js as the reader moves through the page. */
.nav-links a[aria-current="true"] {
  color: var(--accent);
  background: var(--accent-wash);
}

.nav-cta { flex: none; }

/* The nav's contact link exists twice: as the button on wide screens, and as
   the last entry in the scrolling row once that button is dropped. Only one
   is ever in the DOM flow. */
.nav-narrow-only { display: none; }

/* ---------- 5. hero ---------- */

.hero {
  position: relative;
  padding-block: calc(var(--nav-h) + clamp(56px, 10vw, 104px)) clamp(56px, 9vw, 96px);
  background-color: var(--paper-band);
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  border-bottom: 1px solid var(--rule);
}

.hero.compact {
  padding-block: calc(var(--nav-h) + clamp(40px, 7vw, 72px)) clamp(40px, 6vw, 64px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.8rem, 7.5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.028em;
  margin: 0;
}

.lede {
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 54ch;
  margin: var(--space-3) 0 0;
}

.lede.small { font-size: 1rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px var(--space-2);
  margin-top: var(--space-4);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

/* Back to the main page, above an interior page title. */
.backlink {
  display: inline-block;
  margin: 0 0 var(--space-3);
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
}

.backlink:hover { color: var(--accent); }

/* The at-a-glance panel beside the introduction. */
.panel {
  padding: clamp(22px, 2.6vw, 30px);
  background: var(--surface-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.panel-title {
  margin: 0 0 var(--space-3);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.proof {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.proof li {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: baseline;
  gap: var(--space-3);
  padding-block: 13px;
  border-top: 1px solid var(--rule);
}

.proof li:first-child { border-top: 0; padding-top: 0; }
.proof li:last-child { padding-bottom: 0; }

.proof-num {
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.proof-label {
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* ---------- sections ----------
   Every section is a full-bleed band. Alternating .band gives the page a
   visible rhythm, and each one opens with the same header block. */

section {
  padding-block: var(--section-pad);
  border-top: 1px solid var(--rule);
}

section.band {
  --surface: var(--surface-raised);
  --band-bg: var(--paper-band);
  background-color: var(--paper-band);
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
}

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  letter-spacing: -0.025em;
  margin: 0;
}

.section-lede {
  margin: var(--space-3) 0 0;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

/* ---------- 6. cards ---------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.8vw, 34px);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

/* Only cards that lead somewhere lift on hover; a static card holding text
   should not pretend to be a control. */
a.card:hover,
.card.interactive:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

a.card { text-decoration: none; }

.card h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  margin: 0 0 var(--space-2);
}

.card > p { margin: 0; color: var(--ink-soft); }

/* ---------- 7a. projects ---------- */

.project {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr);
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(26px, 3vw, 40px);
}

.project-head { align-self: start; }

/* Motif: spec-sheet numbering — the one place a big mono number earns its
   keep. */
.project-num {
  display: block;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  margin-bottom: var(--space-2);
}

.project h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0;
}

.project-tag {
  display: inline-block;
  margin-top: var(--space-3);
  padding: 3px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--accent-wash);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.project-link {
  display: table;
  margin-top: var(--space-4);
}

/* The link stretches over the whole card, so the card itself is the target
   while the visible link stays the one accessible name. */
.project-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}

.card.interactive:has(.project-link:focus-visible) {
  border-color: var(--accent);
}

.facets {
  display: grid;
  gap: var(--space-3);
  margin: 0;
}

.facet {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: var(--space-3);
  align-items: baseline;
}

.facet dt {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.facet dd {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: var(--space-4) 0 0;
  padding: var(--space-3) 0 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}

.stack li {
  padding: 3px 13px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--accent-wash);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

/* ---------- 7b. experience ----------
   A dated rail with a marker per role, so six years read as one continuous
   track rather than three separate blocks. */

.org {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2) var(--space-3);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--rule);
}

.org h3 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.org-meta {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.org-note {
  margin: 0 0 var(--space-4);
  max-width: 64ch;
  color: var(--ink-soft);
}

.timeline {
  position: relative;
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 146px;
  width: 1px;
  background: var(--rule);
}

.timeline > li {
  position: relative;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 0 28px;
}

.timeline > li::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 141px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  /* The ring punches the rail out behind the marker. */
  box-shadow: 0 0 0 5px var(--band-bg);
}

.timeline-span {
  padding-top: 32px;
  text-align: right;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.role h3 { margin: 0 0 var(--space-3); font-size: 1.2rem; }

.points {
  margin: 0;
  padding-left: 1.15em;
  max-width: 68ch;
}

.points li { margin-bottom: 10px; font-size: 1rem; line-height: 1.6; }
.points li:last-child { margin-bottom: 0; }
.points li::marker { color: var(--accent); }

/* ---------- 7c. education and the dossier list ---------- */

.school h3 { margin: 0 0 var(--space-1); font-size: 1.28rem; }

.school-meta {
  margin: 0 0 var(--space-3);
  font-size: 0.98rem;
  font-style: italic;
  color: var(--accent);
}

.school p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

.dossier {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--space-5);
  margin: var(--space-3) 0 0;
}

.dossier > div {
  padding-block: var(--space-3);
  border-top: 1px solid var(--rule);
}

.dossier dt {
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.dossier dd { margin: 0; font-size: 0.98rem; color: var(--ink-soft); }

/* ---------- 8. short entries: writing, reads ---------- */

.entry-kind {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin: 0 0 var(--space-2);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.entry-kind .when { color: var(--ink-soft); }

.card .byline {
  display: block;
  margin-top: 4px;
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 400;
  color: var(--ink-soft);
}

.rating {
  margin-top: auto;
  padding-top: var(--space-3);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.rating .off { color: var(--rule); }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: var(--space-2) 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 2px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--accent-wash);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.note {
  margin: var(--space-2) 0 0;
  font-size: 0.96rem;
  color: var(--ink-soft);
}

/* A row of actions closing out a section. */
.section-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

/* ---------- buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  padding: 11px 24px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.button:hover { border-color: var(--accent); color: var(--accent); }

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--paper);
}

.button.primary:hover { filter: brightness(1.08); color: var(--paper); }

.button.small { padding: 7px 16px; font-size: 0.72rem; }

/* A text link that reads as a link without underlining everything. */
.link {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 3px;
}

.link:hover { border-bottom-color: var(--accent); }

/* ---------- placeholders ---------- */

.tbd {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 9px;
  border: 1px dashed var(--accent);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  vertical-align: middle;
}

.placeholder { opacity: 0.6; }

.card.placeholder { border-style: dashed; box-shadow: none; }

/* ---------- 9. footer ---------- */

footer {
  padding-block: var(--section-pad) var(--space-4);
  border-top: 1px solid var(--rule);
  background-color: var(--paper-band);
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(36px, 5vw, 72px);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--rule);
}

footer h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  letter-spacing: -0.025em;
  margin: 0;
}

.footer-cta { margin-top: var(--space-4); }

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  align-content: start;
}

.footer-links h3 {
  margin: 0 0 var(--space-2);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer-links ul { margin: 0; padding: 0; list-style: none; }
.footer-links li + li { margin-top: 8px; }

.footer-links a {
  font-size: 0.98rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 140ms ease;
}

.footer-links a:hover { color: var(--ink); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2) var(--space-3);
  padding-top: var(--space-3);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.footer-bottom p { margin: 0; }

/* ---------- 10. responsive ---------- */

/* The helix parks in the margin left of the content column, and only once
   there is room for it there. 560px is half the .wrap max-width. */
@media (min-width: 1300px) {
  .helix { display: block; left: max(8px, calc(50% - 560px - 92px)); }
}

@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .project { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav-name .full { display: none; }
  .nav-cta { display: none; }
  .nav-narrow-only { display: block; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  :root { --nav-h: 58px; }

  body { font-size: 17px; }

  .grid-2,
  .grid-3 { grid-template-columns: minmax(0, 1fr); }

  /* The timeline rail moves to the far left and the dates sit above each
     role, so nothing is squeezed into a 130px column. */
  .timeline::before { left: 5px; }

  .timeline > li {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-1);
    padding-left: 30px;
  }

  .timeline > li::before { top: 8px; left: 0; }

  .timeline-span { padding-top: 0; text-align: left; }

  .facet { grid-template-columns: minmax(0, 1fr); gap: 4px; }

  .dossier { grid-template-columns: minmax(0, 1fr); gap: 0; }

  .proof li { grid-template-columns: 64px minmax(0, 1fr); gap: var(--space-2); }

  .hero-actions .button { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  a.card:hover, .card.interactive:hover { transform: none; }
}

@media print {
  .site-nav, .helix, .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  section, .hero, footer { background: none; border-color: #ccc; padding-block: 18pt; }
  .card { break-inside: avoid; border-color: #ccc; box-shadow: none; }
}
