:root {
  --bg: #0a0e14;
  --panel: rgba(18, 24, 34, 0.82);
  --panel-solid: #121822;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e6edf3;
  --muted: #8b98a9;
  --accent: #38bdf8;
  --accent-2: #f97316;
}

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

html, body { height: 100%; }
body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

#map { position: absolute; inset: 0; background: var(--bg); z-index: 0; }
.leaflet-container { background: #0a0e14; outline: none; }
/* The brand title now sits at the top-left of the header, so drop the Leaflet zoom control below
   the bar to clear it (TRE-50 layout pass). ~60px clears the ~58px bar. */
.leaflet-top.leaflet-left { top: 60px; }
.leaflet-control-attribution { background: rgba(10,14,20,.7) !important; color: var(--muted) !important; }
.leaflet-control-attribution a { color: var(--accent) !important; }

/* Top bar */
#topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;   /* wrap on narrow screens */
  padding: 12px 18px;
  background: linear-gradient(180deg, rgba(10,14,20,.92), rgba(10,14,20,0));
  pointer-events: none;
}
#topbar > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(249,115,22,.18), 0 0 18px rgba(249,115,22,.6);
}
.brand h1 { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; }
.brand p { font-size: 12px; color: var(--muted); margin-top: -2px; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
  70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
/* merged status chip (PRI-74): live "updated X ago" + source freshness in one. Green dot pulses
   when data is recent AND all sources fresh; orange (static) otherwise. Links to /status.html. */
.status-chip {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--muted); text-decoration: none;
  background: var(--panel); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(8px);
  transition: border-color .15s, color .15s;
}
.status-chip:hover { color: var(--text); border-color: var(--accent); }
.status-chip[hidden] { display: none; }
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex: none;
  box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 2s infinite;
}
.status-chip.stale { color: #fbbf24; border-color: rgba(251,191,36,.4); }
.status-chip.stale .status-dot { background: #fbbf24; animation: none; box-shadow: none; }

#panel-toggle {
  flex: none; display: block; background: var(--panel-solid);
  border: 1px solid var(--border);
  color: var(--text); width: 40px; height: 40px; border-radius: 10px;
  font-size: 18px; cursor: pointer; backdrop-filter: blur(8px);
  transition: background .15s, color .15s, border-color .15s;
}
#panel-toggle:hover { color: var(--accent); border-color: var(--accent); }

/* .menu-item rows are reused inside the panel's Map-layers section and the footer source link. */
.menu-item {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; padding: 6px; border-radius: 8px; cursor: pointer;
}
.menu-item:hover { background: rgba(255,255,255,.05); }
.menu-item input { accent-color: var(--accent); cursor: pointer; }
.menu-item.sub { padding-left: 20px; font-size: 12px; color: var(--muted); }
.menu-item.sub:hover { color: var(--text); }
.menu-item[hidden] { display: none; }

/* ---- single merged panel (PRI-74) --------------------------------------------------------------
   ONE surface for everything. Off-screen by default (first load is closed everywhere); .open slides
   it in — desktop from the left edge, mobile up from the bottom (the mobile rules are in the
   media query below). #panel is the scroll container; the header + filters stick to the top and the
   footer sticks to the bottom while the accordion scrolls between them. (We deliberately do NOT use
   a flex:1 scroll region in the middle — that collapses to 0 height when the panel is shorter than
   the pinned parts, which hid every section in the first build.) */
#panel {
  position: absolute; top: 64px; left: 14px; bottom: 14px; z-index: 450;
  width: 360px; max-width: calc(100vw - 28px);
  overflow-y: auto;
  background: var(--panel-solid); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,.35);
  backdrop-filter: blur(14px);
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
  transform: translateX(calc(-100% - 18px)); opacity: 0; pointer-events: none;
  transition: transform .25s ease, opacity .25s ease;
}
#panel.open { transform: translateX(0); opacity: 1; pointer-events: auto; }
#panel::-webkit-scrollbar { width: 6px; }
#panel::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* title bar sticks to the top (fixed height — never tall enough to overlay the panel) while the
   accordion (including the now-collapsible Filters section) scrolls under it */
.panel-header {
  position: sticky; top: 0; z-index: 2; background: var(--panel-solid);
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; border-bottom: 1px solid var(--border);
}
.panel-header h1 { font-size: 18px; font-weight: 700; letter-spacing: -.3px; }
#panel-close {
  flex: none; background: transparent; border: 0; color: var(--muted);
  font-size: 17px; line-height: 1; cursor: pointer; padding: 5px 8px; border-radius: 8px;
}
#panel-close:hover { color: var(--text); background: rgba(255,255,255,.06); }

.section { border-bottom: 1px solid var(--border); }
.section > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: 8px; padding: 13px 16px;
  font-size: 12px; text-transform: uppercase; letter-spacing: .8px;
  color: var(--muted); font-weight: 600;
}
.section > summary::-webkit-details-marker { display: none; }
.section > summary::before { content: "▸"; font-size: 10px; color: var(--muted); flex: none; }
.section[open] > summary::before { content: "▾"; }
.section > summary:hover { color: var(--text); }
.sec-title { color: var(--text); }
.sec-badge {
  margin-left: auto; font-size: 10px; letter-spacing: .3px; color: var(--accent);
  background: rgba(56,189,248,.12); padding: 2px 8px; border-radius: 999px;
}
.section > summary .hint { margin-left: auto; }
.sec-body { padding: 0 16px 14px; }
.sec-body h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .8px;
  color: var(--muted); margin-bottom: 10px; font-weight: 600; }

.filter-group { margin-bottom: 14px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-group label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
#mag-val { color: var(--accent); font-weight: 600; }
.filter-note {
  margin-top: 6px; min-height: 13px; color: var(--muted);
  font-size: 11px; line-height: 1.2;
}
.filter-note[hidden] { display: none; }

.segmented { display: flex; gap: 4px; background: rgba(0,0,0,.25);
  padding: 4px; border-radius: 10px; }
.segmented button {
  flex: 1; border: 0; background: transparent; color: var(--muted);
  padding: 7px 0; border-radius: 7px; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: .15s;
}
.segmented button:hover { color: var(--text); }
.segmented button.active { background: var(--accent); color: #04222f; }

input[type=range] { width: 100%; accent-color: var(--accent); }

#region {
  width: 100%; background: rgba(0,0,0,.25); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 9px 10px; font-size: 13px; font-family: inherit; cursor: pointer;
}
#region:focus { outline: none; border-color: var(--accent); }
#region optgroup { background: var(--panel-solid); color: var(--muted); }
#region option { background: var(--panel-solid); color: var(--text); }

.stats { display: flex; gap: 8px; margin-top: 14px; }
.stat { flex: 1; background: rgba(0,0,0,.22); border-radius: 12px; padding: 10px; text-align: center; }
.stat b { display: block; font-size: 18px; font-weight: 700; }
.stat span { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }

.hint { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 400; opacity: .7; }
.chart-box { position: relative; height: 130px; margin-bottom: 12px; }
.chart-box.mag { height: 110px; margin-bottom: 0; }
.chart-box canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }

#event-list { display: flex; flex-direction: column; gap: 2px; }
.evt-empty {
  padding: 10px 8px; color: var(--muted); font-size: 12px; line-height: 1.4;
}
.evt {
  display: flex; align-items: center; gap: 10px; padding: 8px;
  border-radius: 10px; cursor: pointer; transition: .12s;
}
.evt:hover { background: rgba(255,255,255,.05); }
.mag-badge {
  flex: none; width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: #0a0e14;
}
.evt-info { min-width: 0; flex: 1; }
.evt-place { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evt-meta { font-size: 11px; color: var(--muted); }

/* push alerts (TYR-141) */
.alert-row { display: flex; gap: 6px; }
#alert-mag {
  background: rgba(0,0,0,.25); color: var(--text); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 10px; font-size: 12px; font-family: inherit; cursor: pointer;
}
#alert-btn {
  flex: 1; background: rgba(56,189,248,.12); color: var(--accent);
  border: 1px solid rgba(56,189,248,.35); border-radius: 10px;
  padding: 8px 10px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit;
}
#alert-btn:hover { background: rgba(56,189,248,.25); }
#alert-btn.on { background: rgba(34,197,94,.15); color: #22c55e; border-color: rgba(34,197,94,.4); }
.alert-note { font-size: 11px; color: var(--muted); margin-top: 6px; min-height: 13px; }
#alerts-group[hidden] { display: none; }

/* insights card (TYR-145) */
.insight-row {
  font-size: 12px; color: var(--muted); line-height: 1.5;
  padding: 7px 9px; border-radius: 10px; background: rgba(0,0,0,.22);
  margin-bottom: 8px;
}
.insight-row b { color: var(--text); font-weight: 600; }
.insight-row.clickable { cursor: pointer; transition: .12s; }
.insight-row.clickable:hover { background: rgba(255,255,255,.06); }
.insight-row[hidden] { display: none; }
.insight-sub { margin-top: 12px; }
.chart-box.trend { height: 110px; margin-bottom: 0; }

/* "I'm safe" section */
.safe-note { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 6px 0 10px; }
.safe-err { font-size: 12px; margin-top: 8px; min-height: 14px; }
.safe-btn {
  display: block; width: 100%; margin-top: 8px; padding: 10px; border-radius: 10px;
  border: 1px solid var(--accent); background: var(--accent); color: #04222f;
  font-weight: 600; font-size: 13px; cursor: pointer; font-family: inherit; transition: .15s;
}
.safe-btn:hover { filter: brightness(1.08); }
.safe-btn.ghost { background: transparent; color: var(--text); border-color: var(--border); }
.safe-btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.safe-btn.big { padding: 14px; font-size: 16px; background: #22c55e; border-color: #22c55e; }
.safe-btn.sm { width: auto; margin-top: 0; padding: 8px 12px; font-size: 12px; }
.safe-lbl { display: block; font-size: 12px; color: var(--muted); margin-top: 12px; }
.safe-lbl input { width: 100%; margin-top: 6px; background: rgba(0,0,0,.25); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 13px; font-family: inherit; }
.safe-share { margin-top: 14px; text-align: center; }
.safe-circles { margin-top: 14px; text-align: left; }
.safe-circles .hint { color: var(--muted); font-weight: 400; }
.safe-circle-link { display: block; color: var(--accent); font-size: 13px;
  text-decoration: none; padding: 4px 0; }
.safe-circle-link:hover { text-decoration: underline; }
.safe-circles .safe-share-row { margin-top: 6px; }
.safe-share-row { display: flex; gap: 6px; }
.safe-share-row input { flex: 1; min-width: 0; background: rgba(0,0,0,.25); color: var(--muted);
  border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 12px; }
#b-share { margin-top: 8px; }

#attribution { font-size: 11px; color: var(--muted); line-height: 1.5; }

#legend {
  position: absolute; right: 14px; bottom: 14px; z-index: 450;
  display: flex; gap: 12px; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--border);
  padding: 8px 12px; border-radius: 12px; backdrop-filter: blur(10px);
  font-size: 11px; color: var(--muted);
}
#legend span { display: flex; align-items: center; gap: 5px; }
#legend i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
/* per-hazard legend blocks (TRE-50): one block per active overlay, divider between them */
#legend .legend-section { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
#legend .legend-section:not(:first-child) {
  padding-left: 12px; border-left: 1px solid var(--border);
}
#legend .legend-label { font-weight: 600; color: var(--text); }
#legend .legend-soon { font-style: italic; opacity: .7; }
#legend .legend-note { font-style: italic; opacity: .7; }
/* volcano markers + legend swatches (TRE-52): a small upward triangle coloured by aviation code.
   The legend swatch overrides the round #legend i dot; the map marker is its own divIcon span. */
#legend i.legend-tri {
  width: 0; height: 0; border-radius: 0;
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-bottom: 9px solid #94a3b8;
}

#safe-entry {
  position: absolute;
  right: calc(14px + env(safe-area-inset-right));
  bottom: calc(66px + env(safe-area-inset-bottom));
  z-index: 460;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; max-width: min(220px, calc(100vw - 28px));
  padding: 10px 14px 10px 12px;
  border: 1px solid rgba(34,197,94,.55);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(34,197,94,.96), rgba(21,128,61,.96));
  color: #03130a;
  box-shadow: 0 8px 24px rgba(0,0,0,.38), 0 0 0 5px rgba(34,197,94,.14);
  font: 700 14px/1 "Inter", system-ui, sans-serif;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: transform .15s, filter .15s, box-shadow .15s;
}
#safe-entry:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0,0,0,.42), 0 0 0 6px rgba(34,197,94,.18);
}
#safe-entry:focus-visible {
  outline: 2px solid #bbf7d0;
  outline-offset: 3px;
}
#safe-entry[hidden] { display: none; }
.safe-entry-icon {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(3,19,10,.14);
  font-size: 14px; line-height: 1;
}
.volcano-tri {
  display: block; width: 0; height: 0;
  border-left: 7px solid transparent; border-right: 7px solid transparent;
  border-bottom: 12px solid #94a3b8;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, .7));
}

/* pulsing ring for just-arrived earthquakes */
.pulse-icon { background: none; border: none; overflow: visible; }
.pulse-icon .pulse-ring {
  position: absolute; left: 50%; top: 50%;
  border: 2px solid #fff; border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: quake-pulse 1.8s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
  pointer-events: none;
}
.pulse-icon .pulse-ring.d2 { animation-delay: 0.9s; }
@keyframes quake-pulse {
  0%   { width: var(--pmin, 6px);  height: var(--pmin, 6px);  opacity: 0.85; }
  100% { width: var(--pmax, 70px); height: var(--pmax, 70px); opacity: 0; }
}

/* highlight just-arrived events in the list */
.evt.evt-new { background: rgba(56, 189, 248, 0.10); box-shadow: inset 2px 0 0 var(--accent); }
.evt.evt-new .evt-place::after {
  content: "NEW"; margin-left: 6px; font-size: 9px; font-weight: 700;
  color: #04222f; background: var(--accent); padding: 1px 5px; border-radius: 5px;
  vertical-align: middle; animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.45; } }

.leaflet-popup-content-wrapper { background: var(--panel-solid); color: var(--text);
  border: 1px solid var(--border); border-radius: 12px; }
.leaflet-popup-tip { background: var(--panel-solid); }
.popup-mag { font-size: 20px; font-weight: 700; }
.popup-place { font-size: 13px; margin: 4px 0; }
.popup-meta { font-size: 12px; color: var(--muted); }
.popup-source { margin-top: 4px; max-width: 260px; font-size: 11px; line-height: 1.35; color: #cbd5e1; }

@media (max-width: 640px) {
  /* same single panel, now a bottom sheet: off-screen down by default, .open slides it up. Same
     .open class as desktop — only the transform direction differs. */
  #panel {
    top: auto; bottom: 0; left: 0; right: 0; width: 100%; max-width: 100%;
    max-height: 72vh; border-radius: 18px 18px 0 0;
    transform: translateY(100%); opacity: 1; pointer-events: auto;
    transition: transform .25s; }
  #panel.open { transform: translateY(0); }
  /* legend stays bottom-right on mobile too; the sheet is fully off-screen when closed. */
  #legend { right: 8px; }
  #safe-entry {
    right: calc(8px + env(safe-area-inset-right));
    bottom: calc(112px + env(safe-area-inset-bottom));
  }
  #panel.safe-focus .panel-sections > details:not([data-section="safe"]) {
    display: none;
  }
}

/* ---- tsunami advisories (TYR-36) ---------------------------------------- */
#tsunami-banner {
  position: absolute; top: 56px; left: 50%; transform: translateX(-50%);
  z-index: 600; max-width: min(92vw, 720px);
  padding: 8px 14px; border-radius: 10px; font-size: 13px; font-weight: 600;
  color: #fff; background: #b91c1c; border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 4px 18px rgba(0,0,0,.45); cursor: pointer;
  display: flex; align-items: center; gap: 8px;
}
#tsunami-banner[hidden] { display: none; }   /* our display:flex outspecifies the UA's [hidden] rule */
#tsunami-banner.advisory { background: #c2410c; }
#tsunami-banner.watch    { background: #a16207; }
#tsunami-banner .tsu-count { opacity: .85; font-weight: 400; }
.tsu-marker { font-size: 18px; line-height: 1; filter: drop-shadow(0 0 4px rgba(0,0,0,.8)); }
.tsu-marker.info { font-size: 14px; opacity: .75; }
.tsu-badge {
  display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 999px;
  background: #b91c1c; color: #fff; font-size: 11px; font-weight: 600;
}
.evt-tsu { margin-left: 4px; }
@media (max-width: 640px) { #tsunami-banner { top: 60px; font-size: 12px; } }

/* ---- weather hazards (TYR-37, POC) --------------------------------------- */
/* NHC cyclone marker: a spinning storm glyph tinted to the hazard colour */
.storm-marker {
  display: block; font-size: 20px; line-height: 1;
  filter: drop-shadow(0 0 5px var(--haz, #a855f7)) drop-shadow(0 0 2px rgba(0,0,0,.9));
  animation: storm-spin 6s linear infinite;
}
@keyframes storm-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .storm-marker { animation: none; } }
/* HIGH/LOW surface-pressure centre markers */
.pressure-marker {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; font-weight: 800; font-size: 15px; color: var(--pc, #fff);
  text-shadow: 0 0 4px rgba(0,0,0,.95), 0 0 2px rgba(0,0,0,.95);
}

/* ---- offline banner (TYR-142) -------------------------------------------- */
#offline-banner {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  z-index: 600; max-width: min(92vw, 480px);
  padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 600;
  color: var(--text); background: #334155; border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 4px 18px rgba(0,0,0,.45);
}
#offline-banner[hidden] { display: none; }

/* ---- permalink share + extras (TYR-140) ---------------------------------- */
.popup-extras { margin-top: 5px; font-size: 11px; color: #8b98a9; max-width: 230px; }
.popup-extras:empty { display: none; }
.popup-extras a { color: #38bdf8; }
.popup-share { margin-top: 6px; }
.share-btn { background: rgba(56,189,248,.12); color: #38bdf8; border: 1px solid rgba(56,189,248,.35);
  border-radius: 6px; font-size: 11px; padding: 2px 10px; cursor: pointer; }
.share-btn:hover { background: rgba(56,189,248,.25); }


/* ---- public About page (PRI-194) --------------------------------------- */
.topbar-link {
  display: flex; align-items: center;
  min-height: 32px; padding: 6px 12px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--panel); color: var(--muted); text-decoration: none;
  font-size: 12px; font-weight: 600; backdrop-filter: blur(8px);
  transition: border-color .15s, color .15s, background .15s;
}
.topbar-link:hover { color: var(--text); border-color: var(--accent); background: rgba(18,24,34,.94); }

body.about-page {
  min-height: 100%; height: auto; overflow: auto;
  background: #0a0e14; color: var(--text);
}
.about-hero {
  padding: 24px 24px 40px;
  border-bottom: 1px solid var(--border);
  background: #0a0e14;
}
.about-nav {
  width: min(1120px, 100%); margin: 0 auto 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.about-brand, .about-nav-links a {
  display: inline-flex; align-items: center; min-height: 36px;
  text-decoration: none; font-weight: 700;
}
.about-brand { gap: 10px; color: var(--text); }
.about-brand-dot {
  width: 12px; height: 12px; border-radius: 50%; flex: none;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(249,115,22,.18), 0 0 18px rgba(249,115,22,.6);
}
.about-nav-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.about-nav-links a {
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 8px;
  color: var(--muted); background: rgba(18,24,34,.72); font-size: 13px;
}
.about-nav-links a:hover { color: var(--text); border-color: var(--accent); }
.about-hero-grid {
  width: min(1120px, 100%); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
  gap: 36px; align-items: center;
}
.about-eyebrow {
  margin-bottom: 12px; color: var(--accent); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
}
.about-hero-copy h1 {
  font-size: 48px; line-height: 1.02; letter-spacing: 0; margin-bottom: 18px;
}
.about-lede {
  max-width: 680px; color: #cbd5e1; font-size: 18px; line-height: 1.62;
}
.about-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.about-primary, .about-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 10px 15px; border-radius: 8px;
  font-size: 14px; font-weight: 700; text-decoration: none;
}
.about-primary { background: var(--accent); color: #04222f; border: 1px solid var(--accent); }
.about-secondary { color: var(--text); border: 1px solid var(--border); background: rgba(18,24,34,.75); }
.about-primary:hover { filter: brightness(1.08); }
.about-secondary:hover { border-color: var(--accent); color: var(--accent); }
.about-map-visual {
  position: relative; min-height: 340px; overflow: hidden; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12); background: #111827;
  box-shadow: 0 18px 42px rgba(0,0,0,.34);
}
.about-map-visual::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(34,197,94,.16) 0 18%, transparent 18% 55%, rgba(249,115,22,.14) 55% 72%, transparent 72%),
    linear-gradient(35deg, transparent 0 32%, rgba(56,189,248,.12) 32% 48%, transparent 48%),
    #0f1722;
}
.about-map-grid {
  position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 52px 52px;
}
.about-marker, .about-layer {
  position: absolute; z-index: 1; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(8px);
}
.about-marker {
  width: 54px; height: 54px; border-radius: 50%; transform: translate(-50%, -50%);
  background: #f59e0b; color: #0a0e14; font-size: 13px; font-weight: 800;
  box-shadow: 0 0 0 8px rgba(245,158,11,.13), 0 10px 24px rgba(0,0,0,.38);
}
.about-marker-lg { width: 70px; height: 70px; background: #ef4444; box-shadow: 0 0 0 10px rgba(239,68,68,.14), 0 10px 24px rgba(0,0,0,.38); }
.about-marker-main { left: 62%; top: 34%; }
.about-marker-secondary { left: 31%; top: 48%; }
.about-marker-tertiary { left: 72%; top: 61%; }
.about-marker-warn { background: #f97316; }
.about-layer {
  left: 18px; right: auto; min-height: 34px; padding: 6px 11px; border-radius: 8px;
  color: #dbeafe; background: rgba(15,23,42,.74); font-size: 12px; font-weight: 700;
}
.about-layer-tsunami { bottom: 18px; }
.about-layer-status { top: 18px; color: #bbf7d0; }
.about-main { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 44px 0 64px; }
.about-section {
  padding: 34px 0; border-bottom: 1px solid var(--border);
}
.about-section:last-child { border-bottom: 0; }
.about-two-col, .about-safe {
  display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 42px;
}
.about-section h2 { font-size: 28px; line-height: 1.18; letter-spacing: 0; }
.about-copy-block { color: #cbd5e1; font-size: 15px; line-height: 1.72; }
.about-copy-block p + p { margin-top: 14px; }
.about-feature-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px;
}
.about-feature {
  min-height: 170px; padding: 18px; border-radius: 8px;
  border: 1px solid var(--border); background: rgba(18,24,34,.68);
}
.about-feature h3 { font-size: 16px; margin-bottom: 10px; }
.about-feature p { color: #cbd5e1; font-size: 14px; line-height: 1.55; }

@media (max-width: 860px) {
  .about-hero { padding: 18px 18px 32px; }
  .about-nav { margin-bottom: 34px; }
  .about-hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .about-map-visual { min-height: 280px; }
  .about-hero-copy h1 { font-size: 38px; }
  .about-lede { font-size: 16px; }
  .about-main { width: min(100% - 36px, 1120px); padding-top: 28px; }
  .about-two-col, .about-safe { grid-template-columns: 1fr; gap: 14px; }
  .about-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .topbar-link { min-height: 30px; padding: 5px 10px; }
  .about-nav { align-items: flex-start; }
  .about-nav-links { gap: 6px; }
  .about-nav-links a { min-height: 34px; padding: 6px 9px; font-size: 12px; }
  .about-hero-copy h1 { font-size: 34px; }
  .about-actions { flex-direction: column; }
  .about-primary, .about-secondary { width: 100%; }
  .about-feature-grid { grid-template-columns: 1fr; }
  .about-section h2 { font-size: 24px; }
}
