/* ═══════════════════════════════════════════════════════════════
   ARAM ALGORITHM — SHARED DESIGN SYSTEM v3.0
   Neue Authority / Heritage Neue brand system.
   Premium legal-tech. Litigation infrastructure.
═══════════════════════════════════════════════════════════════ */

/* ── BRAND TOKENS (Neue Authority) ── */
:root {
  /* Brand palette */
  --aram-chalk: #F5F4F0;
  --aram-ink: #111111;
  --aram-rust: #D45D2C;
  --aram-steel: #565D68;
  --aram-light: #E8E6E0;
  --aram-panel: #1D1D1D;

  /* Semantic aliases (mapped from brand palette) */
  --primary: var(--aram-ink);
  --navy: var(--aram-ink);
  --navy-mid: #333333;
  --navy-faint: var(--aram-light);
  --navy-dim: rgba(17,17,17,0.08);
  --ink: var(--aram-ink);
  --paper: var(--aram-chalk);
  --warm: var(--aram-light);
  --surface: #FFFFFF;
  --fog: #F3F2EE;
  --red: #8B2500;
  --red-bg: #FDF0EC;
  --green: #1A5632;
  --green-bg: #EAF5EE;
  --amber: #8B6914;
  --amber-bg: #FDF6E8;
  --amber-bright: var(--aram-rust);
  --slate: #3D4452;
  --muted: var(--aram-steel);
  --rule: #DDD9D3;
  --rule-light: #EDEAE5;
  --dark: var(--aram-panel);
  --dark-mid: #252525;
  --dark-border: #333333;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);

  /* Typography — Neue Authority stack */
  --display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --heading: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --body: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --mono: "Roboto Mono", SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Layout */
  --max-w: 1200px;
  --text-w: 720px;
  --radius: 2px;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.page-theme-home {
  --page-bg: var(--paper);
  --page-fg: var(--ink);
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--page-fg);
}
.page-theme-home-shell {
  min-height: 100vh;
  width: 100%;
  background: var(--page-bg, var(--paper));
  color: var(--page-fg, var(--ink));
  position: relative;
  isolation: isolate;
}
[id] { scroll-margin-top: 5rem; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── SKIP NAVIGATION (WCAG 2.4.1) ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 999;
  background: var(--aram-ink);
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: top 0.15s;
}
.skip-link:focus {
  top: 1rem;
}

/* ── WCAG 2.1 Visible Focus Styles ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--aram-rust);
  outline-offset: 2px;
}
:focus:not(:focus-visible) {
  outline: none;
}

/* ── TYPOGRAPHY SCALE (Neue Authority) ── */
.t-hero {
  font-family: var(--display);
  font-size: clamp(3rem, 6vw, 5.25rem);
  line-height: 1.06;
  letter-spacing: 0.02em;
  font-weight: 400;
  text-transform: uppercase;
}
.t-h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  font-weight: 400;
  text-transform: uppercase;
}
.t-h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.18;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.t-h3 {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.t-eye {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 500;
  color: var(--aram-ink);
}
.t-eye--amber { color: var(--aram-rust); }
.t-eye--muted { color: var(--aram-steel); }
.t-body { font-size: 1rem; line-height: 1.72; color: var(--slate); }
.t-small { font-size: 0.875rem; line-height: 1.65; color: var(--slate); }
.t-caption { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }
.t-mono { font-family: var(--mono); }

/* ── STATUTE BADGE ── */
.statute {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  background: var(--fog);
  border: 1px solid var(--rule);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius);
  white-space: nowrap;
}
.statute-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.statute-row .statute { font-size: 0.72rem; }

/* ── DIVIDER ── */
.divider {
  border: none;
  border-top: 1px solid var(--rule);
  max-width: var(--max-w);
  margin: 0 auto;
}
.divider--full { max-width: 100%; }

.evidence-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  margin: 2rem 0;
}
.evidence-divider::before,
.evidence-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* ── GATE MARKERS ── */
.gate-badge {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--rule);
  color: var(--aram-ink);
  background: var(--aram-light);
  border-radius: var(--radius);
}

/* ── NAV (light panel treatment — Neue Authority) ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 90;
  background: #F2F2F0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #D9D9D6;
  transition: box-shadow 0.2s;
  overflow: visible;
}
.site-nav.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  overflow: visible;
}
.nav-left { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.nav-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 6px;
  padding: 6px 12px;
  flex-shrink: 0;
}
.nav-logo-wrap--cool { background: #F0F1F3; }
.nav-logo-wrap img {
  height: 28px;
  width: auto;
  display: block;
}
.nav-logo { height: 40px; width: auto; display: block; opacity: 0.92; }
.nav-wordmark {
  font-family: var(--body);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--aram-chalk);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.nav-wordmark span { color: var(--aram-rust); }
.nav-badge {
  font-family: var(--mono);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.2rem 0.6rem;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  justify-content: flex-end;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(17,17,17,0.6);
  text-decoration: none;
  transition: color 0.15s;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav-links a:hover { color: rgba(17,17,17,0.9); }
.nav-links a.active { color: var(--aram-ink); font-weight: 600; }
.nav-cta {
  background: var(--aram-rust) !important;
  color: #fff !important;
  padding: 0.5rem 1.1rem !important;
  font-weight: 700 !important;
  font-size: 0.76rem !important;
  white-space: nowrap;
  letter-spacing: 0.04em;
  transition: background 0.15s, transform 0.15s !important;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.nav-cta:hover { background: #B84A22 !important; transform: translateY(-1px); }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0.25rem; }
.hamburger svg { display: block; width: 22px; height: 22px; color: rgba(17,17,17,0.6); }

/* ── MOBILE NAV ── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(29, 29, 29, 0.98);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.mobile-nav.open { display: flex; }
.mobile-nav-logo { margin-bottom: 2.5rem; }
.mobile-nav-logo img { height: 36px; opacity: 0.9; }
.mobile-nav a {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 2rem;
  transition: color 0.15s;
  width: 100%;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-nav a:hover { color: #fff; }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav .mobile-cta {
  margin-top: 1.5rem;
  background: var(--aram-rust);
  color: #fff !important;
  border-radius: var(--radius);
  font-weight: 700;
  border: none;
}
.mobile-close {
  position: absolute;
  top: 1.25rem; right: 1.5rem;
  background: none; border: none;
  color: rgba(255,255,255,0.6);
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s;
  border-radius: var(--radius);
  cursor: pointer;
}
.btn-primary {
  background: var(--aram-ink);
  color: #fff;
  font-size: 0.92rem;
  padding: 0.9rem 2rem;
  letter-spacing: 0.01em;
}
.btn-primary:hover {
  background: #333;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  font-size: 0.88rem;
  color: var(--slate);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  border-radius: 0;
  background: transparent;
}
.btn-secondary:hover { color: var(--aram-ink); border-color: var(--aram-ink); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--slate);
  font-size: 0.85rem;
  padding: 0.75rem 1.4rem;
}
.btn-ghost:hover {
  border-color: var(--aram-ink);
  color: var(--aram-ink);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.btn-amber, .btn-rust {
  background: var(--aram-rust);
  color: #fff;
  font-size: 0.92rem;
  padding: 0.9rem 2rem;
}
.btn-amber:hover, .btn-rust:hover {
  background: #B84A22;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.cta-group { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }

/* ── HOME HERO THEME HELPERS ── */
.hero-theme-home {
  background: var(--primary);
  position: relative;
  overflow: hidden;
}
.hero-theme-home__bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(27,42,74,0.4) 0%, transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(15,18,24,0) 0%, transparent 50%);
  background-size: cover;
}
.hero-theme-home__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.hero-theme-home__eyebrow {
  color: var(--amber-bright);
  letter-spacing: 0.2em;
}
.hero-theme-home__title {
  font-family: var(--heading);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  font-weight: 400;
  text-transform: uppercase;
  color: #fff;
}
.hero-theme-home__body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.6);
}
.hero-theme-home__caption {
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 2;
  color: rgba(255,255,255,0.3);
  border-left: 1px solid rgba(255,255,255,0.1);
  padding-left: 1rem;
}

/* ── SECTION LAYOUT ── */
.section { padding: 5.5rem 2rem; }
.section--sm { padding: 3.5rem 2rem; }
.section--dark { background: var(--dark); }
.section--fog { background: var(--fog); }
.section--surface { background: var(--surface); }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-header { margin-bottom: 3rem; }
.section-header .t-eye { display: block; margin-bottom: 0.75rem; }
.section-header .t-h2 { max-width: var(--text-w); }

/* ── CARD COMPONENTS ── */
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card--flat:hover { transform: none; box-shadow: none; }

/* ── STAT BIG ── */
.stat-big {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.stat-big__num {
  font-family: var(--mono);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1;
}
.stat-big__num--red { color: var(--red); }
.stat-big__num--amber { color: var(--amber); }
.stat-big__num--green { color: var(--green); }
.stat-big__label {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ── VERDICT BADGES ── */
.v-tag {
  font-family: var(--mono);
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  white-space: nowrap;
}
.v-tag--nd { background: var(--red-bg); color: var(--red); }
.v-tag--ind { background: var(--amber-bg); color: var(--amber); }
.v-tag--def { background: var(--green-bg); color: var(--green); }

/* ── FOOTER ── */
.site-footer {
  background: #F2F2F0;
  border-top: 1px solid #D9D9D6;
  padding: 4rem 2rem 2.5rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #D9D9D6;
  margin-bottom: 2rem;
}
.footer-brand {}
.footer-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 6px;
  padding: 8px 14px;
  margin-bottom: 1rem;
}
.footer-logo-wrap--steel { background: var(--aram-steel); }
.footer-logo-wrap img {
  height: 28px;
  width: auto;
  display: block;
}
.footer-logo { height: 38px; width: auto; max-width: 180px; object-fit: contain; opacity: 0.85; margin-bottom: 1rem; }
.footer-wordmark {
  font-family: var(--body);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--aram-chalk);
  text-decoration: none;
  letter-spacing: 0.01em;
  display: block;
  margin-bottom: 1rem;
  opacity: 0.85;
}
.footer-wordmark span { color: var(--aram-rust); }
.footer-tagline {
  font-size: 0.82rem;
  color: rgba(0,0,0,0.85);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  max-width: 280px;
}
.footer-statutes {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.footer-statutes span {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: rgba(0,0,0,0.7);
  background: rgba(0,0,0,0.05);
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
}
.footer-col-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(0,0,0,0.7);
  margin-bottom: 1rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
  font-size: 0.82rem;
  color: rgba(0,0,0,0.7);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: rgba(0,0,0,1); }
.footer-grid--quad {
  grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 1fr));
}
.footer-home-link {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-family: var(--display);
  font-size: clamp(1.65rem, 2vw, 2.1rem);
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.footer-home-link:hover {
  color: var(--aram-rust);
}
.footer-col--action {
  display: flex;
  flex-direction: column;
}
.footer-action-copy {
  font-size: 0.82rem;
  line-height: 1.7;
  color: rgba(0,0,0,0.78);
  margin-bottom: 1rem;
  max-width: 22rem;
}
.footer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.footer-action-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: rgba(0,0,0,0.74);
  border-bottom: 1px solid rgba(0,0,0,0.12);
  padding-bottom: 0.18rem;
}
.footer-action-link:hover {
  color: var(--aram-rust);
  border-bottom-color: var(--aram-rust);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: rgba(0,0,0,0.6);
  line-height: 1.7;
}
.footer-disclaimer {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: rgba(0,0,0,0.5);
  text-align: right;
}

.site-footer--compact {
  background: var(--dark);
  border-top: 1px solid var(--dark-border);
  padding: 0.75rem 2rem;
}
.site-footer--compact .footer-inner {
  max-width: var(--max-w);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.site-footer--compact .footer-grid,
.site-footer--compact .footer-bottom {
  display: contents;
}
.site-footer--compact .footer-brand,
.site-footer--compact .footer-col-label,
.site-footer--compact .footer-tagline,
.site-footer--compact .footer-statutes {
  display: none;
}
.site-footer--compact .footer-col {
  flex: 1;
}
.site-footer--compact .footer-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.45rem;
}
.site-footer--compact .footer-links li {
  margin: 0;
}
.site-footer--compact .footer-links li + li::before {
  content: '\00B7';
  color: rgba(245,244,240,0.4);
  margin-right: 0.45rem;
}
.site-footer--compact .footer-copy,
.site-footer--compact .footer-disclaimer,
.site-footer--compact .footer-links a {
  font-family: var(--mono);
  font-size: 0.62rem;
  line-height: 1.6;
  color: rgba(245,244,240,0.6);
}
.site-footer--compact .footer-copy {
  flex: 1;
  text-align: center;
  color: rgba(245,244,240,0.5);
}
.site-footer--compact .footer-disclaimer {
  flex: 1;
  text-align: right;
}
.site-footer--compact .footer-links a:hover {
  color: rgba(245,244,240,1);
}

/* ── PAGE SHELL CONTENT UTILITIES ── */
.page-shell-main {
  width: min(var(--max-w), calc(100% - 3rem));
  margin-left: auto;
  margin-right: auto;
}
.page-shell-main--wide {
  width: min(1280px, calc(100% - 3rem));
  margin-left: auto;
  margin-right: auto;
}
.page-shell-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.page-shell-kicker {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
@media (max-width: 600px) {
  .page-shell-main,
  .page-shell-main--wide {
    width: min(var(--max-w), calc(100% - 1.5rem));
  }
}

/* ── NAV HELPER LINE ── */
.nav-helper {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: rgba(17,17,17,0.35);
  letter-spacing: 0.06em;
  text-align: center;
  padding: 0.35rem 2rem;
  background: #F2F2F0;
  border-bottom: 1px solid #D9D9D6;
}

/* ── SCROLL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── RESPONSIVE ── */

/* iOS safe area support */
@supports (padding: env(safe-area-inset-bottom)) {
  .site-footer { padding-bottom: calc(2.5rem + env(safe-area-inset-bottom)); }
  .site-footer--compact { padding-bottom: calc(0.75rem + env(safe-area-inset-bottom)); }
  .mobile-nav { padding-bottom: env(safe-area-inset-bottom); }
  .site-nav .nav-inner { padding-left: max(2rem, env(safe-area-inset-left)); padding-right: max(2rem, env(safe-area-inset-right)); }
}

/* Tablet landscape / small desktop (max-width: 960px) */
@media (max-width: 960px) {
  .section { padding: 4rem 1.5rem; }
  .section--sm { padding: 2.5rem 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid--quad { grid-template-columns: 1fr 1fr; }
  .footer-grid--quad .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-disclaimer { text-align: center; }
  .site-footer--compact .footer-inner { flex-direction: column; text-align: center; }
  .site-footer--compact .footer-links { justify-content: center; }
  .site-footer--compact .footer-disclaimer { text-align: center; }
  .nav-links { display: none; }
  .nav-right-actions { margin-left: auto; }
  .nav-cta--persistent { display: inline-block; }
  .hamburger { display: block; }
}

/* Tablet portrait / iPad (max-width: 768px) */
@media (max-width: 768px) {
  :root { --max-w: 100%; }
  .section { padding: 3.5rem 1.25rem; }
  .section--sm { padding: 2rem 1.25rem; }
  .section-header { margin-bottom: 2rem; }
  .t-hero { font-size: clamp(2.4rem, 5.5vw, 3.8rem); }
  .t-h1 { font-size: clamp(2rem, 4vw, 3rem); }
  .t-h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
  .t-h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid--quad { grid-template-columns: 1fr 1fr; }
  .footer-tagline { max-width: 100%; }
  .footer-action-copy { max-width: 100%; }
  .site-footer { padding: 3rem 1.25rem 2rem; }
  /* Better touch targets */
  .nav-cta { padding: 0.6rem 1.2rem !important; font-size: 0.8rem !important; }
  .btn-primary { padding: 1rem 2rem; font-size: 0.95rem; }
  .btn-ghost { padding: 0.85rem 1.5rem; }
  .hamburger { padding: 0.5rem; }
  .hamburger svg { width: 26px; height: 26px; }
  /* Mobile nav improvements */
  .mobile-nav a { font-size: 1.2rem; padding: 1rem 2rem; min-height: 48px; display: flex; align-items: center; justify-content: center; }
  .mobile-nav .mobile-cta { padding: 1rem 2.5rem; font-size: 1rem; min-height: 52px; }
  .mobile-close { top: 1rem; right: 1.25rem; font-size: 2rem; min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; }
  .cta-group { gap: 1rem; }
  .stat-big__num { font-size: 2.25rem; }
}

/* Mobile (max-width: 600px) */
@media (max-width: 600px) {
  .section { padding: 2.5rem 1rem; }
  .section--sm { padding: 1.75rem 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .footer-grid--quad { grid-template-columns: 1fr; }
  .nav-inner { padding: 0.75rem 1rem; }
  .t-hero { font-size: 2.5rem; }
  .t-h2 { font-size: 1.4rem; }
  .nav-helper { font-size: 0.58rem; padding: 0.3rem 1rem; }
  .site-footer { padding: 2.5rem 1rem 1.5rem; }
  .footer-col-label { font-size: 0.55rem; margin-bottom: 0.75rem; }
  .footer-links a { font-size: 0.78rem; }
  .footer-action-link { width: 100%; }
  .footer-copy { font-size: 0.6rem; }
  .footer-disclaimer { font-size: 0.58rem; }
  .divider { margin-left: 1rem; margin-right: 1rem; }
  .evidence-divider { margin: 1.5rem 0; }
  /* Stack CTA buttons vertically */
  .cta-group { flex-direction: column; align-items: stretch; }
  .cta-group .btn { text-align: center; }
  .stat-big__num { font-size: 2rem; }
}

/* Small mobile (max-width: 380px) */
@media (max-width: 380px) {
  .section { padding: 2rem 0.75rem; }
  .nav-inner { padding: 0.65rem 0.75rem; }
  .nav-logo-wrap img { height: 24px; }
  .nav-logo-wrap { padding: 4px 8px; }
  .t-hero { font-size: 2rem; }
  .t-h2 { font-size: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid--quad { grid-template-columns: 1fr; }
  .site-footer { padding: 2rem 0.75rem 1.25rem; }
  .mobile-nav a { font-size: 1.05rem; }
}

/* ── PRINT STYLES ── */
@media print {
  .site-nav,
  .mobile-nav,
  .hamburger,
  .skip-link,
  .nav-helper { display: none !important; }
  .site-footer { border-top: 1px solid #ccc; padding: 1rem 0; }
  .footer-grid { display: none; }
  .footer-bottom { display: block; }
  .section { padding: 2rem 0; }
  body { font-size: 12pt; line-height: 1.5; color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
  .btn, .btn-primary, .btn-ghost, .btn-amber, .btn-rust, .nav-cta { display: none !important; }
  .hero-section, .hero-theme-home { background: #fff !important; color: #000 !important; }
  .hero-section *, .hero-theme-home * { color: #000 !important; }
  img { max-width: 100% !important; }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
  .card:hover { transform: none; box-shadow: none; }
  .btn-primary:hover { transform: none; }
  .btn-ghost:hover { transform: none; }
  .btn-amber:hover, .btn-rust:hover { transform: none; }
  .nav-cta:hover { transform: none; }
  /* Ensure minimum 44px touch targets (Apple HIG) */
  .nav-links a { min-height: 44px; display: inline-flex; align-items: center; }
  .footer-links a { display: inline-block; min-height: 44px; line-height: 44px; }
  .footer-links li { margin-bottom: 0; }
}

/* Prevent horizontal overflow globally */
html { overflow-x: hidden; }
body { overflow-x: hidden; }

/* ── SHARED SCROLL SCRIPT DATA ── */
