/* =========================================================
   UFORADAR — design tokens
   ========================================================= */
:root {
  /* Brand palette (from the UFORADAR logo) */
  --void: #02070F;
  --deep: #06121F;
  --panel: #0A1C2E;
  --panel-2: #0F2740;
  --cyan: #22D8F5;
  --cyan-hi: #7CEBFB;
  --chrome: #EAF6FC;
  --gold: #F7B955;

  /* Semantic */
  --bg: var(--void);
  --surface: var(--deep);
  --surface-2: var(--panel);
  --text: var(--chrome);
  --text-muted: #9DB9CB;
  --line: rgba(34, 216, 245, .16);
  --line-strong: rgba(34, 216, 245, .42);
  --primary: var(--cyan);
  --on-primary: #021018;
  --recent: var(--gold);
  --danger: #FF8A8A;

  /* Type */
  --font-display: "Exo 2", "Segoe UI", system-ui, sans-serif;
  --font-body: "Barlow", "Segoe UI", system-ui, sans-serif;
  --fs-sm: .875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.3125rem;
  --fs-xl: 1.75rem;
  --fs-2xl: clamp(1.9rem, 1.3rem + 2vw, 2.6rem);
  --fs-hero: clamp(2.6rem, 1.4rem + 5vw, 5.2rem);

  /* Space (8pt) */
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem;
  --s6: 2rem; --s7: 3rem; --s8: 4rem; --s9: 6rem;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --t-fast: 160ms;
  --t: 240ms;

  --z-map: 1; --z-nav: 100; --z-menu: 110;
  --nav-h: 68px;
}

/* =========================================================
   Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--cyan-hi); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--cyan-hi); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s4); top: -60px; z-index: 999;
  background: var(--primary); color: var(--on-primary); padding: var(--s2) var(--s4);
  border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--s4); }

.container { width: min(1240px, 100% - 2 * var(--s5)); margin-inline: auto; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 44px; padding: 0 var(--s5);
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: var(--fs-base); text-decoration: none; white-space: nowrap;
  cursor: pointer; touch-action: manipulation;
  transition: background-color var(--t-fast) var(--ease-out), border-color var(--t-fast), color var(--t-fast), box-shadow var(--t);
}
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--cyan-hi); box-shadow: 0 0 24px rgba(34, 216, 245, .45); }
.btn--ghost { background: rgba(6, 18, 31, .55); border-color: var(--line-strong); color: var(--chrome); }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan-hi); }
.btn--sm { min-height: 40px; padding: 0 var(--s4); font-size: var(--fs-sm); }
.btn--lg { min-height: 52px; padding: 0 var(--s6); font-size: var(--fs-md); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.iconbtn {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line-strong); color: var(--chrome);
  cursor: pointer; transition: border-color var(--t-fast), color var(--t-fast);
}
.iconbtn svg { width: 20px; height: 20px; }
.iconbtn:hover { border-color: var(--cyan); color: var(--cyan-hi); }

/* =========================================================
   Nav
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: rgba(2, 7, 15, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  height: var(--nav-h);
  width: min(1240px, 100% - 2 * var(--s5)); margin-inline: auto;
  display: flex; align-items: center; gap: var(--s6);
}
.brand { display: inline-flex; align-items: center; gap: var(--s3); text-decoration: none; color: var(--cyan); }
.brand__mark { width: 38px; height: 38px; filter: drop-shadow(0 0 8px rgba(34, 216, 245, .5)); }
.brand__word {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: 1.45rem; letter-spacing: .01em; line-height: 1;
}
.brand__ufo {
  background: linear-gradient(180deg, #FFFFFF 0%, #D5E4EE 55%, #9FB6C6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand__radar { color: var(--cyan); text-shadow: 0 0 18px rgba(34, 216, 245, .55); }

.nav__links { display: flex; gap: var(--s5); margin-right: auto; }
.nav__links a {
  color: var(--text-muted); text-decoration: none; font-weight: 500;
  padding: var(--s2) 0; transition: color var(--t-fast);
}
.nav__links a:hover, .nav__links a.is-current { color: var(--chrome); }
.nav__links a.is-current { box-shadow: inset 0 -2px 0 var(--cyan); }
.nav__actions { display: flex; align-items: center; gap: var(--s3); }
.nav__toggle {
  display: none; width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: transparent; border: 1px solid var(--line-strong); color: var(--chrome); cursor: pointer;
  place-items: center;
}
.nav__toggle svg { width: 22px; height: 22px; }
.mobile-menu {
  display: grid; padding: var(--s3) var(--s5) var(--s5);
  border-top: 1px solid var(--line);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  color: var(--chrome); text-decoration: none; font-weight: 500; font-size: var(--fs-md);
  padding: var(--s3) 0; border-bottom: 1px solid var(--line);
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100dvh - var(--nav-h));
  display: flex; align-items: center;
  padding: var(--s8) 0 var(--s9);
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(2, 7, 15, .96) 0%, rgba(2, 7, 15, .78) 38%, rgba(2, 7, 15, .25) 70%, rgba(2, 7, 15, .55) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(2, 7, 15, 0) 30%),
    url("../assets/hero-earth.png") 62% 40% / cover no-repeat;
}
.hero__inner {
  width: min(1240px, 100% - 2 * var(--s5)); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center; gap: var(--s7);
}
.hero__status {
  display: inline-flex; align-items: center; gap: var(--s2);
  color: var(--text-muted); font-size: var(--fs-sm); font-weight: 500;
  margin-bottom: var(--s5);
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 0 rgba(247, 185, 85, .6);
  animation: live 2.4s ease-out infinite;
}
@keyframes live {
  0% { box-shadow: 0 0 0 0 rgba(247, 185, 85, .55); }
  100% { box-shadow: 0 0 0 10px rgba(247, 185, 85, 0); }
}
.hero__title {
  font-style: italic; font-weight: 800;
  font-size: var(--fs-hero); letter-spacing: -.01em; line-height: 1;
  text-wrap: balance;
  background: linear-gradient(180deg, #FFFFFF 10%, #CFE3EE 60%, #8FB2C6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 24px rgba(34, 216, 245, .25));
  padding-bottom: .08em;
}
.hero__lede {
  margin-top: var(--s5); max-width: 34rem;
  color: #C6DAE6; font-size: var(--fs-md); line-height: 1.6;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }

/* Search */
.search {
  position: relative; display: flex; align-items: center; gap: var(--s2);
  margin-top: var(--s6); max-width: 34rem;
  background: rgba(6, 18, 31, .82); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 6px 6px 6px var(--s6);
  transition: border-color var(--t-fast), box-shadow var(--t);
}
.search:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(34, 216, 245, .14); }
.search__icon { position: absolute; left: 18px; width: 18px; height: 18px; color: var(--text-muted); }
.search input {
  flex: 1; min-width: 0; height: 44px; padding: 0 var(--s3);
  background: transparent; border: 0; outline: none; font-size: var(--fs-base);
}
.search input::placeholder { color: #7894A8; }
.search input:focus-visible { outline: none; }

/* Radar scope — the signature element */
.scope { margin: 0; justify-self: center; width: min(100%, 520px); }
.scope__dial {
  position: relative; aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(34, 216, 245, .10) 0%, rgba(6, 18, 31, .55) 55%, rgba(2, 7, 15, .75) 100%);
  box-shadow: 0 0 0 1px rgba(34, 216, 245, .25), 0 0 60px rgba(34, 216, 245, .18), inset 0 0 80px rgba(34, 216, 245, .08);
  backdrop-filter: blur(2px);
}
.scope__grid { position: absolute; inset: 0; width: 100%; height: 100%; }
.scope__grid .ring { fill: none; stroke: rgba(34, 216, 245, .32); stroke-width: 1; }
.scope__grid .ring--outer { stroke: rgba(34, 216, 245, .75); stroke-width: 2; }
.scope__grid .axis { stroke: rgba(34, 216, 245, .28); stroke-width: 1; }
.scope__grid .axis--faint { stroke: rgba(34, 216, 245, .12); }
.scope__grid .ticks line { stroke: rgba(34, 216, 245, .6); stroke-width: 1; }
.scope__sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(34, 216, 245, 0) 0deg, rgba(34, 216, 245, 0) 300deg, rgba(34, 216, 245, .12) 330deg, rgba(124, 235, 251, .55) 359deg, rgba(124, 235, 251, 0) 360deg);
  animation: sweep 6s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }
.scope__center {
  position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: var(--cyan-hi); box-shadow: 0 0 16px var(--cyan);
}
.scope__blips { position: absolute; inset: 0; }
.blip {
  position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  display: grid; place-items: center;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.blip::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 12px var(--gold), 0 0 2px #fff;
  opacity: .25;
  animation: blip 6s linear infinite;
  animation-delay: var(--delay, 0s);
}
.blip--old::before { background: var(--cyan-hi); box-shadow: 0 0 10px var(--cyan); }
@keyframes blip {
  0% { opacity: 1; transform: scale(1.5); }
  8% { opacity: 1; transform: scale(1); }
  70% { opacity: .3; }
  100% { opacity: .25; transform: scale(1); }
}
.blip__label {
  position: absolute; left: 50%; bottom: calc(100% - 4px); transform: translateX(-50%);
  white-space: nowrap; pointer-events: none;
  background: rgba(2, 7, 15, .92); border: 1px solid var(--line-strong);
  color: var(--chrome); font-size: .8125rem; padding: 4px 10px; border-radius: var(--radius-sm);
  opacity: 0; transition: opacity var(--t-fast);
}
.blip:hover .blip__label, .blip:focus-visible .blip__label { opacity: 1; }
.scope__readout {
  margin-top: var(--s4); display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: var(--fs-sm); color: var(--text-muted); text-align: center;
  font-variant-numeric: tabular-nums;
}
.scope__readout b { color: var(--gold); font-weight: 600; }
#scope-latest { color: #C6DAE6; }

/* =========================================================
   Sections
   ========================================================= */
.section { padding: var(--s9) 0; }
.section__head { max-width: 44rem; margin-bottom: var(--s6); }
.section__head--row {
  max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s5);
}
.section__head--row > div { max-width: 44rem; }
.section__title {
  font-style: italic; font-weight: 800; font-size: var(--fs-2xl); letter-spacing: -.005em;
  text-wrap: balance;
}
.section__lede { margin-top: var(--s3); color: var(--text-muted); font-size: var(--fs-md); max-width: 40rem; }

/* ---------- Live map ---------- */
.section--map { padding-top: var(--s7); }
.mapview {
  display: grid; grid-template-columns: 380px minmax(0, 1fr);
  height: min(78vh, 720px); min-height: 520px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface);
}
.mapview__panel {
  display: flex; flex-direction: column; min-height: 0;
  border-right: 1px solid var(--line); background: var(--surface);
}
.search--panel { margin: var(--s4) var(--s4) 0; max-width: none; padding-right: var(--s3); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); padding: var(--s3) var(--s4); }
.chip {
  min-height: 36px; padding: 0 var(--s4); border-radius: 999px;
  background: transparent; border: 1px solid var(--line-strong); color: var(--text-muted);
  font-size: var(--fs-sm); font-weight: 500; cursor: pointer;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.chip:hover { color: var(--chrome); border-color: var(--cyan); }
.chip.is-active { background: rgba(34, 216, 245, .14); border-color: var(--cyan); color: var(--chrome); }
.chip--select {
  appearance: none; -webkit-appearance: none;
  padding-right: 32px;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%239DB9CB' stroke-width='2'/%3E%3C/svg%3E") right 10px center / 14px no-repeat;
}
.chip--select option { background: var(--deep); color: var(--chrome); }
.mapview__count {
  padding: var(--s2) var(--s4) var(--s3); font-size: var(--fs-sm); color: var(--text-muted);
  border-bottom: 1px solid var(--line);
}
.caselist { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.caselist li { border-bottom: 1px solid var(--line); }
.case-row {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--s3);
  width: 100%; padding: var(--s3) var(--s4); text-align: left;
  background: transparent; border: 0; cursor: pointer;
  transition: background-color var(--t-fast);
}
.case-row:hover, .case-row.is-active { background: rgba(34, 216, 245, .07); }
.case-row.is-active { box-shadow: inset 3px 0 0 var(--cyan); }
.case-row__thumb { width: 64px; height: 64px; border-radius: var(--radius-sm); overflow: hidden; }
.case-row__thumb svg { width: 100%; height: 100%; }
.case-row__title { font-weight: 600; line-height: 1.3; color: var(--chrome); overflow-wrap: anywhere; }
.case-row__meta { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 2px; }
.case-id { font-size: .8125rem; color: var(--cyan-hi); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.tag-new { color: var(--gold); font-weight: 600; }
.caselist__empty { padding: var(--s6) var(--s4); color: var(--text-muted); }
.caselist__empty button { margin-top: var(--s3); }

.mapview__map { position: relative; z-index: var(--z-map); background: #050c16; }
.leaflet-container { background: #050c16; font-family: var(--font-body); }
.tiles-dark { filter: invert(1) hue-rotate(190deg) saturate(.6) brightness(.78) contrast(1.2); }
.leaflet-control-attribution { background: rgba(2, 7, 15, .75) !important; color: #7894A8 !important; }
.leaflet-control-attribution a { color: #9DB9CB !important; }
.leaflet-bar a { background: var(--deep) !important; color: var(--chrome) !important; border-color: var(--line) !important; }
.leaflet-bar a:hover { background: var(--panel-2) !important; }
.map-error { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: var(--s6); color: var(--text-muted); }

.dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--cyan); border: 2px solid rgba(2, 7, 15, .8);
  box-shadow: 0 0 10px rgba(34, 216, 245, .8);
  transition: transform var(--t-fast);
}
.dot--recent { background: var(--gold); box-shadow: 0 0 12px rgba(247, 185, 85, .9); }
.dot--recent::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid rgba(247, 185, 85, .7); animation: ping 2.4s ease-out infinite;
}
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.dot.is-active { transform: scale(1.5); }
.leaflet-marker-icon:focus-visible .dot { outline: 2px solid #fff; outline-offset: 3px; }

.leaflet-popup-content-wrapper, .leaflet-popup-tip {
  background: var(--deep); color: var(--chrome); border: 1px solid var(--line-strong);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.leaflet-popup-content { margin: var(--s4); font-size: var(--fs-sm); line-height: 1.45; }
.leaflet-popup-content h4 { font-family: var(--font-display); font-size: var(--fs-base); margin: 4px 0; }
.leaflet-popup-content button { margin-top: var(--s2); }
.leaflet-container a.leaflet-popup-close-button { color: var(--text-muted); width: 32px; height: 32px; font-size: 20px; }

/* ---------- Top sightings carousel ---------- */
.carousel-ctrl { display: flex; gap: var(--s2); flex-shrink: 0; }
.carousel {
  list-style: none; margin: 0; padding: 0 0 var(--s4);
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, calc((100% - 3 * var(--s5)) / 4));
  gap: var(--s5); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
  scrollbar-color: var(--panel-2) transparent;
}
.carousel > li { scroll-snap-align: start; }
.card {
  display: block; width: 100%; padding: 0; text-align: left; cursor: pointer;
  background: transparent; border: 0;
}
.card__media {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  transition: border-color var(--t);
}
.card__media svg { width: 100%; height: 100%; }
.card__badge {
  position: absolute; left: var(--s3); top: var(--s3);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 600;
  background: rgba(2, 7, 15, .78); color: var(--chrome); border: 1px solid var(--line-strong);
}
.card__badge svg { width: 14px; height: 14px; }
.card:hover .card__media, .card:focus-visible .card__media { border-color: var(--cyan); }
.card__id { margin-top: var(--s3); }
.card__title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-md); line-height: 1.25; margin-top: 2px; color: var(--chrome); }
.card__meta { font-size: var(--fs-sm); color: var(--text-muted); margin-top: var(--s1); }

/* ---------- TikTok ---------- */
.section--tiktok { padding-top: var(--s7); }
.tiktok { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: var(--s7); align-items: start; }
.tiktok__copy { position: sticky; top: calc(var(--nav-h) + var(--s6)); }
.tiktok__follow { margin-top: var(--s5); }
.tiktok__note { margin-top: var(--s2); font-size: var(--fs-sm); color: var(--text-muted); }
.tiktok__media { display: grid; gap: var(--s5); min-width: 0; }
.tiktok__profile {
  height: 252px; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-strong); background: #fff;
  box-shadow: 0 0 60px rgba(34, 216, 245, .1);
  display: grid; place-items: center;
}
.tiktok__profile iframe { width: 100%; height: 100%; border: 0; display: block; }
.tiktok__fallback { color: #0a6a80; font-weight: 600; }
.tiktok__videos {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s4);
}
.tiktok__videos li { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; }
.tiktok__videos iframe { width: 100%; aspect-ratio: 9 / 16; height: auto; min-height: 520px; border: 0; display: block; }

/* ---------- Explore bento ---------- */
.section--explore {
  background:
    radial-gradient(60% 60% at 85% 0%, rgba(34, 216, 245, .07), transparent 70%),
    var(--surface);
  border-block: 1px solid var(--line);
}
.bento {
  display: grid; gap: var(--s4);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.tile {
  display: flex; flex-direction: column; gap: var(--s2);
  padding: var(--s5); border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--chrome); text-decoration: none;
  transition: border-color var(--t), background-color var(--t);
}
.tile:hover { border-color: var(--line-strong); background: var(--panel-2); }
.tile p { color: var(--text-muted); }
.tile__icon { width: 32px; height: 32px; color: var(--cyan); margin-bottom: var(--s2); }
.tile__title { font-weight: 700; font-size: var(--fs-lg); }
.tile__meta { margin-top: auto; padding-top: var(--s3); font-size: var(--fs-sm); color: var(--cyan-hi); font-variant-numeric: tabular-nums; }

.tile--wide { grid-column: span 2; }
.tile--feature {
  grid-column: span 2; grid-row: span 2; padding: 0; overflow: hidden; position: relative;
  border-color: var(--line-strong); justify-content: flex-end; min-height: 440px;
}
.tile__media {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(10, 28, 46, 1) 0%, rgba(10, 28, 46, .9) 38%, rgba(10, 28, 46, .1) 80%),
    url("../assets/hero-earth.png") 50% 10% / cover no-repeat;
  transition: transform 600ms var(--ease-out);
}
.tile--feature:hover .tile__media { transform: scale(1.03); }
.tile--feature .tile__body { position: relative; padding: var(--s6); display: flex; flex-direction: column; gap: var(--s3); }
.tile--feature .tile__title { font-size: var(--fs-xl); font-style: italic; font-weight: 800; }
.tile--feature p { color: #C6DAE6; max-width: 32rem; }

.timeline {
  list-style: none; margin: var(--s3) 0 0; padding: var(--s4) 0 0;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s2);
  position: relative; font-size: .8125rem; color: var(--text-muted);
}
.timeline::before {
  content: ""; position: absolute; left: 5px; right: 0; top: 5px; height: 1px;
  background: linear-gradient(90deg, var(--cyan), rgba(34, 216, 245, .2));
}
.timeline li { position: relative; padding-top: var(--s3); line-height: 1.3; }
.timeline li::before {
  content: ""; position: absolute; top: -16px; left: 0; width: 11px; height: 11px; border-radius: 50%;
  background: var(--deep); border: 2px solid var(--cyan);
}
.timeline li:last-child::before { background: var(--gold); border-color: var(--gold); }
.timeline span { display: block; color: var(--chrome); font-weight: 600; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }

/* ---------- Report wizard ---------- */
.report { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--s8); align-items: start; }
.report__intro { position: sticky; top: calc(var(--nav-h) + var(--s6)); }
.report__points { list-style: none; padding: 0; margin: var(--s5) 0 0; display: grid; gap: var(--s3); }
.report__points li { display: flex; gap: var(--s3); align-items: center; color: #C6DAE6; }
.report__points li::before {
  content: ""; width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%;
  background: rgba(34, 216, 245, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%2322D8F5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.wizard {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  padding: var(--s6); box-shadow: 0 0 80px rgba(34, 216, 245, .06);
}
.wizard__progress { height: 4px; background: var(--panel-2); border-radius: 4px; overflow: hidden; }
.wizard__progress span { display: block; height: 100%; width: 25%; background: var(--cyan); transition: width var(--t) var(--ease-out); }
.wizard__step-label { margin: var(--s3) 0 var(--s5); color: var(--text-muted); font-size: var(--fs-sm); font-weight: 500; }
.wizard__step { border: 0; margin: 0; padding: 0; display: grid; gap: var(--s4); min-width: 0; }
.wizard__step[hidden] { display: none; }
.wizard__nav { display: flex; justify-content: space-between; gap: var(--s3); margin-top: var(--s6); }
.wizard__nav #wizard-next, .wizard__nav #wizard-submit { margin-left: auto; }

.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.field label, .field__label, .field__legend { font-weight: 600; font-size: var(--fs-sm); color: var(--chrome); }
.field__legend { padding: 0; margin-bottom: var(--s1); }
.req { color: var(--cyan); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: var(--s3) var(--s4);
  background: var(--void); border: 1px solid rgba(157, 185, 203, .3); border-radius: var(--radius-sm);
  font-size: var(--fs-base); color: var(--chrome);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  color-scheme: dark;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #6A879B; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 216, 245, .18); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__hint { font-size: var(--fs-sm); color: var(--text-muted); }
.field__error { font-size: var(--fs-sm); color: var(--danger); font-weight: 500; }
.field__error:empty { display: none; }

.error-summary {
  border: 1px solid var(--danger); background: rgba(255, 138, 138, .08);
  border-radius: var(--radius-sm); padding: var(--s4); margin-bottom: var(--s5);
}
.error-summary h3 { font-size: var(--fs-base); margin-bottom: var(--s2); }
.error-summary ul { margin: 0; padding-left: var(--s5); }
.error-summary a { color: var(--danger); }

.pinmap { height: 260px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); cursor: crosshair; }
.pinmap__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); font-size: var(--fs-sm); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.pin { width: 20px; height: 20px; border-radius: 50%; background: var(--gold); border: 3px solid var(--void); box-shadow: 0 0 0 2px var(--gold), 0 0 16px var(--gold); }

.shapes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); }
.shape { position: relative; }
.shape input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.shape label {
  display: grid; justify-items: center; gap: var(--s2); padding: var(--s4) var(--s2);
  border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer;
  font-size: var(--fs-sm); font-weight: 500; color: var(--text-muted); text-align: center;
  transition: border-color var(--t-fast), background-color var(--t-fast), color var(--t-fast);
}
.shape svg { width: 44px; height: 28px; color: var(--cyan); }
.shape input:hover + label { border-color: var(--cyan); color: var(--chrome); }
.shape input:checked + label { border-color: var(--cyan); background: rgba(34, 216, 245, .12); color: var(--chrome); }
.shape input:focus-visible + label { outline: 2px solid var(--cyan-hi); outline-offset: 2px; }

.dropzone {
  display: grid; justify-items: center; gap: var(--s2); text-align: center;
  padding: var(--s6) var(--s5); border: 1.5px dashed var(--line-strong); border-radius: var(--radius);
  cursor: pointer; color: var(--text-muted); transition: border-color var(--t-fast), background-color var(--t-fast);
}
.dropzone svg { width: 32px; height: 32px; color: var(--cyan); }
.dropzone b { color: var(--cyan-hi); }
.dropzone:hover, .dropzone.is-over { border-color: var(--cyan); background: rgba(34, 216, 245, .06); }
#r-media:focus-visible + .filelist, .dropzone:focus-within { outline: 2px solid var(--cyan-hi); }
.dropzone__hint { font-size: var(--fs-sm); max-width: 28rem; }
.filelist { list-style: none; margin: var(--s2) 0 0; padding: 0; display: grid; gap: var(--s2); font-size: var(--fs-sm); }
.filelist li { display: flex; justify-content: space-between; gap: var(--s3); padding: var(--s2) var(--s3); background: var(--panel); border-radius: var(--radius-sm); overflow-wrap: anywhere; }
.filelist span { color: var(--text-muted); flex-shrink: 0; }

.field--check { grid-template-columns: 22px 1fr; column-gap: var(--s3); align-items: start; }
.field--check input { width: 22px; height: 22px; min-height: 0; margin: 2px 0 0; padding: 0; accent-color: var(--cyan); }
.field--check label { font-weight: 500; color: #C6DAE6; line-height: 1.45; }
.field--check .field__error { grid-column: 1 / -1; }
.wizard__status { margin-top: var(--s4); font-size: var(--fs-sm); color: var(--cyan-hi); font-weight: 500; }
.wizard__status:empty { display: none; }
.wizard__status.is-error { color: var(--danger); }
.case-dialog__media { background: #000; }
.case-dialog__media img, .case-dialog__media video { width: 100%; height: 100%; min-height: 260px; object-fit: contain; display: block; background: #000; }
.wizard__done { text-align: center; display: grid; justify-items: center; gap: var(--s3); padding: var(--s6) 0; }
.wizard__done[hidden] { display: none; }
.wizard__done svg { width: 64px; height: 64px; color: var(--cyan); }
.wizard__done h3 { font-size: var(--fs-xl); font-style: italic; font-weight: 800; }
.wizard__done p { color: var(--text-muted); }
.wizard__done b { color: var(--gold); font-variant-numeric: tabular-nums; }
.wizard__done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3); margin-top: var(--s3); }

/* ---------- Alerts ---------- */
.alerts {
  padding: var(--s8) 0;
  background: radial-gradient(70% 90% at 20% 50%, rgba(34, 216, 245, .10), transparent 70%), var(--void);
  border-top: 1px solid var(--line);
}
.alerts__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s7); align-items: center; }
.alerts__logo { width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.alerts__form { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: var(--s3); align-items: end; margin-top: var(--s5); }
.turnstile:empty { display: none; }
.alerts__turnstile { grid-column: 1 / -1; }
.alerts__ok { margin-top: var(--s3); color: var(--cyan-hi); font-weight: 500; min-height: 1.5em; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: var(--s6) 0 var(--s7); }
.footer__inner { display: grid; grid-template-columns: auto 1fr; gap: var(--s5) var(--s7); align-items: center; }
.footer__tag { color: var(--text-muted); font-size: var(--fs-sm); margin-top: var(--s1); }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); justify-content: flex-end; }
.footer__links a { color: var(--text-muted); text-decoration: none; padding: var(--s2) 0; }
.footer__links a:hover { color: var(--chrome); }
.footer__fine { grid-column: 1 / -1; color: #6A879B; font-size: var(--fs-sm); border-top: 1px solid var(--line); padding-top: var(--s4); }

/* ---------- Social ---------- */
.social { list-style: none; margin: var(--s4) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.social a {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  color: var(--text-muted); border: 1px solid var(--line);
  transition: color var(--t-fast), border-color var(--t-fast), box-shadow var(--t);
}
.social a:hover { color: var(--cyan-hi); border-color: var(--cyan); box-shadow: 0 0 14px rgba(34, 216, 245, .3); }
.social svg { width: 20px; height: 20px; }
.social--solo a { width: auto; gap: var(--s2); padding: 0 var(--s4) 0 var(--s3); border-radius: 999px; display: inline-flex; align-items: center; font-weight: 600; font-size: var(--fs-sm); text-decoration: none; color: var(--chrome); border-color: var(--line-strong); }
.social--menu { padding-top: var(--s4); }
.mobile-menu .social a { padding: 0; border-bottom: 1px solid var(--line); }

.share { border-top: 1px solid var(--line); padding-top: var(--s4); margin-top: var(--s2); }
.share__label { font-size: var(--fs-sm); font-weight: 600; margin-bottom: var(--s2); }
.share__row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.share__btn {
  display: inline-flex; align-items: center; gap: var(--s2); min-height: 40px; padding: 0 var(--s4);
  border-radius: 999px; border: 1px solid var(--line-strong); background: transparent;
  color: var(--chrome); font-size: var(--fs-sm); font-weight: 500; text-decoration: none; cursor: pointer;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.share__btn:hover { border-color: var(--cyan); color: var(--cyan-hi); }
.share__btn svg { width: 16px; height: 16px; }
.share__status { font-size: var(--fs-sm); color: var(--cyan-hi); min-height: 1.4em; margin-top: var(--s2); }

/* ---------- Case dialog ---------- */
.case-dialog {
  width: min(760px, 100% - 2 * var(--s4)); padding: 0; border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg); background: var(--surface); color: var(--chrome);
  display: none; grid-template-columns: 300px minmax(0, 1fr); overflow: hidden;
}
.case-dialog[open] { display: grid; animation: dialog-in var(--t) var(--ease-out); }
.case-dialog::backdrop { background: rgba(1, 4, 9, .78); backdrop-filter: blur(4px); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.case-dialog__media svg { width: 100%; height: 100%; min-height: 260px; }
.case-dialog__body { padding: var(--s6); display: grid; gap: var(--s3); align-content: start; max-height: 85vh; overflow-y: auto; }
.case-dialog__body h3 { font-size: var(--fs-xl); font-style: italic; font-weight: 800; }
.case-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px var(--s4); margin: var(--s2) 0; font-size: var(--fs-sm); }
.case-facts dt { color: var(--text-muted); }
.case-facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.case-dialog__story { color: #C6DAE6; line-height: 1.65; }
.case-dialog__actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s3); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .carousel { grid-auto-columns: minmax(260px, calc((100% - 2 * var(--s5)) / 3)); }
}
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__toggle { display: grid; }
  .nav__actions { margin-left: auto; }
  .hero { min-height: auto; padding-top: var(--s7); }
  .hero__inner { grid-template-columns: 1fr; gap: var(--s6); }
  .hero__bg {
    background:
      linear-gradient(180deg, rgba(2, 7, 15, .9) 0%, rgba(2, 7, 15, .7) 50%, var(--bg) 100%),
      url("../assets/hero-earth.png") 50% 30% / cover no-repeat;
  }
  .scope { width: min(100%, 420px); }
  .mapview { grid-template-columns: 1fr; grid-template-rows: 380px minmax(0, 1fr); height: auto; min-height: 0; }
  .mapview__map { order: -1; height: 380px; }
  .mapview__panel { border-right: 0; border-top: 1px solid var(--line); max-height: 560px; }
  .tiktok { grid-template-columns: 1fr; gap: var(--s5); }
  .tiktok__copy { position: static; }
  .report { grid-template-columns: 1fr; gap: var(--s6); }
  .report__intro { position: static; }
  .alerts__inner { grid-template-columns: 1fr; }
  .alerts__logo { max-width: 520px; }
  .case-dialog { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto; }
  .case-dialog__media svg { min-height: 0; height: auto; aspect-ratio: 16 / 9; }
  .case-dialog__body { max-height: none; overflow: visible; }
}
@media (max-width: 640px) {
  :root { --nav-h: 60px; }
  .container, .nav__inner, .hero__inner { width: calc(100% - 2 * var(--s4)); }
  .nav__actions .btn { display: none; }
  .brand__word { font-size: 1.25rem; }
  .section { padding: var(--s8) 0; }
  .section__head--row { flex-direction: column; align-items: flex-start; }
  .search { padding-left: var(--s6); }
  .search .btn { padding: 0 var(--s4); }
  .hero__ctas .btn { flex: 1 1 100%; }
  .bento { grid-template-columns: 1fr; }
  .tile--feature, .tile--wide { grid-column: auto; }
  .tile--feature { min-height: 480px; }
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--s5); }
  .timeline::before { display: none; }
  .timeline li::before { top: -2px; }
  .timeline li { padding-top: var(--s4); }
  .carousel { grid-auto-columns: 78%; }
  .tiktok__profile { height: 330px; }
  .wizard { padding: var(--s5) var(--s4); }
  .field-row { grid-template-columns: 1fr; }
  .shapes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .alerts__form { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__links { justify-content: flex-start; }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0s !important; }
  .scope__sweep { animation: none; transform: rotate(45deg); }
  .blip::before { animation: none; opacity: 1; }
  .live-dot, .dot--recent::after { animation: none; }
}
