/* ============================================================
   Shera Potka — sherapotka.github.io

   Register: chaptered scroll narrative, light base, one accent.
   Reference: /Users/sherabregu/Desktop/Wel (structure, type, motion).

   The accent is a deep red of her own, one degree off WelTel's
   #c8102e, so the site reads as her identity rather than an
   employer's brand.

   Two rules carried from Wel, deliberately, against the habits
   in Param:
     1. NO wide-tracked eyebrow. Wel's letter-spacing sits at
        0.2-0.3px. Tight, not airy.
     2. Instrument Serif is a scalpel, not the voice. It appears
        only on ONE accent word per headline. Headings themselves
        are Inter at -0.02em.
   ============================================================ */

:root {
  --accent: #b3122e;
  --accent-dark: #7e0c20;
  --accent-bright: #d92746;
  --accent-soft: #fcebee;

  --ink: #0e0e10;
  --ink-deep: #08080a;
  --muted: #585862;
  --line: #ececef;
  --bg-alt: #fafafa;
  --white: #ffffff;

  /* On dark chapters */
  --ink-invert: #f4f4f6;
  --muted-invert: #9a9aa6;
  --line-invert: rgba(255, 255, 255, 0.14);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Instrument Serif", "Inter", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --container: 1120px;
  /* The one easing curve. Restrained, never springy. */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-sans);
  letter-spacing: -0.02em;
  margin: 0;
}

img { max-width: 100%; height: auto; }
a { color: var(--accent); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

.skip {
  position: absolute; left: 24px; top: -60px;
  background: var(--ink); color: var(--white);
  padding: 10px 16px; border-radius: 8px; z-index: 100;
  text-decoration: none; transition: top 0.2s var(--ease);
}
.skip:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.bg-deep :focus-visible, .bg-accent :focus-visible { outline-color: var(--white); }

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
  transition: box-shadow 0.3s var(--ease);
}
.nav.scrolled { box-shadow: 0 1px 24px rgba(14, 14, 16, 0.07); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.brand {
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap; /* never let the name break across two lines */
  transition: opacity 0.2s ease;
}
.brand:hover { opacity: 0.7; }
.brand .brand-mark { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  position: relative;
  transition: color 0.15s ease;
  white-space: nowrap;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--accent); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s var(--ease), background 0.2s ease,
              color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:active { transform: translateY(1px); }

.btn-solid {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 12px 32px -14px rgba(179, 18, 46, 0.7);
}
.btn-solid:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -14px rgba(179, 18, 46, 0.8);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

/* For use on .bg-deep, where --ink text would be invisible. */
.btn-invert {
  background: transparent;
  color: var(--ink-invert);
  border-color: var(--line-invert);
}
.btn-invert:hover {
  border-color: var(--ink-invert);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.btn-on-accent { background: var(--white); color: var(--accent); }
.btn-on-accent:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.5); }

.btn-outline-on-accent {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-outline-on-accent:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.icon { width: 16px; height: 16px; flex: 0 0 auto; }

/* ===== Chapters ===== */
.story {
  position: relative;
  padding: clamp(72px, 11vw, 128px) 0;
  overflow: hidden;
}

.bg-light { background: var(--white); color: var(--ink); }
.bg-soft  { background: var(--bg-alt); color: var(--ink); }

.bg-deep { background: var(--ink); color: var(--ink-invert); }
/* The deep register carries one low radial of the accent, so the dark
   chapters read as the same family as the red, not neutral black. */
.bg-deep::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 30%, rgba(179, 18, 46, 0.22) 0%, transparent 70%);
  pointer-events: none;
}
.bg-deep > * { position: relative; z-index: 1; }

.bg-accent { background: var(--accent); color: var(--white); }

/* ===== Chapter typography ===== */
.chapter-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--accent);
  margin-bottom: 18px;
  display: block;
}
.bg-deep .chapter-num { color: var(--accent-bright); }
.bg-accent .chapter-num { color: rgba(255, 255, 255, 0.72); }

.story-title {
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 20ch;
  margin: 0 0 22px;
}
/* One accent word per headline. Never more. */
.story-title .accent-red,
.story-title .accent-light {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
}
.story-title .accent-red { color: var(--accent); }
.story-title .accent-light { color: var(--accent-bright); }
.bg-accent .story-title .accent-light { color: var(--white); }

.story-lead {
  font-size: clamp(16.5px, 1.5vw, 18px);
  line-height: 1.62;
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 20px;
}
.bg-deep .story-lead { color: var(--muted-invert); }
.bg-accent .story-lead { color: rgba(255, 255, 255, 0.88); }

.story-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}

/* ===== Hero ===== */
.hero { padding: clamp(56px, 8vw, 92px) 0 clamp(64px, 9vw, 104px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}
.hero h1 .accent-red {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.hero-lead {
  font-size: clamp(16.5px, 1.55vw, 19px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 56ch;
  margin: 0 0 26px;
}
.hero-affil {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 16px;
  letter-spacing: 0.2px;
}
.hero-affil .dot { color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* The portrait is a circular crop sitting on a dark square. Masking to a
   circle is not a style choice, it is what the asset requires: at any other
   radius the dark corners show against the white page. */
.hero-photo { justify-self: end; position: relative; }
.hero-photo img {
  width: min(240px, 30vw);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  box-shadow: 0 30px 70px -26px rgba(179, 18, 46, 0.5);
}
/* A quarter-ring echoing the accent, tracing the portrait's own curve. */
.hero-photo::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  border-top-color: transparent;
  border-right-color: transparent;
  opacity: 0.5;
  pointer-events: none;
}

/* ===== Figure column ===== */
.figure-wrap {
  position: relative;
  border-radius: 20px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-invert);
}
.bg-soft .figure-wrap,
.bg-light .figure-wrap {
  background: var(--white);
  border-color: var(--line);
  box-shadow: 0 24px 60px -34px rgba(14, 14, 16, 0.3);
}
.figure-wrap img { display: block; border-radius: 8px; }
.figure-caption {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 18px;
  line-height: 1.55;
}
.bg-deep .figure-caption { color: var(--muted-invert); }

/* ===== Findings ===== */
.findings { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.findings li {
  padding-left: 18px;
  position: relative;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
}
.findings li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.bg-deep .findings li { color: var(--muted-invert); }
.bg-deep .findings li::before { background: var(--accent-bright); }
.findings strong { color: var(--ink); font-weight: 600; }
.bg-deep .findings strong { color: var(--ink-invert); }

/* ===== Cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px -30px rgba(179, 18, 46, 0.32);
  border-color: rgba(179, 18, 46, 0.28);
}
.card h3 { font-size: 17px; font-weight: 650; margin: 0 0 10px; letter-spacing: -0.015em; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.card-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
  letter-spacing: 0.4px;
}
.card-meta {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

/* ===== Publications ===== */
.pub-group { margin-top: 40px; }
.pub-group-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--accent);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.3px;
}
.pubs { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.pub {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
  padding: 18px 16px;
  border-radius: 12px;
  margin: 0 -16px;
  transition: background 0.25s ease;
}
.pub:hover { background: var(--white); }
.bg-light .pub:hover { background: var(--bg-alt); }
.pub-title { font-weight: 600; font-size: 15.5px; line-height: 1.42; letter-spacing: -0.01em; margin: 0 0 7px; }
.pub-authors { color: var(--muted); font-size: 13.5px; margin: 0 0 6px; }
.pub-authors .me { color: var(--ink); font-weight: 600; }
.pub-venue { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.pub-venue .award { color: var(--accent); }
.pub-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; white-space: nowrap; }
.pub-year { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.pub-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.pub-link:hover { border-color: var(--accent); }
.status-chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  letter-spacing: 0.4px;
}

/* ===== Timeline ===== */
.timeline { list-style: none; margin: 44px 0 0; padding: 0 0 0 26px; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--line) 100%);
}
.tl-item { position: relative; padding-bottom: 32px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -30px; top: 7px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--line);
}
.tl-item.current::before { background: var(--accent); border-color: var(--accent); }
.tl-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.tl-role { font-weight: 650; font-size: 15.5px; letter-spacing: -0.01em; }
.tl-time { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.tl-org { color: var(--accent); font-size: 14px; margin: 3px 0 8px; }
.tl-desc { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin: 0; max-width: 68ch; }

/* ===== Closing ===== */
.cta-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.cta-meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 24px;
  line-height: 1.8;
}
.cta-meta a { color: var(--white); }

/* ===== Method chips (research.html) ===== */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  font-size: 13px;
  font-family: var(--font-mono);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.bg-deep .chip {
  border-color: var(--line-invert);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted-invert);
}

/* ===== Figures with lightbox (research.html) =====
   These carry raw matplotlib exports with white backgrounds, so they
   are only ever placed on the light registers. On bg-deep the white
   plate would punch a hole in the page. */
.frame { margin: 0; }
.frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  cursor: zoom-in;
  background: var(--white);
  transition: transform 0.3s var(--ease);
}
.frame img:hover { transform: translateY(-2px); }

dialog#lightbox {
  border: none;
  border-radius: 18px;
  padding: 20px;
  background: var(--white);
  max-width: min(94vw, 1100px);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.5);
}
dialog#lightbox::backdrop { background: rgba(8, 8, 10, 0.82); }
.lightbox-img { width: 100%; height: auto; max-height: 78vh; border-radius: 8px; display: block; }
.lightbox-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}
.lightbox-hint { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }

/* ===== Plan list (research.html) ===== */
.plan { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
.plan li { padding-left: 18px; border-left: 2px solid var(--accent); }
/* The base accent is too dark to read as a rule against .bg-deep. */
.bg-deep .plan li { border-left-color: var(--accent-bright); }
.plan h3 { font-size: 15.5px; margin: 0 0 6px; letter-spacing: -0.01em; }
.plan p { margin: 0; color: var(--muted-invert); font-size: 14.5px; line-height: 1.55; }
@media (max-width: 940px) { .plan { grid-template-columns: 1fr; } }

/* ===== Footer ===== */
.footer {
  background: var(--ink-deep);
  color: var(--muted-invert);
  padding: 38px 0;
  font-size: 13.5px;
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer a { color: var(--muted-invert); text-decoration: none; transition: color 0.2s ease; }
.footer a:hover { color: var(--white); }
.footer-links { display: flex; gap: 22px; }

/* ============================================================
   Motion.
   Every animation below is a metaphor for the research beside
   it, never decoration. This follows Wel, where veinFlow,
   virusSpin and cellPulse each mean something.
   ============================================================ */

/* Reveal on scroll. 80ms stagger, the one easing curve. */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.reveal.in { opacity: 1; transform: none; }

/* Ch 2 — Fairness: minority nodes surface out of the majority mass.
   The point of MinWalk, stated in motion. */
.node-major { fill: rgba(255, 255, 255, 0.2); }
.node-minor {
  fill: var(--accent-bright);
  transform-box: fill-box;
  transform-origin: center;
  animation: minorSurface 4.4s var(--ease) infinite;
}
.node-minor:nth-of-type(2) { animation-delay: 0.5s; }
.node-minor:nth-of-type(3) { animation-delay: 1.1s; }
.node-minor:nth-of-type(4) { animation-delay: 1.7s; }
@keyframes minorSurface {
  0%, 100% { opacity: 0.4;  transform: scale(0.8); }
  45%      { opacity: 1;    transform: scale(1.45); }
}
.edge { stroke: rgba(255, 255, 255, 0.14); stroke-width: 1; }
.edge-live {
  stroke: var(--accent-bright);
  stroke-width: 1.5;
  stroke-dasharray: 4 8;
  animation: edgeFlow 3s linear infinite;
  opacity: 0.8;
}
@keyframes edgeFlow { to { stroke-dashoffset: -24; } }

/* Ch 3 — LLM bias: the embedding cloud separates along a bias axis,
   then collapses back. The measurement is the finding. */
.emb-a { fill: var(--accent); animation: driftA 6s var(--ease) infinite; }
.emb-b { fill: var(--ink); opacity: 0.38; animation: driftB 6s var(--ease) infinite; }
@keyframes driftA {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(-18px); }
}
@keyframes driftB {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(18px); }
}
.bias-axis {
  stroke: var(--accent);
  stroke-width: 1.2;
  stroke-dasharray: 3 5;
  opacity: 0;
  animation: axisIn 6s var(--ease) infinite;
}
@keyframes axisIn {
  0%, 22%, 100% { opacity: 0; }
  50%, 72%      { opacity: 0.75; }
}

/* Ch 4 — Privacy: tokens dissolve into calibrated noise, then re-cohere.
   Sanitization that keeps meaning: the CluSanT trade-off. */
.tok {
  fill: var(--accent-bright);
  animation: dissolve 5.2s var(--ease) infinite;
  transform-box: fill-box;
  transform-origin: center;
}
.tok:nth-of-type(even) { animation-delay: 0.35s; }
.tok:nth-of-type(3n)   { animation-delay: 0.7s; }
@keyframes dissolve {
  0%, 100% { opacity: 0.95; transform: translateY(0) scale(1); }
  50%      { opacity: 0.16; transform: translateY(-7px) scale(0.5); }
}

/* Ch 5 — Applied health: messages moving patient to provider and back. */
.flow-dot { fill: var(--accent); animation: flowRight 3.4s linear infinite; }
.flow-dot:nth-of-type(2) { animation-delay: 1.1s; }
.flow-dot:nth-of-type(3) { animation-delay: 2.2s; }
@keyframes flowRight {
  0%   { opacity: 0; transform: translateX(0); }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(148px); }
}

/* ===== Responsive ===== */
@media (max-width: 940px) {
  .hero-grid,
  .story-grid,
  .cta-grid { grid-template-columns: 1fr; }
  .hero-photo { justify-self: start; order: -1; }
  .hero-photo img { width: 168px; }
  .cards { grid-template-columns: 1fr; }
  .story-title { max-width: none; }
  .nav-links { gap: 18px; }
  .nav-links .hide-sm { display: none; }
  .pub { grid-template-columns: 1fr; gap: 10px; }
  .pub-side { flex-direction: row; align-items: center; gap: 14px; }
}

@media (max-width: 560px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero-actions .btn, .cta-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ===== Print ===== */
@media print {
  .nav, .hero-photo::after, .cta-actions, .hero-actions { display: none !important; }
  .story { padding: 18px 0 !important; }
  .bg-deep, .bg-accent { background: #fff !important; color: #000 !important; }
  .bg-deep::before { display: none !important; }
  .bg-deep .story-lead, .bg-deep .findings li, .bg-accent .story-lead { color: #555 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
