/* ============================================================
   ATC Brand Design System v3
   Premium light theme — Navy-first, restrained gold accents
   ============================================================ */

:root {
  /* Brand colors */
  --navy-deep: #112548;
  --navy-brand: #1B3A6B;
  --gold-brand: #CFAE64;
  --gold-rich: #A8893E;
  --charcoal: #2A2A2A;

  /* Light theme */
  --bg-main: #F8FAFC;
  --bg-white: #FFFFFF;
  --bg-soft: #F4F6F8;
  --text-primary: #2A2A2A;
  --text-secondary: #64748B;
  --text-tertiary: #94A3B8;
  --border-light: #E5E7EB;
  --divider: #F1F5F9;
  --success: #16A34A;
  --warning: #D97706;
  --error: #DC2626;

  /* Derived */
  --navy-tint: rgba(27, 58, 107, 0.04);
  --navy-tint-2: rgba(27, 58, 107, 0.07);
  --gold-tint: rgba(207, 174, 100, 0.08);
  --gold-line: rgba(207, 174, 100, 0.35);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(17, 37, 72, 0.04), 0 1px 2px rgba(17, 37, 72, 0.03);
  --shadow-card: 0 2px 8px rgba(17, 37, 72, 0.06);
  --shadow-md: 0 4px 16px rgba(17, 37, 72, 0.08);
  --shadow-lg: 0 12px 32px rgba(17, 37, 72, 0.10);
  --shadow-btn-hover: 0 6px 20px rgba(17, 37, 72, 0.12);

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Spacing */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-7: 56px;
  --space-8: 64px;

  /* Legacy aliases (used in HTML/JS) */
  --ink: var(--navy-deep);
  --navy: var(--navy-brand);
  --navy-2: var(--navy-brand);
  --navy-3: var(--navy-brand);
  --navy-4: var(--navy-deep);
  --gold: var(--gold-brand);
  --gold-2: var(--gold-brand);
  --gold-soft: var(--gold-brand);
  --gold-ink: var(--gold-rich);
  --ivory: var(--bg-white);
  --ivory-2: var(--bg-soft);
  --slate: var(--text-secondary);
  --slate-2: var(--text-primary);
  --line: var(--border-light);
  --line-dark: var(--border-light);
}

/* ============================================================
   Reset & Base
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--text-primary);
  background: var(--bg-main);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

/* ============================================================
   Layout Shell
   ============================================================ */

.shell {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

/* ============================================================
   Header — Navy Deep for brand authority
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 37, 72, 0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 24px rgba(7, 15, 30, 0.18);
}

.site-header .shell {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

/* ============================================================
   Brand Lockup
   ============================================================ */

.brand-lockup {
  gap: 20px;
  flex-wrap: wrap;
}

.brand-badges {
  gap: var(--space-1);
}

.brand-lockup,
.brand-badges,
.site-nav,
.hero-actions,
.mini-proof-row,
.trust-strip,
.footer-row,
.footer-links,
.resource-grid,
.chip-row,
.metric-row {
  display: flex;
  gap: var(--space-2);
}

.brand-lockup,
.brand-home,
.brand-badges,
.site-nav {
  align-items: center;
}

.brand-home {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 4px 0;
}

.brand-mark-shell {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.brand-mark {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-wording,
.footer-brand-meta {
  display: grid;
  gap: 4px;
}

.brand-wording {
  min-width: 0;
}

.brand-wordmark {
  width: clamp(200px, 20vw, 320px);
  height: auto;
  object-fit: contain;
  display: block;
  /* Gold brand color — higher contrast on dark navy header */
  filter: brightness(0) invert(1) sepia(1) saturate(140%) hue-rotate(6deg) brightness(108%);
}

.brand-role {
  color: var(--gold-brand);
  font: 700 0.66rem "Syne", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-support {
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.55;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 44px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(207, 174, 100, 0.15);
  border-radius: var(--radius-sm);
  box-shadow: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.cert-badge img {
  max-height: 32px;
  width: auto;
  object-fit: contain;
}

/* ============================================================
   Navigation
   ============================================================ */

.site-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  font: 600 0.78rem "Inter", sans-serif;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-sm);
  transition: color 160ms ease, background 160ms ease;
}

.nav-link:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: 600 0.84rem "Inter", sans-serif;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

/* Primary — Navy (on light bg) / Gold (in header on dark bg) */
.btn-gold {
  color: #FFFFFF;
  background: var(--navy-brand);
  border-color: var(--navy-brand);
  box-shadow: var(--shadow-card);
}

.btn-gold:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  box-shadow: var(--shadow-btn-hover);
}

/* Gold CTA in the dark header for contrast */
.site-header .btn-gold {
  background: var(--gold-brand);
  border-color: var(--gold-brand);
  color: var(--navy-deep);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(207, 174, 100, 0.25);
}

.site-header .btn-gold:hover {
  background: #DBBC74;
  border-color: #DBBC74;
  box-shadow: 0 6px 20px rgba(207, 174, 100, 0.35);
}

/* Secondary — Ghost outline */
.btn-ghost {
  color: var(--navy-brand);
  background: var(--bg-white);
  border-color: var(--navy-brand);
}

.btn-ghost:hover {
  background: var(--navy-tint);
}

/* Tertiary — Light card button */
.btn-light {
  color: var(--navy-brand);
  background: var(--bg-white);
  border-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-light:hover {
  border-color: var(--navy-brand);
  box-shadow: var(--shadow-card);
}

/* ============================================================
   Hero Section
   ============================================================ */

.hero {
  padding: var(--space-8) 0 var(--space-8);
  background: linear-gradient(180deg, #F0F4F8 0%, var(--bg-white) 100%);
  border-bottom: 1px solid var(--border-light);
}

.hero-grid,
.split-grid,
.contact-grid,
.double-grid {
  display: grid;
  gap: var(--space-3);
  align-items: stretch;
}

.hero-grid {
  grid-template-columns: 1.04fr 0.96fr;
}

.service-page-storm .hero-grid {
  grid-template-columns: 0.92fr 1.08fr;
}

.split-grid,
.contact-grid,
.double-grid {
  grid-template-columns: 1fr 1fr;
}

/* Hero Copy Card */
.hero-copy,
.hero-panel,
.section-card,
.section-card-dark,
.stage-card,
.metric-box,
.quote-card,
.resource-card,
.contact-card,
.form-card,
.lab-card,
.city-link-card,
.proof-photo-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero-copy {
  position: relative;
  padding: var(--space-6);
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.hero-copy::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold-brand), var(--gold-rich));
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto 36px 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
}

.hero-panel,
.lab-card {
  padding: var(--space-4);
  background: var(--navy-deep);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-lg);
  color: #FFFFFF;
}

.section-card-dark {
  padding: var(--space-4);
  background: var(--navy-deep);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-lg);
  color: #FFFFFF;
}

.hero-panel-game {
  display: grid;
  gap: 18px;
}

.game-preview-copy .hero-lead {
  max-width: none;
}

.game-preview {
  display: grid;
  gap: 16px;
}

.game-preview-toolbar,
.game-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.game-toggle {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.75);
  font: 600 0.72rem "Inter", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.game-toggle:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
}

.game-toggle.is-active {
  color: var(--navy-deep);
  background: var(--gold-brand);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(207, 174, 100, 0.3);
}

.game-preview-scene {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--space-2);
}

.impact-card {
  min-height: 138px;
  padding: 18px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease, background 180ms ease;
}

.impact-card.active {
  border-color: var(--gold-brand);
  box-shadow: 0 0 0 1px rgba(207, 174, 100, 0.2), 0 8px 24px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.impact-card.inactive {
  opacity: 0.45;
}

.impact-name {
  color: #FFFFFF;
  font: 700 1.3rem "Playfair Display", serif;
}

.impact-copy {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  font-size: 0.88rem;
}

.game-preview-feedback {
  padding: var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.game-preview-feedback .label {
  font: 700 0.66rem "Syne", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-brand);
}

.game-preview-feedback p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

/* ============================================================
   Panel Head
   ============================================================ */

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================================
   Eyebrows & Kickers
   ============================================================ */

.eyebrow,
.panel-kicker,
.card-kicker,
.section-kicker,
.meta-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 0.68rem "Syne", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(27, 58, 107, 0.12);
  background: rgba(27, 58, 107, 0.04);
  color: var(--navy-brand);
  font-size: 0.66rem;
}

.eyebrow-light {
  background: rgba(27, 58, 107, 0.04);
  border-color: rgba(27, 58, 107, 0.1);
  color: var(--navy-brand);
}

.panel-kicker,
.section-kicker {
  color: var(--gold-brand);
}

.card-kicker,
.meta-kicker {
  color: var(--gold-rich);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
  font: 600 0.66rem "Inter", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-brand);
  box-shadow: 0 0 8px rgba(207, 174, 100, 0.5);
}

/* ============================================================
   Typography
   ============================================================ */

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Playfair Display", serif;
  line-height: 1.1;
  color: var(--navy-deep);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  color: var(--navy-deep);
  margin-top: var(--space-3);
  max-width: 14ch;
  line-height: 1.08;
}

.hero-lead,
.body-copy,
.subcopy,
.card-copy,
.section-copy {
  line-height: 1.75;
}

.hero-lead {
  max-width: 60ch;
  margin: var(--space-3) 0 0;
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.72;
}

/* Hero lead inside dark panels */
.hero-panel .hero-lead,
.lab-card .hero-lead,
.section-card-dark .hero-lead {
  color: rgba(255, 255, 255, 0.7);
}

.hero-actions {
  margin-top: var(--space-4);
  flex-wrap: wrap;
}

/* ============================================================
   Mini Proof Row (Hero stats)
   ============================================================ */

.mini-proof-row,
.trust-strip,
.resource-grid,
.chip-row,
.metric-row {
  flex-wrap: wrap;
}

.mini-proof-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.mini-proof,
.trust-pill,
.proof-line,
.faq-item,
.issue-card,
.resource-card,
.quote-card,
.stage-card,
.metric-box,
.city-link-card,
.contact-card,
.form-card,
.section-card {
  border-radius: var(--radius-md);
}

.mini-proof {
  padding: var(--space-3) var(--space-2) var(--space-2);
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.mini-proof .label,
.metric-box .label {
  color: var(--gold-rich);
  font: 700 0.62rem "Syne", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.trust-pill .label,
.stage-card .index,
.issue-card .label,
.city-link-card .label,
.stack-index,
.journey-index,
.static-label {
  color: var(--gold-rich);
}

.mini-proof strong,
.metric-box strong {
  display: block;
  margin-top: 6px;
  font: 700 1.4rem "Playfair Display", serif;
  color: var(--navy-deep);
}

.mini-proof span,
.trust-pill span,
.proof-line span {
  display: block;
  margin-top: 6px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.86rem;
}

.metric-box span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  font-size: 0.86rem;
}

/* ============================================================
   Section Wrap — Light Content Area
   ============================================================ */

.section-wrap {
  background: var(--bg-main);
  color: var(--text-primary);
  padding-bottom: var(--space-8);
}

.section {
  padding: var(--space-8) 0;
}

/* Alternating section backgrounds for visual rhythm */
.section:nth-of-type(even) {
  background: var(--bg-white);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}

.section-tight {
  padding-top: var(--space-5);
}

.section:first-of-type {
  padding-top: var(--space-7);
}

/* ============================================================
   Section Head
   ============================================================ */

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.section-head > div {
  max-width: 660px;
}

.section-head h2 {
  color: var(--navy-deep);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  max-width: 16ch;
}

.section-head p {
  max-width: 48ch;
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.75;
  padding-top: 10px;
}

/* ============================================================
   Trust Strip
   ============================================================ */

.trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

/* ============================================================
   Cards — Light Theme
   ============================================================ */

.trust-pill,
.stage-card,
.issue-card,
.resource-card,
.quote-card,
.section-card,
.contact-card,
.form-card,
.city-link-card {
  padding: var(--space-4);
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
}

.trust-pill .value {
  display: block;
  margin-top: 8px;
  color: var(--navy-deep);
  font: 700 1.35rem "Playfair Display", serif;
}

.trust-pill span {
  color: var(--text-secondary);
}

/* ============================================================
   Grids
   ============================================================ */

.stage-grid,
.issue-grid,
.faq-grid,
.city-grid {
  display: grid;
  gap: 18px;
}

.stage-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.issue-grid,
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.faq-grid {
  grid-template-columns: repeat(2, 1fr);
}

.city-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* ============================================================
   Card Internals
   ============================================================ */

.stage-card,
.issue-card,
.resource-card,
.quote-card,
.faq-item,
.city-link-card {
  position: relative;
}

.stage-card,
.issue-card,
.resource-card,
.faq-item,
.city-link-card {
  display: flex;
  flex-direction: column;
}

/* Gold accent top line on cards */
.stage-card::before,
.issue-card::before,
.resource-card::before,
.city-link-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--navy-brand), var(--gold-brand), var(--navy-brand));
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  opacity: 0.7;
}

/* Card hover states */
.trust-pill,
.stage-card,
.issue-card,
.resource-card,
.faq-item,
.city-link-card,
.cluster-link,
.cert-badge {
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.trust-pill:hover,
.stage-card:hover,
.issue-card:hover,
.resource-card:hover,
.faq-item:hover,
.city-link-card:hover,
.cluster-link:hover,
.cert-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(27, 58, 107, 0.12);
}

/* Card typography */
.stage-card .index {
  font: 700 0.66rem "Syne", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stage-card h3,
.issue-card h3,
.resource-card h3,
.faq-item h3,
.city-link-card h3,
.section-card h3,
.contact-card h3,
.form-card h3 {
  margin-top: 14px;
  color: var(--navy-deep);
  font-size: 1.5rem;
  line-height: 1.15;
}

.stage-card p,
.issue-card p,
.resource-card p,
.faq-item p,
.city-link-card p,
.section-card p,
.contact-card p,
.form-card p {
  margin: 12px 0 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   Section Card Dark (Proof / Stats)
   ============================================================ */

.section-card-dark {
  padding: var(--space-4);
}

.section-card-dark h2,
.section-card-dark h3 {
  color: #FFFFFF;
  font-size: 1.9rem;
}

.section-card-dark p,
.section-card-dark li,
.section-card-dark span {
  color: rgba(255, 255, 255, 0.72);
}

/* ============================================================
   Signature & Proof Lines
   ============================================================ */

.signature-meta {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.signature-line {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  color: var(--navy-deep);
  font: 700 0.72rem "Syne", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.proof-line {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.proof-line .label {
  color: var(--gold-brand);
  font: 700 0.62rem "Syne", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.proof-line b {
  justify-self: end;
  font: 700 1.35rem "Playfair Display", serif;
  color: #FFFFFF;
}

/* ============================================================
   Metric Row (inside dark panels)
   ============================================================ */

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.metric-box {
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
}

.metric-box strong {
  color: #FFFFFF;
  font-size: 1.75rem;
}

.proof-photo-card {
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.proof-photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ============================================================
   Chips
   ============================================================ */

.chip-row {
  margin-top: var(--space-3);
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--navy-tint);
  border: 1px solid var(--border-light);
  color: var(--navy-brand);
  font: 600 0.7rem "Inter", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Dark panel chips */
.hero-panel .chip,
.lab-card .chip,
.section-card-dark .chip {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.78);
}

/* ============================================================
   City Link Cards
   ============================================================ */

.city-link-card {
  display: block;
}

.city-link-card .label {
  color: var(--gold-rich);
  font: 700 0.62rem "Syne", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ============================================================
   Cluster Links
   ============================================================ */

.cluster-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.cluster-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-white);
  color: var(--navy-brand);
  font: 600 0.78rem "Inter", sans-serif;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
}

.cluster-link:hover {
  border-color: var(--navy-brand);
  box-shadow: var(--shadow-card);
}

/* ============================================================
   Quotes
   ============================================================ */

.quote-card blockquote {
  margin: 14px 0 0;
  color: var(--navy-deep);
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  line-height: 1.22;
}

.quote-card footer {
  margin-top: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================================
   Resource & Section Lists
   ============================================================ */

.resource-list,
.section-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.resource-list li,
.section-list li {
  margin-bottom: 8px;
}

/* ============================================================
   FAQ
   ============================================================ */

.faq-item {
  padding: var(--space-4);
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
}

.faq-item .label {
  color: var(--gold-rich);
  font: 700 0.62rem "Syne", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.resource-card .chip-row {
  margin-top: auto;
  padding-top: 22px;
}

/* ============================================================
   Lab Card
   ============================================================ */

.lab-card {
  position: relative;
  padding: var(--space-4);
}

.lab-card h2 {
  color: #FFFFFF;
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.lab-cell {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--gold-brand);
  font: 700 0.72rem "Syne", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}

.lab-embed-slot {
  margin-top: 18px;
  min-height: 200px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(207, 174, 100, 0.3);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

/* ============================================================
   Display Titles
   ============================================================ */

.panel-display-title,
.section-display-title {
  margin-top: var(--space-3);
}

.panel-display-title {
  color: #FFFFFF;
  font-size: clamp(1.75rem, 2.5vw, 2.4rem);
  max-width: 14ch;
  line-height: 1.12;
}

.section-display-title {
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  line-height: 1.12;
}

.section-display-title-dark {
  color: var(--navy-deep);
}

.panel-note {
  margin-top: var(--space-3);
}

.panel-note-tight {
  margin-top: var(--space-2);
}

/* ============================================================
   Journey Rail
   ============================================================ */

.journey-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.journey-step {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-white);
  box-shadow: var(--shadow-card);
}

.journey-step-head {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.journey-index {
  font: 700 0.72rem "Syne", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.journey-step h3,
.stack-copy h3 {
  color: var(--navy-deep);
  font-size: 1.3rem;
}

.journey-step p {
  margin: var(--space-2) 0 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   Decision Grid
   ============================================================ */

.decision-grid {
  align-items: start;
}

.decision-card {
  position: relative;
}

.decision-card-accent {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
}

/* ============================================================
   Stack List
   ============================================================ */

.stack-list {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.stack-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-soft);
}

.stack-index {
  min-width: 48px;
  font: 700 0.72rem "Syne", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stack-copy p {
  margin: var(--space-1) 0 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   Forms
   ============================================================ */

.form-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-top: var(--space-3);
}

.form-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--navy-tint);
  border: 1px solid var(--border-light);
  color: var(--navy-brand);
  font: 600 0.72rem "Inter", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-list {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.contact-list a {
  color: var(--navy-brand);
}

/* Dark contact card */
.contact-card.contact-card-dark {
  background: var(--navy-deep);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-lg);
}

.contact-card.contact-card-dark a {
  color: var(--gold-brand);
}

.contact-card.contact-card-dark h2,
.contact-card.contact-card-dark h3 {
  color: #FFFFFF;
}

.contact-card.contact-card-dark p {
  color: rgba(255, 255, 255, 0.7);
}

/* Dark form card */
.form-card.form-card-dark {
  background: var(--navy-deep);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
}

.form-card.form-card-dark h2,
.form-card.form-card-dark h3 {
  color: #FFFFFF;
}

.form-card.form-card-dark p {
  color: rgba(255, 255, 255, 0.7);
}

.form-intro {
  margin: var(--space-2) 0 0;
  color: var(--text-secondary);
  line-height: 1.7;
}

.form-card.form-card-dark .form-intro {
  color: rgba(255, 255, 255, 0.68);
}

.form-grid {
  display: grid;
  gap: var(--space-3);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.form-group {
  margin: 0;
  padding: var(--space-3);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  display: grid;
  gap: var(--space-2);
}

.form-group legend {
  padding: 0 var(--space-1);
  color: var(--gold-rich);
  font: 700 0.72rem "Syne", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-secondary);
  font: 600 0.78rem "Inter", sans-serif;
  letter-spacing: 0.02em;
  text-transform: none;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-white);
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.45;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input::placeholder,
select::placeholder,
textarea::placeholder {
  color: var(--text-tertiary);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--navy-brand);
  box-shadow: 0 0 0 3px rgba(27, 58, 107, 0.12);
}

button:focus-visible,
a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(27, 58, 107, 0.18);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--error);
  background: #FEF2F2;
}

.form-alert {
  margin-top: var(--space-2);
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(220, 38, 38, 0.2);
  background: #FEF2F2;
  color: #991B1B;
  line-height: 1.6;
  font-size: 0.9rem;
}

.form-static-field {
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-soft);
}

.form-static-field strong {
  display: block;
  margin-top: var(--space-1);
  color: var(--navy-deep);
  font: 700 1.2rem "Playfair Display", serif;
}

.form-static-field span {
  display: block;
  margin-top: var(--space-1);
  color: var(--text-secondary);
  line-height: 1.65;
}

.form-submit-block {
  display: grid;
  gap: var(--space-2);
}

.form-assurance {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 0.9rem;
}

.form-card.form-card-dark input,
.form-card.form-card-dark select,
.form-card.form-card-dark textarea {
  background: var(--bg-white);
  border-color: var(--border-light);
  color: var(--text-primary);
}

.form-note {
  margin-top: 0;
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--text-tertiary);
}

.form-card.form-card-dark .form-note {
  color: rgba(255, 255, 255, 0.5);
}

.form-note a {
  color: inherit;
  text-decoration: underline;
}

.submit {
  width: 100%;
  min-height: 54px;
  border: none;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 20px rgba(17, 37, 72, 0.18);
}

.submit:hover {
  box-shadow: 0 8px 28px rgba(17, 37, 72, 0.24);
}

.submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.form-success {
  display: none;
  margin-top: 20px;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid rgba(22, 163, 74, 0.2);
  background: #F0FDF4;
  color: var(--text-primary);
}

.form-success .card-kicker {
  color: var(--success);
}

.form-success h3 {
  color: var(--navy-deep);
}

.form-success p {
  color: var(--text-secondary);
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  padding: var(--space-7) 0 var(--space-4);
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.8);
  border-top: 3px solid var(--gold-brand);
}

.site-footer .shell {
  display: grid;
  gap: var(--space-3);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.72fr;
  gap: var(--space-3);
}

.footer-card {
  padding: var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  max-width: none;
}

.brand-home-footer {
  min-height: auto;
  padding: 0;
}

/* Footer brand mark override for dark bg */
.site-footer .brand-mark-shell {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.site-footer .brand-role {
  color: var(--gold-brand);
}

.footer-desc {
  max-width: 380px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  font-size: 0.9rem;
}

.footer-license {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 12px;
  border: 1px solid rgba(207, 174, 100, 0.2);
  border-radius: var(--radius-xs);
  color: var(--gold-brand);
  font: 600 0.62rem "Inter", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.site-footer .cert-badge {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.footer-links {
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links a {
  font: 500 0.82rem "Inter", sans-serif;
  letter-spacing: 0.01em;
  transition: color 160ms ease;
}

.footer-links a:hover {
  color: var(--gold-brand);
}

.footer-nav-title {
  color: var(--gold-brand);
  font: 700 0.68rem "Syne", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-nav-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.footer-nav-list a {
  color: rgba(255, 255, 255, 0.6);
  font: 500 0.86rem "Inter", sans-serif;
  transition: color 160ms ease;
}

.footer-nav-list a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-copy {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.78rem;
}

/* ============================================================
   Cookie Banner
   ============================================================ */

.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  max-width: 520px;
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  display: none;
  color: var(--text-primary);
}

.cookie.show {
  display: block;
}

.cookie .eyebrow {
  background: var(--navy-tint);
  border-color: var(--border-light);
  color: var(--navy-brand);
}

.cookie p {
  margin: 12px 0 0;
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 0.9rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.cookie-actions button {
  min-height: 40px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: 600 0.78rem "Inter", sans-serif;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.cookie .accept {
  background: var(--navy-brand);
  color: #FFFFFF;
  border-color: var(--navy-brand);
}

.cookie .accept:hover {
  background: var(--navy-deep);
}

.cookie .decline {
  background: var(--bg-soft);
  color: var(--text-secondary);
  border-color: var(--border-light);
}

.cookie .decline:hover {
  background: var(--border-light);
}

.cookie .footer-links {
  color: var(--text-tertiary);
  margin-top: 14px;
}

.cookie .footer-links a {
  color: var(--text-tertiary);
  font-size: 0.78rem;
}

/* ============================================================
   Policy Pages
   ============================================================ */

.policy-page {
  background: var(--bg-main);
}

.policy-hero {
  padding: var(--space-7) 0 var(--space-5);
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
}

.policy-wrap {
  max-width: 920px;
}

.policy-card {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
}

.policy-card h2 {
  margin-top: 24px;
  color: var(--navy-deep);
  font-size: 1.6rem;
}

.policy-card p,
.policy-card li {
  color: var(--text-secondary);
  line-height: 1.8;
}

.policy-card ul {
  padding-left: 18px;
}

.policy-card code {
  font-family: "Fragment Mono", monospace;
  font-size: 0.9em;
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}

/* ============================================================
   Utilities
   ============================================================ */

.hidden {
  display: none !important;
}

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

/* ============================================================
   Responsive — Tablet
   ============================================================ */

@media (max-width: 1100px) {
  .hero-grid,
  .split-grid,
  .contact-grid,
  .double-grid,
  .stage-grid,
  .issue-grid,
  .resource-grid,
  .trust-strip,
  .faq-grid,
  .journey-rail {
    grid-template-columns: 1fr 1fr;
  }

  .game-preview-scene {
    grid-template-columns: 1fr 1fr;
  }

  .impact-roof {
    grid-column: 1 / -1;
  }

  .decision-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Responsive — Mobile
   ============================================================ */

@media (max-width: 820px) {
  .site-header .shell,
  .section-head,
  .footer-top,
  .footer-bottom {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header .shell {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .site-nav,
  .brand-badges {
    flex-wrap: wrap;
  }

  .brand-lockup {
    width: 100%;
  }

  .service-page-storm .hero-panel-game {
    order: -1;
  }

  .hero-copy,
  .hero-panel,
  .section-card,
  .section-card-dark,
  .stage-card,
  .resource-card,
  .quote-card,
  .contact-card,
  .form-card,
  .policy-card,
  .lab-card {
    padding: var(--space-3);
  }

  .hero-grid,
  .split-grid,
  .contact-grid,
  .double-grid,
  .stage-grid,
  .issue-grid,
  .resource-grid,
  .city-grid,
  .faq-grid,
  .trust-strip,
  .metric-row,
  .mini-proof-row,
  .form-row,
  .game-preview-scene {
    grid-template-columns: 1fr;
  }

  .game-preview-actions,
  .game-preview-toolbar {
    width: 100%;
  }

  .game-preview-actions .btn,
  .game-preview-toolbar .game-toggle {
    width: 100%;
  }

  .brand-home,
  .footer-brand {
    width: 100%;
    max-width: 100%;
  }

  .brand-mark-shell {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .brand-wordmark {
    width: min(100%, 240px);
  }

  .proof-line {
    grid-template-columns: 1fr;
  }

  .proof-line b {
    justify-self: start;
  }

  .stack-item {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: var(--space-5) 0;
  }

  .lab-grid {
    grid-template-columns: 1fr;
  }

  .journey-rail {
    grid-template-columns: 1fr;
  }
}
