/* ════════════════════════════════════════
   THE TEA ACT — STYLES
   Colonial Treasury × Modern Fintech
   ════════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  --green-900: #0B2B1A;
  --green-800: #1B4332;
  --green-700: #2D6A4F;
  --green-600: #40916C;
  --green-500: #52B788;
  --gold-600: #A68542;
  --gold-500: #C9A96E;
  --gold-400: #D4AF37;
  --gold-300: #E8D5A3;
  --gold-200: #F0E6CC;
  --cream-100: #FFFDF7;
  --cream-200: #FAF3E0;
  --cream-300: #F0E8D4;
  --charcoal: #1A1A1A;
  --text: #2C2C2C;
  --text-muted: #6B7280;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-mono: 'DM Mono', 'Courier New', monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --nav-height: 72px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
  scroll-snap-type: y proximity;
  overflow-x: hidden;
}
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream-100);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
input { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; }
h2 em, h1 em { font-style: italic; font-weight: 500; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}


/* ════════════════════════════════════════
   LOADER — Neon Internal-Feature Trace
   ════════════════════════════════════════ */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--green-900);
  overflow: hidden;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0, 1), visibility 0.9s;
}
#loader::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(45,106,79,0.12) 0%, transparent 70%);
  pointer-events: none;
}
#loader.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ── Logo top-left ── */
.loader-top-logo {
  position: absolute;
  top: 24px;
  left: 28px;
  opacity: 0;
  transform: translateY(-8px);
  animation: fadeSlideDown 0.6s 0.3s var(--ease-out) forwards;
}
.loader-top-logo img { border-radius: 50%; object-fit: cover; }
@keyframes fadeSlideDown {
  to { opacity: 0.85; transform: translateY(0); }
}

/* ── Particles ── */
.loader-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.lp {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--gold-500);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 4s infinite var(--ease-out);
}
.lp1  { left: 15%; top: 90%; animation-delay: 0s;   animation-duration: 3.5s; }
.lp2  { left: 25%; top: 85%; animation-delay: 0.3s; animation-duration: 4.2s; width: 2px; height: 2px; }
.lp3  { left: 40%; top: 92%; animation-delay: 0.6s; animation-duration: 3.8s; }
.lp4  { left: 55%; top: 88%; animation-delay: 0.2s; animation-duration: 4.5s; width: 2px; height: 2px; }
.lp5  { left: 65%; top: 95%; animation-delay: 0.8s; animation-duration: 3.3s; }
.lp6  { left: 78%; top: 87%; animation-delay: 0.5s; animation-duration: 4s; width: 2px; height: 2px; }
.lp7  { left: 10%; top: 80%; animation-delay: 1.2s; animation-duration: 4.8s; width: 1.5px; height: 1.5px; }
.lp8  { left: 85%; top: 82%; animation-delay: 0.9s; animation-duration: 3.6s; }
.lp9  { left: 32%; top: 96%; animation-delay: 1.5s; animation-duration: 4.1s; width: 1.5px; height: 1.5px; }
.lp10 { left: 48%; top: 84%; animation-delay: 0.1s; animation-duration: 5s; width: 2px; height: 2px; }
.lp11 { left: 72%; top: 91%; animation-delay: 1.8s; animation-duration: 3.9s; width: 1.5px; height: 1.5px; }
.lp12 { left: 92%; top: 93%; animation-delay: 0.7s; animation-duration: 4.4s; }

@keyframes particleFloat {
  0%   { opacity: 0; transform: translateY(0) scale(1); }
  15%  { opacity: 0.7; }
  50%  { opacity: 0.4; }
  100% { opacity: 0; transform: translateY(-70vh) scale(0.3); }
}

/* ══════════════════════════════
   SEAL WRAP — the main stage
   ══════════════════════════════ */
.loader-seal-wrap {
  position: relative;
  width: 280px;
  height: 280px;
  z-index: 2;
}

/* ── Neon ambient glow ── */
.loader-neon-glow {
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(80,200,120,0.12) 0%,
    rgba(80,200,120,0.04) 35%,
    rgba(201,169,110,0.06) 50%,
    transparent 70%);
  opacity: 0;
  animation: neonGlowBuild 2.5s 0.2s ease-out forwards;
}
@keyframes neonGlowBuild {
  0%   { opacity: 0; transform: scale(0.9); }
  60%  { opacity: 1; }
  100% { opacity: 0.8; transform: scale(1); }
}

/* ── SVG trace overlay — positioned over the image ── */
.loader-trace {
  position: absolute;
  inset: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  z-index: 3;
}

/* ═══ Universal trace keyframes ═══ */
@keyframes trDraw {
  to { stroke-dashoffset: 0; }
}
@keyframes trFade {
  to { opacity: 0; }
}

/* ═══ Stage 1: Rings (0.2s → 1.3s) ═══ */
.tr-ring--outer {
  animation:
    trDraw 1.1s 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards,
    trFade  0.5s 2.8s ease-out forwards;
}
.tr-ring--inner {
  animation:
    trDraw 1.2s 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards,
    trFade  0.5s 2.8s ease-out forwards;
}

/* ═══ Stage 2: Eagle body (0.6s → 1.6s) ═══ */
.tr-eagle {
  animation:
    trDraw 1.0s 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards,
    trFade  0.5s 2.8s ease-out forwards;
}

/* ═══ Stage 2b: Wings (0.9s → 1.8s) ═══ */
.tr-wing--left {
  animation:
    trDraw 0.9s 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards,
    trFade  0.5s 2.8s ease-out forwards;
}
.tr-wing--right {
  animation:
    trDraw 0.9s 0.95s cubic-bezier(0.4, 0, 0.2, 1) forwards,
    trFade  0.5s 2.8s ease-out forwards;
}

/* ═══ Stage 3: Laurel branches (1.2s → 2.2s) ═══ */
.tr-laurel--left {
  animation:
    trDraw 1.0s 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards,
    trFade  0.5s 2.8s ease-out forwards;
}
.tr-laurel--right {
  animation:
    trDraw 1.0s 1.25s cubic-bezier(0.4, 0, 0.2, 1) forwards,
    trFade  0.5s 2.8s ease-out forwards;
}

/* ═══ Stage 3b: Staff (1.3s → 2.0s) ═══ */
.tr-staff {
  animation:
    trDraw 0.7s 1.3s cubic-bezier(0.4, 0, 0.2, 1) forwards,
    trFade  0.5s 2.8s ease-out forwards;
}

/* ═══ Stage 4: Text arcs + details (1.6s → 2.5s) ═══ */
.tr-textarc--top {
  animation:
    trDraw 0.9s 1.6s cubic-bezier(0.4, 0, 0.2, 1) forwards,
    trFade  0.5s 2.8s ease-out forwards;
}
.tr-textarc--bottom {
  animation:
    trDraw 0.9s 1.7s cubic-bezier(0.4, 0, 0.2, 1) forwards,
    trFade  0.5s 2.8s ease-out forwards;
}
.tr-banner--left {
  animation:
    trDraw 0.6s 1.8s cubic-bezier(0.4, 0, 0.2, 1) forwards,
    trFade  0.5s 2.8s ease-out forwards;
}
.tr-banner--right {
  animation:
    trDraw 0.6s 1.85s cubic-bezier(0.4, 0, 0.2, 1) forwards,
    trFade  0.5s 2.8s ease-out forwards;
}
.tr-coin--1 {
  animation:
    trDraw 0.5s 2.0s cubic-bezier(0.4, 0, 0.2, 1) forwards,
    trFade  0.5s 2.8s ease-out forwards;
}
.tr-coin--2 {
  animation:
    trDraw 0.5s 2.05s cubic-bezier(0.4, 0, 0.2, 1) forwards,
    trFade  0.5s 2.8s ease-out forwards;
}
.tr-quill {
  animation:
    trDraw 0.5s 2.0s cubic-bezier(0.4, 0, 0.2, 1) forwards,
    trFade  0.5s 2.8s ease-out forwards;
}

/* ── The actual logo image ──
   Starts as a dark ghost — neon traces overlay it.
   When all internal traces finish, it flashes to full color. */
.loader-logo-img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transform: scale(1.02);
  opacity: 0.08;
  filter: brightness(0.3) saturate(0);
  z-index: 2;
  animation: imageReveal 1.2s 2.6s ease-out forwards;
}

@keyframes imageReveal {
  0%   { opacity: 0.08; filter: brightness(0.3) saturate(0); transform: scale(1.02); }
  20%  { opacity: 1;    filter: brightness(1.8) saturate(0.5); }
  50%  { filter: brightness(1.2) saturate(0.85); }
  100% { opacity: 1;    filter: brightness(1) saturate(1); transform: scale(1); }
}

/* ── Light sweep — diagonal wipe across on reveal ── */
.loader-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
}
.loader-sweep::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -60%;
  width: 40%;
  height: 140%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(80,200,120,0.08) 30%,
    rgba(255,255,255,0.18) 48%,
    rgba(212,175,55,0.12) 52%,
    rgba(80,200,120,0.06) 70%,
    transparent 100%
  );
  transform: skewX(-15deg);
}
.loader-sweep {
  animation: sweepFlash 1s 2.7s ease-in-out forwards;
}
@keyframes sweepFlash {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}
.loader-sweep::before {
  animation: sweepMove 1s 2.7s ease-in-out forwards;
}
@keyframes sweepMove {
  from { left: -60%; }
  to   { left: 120%; }
}

/* ── Flash burst on trace completion ── */
.loader-flash {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  z-index: 5;
  pointer-events: none;
  background: radial-gradient(circle,
    rgba(255,255,255,0.3) 0%,
    rgba(212,175,55,0.25) 25%,
    rgba(80,200,120,0.15) 50%,
    transparent 70%);
  opacity: 0;
  animation: flashBurst 0.8s 2.6s ease-out forwards;
}
@keyframes flashBurst {
  0%   { opacity: 0; transform: scale(0.85); }
  30%  { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0; transform: scale(1.3); }
}

/* ── Text group ── */
.loader-text-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-top: 28px;
  z-index: 2;
}
.loader-divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
  opacity: 0;
  transform: scaleX(0);
  animation: dividerGrow 0.6s 3.4s var(--ease-out) forwards;
}
.loader-tagline {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 1px;
  color: var(--gold-300);
  margin-top: 14px;
  opacity: 0;
  transform: translateY(8px);
  animation: textSlideUp 0.6s 3.6s var(--ease-out) forwards;
}
@keyframes textSlideUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes dividerGrow {
  to { opacity: 0.5; transform: scaleX(1); }
}

/* ── Progress bar ── */
.loader-progress {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  opacity: 0;
  animation: fadeIn 0.5s 0.2s var(--ease-out) forwards;
}
.loader-progress-track {
  width: 100%;
  height: 2px;
  background: rgba(201,169,110,0.12);
  border-radius: 2px;
  overflow: hidden;
}
.loader-progress-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #50C878, var(--gold-400), #50C878);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  animation: progressSmooth 4.2s 0.2s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}
@keyframes progressSmooth {
  to { transform: scaleX(1); }
}

/* ── Exit ── */
#loader.done .loader-seal-wrap {
  animation: sealExit 0.7s var(--ease-in-out) forwards;
}
#loader.done .loader-text-group {
  animation: elemExit 0.4s var(--ease-in-out) forwards;
}
#loader.done .loader-progress {
  animation: elemExit 0.3s var(--ease-in-out) forwards;
}
#loader.done .loader-particles {
  animation: elemExit 0.3s var(--ease-in-out) forwards;
}
#loader.done .loader-top-logo {
  animation: elemExit 0.3s var(--ease-in-out) forwards;
}
#loader.done .loader-neon-glow {
  animation: elemExit 0.4s var(--ease-in-out) forwards;
}

@keyframes sealExit {
  to { opacity: 0; transform: scale(1.08); filter: brightness(1.3); }
}
@keyframes elemExit {
  to { opacity: 0; transform: translateY(-10px); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}


/* ════════════════════════════════════════
   NAVIGATION
   ════════════════════════════════════════ */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), backdrop-filter 0.4s;
}
#nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.08), rgba(201, 169, 110, 0.15), rgba(201, 169, 110, 0.08), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
#nav.scrolled {
  background: rgba(11, 43, 26, 0.88);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12), 0 1px 0 rgba(201, 169, 110, 0.06);
}
#nav.scrolled::after {
  opacity: 1;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 101;
  transition: opacity 0.25s;
}
.logo:hover { opacity: 0.85; }

.logo-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--cream-100);
  letter-spacing: 3.5px;
  white-space: nowrap;
}

.logo-divider {
  width: 1px;
  height: 20px;
  background: linear-gradient(180deg, transparent, rgba(201, 169, 110, 0.3), transparent);
  flex-shrink: 0;
}

.logo-tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: rgba(201, 169, 110, 0.45);
  white-space: nowrap;
  text-transform: uppercase;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 253, 247, 0.6);
  letter-spacing: 0.3px;
  transition: color 0.25s, background 0.25s;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 8px;
  position: relative;
}
.nav-links a:hover {
  color: var(--cream-100);
  background: rgba(255, 253, 247, 0.05);
}

/* CTA Button */
.nav-cta {
  position: relative;
  padding: 10px 22px !important;
  border: 1px solid rgba(201, 169, 110, 0.4) !important;
  border-radius: 10px !important;
  color: var(--gold-500) !important;
  font-weight: 600 !important;
  background: rgba(201, 169, 110, 0.06) !important;
  transition: all 0.3s var(--ease-out) !important;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}
.nav-cta svg {
  display: inline-block;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
}
.nav-cta:hover {
  background: var(--gold-500) !important;
  color: var(--green-900) !important;
  border-color: var(--gold-500) !important;
  box-shadow: 0 4px 20px rgba(201, 169, 110, 0.25), 0 0 40px rgba(201, 169, 110, 0.08);
}
.nav-cta:hover svg {
  transform: translateX(3px);
}
.nav-cta-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(201, 169, 110, 0.15), transparent, rgba(201, 169, 110, 0.08));
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.nav-cta:hover .nav-cta-glow {
  opacity: 1;
}

/* Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  z-index: 101;
}
.menu-toggle span {
  display: block;
  height: 1.5px;
  background: var(--cream-100);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s, width 0.3s var(--ease-out);
}
.menu-toggle span:nth-child(2) { width: 70%; }
.menu-toggle:hover span:nth-child(2) { width: 100%; }
.menu-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; width: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


/* ════════════════════════════════════════
   HERO WRAPPER — Scroll Zoom Transition
   ════════════════════════════════════════ */
.hero-wrapper {
  position: relative;
  z-index: 2;
  /* Height set dynamically by JS: hero height + animation scroll distance */
  background: var(--cream-200);
  scroll-snap-align: start;
}

#hero {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 12px) 24px 16px;
  background: linear-gradient(168deg, #071E12 0%, var(--green-800) 35%, var(--green-700) 100%);
  overflow: hidden;
  contain: layout style;
  will-change: transform, border-radius;
  transform-origin: center center;
}

.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
}

.hero-content {
  position: relative;
  width: 100%;
  max-width: 860px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
}

/* Hero Animations */
.anim-fade-down {
  opacity: 0;
  transform: translateY(-16px);
  animation: heroFadeDown 0.8s 1.6s var(--ease-out) forwards;
}
.anim-fade-up {
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 0.8s 1.8s var(--ease-out) forwards;
}
.anim-d1 { animation-delay: 2s; }
.anim-d2 { animation-delay: 2.2s; }
.anim-d3 { animation-delay: 2.4s; }
.anim-d4 { animation-delay: 2.6s; }

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

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gold-500);
  margin-bottom: 16px;
  text-transform: uppercase;
  flex-wrap: wrap;
  justify-content: center;
}
.eyebrow-diamond {
  font-size: 8px;
  opacity: 0.6;
}

.hero-headline {
  font-size: clamp(32px, 5.5vw, 64px);
  color: var(--cream-100);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.hero-headline em {
  color: var(--gold-400);
  font-style: italic;
}

.hero-sub {
  font-size: clamp(15px, 1.8vw, 19px);
  color: rgba(255, 253, 247, 0.65);
  max-width: 560px;
  margin-bottom: 18px;
  line-height: 1.6;
  font-weight: 300;
}

/* County Banner */
.county-banner {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 22px 10px 14px;
  border: 1px solid rgba(201, 169, 110, 0.25);
  border-radius: 60px;
  background: rgba(201, 169, 110, 0.06);
  margin-bottom: 20px;
  transition: border-color 0.4s;
  max-width: 100%;
}
.county-banner.detected {
  border-color: rgba(201, 169, 110, 0.5);
  background: rgba(201, 169, 110, 0.1);
}
.county-seal { color: var(--gold-500); flex-shrink: 0; }
.county-info { display: flex; flex-direction: column; text-align: left; min-width: 0; }
.county-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2.5px;
  color: var(--gold-500);
  opacity: 0.7;
}
.county-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--cream-100);
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  margin-bottom: 0;
}
.stat-card {
  padding: 20px 12px;
  border: 1px solid rgba(201, 169, 110, 0.15);
  border-radius: 12px;
  background: rgba(255, 253, 247, 0.03);
  text-align: center;
  transition: border-color 0.3s, background 0.3s;
  min-width: 0;
  overflow: visible;
}
.stat-card:hover {
  border-color: rgba(201, 169, 110, 0.3);
  background: rgba(255, 253, 247, 0.05);
}
.stat-card--accent {
  border-color: rgba(201, 169, 110, 0.35);
  background: rgba(201, 169, 110, 0.07);
}
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 38px);
  font-weight: 700;
  color: var(--cream-100);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: visible;
}
.stat-card--accent .stat-number {
  color: var(--gold-400);
}
.stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(8px, 1.1vw, 10px);
  letter-spacing: 1.5px;
  color: rgba(255, 253, 247, 0.5);
  margin-bottom: 4px;
}
.stat-meta {
  display: block;
  font-size: 12px;
  color: rgba(255, 253, 247, 0.3);
  font-weight: 300;
}

/* Search Focus Overlay — dims hero when search is active */
.search-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: rgba(7, 30, 18, 0.65);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.5s;
  pointer-events: none;
}
body.search-focus-active .search-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.45s;
}
body.search-focus-active .hero-content {
  z-index: 6;
}
/* Hero elements fade out on focus, fade back in on blur */
.hero-eyebrow,
.hero-headline,
.hero-sub,
.county-banner,
.stats-grid,
.hero-scroll-hint {
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
body.search-focus-active .hero-eyebrow,
body.search-focus-active .hero-headline,
body.search-focus-active .hero-sub,
body.search-focus-active .county-banner,
body.search-focus-active .stats-grid,
body.search-focus-active .hero-scroll-hint {
  opacity: 0 !important;
  transform: translateY(12px) scale(0.97);
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1), transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.search-hint {
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
body.search-focus-active .search-hint {
  opacity: 0 !important;
  transition: opacity 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Search Bar */
.search-container {
  width: 100%;
  max-width: 680px;
  position: relative;
  z-index: 10;
  /* JS sets --search-lift for the translateY; default 0 */
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), max-width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
body.search-focus-active .search-container {
  transform: translateY(var(--search-lift, 0px)) scale(1.04);
  max-width: 740px;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), max-width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.search-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 6px 6px 6px 20px;
  background: rgba(255, 253, 247, 0.06);
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: 14px;
  transition: border-color 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1), background 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-radius 0.15s;
}
body.search-focus-active .search-bar {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(201, 169, 110, 0.12), 0 16px 60px rgba(0, 0, 0, 0.4);
  background: rgba(11, 43, 26, 0.97);
}
.search-bar:focus-within {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1), 0 8px 32px rgba(0, 0, 0, 0.2);
  background: rgba(255, 253, 247, 0.08);
}
.search-icon {
  width: 20px;
  height: 20px;
  color: var(--gold-500);
  opacity: 0.5;
  flex-shrink: 0;
}
.search-input {
  flex: 1;
  padding: 12px 12px;
  height: 44px;
  background: transparent;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--cream-100);
  min-width: 0;
}
.search-input::placeholder {
  color: rgba(255, 253, 247, 0.35);
}
.location-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-500);
  opacity: 0.6;
  transition: opacity 0.25s, background 0.25s;
  flex-shrink: 0;
}
.location-btn svg { width: 20px; height: 20px; }
.location-btn:hover {
  opacity: 1;
  background: rgba(201, 169, 110, 0.1);
}
/* Location tooltip */
.location-btn::after {
  content: 'Location';
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--cream-100);
  background: var(--green-900);
  border: 1px solid rgba(201, 169, 110, 0.25);
  padding: 5px 12px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
  z-index: 20;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.3px;
}
.location-btn::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  border: 5px solid transparent;
  border-top-color: var(--green-900);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
  z-index: 20;
}
.location-btn:hover::after,
.location-btn:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.search-submit {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  height: 44px;
  background: var(--gold-500);
  color: var(--green-900);
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  white-space: nowrap;
  transition: background 0.25s, transform 0.15s;
  flex-shrink: 0;
}
.search-submit svg { width: 16px; height: 16px; }
.search-submit:hover { background: var(--gold-400); }
.search-submit:active { transform: scale(0.97); }

.search-hint {
  text-align: center;
  font-size: 12px;
  color: rgba(255, 253, 247, 0.3);
  margin-top: 10px;
  margin-bottom: 16px;
  font-weight: 300;
  letter-spacing: 0.3px;
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  list-style: none;
  background: rgba(11, 43, 26, 0.98);
  border: 1px solid rgba(201, 169, 110, 0.25);
  border-top: none;
  border-radius: 0 0 14px 14px;
  max-height: min(55vh, 420px);
  overflow-y: auto;
  display: none;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(201, 169, 110, 0.05) inset;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 169, 110, 0.2) transparent;
}
.autocomplete-dropdown::-webkit-scrollbar {
  width: 6px;
}
.autocomplete-dropdown::-webkit-scrollbar-track {
  background: transparent;
}
.autocomplete-dropdown::-webkit-scrollbar-thumb {
  background: rgba(201, 169, 110, 0.2);
  border-radius: 3px;
}
.autocomplete-dropdown.visible {
  display: block;
  animation: dropdownSlideIn 0.2s var(--ease-out);
}
@keyframes dropdownSlideIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.autocomplete-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  color: var(--cream-100);
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  border-bottom: 1px solid rgba(201, 169, 110, 0.06);
  transition: background 0.15s, padding-left 0.15s;
}
.autocomplete-item:last-child {
  border-bottom: none;
}
.autocomplete-item:hover,
.autocomplete-item.active {
  background: rgba(201, 169, 110, 0.1);
  padding-left: 22px;
}
.autocomplete-item-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--gold-500);
  opacity: 0.5;
  margin-top: 1px;
}
.autocomplete-item:hover .autocomplete-item-icon,
.autocomplete-item.active .autocomplete-item-icon {
  opacity: 0.85;
}
.autocomplete-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.autocomplete-item-street {
  font-weight: 500;
  color: var(--cream-100);
  font-size: 14px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.autocomplete-item-city {
  font-size: 12px;
  color: rgba(255, 253, 247, 0.4);
  font-weight: 300;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-bar.autocomplete-open {
  border-radius: 14px 14px 0 0;
  border-color: var(--gold-500);
  border-bottom-color: rgba(201, 169, 110, 0.08);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1), 0 8px 32px rgba(0, 0, 0, 0.2);
  background: rgba(255, 253, 247, 0.08);
}

/* Hero Scroll Hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0.3;
  color: var(--cream-100);
  animation: scrollBounce 2.5s infinite;
  cursor: pointer;
  text-decoration: none;
}
.hero-scroll-hint span {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.hero-scroll-hint svg { width: 18px; height: 18px; }

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}


/* ════════════════════════════════════════
   SECTION REVEAL EDGE — Futuristic glow
   ════════════════════════════════════════ */
.section-reveal-edge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 3;
  background: linear-gradient(90deg,
    transparent 5%,
    rgba(201, 169, 110, 0.15) 20%,
    rgba(201, 169, 110, 0.5) 50%,
    rgba(201, 169, 110, 0.15) 80%,
    transparent 95%
  );
  box-shadow:
    0 0 20px rgba(201, 169, 110, 0.15),
    0 0 60px rgba(201, 169, 110, 0.06);
  overflow: hidden;
}
/* Animated scan-line sweep across the edge */
.section-reveal-edge::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -20%;
  width: 20%;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.9), transparent);
  animation: edgeScanLine 4s linear infinite;
  pointer-events: none;
}
.section-reveal-edge::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(180deg, rgba(201, 169, 110, 0.04), transparent);
  pointer-events: none;
}

/* Beacon pulse on skyline building-top circles */
.skyline-svg circle[opacity="0.3"],
.skyline-svg circle[opacity="0.35"],
.skyline-svg circle[opacity="0.4"],
.skyline-svg circle[opacity="0.25"] {
  animation: beaconPulse 3s ease-in-out infinite;
}
.skyline-svg circle[opacity="0.35"] {
  animation-delay: 0.7s;
}
.skyline-svg circle[opacity="0.4"] {
  animation-delay: 1.4s;
}
.skyline-svg circle[opacity="0.25"] {
  animation-delay: 2.1s;
}


/* ════════════════════════════════════════
   COLONIAL-FUTURISTIC SKYLINE
   ════════════════════════════════════════ */
.skyline-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 320px;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.skyline-svg {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  min-width: 1200px;
  height: 100%;
}
/* Ensure section content sits above the skyline */
#what-is-prop8 > .container {
  position: relative;
  z-index: 1;
}

/* ════════════════════════════════════════
   SECTIONS
   ════════════════════════════════════════ */
.section {
  position: relative;
  z-index: 3;
  scroll-snap-align: start;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-height) + 16px) 0 40px;
  overflow: hidden;
}
.section > .container {
  width: 100%;
  margin-top: auto;
  margin-bottom: auto;
}
.section--cream {
  background: var(--cream-200);
}
/* First section after hero */
#what-is-prop8 {
  overflow: hidden;
}
#how-it-works {
  position: relative;
  z-index: 3;
}
.section--dark {
  background: linear-gradient(168deg, #071E12 0%, var(--green-800) 40%, var(--green-700) 100%);
  color: var(--cream-100);
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--green-700);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.section-tag--gold { color: var(--gold-500); }

.section-header h2 {
  font-size: clamp(28px, 4.5vw, 48px);
  letter-spacing: -0.3px;
  margin-bottom: 16px;
}
.section--dark .section-header h2 { color: var(--cream-100); }
.section--dark h2 em { color: var(--gold-400); }
.section--cream h2 em { color: var(--green-600); }

.section-desc {
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
  font-weight: 300;
}
.section--dark .section-desc {
  color: rgba(255, 253, 247, 0.55);
}


/* ════════════════════════════════════════
   HOW IT WORKS
   ════════════════════════════════════════ */
.steps-grid {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
}
.step-card {
  flex: 1;
  max-width: 320px;
  text-align: center;
  padding: 36px 24px;
  border: 1px solid var(--cream-300);
  border-radius: 16px;
  background: var(--cream-100);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.step-card:hover {
  border-color: var(--gold-300);
  box-shadow: 0 8px 40px rgba(27, 67, 50, 0.06);
}
.step-number {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--gold-500);
  margin-bottom: 20px;
  letter-spacing: 2px;
}
.step-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  color: var(--green-700);
}
.step-icon svg { width: 100%; height: 100%; }
.step-card h3 {
  font-size: 22px;
  color: var(--green-800);
  margin-bottom: 12px;
}
.step-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
}

.step-connector {
  display: flex;
  align-items: center;
  padding-top: 80px;
  width: 60px;
  flex-shrink: 0;
}
.step-connector svg { width: 100%; }


/* ════════════════════════════════════════
   PROP 8 EXPLAINER
   ════════════════════════════════════════ */
.prop8-explainer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}
.prop8-text p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 16px;
}
.prop8-text p:last-child { margin-bottom: 0; }
.prop8-lead {
  font-size: 18px !important;
  font-weight: 400 !important;
  color: var(--green-800) !important;
}
.prop8-text strong {
  font-weight: 600;
  color: var(--green-800);
}

.prop8-diagram {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.prop8-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-radius: 12px;
  transition: transform 0.25s;
}
.prop8-bar:hover { transform: translateX(4px); }
.prop8-bar--assessed {
  background: rgba(27, 67, 50, 0.08);
  border: 1px solid rgba(27, 67, 50, 0.15);
  width: 100%;
}
.prop8-bar--market {
  background: rgba(82, 183, 136, 0.1);
  border: 1px solid rgba(82, 183, 136, 0.2);
  width: 85%;
}
.prop8-bar-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
}
.prop8-bar-amount {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--green-800);
}
.prop8-bar--market .prop8-bar-amount {
  color: var(--green-600);
}

.prop8-savings-callout {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: rgba(201, 169, 110, 0.08);
  border: 1px dashed rgba(201, 169, 110, 0.3);
  border-radius: 10px;
  margin-top: 4px;
}
.prop8-savings-arrow {
  font-size: 18px;
  color: var(--gold-500);
  animation: bounceDown 1.5s infinite;
}
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}
.prop8-savings-text {
  font-size: 15px;
  color: var(--text);
  font-weight: 400;
}
.prop8-savings-text strong {
  color: var(--gold-600);
  font-weight: 700;
}


/* ════════════════════════════════════════
   PRICING
   ════════════════════════════════════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(6, auto);
  gap: 0 28px;
  max-width: 800px;
  margin: 0 auto;
  align-items: stretch;
}
.pricing-card {
  padding: 40px 32px;
  border: 1px solid var(--cream-300);
  border-radius: 16px;
  background: var(--cream-100);
  text-align: center;
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  display: grid;
  grid-row: span 6;
  grid-template-rows: subgrid;
}
.pricing-card:hover {
  border-color: var(--gold-300);
  box-shadow: 0 8px 40px rgba(27, 67, 50, 0.08);
  transform: translateY(-4px);
}
.pricing-card--featured {
  border-color: var(--gold-500);
  background: linear-gradient(168deg, #071E12 0%, var(--green-800) 50%, var(--green-700) 100%);
  color: var(--cream-100);
}
.pricing-card--featured:hover {
  border-color: var(--gold-400);
  box-shadow: 0 8px 40px rgba(201, 169, 110, 0.15);
}

.pricing-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2.5px;
  color: var(--green-700);
  margin-bottom: 16px;
  text-transform: uppercase;
  padding: 4px 14px;
  border: 1px solid var(--cream-300);
  border-radius: 20px;
  background: var(--cream-200);
  align-self: start;
  justify-self: center;
}
.pricing-badge--gold {
  color: var(--gold-500);
  border-color: rgba(201, 169, 110, 0.3);
  background: rgba(201, 169, 110, 0.1);
}

.pricing-card h3 {
  font-size: 24px;
  color: var(--green-800);
  margin-bottom: 20px;
}
.pricing-card--featured h3 {
  color: var(--cream-100);
}

.pricing-amount {
  margin-bottom: 20px;
  line-height: 1;
  align-self: center;
}
.pricing-dollar {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--green-700);
  vertical-align: super;
}
.pricing-value {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 700;
  color: var(--green-800);
  letter-spacing: -1px;
}
.pricing-card--featured .pricing-dollar,
.pricing-card--featured .pricing-value {
  color: var(--gold-400);
}
.pricing-period {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 300;
  margin-top: 6px;
}
.pricing-card--featured .pricing-period {
  color: rgba(255, 253, 247, 0.5);
}

.pricing-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  font-weight: 300;
  align-self: start;
}
.pricing-card--featured .pricing-desc {
  color: rgba(255, 253, 247, 0.6);
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
  align-self: start;
}
.pricing-features li {
  font-size: 14px;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 1px solid var(--cream-300);
  font-weight: 400;
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before {
  content: '\2713';
  color: var(--green-600);
  font-weight: 700;
  margin-right: 10px;
}
.pricing-card--featured .pricing-features li {
  color: rgba(255, 253, 247, 0.8);
  border-color: rgba(201, 169, 110, 0.1);
}
.pricing-card--featured .pricing-features li::before {
  color: var(--gold-500);
}

.pricing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  padding: 0 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.25s, transform 0.15s, box-shadow 0.25s;
  align-self: end;
}
.pricing-btn:active { transform: scale(0.97); }
.pricing-btn--outline {
  border: 1.5px solid var(--green-700);
  color: var(--green-800);
  background: transparent;
}
.pricing-btn--outline:hover {
  background: var(--green-800);
  color: var(--cream-100);
}
.pricing-btn--solid {
  background: var(--gold-500);
  color: var(--green-900);
}
.pricing-btn--solid:hover {
  background: var(--gold-400);
  box-shadow: 0 4px 20px rgba(201, 169, 110, 0.25);
}


/* ════════════════════════════════════════
   COUNTY DATA CARD
   ════════════════════════════════════════ */
.county-data-card {
  max-width: 760px;
  margin: 0 auto 64px;
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: 16px;
  background: rgba(255, 253, 247, 0.04);
  overflow: hidden;
}
.data-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(201, 169, 110, 0.12);
  flex-wrap: wrap;
}
.data-card-seal { flex-shrink: 0; }
.data-card-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2.5px;
  color: var(--gold-500);
  opacity: 0.6;
  margin-bottom: 4px;
}
.data-card-header h3 {
  font-size: clamp(17px, 2.5vw, 20px);
  color: var(--cream-100);
  font-weight: 600;
}

.data-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.data-metric {
  padding: 24px 16px;
  text-align: center;
  border-right: 1px solid rgba(201, 169, 110, 0.1);
  min-width: 0;
}
.data-metric:last-child { border-right: none; }
.data-metric--highlight {
  background: rgba(201, 169, 110, 0.06);
}
.data-metric-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  color: var(--cream-100);
  margin-bottom: 8px;
  line-height: 1;
  word-break: break-word;
}
.data-metric--highlight .data-metric-value {
  color: var(--gold-400);
}
.data-metric-label {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(8px, 1vw, 10px);
  letter-spacing: 1px;
  color: rgba(255, 253, 247, 0.4);
}

.data-card-footer {
  padding: 14px 28px;
  border-top: 1px solid rgba(201, 169, 110, 0.1);
}
.data-card-footer p {
  font-size: 11px;
  color: rgba(255, 253, 247, 0.25);
  font-family: var(--font-mono);
  letter-spacing: 0.3px;
}

/* Trust Row */
.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.trust-item { text-align: center; }
.trust-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 700;
  color: var(--gold-400);
  margin-bottom: 4px;
}
.trust-label {
  display: block;
  font-size: 12px;
  color: rgba(255, 253, 247, 0.4);
  font-weight: 300;
  letter-spacing: 0.3px;
}
.trust-divider {
  width: 1px;
  height: 32px;
  background: rgba(201, 169, 110, 0.2);
}


/* ════════════════════════════════════════
   FAQ
   ════════════════════════════════════════ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--cream-300);
}
.faq-item:first-child {
  border-top: 1px solid var(--cream-300);
}
.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 500;
  color: var(--green-800);
  transition: color 0.25s;
  gap: 12px;
}
.faq-trigger:hover { color: var(--green-600); }
.faq-icon {
  font-size: 22px;
  color: var(--gold-500);
  transition: transform 0.3s var(--ease-out);
  flex-shrink: 0;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}
.faq-content p {
  padding: 0 0 24px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  font-weight: 300;
}


/* ════════════════════════════════════════
   CTA
   ════════════════════════════════════════ */
.section--cta {
  text-align: center;
}
.section--cta .container {
  position: relative;
}
.cta-content {
  position: relative;
  z-index: 1;
}
.cta-content h2 {
  font-size: clamp(28px, 4.5vw, 48px);
  color: var(--cream-100);
  margin-bottom: 16px;
}
.cta-content h2 em { color: var(--gold-400); }
.cta-content > p {
  font-size: clamp(15px, 1.5vw, 17px);
  color: rgba(255, 253, 247, 0.55);
  max-width: 440px;
  margin: 0 auto 40px;
  font-weight: 300;
}

.cta-form {
  display: flex;
  align-items: center;
  max-width: 520px;
  margin: 0 auto;
  padding: 6px 6px 6px 24px;
  background: rgba(255, 253, 247, 0.06);
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: 14px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.cta-form:focus-within {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1);
}
.cta-form input {
  flex: 1;
  padding: 0;
  height: 44px;
  background: transparent;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--cream-100);
  min-width: 0;
}
.cta-form input::placeholder {
  color: rgba(255, 253, 247, 0.35);
}
.cta-submit {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  height: 44px;
  background: var(--gold-500);
  color: var(--green-900);
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  white-space: nowrap;
  transition: background 0.25s, transform 0.15s;
  flex-shrink: 0;
}
.cta-submit svg { width: 16px; height: 16px; }
.cta-submit:hover { background: var(--gold-400); }
.cta-submit:active { transform: scale(0.97); }

.cta-disclaimer {
  margin-top: 16px;
  font-size: 12px;
  color: rgba(255, 253, 247, 0.25);
  font-weight: 300;
}

.cta-seal {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}


/* ════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════ */
#footer {
  background: var(--charcoal);
  color: rgba(255, 253, 247, 0.6);
  padding: 64px 0 32px;
  scroll-snap-align: end;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 253, 247, 0.08);
  margin-bottom: 24px;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand { max-width: 300px; flex-shrink: 0; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.footer-tagline {
  font-style: italic;
  font-family: var(--font-display);
  font-size: 14px;
  opacity: 0.5;
}
.footer-links {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--gold-500);
  opacity: 0.6;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.footer-col a {
  font-size: 14px;
  font-weight: 300;
  transition: color 0.25s;
}
.footer-col a:hover { color: var(--gold-500); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p { font-size: 13px; opacity: 0.4; }
.footer-legal {
  display: flex;
  gap: 24px;
}
.footer-legal a {
  font-size: 13px;
  opacity: 0.4;
  transition: opacity 0.25s;
}
.footer-legal a:hover { opacity: 0.8; }

.footer-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  opacity: 0.7;
}
#footer .logo-text {
  font-size: 14px;
  color: rgba(255, 253, 247, 0.7);
}


/* ════════════════════════════════════════
   SCROLL REVEAL
   ════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ════════════════════════════════════════
   RESPONSIVE — SMALL LAPTOP (1280)
   ════════════════════════════════════════ */
@media (max-width: 1280px) {
  .nav-links { gap: 4px; }
  .nav-cta { padding: 8px 18px !important; }
  .logo-tagline { font-size: 10px; }

  .cta-seal { display: none; }
}


/* ════════════════════════════════════════
   RESPONSIVE — LARGE TABLET (1024)
   ════════════════════════════════════════ */
@media (max-width: 1024px) {
  .logo-tagline { display: none; }
  .logo-divider { display: none; }

  .step-connector { width: 40px; }
  .step-card { padding: 32px 20px; }
  .step-card h3 { font-size: 20px; }
  .step-card p { font-size: 14px; }
}


/* ════════════════════════════════════════
   RESPONSIVE — TABLET (900)
   ════════════════════════════════════════ */
@media (max-width: 900px) {
  .steps-grid {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  .step-connector {
    transform: rotate(90deg);
    width: 50px;
    padding-top: 0;
    margin: -4px 0;
  }
  .step-card { max-width: 400px; width: 100%; }

  .footer-links { gap: 48px; }

  .data-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .data-metric {
    border-bottom: 1px solid rgba(201, 169, 110, 0.1);
  }
  .data-metric:nth-child(even) { border-right: none; }
  .data-metric:nth-last-child(-n+2) { border-bottom: none; }

  .prop8-explainer {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pricing-grid {
    gap: 0 16px;
  }
  .pricing-card {
    padding: 32px 24px;
  }
  .pricing-card h3 { font-size: 20px; }
  .pricing-value { font-size: 42px; }
  .pricing-desc { font-size: 14px; }
}


/* ════════════════════════════════════════
   RESPONSIVE — MOBILE (768)
   ════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --nav-height: 60px; }

  /* Loader mobile */
  .loader-seal-wrap { width: 220px; height: 220px; }
  .loader-top-logo { top: 16px; left: 16px; }
  .loader-top-logo img { width: 36px; height: 36px; }
  .loader-tagline { font-size: 13px; }
  .loader-progress { width: 140px; bottom: 32px; }

  /* Fix horizontal scroll/bounce on iOS */
  html {
    scroll-snap-type: y proximity;
    overflow-x: hidden;
  }
  body { overflow-x: hidden; }
  main { overflow-x: hidden; }

  .section {
    min-height: auto;
    display: block;
    padding: 48px 0;
    scroll-snap-align: start;
  }
  .section-header { margin-bottom: 28px; }

  /* Nav mobile menu */
  .nav-inner { padding: 0 20px; }
  .logo-tagline { display: none; }
  .logo-divider { display: none; }
  .menu-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    background: linear-gradient(168deg, rgba(7, 30, 18, 0.98), rgba(11, 43, 26, 0.98));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease-out), visibility 0.35s;
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
  }
  .nav-links a {
    font-size: 20px;
    color: var(--cream-100);
    padding: 12px 24px;
    border-radius: 12px;
  }
  .nav-links a:hover {
    background: rgba(201, 169, 110, 0.08);
  }
  .nav-cta {
    margin-top: 8px;
    font-size: 16px !important;
    padding: 16px 36px !important;
    border-radius: 14px !important;
  }
  .nav-cta svg { width: 16px !important; height: 16px !important; }

  /* Hero — compact to fit iPhone screen */
  #hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding: calc(var(--nav-height) + 24px) 20px 24px;
    position: relative;
    justify-content: center;
  }
  .hero-wrapper {
    height: auto !important;
    scroll-snap-align: start;
  }

  .hero-eyebrow {
    font-size: 9px;
    letter-spacing: 2px;
    gap: 8px;
    margin-bottom: 12px;
  }

  .hero-headline {
    font-size: clamp(26px, 7vw, 36px);
    margin-bottom: 10px;
  }

  .hero-sub {
    font-size: 14px;
    margin-bottom: 14px;
    line-height: 1.5;
  }

  /* County banner — compact */
  .county-banner {
    padding: 8px 14px 8px 10px;
    gap: 8px;
    margin-bottom: 14px;
  }
  .county-banner svg { width: 28px; height: 28px; }
  .county-name { font-size: 14px; }
  .county-label { font-size: 8px; }

  /* Stats — keep 3-column but compact */
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 0;
  }
  .stat-card {
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 10px;
  }
  .stat-number { font-size: 20px; margin-bottom: 4px; }
  .stat-label { font-size: 7px; letter-spacing: 0.8px; }
  .stat-meta { font-size: 9px; }

  /* Search bar stacks */
  .search-bar {
    flex-wrap: wrap;
    padding: 8px;
    border-radius: 12px;
    gap: 0;
  }
  .search-hint {
    margin-top: 6px;
    margin-bottom: 10px;
    font-size: 10px;
  }
  /* Autocomplete mobile */
  .autocomplete-dropdown {
    border-radius: 0 0 12px 12px;
    max-height: min(50vh, 360px);
  }
  .autocomplete-item {
    padding: 12px 16px;
    gap: 12px;
  }
  .search-bar.autocomplete-open {
    border-radius: 12px 12px 0 0;
  }
  body.search-focus-active .search-container {
    transform: translateY(var(--search-lift, 0px)) scale(1);
    max-width: 100%;
  }
  .search-icon {
    margin-left: 10px;
    order: 1;
  }
  .search-input {
    order: 2;
    flex: 1;
    padding: 10px 8px;
    font-size: 14px;
    height: 38px;
  }
  .location-btn {
    order: 3;
    width: 38px;
    height: 38px;
  }
  /* On mobile, tooltip sits to the left instead of above (avoids clipping) */
  .location-btn::after {
    bottom: auto;
    left: auto;
    right: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%) translateX(4px);
  }
  .location-btn::before {
    bottom: auto;
    left: auto;
    right: calc(100%);
    top: 50%;
    transform: translateY(-50%) translateX(4px);
    border: 5px solid transparent;
    border-left-color: var(--green-900);
    border-top-color: transparent;
  }
  .location-btn:hover::after,
  .location-btn:hover::before {
    transform: translateY(-50%) translateX(0);
  }
  .search-submit {
    order: 4;
    width: 100%;
    justify-content: center;
    padding: 12px;
    border-radius: 8px;
    margin-top: 4px;
    height: 42px;
    font-size: 13px;
  }

  .hero-scroll-hint { display: none; }

  /* Sections — compact */
  .container { padding: 0 20px; }

  /* How It Works — compact cards on mobile */
  .steps-grid {
    align-items: stretch;
  }
  .step-card {
    padding: 24px 18px;
  }
  .step-number { font-size: 22px; margin-bottom: 12px; }
  .step-icon { width: 40px; height: 40px; margin-bottom: 12px; }
  .step-card h3 { font-size: 18px; margin-bottom: 8px; }
  .step-card p { font-size: 13px; line-height: 1.5; }
  .step-connector {
    margin: -8px 0;
  }

  /* Data card — tighter */
  .data-card-header { padding: 16px; gap: 12px; }
  .data-card-header h3 { font-size: 17px; }
  .data-metric { padding: 16px 12px; }
  .data-metric-value { font-size: 20px; }
  .data-metric-label { font-size: 8px; }
  .data-card-footer { padding: 10px 16px; }
  .data-card-footer p { font-size: 9px; }
  .county-data-card { margin-bottom: 40px; }

  /* Trust row — compact */
  .trust-row { gap: 12px; }
  .trust-divider { display: none; }
  .trust-item { flex: 1 1 calc(50% - 12px); min-width: 80px; }
  .trust-value { font-size: 20px; }
  .trust-label { font-size: 11px; }

  /* Footer */
  .footer-top {
    flex-direction: column;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  #footer { padding: 48px 0 24px; }

  /* Pricing — keep side by side but tighter */
  .pricing-grid {
    gap: 0 12px;
  }
  .pricing-card {
    padding: 24px 16px;
    border-radius: 12px;
  }
  .pricing-card h3 { font-size: 17px; margin-bottom: 14px; }
  .pricing-value { font-size: 36px; }
  .pricing-dollar { font-size: 18px; }
  .pricing-period { font-size: 12px; }
  .pricing-desc { font-size: 13px; margin-bottom: 16px; }
  .pricing-features li { font-size: 12px; padding: 6px 0; }
  .pricing-features li::before { margin-right: 6px; }
  .pricing-badge { font-size: 8px; letter-spacing: 2px; padding: 3px 10px; margin-bottom: 12px; }
  .pricing-btn { font-size: 13px; height: 44px; padding: 0 16px; border-radius: 8px; }

  /* CTA form stacks */
  .cta-form {
    flex-direction: column;
    padding: 8px;
    gap: 0;
  }
  .cta-form input {
    padding: 14px 16px;
    width: 100%;
    text-align: center;
  }
  .cta-submit {
    width: 100%;
    justify-content: center;
    padding: 14px;
    border-radius: 8px;
  }
  /* Skyline — scale down on mobile */
  .skyline-wrap {
    height: 200px;
  }
  .skyline-svg {
    min-width: 900px;
  }

  /* Prop 8 explainer — tighter */
  .prop8-text p { font-size: 14px; margin-bottom: 12px; line-height: 1.6; }
  .prop8-lead { font-size: 15px !important; }
  .prop8-bar { padding: 14px 16px; border-radius: 10px; }
  .prop8-bar-amount { font-size: 18px; }
  .prop8-bar-label { font-size: 9px; }

  /* FAQ tighter */
  .faq-trigger { font-size: 16px; padding: 14px 0; }
  .faq-content p { font-size: 13px; padding-bottom: 16px; }
}


/* ════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (480)
   ════════════════════════════════════════ */
@media (max-width: 480px) {
  :root { --nav-height: 56px; }

  .container { padding: 0 16px; }

  .logo-text { font-size: 12px; letter-spacing: 2px; }
  .logo-img { width: 32px; height: 32px; border-radius: 50%; }

  .loader-seal-wrap { width: 190px; height: 190px; }
  .loader-tagline { font-size: 12px; letter-spacing: 0.5px; }

  /* Hero — even tighter for smaller phones */
  #hero {
    padding: calc(var(--nav-height) + 18px) 16px 20px;
  }
  .hero-eyebrow { font-size: 8px; letter-spacing: 1.5px; gap: 6px; margin-bottom: 10px; }
  .eyebrow-diamond { display: none; }
  .hero-headline { font-size: 26px; margin-bottom: 8px; }
  .hero-sub { font-size: 13px; line-height: 1.5; margin-bottom: 12px; }

  .county-banner {
    border-radius: 12px;
    padding: 6px 12px 6px 8px;
    gap: 6px;
    margin-bottom: 12px;
  }
  .county-banner svg { width: 24px; height: 24px; }
  .county-name { font-size: 13px; }
  .county-label { font-size: 7px; }

  .stat-number { font-size: 18px; margin-bottom: 3px; }
  .stat-label { font-size: 7px; letter-spacing: 0.6px; }
  .stat-meta { font-size: 8px; }
  .stat-card { padding: 10px 6px; border-radius: 8px; }
  .stats-grid { gap: 6px; }

  .search-input { height: 36px; font-size: 13px; }
  .search-submit { height: 38px; font-size: 12px; padding: 10px; }
  .search-hint { font-size: 9px; margin-top: 4px; margin-bottom: 8px; }

  /* Sections */
  .section { padding: 40px 0; }
  .section-header { margin-bottom: 24px; }
  .section-header h2 { font-size: clamp(22px, 6vw, 28px); margin-bottom: 10px; }
  .section-tag { font-size: 9px; letter-spacing: 2px; margin-bottom: 10px; }
  .section-desc { font-size: 13px; }

  /* Data card */
  .data-card-header h3 { font-size: 15px; }
  .data-card-seal svg { width: 36px; height: 36px; }
  .data-metric { padding: 14px 10px; }
  .data-metric-value { font-size: 16px; }
  .data-metric-label { font-size: 7px; }
  .data-card-footer p { font-size: 8px; }
  .county-data-card { margin-bottom: 28px; }

  /* Steps — very compact */
  .step-card { padding: 20px 14px; }
  .step-number { font-size: 20px; margin-bottom: 10px; }
  .step-icon { width: 36px; height: 36px; margin-bottom: 10px; }
  .step-card h3 { font-size: 16px; margin-bottom: 6px; }
  .step-card p { font-size: 12px; line-height: 1.5; }
  .step-connector { margin: -10px 0; }

  .faq-trigger { font-size: 14px; padding: 12px 0; }
  .faq-content p { font-size: 13px; padding-bottom: 14px; }

  .trust-row { gap: 8px; }
  .trust-value { font-size: 16px; }
  .trust-label { font-size: 10px; }

  .footer-links { gap: 28px; }
  .footer-col a { font-size: 13px; }

  .prop8-bar { padding: 12px 14px; }
  .prop8-bar-amount { font-size: 16px; }
  .prop8-bar-label { font-size: 8px; }
  .prop8-savings-callout { padding: 10px 14px; }
  .prop8-savings-text { font-size: 13px; }

  .pricing-grid { gap: 0 10px; }
  .pricing-card { padding: 20px 12px; }
  .pricing-card h3 { font-size: 15px; margin-bottom: 10px; }
  .pricing-value { font-size: 30px; }
  .pricing-dollar { font-size: 16px; }
  .pricing-period { font-size: 11px; }
  .pricing-desc { font-size: 12px; margin-bottom: 12px; line-height: 1.5; }
  .pricing-features { margin-bottom: 16px; }
  .pricing-features li { font-size: 11px; padding: 5px 0; }
  .pricing-badge { font-size: 7px; padding: 2px 8px; }
  .pricing-btn { font-size: 12px; height: 40px; padding: 0 12px; }

  .skyline-wrap { height: 140px; }
  .skyline-svg { min-width: 700px; }

  /* CTA compact */
  .cta-content h2 { margin-bottom: 12px; }
  .cta-content > p { margin-bottom: 24px; }
  .cta-disclaimer { font-size: 10px; }
}


/* ════════════════════════════════════════
   RESPONSIVE — VERY SMALL (360)
   ════════════════════════════════════════ */
@media (max-width: 360px) {
  .container { padding: 0 12px; }

  #hero { padding: calc(var(--nav-height) + 14px) 12px 16px; }
  .hero-headline { font-size: 22px; }
  .hero-sub { font-size: 12px; margin-bottom: 10px; }
  .hero-eyebrow { margin-bottom: 8px; }

  .stat-card { padding: 8px 4px; }
  .stat-number { font-size: 16px; }
  .stat-label { font-size: 6px; }
  .stat-meta { font-size: 7px; }
  .stats-grid { gap: 4px; }

  .search-input { font-size: 12px; height: 34px; }
  .search-submit { font-size: 12px; padding: 10px; height: 36px; }

  .data-card-grid { grid-template-columns: 1fr; }
  .data-metric { border-right: none; border-bottom: 1px solid rgba(201, 169, 110, 0.1); }
  .data-metric:last-child { border-bottom: none; }

  .step-card { padding: 16px 12px; }
  .step-number { font-size: 18px; margin-bottom: 8px; }
  .step-icon { width: 32px; height: 32px; margin-bottom: 8px; }
  .step-card h3 { font-size: 15px; }
  .step-card p { font-size: 11px; }

  .cta-form input { font-size: 13px; }
  .cta-submit { font-size: 12px; }

  .pricing-grid { gap: 0 8px; }
  .pricing-card { padding: 18px 10px; border-radius: 10px; }
  .pricing-card h3 { font-size: 14px; margin-bottom: 8px; }
  .pricing-value { font-size: 26px; }
  .pricing-dollar { font-size: 14px; }
  .pricing-period { font-size: 10px; margin-top: 4px; }
  .pricing-desc { font-size: 11px; margin-bottom: 10px; }
  .pricing-features li { font-size: 10px; padding: 4px 0; }
  .pricing-features li::before { margin-right: 4px; font-size: 10px; }
  .pricing-badge { font-size: 7px; letter-spacing: 1.5px; }
  .pricing-btn { font-size: 11px; height: 36px; padding: 0 10px; }
}


/* ════════════════════════════════════════
   SHORT VIEWPORTS (MacBook Air, etc.)
   Content must fit within each 100dvh snap frame
   ════════════════════════════════════════ */
@media (max-height: 820px) and (min-width: 769px) {
  /* Hero tightening */
  #hero {
    padding-top: calc(var(--nav-height) + 6px);
    padding-bottom: 12px;
  }
  .hero-eyebrow { margin-bottom: 8px; font-size: 10px; }
  .hero-headline { font-size: clamp(28px, 4.5vw, 44px); margin-bottom: 6px; }
  .hero-sub { font-size: 15px; margin-bottom: 10px; line-height: 1.5; }
  .county-banner { padding: 8px 18px 8px 12px; margin-bottom: 12px; }
  .county-banner svg { width: 28px; height: 28px; }
  .county-name { font-size: 14px; }
  .search-input { height: 38px; padding: 8px 12px; font-size: 14px; }
  .location-btn { width: 38px; height: 38px; }
  .search-submit { height: 38px; font-size: 13px; padding: 0 18px; }
  .search-hint { margin-top: 6px; margin-bottom: 10px; font-size: 11px; }
  .stat-card { padding: 14px 10px; }
  .stat-number { font-size: clamp(20px, 2.5vw, 30px); margin-bottom: 4px; }
  .stat-label { font-size: 8px; }
  .stat-meta { font-size: 11px; }

  /* All sections — compact for short screens, but clear the nav */
  .section { padding: calc(var(--nav-height) + 8px) 0 16px; }
  .section-header { margin-bottom: 24px; }
  .section-header h2 { font-size: clamp(24px, 3.5vw, 36px); margin-bottom: 8px; }
  .section-desc { font-size: 14px; }

  /* Pricing */
  .pricing-card { padding: 24px 20px; }
  .pricing-badge { margin-bottom: 8px; font-size: 9px; padding: 3px 12px; }
  .pricing-card h3 { font-size: 18px; margin-bottom: 10px; }
  .pricing-value { font-size: 36px; }
  .pricing-dollar { font-size: 18px; }
  .pricing-amount { margin-bottom: 10px; }
  .pricing-period { font-size: 12px; margin-top: 4px; }
  .pricing-desc { font-size: 13px; margin-bottom: 12px; line-height: 1.5; }
  .pricing-features { margin-bottom: 12px; }
  .pricing-features li { font-size: 12px; padding: 4px 0; }
  .pricing-btn { height: 40px; font-size: 13px; }

  /* Steps */
  .step-card { padding: 24px 16px; }
  .step-card h3 { font-size: 18px; }
  .step-card p { font-size: 13px; }
  .step-connector { width: 30px; }

  /* FAQ — 7 items must fit in one frame */
  #faq .section-header { margin-bottom: 16px; }
  .faq-trigger { font-size: 15px; padding: 12px 0; }
  .faq-icon { font-size: 18px; }
  .faq-content p { font-size: 13px; }

  /* CTA */
  .cta-content h2 { font-size: clamp(24px, 3.5vw, 36px); }

  /* Prop 8 explainer */
  .prop8-explainer { gap: 32px; }
  .prop8-lead { font-size: 16px; }
  .prop8-text p { font-size: 14px; margin-bottom: 12px; }
  .prop8-bar { padding: 12px 16px; }
}

/* ════════════════════════════════════════
   TALL SCREENS — Keep hero centered
   ════════════════════════════════════════ */
@media (min-height: 900px) and (min-width: 769px) {
  #hero {
    min-height: 100vh;
    min-height: 100dvh;
  }
}

/* Reduce hero zoom intensity on small tablets */
@media (max-width: 900px) and (min-width: 769px) {
  .hero-wrapper {
    --zoom-distance: 200px;
  }
}

/* ════════════════════════════════════════
   LARGE DESKTOP (1440+)
   ════════════════════════════════════════ */
@media (min-width: 1440px) {
  .container {
    max-width: 1200px;
    padding: 0 40px;
  }
  .nav-inner {
    max-width: 1320px;
    padding: 0 48px;
  }
  .hero-content {
    max-width: 920px;
  }
  .search-container {
    max-width: 720px;
  }
  .prop8-explainer {
    max-width: 1020px;
    gap: 64px;
  }
  .pricing-grid {
    max-width: 860px;
    gap: 0 36px;
  }
  .county-data-card {
    max-width: 800px;
  }
  .faq-list {
    max-width: 760px;
  }
  .cta-form {
    max-width: 560px;
  }
  .step-card {
    max-width: 340px;
  }
  .section {
    padding: 120px 0;
  }
}


/* ════════════════════════════════════════
   MODAL OVERLAY
   ════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-out), visibility 0.35s;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 30, 18, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: linear-gradient(168deg, #0e2e1c 0%, var(--green-800) 50%, #1a4a36 100%);
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: 20px;
  padding: 48px 36px 36px;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(201, 169, 110, 0.08) inset;
  transform: translateY(24px) scale(0.96);
  opacity: 0;
  transition: transform 0.45s var(--ease-out), opacity 0.4s var(--ease-out);
  overflow: hidden;
}
.modal-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  border-radius: 20px;
}
.modal-card.enter {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.modal-card.exit {
  transform: translateY(16px) scale(0.97);
  opacity: 0;
  transition: transform 0.3s var(--ease-in-out), opacity 0.25s;
}

.modal-card--results {
  max-width: 540px;
}

.modal-seal {
  margin: 0 auto 20px;
  display: flex;
  justify-content: center;
}

.modal-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold-500);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.modal-tag--success {
  color: var(--green-500);
}

.modal-card h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  color: var(--cream-100);
  margin-bottom: 20px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: rgba(255, 253, 247, 0.4);
  transition: color 0.2s, background 0.2s;
}
.modal-close:hover {
  color: var(--cream-100);
  background: rgba(255, 253, 247, 0.08);
}

/* Address display */
.modal-address-display {
  padding: 16px 24px;
  background: rgba(201, 169, 110, 0.06);
  border: 1px solid rgba(201, 169, 110, 0.15);
  border-radius: 12px;
  margin-bottom: 24px;
}
.modal-address-text {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--cream-100);
  line-height: 1.5;
}

/* Edit form */
.modal-edit-form {
  margin-bottom: 24px;
  animation: modalSlideDown 0.3s var(--ease-out);
}
.modal-edit-input {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 253, 247, 0.06);
  border: 1px solid rgba(201, 169, 110, 0.25);
  border-radius: 12px;
  font-size: 15px;
  color: var(--cream-100);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.modal-edit-input:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.12);
}
.modal-edit-input::placeholder {
  color: rgba(255, 253, 247, 0.3);
}

@keyframes modalSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Modal actions */
.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.25s, transform 0.15s, box-shadow 0.25s;
  cursor: pointer;
  border: none;
}
.modal-btn:active { transform: scale(0.97); }
.modal-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.modal-btn--confirm {
  background: var(--gold-500);
  color: var(--green-900);
}
.modal-btn--confirm:hover {
  background: var(--gold-400);
  box-shadow: 0 4px 20px rgba(201, 169, 110, 0.25);
}

.modal-btn--edit {
  background: rgba(255, 253, 247, 0.06);
  color: rgba(255, 253, 247, 0.7);
  border: 1px solid rgba(201, 169, 110, 0.15);
}
.modal-btn--edit:hover {
  background: rgba(255, 253, 247, 0.1);
  color: var(--cream-100);
  border-color: rgba(201, 169, 110, 0.3);
}


/* ════════════════════════════════════════
   RESULTS MODAL
   ════════════════════════════════════════ */
.results-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  transition: opacity 0.3s;
}
.results-loader-ring {
  position: relative;
}
.results-spinner {
  animation: resultsSpinnerRotate 1.2s linear infinite;
  transform-origin: center;
}
@keyframes resultsSpinnerRotate {
  to { stroke-dashoffset: -40; }
}
.results-loading-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold-500);
  text-transform: uppercase;
}
.results-loading-text {
  font-size: 14px;
  color: rgba(255, 253, 247, 0.45);
  font-weight: 300;
}

/* Results content - entrance animation */
.results-content {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.results-content.enter {
  opacity: 1;
  transform: translateY(0);
}

.results-address {
  font-size: 14px;
  color: rgba(255, 253, 247, 0.5);
  margin-bottom: 28px;
  font-weight: 300;
}

/* Value comparison */
.results-comparison {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 24px;
}
.results-value-card {
  flex: 1;
  padding: 20px 16px;
  background: rgba(255, 253, 247, 0.03);
  border: 1px solid rgba(201, 169, 110, 0.12);
  text-align: center;
  min-width: 0;
}
.results-value-card:first-child {
  border-radius: 12px 0 0 12px;
  border-right: none;
}
.results-value-card:last-child {
  border-radius: 0 12px 12px 0;
  border-left: none;
}
.results-value-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: rgba(255, 253, 247, 0.4);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.results-value-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  color: var(--cream-100);
  line-height: 1;
  margin-bottom: 8px;
  word-break: break-word;
}
.results-value-source {
  display: block;
  font-size: 11px;
  color: rgba(255, 253, 247, 0.3);
  font-weight: 300;
}

.results-vs {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-800);
  border: 1px solid rgba(201, 169, 110, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
  margin: 0 -8px;
}
.results-vs span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--gold-500);
  font-weight: 500;
}

/* Verdict */
.results-verdict {
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  text-align: center;
}
.results-verdict--success {
  background: linear-gradient(135deg, rgba(82, 183, 136, 0.1), rgba(201, 169, 110, 0.06));
  border: 1px solid rgba(82, 183, 136, 0.25);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}
.results-verdict--success::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(82, 183, 136, 0.06) 60deg, transparent 120deg);
  animation: verdictShimmer 4s linear infinite;
  pointer-events: none;
}
@keyframes verdictShimmer {
  to { transform: rotate(360deg); }
}
.results-verdict--neutral {
  background: rgba(201, 169, 110, 0.06);
  border: 1px solid rgba(201, 169, 110, 0.12);
}

.verdict-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.verdict-icon svg { width: 22px; height: 22px; }
.verdict-icon--success {
  background: rgba(82, 183, 136, 0.15);
  color: var(--green-500);
  width: 56px;
  height: 56px;
  border: 2px solid rgba(82, 183, 136, 0.3);
  animation: verdictPulse 2s ease-in-out infinite;
}
.verdict-icon--success svg { width: 28px; height: 28px; }
@keyframes verdictPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(82, 183, 136, 0.2); }
  50% { box-shadow: 0 0 0 10px rgba(82, 183, 136, 0); }
}
.verdict-icon--neutral {
  background: rgba(201, 169, 110, 0.1);
  color: var(--gold-500);
}

/* Success savings callout */
.verdict-savings {
  margin: 16px 0 4px;
}
.verdict-savings-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2.5px;
  color: rgba(82, 183, 136, 0.7);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.verdict-savings-amount {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 42px);
  font-weight: 700;
  color: var(--green-500);
  line-height: 1;
  letter-spacing: -1px;
}
.verdict-savings-period {
  display: block;
  font-size: 12px;
  color: rgba(255, 253, 247, 0.4);
  font-weight: 300;
  margin-top: 4px;
}
.verdict-overpay {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 6px 14px;
  background: rgba(255, 253, 247, 0.04);
  border: 1px solid rgba(255, 253, 247, 0.08);
  border-radius: 20px;
  font-size: 13px;
  color: rgba(255, 253, 247, 0.6);
  font-weight: 300;
}
.verdict-overpay strong {
  color: var(--cream-100) !important;
  font-weight: 600;
}
.verdict-overpay svg {
  width: 14px;
  height: 14px;
  color: var(--gold-500);
  flex-shrink: 0;
}

/* Success modal card glow */
.modal-card--success {
  border-color: rgba(82, 183, 136, 0.3);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(82, 183, 136, 0.1) inset, 0 0 80px rgba(82, 183, 136, 0.06);
}

.results-verdict h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--cream-100);
  margin-bottom: 8px;
}
.results-verdict--success h4 {
  font-size: 22px;
  color: var(--green-500);
  margin-bottom: 4px;
}
.results-verdict p {
  font-size: 14px;
  color: rgba(255, 253, 247, 0.6);
  line-height: 1.6;
  font-weight: 300;
}
.results-verdict strong {
  color: var(--cream-100);
  font-weight: 600;
}
.results-verdict--success strong {
  color: var(--green-500);
}

/* Success comparison card highlights */
.results-comparison--success .results-value-card:first-child {
  border-color: rgba(255, 100, 100, 0.15);
  background: rgba(255, 100, 100, 0.04);
}
.results-comparison--success .results-value-card:first-child .results-value-number {
  color: rgba(255, 180, 180, 0.9);
}
.results-comparison--success .results-value-card:last-child {
  border-color: rgba(82, 183, 136, 0.2);
  background: rgba(82, 183, 136, 0.05);
}
.results-comparison--success .results-value-card:last-child .results-value-number {
  color: var(--green-500);
}
.results-comparison--success .results-vs {
  border-color: rgba(82, 183, 136, 0.3);
  background: rgba(82, 183, 136, 0.1);
}
.results-comparison--success .results-vs span {
  color: var(--green-500);
}

.results-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}


/* ════════════════════════════════════════
   MODAL RESPONSIVE
   ════════════════════════════════════════ */
@media (max-width: 480px) {
  .modal-overlay { padding: 16px; }
  .modal-card {
    padding: 40px 24px 28px;
    border-radius: 16px;
  }
  .modal-card h3 { font-size: 22px; }
  .modal-address-text { font-size: 14px; }
  .modal-btn { font-size: 14px; padding: 12px 20px; }

  .results-comparison { flex-direction: column; gap: 0; }
  .results-value-card:first-child { border-radius: 12px 12px 0 0; border-right: 1px solid rgba(201, 169, 110, 0.12); border-bottom: none; }
  .results-value-card:last-child { border-radius: 0 0 12px 12px; border-left: 1px solid rgba(201, 169, 110, 0.12); border-top: none; }
  .results-vs {
    margin: -8px 0;
    width: 40px;
    height: 40px;
  }
  .results-value-number { font-size: 22px; }
}


/* ════════════════════════════════════════
   SECTION TRANSITIONS
   Colonial-Futuristic Animated Dividers
   ════════════════════════════════════════ */

/* ── Base Transition Wrapper ── */
.section-transition {
  position: relative;
  z-index: 5;
  pointer-events: none;
  margin: 0;
  padding: 0;
  line-height: 0;
  font-size: 0;
}

/* ══ TYPE B: Light-to-Light Ornamental Rule ══ */
.section-transition--rule {
  height: 48px;
  margin-top: -24px;
  margin-bottom: -24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}
.rule-line {
  position: relative;
  width: 80%;
  max-width: 600px;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    rgba(201, 169, 110, 0.35) 15%,
    rgba(201, 169, 110, 0.6) 50%,
    rgba(201, 169, 110, 0.35) 85%,
    transparent
  );
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(201, 169, 110, 0.15);
}
/* Traveling pulse of light */
.rule-line::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -10%;
  width: 20%;
  height: 6px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.9), rgba(212, 175, 55, 1), rgba(201, 169, 110, 0.9), transparent);
  border-radius: 3px;
  animation: rulePulseTravel 4s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(201, 169, 110, 0.4);
}
/* Endpoint dots */
.rule-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 6px rgba(201, 169, 110, 0.4);
}
.rule-dot--left { left: -3px; }
.rule-dot--right { right: -3px; }
/* Colonial diamond motif at center */
.rule-diamond {
  position: relative;
  width: 12px;
  height: 12px;
  background: var(--gold-500);
  transform: rotate(45deg);
  flex-shrink: 0;
  animation: diamondPulse 3s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(201, 169, 110, 0.3);
}
.rule-diamond::before {
  content: '';
  position: absolute;
  inset: -5px;
  border: 1.5px solid rgba(201, 169, 110, 0.5);
}
.rule-diamond::after {
  content: '';
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(201, 169, 110, 0.2);
}

/* ══ TYPE C: Light-to-Dark "Proclamation Fold" ══ */
.section-transition--fold {
  height: 120px;
  margin-top: -1px;
  margin-bottom: -1px;
}
.fold-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(176deg,
    var(--cream-200) 0%,
    #d9cfb8 15%,
    #7a9a85 35%,
    #3d7a5c 55%,
    var(--green-800) 80%,
    #0f3322 100%
  );
}
/* Diagonal skew overlay for "fold" effect */
.fold-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg,
    transparent 40%,
    rgba(201, 169, 110, 0.06) 50%,
    transparent 60%
  );
}
.fold-grid {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 19px,
      rgba(201, 169, 110, 0.08) 19px,
      rgba(201, 169, 110, 0.08) 20px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 19px,
      rgba(201, 169, 110, 0.08) 19px,
      rgba(201, 169, 110, 0.08) 20px
    );
  background-size: 20px 20px;
  animation: gridDrift 10s linear infinite;
  opacity: 0.7;
}
.fold-seal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fold-seal-inner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(201, 169, 110, 0.6);
  background: rgba(201, 169, 110, 0.12);
  animation: sealRotateSlow 20s linear infinite;
  box-shadow: 0 0 15px rgba(201, 169, 110, 0.2);
}
.fold-seal-inner::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 110, 0.35);
}
.fold-seal-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(201, 169, 110, 0.35);
  border-top-color: rgba(201, 169, 110, 0.8);
  border-right-color: rgba(201, 169, 110, 0.5);
  animation: sealRotateSlow 12s linear infinite reverse;
}
/* Gold glow line at the fold crease */
.fold-crease {
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    rgba(201, 169, 110, 0.3) 20%,
    rgba(201, 169, 110, 0.7) 50%,
    rgba(201, 169, 110, 0.3) 80%,
    transparent
  );
  box-shadow: 0 0 20px rgba(201, 169, 110, 0.15), 0 0 6px rgba(201, 169, 110, 0.25);
  transform: translateY(-50%);
}
/* Scan line across the fold */
.fold-crease::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -15%;
  width: 15%;
  height: 6px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 110, 0.8), transparent);
  border-radius: 3px;
  animation: edgeScanLine 5s linear infinite;
  box-shadow: 0 0 10px rgba(201, 169, 110, 0.3);
}

/* ══ TYPE D: Dark-to-Light "Curtain Reveal" ══ */
.section-transition--curtain {
  height: 120px;
  margin-top: -1px;
  margin-bottom: -1px;
}
.curtain-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(176deg,
    #0f3322 0%,
    var(--green-800) 20%,
    #3d7a5c 40%,
    #7a9a85 60%,
    #d9cfb8 85%,
    var(--cream-200) 100%
  );
}
.curtain-filigree {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 10px 10px at 20% 30%, rgba(201, 169, 110, 0.2) 30%, transparent 70%),
    radial-gradient(ellipse 10px 10px at 50% 60%, rgba(201, 169, 110, 0.2) 30%, transparent 70%),
    radial-gradient(ellipse 10px 10px at 80% 40%, rgba(201, 169, 110, 0.2) 30%, transparent 70%),
    radial-gradient(ellipse 6px 12px at 35% 50%, rgba(201, 169, 110, 0.12) 30%, transparent 70%),
    radial-gradient(ellipse 6px 12px at 65% 50%, rgba(201, 169, 110, 0.12) 30%, transparent 70%);
  background-size: 80px 40px;
  animation: filigreeDrift 6s linear infinite;
}
.curtain-sweep {
  position: absolute;
  inset: 0;
  left: -25%;
  width: 35%;
  background: linear-gradient(90deg,
    transparent,
    rgba(201, 169, 110, 0.1) 20%,
    rgba(201, 169, 110, 0.25) 50%,
    rgba(201, 169, 110, 0.1) 80%,
    transparent
  );
  animation: sweepGlow 5s ease-in-out infinite alternate;
}
/* Curtain gold highlight line */
.curtain-gradient::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    rgba(201, 169, 110, 0.2) 20%,
    rgba(201, 169, 110, 0.5) 50%,
    rgba(201, 169, 110, 0.2) 80%,
    transparent
  );
  box-shadow: 0 0 15px rgba(201, 169, 110, 0.1);
  transform: translateY(-50%);
}

/* ══ TYPE E: Dark-to-Darker "Ember Dissolve" ══ */
.section-transition--ember {
  height: 80px;
  margin-top: -1px;
  margin-bottom: -1px;
}
.ember-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    #0f3322 0%,
    var(--green-800) 15%,
    #1a3a2a 35%,
    #1a2a22 55%,
    #1a2020 75%,
    var(--charcoal) 100%
  );
}
.ember-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.ember-dot {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 4px rgba(201, 169, 110, 0.5);
  opacity: 0;
  animation: emberDrift 5s ease-in-out infinite;
}
.ember-dot:nth-child(1) { left: 10%; top: 65%; animation-delay: 0s; }
.ember-dot:nth-child(2) { left: 22%; top: 50%; animation-delay: 0.6s; }
.ember-dot:nth-child(3) { left: 35%; top: 70%; animation-delay: 1.2s; }
.ember-dot:nth-child(4) { left: 48%; top: 40%; animation-delay: 1.8s; }
.ember-dot:nth-child(5) { left: 60%; top: 60%; animation-delay: 2.4s; }
.ember-dot:nth-child(6) { left: 72%; top: 45%; animation-delay: 3.0s; }
.ember-dot:nth-child(7) { left: 84%; top: 55%; animation-delay: 3.6s; }
.ember-dot:nth-child(8) { left: 55%; top: 75%; animation-delay: 4.2s; }
.ember-edge {
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    rgba(201, 169, 110, 0.2) 25%,
    rgba(201, 169, 110, 0.4) 50%,
    rgba(201, 169, 110, 0.2) 75%,
    transparent
  );
  box-shadow: 0 0 8px rgba(201, 169, 110, 0.1);
}

/* ══ KEYFRAMES ══ */
@keyframes edgeScanLine {
  0%   { left: -20%; }
  100% { left: 120%; }
}
@keyframes beaconPulse {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50%      { opacity: 0.65; transform: scale(1.5); }
}
@keyframes rulePulseTravel {
  0%   { left: -20%; }
  100% { left: 110%; }
}
@keyframes diamondPulse {
  0%, 100% { opacity: 0.6; transform: rotate(45deg) scale(1); box-shadow: 0 0 8px rgba(201, 169, 110, 0.2); }
  50%      { opacity: 1;   transform: rotate(45deg) scale(1.2); box-shadow: 0 0 16px rgba(201, 169, 110, 0.5); }
}
@keyframes gridDrift {
  0%   { background-position: 0 0, 0 0; }
  100% { background-position: 20px 20px, 20px 20px; }
}
@keyframes sealRotateSlow {
  to { transform: rotate(360deg); }
}
@keyframes filigreeDrift {
  0%   { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; }
  100% { background-position: 80px 0, 80px 0, 80px 0, 80px 0, 80px 0; }
}
@keyframes sweepGlow {
  0%   { left: -35%; }
  100% { left: 100%; }
}
@keyframes emberDrift {
  0%   { opacity: 0; transform: translateY(0) scale(1); }
  20%  { opacity: 0.8; transform: translateY(-4px) scale(1.2); }
  60%  { opacity: 0.4; transform: translateY(-18px) translateX(6px) scale(0.8); }
  100% { opacity: 0; transform: translateY(-35px) translateX(12px) scale(0.4); }
}


/* ── Transition Responsive: 768px ── */
@media (max-width: 768px) {
  /* On mobile, sections are block-flow — no snap, no overlap tricks.
     Transitions sit naturally in the flow with 0 margins. */
  .section-transition--fold,
  .section-transition--curtain {
    height: 80px;
    margin-top: 0;
    margin-bottom: 0;
  }
  .section-transition--ember {
    height: 50px;
    margin-top: 0;
    margin-bottom: 0;
  }
  .section-transition--rule {
    height: 0;
    margin-top: 0;
    margin-bottom: 0;
  }
  .fold-seal {
    width: 40px;
    height: 40px;
  }
  .fold-seal-inner { width: 18px; height: 18px; }
}

/* ── Transition Responsive: 480px ── */
@media (max-width: 480px) {
  .section-transition--fold,
  .section-transition--curtain {
    height: 60px;
  }
  .section-transition--ember {
    height: 36px;
  }
  .fold-seal {
    width: 28px;
    height: 28px;
  }
  .fold-seal-inner { width: 12px; height: 12px; }
  .fold-seal-ring { display: none; }
  .ember-dot:nth-child(n+6) { display: none; }
  .rule-line { width: 60%; }
  .rule-diamond { width: 9px; height: 9px; }
}

/* ── Transition Responsive: 360px ── */
@media (max-width: 360px) {
  .section-transition--fold,
  .section-transition--curtain {
    height: 44px;
  }
  .section-transition--ember {
    height: 28px;
  }
  .fold-seal { display: none; }
  .curtain-sweep { animation-duration: 10s; }
  .ember-particles { display: none; }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  .section-reveal-edge::before,
  .rule-line::before,
  .fold-grid,
  .fold-seal-inner,
  .fold-seal-ring,
  .fold-crease::before,
  .curtain-filigree,
  .curtain-sweep,
  .ember-dot,
  .skyline-svg circle {
    animation: none !important;
  }
  .rule-diamond {
    animation: none !important;
    opacity: 0.6;
    transform: rotate(45deg);
  }
}


/* ════════════════════════════════════════
   PRINT
   ════════════════════════════════════════ */
@media print {
  #loader, #nav, .hero-scroll-hint, .hero-grain, .cta-seal,
  .section-divider, .menu-toggle, .modal-overlay,
  .section-transition { display: none; }
  .section--dark { background: #fff; color: #000; }
  .anim-fade-up, .anim-fade-down { opacity: 1; transform: none; animation: none; }
  .reveal { opacity: 1; transform: none; }
}
