:root {
  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-heavy: 700;
  --type-h1-size: clamp(40px, 7vw, 78px);
  --type-h2-size: clamp(30px, 4vw, 44px);
  --type-h3-size: clamp(24px, 3.2vw, 34px);
  --type-body-size: 16px;
  --type-body-large-size: clamp(18px, 2.1vw, 24px);
  --type-small-size: 12px;
  --line-h1: 1.06;
  --line-h2: 1.12;
  --line-h3: 1.2;
  --line-body: 1.6;
  --line-small: 1.4;
  --torch: #D4750B;
  --torch-glow: #F5A623;
  --torch-soft: rgba(212, 117, 11, 0.08);
  --ink: #1A1714;
  --paper: #FAF7F2;
  --paper-aged: #F0EBE1;
  --rule: #C9C1B3;
  --rule-light: #E2DDD4;
  --text: #2C2824;
  --text-primary: #111827;
  --text-secondary: #6B6359;
  --text-tertiary: #94897C;
  --brand-primary: #E26313;
  --positive: #2D6A4F;
  --negative: #9B2C2C;
  --terminal-bg: #1C1917;
  --terminal-text: #E7E0D6;
  --map-visibility: 0;
  --bottom-wash: 0;
  --section-heading-size: var(--type-h2-size);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  overscroll-behavior: none;
}

body {
  font-family: var(--font-body);
  font-size: var(--type-body-size);
  font-weight: var(--weight-regular);
  line-height: var(--line-body);
  background: var(--paper);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

body,
p,
a,
span,
li,
small,
label,
input,
textarea,
button {
  font-family: var(--font-body);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 {
  font-size: var(--type-h1-size);
  font-weight: var(--weight-heavy);
  line-height: var(--line-h1);
}

h2,
h3 {
  font-weight: var(--weight-medium);
}

h2 {
  font-size: var(--type-h2-size);
  line-height: var(--line-h2);
}

h3 {
  font-size: var(--type-h3-size);
  line-height: var(--line-h3);
}

p {
  font-family: var(--font-body);
  font-size: var(--type-body-size);
  font-weight: var(--weight-regular);
  line-height: var(--line-body);
}

.site-map-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 0;
  opacity: var(--map-visibility, 0);
  transition: opacity 0.45s ease;
}

.site-map-bg .mapboxgl-canvas {
  filter: brightness(0.9) contrast(1.24) saturate(1.15);
  transition: filter 0.45s ease;
}

.site-map-scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(244, 238, 228, var(--scrim-alpha, 0.72));
  opacity: var(--map-visibility, 0);
  transition: opacity 0.45s ease;
}


.site-map-legend {
  position: fixed;
  left: 14px;
  bottom: 14px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(201, 193, 179, 0.75);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 6px 18px rgba(26, 23, 20, 0.12);
  max-width: 260px;
  font-size: var(--type-small-size);
  line-height: var(--line-small);
  color: var(--text-secondary);
  z-index: 14;
  pointer-events: none;
  opacity: var(--map-visibility, 0);
  transition: opacity 0.35s ease;
}

/* ── Choropleth scene legend (fixed, right side) ── */
.map-scene-legend {
  position: fixed;
  right: 32px;
  bottom: 36px;
  z-index: 16;
  background: rgba(255, 252, 247, 0.93);
  border: 1px solid rgba(201, 193, 179, 0.6);
  border-radius: 10px;
  padding: 14px 18px 12px;
  box-shadow: 0 4px 14px rgba(26, 23, 20, 0.1);
  backdrop-filter: blur(6px);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  min-width: 220px;
  max-width: 260px;
}

.map-scene-legend.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.map-scene-legend-label {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: var(--weight-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.map-scene-legend-bar {
  height: 8px;
  border-radius: 4px;
  width: 100%;
  margin-bottom: 6px;
}

.map-scene-legend-range {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.2;
}

.map-scene-legend-custom {
  display: none;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.legend-dot-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1.5px solid rgba(42, 23, 11, 0.3);
}

.legend-note {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  font-style: italic;
}

.site-data-rail {
  position: fixed;
  right: 18px;
  top: 88px;
  width: min(360px, 31vw);
  z-index: 15;
  opacity: 0;
  transform: translateX(14px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.site-data-rail.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.site-data-rail-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(121, 82, 35, 0.92);
  margin-bottom: 6px;
}

.site-data-rail-title {
  font-size: clamp(19px, 1.8vw, 24px);
  margin-bottom: 12px;
  color: #1f1711;
}

.site-data-rail-list {
  display: grid;
  gap: 8px;
}

.site-data-scene-card {
  background: rgba(253, 250, 243, 0.88);
  border: 1px solid rgba(194, 176, 151, 0.72);
  box-shadow: 0 8px 20px rgba(26, 23, 20, 0.11);
  border-radius: 12px;
  padding: 10px 12px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-data-scene-card.is-active {
  background: rgba(255, 251, 242, 0.96);
  border-color: rgba(201, 121, 38, 0.75);
  transform: translateX(-3px);
}

.scene-card-kicker {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: #8d6f51;
  margin-bottom: 2px;
  line-height: 1.3;
}

.site-data-scene-card h4 {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.2;
  color: #241a12;
  margin-bottom: 2px;
}

.site-data-scene-card p {
  font-size: 13px;
  line-height: 1.35;
  color: #5f4d3d;
}

.site-data-scene-card span {
  font-weight: var(--weight-medium);
  color: #2b1d10;
}

main {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

main * {
  pointer-events: auto;
}

.top-bar,
.footer {
  position: relative;
  z-index: 2;
}

/* ═══════════════════════════════════════════
   TOP BAR
   ═══════════════════════════════════════════ */

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s, box-shadow 0.3s;
}

.top-bar.scrolled {
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--rule-light);
}

.top-bar .logo {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  text-decoration: none;
}

.top-bar .logo .logo-real {
  color: var(--text-primary);
}

.top-bar .logo .logo-torch {
  color: var(--brand-primary);
}

.top-bar nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.top-bar nav a {
  font-size: 15px;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.top-bar nav a:hover { color: var(--ink); }

.top-bar .nav-cta {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: var(--weight-medium);
  color: var(--paper) !important;
  background: var(--ink);
  padding: 10px 24px;
  transition: background 0.25s;
}

.top-bar .nav-cta:hover { background: var(--torch); }

/* ═══════════════════════════════════════════
   BEAT 1: HERO
   ═══════════════════════════════════════════ */

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  gap: 34px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 132px 32px 72px 48px;
  position: relative;
}

.hero-copy {
  max-width: 920px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.15vw, 16px);
  font-weight: var(--weight-medium);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--torch);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: var(--type-h1-size);
  font-weight: var(--weight-heavy);
  line-height: var(--line-h1);
  margin-bottom: 20px;
  max-width: 900px;
}

.hero-subhead {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.4;
  color: #1f1a15;
  font-weight: var(--weight-medium, 500);
  max-width: 860px;
  letter-spacing: 0.01em;
}

.hero-subhead-note {
  font-family: var(--font-body);
}

.hero-subhead--bold {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: var(--weight-bold, 700);
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.hero-query-panel {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(201, 193, 179, 0.82);
  box-shadow: 0 16px 42px rgba(26, 23, 20, 0.13);
  backdrop-filter: blur(5px);
  border-radius: 16px;
  padding: 18px;
  max-width: 980px;
}

.hero-query-label {
  font-family: var(--font-body);
  color: #8f6f4f;
  font-size: var(--type-small-size);
  font-weight: var(--weight-medium);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-query-box {
  font-family: var(--font-body);
  background: rgba(250, 247, 242, 0.92);
  border: 1px solid rgba(212, 117, 11, 0.24);
  border-radius: 12px;
  height: 168px;
  min-height: 168px;
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  overflow: hidden;
}

.hero-query-prefix {
  color: #a15d13;
  font-size: 15px;
  font-weight: var(--weight-medium);
  line-height: 1.45;
  flex-shrink: 0;
}

.hero-query-content {
  display: inline;
  flex: 1;
  color: #27221c;
  font-size: clamp(18px, 2.4vw, 27px);
  line-height: 1.45;
}

.hero-query-text {
  font: inherit;
  color: inherit;
  line-height: inherit;
  min-height: 1.45em;
}

.hero-query-text::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 0;
  vertical-align: -0.1em;
  background: var(--torch-glow);
  animation: blink 0.9s steps(1) infinite;
}

.hero-query-hint {
  margin-top: 12px;
  color: rgba(107, 99, 89, 0.88);
  font-size: var(--type-small-size);
  letter-spacing: 0.04em;
}

.scroll-hint {
  font-size: var(--type-small-size);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  opacity: 0;
  animation: fadeUp 0.6s ease 0.8s forwards;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════
   BEAT 2: DATA BACKBONE
   ═══════════════════════════════════════════ */

.data-backbone {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 32px 96px 48px;
}

.data-heading {
  text-align: left;
  margin-bottom: 34px;
  max-width: min(48vw, 640px);
  margin-left: 0;
  margin-right: 0;
}

.data-eyebrow {
  font-family: var(--font-body);
  font-size: var(--type-small-size);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--torch);
  margin-bottom: 12px;
  font-weight: var(--weight-medium);
}

.features-heading h3,
.glossary-heading h2 {
  font-size: var(--section-heading-size);
  font-weight: var(--weight-medium);
  line-height: var(--line-h2);
}

.data-heading h2 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: var(--weight-medium);
  line-height: 1.08;
  margin-bottom: 14px;
}

.data-heading p {
  color: var(--text-secondary);
  font-size: var(--type-body-large-size);
  line-height: var(--line-body);
  max-width: 100%;
  margin: 0;
}

.geo-story-list {
  display: grid;
  gap: 32vh;
  max-width: min(38vw, 560px);
  margin: 0;
}

.geo-story-card {
  position: relative;
  border: 1px solid rgba(201, 193, 179, 0.88);
  background: rgba(252, 248, 241, 0.96);
  border-radius: 6px;
  padding: 24px;
  min-height: 280px;
  opacity: var(--card-visibility, 1);
  transform: translateY(calc((1 - var(--card-visibility, 1)) * 8px));
  box-shadow: 0 6px 16px rgba(26, 23, 20, 0.07);
  transition: opacity 0.45s ease, transform 0.45s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.geo-story-card.is-focused {
  border-color: rgba(212, 117, 11, 0.28);
  box-shadow: 0 10px 24px rgba(26, 23, 20, 0.12);
  background: rgba(255, 251, 245, 0.98);
}

.geo-story-card:hover {
  border-color: rgba(212, 117, 11, 0.32);
  box-shadow: 0 8px 20px rgba(26, 23, 20, 0.1);
  background: rgba(255, 251, 245, 0.97);
}

.geo-story-step {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8e6f50;
  margin-bottom: 10px;
}

.geo-story-card h3 {
  font-size: clamp(23px, 2.4vw, 30px);
  line-height: var(--line-h3);
  font-weight: var(--weight-medium);
  margin-bottom: 12px;
}

.geo-story-dataset {
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6f5538;
  margin-bottom: 14px;
}

.geo-story-card p {
  font-size: 16px;
  color: #5f564b;
  line-height: var(--line-body);
  margin-bottom: 10px;
}

.geo-story-card .geo-story-step {
  margin-bottom: 6px;
}

.geo-story-answer {
  color: #3f352c;
}

.card-atlas-prompt {
  margin-top: 14px;
  padding: 12px 15px;
  background: rgba(212, 117, 11, 0.06);
  border-left: 2px solid rgba(212, 117, 11, 0.35);
  border-radius: 0 4px 4px 0;
}

.card-prompt-prefix {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--torch);
  font-weight: var(--weight-medium);
  display: block;
  margin-bottom: 4px;
}

.card-prompt-text {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
}

.card-brief-link {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7d460d;
  text-decoration: none;
  font-weight: var(--weight-medium);
}

.card-brief-link:hover {
  color: #5e3409;
}

/* ── Find It · Macro — expanded brief panel ── */
.geo-story-card--macro {
  min-height: auto;
  max-width: min(48vw, 640px);
  padding: 26px 26px 22px;
}

.macro-headline {
  font-size: clamp(24px, 2.6vw, 34px) !important;
  line-height: 1.2 !important;
  margin-bottom: 20px !important;
  color: var(--ink);
}

.macro-query-box {
  background: rgba(250, 247, 242, 0.92);
  border: 1px solid rgba(212, 117, 11, 0.24);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.macro-query-prefix {
  color: #a15d13;
  font-size: 14px;
  font-weight: var(--weight-medium);
  line-height: 1.45;
  flex-shrink: 0;
}

.macro-query-text {
  font-family: var(--font-body);
  color: #27221c;
  font-size: clamp(16px, 1.8vw, 21px);
  line-height: 1.45;
  flex: 1;
}

.macro-brief-output {
  margin-top: 14px;
  border: 1px solid rgba(212, 117, 11, 0.22);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 251, 244, 0.98), rgba(250, 245, 235, 0.96));
  overflow: hidden;
}

.macro-brief-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(201, 193, 179, 0.45);
  background: rgba(212, 117, 11, 0.04);
}

.macro-brief-badge {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: var(--weight-heavy);
  color: var(--paper);
  background: var(--torch);
  padding: 2px 8px;
  border-radius: 3px;
  line-height: 1.4;
}

.macro-brief-title {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: var(--weight-medium);
  color: var(--ink);
  line-height: 1.2;
}

.macro-brief-body {
  padding: 14px 14px 12px;
}

.macro-brief-scope {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 14px !important;
}

.macro-brief-scope strong {
  color: var(--text);
  font-weight: var(--weight-medium);
}

.macro-brief-deliverables {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.macro-deliverable {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(212, 117, 11, 0.04);
  border-radius: 6px;
  border: 1px solid rgba(201, 193, 179, 0.3);
}

.macro-deliverable-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--torch);
  display: flex;
  align-items: center;
  justify-content: center;
}

.macro-deliverable-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.macro-deliverable-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.macro-deliverable-text strong {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: var(--weight-medium);
  color: var(--ink);
  line-height: 1.3;
}

.macro-deliverable-text span {
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-secondary);
}

.macro-brief-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 14px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 12px;
  font-weight: var(--weight-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.25s ease;
}

.macro-brief-cta:hover {
  background: var(--torch);
}

.cycle-brief-showcase {
  scroll-margin-top: 140px;
  margin-top: 32vh;
  margin-bottom: clamp(96px, 14vh, 180px);
  padding: clamp(22px, 2.6vw, 34px);
  border: 1px solid rgba(201, 193, 179, 0.92);
  border-radius: 10px;
  background: rgba(255, 251, 245, 0.96);
  box-shadow: 0 10px 28px rgba(26, 23, 20, 0.09);
}

.js .cycle-brief-showcase.reveal {
  --brief-enter: 0;
  opacity: calc(var(--card-visibility, 1) * var(--brief-enter));
  transform: translateY(calc((1 - var(--brief-enter)) * 16px + (1 - var(--card-visibility, 1)) * 8px));
  transition: opacity 0.55s ease, transform 0.55s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.js .cycle-brief-showcase.reveal.visible {
  --brief-enter: 1;
  opacity: calc(var(--card-visibility, 1) * var(--brief-enter));
  transform: translateY(calc((1 - var(--brief-enter)) * 16px + (1 - var(--card-visibility, 1)) * 8px));
}

.cycle-brief-showcase.is-focused {
  border-color: rgba(212, 117, 11, 0.28);
  box-shadow: 0 12px 26px rgba(26, 23, 20, 0.12);
  background: rgba(255, 252, 246, 0.98);
}

.cycle-brief-eyebrow {
  font-size: 13px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #8e6f50;
  margin-bottom: 8px;
}

.cycle-brief-showcase h3 {
  font-size: clamp(28px, 3.3vw, 44px);
  line-height: 1.12;
  margin-bottom: 10px;
}

.cycle-brief-subhead {
  font-size: clamp(16px, 1.6vw, 21px);
  color: var(--text-secondary);
  max-width: 820px;
  margin-bottom: 20px;
}

.cycle-brief-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.cycle-brief-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  border: 1px solid rgba(201, 193, 179, 0.84);
  border-radius: 8px;
  background: rgba(250, 246, 239, 0.98);
  padding: 16px 16px 14px;
  box-shadow: 0 8px 20px rgba(26, 23, 20, 0.06);
  transition: transform 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease, background 0.26s ease, opacity 0.5s ease;
}

.cycle-brief-phase {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--torch);
  font-weight: var(--weight-medium);
}

.cycle-brief-card h4 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.18;
  color: var(--ink);
  font-weight: var(--weight-medium);
}

.cycle-brief-question {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-top: 2px;
  flex: 1;
}

.cycle-brief-link {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7d460d;
  font-weight: var(--weight-medium);
}

.cycle-brief-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 117, 11, 0.42);
  box-shadow: 0 12px 24px rgba(26, 23, 20, 0.11);
  background: rgba(255, 250, 243, 0.99);
}

.js .cycle-brief-showcase .cycle-brief-card {
  opacity: 0;
  transform: translateY(14px);
}

.js .cycle-brief-showcase.visible .cycle-brief-card {
  opacity: 1;
  transform: translateY(0);
}

.js .cycle-brief-showcase.visible .cycle-brief-card:nth-child(1) { transition-delay: 70ms; }
.js .cycle-brief-showcase.visible .cycle-brief-card:nth-child(2) { transition-delay: 150ms; }
.js .cycle-brief-showcase.visible .cycle-brief-card:nth-child(3) { transition-delay: 230ms; }

/* Map hover tooltip */
.map-tooltip {
  position: fixed;
  z-index: 9999;
  background: rgba(255, 251, 245, 0.97);
  border: 1px solid rgba(212, 117, 11, 0.28);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  padding: 18px 22px;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(26, 23, 20, 0.12);
  pointer-events: none;
  min-width: 260px;
  max-width: 380px;
}

.map-tooltip strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.01em;
  display: block;
  margin-bottom: 2px;
}

.map-tooltip .tt-rank {
  display: block;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--torch);
  font-weight: var(--weight-medium);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule-light);
}

.map-tooltip .tt-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 3px 0;
}

.map-tooltip .tt-label {
  color: var(--text-secondary);
  font-size: 13px;
  white-space: nowrap;
}

.map-tooltip .tt-val {
  font-weight: var(--weight-medium);
  font-size: 15px;
  text-align: right;
  white-space: nowrap;
}

.map-tooltip .tt-growth {
  font-size: 12px;
  min-width: 52px;
  text-align: right;
  white-space: nowrap;
  color: var(--positive);
}

.map-tooltip .tt-chart-wrap {
  margin-top: 10px;
  border-top: 1px solid var(--rule-light);
  padding-top: 8px;
  width: 260px;
  height: 120px;
}

.map-story-legend-title {
  display: block;
  color: var(--ink);
  font-weight: var(--weight-medium);
  margin-bottom: 2px;
}

/* ═══════════════════════════════════════════
   BEAT 3: FEATURES — Animated conversations
   ═══════════════════════════════════════════ */

.features {
  padding: 40px 32px 80px;
  max-width: 960px;
  margin: 0 auto;
}

.features-heading {
  text-align: center;
  margin-bottom: 64px;
}

.features-heading h3 {
  font-size: clamp(34px, 4.8vw, 54px);
  margin-bottom: 10px;
}

.features-heading p {
  font-size: var(--type-body-size);
  line-height: var(--line-body);
  color: var(--text-secondary);
}

/* ── Feature container ── */
.feature {
  margin-bottom: 72px;
  padding: 24px 24px 26px;
  border-radius: 18px;
  border: 1px solid rgba(201, 193, 179, 0.76);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(26, 23, 20, 0.08);
  backdrop-filter: blur(4px);
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.5s ease,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease;
}

.js .feature {
  opacity: 0;
  transform: translateY(20px);
}

.feature.animate {
  opacity: 1;
  transform: translateY(0);
}

.feature:hover {
  border-color: rgba(212, 117, 11, 0.28);
}

.feature-number {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: var(--weight-medium);
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: var(--line-h3);
  margin-bottom: 28px;
  display: block;
  align-items: center;
  padding: 0 0 12px;
  border-bottom: 0;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.js .feature-number {
  opacity: 0;
  transform: translateY(10px);
}

/* ── Prompt bubble ── */
.feature-prompt {
  display: flex;
  margin-bottom: 16px;
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
  margin-left: auto;
  margin-right: 0;
  width: 100%;
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .feature-prompt {
  opacity: 0;
  transform: translateX(20px);
}

.prompt-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--paper-aged);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: var(--weight-heavy);
  letter-spacing: 0.02em;
  color: var(--text);
  flex-shrink: 0;
  margin-top: 0;
}

.prompt-bubble {
  background: rgba(250, 247, 242, 0.94);
  border: 1px solid rgba(212, 117, 11, 0.24);
  padding: 16px 20px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: var(--line-body);
  color: #2b241d;
  font-weight: var(--weight-regular);
  width: min(100%, 760px);
  min-height: 78px;
  max-width: 82%;
  white-space: pre-wrap;
  margin-left: auto;
  text-align: left;
  box-shadow: 0 8px 20px rgba(26, 23, 20, 0.08);
}

.prompt-avatar-user {
  background: linear-gradient(150deg, var(--paper-aged), #f6f2ea);
  color: var(--text-secondary);
}

.prompt-bubble.is-typing::after {
  content: '▎';
  animation: blink 0.9s steps(1) infinite;
  color: var(--torch);
  margin-left: 2px;
  display: inline-block;
}

@keyframes blink {
  0%,
  49% { opacity: 1; }
  50%,
  100% { opacity: 0; }
}

/* ── Atlas-style assistant panel ── */
.feature-action {
  background: transparent;
  border-radius: 0;
  margin: 0 auto 12px 0;
  max-width: min(100%, 860px);
  overflow: visible;
  border: 0;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .feature-action {
  opacity: 0;
  transform: translateY(12px);
}

.action-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 0 8px;
  background: transparent;
  border-bottom: 0;
}

.atlas-assistant-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 220px;
}

.atlas-assistant-top-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.atlas-assistant-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.atlas-assistant-name {
  font-family: var(--font-display);
  font-weight: var(--weight-medium);
  font-size: clamp(18px, 2.2vw, 23px);
  color: var(--text);
  line-height: 1.06;
}

.atlas-assistant-status {
  font-size: var(--type-small-size);
  color: var(--text-tertiary);
  max-width: 360px;
  line-height: var(--line-small);
}

.atlas-compass-stack {
  position: relative;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.atlas-compass-stack svg {
  width: 20px;
  height: 20px;
  position: absolute;
}

.atlas-compass-light {
  color: var(--text-tertiary);
  opacity: 1;
}

.atlas-compass-bold {
  color: var(--text-secondary);
  opacity: 0;
}

.atlas-compass-animating .atlas-compass-light {
  animation: atlas-compass-fade-out 1s ease-in-out infinite;
}

.atlas-compass-animating .atlas-compass-bold {
  animation: atlas-compass-fade-in 1s ease-in-out infinite;
}

.atlas-tool-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}

.atlas-tool-badge {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-secondary) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--paper);
  font-size: 11px;
  box-shadow: 0 5px 12px rgba(26, 23, 20, 0.18);
}

.atlas-tool-badge-icon {
  position: relative;
  z-index: 2;
  font-weight: var(--weight-heavy);
  letter-spacing: -0.02em;
}


.atlas-tool-badge-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.atlas-tool-badge-running::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 1px solid rgba(212, 117, 11, 0.7);
  animation: atlas-badge-spin 1.05s linear infinite;
}

.atlas-tool-badge-done {
  background: linear-gradient(135deg, var(--torch) 0%, var(--torch-glow) 100%);
  border-color: rgba(244, 166, 35, 0.5);
}

.atlas-tool-badge-done .atlas-tool-badge-icon {
  color: var(--paper);
}

.atlas-tool-badge-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--paper);
  font-size: 10px;
  font-weight: var(--weight-heavy);
  line-height: 16px;
  text-align: center;
}

.atlas-tool-badge-check {
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--positive);
  border: 1px solid rgba(45, 106, 79, 0.5);
  font-size: 11px;
  font-weight: var(--weight-heavy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.atlas-tool-badge-done .atlas-tool-badge-check {
  background: var(--torch);
  color: var(--paper);
  border-color: rgba(244, 166, 35, 0.8);
}

@keyframes atlas-compass-fade-out {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes atlas-compass-fade-in {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

@keyframes atlas-badge-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.atlas-summary {
  margin: 0;
  padding: 0 0 8px;
  font-size: var(--type-small-size);
  line-height: var(--line-small);
  color: var(--text-secondary);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.js .atlas-summary {
  opacity: 0;
  transform: translateY(8px);
}

.step-highlight {
  color: var(--text);
  font-weight: var(--weight-medium);
}

/* ── Output ── */
.feature-output {
  border-top: 0;
  padding: 0;
  display: block;
  margin-bottom: 0;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .feature-output {
  opacity: 0;
  transform: translateY(10px);
}

.output-text {
  font-size: var(--type-body-size);
  line-height: var(--line-body);
  color: var(--text);
  margin: 0 0 14px;
}

.output-text strong { color: var(--ink); font-weight: var(--weight-medium); }

.brief-intro {
  margin: 0 0 10px;
  font-size: var(--type-small-size);
  line-height: var(--line-small);
  color: var(--text-secondary);
}

/* ── Brief preview card ── */
.brief-preview {
  background: linear-gradient(90deg, rgba(244, 166, 35, 0.08), rgba(244, 166, 35, 0.03));
  border: 1px solid rgba(212, 117, 11, 0.28);
  border-left: 4px solid var(--torch);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  margin-top: 8px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.2s, box-shadow 0.2s;
}

.js .brief-preview {
  opacity: 0;
  transform: translateY(10px);
}

.brief-preview:hover {
  border-left-color: var(--ink);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}

.brief-preview:focus-visible {
  outline: 2px solid var(--torch);
  outline-offset: 2px;
}

.brief-preview-text { flex: 1; }

.brief-preview-label {
  font-size: var(--type-small-size);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a4f00;
  font-weight: var(--weight-medium);
  margin-bottom: 4px;
}

.brief-preview-title {
  font-size: clamp(18px, 2vw, 24px);
  color: var(--ink);
  line-height: var(--line-h3);
  font-weight: var(--weight-medium);
}

.brief-preview-meta {
  font-size: var(--type-small-size);
  color: var(--text-tertiary);
  margin-top: 3px;
  line-height: var(--line-small);
}

.brief-preview-cta {
  font-size: var(--type-small-size);
  color: var(--paper);
  background: var(--ink);
  margin-left: 16px;
  min-width: 160px;
  padding: 10px 14px;
  border-radius: 8px;
  transition: background 0.2s, transform 0.2s;
  font-weight: var(--weight-medium);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}

.brief-preview:hover .brief-preview-cta {
  background: var(--torch);
  transform: translateX(2px);
}

/* ── Animated states ── */
.feature.animate .feature-number {
  opacity: 1;
  transform: translateY(0);
}

.feature.animate .feature-prompt {
  opacity: 1;
  transform: translateX(0);
}

.feature.atlas-visible .feature-action {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.feature.atlas-visible .atlas-summary {
  opacity: 1;
  transform: translateY(0);
}

.feature.atlas-visible .feature-output {
  opacity: 1;
  transform: translateY(0);
}

.feature.atlas-visible .brief-preview {
  opacity: 1;
  transform: translateY(0);
}

/* Feature divider */
.feature-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 72px;
}

.feature-divider .deco-diamond {
  width: 6px;
  height: 6px;
  background: var(--rule);
  transform: rotate(45deg);
}

/* ═══════════════════════════════════════════
   BEAT 4: GLOSSARY
   ═══════════════════════════════════════════ */

.glossary-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 32px 86px;
}

.glossary-heading {
  max-width: 900px;
  margin: 0 auto 24px;
  text-align: center;
}

.glossary-heading h2 {
  margin-bottom: 12px;
}

.glossary-heading p {
  font-size: var(--type-body-large-size);
  line-height: var(--line-body);
  color: var(--text-secondary);
  max-width: 780px;
  margin: 0 auto;
}

.glossary-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.glossary-teaser-card {
  border: 1px solid var(--rule-light);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 242, 233, 0.94));
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 8px 20px rgba(26, 23, 20, 0.06);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.glossary-teaser-card h3 {
  font-size: var(--type-h3-size);
  line-height: var(--line-h3);
  color: var(--ink);
  font-weight: var(--weight-medium);
  margin-bottom: 10px;
}

.glossary-teaser-card p {
  font-size: var(--type-body-size);
  line-height: var(--line-body);
  color: var(--text-secondary);
  margin-bottom: 0;
}

.glossary-teaser-card:hover {
  border-color: rgba(212, 117, 11, 0.36);
  box-shadow: 0 10px 24px rgba(26, 23, 20, 0.08);
  transform: translateY(-1px);
}

.glossary-teaser-cta-wrap {
  margin-top: 20px;
  text-align: center;
}

.glossary-teaser-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(212, 117, 11, 0.34);
  background: rgba(255, 251, 244, 0.9);
  color: #8a4c0b;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: var(--weight-medium);
  letter-spacing: 0.04em;
  transition: border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.glossary-teaser-cta:hover {
  color: #733e0a;
  border-color: rgba(212, 117, 11, 0.5);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════
   BEAT 5: THE CTA
   ═══════════════════════════════════════════ */

.cta-section {
  margin-top: clamp(20px, 4vh, 48px);
  padding: 40px 32px clamp(72px, 14vh, 128px);
  text-align: center;
  position: relative;
  overflow: visible;
}

.cta-section::before {
  display: none;
}


.cta-section > * {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-size: clamp(75px, 10vw, 110px);
  font-weight: var(--weight-medium);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 22px;
}

.cta-body {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.2vw, 32px);
  color: var(--ink);
  font-weight: 600;
  max-width: 740px;
  margin: 0 auto 36px;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.cta-btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  padding: 16px 48px;
  border-radius: 10px;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: var(--weight-medium);
  transition: all 0.25s;
  border: 2px solid var(--ink);
}

.cta-btn:hover {
  background: var(--torch);
  border-color: var(--torch);
}

.cta-lead-form {
  max-width: 760px;
  margin: 0 auto;
}

.cta-lead-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 auto 16px;
}

.cta-field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.cta-field span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6f6558;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 600;
  padding-left: 6px;
}

.cta-field input {
  width: 100%;
  border: 1px solid rgba(110, 96, 79, 0.34);
  background: rgba(255, 253, 250, 0.94);
  color: var(--text-primary);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.35;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cta-field input:focus {
  border-color: rgba(226, 99, 19, 0.6);
  box-shadow: 0 0 0 3px rgba(226, 99, 19, 0.15);
}

.cta-lead-note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.cta-pricing {
  margin-top: 22px;
  font-size: clamp(16px, 2.2vw, 22px);
  color: var(--text);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.cta-pricing strong {
  color: var(--ink);
  font-weight: 700;
}

.cta-confirm-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 19, 16, 0.5);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  z-index: 220;
}

.cta-confirm-modal.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cta-confirm-card {
  max-width: min(88vw, 420px);
  width: 100%;
  background: rgba(255, 252, 247, 0.99);
  border: 1px solid rgba(201, 193, 179, 0.7);
  box-shadow: 0 24px 64px rgba(26, 23, 20, 0.24), 0 8px 20px rgba(26, 23, 20, 0.1);
  border-radius: 18px;
  padding: 40px 32px 36px;
  text-align: center;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
  opacity: 0;
}

.cta-confirm-modal.is-visible .cta-confirm-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.cta-confirm-icon {
  margin-bottom: 20px;
}

.cta-confirm-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: var(--weight-medium);
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.cta-confirm-text {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 320px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */

.footer {
  border-top: 1px solid var(--rule);
  padding: 24px 32px;
  background: rgba(250, 247, 242, 0.72);
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--type-small-size);
  color: var(--text-tertiary);
}

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

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: var(--type-small-size);
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ═══════════════════════════════════════════
   REVEAL (for non-feature elements)
   ═══════════════════════════════════════════ */

.reveal {
  opacity: 1;
  transform: translateY(0);
}

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .site-map-bg .mapboxgl-canvas {
    filter: none;
  }

  .top-bar.scrolled,
  .hero-query-panel,
  .feature {
    backdrop-filter: none;
  }

  .hero-copy,
  .scroll-hint,
  .hero-query-content::after,
  .prompt-bubble.is-typing::after,
  .atlas-compass-animating .atlas-compass-light,
  .atlas-compass-animating .atlas-compass-bold,
  .atlas-tool-badge-running::before {
    animation: none !important;
  }

  .reveal,
  .geo-story-card,
  .cycle-brief-card,
  .feature,
  .feature-number,
  .feature-prompt,
  .feature-action,
  .atlas-summary,
  .feature-output,
  .brief-preview {
    transition-duration: 0.01ms !important;
  }
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 768px) {
  .top-bar { padding: 12px 20px; }
  .top-bar nav { gap: 16px; }
  .top-bar nav a:not(.nav-cta) { display: none; }
  .hero {
    min-height: auto;
    padding: 112px 20px 54px;
    gap: 24px;
  }
  .hero h1 {
    font-size: clamp(36px, 11vw, 56px);
  }
  .hero-subhead {
    font-size: 18px;
  }
  .hero-query-panel {
    padding: 14px;
  }
  .hero-query-box {
    height: 154px;
    min-height: 154px;
    padding: 16px;
  }
  .hero-query-prefix {
    font-size: 13px;
  }
  .hero-query-text {
    font-size: clamp(16px, 5.2vw, 22px);
  }
  .scroll-hint {
    letter-spacing: 0.08em;
  }
  .data-backbone {
    padding: 18px 20px 62px;
  }
  .data-heading,
  .geo-story-list {
    max-width: 100%;
  }
  .data-heading h2 {
    font-size: clamp(30px, 8vw, 42px);
  }
  .geo-story-list {
    gap: 24px;
  }
  .geo-story-card {
    min-height: 0;
    padding: 16px 16px 17px;
    border-radius: 8px;
    background: rgba(252, 248, 241, 0.78);
  }
  .geo-story-card.is-focused,
  .geo-story-card--macro.is-focused {
    background: rgba(252, 248, 241, 0.74);
  }
  .geo-story-card h3 {
    font-size: clamp(19px, 5.4vw, 24px);
  }
  .cycle-brief-showcase {
    margin-top: 16px;
    margin-bottom: 36px;
    padding: 16px;
    background: rgba(255, 251, 245, 0.78);
  }
  .cycle-brief-showcase h3 {
    font-size: clamp(28px, 7.2vw, 38px);
  }
  .cycle-brief-subhead {
    font-size: 16px;
  }
  .cycle-brief-grid {
    grid-template-columns: 1fr;
  }
  .cycle-brief-card {
    padding: 14px;
  }
  .cycle-brief-card h4 {
    font-size: clamp(21px, 6.2vw, 28px);
  }
  .card-atlas-prompt {
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(255, 251, 245, 0.94);
    border-left-color: rgba(212, 117, 11, 0.5);
  }
  .card-prompt-text {
    font-size: 12px;
  }
  .geo-story-card--macro {
    max-width: 100%;
    padding: 16px 16px 14px;
  }
  .macro-headline {
    font-size: clamp(20px, 5.5vw, 26px) !important;
    margin-bottom: 14px !important;
  }
  .macro-query-box {
    padding: 12px 14px;
    background: rgba(255, 251, 245, 0.95);
    border-color: rgba(212, 117, 11, 0.34);
  }
  .macro-query-prefix {
    font-size: 13px;
  }
  .macro-query-text {
    font-size: clamp(15px, 4.2vw, 18px);
  }
  .macro-brief-header {
    padding: 8px 12px;
  }
  .macro-brief-body {
    padding: 10px 12px 10px;
  }
  .macro-brief-output {
    background: linear-gradient(180deg, rgba(255, 251, 244, 0.95), rgba(250, 245, 235, 0.93));
    border-color: rgba(212, 117, 11, 0.3);
  }
  .macro-brief-scope {
    font-size: 12px;
  }
  .macro-deliverable {
    padding: 6px 8px;
  }
  .macro-deliverable-text strong {
    font-size: 12px;
  }
  .macro-deliverable-text span {
    font-size: 10px;
  }
  .site-map-legend { max-width: calc(100% - 28px); }
  .map-scene-legend { display: none; }
  .site-data-rail { display: none; }
  .features { padding: 40px 20px 60px; }
  .glossary-section {
    padding: 18px 20px 64px;
  }
  .glossary-heading p {
    font-size: var(--type-body-size);
  }
  .glossary-teaser-grid {
    grid-template-columns: 1fr;
  }
  .glossary-teaser-card h3 {
    font-size: clamp(22px, 6vw, 26px);
  }
  .prompt-bubble { max-width: 90%; font-size: 15px; }
  .feature-action { margin-right: 0; max-width: 100%; }
  .feature-output { margin-left: 0; }
  .brief-preview {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .brief-preview-cta {
    margin-left: 0;
    width: 100%;
  }
  .cta-section {
    margin-top: 8px;
    padding: 24px 20px clamp(28px, 8vh, 56px);
  }
  .cta-section h2 {
    font-size: clamp(52px, 13vw, 78px);
    line-height: 1.12;
  }
  .cta-body {
    font-size: 19px;
    margin-bottom: 24px;
  }
  .cta-lead-note {
    margin-top: 10px;
  }
  .cta-lead-grid {
    grid-template-columns: 1fr;
  }
  .cta-pricing {
    margin-top: 14px;
    font-size: 15px;
  }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .data-backbone {
    padding-left: 36px;
    padding-right: 24px;
  }
  .data-heading,
  .geo-story-list {
    max-width: min(56vw, 760px);
  }
  .site-data-rail {
    display: none;
  }
  .cycle-brief-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1101px) and (max-width: 1280px) {
  .data-heading,
  .geo-story-list {
    max-width: min(46vw, 680px);
  }
}
