/* ============================================================
   ARTECNO — site styles
   Design system: artecno-site-handover.md §3
   Charcoal base, paper-white text, one accent per section,
   monospace-forward type, ASCII ornament dividers.
   ============================================================ */

:root {
  /* Base */
  --charcoal: #1E1F21;
  --panel: #141517;
  --paper: #F4F3EF;

  /* Section accents (one per section) */
  --green: #7BA05B;      /* S1 problem / research green */
  --terracotta: #B0705F; /* S3 design research */
  --blue: #5B8FB0;       /* S5 pedagogy */
  --purple: #A98BC0;     /* S4 framework */
  --teal: #3E9B8F;       /* S7 partners */
  --yellow: #F2E33D;     /* data callouts / signal */

  /* Type */
  --mono: "JetBrains Mono", "Space Mono", ui-monospace, "SF Mono", Menlo,
          Consolas, "Liberation Mono", monospace;

  --measure: 68ch;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@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;
  }
}

body {
  font-family: var(--mono);
  background: var(--charcoal);
  color: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--yellow);
  color: var(--charcoal);
}

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

/* ---- Shared section scaffold ---- */

.section {
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 5vw, 4rem);
}

/* ASCII ornament strip at every section boundary (deck-style divider) */
.section:not(.section--hero)::before {
  content: "*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+";
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  opacity: 0.3;
  user-select: none;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

/* Halftone dot field — the dithered-print texture, kept faint */
.section--problem,
.section--research,
.section--pedagogy,
.section--partners {
  background-image: radial-gradient(
    color-mix(in srgb, var(--paper) 5%, transparent) 1px,
    transparent 1px
  );
  background-size: 7px 7px;
}

/* Label bars: colored background behind section titles, as in the deck */
.label-bar {
  display: inline-block;
  padding: 0.15em 0.6em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.label-bar--yellow { background: var(--yellow); }
.label-bar--green  { background: var(--green); }
.label-bar--paper  { background: var(--paper); }

/* ---- Edition Update callouts ----
   2026 postscripts connecting thesis-era content to the present.
   Deliberately grayscale — outside the deck's section-color system. */

.edition-update {
  margin-top: clamp(2rem, 5vw, 3rem);
  max-width: var(--measure);
  border: 1px solid color-mix(in srgb, var(--paper) 35%, transparent);
  border-left: 4px solid var(--paper);
  background: color-mix(in srgb, var(--paper) 6%, transparent);
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 4vw, 2rem);
}

.edition-update__label {
  font-size: 0.8rem;
  margin-bottom: 0.9rem;
}

.edition-update__lead {
  font-size: 0.95rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--paper) 82%, var(--charcoal));
  margin-bottom: 1.5rem;
}

/* Grayscale stat tiles — numbers wear ink, not accent color */
.edition-update__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1px;
  background: color-mix(in srgb, var(--paper) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--paper) 22%, transparent);
  margin-bottom: 1.5rem;
}

.eu-stat {
  background: var(--panel);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.5rem;
}

.eu-stat dd {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--paper);
  line-height: 1;
}

.eu-stat__unit {
  font-size: 0.55em;
  opacity: 0.85;
}

.eu-stat dt {
  font-size: 0.72rem;
  line-height: 1.5;
  color: color-mix(in srgb, var(--paper) 70%, var(--charcoal));
}

/* Grayscale timeline */
.edition-update__timeline {
  list-style: none;
  border-left: 1px solid color-mix(in srgb, var(--paper) 35%, transparent);
  margin: 0 0 1.5rem 0.25rem;
  padding: 0;
}

.edition-update__timeline li {
  position: relative;
  padding: 0 0 1.1rem 1.4rem;
  font-size: 0.85rem;
  line-height: 1.65;
  color: color-mix(in srgb, var(--paper) 78%, var(--charcoal));
}

.edition-update__timeline li:last-child {
  padding-bottom: 0;
}

.edition-update__timeline li::before {
  content: "";
  position: absolute;
  left: -0.28rem;
  top: 0.45em;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--paper);
}

.eu-date {
  display: inline-block;
  font-weight: 700;
  color: var(--paper);
  margin-right: 0.5em;
}

.edition-update__sources {
  font-size: 0.72rem;
  color: color-mix(in srgb, var(--paper) 60%, var(--charcoal));
}

.edition-update__sources a {
  color: color-mix(in srgb, var(--paper) 80%, var(--charcoal));
  text-underline-offset: 3px;
}

.edition-update__sources a:hover {
  color: var(--paper);
}

/* ---- Chromatic shimmer ----
   The Edition Update layer reads white at rest; every now and then,
   offset rainbow copies flare briefly (chromatic-aberration style).
   Flares occupy ~6% of an 11s cycle, desynced per element. */

@media (prefers-reduced-motion: no-preference) {

  .edition-update .label-bar--paper {
    animation: chroma-text 11s linear infinite,
               chroma-box 11s linear infinite;
  }

  .eu-stat dd,
  .eu-date {
    animation: chroma-text 11s linear infinite;
  }

  /* Desync so flares arrive "every now and then", never all at once */
  .eu-stat:nth-child(1) dd { animation-delay: -2.3s; }
  .eu-stat:nth-child(2) dd { animation-delay: -5.9s; }
  .eu-stat:nth-child(3) dd { animation-delay: -8.1s; }
  .edition-update__timeline li:nth-child(1) .eu-date { animation-delay: -1.2s; }
  .edition-update__timeline li:nth-child(2) .eu-date { animation-delay: -4.4s; }
  .edition-update__timeline li:nth-child(3) .eu-date { animation-delay: -6.8s; }
  .edition-update__timeline li:nth-child(4) .eu-date { animation-delay: -9.6s; }

  /* Timeline tick squares get a faint color halo on their own beat */
  .edition-update__timeline li::before {
    animation: chroma-box 11s linear infinite;
    animation-delay: inherit;
  }
}

/* Offset glyph copies in rainbow hues; none for ~94% of the cycle */
@keyframes chroma-text {
  0%, 90.5%, 96.5%, 100% {
    text-shadow: none;
  }
  92% {
    text-shadow:
      -2px  0    rgba(255, 60, 120, 0.50),
       2px  0    rgba( 60, 200, 255, 0.50);
  }
  93.5% {
    text-shadow:
      -3px  1px  rgba(242, 227, 61, 0.45),
       3px -1px  rgba(169, 139, 192, 0.55),
       0    2px  rgba( 62, 155, 143, 0.45);
  }
  95% {
    text-shadow:
      -1px  0    rgba(123, 255, 158, 0.40),
       1px  0    rgba(255, 60, 120, 0.40);
  }
}

/* ============================================================
   S6 — THEORY OF CHANGE (dark)
   ============================================================ */

.section--toc {
  background: var(--charcoal);
  border-top: 4px solid color-mix(in srgb, var(--paper) 40%, transparent);
}

.toc-goals {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

@media (min-width: 720px) {
  .toc-goals {
    grid-template-columns: 1fr 1fr;
  }
}

.toc-goals p {
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.92;
  border-left: 2px solid color-mix(in srgb, var(--paper) 35%, transparent);
  padding-left: 1.1rem;
}

.toc-goals strong {
  display: block;
  margin-bottom: 0.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

/* Interactive Theory of Change — embedded self-contained widget */
.toc-embed {
  margin: 0 0 clamp(2rem, 5vw, 3rem);
}

.toc-embed__frame {
  width: 100%;
  height: clamp(640px, 90vh, 1080px);
  border: 1px solid color-mix(in srgb, var(--paper) 25%, transparent);
  border-radius: 8px;
  background: var(--charcoal);
  display: block;
}

.toc-embed__caption {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  opacity: 0.75;
  max-width: var(--measure);
}

.toc-embed__caption a {
  color: var(--paper);
  text-underline-offset: 3px;
}

.ethics-block {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.ethics-list {
  list-style: none;
  max-width: var(--measure);
}

.ethics-list li {
  font-size: 0.92rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed color-mix(in srgb, var(--paper) 25%, transparent);
}

.ethics-list li::before {
  content: "§ ";
  opacity: 0.6;
}

/* ============================================================
   S7 — COMMUNITY PARTNERS (teal)
   ============================================================ */

.section--partners {
  --accent: var(--teal);
  background: var(--panel);
  border-top: 4px solid var(--accent);
}

.label-bar--teal { background: var(--teal); }

.partner-grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
}

@media (min-width: 640px) {
  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .partner-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.partner-card {
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-top: 4px solid var(--accent);
  padding: clamp(1.1rem, 3vw, 1.5rem);
}

.partner-card__name {
  font-size: 1.05rem;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.partner-card__person {
  font-size: 0.8rem;
  opacity: 0.75;
  margin-bottom: 0.7rem;
}

.partner-card p:last-child {
  font-size: 0.88rem;
  opacity: 0.9;
}

/* ============================================================
   S8 — WHAT'S NEXT
   ============================================================ */

.section--next {
  background: var(--charcoal);
  border-top: 4px solid var(--yellow);
}

.next__body {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  max-width: var(--measure);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.closing-line {
  margin-top: clamp(2rem, 5vw, 3rem);
}

.closing-line p {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  line-height: 1.55;
  max-width: 30em;
  text-wrap: balance;
}

.credits {
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.8;
}

.pixel-motif {
  display: block;
  margin: 0 auto 1.1rem;
  color: var(--paper);
  opacity: 0.55;
}

.credits__pending {
  margin-top: 0.9rem;
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--yellow);
  border: 1px dashed color-mix(in srgb, var(--yellow) 60%, transparent);
  padding: 0.3em 0.8em;
}

/* ============================================================
   S5 — PEDAGOGY & CURRICULUM (blue)
   ============================================================ */

.section--pedagogy {
  --accent: var(--blue);
  background: var(--panel);
  border-top: 4px solid var(--accent);
}

.label-bar--blue { background: var(--blue); }

.section--pedagogy .chip {
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  color: color-mix(in srgb, var(--accent) 70%, var(--paper));
}

.section--pedagogy .chip::before {
  content: "+ ";
  opacity: 0.6;
}

.chip-row--pillars {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.unit-feature {
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-left: 4px solid var(--accent);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.unit-feature > p {
  font-size: 0.95rem;
  opacity: 0.9;
  max-width: var(--measure);
  margin-top: 0.75rem;
}

.capsule-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.capsule-row li {
  font-size: 0.75rem;
  padding: 0.25em 0.7em;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: color-mix(in srgb, var(--accent) 60%, var(--paper));
}

.capsule-row li::before {
  content: "▸ ";
  opacity: 0.7;
}

.artifact-grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

@media (min-width: 640px) {
  .artifact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* two-up, not four-up: these artifacts are wide landscape captures and
   go illegible in quarter-width columns */
.artifact-card img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--paper) 18%, transparent);
}

/* Phone mockup — reusable frame for a live embedded probe (S3 Prólogo) */
.phone-mock {
  position: relative;
  width: min(300px, 82vw);
  aspect-ratio: 9 / 19.3;
  margin: 0 auto;
  background: #0b0b0c;
  border: 2px solid color-mix(in srgb, var(--paper) 28%, transparent);
  border-radius: 2.3rem;
  padding: 2rem 0.5rem 0.75rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.phone-mock__island {
  position: absolute;
  top: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 1.05rem;
  background: #000;
  border-radius: 999px;
}

.phone-mock__screen {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 1.3rem;
  background: var(--paper);
  display: block;
}

.needs-asset--shot {
  min-height: 11rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.artifact-card figcaption {
  font-size: 0.82rem;
  line-height: 1.6;
  opacity: 0.9;
}

.artifact-card strong {
  color: var(--accent);
}

.artifact-card__gloss {
  opacity: 0.7;
}

/* ============================================================
   S4 — THE FRAMEWORK (purple)
   ============================================================ */

.section--framework {
  --accent: var(--purple);
  background: var(--charcoal);
  border-top: 4px solid var(--accent);
}

.label-bar--purple { background: var(--purple); }

.principle-grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

@media (min-width: 820px) {
  .principle-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.principle-card {
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-top: 4px solid var(--accent);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.needs-asset--icon {
  min-height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.principle-card__title {
  font-size: clamp(1.1rem, 2.6vw, 1.35rem);
  color: var(--accent);
}

.principle-card__gloss {
  display: block;
  font-size: 0.7em;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.7;
  margin-top: 0.2em;
}

.principle-card p {
  font-size: 0.9rem;
  opacity: 0.9;
}

.principle-card__flow {
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--accent) 75%, var(--paper));
  border-top: 1px dashed color-mix(in srgb, var(--accent) 40%, transparent);
  padding-top: 0.75rem;
  margin-top: auto;
}

.principle-card__diagram {
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}

.principle-card__diagram img {
  display: block;
  width: 100%;
  height: auto;
}

/* ============================================================
   S3 — DESIGN RESEARCH (terracotta)
   ============================================================ */

.section--research {
  --accent: var(--terracotta);
  background: var(--panel);
  border-top: 4px solid var(--accent);
}

.label-bar--terracotta { background: var(--terracotta); }

.chip-row--methods {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

/* chips inherit --accent from the section */
.section--research .chip {
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  color: color-mix(in srgb, var(--accent) 70%, var(--paper));
}

.section--research .chip::before {
  content: "# ";
  opacity: 0.6;
}

.probe-feature {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

@media (min-width: 720px) {
  .probe-feature {
    grid-template-columns: auto 1fr;
    align-items: start;
  }
}

.needs-asset--tall {
  min-height: 16rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-title {
  font-size: clamp(1.15rem, 2.8vw, 1.5rem);
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.feature-title__gloss {
  font-size: 0.7em;
  font-weight: 400;
  opacity: 0.75;
  color: var(--paper);
}

.probe-feature__text p {
  font-size: 0.95rem;
  opacity: 0.9;
  max-width: var(--measure);
}

.probe-feature__note {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  opacity: 0.75;
}

.probe-feature__note a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.subhead {
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  letter-spacing: 0.06em;
  text-transform: lowercase;
  margin-bottom: 1.25rem;
}

.subhead::before {
  content: ">> ";
  color: var(--accent, var(--paper));
  opacity: 0.8;
}

/* ============================================================
   S2 — HOW MIGHT WE (dark interstitial)
   ============================================================ */

.section--hmw {
  background: var(--charcoal);
  padding-top: clamp(4rem, 12vw, 8rem);
  padding-bottom: clamp(4rem, 12vw, 8rem);
}

.hmw__eyebrow {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  opacity: 0.55;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.hmw__quote p {
  font-size: clamp(1.35rem, 3.6vw, 2.3rem);
  font-weight: 700;
  line-height: 1.5;
  max-width: 26em;
  text-wrap: balance;
}

/* Slim edition-update variant for interstitials */
.edition-update--slim {
  padding: clamp(1rem, 2.5vw, 1.4rem) clamp(1.1rem, 3vw, 1.6rem);
}

.edition-update--slim .edition-update__lead {
  font-size: 0.88rem;
  margin-bottom: 0.9rem;
}

/* Offset box copies for solid elements (label bar, timeline ticks) */
@keyframes chroma-box {
  0%, 90.5%, 96.5%, 100% {
    box-shadow: none;
  }
  92% {
    box-shadow:
      -3px  0   0 rgba(255, 60, 120, 0.35),
       3px  0   0 rgba( 60, 200, 255, 0.35);
  }
  93.5% {
    box-shadow:
      -2px  2px 0 rgba(242, 227, 61, 0.30),
       2px -2px 0 rgba(169, 139, 192, 0.35);
  }
  95% {
    box-shadow:
      -1px  0   0 rgba(123, 255, 158, 0.30),
       1px  0   0 rgba(255, 60, 120, 0.30);
  }
}

.section__inner {
  width: min(100%, 62rem);
  margin: 0 auto;
}

.section__title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.section__kicker {
  font-size: clamp(1rem, 2.6vw, 1.35rem);
  font-weight: 700;
  max-width: var(--measure);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

/* ---- Scroll reveals (hidden only when JS is running + motion OK) ---- */

.reveal-on [data-reveal] {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-on [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---- ASCII / typewriter ornaments ---- */

.ornament {
  /* centred flex children size to content — clamp so the long glyph run
     clips instead of widening the page */
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  opacity: 0.45;
  text-align: center;
  user-select: none;
}

.ornament--divider {
  margin: clamp(1.5rem, 4vw, 2.5rem) auto;
  opacity: 0.3;
}

/* ---- Glossary: inline term triggers + modal ---- */

.gloss {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: help;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.gloss:hover {
  text-decoration-style: solid;
  color: var(--yellow);
}

.glossary {
  /* the global `* { margin: 0 }` reset kills the UA stylesheet's centering */
  margin: auto;
  width: min(46rem, calc(100vw - 2rem));
  max-height: min(80vh, 44rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--panel);
  color: var(--paper);
  border: 1px solid color-mix(in srgb, var(--paper) 30%, transparent);
  border-top: 4px solid var(--yellow);
  border-radius: 4px;
  font-family: var(--mono);
  overflow: hidden;
}

.glossary::backdrop {
  background: rgba(10, 10, 11, 0.78);
}

.glossary__close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
  background: none;
  border: 0;
  color: var(--paper);
  opacity: 0.7;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

.glossary__close:hover {
  opacity: 1;
  color: var(--yellow);
}

.glossary__eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 0.5rem;
}

.glossary__title {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  margin-bottom: 1.1rem;
}

.glossary__body {
  max-height: calc(80vh - 9rem);
  overflow-y: auto;
  padding-right: 0.5rem;
}

.glossary__body p {
  font-size: 0.9rem;
  line-height: 1.75;
  opacity: 0.92;
}

.glossary__body p + p {
  margin-top: 0.9rem;
}

.glossary__tie {
  border-left: 2px solid var(--yellow);
  padding-left: 0.9rem;
  opacity: 1 !important;
}

.glossary__sources,
.glossary__see-also {
  font-size: 0.75rem !important;
  opacity: 0.7 !important;
  border-top: 1px dashed color-mix(in srgb, var(--paper) 25%, transparent);
  padding-top: 0.75rem;
}

/* ---- Figures ---- */

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

.figure {
  margin: 0 0 clamp(2rem, 5vw, 3rem);
}

.figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid color-mix(in srgb, var(--paper) 18%, transparent);
}

.figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  line-height: 1.65;
  opacity: 0.8;
  max-width: var(--measure);
}

.figure figcaption strong {
  color: var(--accent, var(--paper));
}

.figure__source {
  opacity: 0.7;
}

.figure--small {
  max-width: 34rem;
}

.figure--inset {
  margin: 0.5rem 0 1rem;
}

.figure--inset figcaption {
  font-size: 0.72rem;
}

/* ---- S3 research gallery ---- */

.research-gallery {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

@media (min-width: 720px) {
  .research-gallery {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }
  /* the corpus strip is 1800x558 — let it run the full width */
  .research-gallery .figure--span {
    grid-column: 1 / -1;
  }
}

.research-gallery .figure {
  margin-bottom: 0;
}

/* ---- S5 somatic block ---- */

.somatic-block {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-left: 4px solid var(--accent);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

@media (min-width: 820px) {
  .somatic-block {
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
  }
}

/* crops the source's white text panel out of frame — the copy is re-set as
   live HTML alongside, so nothing is lost */
.somatic-block__motif {
  min-height: 15rem;
  background-image: url("assets/somatic-learning-motif.jpg");
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  border: 1px solid color-mix(in srgb, var(--paper) 18%, transparent);
}

.somatic-block__text p {
  font-size: 0.9rem;
  line-height: 1.75;
  opacity: 0.9;
}

.somatic-block__text p + p {
  margin-top: 0.9rem;
}

/* ---- S1 chart ---- */

.chart {
  margin: 0 0 clamp(2rem, 5vw, 3rem);
}

.chart__title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.chart__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart__grid line {
  stroke: color-mix(in srgb, var(--paper) 16%, transparent);
  stroke-width: 1;
}

.chart__bars path {
  fill: var(--accent);
}

.chart__bar--flag {
  fill: var(--yellow);
}

.chart__value {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  fill: var(--paper);
}

.chart__value--flag {
  fill: var(--yellow);
}

.chart__year,
.chart__axis-label,
.chart__unit {
  font-family: var(--mono);
  font-size: 11px;
  fill: color-mix(in srgb, var(--paper) 65%, var(--charcoal));
}

.chart__note,
.chart__source {
  font-size: 0.75rem;
  line-height: 1.6;
  max-width: var(--measure);
}

.chart__note {
  margin-top: 1rem;
  opacity: 0.9;
}

.chart__key {
  display: inline-block;
  width: 0.65em;
  height: 0.65em;
  background: var(--yellow);
  margin-right: 0.4em;
}

.chart__source {
  margin-top: 0.6rem;
  opacity: 0.6;
}

/* ---- glossary figure ---- */

.glossary__figure {
  margin: 1.1rem 0;
}

.glossary__figure img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--paper);
  border-radius: 2px;
  padding: 0.75rem;
}

.glossary__figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  opacity: 0.7;
}

/* ---- NEEDS ASSET placeholder blocks ---- */

.needs-asset {
  position: relative;
  border: 1px dashed color-mix(in srgb, var(--paper) 40%, transparent);
  padding: clamp(1.5rem, 5vw, 3rem) clamp(1rem, 4vw, 2.5rem);
}

.needs-asset__label {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-50%);
  margin-left: 1rem;
  padding: 0.1em 0.6em;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: var(--charcoal);
  color: var(--yellow);
  border: 1px dashed color-mix(in srgb, var(--yellow) 60%, transparent);
}

/* ============================================================
   S0 — HERO
   ============================================================ */

.section--hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  text-align: center;
}

.hero__inner {
  width: min(100%, 52rem);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.25rem, 3.5vw, 2rem);
}

/* Typographic stand-in until the letterform logo asset arrives */
.hero__wordmark {
  font-size: clamp(2.75rem, 12vw, 7.5rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-right: -0.12em; /* optically recenter tracked-out type */
  line-height: 1;
}

.hero__tagline {
  font-size: clamp(0.85rem, 2.2vw, 1.1rem);
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2.8vw, 1.5rem);
  font-weight: 700;
  max-width: var(--measure);
  text-wrap: balance;
}

.hero__equation {
  font-size: clamp(0.9rem, 2.4vw, 1.15rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6em;
}

.hero__equation-op {
  color: var(--yellow);
  font-weight: 700;
}

.hero__equation-term--result {
  border-bottom: 2px solid var(--yellow);
}

.hero__byline {
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  opacity: 0.75;
}

.br-desktop {
  display: none;
}

@media (min-width: 640px) {
  .br-desktop {
    display: inline;
  }
}

/* ============================================================
   S1 — THE PROBLEM (green)
   ============================================================ */

.section--problem {
  --accent: var(--green);
  background: var(--panel);
  border-top: 4px solid var(--accent);
}

.gap-grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

@media (min-width: 720px) {
  .gap-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.gap-card {
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-left: 4px solid var(--accent);
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.gap-card__title {
  color: var(--accent);
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  text-transform: lowercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.gap-card__title::before {
  content: ">> ";
  opacity: 0.7;
}

.gap-card p {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Data callouts: signal yellow, per design system */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1px;
  background: color-mix(in srgb, var(--paper) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--paper) 18%, transparent);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.stat {
  background: var(--panel);
  padding: 1.25rem;
  display: flex;
  flex-direction: column-reverse; /* number first visually, term read after */
  gap: 0.5rem;
}

.stat dd {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  color: var(--yellow);
  line-height: 1;
}

.stat__unit {
  font-size: 0.55em;
}

.stat__vs {
  font-size: 0.4em;
  opacity: 0.7;
  color: var(--paper);
  padding: 0 0.25em;
}

.stat dt {
  font-size: 0.75rem;
  opacity: 0.75;
  line-height: 1.5;
}

.stat__source {
  display: block;
  opacity: 0.7;
  font-size: 0.9em;
}

/* Named harms as chips */
.chip-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.chip {
  font-size: 0.8rem;
  padding: 0.35em 0.85em;
  border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  border-radius: 999px;
  color: color-mix(in srgb, var(--accent) 75%, var(--paper));
}

.chip::before {
  content: "× ";
  opacity: 0.6;
}

.problem-statement {
  border-left: 4px solid var(--accent);
  padding: clamp(1rem, 3vw, 1.5rem) clamp(1.25rem, 4vw, 2rem);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  max-width: var(--measure);
}

.problem-statement p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 700;
  line-height: 1.7;
}
