/* ==========================================================================
   Guided Logic — site stylesheet
   Drafting-paper aesthetic: cool white paper, navy ink, drafting blue,
   redline red reserved for strike-through judgment marks.
   ========================================================================== */

:root {
  --paper: #f2f5f7;
  --card: #fbfcfd;
  --ink: #101d2e;
  --muted: #4e5f73;
  --blue: #2547c0;
  --blue-deep: #16307e;
  --blue-wash: #e7ecf9;
  --redline: #c22f1d;
  --line: #c9d3dd;
  --line-soft: #dde4ea;
  --grid: rgba(37, 71, 192, 0.055);

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;

  --wrap: 1140px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(37, 71, 192, 0.35);
  transition: text-decoration-color 140ms ease, color 140ms ease;
}

a:hover { text-decoration-color: var(--redline); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 1px;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }

p { margin: 0 0 1.1em; }

.lede {
  font-size: clamp(1.12rem, 1.8vw, 1.3rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 46ch;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.1rem;
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--blue);
  flex: none;
}

.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; text-decoration-color: var(--redline); }

/* Redline strike — the one place red is allowed to talk */
.strike {
  position: relative;
  white-space: nowrap;
}

.strike::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  top: 54%;
  height: 0.09em;
  min-height: 2px;
  background: var(--redline);
  transform: rotate(-1.6deg);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(242, 245, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}

.brand:hover { text-decoration: none; color: var(--blue-deep); }

.nav-toggle {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.5rem 0.8rem;
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--redline);
}

.site-nav .nav-cta a {
  border: 1px solid var(--ink);
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--paper);
}

.site-nav .nav-cta a:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
}

@media (max-width: 840px) {
  .nav-toggle { display: inline-block; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .site-nav.open { display: block; }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem clamp(1.25rem, 4vw, 2.5rem) 1.25rem;
  }

  .site-nav li { border-bottom: 1px solid var(--line-soft); }
  .site-nav li:last-child { border-bottom: 0; }

  .site-nav a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 0;
  }

  .site-nav .nav-cta a {
    display: inline-block;
    margin-top: 0.75rem;
  }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }

.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }

/* Wide screens: heading left, lede right — the head fills the full measure */
@media (min-width: 841px) {
  .section-head {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    column-gap: clamp(2.5rem, 6vw, 5rem);
    align-items: end;
  }

  .section-head .eyebrow { grid-column: 1 / -1; }
  .section-head h2 { margin-bottom: 0; }
  .section-head .lede { max-width: none; margin-bottom: 0.3rem; }
}

.section-alt {
  background: var(--card);
  border-block: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.hero-copy h1 { max-width: 15ch; }

.hero-copy .lede { margin-bottom: 2rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-fig { min-width: 0; }

.fig-caption {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.9rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.fig-caption::before {
  content: "";
  width: 1.25rem;
  height: 1px;
  background: var(--muted);
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-fig { max-width: 34rem; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.btn:hover {
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.btn-solid {
  background: var(--ink);
  color: var(--paper);
}

.btn-solid:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
}

.btn-light {
  border-color: var(--paper);
  color: var(--paper);
}

.btn-light:hover {
  background: var(--paper);
  color: var(--ink);
}

.btn-light-solid {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.btn-light-solid:hover {
  background: transparent;
  color: var(--paper);
}

/* --------------------------------------------------------------------------
   Spec table (pyramid vs Guided Logic)
   -------------------------------------------------------------------------- */

.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 0.98rem;
}

.spec-table caption {
  caption-side: top;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.7rem;
}

.spec-table th,
.spec-table td {
  border: 1px solid var(--line);
  padding: 0.85rem 1.1rem;
  text-align: left;
  vertical-align: top;
}

.spec-table thead th {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.spec-table tbody th {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  width: 9.5rem;
  background: var(--paper);
}

.spec-table .col-them { color: var(--muted); }

.spec-table .col-us {
  border-left: 3px solid var(--blue);
  background: var(--blue-wash);
}

.spec-table thead .col-us { background: var(--blue); color: #fff; }

@media (max-width: 720px) {
  .spec-scroll { overflow-x: auto; }
  .spec-table { min-width: 34rem; }
}

/* --------------------------------------------------------------------------
   Method phases — a real sequence, so numbered
   -------------------------------------------------------------------------- */

.phases {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  counter-reset: phase;
}

.phases li {
  counter-increment: phase;
  border-top: 2px solid var(--ink);
  padding-top: 1.1rem;
  position: relative;
}

.phases li::before {
  content: "PHASE 0" counter(phase);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--blue);
  display: block;
  margin-bottom: 0.55rem;
}

.phases h3 { margin-bottom: 0.4rem; }

.phases p {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 900px) {
  .phases { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .phases { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   General notes — drawing-sheet margin notes beside the model prose
   -------------------------------------------------------------------------- */

.model-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.gen-notes {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1.35rem 1.5rem 1.2rem;
}

.gen-notes h3 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.gen-notes ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: gn;
}

.gen-notes li {
  counter-increment: gn;
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.93rem;
  line-height: 1.5;
}

.gen-notes li:last-child { border-bottom: 0; }

.gen-notes li::before {
  content: "GN-0" counter(gn);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--blue);
  padding-top: 0.15rem;
}

@media (max-width: 900px) {
  .model-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   The pair — mutual verification section
   -------------------------------------------------------------------------- */

.pair-fig {
  max-width: 44rem;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}

.pair-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2.25rem);
}

.pair-col {
  border-top: 2px solid var(--ink);
  padding-top: 1.1rem;
}

.pair-col .pair-kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 0.55rem;
}

.pair-col.is-ai { border-top-color: var(--blue); }
.pair-col.is-ai .pair-kicker { color: var(--blue); }

.pair-col h3 { margin-bottom: 0.5rem; }

.pair-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pair-col li {
  border-bottom: 1px solid var(--line-soft);
  padding: 0.55rem 0;
  font-size: 0.96rem;
}

.pair-col li:last-child { border-bottom: 0; }

.pair-note {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: baseline;
}

.pair-note::before {
  content: "NOTE";
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--blue);
}

.pair-note p {
  margin: 0;
  font-size: 1.1rem;
}

@media (max-width: 640px) {
  .pair-cols { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Cards (services)
   -------------------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.25rem;
}

.card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1.5rem 1.5rem 1.35rem;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  transition: border-color 140ms ease, transform 140ms ease;
}

.card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  text-decoration: none;
}

.card .card-kicker {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin-bottom: 0.7rem;
}

.card h3 { margin-bottom: 0.45rem; }

.card p {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

.card .card-go {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--blue);
  display: inline-block;
  margin-top: 1rem;
}

.card:hover .card-go { color: var(--redline); }

/* --------------------------------------------------------------------------
   Accelerator index (grouped list)
   -------------------------------------------------------------------------- */

.acc-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.acc-group h3 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.6rem;
  margin-bottom: 0.35rem;
}

.acc-group ul { list-style: none; margin: 0; padding: 0; }

.acc-group li { border-bottom: 1px solid var(--line-soft); }

.acc-group a {
  display: block;
  padding: 0.7rem 0.15rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
  text-decoration: none;
  transition: color 140ms ease, padding-left 140ms ease;
}

.acc-group a:hover {
  color: var(--blue);
  padding-left: 0.5rem;
}

/* --------------------------------------------------------------------------
   CTA band — the stamped cover page
   -------------------------------------------------------------------------- */

.cta-band {
  background: var(--ink);
  color: var(--paper);
  border-top: 4px solid var(--redline);
}

.cta-band .wrap {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.cta-band h2 { color: #fff; max-width: 20ch; }

.cta-band p { color: #b6c2d2; max-width: 46ch; }

.cta-band .eyebrow { color: #8fa3f0; }
.cta-band .eyebrow::before { background: #8fa3f0; }

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: flex-end;
}

@media (max-width: 800px) {
  .cta-band .wrap { grid-template-columns: 1fr; }
  .cta-actions { justify-content: flex-start; }
}

/* --------------------------------------------------------------------------
   Footer — engineering title block
   -------------------------------------------------------------------------- */

.site-foot {
  background: var(--card);
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 5vw, 4rem) 0;
  font-size: 0.95rem;
}

.foot-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.foot-cols h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.foot-cols ul { list-style: none; margin: 0; padding: 0; }

.foot-cols li { margin-bottom: 0.45rem; }

.foot-cols a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
}

.foot-cols a:hover { color: var(--blue); text-decoration: underline; }

.foot-brand p {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 34ch;
}

.title-block {
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.title-block .wrap {
  display: flex;
  flex-wrap: wrap;
}

.title-block span {
  padding: 0.85rem 1.25rem;
  border-right: 1px solid var(--line);
}

.title-block span:first-child { padding-left: 0; }
.title-block span:last-child { border-right: 0; }

.title-block b { color: var(--ink); font-weight: 500; }

@media (max-width: 840px) {
  .foot-cols { grid-template-columns: 1fr 1fr; }
}

/* --------------------------------------------------------------------------
   Subpage layout
   -------------------------------------------------------------------------- */

.page-hero {
  border-bottom: 1px solid var(--line);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
}

.page-hero .wrap { padding-block: clamp(3rem, 7vw, 5rem); }

.page-hero h1 { max-width: 22ch; }

@media (min-width: 841px) {
  .page-hero .wrap {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: clamp(2.5rem, 6vw, 5rem);
    align-items: end;
  }

  .page-hero .eyebrow { grid-column: 1 / -1; }
  .page-hero h1 { margin-bottom: 0; }
  .page-hero .lede { max-width: none; margin-bottom: 0.3rem; }
}

.page-body .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.prose { max-width: 62ch; }

.prose h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  margin-top: 2.2em;
}

.prose h2:first-child { margin-top: 0; }

.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.45rem; }

.page-aside {
  position: sticky;
  top: 5.5rem;
  display: grid;
  gap: 1.5rem;
}

.aside-box {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1.35rem 1.35rem 1.2rem;
}

.aside-box h3 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.aside-box ul { list-style: none; margin: 0; padding: 0; }

.aside-box li {
  border-bottom: 1px solid var(--line-soft);
  padding-block: 0.5rem;
  font-size: 0.92rem;
}

.aside-box li:last-child { border-bottom: 0; }

.aside-box a { text-decoration: none; color: var(--ink); font-weight: 500; }
.aside-box a:hover { color: var(--blue); text-decoration: underline; }

.aside-box .btn { width: 100%; text-align: center; margin-top: 0.35rem; }

@media (max-width: 900px) {
  .page-body .wrap { grid-template-columns: 1fr; }
  .page-aside { position: static; }
}

/* --------------------------------------------------------------------------
   Deliverables — SOW-style enumerated, because contracts enumerate
   -------------------------------------------------------------------------- */

.deliverables {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  counter-reset: deliv;
  border-top: 1px solid var(--line);
}

.deliverables li {
  counter-increment: deliv;
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.deliverables li::before {
  content: "D-0" counter(deliv);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--blue);
  padding-top: 0.25rem;
}

.deliverables b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  display: block;
  margin-bottom: 0.15rem;
}

.deliverables span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Hero figure animation
   -------------------------------------------------------------------------- */

.fig-anim .draw-late {
  opacity: 0;
  transition: opacity 600ms ease 900ms;
}

.fig-anim.fig-go .draw-late { opacity: 1; }

.fig-anim .redline-stroke {
  stroke-dasharray: 480;
  stroke-dashoffset: 480;
  transition: stroke-dashoffset 700ms ease-in 250ms;
}

.fig-anim.fig-go .redline-stroke { stroke-dashoffset: 0; }

/* --------------------------------------------------------------------------
   Reduced motion — everything lands immediately
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal { opacity: 1; transform: none; }
  .fig-anim .redline-stroke { stroke-dashoffset: 0; }
  .fig-anim .draw-late { opacity: 1; }
}
