/* Evidence & Method — Editorial Design System */
:root {
  color-scheme: light;
  --bg: #faf9f6;
  --surface: #ffffff;
  --surface-tint: #f2efe9;
  --ink: #121c18;
  --muted: #4b5952;
  --muted-light: #6a7871;
  --line: #e2ded5;
  --line-strong: #cfc9bc;

  --forest: #0e241d;
  --forest-2: #153329;
  --forest-line: rgba(255, 255, 255, 0.13);
  --on-dark: #f4f3ee;
  --on-dark-muted: #b7c4bd;

  --emerald: #1c785a;
  --emerald-bright: #34b287;
  --emerald-soft: #e6f4ee;

  --brass: #a87528;
  --brass-bright: #dfb164;
  --brass-soft: #f9f1e2;

  /* StillReach sister brand accents */
  --sr-slate: #0d1721;
  --sr-slate-2: #142333;
  --sr-teal: #2dd4bf;
  --sr-blue: #38bdf8;

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(14, 36, 29, 0.04), 0 4px 12px rgba(14, 36, 29, 0.04);
  --shadow-md: 0 4px 16px rgba(14, 36, 29, 0.06), 0 14px 36px rgba(14, 36, 29, 0.06);
  --shadow-dark: 0 18px 48px rgba(6, 17, 13, 0.34);
}

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

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.02rem/1.68 var(--sans);
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1;
}

a {
  color: inherit;
  text-underline-offset: 0.24em;
  text-decoration-thickness: 1px;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 3px;
  border-radius: 3px;
}

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

.wrap {
  width: min(100% - 3.5rem, 74rem);
  margin-inline: auto;
}

/* Typography — crisp editorial proportions & natural kerning */
h1, h2, h3, h4, p { margin: 0; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1;
}

h1 {
  font-size: clamp(2.75rem, 5.2vw, 4.55rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 3.4vw, 2.95rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.58rem);
  line-height: 1.24;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font: 600 0.78rem/1.2 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.eyebrow--brass { color: var(--brass); }
.eyebrow--light { color: var(--brass-bright); }
.eyebrow--teal { color: var(--sr-teal); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 249, 246, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header--dark {
  background: rgba(13, 23, 33, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  color: var(--on-dark);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.75rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  font: 500 1.28rem/1.1 var(--serif);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.mark {
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font: 500 0.96rem/1 var(--serif);
  letter-spacing: 0.01em;
  color: var(--forest);
  box-shadow: 0 1px 2px rgba(14, 36, 29, 0.06);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.wordmark:hover .mark {
  transform: translateY(-1px);
  border-color: var(--emerald);
}

.mark--sr {
  background: linear-gradient(135deg, #163047, #0e241d);
  border-color: rgba(45, 212, 191, 0.4);
  color: var(--sr-teal);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 0.3rem 0;
  position: relative;
  transition: color 0.2s ease;
}

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

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--emerald);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-header--dark .site-nav a { color: #a7b8c9; }
.site-header--dark .site-nav a:hover,
.site-header--dark .site-nav a[aria-current="page"] { color: #ffffff; }
.site-header--dark .site-nav a::after { background: var(--sr-teal); }

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.85rem !important;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--forest) !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-pill::after { display: none !important; }

.nav-pill:hover {
  border-color: var(--emerald);
  background: var(--emerald-soft);
  transform: translateY(-1px);
}

.nav-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  animation: soft-pulse 2.6s ease-in-out infinite;
}

/* Buttons */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.78rem 1.35rem;
  border-radius: var(--radius-sm);
  font: 600 0.92rem/1.2 var(--sans);
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--forest);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(14, 36, 29, 0.16);
}

.btn-primary:hover {
  background: #173a2f;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(14, 36, 29, 0.22);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  border-color: var(--forest);
  background: var(--surface-tint);
  transform: translateY(-1px);
}

.btn-light {
  background: var(--brass-bright);
  color: var(--forest);
}

.btn-light:hover {
  background: #eac37c;
  transform: translateY(-1px);
}

.btn-ghost-dark {
  background: rgba(255, 255, 255, 0.06);
  color: var(--on-dark);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-teal {
  background: var(--sr-teal);
  color: #082026;
}

.btn-teal:hover {
  background: #5eead4;
  transform: translateY(-1px);
}

/* Hero */
.hero {
  padding-block: clamp(3.5rem, 7vw, 6.25rem) clamp(3rem, 5vw, 4.75rem);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: clamp(2.25rem, 5vw, 4.5rem);
}

.hero h1 {
  margin-top: 1.1rem;
  max-width: 13ch;
}

.hero h1 em {
  font-style: italic;
  color: var(--emerald);
}

.hero .intro {
  margin-top: 1.45rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.45vw, 1.18rem);
  line-height: 1.65;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.4rem;
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--muted-light);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-meta svg {
  width: 15px;
  height: 15px;
  color: var(--emerald);
  flex-shrink: 0;
}

/* Hero Verification Diagram Card */
.diagram-frame {
  background: var(--forest);
  color: var(--on-dark);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-dark);
  position: relative;
  overflow: hidden;
}

.diagram-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 15%, rgba(52, 178, 135, 0.18), transparent 45%),
    radial-gradient(circle at 12% 90%, rgba(223, 177, 100, 0.14), transparent 45%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: auto, auto, 28px 28px, 28px 28px;
  pointer-events: none;
}

.diagram-inner { position: relative; z-index: 1; }

.diagram-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  margin-bottom: 1.15rem;
  border-bottom: 1px solid var(--forest-line);
  font: 500 0.74rem/1 var(--mono);
  letter-spacing: 0.04em;
  color: var(--on-dark-muted);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.62rem;
  border-radius: 999px;
  background: rgba(52, 178, 135, 0.16);
  color: #7ee2be;
  font: 500 0.71rem/1 var(--mono);
}

.status-chip .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 0 0 rgba(52, 178, 135, 0.7);
  animation: radar-pulse 2.2s infinite;
}

.hero-svg {
  width: 100%;
  height: auto;
}

/* Animated SVG strokes */
.flow-line {
  stroke-dasharray: 6 6;
  animation: dash-flow 1.8s linear infinite;
}

.flow-line-slow {
  stroke-dasharray: 5 7;
  animation: dash-flow 2.8s linear infinite;
}

.scan-beam {
  animation: scan-vertical 3.8s ease-in-out infinite;
}

.icon-draw {
  stroke-dasharray: 64;
  stroke-dashoffset: 0;
}

.card:hover .icon-draw,
.stat-card:hover .icon-draw {
  animation: stroke-redraw 0.9s ease forwards;
}

.pulse-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: ring-breathe 2.8s ease-in-out infinite;
}

.node-blink {
  animation: node-fade 2.4s ease-in-out infinite;
}

.node-blink-delay {
  animation: node-fade 2.4s ease-in-out 0.9s infinite;
}

.float-gentle {
  animation: float-y 4.5s ease-in-out infinite;
}

/* Animated Stats Strip */
.stats-strip {
  padding-block: 0.75rem 3.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.45rem 1.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.stat-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald), var(--brass-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.stat-card.is-visible::after,
.no-js .stat-card::after {
  transform: scaleX(1);
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.stat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.9rem;
}

.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--emerald-soft);
  color: var(--emerald);
}

.stat-icon--brass {
  background: var(--brass-soft);
  color: var(--brass);
}

.stat-tag {
  font: 500 0.7rem/1 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.stat-value {
  font: 500 clamp(2rem, 3vw, 2.55rem)/1.05 var(--serif);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--forest);
}

.stat-label {
  margin-top: 0.45rem;
  font-size: 0.87rem;
  line-height: 1.45;
  color: var(--muted);
}

/* Section Headers */
.section {
  padding-block: clamp(4rem, 7vw, 6rem);
}

.section-border {
  border-top: 1px solid var(--line);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 2.75rem;
}

.section-header h2 {
  margin-top: 0.75rem;
  max-width: 18ch;
}

.section-lead {
  max-width: 32rem;
  color: var(--muted);
  font-size: 1rem;
}

/* Service Cards */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 2rem 1.85rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--emerald-soft);
  border: 1px solid rgba(28, 120, 90, 0.14);
  color: var(--emerald);
  display: grid;
  place-items: center;
  margin-bottom: 0.35rem;
}

.card-icon--brass {
  background: var(--brass-soft);
  border-color: rgba(168, 117, 40, 0.18);
  color: var(--brass);
}

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

.card-list {
  list-style: none;
  padding: 0.95rem 0 0;
  margin: auto 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.card-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.card-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--emerald);
  flex-shrink: 0;
}

/* Dark Band — Benchmark Showcase */
.band-dark {
  background: var(--forest);
  color: var(--on-dark);
  padding-block: clamp(4.25rem, 8vw, 6.5rem);
  position: relative;
  overflow: hidden;
}

.band-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 15%, rgba(52, 178, 135, 0.14), transparent 42%),
    radial-gradient(circle at 92% 85%, rgba(223, 177, 100, 0.12), transparent 40%);
  pointer-events: none;
}

.band-dark .wrap { position: relative; z-index: 1; }

.split-2 {
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  gap: clamp(2.25rem, 6vw, 5.25rem);
  align-items: start;
}

.band-dark h2 {
  margin-top: 0.85rem;
  color: #ffffff;
}

.band-dark p {
  color: var(--on-dark-muted);
}

.band-dark p + p { margin-top: 1.05rem; }

.metrics-panel {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.metric-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--forest-line);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
}

.metric-box dt {
  font: 500 0.74rem/1.3 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass-bright);
}

.metric-box dd {
  margin: 0.45rem 0 0;
  font: 400 1.75rem/1.15 var(--serif);
  font-variant-numeric: tabular-nums;
  color: #ffffff;
}

.metric-box span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.82rem;
  color: var(--on-dark-muted);
}

.axes-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.axis-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--forest-line);
}

.axis-num {
  font: 600 0.75rem/1 var(--mono);
  color: var(--brass-bright);
  padding: 0.32rem 0.48rem;
  border-radius: 5px;
  background: rgba(223, 177, 100, 0.14);
}

.axis-row strong {
  display: block;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
}

.axis-row small {
  display: block;
  margin-top: 0.2rem;
  color: var(--on-dark-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

/* Independent Research Preview */
.research-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.research-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.85rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font: 600 0.72rem/1.1 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--surface-tint);
  color: var(--muted);
  border: 1px solid var(--line);
}

.badge--emerald {
  background: var(--emerald-soft);
  color: var(--emerald);
  border-color: rgba(28, 120, 90, 0.2);
}

.badge--brass {
  background: var(--brass-soft);
  color: var(--brass);
  border-color: rgba(168, 117, 40, 0.22);
}

.badge--sr {
  background: rgba(45, 212, 191, 0.12);
  color: var(--sr-teal);
  border-color: rgba(45, 212, 191, 0.3);
}

/* Sister Company Feature — StillReach */
.sister-section {
  padding-block: clamp(3.5rem, 6vw, 5.25rem);
  background: var(--surface-tint);
  border-top: 1px solid var(--line);
}

.sister-box {
  background: linear-gradient(135deg, var(--sr-slate) 0%, var(--sr-slate-2) 60%, #102a29 100%);
  color: var(--on-dark);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4.5vw, 3.5rem);
  box-shadow: var(--shadow-dark);
  border: 1px solid rgba(45, 212, 191, 0.18);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
  overflow: hidden;
}

.sister-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(45, 212, 191, 0.14), transparent 48%);
  pointer-events: none;
}

.sister-box > * { position: relative; z-index: 1; }

.sister-box h2 {
  margin-top: 0.9rem;
  color: #ffffff;
}

.sister-box p {
  margin-top: 1rem;
  color: #bfd0dc;
}

.sister-note {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border-left: 2px solid var(--sr-teal);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0 8px 8px 0;
  font-size: 0.86rem;
  color: #c8d8e3;
}

/* StillReach dedicated page dark hero */
.sr-hero {
  background: linear-gradient(160deg, var(--sr-slate) 0%, var(--sr-slate-2) 62%, #0f2926 100%);
  color: var(--on-dark);
  padding-block: clamp(3.75rem, 7vw, 6.25rem);
  position: relative;
  overflow: hidden;
}

.sr-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 82% 22%, rgba(45, 212, 191, 0.16), transparent 45%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
  pointer-events: none;
}

.sr-hero .wrap { position: relative; z-index: 1; }
.sr-hero h1 { color: #ffffff; margin-top: 1rem; max-width: 14ch; }
.sr-hero h1 em { color: var(--sr-teal); font-style: italic; }
.sr-hero .intro { color: #bdd0de; margin-top: 1.35rem; max-width: 34rem; font-size: 1.12rem; }

/* Subpage Hero (Benchmark) */
.page-hero {
  padding-block: clamp(3.25rem, 6vw, 5rem) clamp(2.5rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin-top: 1rem;
  max-width: 18ch;
  font-size: clamp(2.4rem, 4.4vw, 3.7rem);
}

.page-hero .intro {
  margin-top: 1.25rem;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.75rem;
  margin-top: 1.75rem;
  font: 500 0.8rem/1.4 var(--mono);
  color: var(--muted-light);
}

.callout {
  background: var(--emerald-soft);
  border: 1px solid rgba(28, 120, 90, 0.22);
  border-left: 3px solid var(--emerald);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
}

.callout--brass {
  background: var(--brass-soft);
  border-color: rgba(168, 117, 40, 0.24);
  border-left-color: var(--brass);
}

.callout strong {
  display: block;
  font-size: 0.96rem;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.callout p {
  font-size: 0.93rem;
  color: var(--muted);
}

.cite-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.cite-box code {
  display: block;
  margin-top: 0.75rem;
  padding: 0.9rem 1rem;
  background: var(--surface-tint);
  border-radius: var(--radius-sm);
  font: 400 0.84rem/1.55 var(--mono);
  color: var(--forest);
  overflow-wrap: anywhere;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding-block: 2.75rem 2.5rem;
  color: var(--muted);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 0.88rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-disclaimer {
  margin-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted-light);
}

/* Reveal Animations (progressive enhancement) */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[id] { scroll-margin-top: 5.5rem; }

/* Keyframes */
@keyframes dash-flow {
  to { stroke-dashoffset: -24; }
}

@keyframes radar-pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 178, 135, 0.65); }
  70% { box-shadow: 0 0 0 8px rgba(52, 178, 135, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 178, 135, 0); }
}

@keyframes soft-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

@keyframes scan-vertical {
  0%, 100% { transform: translateY(0px); opacity: 0.35; }
  50% { transform: translateY(14px); opacity: 0.9; }
}

@keyframes stroke-redraw {
  0% { stroke-dashoffset: 64; }
  100% { stroke-dashoffset: 0; }
}

@keyframes ring-breathe {
  0%, 100% { opacity: 0.35; transform: scale(0.96); }
  50% { opacity: 0.85; transform: scale(1.06); }
}

@keyframes node-fade {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@keyframes float-y {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}

/* Responsive */
@media (max-width: 62rem) {
  .hero-grid,
  .split-2,
  .sister-box {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards-3 {
    grid-template-columns: 1fr;
  }
  .research-grid {
    grid-template-columns: 1fr;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (max-width: 38rem) {
  .wrap { width: calc(100% - 2.25rem); }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding-block: 0.9rem;
    gap: 0.75rem;
  }
  .stats-grid,
  .metrics-panel {
    grid-template-columns: 1fr;
  }
}

@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;
  }
  .js-ready [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Editorial Long-Form, Tracker & Speech Notes */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
  font: 500 0.78rem/1.3 var(--mono);
  color: var(--muted-light);
}

.breadcrumb a {
  text-decoration: none;
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--emerald);
  text-decoration: underline;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18.5rem;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.article-body {
  min-width: 0;
  display: grid;
  gap: 2.25rem;
}

.article-body h2 {
  font-size: clamp(1.65rem, 2.7vw, 2.2rem);
  margin-bottom: 0.85rem;
}

.article-body h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.42rem);
  margin-bottom: 0.55rem;
}

.article-body p {
  color: var(--muted);
  max-width: 66ch;
}

.article-body p + p {
  margin-top: 0.95rem;
}

.article-sidebar {
  position: sticky;
  top: 6rem;
  display: grid;
  gap: 1.25rem;
}

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.3rem 1.35rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 0.85rem;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
  font-size: 0.87rem;
}

.toc-list a {
  color: var(--muted);
  text-decoration: none;
  display: block;
  padding-left: 0.75rem;
  border-left: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.toc-list a:hover {
  color: var(--forest);
  border-left-color: var(--emerald);
}

/* Primary source summary box */
.source-banner {
  background: var(--forest);
  color: var(--on-dark);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.65rem;
  display: grid;
  gap: 1rem;
  box-shadow: var(--shadow-md);
}

.source-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.5rem;
}

.source-meta-grid dt {
  font: 500 0.7rem/1.3 var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--brass-bright);
}

.source-meta-grid dd {
  margin: 0.2rem 0 0;
  font-size: 0.92rem;
  color: #ffffff;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--forest-line);
}

/* Key points list */
.key-points {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.65rem 1.75rem;
  box-shadow: var(--shadow-sm);
}

.key-points ol {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.75rem;
  color: var(--muted);
}

.key-points li strong {
  color: var(--ink);
}

/* Editorial Quote Block */
.quote-block {
  margin: 1.35rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--forest);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-sm);
}

.quote-block blockquote {
  margin: 0;
  font: 400 1.12rem/1.6 var(--serif);
  color: var(--ink);
}

.quote-block figcaption {
  margin-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font: 500 0.75rem/1.3 var(--mono);
  color: var(--muted-light);
}

.para-ref {
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  background: var(--surface-tint);
  color: var(--forest);
  border: 1px solid var(--line);
}

/* Tracker Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2rem;
}

.filter-btn {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font: 600 0.82rem/1.2 var(--sans);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--forest);
  color: var(--ink);
}

.filter-btn.is-active {
  background: var(--forest);
  border-color: var(--forest);
  color: #ffffff;
}

/* Tracker Sections & Entries */
.tracker-group {
  display: grid;
  gap: 1.15rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.tracker-group:first-of-type {
  padding-top: 0;
  border-top: none;
}

.tracker-group.is-hidden {
  display: none;
}

.tracker-group-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tracker-entry {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.55rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 0.65rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tracker-entry:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.entry-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.entry-date {
  font: 600 0.76rem/1.2 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--emerald);
}

.entry-summary {
  color: var(--muted);
  font-size: 0.95rem;
}

.entry-practice {
  margin-top: 0.2rem;
  padding: 0.7rem 0.95rem;
  border-radius: var(--radius-sm);
  background: var(--surface-tint);
  font-size: 0.87rem;
  color: var(--ink);
}

.entry-practice strong {
  color: var(--forest);
}

.source-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font: 600 0.82rem/1.3 var(--sans);
  color: var(--emerald);
  text-decoration: none;
}

.source-link:hover {
  text-decoration: underline;
}

/* Editorial Timeline (Master of the Rolls AI page) */
.timeline {
  position: relative;
  display: grid;
  gap: 1.35rem;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 2px;
  background: linear-gradient(180deg, var(--emerald), var(--line-strong));
}

.timeline-item {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.55rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 0.55rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.8rem;
  top: 1.55rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--surface);
  border: 2.5px solid var(--emerald);
}

.timeline-item--featured {
  border-color: rgba(28, 120, 90, 0.35);
  box-shadow: var(--shadow-md);
}

.timeline-item--featured::before {
  background: var(--emerald);
  box-shadow: 0 0 0 5px rgba(28, 120, 90, 0.16);
}

.role-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.58rem;
  border-radius: 999px;
  background: var(--surface-tint);
  border: 1px solid var(--line);
  font: 500 0.72rem/1.2 var(--mono);
  color: var(--muted);
}

/* Changelog */
.changelog-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.changelog-list li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}

.changelog-list time {
  font: 600 0.78rem/1.5 var(--mono);
  color: var(--forest);
}

/* Speech index cards */
.speech-feature {
  background: var(--forest);
  color: var(--on-dark);
  border-radius: var(--radius-lg);
  padding: clamp(1.85rem, 4vw, 2.85rem);
  box-shadow: var(--shadow-dark);
  display: grid;
  gap: 1.1rem;
}

.speech-feature h2 {
  color: #ffffff;
  max-width: 24ch;
}

.speech-feature p {
  color: var(--on-dark-muted);
  max-width: 62ch;
}

@media (max-width: 62rem) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
  }
  .source-meta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 38rem) {
  .changelog-list li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}
