:root {
  --shell-bg: #eef2f4;
  --panel-bg: rgba(255, 255, 255, 0.92);
  --panel-border: rgba(15, 23, 42, 0.09);
  --text-main: #14202b;
  --text-soft: #62707d;
  --text-dim: #7e8b97;
  --accent: #0f6b6f;
  --track-bg: #d9e4ea;
  --track-live: #dcefe9;
  --track-progress: rgba(15, 107, 111, 0.16);
  --timeline-dot: #0f6b6f;
  --shadow-lg: 0 24px 60px rgba(18, 34, 48, 0.12);
  --shadow-sm: 0 10px 26px rgba(18, 34, 48, 0.08);
}

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top left, #f7fafb 0%, var(--shell-bg) 58%, #e7edef 100%);
  color: var(--text-main);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
}

.site-shell,
.risk-map-shell {
  min-height: 100vh;
  box-sizing: border-box;
  padding: 18px;
}

.site-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  background: var(--panel-bg);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.site-brandmark {
  display: grid;
  gap: 3px;
  color: var(--text-main);
  text-decoration: none;
}

.site-brandmark-kicker {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 800;
}

.site-brandmark strong {
  font-size: 18px;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav-link:hover {
  background: rgba(15, 107, 111, 0.08);
  color: var(--text-main);
  transform: translateY(-1px);
}

.site-nav-link.active {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 107, 111, 0.18);
}

.site-main {
  display: grid;
  gap: 18px;
}

.page-hero,
.page-card {
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  background: var(--panel-bg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}

.page-hero {
  padding: 30px 32px;
}

.page-eyebrow,
.page-section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
}

.page-hero h1,
.page-card h2,
.page-card h3 {
  margin: 10px 0 0;
  letter-spacing: -0.03em;
}

.page-hero h1 {
  font-size: 42px;
  line-height: 1.02;
  max-width: 900px;
}

.page-hero p,
.page-card p,
.feature-list,
.contact-note,
.contact-info-list span {
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.65;
}

.metric-grid,
.grid-3,
.page-grid,
.diagram-grid,
.contact-grid {
  display: grid;
  gap: 16px;
}

.metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card {
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(239, 246, 248, 0.92));
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-sm);
}

.metric-card strong {
  display: block;
  font-size: 18px;
}

.metric-card span {
  display: block;
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.55;
}

.feature-card {
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 249, 0.94));
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-sm);
}

.feature-card h3 {
  margin-top: 0;
}

.icon-chip {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(15, 107, 111, 0.08);
  border: 1px solid rgba(15, 107, 111, 0.16);
  margin-bottom: 18px;
  font-size: 22px;
}

.page-grid {
  grid-template-columns: 1.3fr 0.9fr;
}

.page-card {
  padding: 24px;
}

.page-card--wide {
  grid-column: 1 / -1;
}

.feature-list {
  padding-left: 18px;
}

.feature-list li + li {
  margin-top: 10px;
}

.diagram-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.diagram-card {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 247, 248, 0.96));
  box-shadow: var(--shadow-sm);
}

.diagram-card svg {
  width: 100%;
  height: auto;
  margin-top: 12px;
}

.diagram-title {
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 800;
  fill: var(--text-main);
}

.diagram-label {
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 12px;
  fill: var(--text-soft);
}

.signal-bars {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.signal-row {
  display: grid;
  gap: 6px;
}

.signal-row span {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.signal-row div {
  height: 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.signal-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1d8570 0%, #89c96d 45%, #f2c94c 72%, #f28a31 100%);
}

.about-main {
  gap: 20px;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 22px;
  align-items: stretch;
}

.about-hero-copy {
  display: grid;
  align-content: start;
}

.about-hero-visual {
  position: relative;
  overflow: hidden;
}

.about-visual-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
}

.about-visual-head strong {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 107, 111, 0.1);
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.about-map-svg {
  width: 100%;
  height: auto;
  border-radius: 22px;
  background: linear-gradient(180deg, #f8fbfc 0%, #eef4f6 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.about-risk-panel {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: min(300px, calc(100% - 44px));
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-sm);
}

.about-risk-panel > strong {
  display: block;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.about-risk-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--text-soft);
  font-size: 14px;
}

.about-risk-row:last-of-type {
  border-bottom: 0;
}

.about-risk-row strong {
  color: var(--text-main);
}

.about-risk-meter {
  height: 9px;
  margin-top: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.08);
}

.about-risk-meter div {
  width: 74%;
  height: 100%;
  background: linear-gradient(90deg, #48bb78, #f2c94c, #f28a31, #cb2b27);
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.about-actions-center {
  justify-content: center;
}

.about-button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
}

.button-secondary {
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.about-metric-grid {
  margin-top: 24px;
}

.about-section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 8px;
  margin-bottom: 22px;
}

.about-section-head p {
  max-width: 980px;
  margin-top: 0;
}

.about-feature-grid {
  margin-top: 12px;
}

.about-limitations {
  border: 1px solid rgba(203, 43, 39, 0.14);
}

.about-warning-box {
  padding: 22px 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 246, 244, 0.96), rgba(255, 252, 251, 0.96));
  border: 1px solid rgba(203, 43, 39, 0.12);
}

.about-warning-box .feature-list {
  margin-top: 0;
}

.about-warning-note {
  margin-top: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.about-pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.about-pipe-node {
  position: relative;
  min-height: 180px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 249, 0.95));
}

.about-pipe-node:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  color: #0f6b6f;
  font-size: 24px;
  font-weight: 900;
}

.about-pipe-node small {
  color: var(--accent);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.about-pipe-node h3 {
  margin-top: 10px;
}

.about-split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 18px;
}

.about-training-visual {
  position: relative;
  min-height: 460px;
  overflow: hidden;
}

.about-orbit {
  position: absolute;
  border: 1px dashed rgba(15, 23, 42, 0.14);
  border-radius: 50%;
}

.about-orbit-1 { inset: 56px; }
.about-orbit-2 { inset: 104px; }
.about-orbit-3 { inset: 148px; }

.about-model-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 176px;
  height: 176px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background: radial-gradient(circle, rgba(15, 107, 111, 0.18), rgba(72, 187, 120, 0.08) 58%, rgba(255,255,255,0.94));
  border: 1px solid rgba(15, 107, 111, 0.16);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.about-data-pill {
  position: absolute;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.about-pill-1 { top: 58px; left: 28px; }
.about-pill-2 { top: 100px; right: 22px; }
.about-pill-3 { bottom: 82px; left: 26px; }
.about-pill-4 { bottom: 48px; right: 34px; }

.about-steps {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.about-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 249, 0.95));
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.about-step-number {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #0f6b6f 0%, #0d8a73 100%);
  font-weight: 950;
}

.about-live-loop {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.about-loop-node {
  min-height: 210px;
}

.about-proof-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
  gap: 24px;
  padding: 28px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(15, 107, 111, 0.08), rgba(72, 187, 120, 0.06));
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.about-proof-list {
  margin: 0;
}

.about-risk-scale {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.scale-bar {
  height: 8px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.low { background: #48bb78; }
.elevated { background: #89c96d; }
.high { background: #f28a31; }
.severe { background: #cb2b27; }

.about-cta {
  text-align: center;
  padding: 36px 32px;
  display: none;
}

.contact-grid {
  grid-template-columns: 320px minmax(0, 1fr);
  align-items: start;
}

.contact-card,
.contact-form-card {
  min-height: 100%;
}

.contact-primary {
  margin: 10px 0 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.contact-email-link {
  color: var(--accent);
  text-decoration: none;
}

.contact-email-link:hover {
  text-decoration: underline;
}

.contact-email-placeholder {
  color: var(--text-main);
}

.contact-info-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  display: none;
}

.contact-info-list strong {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
}

.field input,
.field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-main);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(15, 107, 111, 0.44);
  box-shadow: 0 0 0 4px rgba(15, 107, 111, 0.12);
}

.contact-actions {
  display: grid;
  gap: 10px;
  align-items: start;
}

.button-primary {
  width: fit-content;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f6b6f 0%, #0d8a73 100%);
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(15, 107, 111, 0.18);
}

.button-primary:disabled {
  cursor: wait;
  opacity: 0.78;
}

.status-banner {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
}

.status-banner.show {
  display: block;
}

.status-banner.success {
  background: rgba(29, 133, 112, 0.12);
  color: #146d5a;
}

.status-banner.warning {
  background: rgba(242, 201, 76, 0.18);
  color: #8d6513;
}

.status-banner.error {
  background: rgba(203, 43, 39, 0.12);
  color: #9f2f25;
}

.ops-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  display: none;
}

.ops-brand {
  max-width: 760px;
}

.ops-kicker {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 700;
}

.ops-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.ops-title-row h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.ops-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 107, 111, 0.1);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ops-subtitle {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 14px;
}

.ops-top-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ops-pill {
  min-width: 170px;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: var(--panel-bg);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.ops-pill span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.ops-pill strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 800;
}

.ops-stage {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.ops-sidecard {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 18px;
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  background: var(--panel-bg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}

.side-section {
  display: grid;
  gap: 10px;
}

.side-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-dim);
}

.layer-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
}

.layer-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-size: 14px;
}

.legend-swatch {
  width: 34px;
  height: 12px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.legend-swatch.low { background: #117a65; }
.legend-swatch.moderate { background: #48bb78; }
.legend-swatch.high { background: #f2c94c; }
.legend-swatch.severe { background: #cb2b27; }

.meta-line {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
}

.meta-subline,
.help-copy {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-soft);
}

.ops-mapwrap {
  position: relative;
  min-width: 0;
}

.risk-map {
  width: 100%;
  height: calc(100vh - 220px);
  min-height: 620px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.zoom-hint {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 5;
  display: none;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(20, 32, 43, 0.82);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.zoom-hint.show {
  display: block;
}

.ops-timeline-dock {
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  background: var(--panel-bg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}

.timeline-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.timeline-wrap {
  flex: 1;
  min-width: 0;
}

.timeline-years {
  position: relative;
  height: 18px;
  margin-bottom: 6px;
}

.year-tick {
  position: absolute;
  bottom: 0;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--text-dim);
  transition: color 0.18s ease;
}

.year-tick span {
  position: relative;
  z-index: 1;
}

.year-tick::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 13px;
  width: 1px;
  height: 6px;
  background: rgba(98, 112, 125, 0.42);
}

.year-tick.active {
  color: var(--text-main);
  font-weight: 800;
}

.timeline-track {
  position: relative;
  height: 34px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--track-bg);
}

.timeline-track::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to right,
    rgba(15, 23, 42, 0.08),
    rgba(15, 23, 42, 0.08) 1px,
    transparent 1px,
    transparent var(--frame-step)
  );
  opacity: 0.35;
}

.timeline-phases {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 0;
  background: var(--track-live);
}

.phase-seg.live {
  background: var(--track-live);
}

.timeline-progress {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  border-right: 1px solid rgba(20, 32, 43, 0.18);
  z-index: 1;
  pointer-events: none;
}

.timeline-marker {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--timeline-dot);
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(15, 107, 111, 0.32);
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
}

#risk-time-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: transparent;
  accent-color: transparent;
  outline: none;
  opacity: 0;
  z-index: 4;
}

#risk-time-slider::-webkit-slider-runnable-track {
  height: 34px;
  border-radius: 999px;
  background: transparent;
  border: none;
}

#risk-time-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: transparent;
  border: none;
  box-shadow: none;
  opacity: 0;
}

#risk-time-slider::-moz-range-track {
  height: 34px;
  border-radius: 999px;
  background: transparent;
  border: none;
}

#risk-time-slider::-moz-range-progress {
  height: 34px;
  background: transparent;
  border: none;
}

#risk-time-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: transparent;
  border: none;
  box-shadow: none;
  opacity: 0;
}

#risk-time-slider:focus,
#risk-time-slider:focus-visible {
  outline: none;
}

.timeline-current-label {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-soft);
  min-height: 18px;
  font-weight: 700;
}

#risk-play {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: var(--text-main);
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

#risk-play .pause-icon { display: none; }
#risk-play.playing .play-icon { display: none; }
#risk-play.playing .pause-icon { display: inline; }

.risk-map-status {
  display: none;
  margin-top: 10px;
  padding: 0 4px;
  font-size: 13px;
  color: #9f2f25;
}

.risk-map-status.show {
  display: block;
}

.risk-map-status.error {
  font-weight: 700;
}

.road-risk-raster-tile {
  position: relative;
  width: 256px;
  height: 256px;
  overflow: hidden;
}

.road-risk-raster-image {
  position: absolute;
  inset: 0;
  width: 256px;
  height: 256px;
  pointer-events: none;
}

.segment-tooltip {
  min-width: 250px;
  display: grid;
  gap: 8px;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}

.tooltip-road {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--text-main);
}

.tooltip-meta {
  font-size: 12px;
  color: var(--text-soft);
}

.tooltip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tooltip-stat {
  padding: 10px;
  border-radius: 12px;
  background: #f3f6f8;
}

.tooltip-stat span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.tooltip-stat strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.tooltip-band {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tooltip-band-low { background: rgba(17, 122, 101, 0.12); color: #117a65; }
.tooltip-band-elevated { background: rgba(72, 187, 120, 0.14); color: #2b8a57; }
.tooltip-band-high { background: rgba(242, 201, 76, 0.16); color: #9a6a00; }
.tooltip-band-severe { background: rgba(203, 43, 39, 0.12); color: #b22a26; }

.tooltip-delta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
}

.tooltip-delta.up { color: #b22a26; }
.tooltip-delta.down { color: #117a65; }
.tooltip-delta.flat { color: var(--text-soft); }

.tooltip-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--text-soft);
}

@media (max-width: 1180px) {
  .metric-grid,
  .diagram-grid,
  .page-grid,
  .contact-grid,
  .about-risk-scale,
  .about-live-loop,
  .about-pipeline,
  .about-split,
  .about-hero,
  .about-section-head {
    grid-template-columns: 1fr;
  }

  .ops-stage {
    grid-template-columns: 1fr;
  }

  .ops-sidecard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-pipe-node:not(:last-child)::after {
    display: none;
  }

  .risk-map {
    height: calc(100vh - 360px);
    min-height: 560px;
  }
}

@media (max-width: 820px) {
  .site-shell,
  .risk-map-shell {
    padding: 12px;
  }

  .site-chrome {
    flex-direction: column;
    align-items: flex-start;
  }

  .ops-topbar {
    flex-direction: column;
  }

  .ops-sidecard {
    grid-template-columns: 1fr;
  }

  .ops-title-row h1 {
    font-size: 28px;
  }

  .page-hero {
    padding: 24px 22px;
  }

  .page-hero h1 {
    font-size: 30px;
  }

  .page-card,
  .diagram-card,
  .metric-card {
    padding: 20px;
  }

  .about-risk-panel {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 14px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .ops-pill {
    min-width: 0;
    flex: 1;
  }

  .risk-map {
    height: calc(100vh - 440px);
    min-height: 480px;
    border-radius: 22px;
  }

  .tooltip-grid {
    grid-template-columns: 1fr;
  }

  .tooltip-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
