/* ============================================================
   JDF PUBLIC SAFETY: MOTION + INTERACTIVE LAYER
   Loaded after style.css on every page. Everything here is
   additive. Motion only switches on when js/motion.js adds
   .js-motion to <html>, and is skipped for reduced-motion users.
   ============================================================ */

:root {
  --x-navy: #0b1329;
  --x-navy-2: #101c3f;
  --x-ink: #070d1e;
  --x-gold: #e59a0e;
  --x-gold-2: #d97706;
  --x-line: rgba(255, 255, 255, .12);
  --x-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Scroll progress ---------------------------------- */
.x-progress {
  position: fixed; left: 0; top: 0; height: 3px; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, #b87403, #f6b73c);
  z-index: 2000; pointer-events: none;
}

/* ---------- Header: tighten on scroll ------------------------ */
.site-header .navbar, .site-header .brand-logo { transition: all .35s var(--x-ease); }
.site-header.is-scrolled .navbar { min-height: 70px; padding: 6px 0; }
.site-header.is-scrolled .brand-logo { width: 54px; height: 54px; }

/* ---------- Emergency button: live pulse --------------------- */
.emergency-call-btn { isolation: isolate; }
.emergency-call-btn::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -1;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, .65);
}
.emergency-call-btn::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .28); order: -1; flex: none;
}
.js-motion .emergency-call-btn::before { animation: x-ring 2.2s ease-out infinite; }
.js-motion .emergency-call-btn::after { animation: x-blink 1.1s steps(2, start) infinite; }
@keyframes x-ring { to { box-shadow: 0 0 0 14px rgba(239, 68, 68, 0); } }
@keyframes x-blink { 50% { opacity: .35; } }

/* ---------- Buttons: light sweep ----------------------------- */
.btn.gold, .top-cta, .x-btn-give { position: relative; overflow: hidden; }
.btn.gold::after, .top-cta::after, .x-btn-give::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg); pointer-events: none;
}
.js-motion .btn.gold:hover::after, .js-motion .top-cta:hover::after, .js-motion .x-btn-give:hover::after {
  animation: x-sweep .8s var(--x-ease);
}
@keyframes x-sweep { to { left: 130%; } }

/* ---------- Hero: layered, moving ---------------------------- */
.hero { isolation: isolate; }
.hero::before { z-index: -1; }
.x-hero-bg {
  position: absolute; inset: -6% 0; z-index: -2;
  background-size: cover; background-position: center;
  will-change: transform;
}
.js-motion .x-hero-bg { animation: x-kenburns 26s ease-in-out infinite alternate; }
@keyframes x-kenburns {
  from { transform: scale(1.02) translate3d(0, var(--x-par, 0px), 0); }
  to   { transform: scale(1.12) translate3d(-1.5%, var(--x-par, 0px), 0); }
}
.x-hero-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .9; }
.hero .container { position: relative; z-index: 2; }

.js-motion .hero .x-w { display: inline-block; opacity: 0; transform: translateY(.6em) rotate(2deg); filter: blur(6px); }
.js-motion .hero.is-ready .x-w {
  opacity: 1; transform: none; filter: none;
  transition: opacity .7s var(--x-ease), transform .8s var(--x-ease), filter .8s var(--x-ease);
  transition-delay: calc(var(--i) * 55ms + 120ms);
}
.js-motion .hero .eyebrow, .js-motion .hero .hero-sub, .js-motion .hero .hero-copy,
.js-motion .hero .actions, .js-motion .hero .hero-btns { opacity: 0; transform: translateY(18px); }
.js-motion .hero.is-ready .eyebrow, .js-motion .hero.is-ready .hero-sub, .js-motion .hero.is-ready .hero-copy,
.js-motion .hero.is-ready .actions, .js-motion .hero.is-ready .hero-btns {
  opacity: 1; transform: none; transition: opacity .8s var(--x-ease), transform .8s var(--x-ease);
}
.js-motion .hero.is-ready .eyebrow { transition-delay: 0s; }
.js-motion .hero.is-ready .hero-sub { transition-delay: .65s; }
.js-motion .hero.is-ready .hero-copy { transition-delay: .8s; }
.js-motion .hero.is-ready .actions, .js-motion .hero.is-ready .hero-btns { transition-delay: .95s; }

.x-live {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 30px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #cbd5e1; text-shadow: none;
}
.x-live i { width: 9px; height: 9px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); }
.js-motion .x-live i { animation: x-live 1.8s ease-out infinite; }
@keyframes x-live { to { box-shadow: 0 0 0 12px rgba(52, 211, 153, 0); } }

.x-scrollcue {
  position: absolute; left: 50%; bottom: 22px; z-index: 2; width: 24px; height: 38px; margin-left: -12px;
  border: 2px solid rgba(255, 255, 255, .45); border-radius: 14px;
}
.x-scrollcue::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--x-gold);
}
.js-motion .x-scrollcue::after { animation: x-cue 1.6s var(--x-ease) infinite; }
@keyframes x-cue { 60% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Reveal on scroll --------------------------------- */
.js-motion [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); }
.js-motion [data-reveal="left"] { transform: translate3d(-36px, 0, 0); }
.js-motion [data-reveal="right"] { transform: translate3d(36px, 0, 0); }
.js-motion [data-reveal="zoom"] { transform: scale(.94); }
.js-motion [data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity .8s var(--x-ease), transform .9s var(--x-ease);
  transition-delay: var(--d, 0ms);
}

/* ---------- Tilt cards --------------------------------------- */
.x-tilt { transform-style: preserve-3d; will-change: transform; }

/* ---------- Ticker ------------------------------------------- */
.x-ticker { background: var(--x-ink); border-block: 1px solid rgba(217, 119, 6, .35); overflow: hidden; }
.x-ticker-track { display: flex; width: max-content; gap: 0; padding: 13px 0; }
.js-motion .x-ticker-track { animation: x-marquee 46s linear infinite; }
.x-ticker:hover .x-ticker-track { animation-play-state: paused; }
.x-ticker span {
  display: inline-flex; align-items: center; gap: 14px; padding: 0 22px; white-space: nowrap;
  color: #e2e8f0; font: 800 12px/1 var(--font-head); letter-spacing: .16em; text-transform: uppercase;
}
.x-ticker span::after { content: ""; width: 6px; height: 6px; background: var(--x-gold); transform: rotate(45deg); margin-left: 22px; }
@keyframes x-marquee { to { transform: translateX(-50%); } }

/* ---------- Three stats -------------------------------------- */
.x-stats { background: linear-gradient(180deg, var(--x-navy) 0%, var(--x-ink) 100%); padding: 56px 0 64px; position: relative; }
.x-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.x-stat {
  position: relative; padding: 30px 28px 28px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
  border: 1px solid var(--x-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.x-stat::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(229, 154, 14, .22), transparent 60%);
}
.x-stat:hover::before { opacity: 1; }
.x-stat b { display: block; font: 900 clamp(46px, 6vw, 76px)/1 var(--font-head); color: #fff; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.x-stat b em { font-style: normal; color: var(--x-gold); }
.x-stat strong { display: block; margin-top: 12px; color: var(--x-gold); font: 800 13px/1.3 var(--font-head); letter-spacing: .14em; text-transform: uppercase; }
.x-stat p { margin: 8px 0 0; color: #cbd5e1; font-size: 14.5px; line-height: 1.6; }

/* ---------- Dark sections ------------------------------------ */
.x-dark { background: var(--x-ink); color: #cbd5e1; padding: 96px 0; position: relative; overflow: hidden; }
.x-dark h2 { color: #fff; }
.x-dark .lead { color: #e2e8f0; font-weight: 500; }
.x-grid-bg::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
          mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
}
.x-dark > .container { position: relative; }

/* ---------- Why we exist: threat numbers --------------------- */
.x-threat { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; margin-top: 36px; }
.x-threat-nums { display: grid; gap: 16px; }
.x-num {
  display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: center;
  padding: 20px 22px; border: 1px solid var(--x-line); border-radius: 16px; background: rgba(255, 255, 255, .035);
}
.x-num b { font: 900 clamp(34px, 4vw, 50px)/1 var(--font-head); color: var(--x-gold); font-variant-numeric: tabular-nums; }
.x-num small { display: block; color: #94a3b8; font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 4px; }
.x-num p { margin: 0; color: #e2e8f0; font-size: 14.5px; line-height: 1.55; }
.x-dial { position: relative; width: min(360px, 78vw); margin: 0 auto; aspect-ratio: 1; }
.x-dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.x-dial circle { fill: none; stroke-width: 16; }
.x-dial .t { stroke: rgba(255, 255, 255, .09); }
.x-dial .v { stroke: url(#xg); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 2s var(--x-ease) .2s; }
.x-dial.is-in .v { stroke-dashoffset: 20; }
.x-dial-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 0 22%; }
.x-dial-c b { font: 900 clamp(46px, 6vw, 72px)/1 var(--font-head); color: #fff; }
.x-dial-c > span { color: #cbd5e1; font-size: 12.5px; line-height: 1.45; margin-top: 8px; }
.x-src { margin-top: 26px; color: #64748b; font-size: 12px; line-height: 1.6; }

/* ---------- Tabs: how we protect ----------------------------- */
.x-tabs { display: grid; grid-template-columns: 340px 1fr; gap: 28px; margin-top: 34px; }
.x-tablist { display: grid; gap: 10px; align-content: start; }
.x-tab {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 16px 18px; border-radius: 14px; border: 1px solid var(--border-light); background: #fff;
  font: 800 14px/1.25 var(--font-head); letter-spacing: .04em; text-transform: uppercase; color: var(--brand-navy);
  transition: all .3s var(--x-ease); position: relative; overflow: hidden;
}
.x-tab svg { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--x-gold-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.x-tab:hover { transform: translateX(4px); border-color: var(--gold-border); }
.x-tab:focus-visible { outline: 3px solid var(--x-gold); outline-offset: 2px; }
.x-tab[aria-selected="true"] { background: var(--x-navy); color: #fff; border-color: var(--x-navy); box-shadow: 0 14px 34px rgba(11, 19, 41, .28); }
.x-tab[aria-selected="true"] svg { stroke: var(--x-gold); }
.x-tab i { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--x-gold); transform: scaleX(0); transform-origin: 0 50%; }
.x-tab[aria-selected="true"] i.run { animation: x-fill var(--x-dur, 7s) linear forwards; }
@keyframes x-fill { to { transform: scaleX(1); } }
.x-panels { position: relative; border-radius: 20px; background: var(--x-navy); color: #cbd5e1; overflow: hidden; min-height: 380px; box-shadow: 0 30px 70px rgba(11, 19, 41, .3); }
.x-panels::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 154, 14, .28), transparent 65%);
}
.x-panel { position: relative; padding: 44px 46px; display: none; }
.x-panel.is-on { display: block; animation: x-panel .55s var(--x-ease); }
@keyframes x-panel { from { opacity: 0; transform: translateY(14px); } }
.x-panel .n { font: 900 13px/1 var(--font-head); color: var(--x-gold); letter-spacing: .2em; }
.x-panel h3 { color: #fff; font-size: clamp(24px, 3vw, 34px); text-transform: uppercase; margin: 14px 0 14px; letter-spacing: -.01em; }
.x-panel p { font-size: 16.5px; line-height: 1.75; margin: 0 0 20px; max-width: 620px; color: #e2e8f0; }
.x-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.x-chips span { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(229, 154, 14, .45); color: #fde7b8; font-size: 12.5px; font-weight: 700; background: rgba(229, 154, 14, .1); }

/* ---------- Zone map ----------------------------------------- */
.x-map-wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: 36px; align-items: stretch; margin-top: 34px; }
.x-map { position: relative; border-radius: 20px; overflow: hidden; background: #060b1a; border: 1px solid var(--x-line); box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
.x-map svg { display: block; width: 100%; height: auto; }
.x-map .st { stroke: #2a3a63; stroke-width: 7; stroke-linecap: round; fill: none; }
.x-map .st.minor { stroke: #16213f; stroke-width: 2.5; }
.x-map .fw { stroke: #3d4f7e; stroke-width: 13; fill: none; stroke-linecap: round; }
.x-map .fwc { stroke: #e59a0e; stroke-width: 1.4; stroke-dasharray: 10 10; fill: none; opacity: .7; }
.x-map .lbl { font: 800 10.5px var(--font-head); letter-spacing: .16em; fill: #8ea0c9; text-transform: uppercase; }
.x-map .zone { fill: rgba(229, 154, 14, .13); stroke: #e59a0e; stroke-width: 2; stroke-dasharray: 8 7; }
.js-motion .x-map .zone { animation: x-dash 30s linear infinite, x-zone 4.5s ease-in-out infinite; }
@keyframes x-dash { to { stroke-dashoffset: -300; } }
@keyframes x-zone { 50% { fill: rgba(229, 154, 14, .22); } }
.x-map .sweep { transform-origin: 325px 215px; opacity: .55; }
.js-motion .x-map .sweep { animation: x-spin 7s linear infinite; }
@keyframes x-spin { to { transform: rotate(360deg); } }
.x-map .unit circle:first-child { fill: rgba(229, 154, 14, .25); }
.js-motion .x-map .unit circle:first-child { animation: x-unit 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes x-unit { from { transform: scale(.5); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
.x-map .poi { cursor: pointer; }
.x-map .poi circle { fill: #101c3f; stroke: #7dd3fc; stroke-width: 1.6; transition: all .25s; }
.x-map .poi path { fill: none; stroke: #7dd3fc; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.x-map .poi:hover circle, .x-map .poi:focus circle { fill: #7dd3fc; r: 17; }
.x-map .poi:hover path, .x-map .poi:focus path { stroke: #060b1a; }
.x-map .poi:focus { outline: none; }
.x-map .next { fill: rgba(125, 211, 252, .06); stroke: #7dd3fc; stroke-width: 1.2; stroke-dasharray: 3 6; opacity: .0; transition: opacity .4s; }
.x-map[data-zone="next"] .next, .x-map[data-zone="valley"] .next.v { opacity: 1; }
.x-map[data-zone="next"] .zone, .x-map[data-zone="valley"] .zone { opacity: .45; }
.x-map-note { position: absolute; left: 16px; bottom: 12px; color: #64748b; font-size: 11px; letter-spacing: .06em; }
.x-map-tip {
  margin: 0 14px 40px; min-height: 62px; padding: 12px 14px; border-radius: 12px;
  background: rgba(11, 19, 41, .92); border: 1px solid rgba(125, 211, 252, .4); color: #e2e8f0; font-size: 13px; line-height: 1.5;
  backdrop-filter: blur(8px);
}
.x-map-tip b { display: block; color: #7dd3fc; font: 800 11px var(--font-head); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 3px; }
.x-zones { display: grid; gap: 12px; align-content: start; }
.x-zone-btn {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%; padding: 18px 20px; border-radius: 16px;
  border: 1px solid var(--x-line); background: rgba(255, 255, 255, .035); transition: all .3s var(--x-ease);
}
.x-zone-btn:hover { background: rgba(255, 255, 255, .07); transform: translateX(-4px); }
.x-zone-btn:focus-visible { outline: 3px solid var(--x-gold); outline-offset: 2px; }
.x-zone-btn[aria-pressed="true"] { border-color: var(--x-gold); background: rgba(229, 154, 14, .1); }
.x-zone-btn small { display: inline-block; font: 800 10px var(--font-head); letter-spacing: .18em; text-transform: uppercase; color: #060b1a; background: var(--x-gold); padding: 4px 8px; border-radius: 5px; }
.x-zone-btn small.n { background: #7dd3fc; }
.x-zone-btn small.p { background: #94a3b8; }
.x-zone-btn strong { display: block; color: #fff; font: 800 18px/1.3 var(--font-head); margin-top: 10px; }
.x-zone-btn span { display: block; color: #cbd5e1; font-size: 14px; line-height: 1.55; margin-top: 4px; }

/* ---------- The streets in between --------------------------- */
.x-route { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 44px 0 14px; }
.x-route::before { content: ""; position: absolute; left: 8%; right: 8%; top: 37px; height: 3px; background: repeating-linear-gradient(90deg, var(--slate-300) 0 10px, transparent 10px 20px); }
.x-route::after {
  content: ""; position: absolute; left: 8%; top: 30px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--x-gold); box-shadow: 0 0 0 6px rgba(229, 154, 14, .25), 0 0 22px rgba(229, 154, 14, .8);
}
.js-motion .x-route::after { animation: x-route 9s ease-in-out infinite alternate; }
@keyframes x-route { to { left: calc(92% - 17px); } }
.x-stop { position: relative; text-align: center; z-index: 1; }
.x-stop div {
  width: 76px; height: 76px; margin: 0 auto 12px; border-radius: 22px; display: grid; place-content: center;
  background: #fff; border: 1px solid var(--border-light); box-shadow: 0 10px 26px rgba(11, 19, 41, .09); transition: all .3s var(--x-ease);
}
.x-stop:hover div { transform: translateY(-6px) rotate(-3deg); border-color: var(--x-gold); box-shadow: 0 18px 36px rgba(217, 119, 6, .22); }
.x-stop svg { width: 32px; height: 32px; fill: none; stroke: var(--brand-navy); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.x-stop b { font: 800 13px var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--brand-navy); }
.x-route-cap { text-align: center; color: var(--x-gold-2); font: 800 12px var(--font-head); letter-spacing: .18em; text-transform: uppercase; margin-bottom: 46px; }

.x-compare { border-radius: 18px; overflow: hidden; border: 1px solid var(--border-light); background: #fff; box-shadow: 0 16px 44px rgba(11, 19, 41, .07); }
.x-compare-row { display: grid; grid-template-columns: 1.1fr 1.6fr 1.3fr; gap: 16px; padding: 18px 26px; align-items: center; border-top: 1px solid var(--border-light); font-size: 15px; color: var(--slate-700); transition: background .25s; }
.x-compare-row:first-child { border-top: 0; background: var(--slate-50); font: 800 11px var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--slate-500); }
.x-compare-row:not(:first-child):hover { background: var(--slate-50); }
.x-compare-row.me { background: var(--x-navy); color: #fff; font-weight: 700; position: relative; }
.x-compare-row.me:hover { background: var(--x-navy); }
.x-compare-row.me b { color: var(--x-gold); }
.x-compare-row b { font-family: var(--font-head); font-weight: 800; color: var(--brand-navy); }

/* ---------- Mission / Vision / Values ------------------------ */
.x-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.x-mvv {
  position: relative; padding: 34px 30px; border-radius: 20px; background: rgba(255, 255, 255, .04); border: 1px solid var(--x-line);
  overflow: hidden; transition: border-color .3s, transform .3s var(--x-ease);
}
.x-mvv::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(229, 154, 14, .2), transparent 62%);
}
.x-mvv:hover { border-color: rgba(229, 154, 14, .55); }
.x-mvv:hover::before { opacity: 1; }
.x-mvv small { font: 800 12px var(--font-head); letter-spacing: .22em; text-transform: uppercase; color: var(--x-gold); }
.x-mvv p { position: relative; margin: 16px 0 0; color: #e2e8f0; font-size: 15.5px; line-height: 1.75; }
.x-mvv ul { position: relative; list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 14px; }
.x-mvv li b { display: block; color: #fff; font: 800 15.5px var(--font-head); }
.x-mvv li span { color: #94a3b8; font-size: 13.5px; }

/* ---------- 911 first band ----------------------------------- */
.x-911 { background: linear-gradient(120deg, #7f1d1d, #be123c 55%, #7f1d1d); background-size: 200% 100%; color: #fff; padding: 40px 0; }
.js-motion .x-911 { animation: x-shift 12s ease-in-out infinite alternate; }
@keyframes x-shift { to { background-position: 100% 0; } }
.x-911 .container { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.x-911 strong { display: block; font: 900 clamp(24px, 3vw, 34px)/1.1 var(--font-head); text-transform: uppercase; }
.x-911 p { margin: 6px 0 0; color: #fee2e2; max-width: 640px; font-size: 15.5px; }
.x-911 a { display: block; text-align: right; color: #fff; }
.x-911 a small { display: block; font: 800 11px var(--font-head); letter-spacing: .18em; text-transform: uppercase; color: #fecdd3; }
.x-911 a b { font: 900 clamp(26px, 3.4vw, 40px)/1.1 var(--font-head); white-space: nowrap; }

/* ---------- Sticky mobile give bar --------------------------- */
.x-sticky {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 900; display: none; gap: 10px;
  padding: 10px; border-radius: 16px; background: rgba(7, 13, 30, .94); border: 1px solid rgba(229, 154, 14, .4);
  backdrop-filter: blur(14px); box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
  transform: translateY(140%); transition: transform .5s var(--x-ease);
}
.x-sticky.is-on { transform: none; }
.x-sticky a { flex: 1; text-align: center; padding: 13px 10px; border-radius: 11px; font: 900 12.5px var(--font-head); letter-spacing: .08em; text-transform: uppercase; }
.x-sticky a:first-child { background: linear-gradient(135deg, #e59a0e, #b87403); color: #fff; flex: 1.6; }
.x-sticky a:last-child { color: #fff; border: 1px solid rgba(255, 255, 255, .25); }

/* ============================================================
   DONATE PAGE
   ============================================================ */
.x-give-hero { background: radial-gradient(1200px 520px at 80% -10%, #1b2c63 0%, transparent 60%), var(--x-ink); color: #fff; padding: 72px 0 120px; position: relative; overflow: hidden; }
.x-give-hero h1 { font-size: clamp(34px, 5vw, 60px); max-width: 860px; }
.x-give-hero p:not(.eyebrow) { color: #cbd5e1; font-size: 18px; max-width: 680px; margin: 0; }
.x-give { display: grid; grid-template-columns: 1.25fr .85fr; gap: 30px; margin-top: -78px; position: relative; z-index: 2; align-items: start; }
/* grid children must be allowed to shrink or they overflow on phones */
.x-give > *, .x-map-wrap > *, .x-threat > *, .x-tabs > * { min-width: 0; }
.x-give-card { background: #fff; border-radius: 22px; border: 1px solid var(--border-light); box-shadow: 0 34px 80px rgba(11, 19, 41, .2); padding: 34px; }
.x-steps { display: flex; gap: 8px; margin-bottom: 26px; }
.x-steps span { flex: 1; height: 5px; border-radius: 3px; background: var(--slate-200); overflow: hidden; position: relative; }
.x-steps span::after { content: ""; position: absolute; inset: 0; background: var(--x-gold-2); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--x-ease); }
.x-steps span.on::after { transform: scaleX(1); }
.x-h { font: 900 21px var(--font-head); color: var(--brand-navy); text-transform: uppercase; margin: 0 0 4px; }
.x-sub { color: var(--slate-500); font-size: 14.5px; margin: 0 0 20px; }
.x-freq { display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 14px; background: var(--slate-100); margin-bottom: 20px; position: relative; }
.x-freq button { all: unset; cursor: pointer; text-align: center; padding: 13px; border-radius: 10px; font: 800 13.5px var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--slate-600); position: relative; z-index: 1; transition: color .3s; }
.x-freq button[aria-pressed="true"] { color: #fff; }
.x-freq::before { content: ""; position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 10px; background: var(--x-navy); transition: transform .4s var(--x-ease); }
.x-freq[data-f="monthly"]::before { transform: translateX(100%); }
.x-freq button:focus-visible, .x-amt:focus-visible { outline: 3px solid var(--x-gold); outline-offset: 2px; }
.x-amts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.x-amt {
  all: unset; box-sizing: border-box; cursor: pointer; text-align: center; padding: 16px 8px 13px; border-radius: 14px;
  border: 1.5px solid var(--slate-200); background: #fff; transition: all .25s var(--x-ease); position: relative;
}
.x-amt b { display: block; font: 900 22px/1 var(--font-head); color: var(--brand-navy); font-variant-numeric: tabular-nums; }
.x-amt span { display: block; font-size: 11px; font-weight: 700; color: var(--slate-500); margin-top: 6px; letter-spacing: .03em; }
.x-amt:hover { border-color: var(--x-gold); transform: translateY(-3px); box-shadow: 0 12px 26px rgba(217, 119, 6, .16); }
.x-amt[aria-pressed="true"] { background: var(--x-navy); border-color: var(--x-navy); box-shadow: 0 14px 30px rgba(11, 19, 41, .3); transform: translateY(-3px); }
.x-amt[aria-pressed="true"] b { color: #fff; }
.x-amt[aria-pressed="true"] span { color: #fbbf24; }
.x-amt.pop::before { content: "Suggested"; position: absolute; top: -9px; left: 50%; transform: translateX(-50%); background: var(--x-gold-2); color: #fff; font: 800 9px var(--font-head); letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.x-custom { display: flex; align-items: center; gap: 10px; margin-top: 12px; border: 1.5px solid var(--slate-200); border-radius: 14px; padding: 4px 16px; transition: border-color .25s; }
.x-custom:focus-within { border-color: var(--x-gold-2); }
.x-custom span { font: 900 22px var(--font-head); color: var(--slate-400); }
.x-custom input { all: unset; flex: 1; padding: 12px 0; font: 800 20px var(--font-head); color: var(--brand-navy); min-width: 0; }
.x-impact { margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: #fffbeb; border: 1px solid #fde68a; color: #78350f; font-size: 14.5px; line-height: 1.55; display: flex; gap: 12px; align-items: flex-start; }
.x-impact svg { width: 22px; height: 22px; flex: none; fill: none; stroke: #b45309; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.x-impact b { font-variant-numeric: tabular-nums; }
.x-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.x-fields .full { grid-column: 1 / -1; }
.x-field label { display: block; font: 800 11.5px var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--slate-600); margin-bottom: 6px; }
.x-field input, .x-field select { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--slate-200); font: 500 15.5px var(--font-main); color: var(--slate-900); background: #fff; transition: border-color .2s, box-shadow .2s; }
.x-field input:focus, .x-field select:focus { outline: none; border-color: var(--x-gold-2); box-shadow: 0 0 0 4px rgba(217, 119, 6, .14); }
.x-field input.bad { border-color: #dc2626; }
.x-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--slate-700); line-height: 1.5; cursor: pointer; }
.x-check input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--x-gold-2); flex: none; }
.x-btn-give { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; text-align: center; margin-top: 22px; padding: 18px; border-radius: 14px; background: linear-gradient(135deg, #e59a0e, #b87403); color: #fff; font: 900 15px var(--font-head); letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 14px 30px rgba(217, 119, 6, .35); transition: transform .25s var(--x-ease), box-shadow .25s; }
.x-btn-give:hover { transform: translateY(-2px); box-shadow: 0 20px 40px rgba(217, 119, 6, .45); }
.x-btn-give:focus-visible { outline: 3px solid var(--x-navy); outline-offset: 3px; }
.x-back { all: unset; cursor: pointer; display: inline-block; margin-top: 14px; color: var(--slate-500); font-size: 13.5px; font-weight: 700; text-decoration: underline; }
.x-secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; color: var(--slate-500); font-size: 12.5px; }
.x-secure svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.x-pane { display: none; }
.x-pane.is-on { display: block; animation: x-panel .5s var(--x-ease); }
.x-summary { border-radius: 16px; background: var(--slate-50); border: 1px solid var(--border-light); padding: 20px 22px; margin-bottom: 18px; }
.x-summary div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: 15px; color: var(--slate-700); }
.x-summary div b { color: var(--brand-navy); text-align: right; }
.x-summary div.tot { border-top: 1px solid var(--border-light); margin-top: 6px; padding-top: 14px; font: 900 22px var(--font-head); color: var(--brand-navy); }
.x-notice { font-size: 13.5px; color: var(--slate-600); line-height: 1.6; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 12px; padding: 12px 14px; }

.x-side { display: grid; gap: 20px; }
.x-side-card { background: var(--x-navy); color: #cbd5e1; border-radius: 22px; padding: 28px; box-shadow: 0 34px 80px rgba(11, 19, 41, .25); }
.x-side-card h3 { color: #fff; font-size: 17px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 16px; }
.x-fund { display: grid; gap: 14px; }
.x-fund div { font-size: 13.5px; }
.x-fund div span { display: flex; justify-content: space-between; gap: 10px; color: #e2e8f0; font-weight: 700; margin-bottom: 6px; }
.x-fund div span b { color: var(--x-gold); font-variant-numeric: tabular-nums; }
.x-fund i { display: block; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.x-fund i::after { content: ""; display: block; height: 100%; width: var(--w); border-radius: 4px; background: linear-gradient(90deg, #b87403, #f6b73c); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.4s var(--x-ease) var(--d, 0ms); }
.x-fund.is-in i::after { transform: scaleX(1); }
.x-side-card p.s { font-size: 12px; color: #94a3b8; margin: 16px 0 0; line-height: 1.55; }
.x-ways { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; font-size: 14.5px; }
.x-ways b { display: block; color: #fff; font-family: var(--font-head); }
.x-ways a { color: var(--x-gold); font-weight: 700; }

.x-videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
.x-video { position: relative; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: linear-gradient(160deg, #1b2c63, #070d1e); border: 1px dashed rgba(255, 255, 255, .28); display: grid; align-content: end; padding: 24px; color: #fff; }
.x-video::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .03) 0 14px, transparent 14px 28px); }
.x-video .play { position: absolute; left: 50%; top: 42%; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%; background: rgba(229, 154, 14, .95); display: grid; place-content: center; box-shadow: 0 0 0 0 rgba(229, 154, 14, .6); }
.js-motion .x-video .play { animation: x-play 2.4s ease-out infinite; }
@keyframes x-play { to { box-shadow: 0 0 0 26px rgba(229, 154, 14, 0); } }
.x-video .play::after { content: ""; border-left: 20px solid #fff; border-block: 12px solid transparent; margin-left: 6px; }
.x-video small { position: relative; font: 800 10px var(--font-head); letter-spacing: .18em; text-transform: uppercase; color: #fbbf24; }
.x-video b { position: relative; font: 800 19px/1.25 var(--font-head); margin-top: 6px; }
.x-video span { position: relative; color: #94a3b8; font-size: 13px; margin-top: 4px; }

.x-faq { max-width: 860px; margin: 30px auto 0; display: grid; gap: 12px; }
.x-faq details { border: 1px solid var(--border-light); border-radius: 14px; background: #fff; padding: 0 22px; transition: box-shadow .3s; }
.x-faq details[open] { box-shadow: 0 14px 34px rgba(11, 19, 41, .08); }
.x-faq summary { cursor: pointer; list-style: none; padding: 18px 0; font: 800 16px var(--font-head); color: var(--brand-navy); display: flex; justify-content: space-between; gap: 16px; }
.x-faq summary::-webkit-details-marker { display: none; }
.x-faq summary::after { content: "+"; color: var(--x-gold-2); font-size: 22px; line-height: 1; transition: transform .3s var(--x-ease); }
.x-faq details[open] summary::after { transform: rotate(45deg); }
.x-faq p { margin: 0 0 18px; color: var(--slate-600); font-size: 15.5px; }

.x-ph { outline: 2px dashed #f59e0b; outline-offset: 3px; border-radius: 6px; }

/* ---------- Responsive --------------------------------------- */
@media (max-width: 980px) {
  .x-stats-grid, .x-three, .x-videos { grid-template-columns: 1fr; }
  .x-threat, .x-tabs, .x-map-wrap, .x-give { grid-template-columns: 1fr; }
  .x-tablist { grid-template-columns: 1fr 1fr; }
  .x-tab { font-size: 12px; padding: 13px 12px; gap: 10px; }
  .x-panel { padding: 30px 24px; }
  .x-panels { min-height: 0; }
  .x-dark { padding: 68px 0; }
  .x-video { aspect-ratio: auto; min-height: 250px; }
  .x-video .play { top: 34%; width: 58px; height: 58px; margin: -29px 0 0 -29px; }
  .x-video .play::after { border-left-width: 16px; border-block-width: 10px; margin-left: 5px; }
  .x-sticky { display: flex; }
  body { padding-bottom: 0; }
}
@media (max-width: 640px) {
  .x-num { grid-template-columns: 1fr; gap: 6px; }
  .x-route { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .x-stop div { width: 52px; height: 52px; border-radius: 15px; }
  .x-stop svg { width: 23px; height: 23px; }
  .x-stop b { font-size: 9.5px; letter-spacing: .04em; }
  .x-route::before { top: 25px; } .x-route::after { top: 18px; }
  .x-compare-row { grid-template-columns: 1fr; gap: 4px; padding: 16px 18px; }
  .x-compare-row:first-child { display: none; }
  .x-amts { grid-template-columns: repeat(2, 1fr); }
  .x-fields { grid-template-columns: 1fr; }
  .x-give-card { padding: 22px 18px; }
  .x-911 a { text-align: left; }
  .x-tablist { grid-template-columns: 1fr; }
  .x-scrollcue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .x-hero-bg, .x-ticker-track, .x-map .zone, .x-map .sweep, .x-route::after, .x-911 { animation: none !important; }
}

/* ---------- Header fit between tablet and wide desktop ------- */
@media (min-width: 1081px) and (max-width: 1440px) {
  .navbar { gap: 12px; }
  .brand { gap: 12px; }
  .brand-logo { width: 60px; height: 60px; }
  .brand-text span { display: none; }
  .nav-item, .dropdown-toggle { padding-left: 9px; padding-right: 9px; font-size: 12px; }
  .emergency-call-btn::after { display: none; }
  .top-cta { padding: 10px 16px; }
}
@media (max-width: 980px) {
  .site-footer { padding-bottom: 92px; }
}
@media (max-width: 560px) {
  .site-header .navbar { flex-wrap: nowrap; gap: 8px; min-height: 64px; }
  .site-header .brand { gap: 9px; min-width: 0; }
  .site-header .brand-logo { width: 42px !important; height: 42px !important; }
  .site-header .brand-text strong { font-size: 12.5px !important; white-space: nowrap; }
  .site-header .nav-right .top-cta { padding: 7px 10px !important; font-size: 10.5px !important; }
  .site-header .hamburger { margin-left: 0; flex: none; }
}

/* ---------- Selected gift: soft breathing ring ---------------- */
.js-motion .x-amt[aria-pressed="true"] { animation: x-picked 2.6s ease-in-out infinite; }
@keyframes x-picked {
  0%, 100% { box-shadow: 0 14px 30px rgba(11, 19, 41, .3), 0 0 0 0 rgba(229, 154, 14, .55); }
  50% { box-shadow: 0 14px 30px rgba(11, 19, 41, .3), 0 0 0 6px rgba(229, 154, 14, 0); }
}
