/* ============================================================
   Mid-Atlantic Laboratories — LIMS Intelligence Concept
   Design language: "the core sample" — the page descends from
   open water through sediment strata to bedrock. Young Serif
   display · Hanken Grotesk body · Spline Sans Mono data.
   ============================================================ */

:root {
  color-scheme: light;
  /* descent */
  --abyss-1: #051826;
  --abyss-2: #0c3a58;
  --surfacecream: #f2eee1;
  --st1: #f2eee1;   /* topsoil / shoreline */
  --st2: #eae0c6;   /* silt */
  --field: #e2d5b2; /* interlude */
  --st3: #dccca4;   /* clay */
  --st4: #d2bf92;   /* sand & gravel */
  --st5: #c6b17f;   /* saprolite */
  --bedrock: #071c2c;

  --card: #fdfcf9;
  --ink: #101820;
  --ink-2: #47505a;
  --muted: #837f72;
  --rule: #d8d0b6;
  --rule-strong: #b3ab8e;
  --navy: #0c2233;
  --navy-2: #143a56;
  --cream: #f6f1df;
  --aqua: #7ec8e3;
  --accent: #175a94;        /* chrome only, never a series */

  /* validated data palette (light, surface #fdfcf9) */
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-1-dim: #9ec5f4;
  --status-good: #0ca30c;
  --status-good-text: #006300;
  --status-critical: #d03b3b;
  --grid: #e6e3d6;
  --baseline: #c3c2b7;

  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --display: "Young Serif", Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--st4);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.inner { max-width: 1120px; margin: 0 auto; padding: 0 36px; }

/* ---------- scroll reveals ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; }
.reveal.d2 { transition-delay: .24s; }
.reveal.d3 { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01s !important; }
}

/* ---------- depth gauge ---------- */
.depth-gauge {
  position: fixed; right: 22px; top: 12vh; bottom: 12vh; width: 40px;
  z-index: 40; pointer-events: none;
}
.dg-line {
  position: absolute; right: 19px; top: 0; bottom: 0; width: 2px;
  background: repeating-linear-gradient(#8a90964d 0 10px, transparent 10px 24px);
}
.dg-bubble {
  position: absolute; right: 0; top: 0;
  transform: translateY(-50%);
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  background: var(--navy); color: var(--aqua);
  border-radius: 99px; padding: 4px 9px;
  white-space: nowrap;
  transition: top .15s linear;
}
@media (max-width: 1240px) { .depth-gauge { display: none; } }

/* ============================================================
   HERO — the water column
   ============================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 760px;
  max-height: 1100px;
  background:
    radial-gradient(140% 100% at 80% -10%, #14557c 0%, transparent 55%),
    linear-gradient(180deg, var(--abyss-2) 0%, var(--abyss-1) 78%);
  color: var(--cream);
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  padding: 80px 0 150px;
}
/* drifting light shafts */
.hero::before {
  content: "";
  position: absolute; inset: -20% -10%;
  background:
    linear-gradient(112deg, transparent 42%, rgba(126,200,227,.07) 46%, transparent 52%),
    linear-gradient(105deg, transparent 60%, rgba(126,200,227,.05) 66%, transparent 74%);
  animation: shafts 14s ease-in-out infinite alternate;
}
@keyframes shafts { to { transform: translateX(4%); } }

.hero-inner {
  position: relative; z-index: 2;
  max-width: 1120px; margin: 0 auto; padding: 0 36px;
  display: grid; grid-template-columns: 1.25fr .9fr; gap: 40px; align-items: center;
}
.hero .over {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--aqua); margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(44px, 6.2vw, 78px);
  line-height: 1.04;
}
.hero h1 em { font-style: normal; color: var(--aqua); }
.hero .sub {
  margin-top: 24px; max-width: 50ch;
  color: #b8c6d1; font-size: 17.5px; line-height: 1.65;
}
.hero-cta { margin-top: 34px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero-note { font-family: var(--mono); font-size: 11.5px; color: #6f8899; max-width: 30ch; line-height: 1.6; }
.btn.glow {
  background: var(--aqua); border-color: var(--aqua); color: var(--abyss-1);
  box-shadow: 0 0 40px -6px rgba(126,200,227,.55);
  font-size: 14px; text-decoration: none; display: inline-block;
}
.btn.glow:hover { background: #a3dbef; }

/* core tube */
.hero-core svg { width: 100%; max-width: 360px; display: block; margin: 0 auto; animation: bob 7s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.core-labels line { stroke: #7ec8e388; stroke-width: 1.5; }
.core-labels text { font-family: var(--mono); font-size: 13px; fill: #a8cfe0; }
.core-labels .ftmark { font-size: 11px; fill: #6f8899; }
.bub { animation: bubble 5s ease-in infinite; }
.bub.b2 { animation-delay: 1.6s; } .bub.b3 { animation-delay: 3.2s; }
@keyframes bubble {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: .9; }
  100% { transform: translateY(-170px); opacity: 0; }
}

/* surface waves at hero's base */
.waves { position: absolute; left: 0; right: 0; bottom: -2px; height: 110px; z-index: 3; }
.wave { position: absolute; inset: 0; width: 200%; height: 100%; }
.wave path { fill: var(--surfacecream); }
.wave.w1 { opacity: .18; animation: drift 13s linear infinite; }
.wave.w2 { opacity: .38; animation: drift 9s linear infinite reverse; }
.wave.w3 { animation: drift 17s linear infinite; }
@keyframes drift { to { transform: translateX(-50%); } }

/* ============================================================
   STAT BAND — the shoreline
   ============================================================ */
.statband { background: var(--surfacecream); padding: 54px 0 10px; }
.statgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat b {
  display: block; font-family: var(--display); font-weight: 400;
  font-size: clamp(26px, 3vw, 38px); line-height: 1.1;
}
.stat span { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; }

/* ============================================================
   STRATA — each section is a layer of the bore
   ============================================================ */
.stratum { position: relative; padding: 96px 0 110px; }
.st1 { background: var(--st1); }
.st2 { background: var(--st2); }
.st-field { background: var(--field); }
.st3 { background: var(--st3); }
.st4 { background: var(--st4); }
.st5 { background: var(--st5); }
/* sediment speckle */
.st2, .st-field, .st3, .st4, .st5 {
  background-image:
    radial-gradient(rgba(16,24,32,.05) 1.2px, transparent 1.3px),
    radial-gradient(rgba(16,24,32,.04) 1px, transparent 1.1px);
  background-size: 90px 90px, 60px 60px;
  background-position: 0 0, 30px 45px;
}
/* irregular boundary into the NEXT layer */
.divider { position: absolute; left: 0; right: 0; bottom: -1px; height: 46px; width: 100%; display: block; }
.st1 .divider path { fill: var(--st2); }
.st2 .divider path { fill: var(--field); }
.st-field .divider path { fill: var(--st3); }
.st3 .divider path { fill: var(--st4); }
.st4 .divider path { fill: var(--st5); }

/* feature headline block */
.feature-head { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.kicker {
  display: inline-block;
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--cream); background: var(--navy);
  padding: 6px 14px; border-radius: 99px;
  margin-bottom: 22px;
}
.feature-head h2, .field-copy h2, .bedrock h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.08;
}
.feature-head h2 em, .field-copy h2 em, .bedrock h2 em { font-style: normal; color: var(--accent); }
.feature-head .lead, .field-copy .lead {
  margin-top: 18px; color: var(--ink-2); font-size: 17px; line-height: 1.65;
}

/* ---------- cards ---------- */
.card {
  background: var(--card);
  border: 1px solid rgba(16,24,32,.10);
  border-radius: 14px;
  box-shadow: 0 2px 0 rgba(16,24,32,.04), 0 24px 44px -32px rgba(16,24,32,.45);
}

/* ---------- AI search ---------- */
.search-card { padding: 28px 28px 24px; }
.search-row { display: flex; gap: 10px; }
.search-input {
  flex: 1;
  font-family: var(--sans); font-size: 17px;
  padding: 14px 18px;
  border: 1.5px solid var(--rule-strong);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.search-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(23,90,148,.15); }
.btn {
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  letter-spacing: .04em;
  padding: 12px 22px;
  white-space: nowrap;
  border: 1.5px solid var(--navy);
  border-radius: 9px;
  background: var(--navy); color: var(--cream);
  cursor: pointer;
  transition: transform .1s, background .15s;
}
.btn:hover { background: var(--navy-2); }
.btn:active { transform: scale(.97); }

.suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  font-family: var(--mono); font-size: 12px;
  padding: 6px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 99px;
  background: transparent; color: var(--ink-2);
  cursor: pointer;
  transition: all .15s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); background: rgba(23,90,148,.06); }

.interp { margin-top: 20px; min-height: 30px; }
.interp .thinking {
  font-family: var(--mono); font-size: 13px; color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px;
}
.interp .thinking::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--accent); border-top-color: transparent;
  animation: spin .7s linear infinite;
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip {
  font-family: var(--mono); font-size: 12px;
  padding: 6px 12px; border-radius: 6px;
  background: rgba(23,90,148,.08);
  border: 1px solid rgba(23,90,148,.28);
  color: var(--accent);
  animation: pop .25s ease both;
}
.fchip b { font-weight: 600; }
.fchip .k { color: var(--ink-2); font-weight: 400; }

.insight {
  margin-top: 16px; padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: rgba(23,90,148,.06);
  border-radius: 0 9px 9px 0;
  font-size: 15px;
  animation: rise .4s ease both;
}
.insight b { font-weight: 700; }

/* ---------- tables ---------- */
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule-strong);
}
table.data td { padding: 9px 12px; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr { animation: rise .3s ease both; }
table.data .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
table.data .id { font-family: var(--mono); font-size: 12.5px; color: var(--accent); }
.results-wrap { margin-top: 18px; overflow-x: auto; }
.results-meta { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 14px 2px 6px; }
table.data th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
table.data th.sortable:hover { color: var(--accent); }
.sort-arrow { font-size: 9px; color: var(--accent); }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; }
.pager .seg:disabled { opacity: .4; cursor: default; }
.pager-info { font-family: var(--mono); font-size: 12px; color: var(--muted); }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  padding: 2px 9px; border-radius: 99px;
}
.badge.ok { color: var(--status-good-text); background: rgba(12,163,12,.10); }
.badge.exceed { color: #fff; background: var(--status-critical); }
.badge.ok::before { content: "✓"; font-size: 10px; }
.badge.exceed::before { content: "▲"; font-size: 10px; }

/* ---------- dashboard ---------- */
.filter-row { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; justify-content: center; }
.filter-row .lab { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-right: 6px; letter-spacing: .06em; }
.seg {
  font-family: var(--mono); font-size: 12.5px;
  padding: 7px 14px;
  border: 1px solid var(--rule-strong); border-radius: 7px;
  background: transparent; color: var(--ink-2); cursor: pointer;
  transition: all .15s;
}
.seg:hover { background: rgba(23,90,148,.06); }
.seg.active { background: var(--navy); border-color: var(--navy); color: var(--aqua); font-weight: 600; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.tile { padding: 18px 20px 14px; }
.tile .label { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.tile .value { font-size: 40px; font-weight: 700; line-height: 1.15; margin-top: 6px; letter-spacing: -0.01em; }
.tile .delta { font-family: var(--mono); font-size: 12px; margin-top: 2px; }
.tile .delta.up-good, .tile .delta.down-good { color: var(--status-good-text); }
.tile .delta.up-bad, .tile .delta.down-bad { color: var(--status-critical); }
.tile .delta .vs { color: var(--muted); }
.tile svg.spark { display: block; margin-top: 10px; width: 100%; height: 30px; }

.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.chart-card { padding: 20px 22px 16px; min-width: 0; }
.chart-card.wide { grid-column: 1 / -1; }
.chart-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.chart-head h3 { font-size: 16px; font-weight: 700; }
.chart-head .unit { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.tbl-toggle {
  margin-left: auto;
  font-family: var(--mono); font-size: 11px;
  border: 1px solid var(--rule-strong); border-radius: 5px;
  background: none; color: var(--muted); padding: 3px 9px; cursor: pointer;
}
.tbl-toggle:hover { color: var(--accent); border-color: var(--accent); }
.legend { display: flex; gap: 18px; margin: 6px 0 4px; }
.legend .key { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); }
.legend .key .swatch-line { width: 16px; height: 2px; border-radius: 2px; }
.legend .key .swatch-rect { width: 11px; height: 11px; border-radius: 3px; }
.chart-body { position: relative; }
.chart-body svg { display: block; width: 100%; height: auto; }
.chart-body svg text { font-family: var(--mono); font-size: 11px; fill: var(--muted); }
.chart-body svg .dlabel { fill: var(--ink-2); font-weight: 600; }
.chart-body .alt-table { display: none; max-height: 260px; overflow: auto; }
.chart-card.show-table svg, .chart-card.show-table .legend { display: none; }
.chart-card.show-table .alt-table { display: block; }

.tooltip {
  position: absolute; pointer-events: none; z-index: 10;
  background: var(--navy); color: var(--cream);
  border-radius: 7px; padding: 9px 12px;
  font-size: 12px; line-height: 1.5;
  box-shadow: 0 6px 20px -6px rgba(12,34,51,.55);
  opacity: 0; transition: opacity .12s;
  min-width: 130px;
}
.tooltip.on { opacity: 1; }
.tooltip .tt-title { font-family: var(--mono); font-size: 10.5px; color: #9db4c2; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.tooltip .tt-row { display: flex; align-items: center; gap: 7px; }
.tooltip .tt-key { width: 12px; height: 2px; border-radius: 2px; flex: none; }
.tooltip .tt-val { font-weight: 700; font-variant-numeric: tabular-nums; }
.tooltip .tt-name { color: #9db4c2; }

/* ---------- field interlude ---------- */
.field-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.field-art svg { width: 100%; max-width: 440px; display: block; border-radius: 14px; box-shadow: 0 24px 44px -30px rgba(16,24,32,.5); }
.wt-label { font-family: var(--mono); font-size: 12px; fill: #eaf6fb; }
.xs-labels line { stroke: #f2eee1cc; stroke-width: 1.5; }
.xs-labels text { font-family: var(--mono); font-size: 12.5px; fill: #f2eee1; }
.bailer, .bailer-line { animation: lower 6s ease-in-out infinite alternate; }
@keyframes lower { from { transform: translateY(0); } to { transform: translateY(120px); } }
.bailer-line { transform-origin: 210px 36px; animation-name: lowerline; }
@keyframes lowerline { from { transform: scaleY(1); } to { transform: scaleY(1.8); } }
.field-copy .kicker { background: var(--navy); }
.field-list { list-style: none; margin-top: 24px; display: grid; gap: 10px; }
.field-list li {
  font-size: 15.5px; color: var(--ink-2);
  padding-left: 18px; position: relative;
}
.field-list li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.field-list b { font-family: var(--display); font-weight: 400; color: var(--ink); font-size: 17px; }

/* ---------- import / extraction ---------- */
.import-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.doc-pane { padding: 0; overflow: hidden; }
.doc-pane .doc-head, .lims-pane .doc-head {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
  padding: 12px 18px; border-bottom: 1px solid var(--rule);
}
.doc-pane pre {
  font-family: var(--mono); font-size: 11.8px; line-height: 1.75;
  padding: 18px 20px; white-space: pre-wrap;
  color: var(--ink-2);
  background:
    repeating-linear-gradient(transparent, transparent 20px, rgba(23,90,148,.04) 20px, rgba(23,90,148,.04) 21px);
}
.doc-pane pre mark { background: rgba(42,120,214,.18); color: var(--ink); border-radius: 3px; padding: 0 2px; transition: background .3s; }
.lims-pane { padding: 0; }
.lims-fields { padding: 14px 18px 6px; }
.lims-field { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--rule); opacity: 0; }
.lims-field.on { animation: rise .35s ease both; }
.lims-field .fk { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); width: 110px; flex: none; }
.lims-field .fv { font-size: 14px; font-weight: 500; }
.lims-field .fv .linked { color: var(--accent); border-bottom: 1px dashed var(--accent); }
.lims-field .conf { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--status-good-text); white-space: nowrap; }
.lims-results { padding: 4px 18px 14px; }
.import-actions { padding: 12px 18px 18px; display: flex; gap: 14px; align-items: center; }
.import-note { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

/* ---------- then-vs-now comparison ---------- */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.cmp-col { padding: 20px 22px; animation: rise .4s ease both; }
.cmp-year { font-family: var(--display); font-size: 34px; line-height: 1; margin-bottom: 14px; }
.cmp-row { display: flex; justify-content: space-between; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 14px; color: var(--ink-2); }
.cmp-row b { font-family: var(--mono); font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.cmp-params { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.cmp-param {
  font-family: var(--mono); font-size: 11px;
  padding: 3px 9px; border-radius: 99px;
  border: 1px solid var(--rule-strong); color: var(--ink-2);
}
.cmp-param.new { border-color: var(--accent); color: var(--accent); background: rgba(23,90,148,.07); font-weight: 600; }
@media (max-width: 700px) { .compare-grid { grid-template-columns: 1fr; } }

/* ---------- archive cleanup ---------- */
.doc-pane pre mark.bad { background: rgba(208,59,59,.16); color: #8e2222; border-radius: 3px; padding: 0 2px; }
#cleanup-doc.clean { color: var(--ink); background: rgba(12,163,12,.05); }
.cleanup-report { padding: 14px 18px 4px; min-height: 210px; }
.fix-row {
  display: flex; align-items: baseline; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid var(--rule);
  opacity: 0; transform: translateY(8px); transition: all .35s ease;
  font-size: 13.5px; color: var(--ink-2);
}
.fix-row.on { opacity: 1; transform: none; }
.fix-row b {
  font-family: var(--mono); font-size: 15px; color: var(--status-good-text);
  font-variant-numeric: tabular-nums; min-width: 64px; text-align: right; flex: none;
}

.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 12px);
  background: var(--navy); color: var(--cream);
  font-family: var(--mono); font-size: 13px;
  padding: 12px 22px; border-radius: 8px;
  opacity: 0; pointer-events: none; transition: all .3s;
  z-index: 50;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- report before/after ---------- */
.ba-toggle { display: flex; justify-content: center; width: fit-content; margin: 0 auto 22px; border: 1px solid var(--rule-strong); border-radius: 9px; overflow: hidden; background: rgba(255,255,255,.4); }
.ba-toggle button {
  font-family: var(--mono); font-size: 12.5px; padding: 9px 18px;
  border: none; background: transparent; color: var(--ink-2); cursor: pointer;
}
.ba-toggle button.active { background: var(--navy); color: var(--aqua); font-weight: 600; }
.report-stage { position: relative; max-width: 860px; margin: 0 auto; }
.report-pane { display: none; }
.report-pane.on { display: block; animation: rise .35s ease both; }

.excel {
  font-family: "Comic Sans MS", Verdana, sans-serif;
  background: #fff; border: 1px solid #999;
  padding: 0; overflow-x: auto;
  transform: rotate(-.4deg);
  box-shadow: 0 14px 30px -18px rgba(16,24,32,.5);
}
.excel table { border-collapse: collapse; font-size: 12px; min-width: 640px; width: 100%; }
.excel td, .excel th { border: 1px solid #b7b7b7; padding: 4px 8px; white-space: nowrap; }
.excel .xt { font-size: 15px; font-weight: bold; text-decoration: underline; background: #ffff99; }
.excel .xh { background: #d9d9d9; font-weight: bold; text-transform: uppercase; font-size: 10px; }
.excel .bad { color: #cc0000; font-weight: bold; }
.excel .off { background: #f2f2f2; }
.excel .lost { color: #999; font-style: italic; }

.pretty { padding: 34px 40px; }
.pretty .rp-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid var(--ink); padding-bottom: 16px; gap: 20px; }
.pretty .rp-head .co { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.pretty .rp-head h4 { font-family: var(--display); font-size: 22px; font-weight: 400; margin-top: 8px; }
.pretty .rp-meta { text-align: right; font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); line-height: 1.8; flex: none; }
.pretty table { margin-top: 18px; }
.pretty .foot { margin-top: 16px; font-family: var(--mono); font-size: 11px; color: var(--muted); line-height: 1.8; }

/* ---------- bedrock footer ---------- */
.bedrock {
  background:
    radial-gradient(120% 140% at 50% 120%, #10496b 0%, transparent 60%),
    var(--bedrock);
  color: var(--cream);
  padding: 110px 0 70px;
  text-align: center;
}
.bedrock h2 em { color: var(--aqua); }
.bedrock p { margin: 20px auto 0; max-width: 52ch; color: #b8c6d1; font-size: 17px; }
.bedrock-meta {
  margin-top: 64px; padding-top: 22px;
  border-top: 1px solid rgba(126,200,227,.2);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11.5px; color: #6f8899;
}

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-core { display: none; }
  .statgrid, .tiles { grid-template-columns: 1fr 1fr; }
  .charts, .import-grid, .field-grid { grid-template-columns: 1fr; }
  .filter-row { flex-wrap: wrap; }
}
