/* ============================================================
   Fieldkeep — experiential layer (mission-control)
   Built on the real OpsIQ Command Center vocabulary.
   ============================================================ */

:root {
  --bg2: #161820;   /* product bg-2 */
  --bg3: #1c1f28;   /* product bg-3 */
  --bg4: #242735;   /* product bg-4 */
  --accent-dim: rgba(108,138,255,0.14);
  --accent-mid: rgba(108,138,255,0.32);
}

/* tiny mission-control label */
.mc-label { font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--d-text-3); }
.mc-accent { color: var(--indigo-bright); }

/* LIVE pill */
.live-pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green-d); padding: 4px 9px; border: 1px solid rgba(52,211,153,.3); border-radius: 999px; background: rgba(52,211,153,.07); }
.live-pill .ld { width: 6px; height: 6px; border-radius: 50%; background: var(--green-d); box-shadow: 0 0 6px var(--green-d); animation: livePulse 2s ease infinite; }
@keyframes livePulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* noise field — drifting raw-data fragments */
.noise-field { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.noise-frag {
  position: absolute;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  color: rgba(180,190,215,.32);
  white-space: nowrap;
  opacity: 0;
  will-change: transform, opacity;
}
.noise-frag .nf-tag { color: rgba(108,138,255,.5); }

/* mission-control chrome bar */
.cc-chrome {
  position: relative; z-index: 5;
  display: flex; align-items: center; gap: 14px;
  height: 56px;
  border-bottom: 1px solid var(--d-border);
  background: rgba(12,13,17,.55);
  backdrop-filter: blur(10px);
}
.cc-chrome::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--indigo) 25%, var(--indigo-bright) 50%, var(--indigo) 75%, transparent); opacity: .55; }
.cc-brand { display: flex; align-items: center; gap: 10px; }
.cc-mark { width: 26px; height: 26px; color: var(--indigo-bright); filter: drop-shadow(0 0 5px rgba(108,138,255,.4)); }
.cc-mark .fk-wedge { animation: wedgeBreathe 3.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center bottom; }
@keyframes wedgeBreathe { 0%,100% { opacity: .9; } 50% { opacity: 1; transform: scaleY(1.04); } }
.cc-word { font-family: var(--sans); font-size: 16px; font-weight: 800; letter-spacing: .04em; background: linear-gradient(115deg, var(--d-text), var(--indigo-bright)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cc-sub { font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--d-text-3); }
.cc-spacer { flex: 1; }
.cc-datepill { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; color: var(--d-text-2); border: 1px solid var(--d-border-2); border-radius: 7px; padding: 5px 10px; }
.cc-datepill .cc-chev { color: var(--d-text-3); }
.cc-clock { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--d-text-2); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.cc-clock .cc-clock-d { font-size: 9px; color: var(--d-text-3); }
.cc-avatar { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--bg4), var(--ink-3)); border: 1px solid var(--d-border-2); }
@media (max-width: 720px) { .cc-datepill, .cc-clock-d { display: none; } }

/* hero stage */
.hero-stage {
  position: relative; z-index: 4; flex: 1;
  display: grid; grid-template-columns: 1fr 1.04fr; gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding-top: clamp(36px, 5vw, 60px); padding-bottom: clamp(40px, 5vw, 72px);
}

.hero-words { max-width: 560px; }
.hero-words .eyebrow { color: var(--indigo-bright); }
.hero-h1 { font-family: var(--display); font-weight: 500; font-size: clamp(38px, 5vw, 62px); line-height: 1.02; letter-spacing: -.02em; margin: 22px 0 0; }
.hero-h1 .it { font-style: italic; color: var(--indigo-bright); }
.hero-sub { margin-top: 24px; font-size: clamp(17px, 1.5vw, 19.5px); line-height: 1.55; color: var(--d-text-2); max-width: 520px; }
.hero-actions { display: flex; gap: 13px; margin-top: 32px; flex-wrap: wrap; }
.hero-loop {
  display: flex; align-items: center; gap: 12px; margin-top: 34px; padding-top: 24px;
  border-top: 1px solid var(--d-border);
  font-family: var(--display); font-style: italic; font-size: clamp(16px, 1.7vw, 20px); color: var(--d-text);
}
.hero-loop .ls { white-space: nowrap; }
.hero-loop .lx { color: var(--indigo-bright); opacity: .7; }

/* ---- the living command center panel ---- */
.cc-panel {
  position: relative;
  background: linear-gradient(180deg, rgba(28,31,40,.82), rgba(18,19,26,.92));
  border: 1px solid var(--d-border-2);
  border-radius: 16px;
  box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 40px 90px rgba(0,0,0,.55), 0 0 0 1px rgba(108,138,255,.06), 0 0 80px rgba(48,80,200,.18);
  overflow: hidden;
  backdrop-filter: blur(6px);
}
.cc-panel::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--indigo-bright) 35%, transparent); opacity: .7; }

.ccp-head { display: flex; align-items: center; gap: 9px; padding: 13px 16px; border-bottom: 1px solid var(--d-border); }
.ccp-spark { color: var(--indigo-bright); filter: drop-shadow(0 0 4px var(--indigo-bright)); animation: sparklePulse 2.4s ease infinite; flex: none; }
@keyframes sparklePulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
.ccp-title { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--indigo-bright); }
.ccp-time { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--d-text-3); font-variant-numeric: tabular-nums; }
.ccp-refresh { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--d-border-2); border-radius: 6px; color: var(--d-text-3); font-size: 12px; }

.ccp-body { padding: 16px; }

/* self-writing briefing */
.brief-headline {
  font-size: 15px; font-weight: 600; line-height: 1.45; letter-spacing: -.01em;
  padding: 11px 14px; border-radius: 9px; border-left: 3px solid var(--amber-d);
  color: var(--amber-d); background: rgba(251,191,36,.08);
  min-height: 44px;
}
.brief-headline .caret { display: inline-block; width: 2px; height: 1em; background: currentColor; margin-left: 1px; vertical-align: -2px; animation: caretBlink 1s steps(1) infinite; }
@keyframes caretBlink { 50% { opacity: 0; } }
.brief-lines { display: flex; flex-direction: column; gap: 15px; margin-top: 14px; }
.brief-line {
  display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start;
  font-size: 13px; line-height: 1.55; color: var(--d-text-2);
  opacity: 0; transform: translateY(6px); transition: opacity .5s ease, transform .5s ease;
}
.brief-line.in { opacity: 1; transform: none; }
.brief-line .bdot { width: 7px; height: 7px; border-radius: 50%; margin-top: 6px; flex: none; }
.bdot.red { background: var(--red-d); box-shadow: 0 0 8px rgba(248,113,113,.5); }
.bdot.amber { background: var(--amber-d); box-shadow: 0 0 8px rgba(251,191,36,.4); }
.bdot.green { background: var(--green-d); box-shadow: 0 0 8px rgba(52,211,153,.4); }
.brief-line b { color: var(--d-text); font-weight: 600; }
.brief-line .btag { display: inline-block; font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; padding: 1px 6px; border-radius: 5px; background: rgba(255,255,255,.07); color: var(--d-text-3); white-space: nowrap; vertical-align: 1px; }

/* synthesized-from footer */
.ccp-foot {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--d-border);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.ccp-foot .syn {
  font-family: var(--mono); font-size: 10.5px; color: var(--d-text-3);
}
.ccp-foot .syn b { color: var(--indigo-bright); font-weight: 700; font-variant-numeric: tabular-nums; }
.syn-chips { display: flex; gap: 6px; margin-left: auto; }
.syn-chip {
  font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 999px; border: 1px solid var(--d-border-2); color: var(--d-text-3);
  display: inline-flex; align-items: center; gap: 5px;
}
.syn-chip .sc-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--indigo-bright); animation: scBlink 2.2s ease infinite; }
.syn-chip:nth-child(2) .sc-dot { animation-delay: .4s; }
.syn-chip:nth-child(3) .sc-dot { animation-delay: .8s; }
.syn-chip:nth-child(4) .sc-dot { animation-delay: 1.2s; }
@keyframes scBlink { 0%,100% { opacity: .4; } 50% { opacity: 1; } }

/* crew strip under panel */
.cc-crew { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.crew-mini {
  background: rgba(22,24,32,.75); border: 1px solid var(--d-border); border-radius: 10px; padding: 10px 11px;
}
.crew-mini.flag { border-color: rgba(248,113,113,.45); box-shadow: 0 0 24px rgba(248,113,113,.14); }
.crew-mini .cm-top { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.crew-mini .cm-name { font-size: 12px; font-weight: 600; color: var(--d-text); flex: none; }
.crew-mini .cm-clock { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--d-text-2); font-variant-numeric: tabular-nums; padding-left: 6px; }
.crew-mini .cm-sub { font-size: 10.5px; color: var(--d-text-3); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crew-mini .cm-flag { font-size: 10px; color: var(--red-d); margin-top: 6px; display: flex; align-items: center; gap: 4px; font-weight: 500; white-space: nowrap; }

@media (max-width: 980px) {
  .hero-stage { grid-template-columns: 1fr; gap: 36px; }
  .hero-cc { max-width: 600px; }
}
@media (max-width: 560px) {
  .cc-crew { grid-template-columns: 1fr; }
}

/* ============ HERO LIVING MAP ============ */
.hero-map { position: relative; width: 100%; }
.map-svg { width: 100%; height: auto; display: block; overflow: visible; }

/* routes the techs travel */
.route { fill: none; stroke: rgba(108,138,255,.34); stroke-width: 1.5; stroke-dasharray: 2 7; stroke-linecap: round; animation: routeFlow 2.6s linear infinite; }
.route-faint { stroke: rgba(108,138,255,.18); }
@keyframes routeFlow { to { stroke-dashoffset: -90; } }

/* property nodes */
.prop-glow { fill: url(#pg); }
.prop-foot { fill: rgba(22,25,34,.96); stroke: rgba(108,138,255,.55); stroke-width: 1.3; }
.prop-win { stroke: rgba(108,138,255,.7); stroke-width: 1.3; stroke-linecap: round; }
.prop-name { fill: var(--d-text); font-family: var(--sans); font-size: 13px; font-weight: 600; text-anchor: middle; paint-order: stroke; stroke: rgba(12,13,17,.85); stroke-width: 3px; }
.prop-meta { fill: var(--indigo-bright); font-family: var(--mono); font-size: 9.5px; text-anchor: middle; letter-spacing: .02em; paint-order: stroke; stroke: rgba(12,13,17,.85); stroke-width: 3px; }

/* technicians — the voussoirs marks, dancing between properties */
.tech { filter: drop-shadow(0 1px 3px rgba(0,0,0,.55)); }
.tech .gp { mix-blend-mode: screen; }
.t-green { fill: var(--green-d); } .t-green .gp { stroke: var(--green-d); }
.t-amber { fill: var(--amber-d); } .t-amber .gp { stroke: var(--amber-d); }
.t-blue  { fill: var(--indigo-bright); } .t-blue .gp { stroke: var(--indigo-bright); }

/* live HUD */
.map-hud { position: absolute; top: 4px; left: 6px; display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--d-text-3); letter-spacing: .07em; }
.hud-live { display: inline-flex; align-items: center; gap: 5px; color: var(--green-d); font-weight: 700; }
.hud-live .ld { width: 6px; height: 6px; border-radius: 50%; background: var(--green-d); box-shadow: 0 0 6px var(--green-d); animation: livePulse 2s ease infinite; }
.hud-sep { opacity: .4; }

/* AI insight callout, floating over the map */
.ai-callout {
  position: absolute; top: 12%; right: -2%; width: 256px; z-index: 3;
  background: linear-gradient(180deg, rgba(28,31,40,.93), rgba(18,19,26,.96));
  border: 1px solid var(--d-border-2); border-radius: 13px; padding: 13px 15px;
  box-shadow: 0 26px 64px rgba(0,0,0,.5), 0 0 0 1px rgba(108,138,255,.10), 0 0 56px rgba(48,80,200,.26);
  backdrop-filter: blur(8px);
  animation: floatY 7s ease-in-out infinite;
}
.ai-callout::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--indigo-bright), transparent); opacity: .7; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.aic-head { display: flex; align-items: center; gap: 7px; }
.aic-spark { color: var(--indigo-bright); filter: drop-shadow(0 0 4px var(--indigo-bright)); animation: sparklePulse 2.4s ease infinite; flex: none; }
.aic-label { font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--indigo-bright); }
.aic-time { margin-left: auto; font-family: var(--mono); font-size: 9px; color: var(--d-text-3); }
.aic-body { font-size: 12.5px; line-height: 1.5; color: var(--d-text); margin-top: 10px; min-height: 56px; }
.aic-body b { color: #fff; font-weight: 600; }
.aic-body .caret { display: inline-block; width: 2px; height: 1em; background: var(--indigo-bright); margin-left: 1px; vertical-align: -2px; animation: caretBlink 1s steps(1) infinite; }
.aic-foot { display: flex; align-items: center; gap: 8px; margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--d-border); }
.aic-tag { font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: 5px; background: rgba(251,191,36,.14); color: var(--amber-d); white-space: nowrap; }
.aic-tag.red { background: rgba(248,113,113,.14); color: var(--red-d); }
.aic-tag.green { background: rgba(52,211,153,.14); color: var(--green-d); }
.aic-src { font-family: var(--mono); font-size: 9.5px; color: var(--d-text-3); margin-left: auto; white-space: nowrap; }
.aic-src b { color: var(--indigo-bright); font-variant-numeric: tabular-nums; }

@media (max-width: 1180px) { .ai-callout { right: 0; width: 240px; } }
@media (max-width: 620px) {
  .ai-callout { position: static; width: auto; margin-top: 16px; animation: none; }
}

/* ============ IMMERSIVE HERO LAYOUT (lead with beauty) ============ */
.hero-immersive .hero-map { position: absolute; top: 0; right: 0; bottom: 0; width: 66%; z-index: 1; }
.hero-immersive .map-svg { position: absolute; top: 50%; right: -3%; transform: translateY(-50%); height: 98%; width: auto; max-width: none; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(90deg, var(--ink) 0%, rgba(12,13,17,.92) 24%, rgba(12,13,17,.5) 48%, rgba(12,13,17,.12) 72%, transparent 100%),
    linear-gradient(0deg, rgba(12,13,17,.55), transparent 24%);
}
.hero-immersive .hero-stage {
  position: relative; z-index: 3; min-height: 100svh;
  display: flex; align-items: center;
  padding-top: 66px; padding-bottom: 40px;
}
.hero-immersive .hero-words { max-width: 600px; }
.hero-immersive .map-hud { top: auto; bottom: 6.5%; right: 5%; left: auto; z-index: 4; }
.hero-immersive .ai-callout { top: 15%; right: 4%; z-index: 4; }

@media (max-width: 860px) {
  .hero-immersive { display: flex; flex-direction: column; }
  .hero-immersive .hero-stage { order: 1; min-height: auto; padding-top: 92px; padding-bottom: 8px; align-items: flex-start; }
  .hero-immersive .hero-map { order: 2; position: relative; width: 100%; height: 62vw; max-height: 380px; }
  .hero-immersive .map-svg { position: absolute; right: 0; top: 50%; height: 100%; width: 100%; }
  .hero-immersive .ai-callout { order: 3; position: relative; top: auto; right: auto; width: auto; margin: 16px var(--pad) 0; animation: none; }
  .hero-immersive .map-hud { order: 2; position: absolute; bottom: 8px; right: 12px; }
  .hero-scrim { display: none; }
}

/* ============ HERO — REAL PRODUCT, FRAMED (shot-lead) ============ */
.hero-shotlead { display: block; min-height: auto; padding-bottom: clamp(64px, 9vw, 130px); }
.hero3-inner { position: relative; z-index: 3; padding-top: clamp(46px, 8vw, 104px); text-align: center; }
.hero3-copy { max-width: 880px; margin: 0 auto; }
.hero3-copy .eyebrow { color: var(--indigo-bright); }
.hero3-h1 { font-family: var(--display); font-weight: 500; font-size: clamp(42px, 6.6vw, 82px); line-height: 1.0; letter-spacing: -.022em; margin: 22px 0 0; }
.hero3-h1 .it { font-style: italic; color: var(--indigo-bright); }
.hero3-sub { max-width: 660px; margin: 26px auto 0; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--d-text-2); }
.hero3-actions { display: flex; gap: 13px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.hero3-loop { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 30px; font-family: var(--display); font-style: italic; font-size: clamp(15px, 1.6vw, 19px); color: var(--d-text); }
.hero3-loop .ls { white-space: nowrap; } .hero3-loop .lx { color: var(--indigo-bright); opacity: .7; }

.hero3-shot { position: relative; margin: clamp(44px, 6vw, 76px) auto 0; max-width: 1200px; }
.shot-glow { position: absolute; left: 50%; top: 8%; transform: translateX(-50%); width: 90%; height: 80%; background: radial-gradient(ellipse, rgba(48,80,200,.42), transparent 65%); filter: blur(30px); z-index: 0; pointer-events: none; }
.cc-window {
  position: relative; z-index: 1; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--d-border-2); background: #0c0d11;
  box-shadow: 0 50px 110px rgba(0,0,0,.62), 0 0 0 1px rgba(108,138,255,.08), 0 20px 90px rgba(48,80,200,.22);
}
.ccw-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #14161c; border-bottom: 1px solid var(--d-border); }
.ccw-lights { display: flex; gap: 7px; }
.ccw-lights i { width: 11px; height: 11px; border-radius: 50%; background: #2c2f3a; }
.ccw-lights i:nth-child(1) { background: #e06c5b; } .ccw-lights i:nth-child(2) { background: #d9a441; } .ccw-lights i:nth-child(3) { background: #4fae6e; }
.ccw-url { margin: 0 auto; display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--d-text-3); background: #0c0d11; border: 1px solid var(--d-border); border-radius: 7px; padding: 5px 16px; }
.ccw-live { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; letter-spacing: .12em; color: var(--green-d); }
.ccw-ld { width: 6px; height: 6px; border-radius: 50%; background: var(--green-d); box-shadow: 0 0 6px var(--green-d); animation: livePulse 2s ease infinite; }
.cc-window img { width: 100%; height: auto; display: block; }
.hero3-cap { text-align: center; margin-top: 18px; font-size: 12px; letter-spacing: .06em; color: var(--d-text-3); }

@media (max-width: 760px) {
  .ccw-url { font-size: 9.5px; padding: 4px 10px; }
  .hero3-cap { font-size: 11px; }
}

/* ============ THE FLYOVER — scroll-scrubbed cinematic hero ============ */
.alt-fly { position: relative; height: 580vh; background: var(--ink); margin-top: -66px; }
.alt-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.alt-cam { position: absolute; inset: 0; transform-origin: 50% 47%; will-change: transform; }
.alt-map { width: 100%; height: 100%; display: block; background: #0b0c10; }
#flyMap { pointer-events: none; }
.leaflet-container { background: #0b0c10 !important; font-family: var(--sans); }
/* map tile attribution (OSM + CARTO license) — a custom overlay ABOVE the section
   scrim. Leaflet's own attributionControl renders inside the map container, which
   sits under the scrim (z-index 2) and is invisible; this rides at the HUD's layer. */
.map-attrib { position: absolute; right: 0; bottom: 0; z-index: 6; font-family: var(--mono); font-size: 9px; line-height: 1.5; letter-spacing: .02em; color: var(--d-text-3); background: rgba(12,13,17,.5); padding: 2px 8px; border-radius: 5px 0 0 0; pointer-events: auto; }
.map-attrib a { color: var(--d-text-2); text-decoration: none; }
.map-attrib a:hover { text-decoration: underline; }
.fly-tech-icon { position: relative; overflow: visible; pointer-events: none; }
.fly-mk { position: relative; display: grid; place-items: center; }
.fly-mk svg { position: relative; z-index: 2; filter: drop-shadow(0 1px 3px rgba(0,0,0,.65)); }
.fly-ring { position: absolute; left: 11px; top: 14px; width: 16px; height: 16px; margin: -8px 0 0 -8px; border: 1.5px solid; border-radius: 50%; opacity: .7; animation: flyPing 2.8s ease-out infinite; }
.fly-name { position: absolute; top: 22px; left: 11px; transform: translateX(-50%); font-size: 10.5px; font-weight: 700; white-space: nowrap; padding: 1.5px 7px; border-radius: 999px; background: rgba(10,12,16,.62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); box-shadow: 0 1px 4px rgba(0,0,0,.5); text-shadow: 0 1px 3px rgba(0,0,0,.9); }
.leaflet-overlay-pane path.fly-trail { filter: drop-shadow(0 0 4px rgba(95,208,230,.5)) drop-shadow(0 0 2px rgba(0,0,0,.5)); }
.leaflet-overlay-pane path.fly-flag { filter: drop-shadow(0 0 6px rgba(251,191,36,.75)); animation: flagPulse 1.8s ease-in-out infinite; }
@keyframes flagPulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

/* flowing live-GPS overlay on the trails */
.leaflet-overlay-pane path.fly-trail-flow { stroke-dasharray: 2 22; animation: trailFlow 1.4s linear infinite; filter: drop-shadow(0 0 3px rgba(0,0,0,.4)); }
@keyframes trailFlow { to { stroke-dashoffset: -24; } }

/* proximity route — a dotted line tracing Solberg's GPS track toward the flagged WO */
.leaflet-overlay-pane path.fly-dispatch { stroke-dasharray: 1 9; stroke-linecap: round; animation: dispatchMarch .9s linear infinite; filter: drop-shadow(0 0 7px rgba(95,208,230,.75)); }
@keyframes dispatchMarch { to { stroke-dashoffset: -10; } }

/* flagged-property alert: radar sonar + name, surfaced as the AI notices it */
.fly-alert-icon { overflow: visible; pointer-events: none; }
.fly-alert { position: absolute; left: 0; top: 0; }
.fa-sonar { position: absolute; left: 0; top: 0; width: 96px; height: 96px; margin: -48px 0 0 -48px; border: 1.5px solid #fbbf24; border-radius: 50%; opacity: 0; transform: scale(.14); animation: faSonar 2.6s ease-out infinite; }
@keyframes faSonar { 0% { opacity: .72; transform: scale(.18); } 70%, 100% { opacity: 0; transform: scale(1); } }
.fa-label { position: absolute; left: 18px; top: -7px; white-space: nowrap; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .04em; color: #fbbf24; text-shadow: 0 1px 4px rgba(0,0,0,.95), 0 0 2px rgba(0,0,0,.85); display: inline-flex; align-items: center; gap: 5px; }
.fa-dot { width: 6px; height: 6px; border-radius: 50%; background: #fbbf24; box-shadow: 0 0 8px rgba(251,191,36,.85); }
.fa-core { position: absolute; left: 0; top: 0; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: #fbbf24; box-shadow: 0 0 14px rgba(251,191,36,.95); animation: faCore 1.8s ease-in-out infinite; }
@keyframes faCore { 0%,100% { transform: scale(1); opacity: .95; } 50% { transform: scale(1.35); opacity: .65; } }
.fly-ping { transform-box: fill-box; transform-origin: center; animation: flyPing 2.8s ease-out infinite; }
@keyframes flyPing { 0% { opacity: .85; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(3.4); } }
.alt-scrim {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background:
    linear-gradient(180deg, rgba(12,13,17,.62) 0%, rgba(12,13,17,.12) 16%, transparent 42%, rgba(12,13,17,.55) 78%, rgba(12,13,17,.92) 100%),
    linear-gradient(90deg, rgba(12,13,17,.92) 0%, rgba(12,13,17,.62) 30%, rgba(12,13,17,.18) 52%, transparent 72%),
    radial-gradient(130% 90% at 50% 46%, transparent 42%, rgba(12,13,17,.55) 100%);
}
/* narrow end-veil: when the copy rises into its end position on phones, the
   map dims hard beneath the full-width text (markers ghost "behind glass")
   while the top band stays alive. Toggled by cinematic.js with the rise. */
@media (max-width: 760px) {
  .alt-stage::after {
    content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
    opacity: 0; transition: opacity .6s ease;
    background: linear-gradient(180deg, transparent 0%, rgba(12,13,17,.35) 18%, rgba(12,13,17,.78) 34%, rgba(12,13,17,.94) 52%, rgba(12,13,17,.97) 100%);
  }
  .alt-stage.alt-endveil::after { opacity: 1; }
}

.alt-hud { position: absolute; top: 82px; left: var(--pad); z-index: 6; display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--d-text-3); letter-spacing: .07em; }
.alt-hud .hud-live { display: inline-flex; align-items: center; gap: 5px; color: var(--green-d); font-weight: 700; }
.alt-hud .ld { width: 6px; height: 6px; border-radius: 50%; background: var(--green-d); box-shadow: 0 0 6px var(--green-d); animation: livePulse 2s ease infinite; }
.alt-hud .hud-sep { opacity: .4; }
.alt-hud .hud-tel { color: var(--d-text-3); font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.alt-hud .hud-tel:empty { display: none; }
.alt-hud .hud-tel::before { content: "\00B7"; margin: 0 8px; opacity: .4; }
@media (max-width: 760px) { .alt-hud .hud-tel { display: none; } }

/* the work-order card — upper-right; amber while Unassigned, flips cyan at the crew lock-in */
.alt-focus {
  position: absolute; top: 78px; right: var(--pad); left: auto; transform: none; z-index: 7;
  width: 252px; color: var(--d-text);
  background: linear-gradient(180deg, rgba(28,31,40,.92), rgba(18,19,26,.95));
  border: 1px solid var(--d-border-2); border-left: 3px solid var(--amber-d); border-radius: 12px;
  padding: 12px 14px; box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 36px rgba(251,191,36,.13); backdrop-filter: blur(8px);
  transition: border-left-color .55s ease, box-shadow .55s ease;
}
.wo-kicker { font-size: 9px; font-weight: 700; letter-spacing: .16em; color: var(--d-text-3); }
.wo-title { font-size: 13.5px; font-weight: 600; color: var(--d-text); margin-top: 6px; }
.wo-assign { display: inline-flex; align-items: center; gap: 7px; margin-top: 9px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--amber-d); }
.wo-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber-d); box-shadow: 0 0 8px rgba(251,191,36,.7); animation: livePulse 1.6s ease infinite; }
.alt-focus.assigned { border-left-color: #5fd0e6; box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 36px rgba(95,208,230,.16); }
.alt-focus.assigned .wo-assign { color: #5fd0e6; }
.alt-focus.assigned .wo-dot { background: #5fd0e6; box-shadow: 0 0 8px rgba(95,208,230,.75); animation: none; }
/* suggested (pre-lock-in): still an unassigned WO (amber border), but the AI
   has surfaced the nearest crew -- neutral text + a Solberg-cyan dot. */
.alt-focus.suggested .wo-assign { color: var(--d-text-2); font-weight: 600; }
.alt-focus.suggested .wo-dot { background: #5fd0e6; box-shadow: 0 0 8px rgba(95,208,230,.7); animation: none; }

.alt-copy { position: absolute; left: var(--pad); bottom: 12%; z-index: 6; max-width: min(680px, 80vw); }
.alt-copy .eyebrow { color: var(--indigo-bright); display: inline-flex; }
.alt-h1 { font-family: var(--display); font-weight: 500; font-size: clamp(40px, 6.6vw, 82px); line-height: 1.0; letter-spacing: -.022em; color: var(--d-text); display: flex; flex-direction: column; margin-top: 16px; text-shadow: 0 2px 40px rgba(12,13,17,.7); }
.al-line { display: block; }
.al-line.it { font-style: italic; color: var(--indigo-bright); text-shadow: 0 0 32px rgba(108,138,255,.5); }
.alt-tail { margin-top: 22px; }
/* short viewports: the bottom-anchored copy block keeps all three H1 lines +
   the tail in flow even before they fade in, so on short windows the eyebrow
   rides up into the HUD (top: 82px). Step the type down + drop the anchor. */
@media (max-height: 840px) {
  .alt-copy { bottom: 7%; }
  .alt-h1 { font-size: clamp(38px, 5.6vw, 64px); }
}
.alt-sub { font-size: clamp(15px, 1.5vw, 18px); line-height: 1.55; color: var(--d-text-2); max-width: 520px; }
.alt-stats { display: flex; align-items: baseline; gap: 12px; margin-top: 18px; font-size: 12.5px; color: var(--d-text-3); letter-spacing: .04em; }
.alt-stats b { color: var(--indigo-bright); font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.alt-stat-sep { opacity: .4; }
.alt-actions { display: flex; gap: 13px; margin-top: 22px; flex-wrap: wrap; }
.alt-actions .btn-ghost { color: #fff; background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.24); }
.alt-actions .btn-ghost:hover { background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.44); }

.alt-scrollhint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 6; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--d-text-3); animation: hintBob 2.4s ease-in-out infinite; }
@keyframes hintBob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(5px); } }

@media (max-width: 760px) {
  /* phone end-state: keep real air between the statbar (KPIs) and the H1 —
     smaller display floor + a lower anchor + a tighter tail buy ~50px so the
     headline never reads cramped against the numbers (Win gate, 2026-06-12). */
  .alt-copy { left: 0; right: 0; padding: 0 var(--pad); max-width: none; bottom: 4.5%; }
  .alt-h1 { font-size: clamp(33px, 8.6vw, 44px); }
  .alt-tail { margin-top: 16px; }
  .alt-focus { font-size: 11.5px; top: 112px; }   /* drop below the LIVE/Command-Center HUD on narrow screens */
}

/* static fallback (reduced motion) */
.alt-fly.alt-static { height: auto; margin-top: -66px; }
.alt-fly.alt-static .alt-stage { position: relative; height: auto; min-height: 100svh; display: flex; align-items: flex-end; padding-top: 90px; }
.alt-fly.alt-static .alt-cam { position: absolute; inset: 0; }
.alt-fly.alt-static .alt-scrollhint { display: none; }

/* landing: the product stats bar materializes at altitude */
.alt-statbar { position: absolute; top: 72px; left: 0; right: 0; z-index: 6; display: flex; justify-content: center; gap: clamp(22px, 6vw, 90px); padding: 14px var(--pad) 16px; background: linear-gradient(180deg, rgba(12,13,17,.82), rgba(12,13,17,0)); }
.asb-item { text-align: center; }
.asb-item b { font-family: var(--mono); font-size: clamp(20px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.02em; color: var(--d-text); display: block; line-height: 1; font-variant-numeric: tabular-nums; }
.asb-item span { font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--d-text-3); margin-top: 7px; display: block; }
.asb-item .b-blue { color: var(--indigo-bright); } .asb-item b.b-amber { color: var(--amber-d); } .asb-item b.b-green { color: var(--green-d); } .asb-item b.b-red { color: var(--red-d); }
@media (max-width: 700px) { .alt-statbar { gap: 18px; } .asb-item span { font-size: 8px; } }

/* landing: AI briefing card (real insight) */
.alt-brief { position: absolute; top: 150px; right: var(--pad); z-index: 6; width: 300px; background: linear-gradient(180deg, rgba(28,31,40,.92), rgba(18,19,26,.95)); border: 1px solid var(--d-border-2); border-left: 3px solid var(--amber-d); border-radius: 12px; padding: 13px 15px; box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 40px rgba(48,80,200,.16); backdrop-filter: blur(8px); }
.ab-head { display: flex; align-items: center; gap: 7px; }
.ab-spark { color: var(--indigo-bright); filter: drop-shadow(0 0 4px var(--indigo-bright)); flex: none; }
.ab-label { font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--indigo-bright); }
.ab-time { margin-left: auto; font-family: var(--mono); font-size: 9px; color: var(--d-text-3); }
.ab-body { font-size: 12.5px; line-height: 1.5; color: var(--d-text-2); margin-top: 9px; }
.ab-body b { color: var(--amber-d); font-weight: 600; }
.ab-tag { display: inline-block; margin-top: 10px; font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 5px; background: rgba(251,191,36,.14); color: var(--amber-d); }
@media (max-width: 820px) { .alt-brief { display: none; } }

/* ============ reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  .cc-mark .fk-wedge, .ccp-spark, .live-pill .ld, .syn-chip .sc-dot, .noise-frag,
  .hud-live .ld, .aic-spark, .ai-callout, .prop-glow, .fly-ping, .alt-scrollhint { animation: none !important; }
  .brief-line { opacity: 1 !important; transform: none !important; }
  .brief-headline .caret, .aic-body .caret { display: none; }
}
