/* Lockheed Martin visual language: DIN-style type (Barlow), white and light gray planes,
   Lockheed blue #0360ae, navy #093057, square corners, full-bleed photography. */
:root {
  --lm-blue: #0360ae;
  --lm-blue-dark: #024a85;
  --lm-navy: #093057;
  --ink: #212529;
  --ink-2: #414042;
  --gray: #626365;
  --muted: #8a8b8d;
  --line: #dee2e6;
  --line-2: #cfd4da;
  --plane: #f2f2f2;
  --plane-2: #e9ecef;
  --surface: #ffffff;
  --ok: #1a8f3c;
  --warn: #d39e00;
  --danger: #bd2130;
  --font: "Barlow", "DIN 2014", "Calibri", "Helvetica Neue", Arial, sans-serif;
  --footer-h: 200px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--plane);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--lm-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, select, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font); margin: 0; line-height: 1.15; }
h1 { font-weight: 300; font-size: 2.75rem; letter-spacing: -0.01em; }
h2 { font-weight: 300; font-size: 2.125rem; }
h3 { font-weight: 500; font-size: 1.25rem; }
code { font-family: SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.85em; background: var(--plane-2); padding: 1px 6px; border-radius: 2px; color: var(--ink-2); }

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 0 40px; height: 72px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 4px; color: var(--lm-navy); }
.brand:hover { text-decoration: none; }
.brand-mark { height: 30px; width: auto; display: block; }
.tabs { display: flex; gap: 6px; height: 100%; justify-self: center; }
.tabs a {
  display: flex; align-items: center; padding: 0 16px; height: 72px;
  font-weight: 500; font-size: 16px; color: var(--ink-2);
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tabs a:hover { color: var(--lm-blue); text-decoration: none; }
.tabs a.active { color: var(--lm-blue); border-bottom-color: var(--lm-blue); }
.topbar-right { display: flex; align-items: center; gap: 18px; justify-self: end; }
.fy-select { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--gray); }
.fy-select select, .control select, .control input, .control button {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 0;
  padding: 8px 12px; color: var(--ink); font-size: 15px;
}
.fy-select select:focus, .control input:focus { outline: 2px solid var(--lm-blue); outline-offset: -1px; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--gray); }
.live-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.live-pill.stale .dot { background: var(--warn); }
.live-pill.down .dot { background: var(--danger); }

/* ---------- Layout ---------- */
#views { flex: 1; display: flex; flex-direction: column; }
.view { padding: 40px; max-width: 1440px; width: 100%; margin: 0 auto; }
.view[hidden] { display: none !important; }
.view-home { max-width: none; padding: 0; }
.view-map { max-width: none; padding: 0; display: flex; height: calc(100vh - 72px - var(--footer-h)); min-height: 560px; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.page-head h1 { color: var(--lm-navy); }
.page-head .sub { color: var(--gray); font-size: 15px; max-width: 620px; }
.eyebrow { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lm-blue); margin-bottom: 8px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
@media (max-width: 1100px) { .span-3, .span-4 { grid-column: span 6; } .span-5, .span-7, .span-8 { grid-column: span 12; } }
@media (max-width: 1000px) { .topbar { grid-template-columns: auto 1fr; } .tabs { justify-self: end; } .topbar-right { grid-column: 1 / -1; display: none; } }
@media (max-width: 760px) { .grid > * { grid-column: span 12 !important; } .view { padding: 24px 20px; } .topbar { padding: 0 20px; gap: 16px; } .tabs a { padding: 0 10px; font-size: 14px; } }

.card { background: var(--surface); border: 1px solid var(--line); padding: 22px 24px; min-width: 0; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h3 { color: var(--lm-navy); font-weight: 500; font-size: 1.2rem; }
.card-head .meta { color: var(--gray); font-size: 13px; text-align: right; }
.card .chart-wrap { position: relative; height: 250px; }
.card .chart-wrap.tall { height: 330px; }

/* Stat tiles */
.stat { display: flex; flex-direction: column; gap: 4px; border-top: 3px solid var(--lm-blue); }
.stat .label { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray); }
.stat .value { font-weight: 300; font-size: 44px; line-height: 1.05; color: var(--lm-navy); letter-spacing: -0.01em; }
.stat .hint { color: var(--gray); font-size: 13px; }

/* Tables */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.data th { text-align: left; font-weight: 600; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray); padding: 10px 10px; border-bottom: 2px solid var(--line-2); white-space: nowrap; }
table.data td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr.row-link { cursor: pointer; }
table.data tr.row-link:hover td { background: #f4f8fc; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data td.dim { color: var(--gray); }
.ellipsis { max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Ranked bar list */
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px; gap: 10px; align-items: center; font-size: 14px; }
.bar-row .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.bar-row .track { height: 6px; background: var(--plane-2); margin-top: 5px; }
.bar-row .fill { height: 100%; background: var(--lm-blue); }
.bar-row .val { text-align: right; font-variant-numeric: tabular-nums; color: var(--lm-navy); font-weight: 500; }

/* Controls and buttons */
.controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.control input[type="search"] { min-width: 300px; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 0; padding: 9px 16px; color: var(--ink); cursor: pointer; font-size: 15px; font-weight: 500; }
.btn:hover { border-color: var(--lm-blue); color: var(--lm-blue); text-decoration: none; }
.btn.primary { background: var(--lm-blue); border-color: var(--lm-blue); color: #fff; font-weight: 600; }
.btn.primary:hover { background: var(--lm-blue-dark); border-color: var(--lm-blue-dark); color: #fff; }
.btn.outline-light { background: transparent; border: 2px solid #fff; color: #fff; font-weight: 600; }
.btn.outline-light:hover { background: #fff; color: var(--lm-navy); }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn[disabled] { opacity: 0.5; cursor: default; }
.chip { display: inline-block; padding: 2px 9px; font-size: 12.5px; background: var(--plane-2); color: var(--ink-2); }
.status-line { color: var(--gray); font-size: 13.5px; margin: 8px 0; }
.status-line.error { color: var(--danger); }
.loading { color: var(--gray); font-size: 14px; padding: 28px; text-align: center; }
.loading::before { content: ""; display: inline-block; width: 12px; height: 12px; border: 2px solid var(--line-2); border-top-color: var(--lm-blue); border-radius: 50%; margin-right: 10px; vertical-align: -2px; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { color: var(--gray); padding: 22px; text-align: center; font-size: 14px; }

/* Drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(9, 48, 87, 0.45); z-index: 80; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(760px, 100%); z-index: 90;
  background: var(--surface); box-shadow: -16px 0 48px rgba(0, 0, 0, 0.25);
  overflow-y: auto; padding: 28px 32px;
}
.drawer .close { position: absolute; top: 18px; right: 20px; }
.drawer h2 { font-size: 1.9rem; color: var(--lm-navy); margin-bottom: 4px; padding-right: 80px; }
.kv { display: grid; grid-template-columns: 190px 1fr; gap: 8px 16px; font-size: 14.5px; margin: 18px 0; }
.kv dt { color: var(--gray); } .kv dd { margin: 0; }

/* Program cards */
.program-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.program { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--line-2); padding: 14px 16px; cursor: pointer; transition: border-color 0.15s; }
.program:hover, .program.active { border-top-color: var(--lm-blue); border-color: var(--lm-blue); }
.program .title { font-weight: 500; font-size: 19px; color: var(--lm-navy); }
.program .desc { color: var(--gray); font-size: 13.5px; margin: 4px 0 10px; max-height: 40px; overflow: hidden; }
.program .row { display: flex; justify-content: space-between; font-size: 13px; color: var(--gray); gap: 8px; }
.program .row b { color: var(--ink); font-weight: 600; }

/* ---------- Landing page ---------- */
.hero {
  position: relative; min-height: 560px; height: 78vh; max-height: 860px; display: flex; align-items: flex-end;
  background: var(--lm-navy) center / cover no-repeat;
  color: #fff;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9, 48, 87, 0.15) 0%, rgba(9, 48, 87, 0.2) 45%, rgba(9, 48, 87, 0.85) 100%); }
.hero-inner { position: relative; width: 100%; max-width: 1440px; margin: 0 auto; padding: 60px 40px 64px; }
.hero .eyebrow { color: #fff; opacity: 0.85; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 300; max-width: 900px; color: #fff; }
.hero h1 strong { font-weight: 600; }
.hero p { font-size: 1.25rem; font-weight: 300; max-width: 720px; margin: 18px 0 30px; color: rgba(255, 255, 255, 0.92); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-caption { position: absolute; right: 16px; bottom: 10px; font-size: 11px; color: rgba(255, 255, 255, 0.6); }

.band { padding: 56px 40px; }
.band-inner { max-width: 1440px; margin: 0 auto; }
.band.white { background: var(--surface); }
.band.gray { background: var(--plane-2); }
.band.navy { background: var(--lm-navy); color: #fff; }
.band h2 { color: var(--lm-navy); text-align: center; margin-bottom: 10px; }
.band.navy h2 { color: #fff; }
.band .lede { text-align: center; color: var(--gray); font-size: 1.1rem; max-width: 760px; margin: 0 auto 40px; font-weight: 300; }
.band.navy .lede { color: rgba(255, 255, 255, 0.8); }

.live-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 900px) { .live-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.live-stat { border-left: 3px solid var(--lm-blue); padding: 6px 0 6px 20px; }
.live-stat .v { font-weight: 300; font-size: 54px; line-height: 1; color: var(--lm-navy); letter-spacing: -0.01em; }
.live-stat .l { font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray); margin-top: 10px; }
.live-stat .s { color: var(--gray); font-size: 13.5px; margin-top: 2px; }

.feature-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1250px) { .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--line); color: var(--ink); display: flex; flex-direction: column; transition: box-shadow 0.2s, transform 0.2s; }
.feature:hover { text-decoration: none; box-shadow: 0 14px 34px rgba(9, 48, 87, 0.16); transform: translateY(-3px); }
.feature .img { aspect-ratio: 16 / 10; background: var(--lm-navy) center / cover no-repeat; }
.feature .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.feature h3 { color: var(--lm-navy); font-size: 1.3rem; font-weight: 500; }
.feature p { margin: 0; color: var(--gray); font-size: 15px; flex: 1; }
.feature .more { color: var(--lm-blue); font-weight: 600; font-size: 15px; }
.feature .more::after { content: " \2192"; }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }
.split h2 { text-align: left; }
.split p { color: var(--gray); font-size: 1.05rem; font-weight: 300; }
.split .photo { aspect-ratio: 16 / 10; background: center / cover no-repeat; }
.ticker { display: flex; flex-direction: column; gap: 0; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.ticker .row { display: grid; grid-template-columns: 110px 1fr 120px; gap: 14px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.15); font-size: 15px; }
.ticker .row b { font-weight: 600; }
.ticker .row .d { color: rgba(255, 255, 255, 0.72); }
.ticker .row .r { text-align: right; color: rgba(255, 255, 255, 0.72); font-variant-numeric: tabular-nums; }

.sources { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 900px) { .sources { grid-template-columns: 1fr; } }
.source-card { border-top: 3px solid var(--lm-blue); padding-top: 16px; }
.source-card h3 { color: var(--lm-navy); font-size: 1.2rem; margin-bottom: 6px; }
.source-card p { margin: 0; color: var(--gray); font-size: 14.5px; }

/* ---------- Footer ---------- */
.footer { background: var(--lm-navy); color: rgba(255, 255, 255, 0.85); padding: 40px 40px 24px; }
.footer-inner { max-width: 1440px; margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 26px; border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
.footer .brand { color: #fff; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-cols h4 { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; margin-bottom: 10px; }
.footer-cols a, .footer-cols span { display: block; color: rgba(255, 255, 255, 0.78); font-size: 14.5px; margin-bottom: 6px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 18px; font-size: 12.5px; color: rgba(255, 255, 255, 0.6); }

/* ---------- Map view ---------- */
.map-shell { display: flex; flex: 1; width: 100%; height: 100%; min-height: 0; }
.map-side { width: 360px; flex: none; height: 100%; background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; }
.map-side .side-head { padding: 22px 22px 14px; border-bottom: 1px solid var(--line); }
.map-side .side-head h2 { font-size: 1.7rem; color: var(--lm-navy); }
.map-side .side-head .eyebrow { margin-bottom: 4px; }
.layer-toggles { display: flex; flex-direction: column; gap: 8px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.layer-toggles label { display: flex; align-items: center; gap: 10px; font-size: 14.5px; cursor: pointer; }
.layer-toggles input { accent-color: var(--lm-blue); }
.layer-toggles .swatch { width: 12px; height: 12px; }
.layer-toggles .count { margin-left: auto; color: var(--gray); font-variant-numeric: tabular-nums; }
.map-list { flex: 1; overflow-y: auto; }
.map-list .item { padding: 10px 22px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 14px; }
.map-list .item:hover { background: #f4f8fc; }
.map-list .item .t { display: flex; justify-content: space-between; gap: 8px; }
.map-list .item .t b { font-weight: 600; color: var(--lm-navy); }
.map-list .item .d { color: var(--gray); font-size: 13px; }
.map-list .group { padding: 8px 22px 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray); background: var(--plane-2); position: sticky; top: 0; }
#map { flex: 1; min-height: 480px; background: #dfe3e8; }
.leaflet-container { font-family: var(--font); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--surface); color: var(--ink); border-radius: 0; box-shadow: 0 10px 30px rgba(9, 48, 87, 0.25); }
.leaflet-popup-content { margin: 14px 16px; font-size: 13.5px; line-height: 1.45; }
.leaflet-popup-content b { font-size: 17px; font-weight: 600; color: var(--lm-navy); }
.leaflet-popup-content .muted { color: var(--gray); }
.leaflet-control-attribution { background: rgba(255, 255, 255, 0.8) !important; color: var(--gray) !important; }
.leaflet-bar a { background: var(--surface) !important; color: var(--ink) !important; border-color: var(--line) !important; border-radius: 0 !important; }
.leaflet-bar { border-radius: 0 !important; }
.ac-icon { display: flex; align-items: center; justify-content: center; }
.ac-icon svg { width: 22px; height: 22px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)); }
.sat-icon { width: 11px; height: 11px; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 1px 4px rgba(0, 0, 0, 0.4); }
.fac-icon svg { width: 18px; height: 18px; fill: var(--lm-navy); filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35)); }
.map-status { position: absolute; left: 12px; bottom: 12px; z-index: 500; background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line); padding: 7px 12px; font-size: 13px; color: var(--ink-2); }
.map-status .err { color: var(--danger); }

/* ---------- Knowledge view ---------- */
.kn-shell { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; }
@media (max-width: 900px) { .kn-shell { grid-template-columns: 1fr; } }
.doc-list { display: flex; flex-direction: column; gap: 8px; }
.doc { padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--line-2); background: var(--surface); cursor: pointer; }
.doc:hover, .doc.active { border-left-color: var(--lm-blue); }
.doc.active { background: #f4f8fc; }
.doc .t { font-size: 14.5px; font-weight: 500; color: var(--lm-navy); }
.doc .m { color: var(--gray); font-size: 13px; margin-top: 2px; }
.ask-box { display: flex; gap: 12px; }
.ask-box textarea { flex: 1; min-height: 72px; resize: vertical; background: var(--surface); border: 1px solid var(--line-2); padding: 12px 14px; color: var(--ink); font-size: 15px; }
.ask-box textarea:focus { outline: 2px solid var(--lm-blue); outline-offset: -1px; }
.answer { white-space: pre-wrap; line-height: 1.65; font-size: 15.5px; }
.answer .cite { display: inline-block; padding: 0 6px; margin: 0 1px; background: #e3eef9; color: var(--lm-blue); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.answer .cite:hover { background: var(--lm-blue); color: #fff; }
.sources-list { display: flex; flex-direction: column; gap: 8px; }
.source { border: 1px solid var(--line); border-left: 3px solid var(--line-2); background: var(--surface); padding: 10px 14px; font-size: 13.5px; }
.source.hl { border-left-color: var(--lm-blue); background: #f4f8fc; }
.source .h { display: flex; gap: 8px; align-items: baseline; margin-bottom: 4px; }
.source .h .n { color: var(--lm-blue); font-weight: 700; }
.source .h .d { color: var(--ink-2); font-weight: 500; }
.source .h .p { color: var(--gray); margin-left: auto; white-space: nowrap; }
.source .x { color: var(--gray); max-height: 64px; overflow: hidden; }
.source.open .x { max-height: none; }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
.suggest button { background: var(--surface); border: 1px solid var(--line-2); padding: 6px 14px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.suggest button:hover { border-color: var(--lm-blue); color: var(--lm-blue); }
.history { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.turn { padding: 14px 16px; }
.turn.user { background: var(--plane-2); align-self: flex-end; max-width: 80%; }
.turn.assistant { background: var(--surface); border: 1px solid var(--line); }
.turn .who { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray); margin-bottom: 6px; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; } .reveal.d2 { transition-delay: 0.2s; } .reveal.d3 { transition-delay: 0.3s; } .reveal.d4 { transition-delay: 0.4s; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(26, 143, 60, 0.45); } 70% { box-shadow: 0 0 0 7px rgba(26, 143, 60, 0); } }
@keyframes shimmer { from { background-position: -600px 0; } to { background-position: 600px 0; } }

.stagger { animation: rise 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.fade-out { opacity: 0; transition: opacity 0.12s; }
.fade-in { animation: fadeIn 0.35s ease both; }
.view { animation: fadeIn 0.35s ease; }

/* Hero: slow zoom on the photograph, staggered copy */
.hero { overflow: hidden; }
.hero-media { position: absolute; inset: 0; background: center / cover no-repeat; animation: kenburns 24s ease-out both; will-change: transform; }
.hero::before { z-index: 1; }
.hero-inner { z-index: 2; }
.hero-caption { z-index: 2; }
.hero .eyebrow, .hero h1, .hero p, .hero-actions { animation: rise 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.hero .eyebrow { animation-delay: 0.15s; } .hero h1 { animation-delay: 0.3s; } .hero p { animation-delay: 0.45s; } .hero-actions { animation-delay: 0.6s; }
.hero-scroll { position: absolute; left: 50%; bottom: 18px; z-index: 2; transform: translateX(-50%); color: rgba(255, 255, 255, 0.7); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 6px; animation: fadeIn 1s 1.2s both; }
.hero-scroll::after { content: ""; width: 1px; height: 28px; background: linear-gradient(rgba(255, 255, 255, 0.8), transparent); animation: rise 1.4s ease-in-out infinite; }

/* Header polish */
.topbar { transition: box-shadow 0.25s; }
.topbar.scrolled { box-shadow: 0 6px 24px rgba(9, 48, 87, 0.12); }
.tabs a { position: relative; transition: color 0.2s; border-bottom: none; }
.tabs a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 3px; background: var(--lm-blue); transform: scaleX(0); transform-origin: left; transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1); }
.tabs a:hover::after, .tabs a.active::after { transform: scaleX(1); }
.live-pill .dot { animation: pulse 2s infinite; }
.live-pill.stale .dot, .live-pill.down .dot { animation: none; }

/* Buttons, cards, rows */
.btn { transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s; }
.btn:active { transform: translateY(1px); }
.btn.primary { position: relative; overflow: hidden; }
.btn.primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%); transform: translateX(-100%); transition: transform 0.6s; }
.btn.primary:hover::after { transform: translateX(100%); }
.card { transition: box-shadow 0.25s; }
.card:hover { box-shadow: 0 8px 28px rgba(9, 48, 87, 0.08); }
.stat .value { transition: color 0.3s; }
.feature .img { overflow: hidden; }
.feature .img > span { display: block; width: 100%; height: 100%; background: inherit; background-size: cover; background-position: center; transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1); }
.feature:hover .img > span { transform: scale(1.06); }
.feature .more { transition: gap 0.2s; display: inline-flex; gap: 6px; }
.feature .more::after { transition: transform 0.25s; display: inline-block; }
.feature:hover .more::after { transform: translateX(4px); }
table.data tr.row-link td { transition: background 0.15s; }
.program, .doc, .source { transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s, background 0.2s; }
.program:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(9, 48, 87, 0.12); }
.bar-row .fill { transform-origin: left; animation: growX 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
@keyframes growX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.drawer { animation: slideIn 0.35s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
.drawer-backdrop { animation: fadeIn 0.25s ease both; }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.ticker .row { animation: rise 0.5s ease both; }
.map-list .item { transition: background 0.15s; }
.ac-icon svg, .sat-icon { transition: transform 0.2s; }
.ac-icon:hover svg { transform: scale(1.3); }
.leaflet-marker-icon { transition: transform 0.25s linear; }

/* Loading skeletons */
.skeleton { position: relative; overflow: hidden; background: var(--plane-2); color: transparent !important; border-radius: 2px; }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent); animation: shimmer 1.4s infinite; }
.skeleton-block { height: 220px; background: var(--plane-2); position: relative; overflow: hidden; }
.skeleton-block::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent); animation: shimmer 1.4s infinite; }
.skeleton-rows { display: flex; flex-direction: column; gap: 10px; padding: 8px 0; }
.skeleton-rows > div { height: 16px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Watchlist and pipeline */
.watch { background: none; border: none; cursor: pointer; font-size: 18px; line-height: 1; color: var(--line-2); padding: 0 4px; transition: color 0.15s, transform 0.15s; }
.watch:hover { color: var(--lm-blue); transform: scale(1.15); }
.watch.on { color: var(--lm-blue); }
.chip.due-soon { background: #fbe9ea; color: var(--danger); }
.chip.due-year { background: #fdf3d8; color: #8a6500; }
.chip.due-later { background: #e3eef9; color: var(--lm-blue); }
.supplier-list tr.row-link td:first-child { font-weight: 500; color: var(--lm-navy); }
