/* ============================================================
   River Murray Sky Watch — deep space theme
   ============================================================ */

:root {
  --bg: #05060e;
  --bg-2: #0a0d1f;
  --bg-3: #10142b;
  --panel: rgba(20, 25, 52, 0.55);
  --panel-border: rgba(120, 140, 255, 0.14);
  --text: #e8ecff;
  --text-dim: #9aa3c7;
  --text-faint: #6b7396;
  --accent: #7ee7ff;
  --accent-2: #b18cff;
  --accent-3: #ffd9a0;
  --good: #7dffc7;
  --radius: 18px;
  --font: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "Consolas", monospace;
}

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    radial-gradient(1200px 600px at 85% -5%, rgba(95, 60, 180, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(30, 90, 160, 0.14), transparent 60%);
  background-attachment: fixed;
}

::selection { background: rgba(126, 231, 255, 0.3); }

.container { width: min(1160px, 92vw); margin: 0 auto; }
.container-narrow { width: min(760px, 92vw); }

/* ---------- preview banner ---------- */
.preview-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  display: flex; align-items: center; justify-content: center;
  min-height: 32px; padding: 4px 12px;
  background: linear-gradient(90deg, rgba(122, 82, 20, 0.92), rgba(94, 60, 16, 0.92));
  border-bottom: 1px solid rgba(255, 217, 160, 0.35);
  color: #ffe3b3; font-size: 0.72rem; letter-spacing: 0.05em;
  text-align: center;
}
.preview-banner strong { color: #ffd9a0; text-transform: uppercase; letter-spacing: 0.14em; margin-right: 0.4em; }
.banner-short { display: none; }
@media (max-width: 640px) {
  .banner-full { display: none; }
  .banner-short { display: inline; }
}

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 32px 0 auto 0; z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(5, 6, 14, 0.55);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--panel-border); background: rgba(5, 6, 14, 0.8); }
.nav-inner {
  width: min(1160px, 92vw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 0;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--text); text-decoration: none; font-size: 1.05rem; letter-spacing: 0.02em;
}
.brand strong { color: var(--accent); font-weight: 600; }
.brand-mark { width: 28px; height: 28px; color: var(--accent); }
.nav-links { display: flex; gap: 1.6rem; align-items: center; }
.nav-links a, .nav-drop-btn {
  color: var(--text-dim); text-decoration: none; font-size: 0.92rem;
  letter-spacing: 0.04em; transition: color .2s;
}
.nav-links a:hover, .nav-drop-btn:hover, .nav-drop-btn[aria-expanded="true"] { color: var(--accent); }

/* ---------- sites dropdown ---------- */
.nav-dropdown { position: relative; }
/* invisible bridge so the pointer never leaves the hover zone
   while travelling from the button down to the menu */
.nav-dropdown::after {
  content: ""; position: absolute; top: 100%; left: -12px; right: -12px;
  height: 18px;
}
.nav-drop-btn {
  background: none; border: 0; cursor: pointer; font-family: var(--font);
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 8px 0; /* generous hit area */
}
.nav-drop-btn .chev {
  width: 7px; height: 7px; border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px);
  transition: transform .2s;
}
.nav-drop-btn[aria-expanded="true"] .chev { transform: rotate(225deg) translateY(-1px); }
.nav-menu {
  display: none; position: absolute; top: calc(100% + 14px); right: 0; z-index: 60;
  min-width: 360px; padding: 0.7rem;
  background: rgba(10, 13, 31, 0.97);
  border: 1px solid var(--panel-border); border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.6);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.nav-menu.open { display: block; }
.nav-menu-item {
  display: block; padding: 0.45rem 0.8rem; border-radius: 8px;
  color: var(--text-dim); font-size: 0.88rem;
}
.nav-menu-item:hover { background: rgba(126,231,255,0.08); color: var(--accent); }
.nav-menu-overview { font-weight: 600; color: var(--text); }
.nav-menu-sep { height: 1px; background: var(--panel-border); margin: 0.45rem 0.3rem; }
.nav-menu-sites { display: grid; grid-template-columns: 1fr 1fr; }
.nav-menu-sites .nav-menu-item { font-size: 0.84rem; }
.nav-menu-loading { display: block; padding: 0.45rem 0.8rem; color: var(--text-faint); font-size: 0.82rem; }
.ref-star { color: var(--accent-3); font-size: 0.75rem; }
/* hover to open on devices with a real pointer */
@media (hover: hover) and (min-width: 861px) {
  .nav-dropdown:hover .nav-menu { display: block; }
}
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: .25s; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
#starfield { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-nebula {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 380px at 72% 22%, rgba(140, 90, 255, 0.16), transparent 65%),
    radial-gradient(600px 340px at 24% 68%, rgba(60, 160, 255, 0.12), transparent 65%),
    linear-gradient(to bottom, transparent 55%, var(--bg) 96%);
}
.hero-content { position: relative; z-index: 2; padding: 7rem 1.5rem 4rem; max-width: 900px; }
.hero-eyebrow {
  color: var(--accent); letter-spacing: 0.28em; text-transform: uppercase;
  font-size: 0.72rem; margin-bottom: 1.4rem; font-weight: 500;
}
.hero-title {
  font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.05;
  font-weight: 700; letter-spacing: -0.02em; margin-bottom: 1.3rem;
  text-shadow: 0 0 60px rgba(126, 231, 255, 0.25);
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { color: var(--text-dim); font-size: clamp(1rem, 2vw, 1.2rem); max-width: 620px; margin: 0 auto 2rem; }

.hero-live {
  display: inline-flex; align-items: center; gap: 1.1rem;
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: 999px; padding: 0.7rem 1.5rem 0.7rem 1rem;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  margin-bottom: 2.2rem;
  box-shadow: 0 0 40px rgba(126, 231, 255, 0.08), inset 0 1px 0 rgba(255,255,255,0.06);
}
.hero-live-num { font-family: var(--mono); font-size: 1.7rem; font-weight: 500; color: var(--accent); display: flex; align-items: baseline; gap: 0.5rem; }
.hero-live-num small { font-size: 0.68rem; color: var(--text-faint); letter-spacing: 0.06em; }
.hero-live-meta { display: flex; align-items: center; gap: 0.55rem; color: var(--text-dim); font-size: 0.85rem; text-align: left; max-width: 260px; }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--good); flex: none; box-shadow: 0 0 0 0 rgba(125, 255, 199, 0.5); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(125,255,199,0); } 100% { box-shadow: 0 0 0 0 rgba(125,255,199,0); } }

.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; text-decoration: none; font-family: var(--font);
  border-radius: 999px; padding: 0.85rem 1.9rem; font-size: 0.95rem;
  letter-spacing: 0.03em; cursor: pointer; border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn-primary {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  color: #071018; font-weight: 600;
  box-shadow: 0 8px 30px rgba(126, 231, 255, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(126, 231, 255, 0.4); }
.btn-ghost { color: var(--text); border-color: var(--panel-border); background: rgba(255,255,255,0.03); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-small {
  padding: 0.45rem 1.1rem; font-size: 0.82rem; background: rgba(255,255,255,0.04);
  color: var(--text-dim); border-color: var(--panel-border);
}
.btn-small:hover:not(:disabled) { color: var(--accent); border-color: var(--accent); }
.btn-small:disabled { opacity: 0.35; cursor: default; }

.scroll-cue {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  width: 26px; height: 44px; border: 1.5px solid var(--text-faint); border-radius: 14px;
  z-index: 2;
}
.scroll-cue span {
  position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--accent); animation: cue 1.8s infinite;
}
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- sections ---------- */
.section { padding: 6.5rem 0; position: relative; }
.section-alt { background: linear-gradient(to bottom, transparent, rgba(16, 20, 43, 0.5) 18%, rgba(16, 20, 43, 0.5) 82%, transparent); }
.section-head { margin-bottom: 3rem; max-width: 720px; }
.kicker {
  color: var(--accent-2); text-transform: uppercase; letter-spacing: 0.26em;
  font-size: 0.7rem; font-weight: 600; margin-bottom: 0.7rem;
}
.section h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
.section-sub { color: var(--text-dim); margin-top: 0.9rem; }
.accent { color: var(--accent); }
.h-inline { font-size: 1.25rem; margin-bottom: 0.9rem; color: var(--accent); }

/* ---------- stat cards ---------- */
.stat-grid {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.stat-card {
  position: relative; overflow: hidden;
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: var(--radius); padding: 1.4rem 1.4rem 1.2rem;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .25s, border-color .25s;
}
.stat-card:hover { transform: translateY(-4px); border-color: rgba(126, 231, 255, 0.35); }
.stat-hero { grid-row: span 1; }
.stat-label {
  color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.66rem; font-weight: 600; margin-bottom: 0.7rem;
}
.stat-value { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.stat-value span { font-family: var(--mono); font-size: 2.3rem; font-weight: 500; color: var(--text); line-height: 1; }
.stat-hero .stat-value span { font-size: 3rem; color: var(--accent); text-shadow: 0 0 30px rgba(126, 231, 255, 0.45); }
.stat-value small { color: var(--text-faint); font-size: 0.72rem; }
.stat-note { color: var(--text-faint); font-size: 0.76rem; margin-top: 0.7rem; line-height: 1.45; }
.stat-glow {
  position: absolute; inset: auto -30% -60% -30%; height: 120%;
  background: radial-gradient(closest-side, rgba(126, 231, 255, 0.14), transparent);
  pointer-events: none;
}
.stat-value canvas { width: 46px; height: 46px; }

.bortle-meter { display: flex; gap: 4px; margin-top: 0.9rem; }
.bortle-meter i {
  height: 5px; flex: 1; border-radius: 3px; background: rgba(255,255,255,0.08);
}
.bortle-meter i.on { background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 8px rgba(126,231,255,0.5); }

.compare-strip {
  margin-top: 2.2rem; text-align: center; color: var(--text-dim);
  font-size: 1.02rem;
}
.compare-strip strong { color: var(--accent-3); font-family: var(--mono); font-weight: 500; }

/* ---------- chart panels ---------- */
.chart-panel {
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: var(--radius); padding: 1.4rem;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.chart-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap;
}
.chart-title { text-align: center; }
.chart-title strong { display: block; font-size: 1.05rem; }
.chart-title span { color: var(--text-faint); font-size: 0.78rem; }
.chart-wrap { position: relative; height: 380px; }
.chart-wrap-short { height: 300px; }
.chart-wrap canvas { width: 100%; height: 100%; display: block; }
.chart-tooltip {
  position: absolute; pointer-events: none; z-index: 5;
  background: rgba(8, 10, 24, 0.92); border: 1px solid var(--panel-border);
  border-radius: 10px; padding: 0.55rem 0.8rem; font-size: 0.78rem;
  color: var(--text); white-space: nowrap; transform: translate(-50%, -110%);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.chart-tooltip .tt-title { color: var(--text-faint); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; }
.chart-tooltip .tt-value { font-family: var(--mono); color: var(--accent); }
.chart-legend { display: flex; gap: 1.6rem; margin-top: 0.9rem; flex-wrap: wrap; color: var(--text-faint); font-size: 0.76rem; }
.sw { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.sw-sqm { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.sw-band { background: rgba(255,255,255,0.25); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-top: 1.4rem; align-items: stretch; }
.two-col-wide { gap: 4rem; margin-top: 0; align-items: start; }

/* ---------- insights ---------- */
.insight-panel {
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: var(--radius); padding: 1.6rem;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.insight-panel h3 { font-size: 1.05rem; margin-bottom: 1rem; color: var(--accent); }
.insight-list { list-style: none; display: grid; gap: 0.9rem; }
.insight-list li {
  padding-left: 1.2rem; position: relative; color: var(--text-dim);
  font-size: 0.9rem; line-height: 1.5;
}
.insight-list li::before {
  content: "✦"; position: absolute; left: 0; top: 0; color: var(--accent-2); font-size: 0.8rem;
}
.insight-list strong { color: var(--text); font-family: var(--mono); font-weight: 500; }

/* ---------- understand ---------- */
.scale-bar { margin: 2.4rem 0 0; padding-bottom: 3.4rem; position: relative; }
.scale-bar-track {
  height: 12px; border-radius: 8px;
  background: linear-gradient(90deg, #4a3b16 0%, #31406b 35%, #16204a 65%, #02030a 100%);
  border: 1px solid var(--panel-border);
}
.scale-bar-marker {
  position: absolute; top: -10px; width: 3px; height: 32px;
  background: var(--accent); box-shadow: 0 0 12px var(--accent); border-radius: 2px;
  transition: left 1s ease;
}
.scale-bar-marker span {
  position: absolute; top: -1.5rem; left: 50%; transform: translateX(-50%);
  font-size: 0.72rem; color: var(--accent); white-space: nowrap; letter-spacing: 0.08em;
}
.scale-bar-labels { display: flex; justify-content: space-between; margin-top: 0.7rem; color: var(--text-faint); font-size: 0.8rem; font-family: var(--mono); }
.scale-bar-labels small { color: var(--text-faint); font-family: var(--font); font-size: 0.66rem; }
.scale-bar-labels span { text-align: center; }

.bortle-list { list-style: none; display: grid; gap: 0.45rem; margin-top: 0.4rem; }
.bortle-list li {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.5rem 0.8rem; border-radius: 10px; font-size: 0.86rem; color: var(--text-dim);
  border: 1px solid transparent;
}
.bortle-list li.active {
  background: rgba(126, 231, 255, 0.07); border-color: rgba(126, 231, 255, 0.3);
  color: var(--text);
}
.bortle-list .b-num {
  font-family: var(--mono); width: 2rem; height: 2rem; flex: none;
  display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--panel-border); color: var(--accent); font-size: 0.85rem;
}
.bortle-list li.active .b-num { background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: #071018; font-weight: 600; }

/* ---------- network ---------- */
.site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.1rem; }
.site-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: var(--radius); padding: 1.3rem;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
a.site-card.live:hover { transform: translateY(-4px); border-color: rgba(126, 231, 255, 0.4); box-shadow: 0 10px 34px rgba(126,231,255,0.10); }
.site-card.live { border-color: rgba(125, 255, 199, 0.35); box-shadow: 0 0 30px rgba(125, 255, 199, 0.06); }
.site-card { transition: transform .25s, border-color .25s, box-shadow .25s; }
.site-card.soon { opacity: 0.45; border-style: dashed; }
.site-status { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 0.7rem; }
.site-card.live .site-status { color: var(--good); }
.site-card.soon .site-status { color: var(--text-faint); }
.site-card h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.site-card p { color: var(--text-dim); font-size: 0.8rem; }
.site-coords { font-family: var(--mono); font-size: 0.7rem; color: var(--text-faint); margin-top: 0.4rem; margin-bottom: 0.4rem; }
.site-stat { display: flex; justify-content: space-between; margin-top: 0.55rem; padding-top: 0.5rem; border-top: 1px solid var(--panel-border); font-size: 0.78rem; color: var(--text-faint); }
.site-stat strong { font-family: var(--mono); color: var(--accent); font-weight: 500; }
.ref-chip, .sim-chip {
  font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--panel-border); border-radius: 999px; padding: 0.1rem 0.5rem;
  color: var(--accent-3); margin-left: 0.35rem;
}
.sim-chip { color: var(--text-faint); }

/* ---------- map ---------- */
.chart-wrap-map { height: 480px; }
.chart-wrap-map canvas { cursor: default; }
.sw-band-bright { background: #ffc98a; box-shadow: 0 0 6px rgba(255,201,138,0.7); }
.legend-note { margin-left: auto; font-style: italic; }

/* Leaflet + OpenStreetMap (CARTO dark basemap) */
.leaflet-map {
  height: 480px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--panel-border);
  background: var(--bg-2);
}
.map-dot-wrap { background: none; border: none; }
.map-dot {
  display: block; width: 12px; height: 12px; border-radius: 50%;
  background: var(--dot, #7ee7ff);
  box-shadow: 0 0 10px var(--dot, #7ee7ff), 0 0 3px #fff inset;
  border: 1.5px solid rgba(255,255,255,0.85);
}
.map-dot-ref { outline: 2px solid rgba(255,255,255,0.75); outline-offset: 3px; }
.map-label {
  background: rgba(8, 10, 24, 0.72); border: none; box-shadow: none;
  color: var(--text); font-family: var(--font); font-size: 10.5px; font-weight: 500;
  padding: 1px 6px; border-radius: 6px; letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}
.map-label::before { display: none; }
.leaflet-popup-content-wrapper {
  background: rgba(12, 15, 32, 0.96); color: var(--text);
  border: 1px solid var(--panel-border); border-radius: 12px;
  box-shadow: 0 10px 34px rgba(0,0,0,0.6);
}
.leaflet-popup-tip { background: rgba(12, 15, 32, 0.96); border: 1px solid var(--panel-border); }
.leaflet-popup-content { font-family: var(--font); font-size: 0.85rem; margin: 12px 16px; }
.map-popup strong { font-size: 1rem; }
.map-popup-stats { display: grid; gap: 2px; margin: 0.5rem 0; color: var(--text-dim); font-size: 0.78rem; }
.map-popup-stats b { color: var(--accent); font-family: var(--mono); font-weight: 500; }
.map-popup a { color: var(--accent); text-decoration: none; font-weight: 600; font-size: 0.82rem; }
.map-popup a:hover { text-decoration: underline; }
.leaflet-container a.leaflet-popup-close-button { color: var(--text-dim); }
.leaflet-bar a { background: rgba(12,15,32,0.9); color: var(--text); border-color: var(--panel-border); }
.leaflet-bar a:hover { background: rgba(30,36,66,0.95); }
.leaflet-control-attribution {
  background: rgba(8,10,24,0.7) !important; color: var(--text-faint) !important;
  font-size: 9.5px !important;
}
.leaflet-control-attribution a { color: var(--text-dim) !important; }

/* ---------- site page hero ---------- */
.site-hero {
  position: relative; padding: 8.5rem 0 3.5rem; overflow: hidden;
  background:
    radial-gradient(700px 300px at 80% 0%, rgba(140, 90, 255, 0.14), transparent 65%),
    radial-gradient(500px 260px at 10% 40%, rgba(60, 160, 255, 0.10), transparent 65%);
}
.site-hero-inner { position: relative; z-index: 2; }
.site-hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -0.02em; margin: 0.6rem 0 0.4rem; }
.site-hero-coords { font-family: var(--mono); color: var(--text-faint); font-size: 0.82rem; margin-bottom: 1.4rem; }
.back-link { color: var(--text-dim); text-decoration: none; font-size: 0.85rem; letter-spacing: 0.04em; }
.back-link:hover { color: var(--accent); }
.sim-badge {
  display: inline-block; font-size: 0.72rem; color: var(--accent-3);
  border: 1px dashed rgba(255, 217, 160, 0.4); border-radius: 999px;
  padding: 0.3rem 0.9rem; margin-bottom: 1.4rem;
}
.stat-value-text span { font-size: 1.5rem; font-family: var(--font); font-weight: 600; color: var(--accent); }

/* ---------- about / footer ---------- */
#about p { color: var(--text-dim); margin-bottom: 1.2rem; }
#about p strong, #understand p strong { color: var(--text); }
#understand p { color: var(--text-dim); margin-bottom: 1rem; }
.fine-print { font-size: 0.78rem; color: var(--text-faint) !important; border-top: 1px solid var(--panel-border); padding-top: 1.2rem; margin-top: 2rem; }

.footer { border-top: 1px solid var(--panel-border); padding: 2.6rem 0; background: rgba(5,6,14,0.6); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer p { color: var(--text-faint); font-size: 0.82rem; }
.footer-meta { font-family: var(--mono); font-size: 0.72rem; text-align: right; }

/* ---------- reveal animation ---------- */
.section .container > *, .stat-card, .chart-panel, .site-card { will-change: transform, opacity; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .two-col, .two-col-wide { grid-template-columns: 1fr; gap: 1.4rem; }
  .chart-wrap { height: 300px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 90px; right: 0; left: 0;
    flex-direction: column; gap: 0; padding: 0.5rem 4vw 1.2rem;
    align-items: stretch;
    background: rgba(5, 6, 14, 0.96); border-bottom: 1px solid var(--panel-border);
    transform: translateY(-130%); transition: transform .3s ease;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 0.8rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
  /* dropdown goes inline in the mobile menu */
  .nav-dropdown { border-bottom: 1px solid rgba(255,255,255,0.05); }
  .nav-dropdown::after { display: none; } /* bridge not needed (and would block taps) */
  .nav-drop-btn { padding: 0.8rem 0; width: 100%; justify-content: space-between; }
  .nav-menu {
    position: static; min-width: 0; margin-bottom: 0.6rem;
    background: rgba(255,255,255,0.03); box-shadow: none;
  }
  .nav-menu-sites { grid-template-columns: 1fr 1fr; }
  .nav-menu-item { font-size: 0.85rem; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero-live { flex-direction: column; gap: 0.4rem; border-radius: 22px; padding: 1rem 1.4rem; }
  .hero-live-meta { max-width: none; text-align: center; }
  .section { padding: 4.5rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse-dot, .scroll-cue span { animation: none; }
}

/* screenshot/test mode (?snap) */
.snap .hero { min-height: 720px; }
.snap .scroll-cue { display: none; }
