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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.7;
  font-weight: 400;
}

body {
  min-width: 0;
  padding-top: var(--header-h);
}

body.nav-open { overflow: hidden; }

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

img {
  width: 100%;
  object-fit: cover;
}

figure { margin: 0; }

a {
  color: var(--accent);
  text-underline-offset: 2px;
}

.prose a { text-decoration: underline; }

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

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  z-index: 400;
}

.skip:focus { top: 12px; }

.container {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
  min-width: 0;
}

.container-narrow {
  width: min(760px, calc(100% - (var(--gutter) * 2)));
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 250;
  height: var(--header-h);
  background: rgba(255, 248, 242, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 13px;
  flex: 0 0 auto;
}

.brand-name {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand-tag {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.utility-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  min-width: 0;
}

.utility-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.utility-nav a[aria-current="page"] {
  color: var(--primary);
  box-shadow: inset 0 -2px 0 var(--primary);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  background: var(--primary);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-cta:hover { filter: brightness(0.95); }

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 10px 9px;
  flex-direction: column;
  justify-content: space-between;
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 500;
  cursor: pointer;
}

.hamburger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  min-height: 2px;
  flex: 0 0 2px;
  background: var(--ink);
}

.mobile-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(360px, calc(100vw - 56px));
  background: var(--surface);
  z-index: 400;
  border-left: 1px solid var(--border);
  transform: none;
  visibility: hidden;
  pointer-events: none;
  padding: 88px 22px 120px;
  overflow: auto;
}

.mobile-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.drawer-close {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 510;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}

html.is-drawer-open,
html.is-drawer-open body {
  overflow: hidden;
}

html.is-drawer-open [data-support-launcher] {
  visibility: hidden;
  pointer-events: none;
}

.drawer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.drawer-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 14px;
}

.drawer-nav a[aria-current="page"] { color: var(--primary); }

.drawer-cta {
  margin-top: 18px;
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
}

section[id] { scroll-margin-top: 88px; }

.band {
  padding: 56px 0;
  min-width: 0;
}

.band + .band { border-top: 0; }

.band-paper { background: var(--background); }
.band-warm { background: var(--surface-2); }
.band-white { background: var(--surface); }
.band-ink {
  background: #2A1812;
  color: #F8EDE4;
}
.band-ink .muted,
.band-ink p,
.band-ink li { color: #E8D4C6; }
.band-ink h2, .band-ink h3 { color: #FFF8F2; }
.band-ink a { color: #8EE0DA; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 10px;
}

.cover {
  padding: 0;
  background: var(--surface-2);
}

.cover-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  min-height: calc(100dvh - var(--header-h));
  max-height: none;
}

.cover-poster {
  position: relative;
  min-width: 0;
  min-height: 560px;
  background: #3A2218;
  color: #FFF8F2;
  overflow: hidden;
}

.cover-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cover-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 12, 8, 0.18) 0%, rgba(26, 12, 8, 0.72) 78%);
}

.cover-copy {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px 40px 40px;
  max-width: 720px;
}

.cover-kicker {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 16px;
  color: #F3C7B0;
}

.cover h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  font-weight: 700;
  max-width: 16ch;
}

.cover-lede {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.5;
  max-width: 42ch;
  color: #F4E4D8;
}

.cover-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.cover .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.55); }

.evidence-desk {
  min-width: 0;
  background: var(--surface);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.evidence-desk header {
  padding: 22px 22px 0;
}

.evidence-desk h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.tablist {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin: 18px 22px 0;
}

.tablist [role="tab"] {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  min-height: 44px;
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
}

.tablist [role="tab"][aria-selected="true"] {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tabpanel {
  padding: 20px 22px 24px;
  min-width: 0;
}

.tabpanel h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.tabpanel p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.stat {
  padding: 12px 0 0;
  border-top: 1px solid var(--border);
}

.stat b {
  display: block;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.compliance {
  padding: 14px 0;
  background: #2A1812;
  color: #F4E4D8;
  font-size: 14px;
}

.compliance p { margin: 0; }

.rail-wrap { overflow: hidden; }

.story-rail,
.action-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  min-width: 0;
}

.story-rail:focus,
.action-rail:focus { outline: var(--focus); }

.ticket,
.story-card {
  flex: 0 0 min(280px, 82vw);
  scroll-snap-align: start;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 18px;
  text-decoration: none;
  color: inherit;
}

.ticket h3,
.story-card h3 {
  margin: 8px 0;
  font-size: 20px;
}

.ticket p,
.story-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.ticket .num,
.story-card .num {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
}

.story-card img {
  aspect-ratio: 16 / 10;
  margin: -18px -18px 14px;
  width: calc(100% + 36px);
  max-width: none;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.scoreboard {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

.scoreboard th,
.scoreboard td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.scoreboard th {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.scoreboard td:first-child {
  font-weight: 700;
  white-space: nowrap;
}

.data-poster {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px;
  overflow-x: auto;
}

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

.pathway-list li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}

.pathway-list a {
  color: inherit;
  text-decoration: none;
}

.pathway-list h3 { margin: 0 0 6px; font-size: 20px; }
.pathway-list p { margin: 0; color: var(--muted); }
.pathway-idx {
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
}

.annotated {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 28px;
  align-items: start;
}

.annotated figure { min-width: 0; }

.annotated img {
  aspect-ratio: 16 / 10;
}

.annotated ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.annotated li {
  padding-left: 40px;
  position: relative;
}

.annotated li::before {
  content: attr(data-n);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.chapter {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 36px;
}

.chapter-body { max-width: var(--measure); }
.chapter-body h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; }
.chapter-body p { margin: 0 0 16px; }
.pull {
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0;
  padding-top: 8px;
  border-top: 3px solid var(--primary);
}

.stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.step {
  min-width: 0;
  padding: 20px 18px 20px 0;
  border-right: 1px solid var(--border);
}

.step:last-child { border-right: 0; }
.step .n {
  display: block;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 12px;
  margin-bottom: 10px;
}
.step h3 { margin: 0 0 8px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

.feed {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feed li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.feed time {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}

.split article {
  padding: 28px;
  min-width: 0;
}

.split article + article { border-left: 1px solid var(--border); }

.media-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 0;
  background: #2A1812;
  color: #FFF8F2;
}

.media-band img {
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.media-copy { padding: 40px; }

.faq-list {
  display: grid;
  gap: 8px;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px 16px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.faq-list p { color: var(--muted); }

.page-hero {
  padding: 36px 0 12px;
}

.page-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  max-width: 18ch;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  font-size: 13px;
  color: var(--muted);
}

.crumbs a { color: inherit; }

.hero-banner {
  margin: 18px 0 8px;
}

.hero-banner img {
  aspect-ratio: 16 / 7;
  min-height: 220px;
  max-height: 420px;
}

.inline-image,
.inline-image-row,
.content-image-card,
.poster {
  margin: 28px 0;
}

.inline-image img,
.content-image-card img,
.poster img {
  aspect-ratio: 16 / 10;
}

.caption,
figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.prose h2 {
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 36px 0 12px;
}

.prose h3 {
  font-size: 20px;
  margin: 26px 0 8px;
}

.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 1.2em; }

.ledger {
  width: 100%;
  border-collapse: collapse;
}

.ledger th, .ledger td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.card,
.data-card,
.step-card,
.loose-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px;
}

.step-num {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 12px;
}

.band { }
.faq-grid { display: grid; gap: 8px; }

.site-footer {
  background: #2A1812;
  color: #F4E4D8;
  padding: 48px 0 120px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 28px;
}

.site-footer a {
  color: #F8EDE4;
  text-decoration: none;
}

.site-footer ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.site-footer h2 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fineprint {
  margin-top: 28px;
  font-size: 13px;
  color: #D8C0B0;
}

.mobile-sticky {
  display: none;
}

.disclaimer {
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 899px) {
  .utility-nav { display: none; }
  .header-cta { display: none; }
  .hamburger { display: flex; }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; }
  /* Header stays above the side drawer so the hamburger remains the
     topmost control at its box. backdrop-filter keeps a stacking
     context, so z-index:auto cannot let the button escape. */
  html.is-drawer-open .site-header { z-index: 550; }
  .cover-grid {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .cover-poster {
    min-height: 480px;
    max-height: 720px;
  }
  .cover-copy { padding: 28px 20px 28px; }
  .cover h1 { font-size: 32px; }
  .evidence-desk { border-left: 0; border-top: 1px solid var(--border); }
  .section-head,
  .annotated,
  .chapter,
  .media-band,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .split article + article { border-left: 0; border-top: 1px solid var(--border); }
  .stepper { grid-template-columns: minmax(0, 1fr); }
  .step { border-right: 0; border-bottom: 1px solid var(--border); }
  .pathway-list li {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .pathway-list li > :last-child { display: none; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mobile-sticky {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 240;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 248, 242, 0.96);
    border-top: 1px solid var(--border);
  }
  .mobile-sticky .btn {
    width: 100%;
  }
  body { padding-bottom: calc(var(--sticky-cta-h) + env(safe-area-inset-bottom, 0px)); }
  .site-footer { padding-bottom: 28px; }
}

@media (max-width: 430px) {
  .tablist { overflow-x: auto; }
  .feed li { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mobile-drawer { transition: none; }
}
