/* =========================================================
   boaboa — paper-and-ink editorial, ice blue, calm motion
   ========================================================= */

:root {
  --primary: #1769E8;
  --primary-deep: #0E4FB4;
  --accent: #0EA5A8;
  --accent-deep: #086F72;
  --background: #F4F8FF;
  --surface: #FFFFFF;
  --surface-2: #E8F1FF;
  --surface-3: #FBFDFF;
  --ink: #13213A;
  --ink-soft: #2A3A58;
  --muted: #52647C;
  --muted-2: #7A8AA0;
  --rule: #C9D9F2;
  --rule-soft: #DCE7F8;
  --rule-bold: #9AB1DA;
  --gold: #B8893A;
  --warn: #B6421E;
  --good: #1F7A4D;
  --radius-card: 14px;
  --radius-pill: 999px;
  --radius-tab: 8px;
  --shadow-1: 0 1px 2px rgba(19,33,58,0.04), 0 6px 24px rgba(19,33,58,0.06);
  --shadow-2: 0 2px 4px rgba(19,33,58,0.05), 0 12px 36px rgba(19,33,58,0.08);
  --max-w: 1200px;
  --max-w-wide: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'DM Sans', system-ui, sans-serif;
  --line-body: 1.7;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: var(--line-body);
  color: var(--ink);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern' 1, 'liga' 1, 'tnum' 1;
}

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

a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--primary-deep); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

h1 { font-size: clamp(32px, 4.5vw, 56px); line-height: 1.06; letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -0.015em; }
h3 { font-size: clamp(20px, 1.6vw, 24px); }
h4 { font-size: 18px; }
p { margin: 0 0 1em; }

main { display: block; }

.shell { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.shell--wide { max-width: var(--max-w-wide); }

/* ====== HEADER (sticky, persistent) ====== */
.site-header {
  position: sticky; top: 0; z-index: 250;
  background: rgba(244,248,255,0.94);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: flex; align-items: center; gap: 16px;
  height: 72px;
  max-width: var(--max-w-wide); margin: 0 auto;
  padding: 0 var(--gutter);
}
.brand-mark {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
}
.brand-mark__logo {
  width: 36px; height: 36px; flex: 0 0 36px;
  border-radius: 8px;
  background: linear-gradient(140deg, var(--primary) 0%, var(--accent) 100%);
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 17px;
  letter-spacing: -0.04em;
}
.brand-mark__name {
  font-weight: 700; font-size: 19px; letter-spacing: -0.01em;
}
.brand-mark__tag {
  display: block; font-size: 11px; font-weight: 500;
  color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase;
  margin-top: 2px;
}
.main-nav {
  margin-left: auto; display: flex; align-items: center; gap: 4px;
}
.main-nav a {
  color: var(--ink-soft); text-decoration: none; font-weight: 500;
  padding: 8px 10px; border-radius: var(--radius-tab);
  font-size: 14px;
  white-space: nowrap;
}
.main-nav a:hover { background: var(--surface-2); color: var(--ink); }
.main-nav a.is-active { color: var(--primary); background: var(--surface-2); }
.header-cta {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  padding: 10px 18px; border-radius: var(--radius-pill);
  background: var(--primary); color: #fff !important;
  font-weight: 600; font-size: 14px; text-decoration: none;
  white-space: nowrap;
}
.header-cta:hover { background: var(--primary-deep); }
.header-cta-ghost {
  display: inline-flex; align-items: center; flex-shrink: 0;
  padding: 8px 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--rule-bold); color: var(--ink) !important;
  background: transparent; font-weight: 500; font-size: 14px;
  text-decoration: none; white-space: nowrap;
}
@media (max-width: 1180px) {
  .header-cta-ghost { display: none; }
}
@media (max-width: 1080px) {
  .main-nav a { padding: 8px 8px; font-size: 13px; }
}
.hamburger {
  display: none;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 1px solid var(--rule); border-radius: 10px; background: var(--surface);
  cursor: pointer; padding: 0; position: relative; z-index: 300;
}
.hamburger__bar {
  display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
  position: absolute; left: 11px; transition: transform .22s ease, opacity .22s ease;
}
.hamburger__bar:nth-child(1) { top: 14px; }
.hamburger__bar:nth-child(2) { top: 21px; }
.hamburger__bar:nth-child(3) { top: 28px; }
.hamburger.is-open .hamburger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open .hamburger__bar:nth-child(2) { opacity: 0; }
.hamburger.is-open .hamburger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .main-nav, .header-cta-ghost { display: none; }
  .hamburger { display: inline-flex; }
  .header-cta { display: none; }
}
@media (max-width: 960px) {
  .site-header__inner { height: 64px; }
}

/* ====== MOBILE DRAWER ====== */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 260;
  background: rgba(19,33,58,0.5);
  opacity: 0; pointer-events: none;
  visibility: hidden;
  transition: opacity .25s ease, visibility 0s linear .25s;
}
.mobile-drawer.is-open {
  opacity: 1; pointer-events: auto;
  visibility: visible;
  transition: opacity .25s ease, visibility 0s linear 0s;
}
.mobile-drawer__sheet {
  position: absolute; right: 0; top: 0; bottom: 0;
  box-sizing: border-box;
  width: min(86vw, 360px);
  background: var(--surface);
  padding: 24px 22px 32px;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.22,.7,.27,1);
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 8px;
  z-index: 261;
}
.mobile-drawer.is-open .mobile-drawer__sheet { transform: translateX(0); }
.mobile-drawer__close {
  position: relative; z-index: 262;
  align-self: flex-end; width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--rule); background: var(--surface);
  cursor: pointer; font-size: 20px; line-height: 1;
}
.mobile-drawer__nav {
  display: flex; flex-direction: column; gap: 4px;
  margin-top: 12px;
}
.mobile-drawer__nav a {
  padding: 14px 12px; color: var(--ink); text-decoration: none;
  font-weight: 500; border-radius: 10px;
  border-bottom: 1px solid var(--rule-soft);
}
.mobile-drawer__nav a:hover, .mobile-drawer__nav a:focus { background: var(--surface-2); outline: none; }
.mobile-drawer__cta {
  margin-top: 18px;
  display: block; text-align: center;
  padding: 14px 18px; border-radius: var(--radius-pill);
  background: var(--primary); color: #fff; font-weight: 600;
  text-decoration: none;
}

/* ====== HERO (asymmetric-split) ====== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(48px, 6vw, 96px) var(--gutter) clamp(48px, 6vw, 88px);
  max-width: var(--max-w-wide); margin: 0 auto;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary-deep); padding: 6px 14px; border-radius: var(--radius-pill);
  background: var(--surface-2);
  margin-bottom: 20px;
}
.hero__eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.hero__h { margin-bottom: 16px; }
.hero__deck {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--ink-soft);
  margin-bottom: 28px;
  max-width: 56ch;
}
.hero__cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 15px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background .15s ease, transform .12s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-deep); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--rule-bold); color: var(--ink); }
.btn--ghost:hover { background: var(--surface-2); color: var(--ink); }
.hero__meta {
  display: flex; gap: 24px; margin-top: 28px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}
.hero__meta-item { display: flex; align-items: center; gap: 8px; }
.hero__meta-item strong { color: var(--ink); font-weight: 600; }

.hero__media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-2);
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__note {
  position: absolute;
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--primary);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px; color: var(--ink);
  box-shadow: var(--shadow-1);
  max-width: 240px;
  backdrop-filter: blur(6px);
}
.hero__note--top { top: 16px; right: 16px; transform: rotate(1.5deg); }
.hero__note--bottom { bottom: 16px; left: 16px; transform: rotate(-1deg); border-left-color: var(--accent); }
.hero__note-label {
  display: block; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px; font-weight: 600;
}

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero__media { order: -1; aspect-ratio: 16 / 11; }
}

/* ====== TRUST STRIP ====== */
.trust-strip {
  background: var(--surface);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 18px var(--gutter);
}
.trust-strip__row {
  max-width: var(--max-w-wide); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px;
}
.trust-strip__item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-soft);
}
.trust-strip__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--good);
}

/* ====== EDITORIAL INDEX (magazine TOC) ====== */
.section { padding: clamp(48px, 6vw, 88px) var(--gutter); }
.section__head {
  max-width: var(--max-w-wide); margin: 0 auto 36px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end;
}
.section__eyebrow {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-deep); font-weight: 700; margin-bottom: 8px;
}
.section__title { margin: 0; }
.section__deck { color: var(--muted); margin: 8px 0 0; max-width: 60ch; font-size: 15px; }
.section__link {
  font-size: 14px; font-weight: 600; color: var(--primary); text-decoration: none;
  border-bottom: 2px solid var(--primary); padding-bottom: 2px;
  white-space: nowrap;
}

.toc {
  max-width: var(--max-w-wide); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.toc__list {
  list-style: none; padding: 0; margin: 0;
  border-top: 1px solid var(--rule);
}
.toc__item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.toc__num {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  color: var(--primary); letter-spacing: -0.02em;
  font-feature-settings: 'tnum' 1;
}
.toc__title {
  font-weight: 600; font-size: 18px; color: var(--ink);
  text-decoration: none;
}
.toc__title:hover { color: var(--primary); }
.toc__leaders {
  flex: 1;
  border-bottom: 1px dotted var(--rule-bold);
  margin: 0 8px;
  height: 1em;
  align-self: end;
}
.toc__meta {
  font-size: 13px; color: var(--muted);
  font-feature-settings: 'tnum' 1;
}
.toc__side {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 24px;
  position: relative;
}
.toc__side::before {
  content: ""; position: absolute; top: -1px; left: -1px; right: -1px;
  height: 4px; background: linear-gradient(90deg, var(--primary), var(--accent));
  border-top-left-radius: var(--radius-card);
  border-top-right-radius: var(--radius-card);
}
.toc__side h3 { margin-bottom: 10px; }
.toc__side p { color: var(--ink-soft); font-size: 14px; margin-bottom: 14px; }
.toc__side-list {
  list-style: none; padding: 0; margin: 0;
  font-size: 14px;
}
.toc__side-list li {
  display: flex; gap: 8px; padding: 8px 0;
  border-top: 1px solid var(--rule-soft);
}
.toc__side-list li:first-child { border-top: 0; }
.toc__side-list strong { font-weight: 600; color: var(--ink); }

@media (max-width: 860px) {
  .toc { grid-template-columns: minmax(0, 1fr); }
}

/* ====== DECISION TABLE (comparison ledger) ====== */
.ledger {
  max-width: var(--max-w-wide); margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.ledger__head {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 14px 20px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}
.ledger__row {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 0;
  padding: 16px 20px;
  border-top: 1px solid var(--rule-soft);
  transition: background .15s ease;
}
.ledger__row:hover { background: var(--surface-3); }
.ledger__label { font-weight: 600; color: var(--ink); font-size: 15px; }
.ledger__cell {
  font-size: 14px; color: var(--ink-soft);
  font-feature-settings: 'tnum' 1;
  padding-right: 12px;
}
.ledger__cell--pos { color: var(--good); font-weight: 600; }
.ledger__cell--neg { color: var(--warn); font-weight: 600; }
.ledger__footnote {
  padding: 14px 20px;
  background: var(--surface-2);
  font-size: 12px; color: var(--muted);
  border-top: 1px solid var(--rule);
}

@media (max-width: 860px) {
  .ledger__head { display: none; }
  .ledger__row {
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    padding: 16px;
  }
  .ledger__label { grid-column: 1 / -1; padding-bottom: 6px; border-bottom: 1px dashed var(--rule); margin-bottom: 4px; }
}

/* ====== LATEST ANALYSIS (feed-list) ====== */
.feed {
  max-width: var(--max-w-wide); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.feed__list { list-style: none; padding: 0; margin: 0; }
.feed__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.feed__item:first-child { padding-top: 0; }
.feed__kicker {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-deep); font-weight: 700; margin-bottom: 6px;
}
.feed__title {
  font-size: clamp(18px, 1.6vw, 22px); margin: 0 0 8px;
}
.feed__title a { color: var(--ink); text-decoration: none; }
.feed__title a:hover { color: var(--primary); }
.feed__deck { font-size: 14px; color: var(--ink-soft); margin: 0 0 8px; max-width: 64ch; }
.feed__meta {
  font-size: 12px; color: var(--muted);
  display: flex; gap: 12px; flex-wrap: wrap;
}
.feed__thumb {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--surface-2);
}
.feed__thumb img { width: 100%; height: 100%; object-fit: cover; }
.feed__side {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 22px;
}
.feed__side h3 { margin-bottom: 8px; font-size: 17px; }
.feed__side-list { list-style: none; padding: 0; margin: 12px 0 0; }
.feed__side-list li {
  padding: 10px 0; border-top: 1px solid var(--rule-soft);
  font-size: 14px;
}
.feed__side-list li:first-child { border-top: 0; }

@media (max-width: 860px) {
  .feed { grid-template-columns: minmax(0, 1fr); }
  .feed__item { grid-template-columns: minmax(0, 1fr); }
  .feed__thumb { order: -1; aspect-ratio: 16 / 9; }
}

/* ====== EXPERT NOTE (pull-quote) ====== */
.expert-note {
  max-width: 880px; margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 36px;
  position: relative;
}
.expert-note__mark {
  font-family: var(--font-display);
  font-size: 64px; line-height: 0.5;
  color: var(--primary);
  position: absolute; top: 24px; left: 24px;
  font-weight: 700;
}
.expert-note__body {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.45;
  color: var(--ink);
  font-style: italic;
  margin: 12px 0 24px 48px;
}
.expert-note__by {
  display: flex; align-items: center; gap: 14px;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
  margin-left: 48px;
}
.expert-note__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(140deg, var(--accent), var(--primary));
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 16px;
}
.expert-note__byline strong { display: block; color: var(--ink); font-size: 15px; }
.expert-note__byline span { font-size: 12px; color: var(--muted); }

/* ====== TOPIC RAIL (horizontal scroll) ====== */
.topic-rail {
  max-width: var(--max-w-wide); margin: 0 auto;
}
.topic-rail__scroll {
  display: flex; gap: 16px;
  overflow-x: auto;
  padding: 4px 0 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.topic-rail__card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none; color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.topic-rail__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-1);
  border-color: var(--rule-bold);
}
.topic-rail__card-img {
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  overflow: hidden;
}
.topic-rail__card-img img { width: 100%; height: 100%; object-fit: cover; }
.topic-rail__card-body { padding: 18px 20px 22px; }
.topic-rail__card-eyebrow {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-deep); font-weight: 700; margin-bottom: 6px;
}
.topic-rail__card-title { font-size: 17px; font-weight: 600; line-height: 1.3; margin: 0; }

/* ====== SAFETY DESK (two-column) ====== */
.desk {
  max-width: var(--max-w-wide); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.desk__list { list-style: none; padding: 0; margin: 0; }
.desk__row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.desk__check {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface-2); color: var(--good);
  display: grid; place-items: center;
  font-size: 14px; font-weight: 700;
}
.desk__label { font-weight: 500; color: var(--ink); font-size: 15px; }
.desk__label small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; margin-top: 2px; }
.desk__pill {
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--surface-2); color: var(--ink-soft);
  padding: 4px 10px; border-radius: var(--radius-pill);
  font-weight: 600;
}
.desk__panel {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-card);
  padding: 28px;
}
.desk__panel h3 { color: #fff; margin-bottom: 8px; }
.desk__panel p { color: rgba(255,255,255,0.78); font-size: 14px; }
.desk__panel-list { list-style: none; padding: 0; margin: 18px 0 22px; }
.desk__panel-list li {
  padding: 10px 0; border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 14px; display: flex; align-items: center; gap: 10px;
}
.desk__panel-list li:first-child { border-top: 0; }
.desk__panel-list li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.desk__panel-cta {
  display: inline-block;
  padding: 12px 20px; border-radius: var(--radius-pill);
  background: #fff; color: var(--ink);
  text-decoration: none; font-weight: 600; font-size: 14px;
}

@media (max-width: 860px) {
  .desk { grid-template-columns: minmax(0, 1fr); }
}

/* ====== CLOSING ACTION (full-width band) ====== */
.closing-band {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #fff;
  padding: clamp(56px, 7vw, 96px) var(--gutter);
  text-align: center;
}
.closing-band h2 { color: #fff; max-width: 26ch; margin: 0 auto 16px; }
.closing-band p { color: rgba(255,255,255,0.86); max-width: 60ch; margin: 0 auto 28px; }
.closing-band__micro {
  display: flex; gap: 22px; justify-content: center; flex-wrap: wrap;
  margin-top: 22px; font-size: 13px; color: rgba(255,255,255,0.78);
}
.closing-band__micro span { display: inline-flex; align-items: center; gap: 8px; }
.btn--invert { background: #fff; color: var(--primary); }
.btn--invert:hover { background: var(--surface-2); color: var(--primary-deep); }

/* ====== FOOTER ====== */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.78);
  padding: clamp(48px, 6vw, 72px) var(--gutter) 24px;
}
.site-footer__grid {
  max-width: var(--max-w-wide); margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.site-footer h4 {
  color: #fff; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700; margin-bottom: 16px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 5px 0; font-size: 14px; }
.site-footer a { color: rgba(255,255,255,0.78); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__about p { font-size: 14px; max-width: 36ch; }
.site-footer__brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none; font-weight: 700; font-size: 19px;
  margin-bottom: 12px;
}
.site-footer__brand .brand-mark__logo { width: 32px; height: 32px; flex-basis: 32px; font-size: 15px; }
.site-footer__bottom {
  max-width: var(--max-w-wide); margin: 36px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: rgba(255,255,255,0.55);
}
.site-footer__legal { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer__legal a { color: rgba(255,255,255,0.55); }

@media (max-width: 860px) {
  .site-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ====== STICKY MOBILE CTA BAR ====== */
.sticky-cta {
  display: none;
}
@media (max-width: 860px) {
  .sticky-cta {
    display: block;
    position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 240;
    background: rgba(255,255,255,0.98);
    border-top: 1px solid var(--rule);
    padding: 12px var(--gutter);
    backdrop-filter: blur(8px);
    box-shadow: 0 -4px 18px rgba(19,33,58,0.08);
  }
  .sticky-cta a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 14px 22px;
    background: var(--primary); color: #fff;
    border-radius: var(--radius-pill);
    font-weight: 700; font-size: 15px;
    text-decoration: none;
    letter-spacing: 0.02em;
  }
  body { padding-bottom: 76px; }
  main { padding-bottom: 24px; }
}

/* ====== INTERIOR PAGES (hubs, money, brand) ====== */
.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  padding: clamp(48px, 6vw, 80px) var(--gutter) clamp(40px, 5vw, 64px);
}
.page-hero__inner {
  max-width: var(--max-w-wide); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 56px); align-items: center;
}
.page-hero__eyebrow {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-deep); font-weight: 700; margin-bottom: 10px;
}
.page-hero h1 { margin-bottom: 16px; }
.page-hero__deck { font-size: 18px; color: var(--ink-soft); max-width: 60ch; }
.page-hero__meta {
  display: flex; gap: 18px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted); margin-top: 20px;
}
.page-hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.page-hero__media {
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--rule);
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
}
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .page-hero__inner { grid-template-columns: minmax(0, 1fr); }
}

.article {
  max-width: 820px; margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) var(--gutter);
}
.article h2 {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 2px solid var(--rule);
}
.article h3 { margin-top: 24px; }
.article p { font-size: 17px; }
.article ul, .article ol { padding-left: 22px; margin: 0 0 1em; }
.article li { margin: 6px 0; font-size: 17px; }
.article figure {
  margin: 28px -8% 36px;
}
.article figure img {
  width: 100%; border-radius: 12px;
  border: 1px solid var(--rule);
  aspect-ratio: 16 / 9; object-fit: cover;
  background: var(--surface-2);
}
.article figcaption {
  font-size: 13px; color: var(--muted); margin-top: 10px;
  padding: 0 4px; font-style: italic;
  text-align: center;
}
.article blockquote {
  margin: 28px 0;
  padding: 22px 26px;
  background: var(--surface);
  border-left: 4px solid var(--primary);
  border-radius: 0 10px 10px 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-style: italic;
  color: var(--ink);
}
@media (max-width: 860px) {
  .article figure { margin: 24px 0; max-width: 100%; }
}

.faq { max-width: 880px; margin: 0 auto; padding: clamp(40px, 5vw, 64px) var(--gutter); }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 0;
  margin-bottom: 12px;
}
.faq__q {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%;
  background: transparent; border: 0; padding: 20px 24px;
  cursor: pointer;
  font-family: var(--font-body); font-size: 16px; font-weight: 600;
  color: var(--ink);
  text-align: left;
}
.faq__q::after {
  content: "+"; font-size: 22px; color: var(--primary);
  transition: transform .2s ease;
}
.faq__item.is-open .faq__q::after { content: "−"; }
.faq__a {
  padding: 0 24px 22px;
  color: var(--ink-soft);
  font-size: 15px;
  display: none;
}
.faq__item.is-open .faq__a { display: block; }

.kpi-row {
  max-width: var(--max-w-wide); margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 20px 22px;
}
.kpi__num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  font-feature-settings: 'tnum' 1;
  line-height: 1;
}
.kpi__label { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ====== HUB NAV (used on child pages) ====== */
.hub-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  padding: 12px var(--gutter);
  overflow-x: auto;
}
.hub-nav__row {
  max-width: var(--max-w-wide); margin: 0 auto;
  display: flex; gap: 8px;
}
.hub-nav a {
  display: inline-flex; align-items: center;
  padding: 8px 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 13px; font-weight: 500;
  text-decoration: none; white-space: nowrap;
}
.hub-nav a:hover, .hub-nav a.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ====== GRID IMAGE-IN-CONTEXT ====== */
.media-band {
  max-width: var(--max-w-wide); margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}
.media-band figure {
  margin: 0;
  border-radius: 12px;
  border: 1px solid var(--rule);
  overflow: hidden;
  background: var(--surface);
}
.media-band figure img {
  aspect-ratio: 4 / 3;
  width: 100%; height: auto; object-fit: cover;
}
.media-band figcaption {
  padding: 14px 18px;
  font-size: 13px; color: var(--muted);
  font-style: italic;
}
@media (max-width: 720px) {
  .media-band { grid-template-columns: minmax(0, 1fr); }
}

/* ====== RESPONSIVE GUARDS ====== */
.shell, .section, .hero, .feed, .toc, .desk, .ledger, .kpi-row, .topic-rail, .media-band {
  min-width: 0;
}
img, figure, .hero__media, .page-hero__media, .topic-rail__card, .toc__side, .desk__panel, .ledger, .kpi {
  min-width: 0;
}
@media (max-width: 420px) {
  body { font-size: 16px; }
  .section { padding: 40px var(--gutter); }
}

/* ====== UTILITY ====== */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--surface-2); color: var(--accent-deep);
  padding: 6px 12px; border-radius: var(--radius-pill);
  font-weight: 700;
}
.text-muted { color: var(--muted); }
.lede { font-size: 19px; color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}