:root {
  --bg: #0a0a0a;
  --bg-card: #141414;
  --paper: #1a1a1a;
  --text: #c8c8c8;
  --text-dim: #888;
  --white: #f5f5f5;
  --red: #e32b2b;
  --red-dark: #8b0000;
  --grain-opacity: 0.12;
  --font-sans: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.55;
  overflow-x: hidden;
}

/* Film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

a {
  color: var(--red);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ——— Intro overlay ——— */
.intro {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #1a1a1a 0%, #050505 70%);
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}

.intro.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro__pulse {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  animation: pulse-line 2.2s ease-in-out infinite;
  box-shadow: 0 0 24px var(--red);
}

@keyframes pulse-line {
  0%,
  100% {
    transform: scaleX(0.3);
    opacity: 0.4;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

.intro__title {
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.intro__sub {
  max-width: 32rem;
  text-align: center;
  padding: 0 1.5rem;
  font-style: italic;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

.btn-red {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border: 2px solid var(--red);
  background: transparent;
  color: var(--red);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}

.btn-red:hover,
.btn-red:focus-visible {
  background: var(--red);
  color: var(--bg);
  box-shadow: 0 0 32px rgba(227, 43, 43, 0.45);
  outline: none;
}

/* ——— Sections ——— */
main {
  padding-left: 0;
}

.section {
  min-height: 100vh;
  padding: clamp(3rem, 8vw, 5rem) clamp(1.25rem, 5vw, 4rem);
  position: relative;
}

.section__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.section__title {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 600;
  color: var(--white);
  margin: 0 0 1rem;
  max-width: 18ch;
}

.section__title--hero {
  max-width: 30ch;
}

.section__lead {
  max-width: 42rem;
  color: var(--text);
  margin-bottom: 2rem;
}

/* Panorama hero */
.hero-panorama {
  position: relative;
  border: 1px solid #333;
  min-height: 42vh;
  background: var(--paper) center/cover no-repeat;
  background-image: linear-gradient(180deg, rgba(10, 10, 10, 0.5), var(--bg)),
    url("../assets/panorama-msb599-26apr.jpg");
}

.hero-panorama--fallback {
  background-image: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 50%, #1f0a0a 100%);
}

.hero-panorama::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.85);
  pointer-events: none;
}

.hero-panorama__stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  padding: 1.5rem;
}

.stat-card {
  background: rgba(10, 10, 10, 0.75);
  border-left: 3px solid var(--red);
  border-top: 1px solid rgba(227, 43, 43, 0.25);
  padding: 1rem 1.1rem;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.stat-card__value {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  color: var(--white);
  line-height: 1.15;
}

.stat-card__k {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.35rem;
}

.stat-card__label {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
}

.stat-card__meta {
  margin-top: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #b4b4b4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-top: 1px dashed rgba(227, 43, 43, 0.3);
  padding-top: 0.45rem;
}

.stat-card__icon {
  color: var(--red);
  font-size: 0.82rem;
  line-height: 1;
}

/* Front losses chart */
.chart-wrap {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid #2a2a2a;
}

.chart-wrap h3 {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin: 0 0 1rem;
}

.chart-bars {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.chart-row {
  display: grid;
  grid-template-columns: 10rem 1fr 3.5rem;
  align-items: center;
  gap: 0.75rem;
}

@media (max-width: 600px) {
  .chart-row {
    grid-template-columns: 1fr;
  }
}

.chart-row__name {
  font-size: 0.85rem;
  color: var(--white);
}

.chart-row__track {
  height: 10px;
  background: #222;
  border-radius: 2px;
  overflow: hidden;
}

.chart-row__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red-dark), var(--red));
  border-radius: 2px;
  width: 0;
  transition: width 1.2s var(--ease);
}

.chart-row__fill.animate {
  width: var(--w, 50%);
}

.chart-row__pct {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--red);
  text-align: right;
}

/* Intro merged overview */
.intro-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin: 1.4rem 0 1.2rem;
}

.intro-overview-card {
  border: 1px solid #2f2f2f;
  background: linear-gradient(180deg, #151515, #101010);
  padding: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.intro-overview-card:hover {
  border-color: rgba(227, 43, 43, 0.45);
  background: linear-gradient(180deg, #191919, #121212);
}

.intro-overview-card__k {
  display: inline-block;
  margin-bottom: 0.55rem;
  border: 0;
  border-left: 3px solid var(--red);
  color: #f0b7b7;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.15rem 0 0.15rem 0.5rem;
  background: transparent;
}

.intro-overview-card h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-sans);
  color: var(--white);
  font-size: 0.95rem;
}

.intro-overview-card p {
  margin: 0 0 0.6rem;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.5;
}

.intro-overview-card p:last-child {
  margin-bottom: 0;
}

.intro-overview-card--accent {
  border-color: rgba(227, 43, 43, 0.5);
  background:
    linear-gradient(90deg, rgba(227, 43, 43, 0.12) 0, rgba(227, 43, 43, 0.03) 18%, transparent 18%),
    linear-gradient(180deg, #171717, #111);
}

.intro-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 0.65rem;
}

.intro-flow span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text);
  border: 1px solid #444;
  padding: 0.35rem 0.55rem;
  background: #131313;
}

.intro-flow span b {
  color: var(--white);
  font-weight: 600;
  margin-right: 0.2rem;
}

.intro-flow span:nth-child(even) {
  border: 0;
  padding: 0;
  color: var(--red);
  background: transparent;
}

@media (max-width: 980px) {
  .intro-overview-grid {
    grid-template-columns: 1fr;
  }
}

/* Timeline scrubber */
.timeline-panel {
  background: var(--bg-card);
  border: 1px solid #2a2a2a;
  padding: 1.5rem;
  margin: 2rem 0;
}

.timeline-range {
  width: 100%;
  accent-color: var(--red);
  margin: 1rem 0;
}

.timeline-readout {
  font-family: var(--font-mono);
  color: var(--white);
  font-size: 1.1rem;
  min-height: 3rem;
}

.timeline-dates {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Evacuation chain */
.evac-chain-hint {
  margin: 0 0 1rem;
  max-width: 42rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-dim);
}

.evac-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.5rem;
  margin: 2rem 0;
}

.evac-step {
  flex: 1 1 140px;
  min-height: 100px;
  padding: 1rem;
  background: var(--paper);
  border: 1px solid #333;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
}

.evac-step::after {
  content: "→";
  position: absolute;
  right: -0.65rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--red);
  font-size: 1rem;
  z-index: 2;
}

.evac-step:last-child::after {
  display: none;
}

@media (max-width: 700px) {
  .evac-step {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .evac-step::after {
    content: "↓";
    right: 50%;
    top: auto;
    bottom: -0.85rem;
    transform: translateX(50%);
  }
}

.evac-step:hover,
.evac-step:focus-visible {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red);
  outline: none;
}

.evac-step__icon {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
  color: var(--red);
  text-shadow: 0 0 10px rgba(227, 43, 43, 0.25);
}

.evac-step__name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.evac-scheme {
  margin-top: 2rem;
  min-height: 0;
  background: #151515;
  border: 1px dashed #444;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.pmp-scheme-hint {
  margin: 0;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-dim);
  border-bottom: 1px solid #2a2a2a;
  background: rgba(227, 43, 43, 0.05);
}

.evac-scheme--empty .pmp-scheme-hint {
  display: none;
}

.pmp-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  height: 100%;
  max-width: 760px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .pmp-layout {
    grid-template-columns: 1fr;
  }
}

.pmp-imgwrap {
  position: relative;
  background: #111;
  min-height: 0;
}

.pmp-imgwrap img {
  width: 100%;
  height: auto;
  display: block;
}

.pmp-facts {
  background: linear-gradient(160deg, #121212 0%, #0e0e0e 100%);
  border-top: 1px solid #2a2a2a;
  padding: 0.9rem 1rem;
}

.pmp-facts__title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.pmp-facts__text {
  margin: 0 0 1rem;
  color: var(--text-dim);
  line-height: 1.6;
  font-size: 0.9rem;
}

.pmp-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pmp-legend-btn {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid #3a3a3a;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.pmp-legend-btn:hover,
.pmp-legend-btn:focus-visible {
  border-color: var(--red);
  color: var(--red);
  outline: none;
  transform: translateY(-1px);
}

.evac-scheme--empty {
  background: #151515;
  color: var(--text-dim);
}

.evac-scheme img {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(100%) contrast(1.08);
}

.pmp-empty {
  display: none;
  position: absolute;
  inset: 0;
  padding: 2rem 1.25rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  z-index: 2;
  line-height: 1.6;
  background: rgba(10, 10, 10, 0.65);
}

.evac-scheme--empty .pmp-empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pmp-hotspot {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(227, 43, 43, 0.0);
  background: rgba(227, 43, 43, 0.0);
  cursor: pointer;
  border-radius: 10px;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.pmp-hotspot:hover,
.pmp-hotspot:focus-visible {
  outline: none;
  border-color: rgba(227, 43, 43, 0.85);
  background: rgba(227, 43, 43, 0.12);
  transform: scale(1.01);
}

.pmp-tooltip {
  position: absolute;
  z-index: 10;
  max-width: min(360px, 92vw);
  background: rgba(10, 10, 10, 0.96);
  border: 1px solid rgba(227, 43, 43, 0.55);
  padding: 0.85rem 0.9rem;
  border-radius: 10px;
  font-family: var(--font-sans);
  color: var(--white);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.65);
  transform: translate(-50%, -100%);
  display: none;
  pointer-events: none;
}

.pmp-tooltip.open {
  display: block;
}

.pmp-tooltip strong {
  color: var(--red);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.pmp-tooltip p {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.45;
}

.evac-scheme--empty .pmp-hotspot {
  display: none;
}

.evac-photo-full {
  margin: 2rem 0 1.5rem;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border: 0;
  background: #0d0d0d;
}

.evac-photo-full img {
  width: 100%;
  display: block;
  height: auto;
  filter: grayscale(100%) contrast(1.06);
}

.evac-photo-full figcaption {
  margin: 0;
  padding: 0.65rem clamp(1.25rem, 5vw, 4rem);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  border-top: 1px solid #2c2c2c;
}

/* Artifact grid */
.artifact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.artifact-card {
  aspect-ratio: 1;
  background: var(--paper);
  border: 1px solid #333;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform 0.25s var(--ease);
}

.artifact-card:hover {
  transform: scale(1.03);
}

.artifact-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--red);
  opacity: 0.85;
}

.artifact-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
  transition: filter 0.3s;
}

.artifact-card:hover img {
  filter: grayscale(70%) contrast(1.05);
}

.artifact-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  text-align: center;
  padding: 0.5rem;
  line-height: 1.3;
}

.artifact-card__cap {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  font-size: 0.7rem;
  color: var(--white);
  text-shadow: 0 1px 4px #000;
}

/* ——— Surgical block UI ——— */
.surgical-path {
  background: var(--bg-card);
  border: 1px solid #2a2a2a;
  padding: 1.5rem 1.25rem;
  margin: 2rem 0;
}

.surgical-path__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.surgical-path__step {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: 1px solid #333;
  background: transparent;
  cursor: pointer;
  color: var(--text);
  text-align: left;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
  font-family: var(--font-mono);
}

.surgical-path__step:hover,
.surgical-path__step:focus-visible {
  border-color: rgba(227, 43, 43, 0.7);
  transform: translateY(-1px);
  outline: none;
}

.surgical-path__step[aria-selected="true"] {
  border-color: var(--red);
  color: var(--red);
  box-shadow: 0 0 0 1px rgba(227, 43, 43, 0.1) inset;
}

.surgical-path__n {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(227, 43, 43, 0.12);
  border: 1px solid rgba(227, 43, 43, 0.35);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.surgical-path__panel {
  margin-top: 1.25rem;
}

.surgical-path__panel p {
  font-family: var(--font-sans);
  color: var(--text);
  line-height: 1.65;
  margin: 0 0 0.8rem;
}

.surgical-path__panel p:last-child {
  margin-bottom: 0;
}

.surgical-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

.surgical-chart-note {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 1rem;
  line-height: 1.5;
}

.surgical-chart-wrap--full {
  margin-top: 1.25rem;
}

@media (max-width: 900px) {
  .surgical-charts {
    grid-template-columns: 1fr;
  }
}

/* ——— Simple carousel ——— */
.simple-carousel {
  margin-top: 1rem;
  background: rgba(10, 10, 10, 0.35);
  border: 1px solid #2a2a2a;
  padding: 1.25rem;
  border-radius: 12px;
}

.simple-carousel__viewport {
  overflow: hidden;
}

.simple-carousel__track {
  display: flex;
  transition: transform 0.45s var(--ease);
  will-change: transform;
}

.simple-carousel__slide {
  flex: 0 0 100%;
  min-width: 100%;
}

.simple-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.simple-carousel__btn {
  user-select: none;
}

.simple-carousel__dots {
  display: flex;
  gap: 0.45rem;
  justify-content: center;
  flex: 1;
}

.simple-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #333;
  border: 1px solid #555;
  cursor: pointer;
  padding: 0;
}

.simple-carousel__dot.is-active {
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 0 10px rgba(227, 43, 43, 0.55);
}

/* Instruments carousel grid */
.inst-carousel__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.inst-carousel__grid--single {
  grid-template-columns: 1fr;
  justify-items: center;
}

@media (max-width: 700px) {
  .inst-carousel__grid {
    grid-template-columns: 1fr;
  }
}

/* Hospital photo caption */
.hospital-photo-caption {
  font-family: var(--font-mono);
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-top: 0.75rem;
}

.simple-carousel img {
  width: 100%;
  height: auto;
  border: 1px solid #333;
  filter: grayscale(100%) contrast(1.06);
  transition: filter 0.25s;
  background: #000;
}

.simple-carousel img:hover {
  filter: grayscale(70%) contrast(1.06);
}

/* Surgical cohesive block */
.surgical-story {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
  margin: 1.6rem 0 2rem;
}

.surgical-story__text {
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(227, 43, 43, 0.12) 0%, rgba(227, 43, 43, 0) 55%),
    var(--bg-card);
  border: 1px solid #2f2f2f;
  padding: 1.35rem;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}

.surgical-story__text p {
  margin: 0 0 0.9rem;
  line-height: 1.65;
}

.surgical-story__media {
  display: grid;
  gap: 0.9rem;
}

.surgical-photo-card {
  margin: 0;
  border: 1px solid #313131;
  background: #111;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.surgical-photo-card img {
  width: 100%;
  display: block;
  height: auto;
  border-bottom: 1px solid #2a2a2a;
  filter: grayscale(100%) contrast(1.05);
  transition: transform 0.35s var(--ease), filter 0.35s var(--ease);
}

.surgical-photo-card:hover img {
  transform: scale(1.03);
  filter: grayscale(80%) contrast(1.08);
}

.surgical-photo-card figcaption {
  padding: 0.65rem 0.75rem;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

.surgical-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  margin: 1.25rem 0 2rem;
}

.surgical-metric-card {
  border: 1px solid #353535;
  background:
    linear-gradient(180deg, rgba(227, 43, 43, 0.18) 0%, rgba(227, 43, 43, 0.05) 32%, rgba(20, 20, 20, 0.88) 100%);
  padding: 1rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.surgical-metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0.8;
}

.surgical-metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(227, 43, 43, 0.55);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

.surgical-metric-card--wide {
  grid-column: 1 / -1;
}

.surgical-metric-card h4 {
  margin: 0 0 0.65rem;
  color: #f4f4f4;
  font-size: 0.98rem;
  font-family: var(--font-sans);
  letter-spacing: 0.01em;
}

.surgical-metric-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.45rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.surgical-metric-row span {
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.35;
}

.surgical-metric-row strong {
  color: #fff;
  font-family: var(--font-mono);
  font-size: 1.02rem;
  text-shadow: 0 0 14px rgba(227, 43, 43, 0.18);
}

.surgical-bars {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.surgical-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.28rem;
}

.surgical-bar__label {
  color: var(--text);
  font-size: 0.82rem;
}

.surgical-bar__track {
  height: 10px;
  background: #1f1f1f;
  border: 1px solid #333;
  border-radius: 99px;
  overflow: hidden;
}

.surgical-bar__fill {
  width: var(--w);
  height: 100%;
  background: linear-gradient(90deg, #7d0d0d, var(--red));
}

.surgical-bar__value {
  font-family: var(--font-mono);
  color: #fff;
  font-size: 0.84rem;
  justify-self: end;
}

.surgical-critical {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
  align-items: start;
}

.surgical-critical-bars {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.surgical-critical-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
}

.surgical-critical-bar__label {
  color: var(--text);
  font-size: 0.8rem;
}

.surgical-critical-bar__track {
  height: 11px;
  border: 1px solid #393939;
  background: #1b1b1b;
  border-radius: 999px;
  overflow: hidden;
}

.surgical-critical-bar__fill {
  width: var(--w);
  height: 100%;
  background: linear-gradient(90deg, #8b0000, var(--red));
}

.surgical-critical-bar__value {
  justify-self: end;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.84rem;
}

.surgical-hit {
  border: 1px solid rgba(227, 43, 43, 0.45);
  background: rgba(227, 43, 43, 0.12);
  border-radius: 12px;
  padding: 0.6rem 0.7rem;
  min-width: 130px;
  max-width: 160px;
  text-align: left;
}

.surgical-hit__v {
  display: block;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 1.1rem;
}

.surgical-hit__l {
  display: block;
  color: var(--text-dim);
  font-size: 0.72rem;
  line-height: 1.25;
}

.surgical-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.surgical-flow span {
  font-size: 0.8rem;
  border: 1px solid #444;
  background: #131313;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
}

.surgical-flow .arr {
  border: 0;
  background: transparent;
  color: var(--red);
  padding: 0;
  font-family: var(--font-mono);
}

.surgical-system-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.surgical-system-point {
  border: 1px solid #3a3a3a;
  background: rgba(10, 10, 10, 0.45);
  border-radius: 10px;
  padding: 0.7rem;
}

.surgical-system-point strong {
  display: block;
  color: var(--white);
  font-size: 0.82rem;
  margin-bottom: 0.3rem;
}

.surgical-system-point p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.79rem;
  line-height: 1.4;
}

.surgical-metric-note {
  margin: 0.65rem 0 0;
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 1.45;
}

.surgical-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.surgical-pill-list span {
  border: 1px solid #474747;
  background: linear-gradient(180deg, #191919, #111);
  color: var(--text);
  font-size: 0.8rem;
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
}

.surgical-heroes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.surgical-hero-card {
  border: 1px solid #333;
  background: linear-gradient(180deg, #1a1a1a, #131313);
  padding: 1rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.surgical-hero-card:hover {
  border-color: rgba(227, 43, 43, 0.45);
  transform: translateY(-2px);
}

.surgical-hero-card h4 {
  margin: 0 0 0.4rem;
  color: var(--white);
  font-family: var(--font-sans);
}

.surgical-hero-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.5;
}

.surgical-awards {
  margin-top: 1rem;
  border: 1px solid rgba(227, 43, 43, 0.45);
  background: linear-gradient(145deg, rgba(227, 43, 43, 0.32), rgba(20, 20, 20, 0.85));
  padding: 1rem 1.1rem;
  display: block;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

.surgical-awards__k {
  margin: 0 0 0.5rem;
  color: #ffd6d6;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.surgical-awards__quote {
  margin: 0;
  color: var(--white);
  line-height: 1.6;
  font-size: 0.92rem;
  font-style: italic;
}

/* Instrument strip: 5 visible cards + arrows */
.inst-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.8rem;
  align-items: center;
}

.inst-strip__btn {
  min-width: 2.2rem;
  padding: 0.65rem 0.75rem;
  border-color: rgba(227, 43, 43, 0.5);
  color: var(--white);
}

.inst-strip__viewport {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.inst-strip__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 4 * 0.7rem) / 5);
  gap: 0.7rem;
  padding: 0.15rem 0;
}

.inst-strip__track .artifact-card {
  width: 100%;
  min-width: 0;
  border-color: #3a3a3a;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.inst-strip__track .artifact-card:hover {
  border-color: rgba(227, 43, 43, 0.65);
}


.inst-strip__track .artifact-card__cap {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.inst-strip__track .artifact-card img {
  object-fit: contain;
  padding: 0.35rem;
  filter: grayscale(100%) contrast(1.05);
}

.inst-strip__track .artifact-card:hover img {
  filter: grayscale(70%) contrast(1.05);
}

@media (max-width: 1100px) {
  .inst-strip__track {
    grid-auto-columns: calc((100% - 3 * 0.65rem) / 4);
    gap: 0.65rem;
  }
}

@media (max-width: 860px) {
  .surgical-story {
    grid-template-columns: 1fr;
  }
  .surgical-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .surgical-heroes-grid {
    grid-template-columns: 1fr;
  }
  .surgical-awards {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
  .surgical-system-grid {
    grid-template-columns: 1fr;
  }
  .surgical-critical {
    grid-template-columns: 1fr;
  }
  .surgical-hit {
    max-width: none;
  }
  .inst-strip__track {
    grid-auto-columns: calc((100% - 2 * 0.6rem) / 3);
    gap: 0.6rem;
  }
}

@media (max-width: 580px) {
  .surgical-metrics {
    grid-template-columns: 1fr;
  }
  .inst-strip {
    grid-template-columns: 1fr;
  }
  .inst-strip__btn {
    width: 100%;
  }
  .inst-strip__track {
    grid-auto-columns: calc((100% - 0.55rem) / 2);
    gap: 0.55rem;
  }
}

/* Transport compare */
.transport-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

@media (max-width: 700px) {
  .transport-split {
    grid-template-columns: 1fr;
  }
}

.transport-card {
  background: var(--bg-card);
  border: 1px solid #2a2a2a;
  padding: 1.25rem;
}

.transport-card h4 {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.transport-visual {
  height: 160px;
  margin-bottom: 1rem;
  border: 1px solid #333;
  background-color: var(--paper);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.transport-visual--fit {
  height: clamp(200px, 32vw, 300px);
  background-size: contain;
}

.transport-visual--fit img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.transport-card__figure {
  margin: 0;
}

.transport-card__figure .transport-visual {
  margin-bottom: 0;
}

.transport-card > p,
.transport-card__figcaption {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text);
}

/* Building scroll story */
.building-story {
  position: relative;
  max-width: 520px;
  margin: 2rem auto;
  border: 1px solid #333;
  background: linear-gradient(180deg, #1a1a1a, #0d0d0d);
  min-height: 380px;
}

.building-story__silhouette {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(227, 43, 43, 0.06) 50%,
      transparent 100%
    ),
    repeating-linear-gradient(
      90deg,
      #222 0px,
      #222 2px,
      transparent 2px,
      transparent 28px
    );
  opacity: 0.35;
  pointer-events: none;
}

.building-levels {
  position: relative;
  z-index: 1;
  padding: 2rem 1.5rem;
}

.building-level {
  padding: 1.25rem 0;
  border-bottom: 1px solid #2a2a2a;
  opacity: 1;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.building-level:not(.visible) {
  opacity: 0.4;
  transform: translateX(-6px);
}

.building-level.visible {
  opacity: 1;
  transform: translateX(0);
}

.building-level strong {
  display: block;
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.35rem;
}

/* Split humanity */
.humanity-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 2rem 0;
  border: 1px solid #333;
  overflow: hidden;
}

@media (max-width: 700px) {
  .humanity-split {
    grid-template-columns: 1fr;
  }
}

.humanity-split__left,
.humanity-split__right {
  padding: 2rem 1.5rem;
}

.humanity-split__left {
  background: #121212;
}

.humanity-split__right {
  background: linear-gradient(160deg, rgba(139, 0, 0, 0.35), #141414);
  border-left: 3px solid var(--red);
}

.humanity-split .big-num {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--white);
  line-height: 1;
}

/* Prisoners and hospitals dashboard */
.prisoners-dashboard {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
  margin: 1.6rem 0 1rem;
}

.prisoners-total {
  border: 1px solid #313131;
  background: linear-gradient(165deg, rgba(227, 43, 43, 0.16), #121212);
  padding: 1.2rem;
}

.prisoners-total__v {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4.4vw, 3rem);
  color: var(--white);
  line-height: 1;
}

.prisoners-total__l {
  margin-top: 0.75rem;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.45;
}

.prisoners-split-viz {
  border: 1px solid #2d2d2d;
  background: var(--bg-card);
  padding: 1rem;
}

.prisoners-split-viz__bar {
  height: 18px;
  background: #1f1f1f;
  border: 1px solid #353535;
  display: flex;
  overflow: hidden;
}

.prisoners-split-viz__seg {
  width: var(--w);
  display: block;
}

.prisoners-split-viz__seg--de {
  background: linear-gradient(90deg, #8f1111, var(--red));
}

.prisoners-split-viz__seg--ra {
  background: linear-gradient(90deg, #7f7f7f, #b8b8b8);
}

.prisoners-split-viz__legend {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.55rem;
}

.prisoners-split-viz__legend div {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 0.6rem;
  align-items: start;
}

.prisoners-split-viz__legend strong {
  font-family: var(--font-mono);
  color: var(--white);
}

.prisoners-split-viz__legend span {
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.4;
}

.prisoners-bridge {
  margin: 0.95rem 0 0.85rem;
  padding: 0.85rem 0.95rem;
  border-left: 3px solid var(--red);
  background: rgba(227, 43, 43, 0.08);
}

.prisoners-bridge p {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.5;
}

.prisoners-detail-block {
  border: 1px solid #2f2f2f;
  background: #131313;
  padding: 0.9rem;
  margin-top: 0.9rem;
}

.prisoners-detail-block > h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}

.prisoners-note {
  margin: 0 0 0.75rem;
  color: var(--text-dim);
  font-size: 0.84rem;
  line-height: 1.45;
}

.prisoners-facilities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 0;
}

.prisoners-facility {
  border: 1px solid #2f2f2f;
  background: #141414;
  padding: 0.9rem;
}

.prisoners-facility h3 {
  margin: 0 0 0.25rem;
  color: var(--white);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

.prisoners-facility .k {
  margin: 0 0 0.4rem;
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 1.15rem;
}

.prisoners-facility p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.8rem;
  line-height: 1.35;
}

.prisoners-scheme {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  position: relative;
}

.prisoners-scheme__line {
  position: absolute;
  left: 2rem;
  right: 2rem;
  top: 1.05rem;
  height: 2px;
  background: linear-gradient(90deg, rgba(227, 43, 43, 0.45), var(--red), rgba(227, 43, 43, 0.45));
  pointer-events: none;
}

.prisoners-scheme__node {
  position: relative;
  padding: 1.15rem 0.35rem 0.35rem;
}

.prisoners-scheme__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.prisoners-scheme__head span {
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #fff;
  border: 1px solid var(--red);
  background: #0f0f0f;
  position: relative;
  z-index: 1;
  border-radius: 50%;
}

.prisoners-scheme__head h4 {
  margin: 0;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prisoners-scheme__node p {
  margin: 0;
  color: var(--text);
  font-size: 0.83rem;
  line-height: 1.42;
  padding-left: 2.65rem;
}

@media (max-width: 980px) {
  .prisoners-dashboard {
    grid-template-columns: 1fr;
  }
  .prisoners-facilities { grid-template-columns: repeat(2, 1fr); }
  .prisoners-scheme {
    grid-template-columns: repeat(2, 1fr);
  }
  .prisoners-scheme__line {
    display: none;
  }
}

@media (max-width: 620px) {
  .prisoners-facilities,
  .prisoners-scheme {
    grid-template-columns: 1fr;
  }
}

/* Dashboard tiles */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.dash-tile {
  background: var(--bg-card);
  border: 1px solid #2a2a2a;
  padding: 1.25rem;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.dash-tile:hover {
  transform: translateY(-2px);
  border-color: var(--red);
}

.dash-tile .num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--red);
}

/* Street path (interactive journey) */
.street-path {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid #2a2a2a;
}

.med-route-story {
  margin-top: 1.5rem;
}

.med-route-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .med-route-grid {
    grid-template-columns: 1fr;
  }
}

.med-route-copy {
  background: linear-gradient(180deg, #111 0%, #0d0d0d 100%);
  border: 1px solid #2a2a2a;
  padding: 1.25rem 1.2rem;
}

.med-route-viz {
  display: flex;
  flex-direction: column;
}

.med-loss-mini {
  margin: 1rem 0 0;
  padding: 1.15rem 1rem;
}

.med-route-strip {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 900px) {
  .med-route-strip {
    grid-template-columns: 1fr;
  }
}

.med-strip-card {
  background: var(--paper);
  border: 1px solid #2a2a2a;
  padding: 1rem 1.05rem;
}

.med-strip-card h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: var(--red);
}

.street-nodes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.street-node {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid #444;
  background: #181818;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
}

.street-node.done {
  border-color: var(--red);
  color: var(--white);
  background: rgba(227, 43, 43, 0.12);
}

.street-node.current {
  box-shadow: 0 0 0 2px var(--red);
  color: var(--red);
}

.street-challenge {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.choice-btn {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  padding: 0.65rem 1rem;
  border: 1px solid #555;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.choice-btn:hover,
.choice-btn:focus-visible {
  border-color: var(--red);
  color: var(--red);
  outline: none;
}

.choice-btn.correct {
  border-color: #3a8f3a;
  color: #8fdf8f;
}

.choice-btn.wrong {
  border-color: var(--red-dark);
  opacity: 0.6;
}

.advance-wrap {
  margin-top: 1.5rem;
}

.btn-ghost {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1.25rem;
  border: 1px solid #555;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.btn-ghost:hover {
  border-color: var(--red);
  color: var(--red);
}

.btn-ghost:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Video placeholder */
.video-atmosphere {
  position: relative;
  aspect-ratio: 16/9;
  max-width: 900px;
  margin: 2rem auto;
  background: #111 center/cover;
  border: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-atmosphere video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.video-atmosphere.has-video video {
  opacity: 1;
  pointer-events: auto;
}

.video-placeholder {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.video-atmosphere.has-video .video-placeholder {
  display: none;
}

/* Memory book */
.memory-form {
  max-width: 420px;
  margin: 2rem 0;
}

.memory-form input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--paper);
  border: 1px solid #444;
  color: var(--white);
  font-family: var(--font-mono);
  margin-bottom: 1rem;
}

.memory-form input:focus {
  outline: none;
  border-color: var(--red);
}

.memory-list {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #2a2a2a;
  padding: 0.75rem;
}

/* Footer */
.site-footer {
  padding: 3rem clamp(1.25rem, 5vw, 4rem) 4rem;
  border-top: 1px solid #222;
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
}

.site-footer p {
  margin: 0 0 0.75rem;
  line-height: 1.55;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.site-footer a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--red);
  outline: none;
}

/* ——— Modal ——— */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: #161616;
  border: 1px solid #3a3a3a;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  animation: modal-in 0.35s var(--ease);
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

.modal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--red);
  background: transparent;
  color: var(--red);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.modal__close:hover {
  background: var(--red);
  color: var(--bg);
}

.modal__inner {
  padding: 2rem 1.75rem 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text);
}

.modal__title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 1rem;
  padding-right: 2.5rem;
}

.facts-counter {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 99;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid #333;
  padding: 0.5rem 0.75rem;
}

.quote-block {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 5px solid var(--red);
  padding: 1rem 1rem 1rem 1rem;
  background: linear-gradient(90deg, rgba(227, 43, 43, 0.12), rgba(227, 43, 43, 0.04));
  border-top: 1px solid rgba(227, 43, 43, 0.25);
  border-bottom: 1px solid rgba(227, 43, 43, 0.15);
  border-radius: 10px;
  font-style: italic;
  color: var(--white);
  box-shadow: 0 0 0 1px rgba(227, 43, 43, 0.08) inset;
}

.chapter {
  position: relative;
}

.chapter-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  min-height: 100vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  overflow: hidden;
  isolation: isolate;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.chapter[data-stage-entry="true"] {
  min-height: 100vh;
}

.chapter[data-stage-entry="true"]:not(.chapter--unlocked) .chapter-panel {
  display: none;
}

.chapter--unlocked .chapter-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.chapter--stage-open .chapter-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.stage-overlay-open {
  overflow: hidden;
}

.chapter-overlay__box {
  position: relative;
  z-index: 4;
  max-width: 920px;
  width: 100%;
  text-align: center;
  padding: clamp(0.2rem, 1.2vw, 0.8rem);
  border: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.chapter-overlay__header {
  margin: 0 auto clamp(0.85rem, 2vw, 1.2rem);
  max-width: 72ch;
  text-align: left;
  padding: 0.75rem 0.85rem 0.85rem;
  border-left: 3px solid var(--red);
  background: linear-gradient(90deg, rgba(227, 43, 43, 0.14), rgba(227, 43, 43, 0.03));
}

.chapter-overlay__kicker {
  margin: 0 0 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f0b7b7;
}

.chapter-overlay__title {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  line-height: 1.3;
  color: var(--white);
}

.chapter-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  border: 0;
  background: #000;
  object-fit: cover;
  object-position: center center;
  filter: grayscale(100%) contrast(1.12) brightness(0.56);
  pointer-events: none;
}

.chapter-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0.08) 38%, rgba(0, 0, 0, 0.6) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0.58));
}

.chapter-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.74) 10%,
      rgba(0, 0, 0, 0.24) 24%,
      rgba(0, 0, 0, 0.08) 36%,
      rgba(0, 0, 0, 0.08) 64%,
      rgba(0, 0, 0, 0.24) 76%,
      rgba(0, 0, 0, 0.74) 90%,
      rgba(0, 0, 0, 0.88) 100%
    );
}

.chapter-overlay__cinema-bars {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.chapter-overlay__cinema-bars::before,
.chapter-overlay__cinema-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: clamp(32px, 6.5vh, 72px);
  background: #000;
}

.chapter-overlay__cinema-bars::before {
  top: 0;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}

.chapter-overlay__cinema-bars::after {
  bottom: 0;
  box-shadow: 0 -20px 48px rgba(0, 0, 0, 0.45);
}

.chapter-overlay__hint {
  font-family: var(--font-sans);
  font-size: clamp(0.94rem, 1.5vw, 1.08rem);
  color: #d2d2d2;
  margin: 1rem auto 1.25rem;
  line-height: 1.65;
  max-width: 68ch;
}

.chapter-overlay--no-video .chapter-overlay__box {
  border: 0;
  background: transparent;
}

.chapter-overlay__hint.is-typing::after {
  content: "|";
  margin-left: 0.18em;
  opacity: 0.92;
  animation: chapter-caret-blink 1s steps(1, end) infinite;
}

@keyframes chapter-caret-blink {
  50% {
    opacity: 0;
  }
}

.stage-next {
  display: flex;
  justify-content: center;
  margin-top: clamp(1.2rem, 2vw, 2rem);
}

.stage-next__btn {
  min-width: min(92vw, 280px);
  max-width: min(92vw, 36rem);
  text-align: center;
  line-height: 1.4;
  white-space: normal;
  text-transform: none;
  letter-spacing: 0.03em;
  font-family: var(--font-sans, inherit);
}

.chapter-skip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--red);
  font-size: 0;
  margin-top: clamp(6rem, 18vh, 12rem);
}

.chapter-skip:hover,
.chapter-skip:focus-visible {
  background: transparent;
  color: var(--red);
  box-shadow: none;
  outline: none;
}

.chapter-skip__arrow {
  display: inline-block;
  width: auto;
  height: auto;
  border: 0;
  transform: none;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1;
  animation: chapter-skip-bounce 1.15s ease-in-out infinite;
}

.chapter-skip__arrow::before {
  content: "∨";
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 300;
  transform: scaleX(1.7);
}

@keyframes chapter-skip-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

.chapter-panel {
  position: relative;
  z-index: 1;
}

.modal.modal--wide {
  max-width: 720px;
}

.modal.modal--wide:has(.artifact-modal) {
  max-width: min(920px, 96vw);
}

.artifact-modal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 1.75rem);
  align-items: start;
  margin-top: 0.35rem;
}

.artifact-modal__photo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  padding: 0.75rem;
  background: var(--paper);
  border: 1px solid #333;
  border-radius: 4px;
}

.artifact-modal__photo img {
  max-width: 100%;
  max-height: min(58vh, 480px);
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(35%) contrast(1.02);
}

.artifact-modal__photo--empty {
  color: var(--text-dim);
  font-size: 0.85rem;
  text-align: center;
  line-height: 1.45;
  padding: 1.5rem 1rem;
}

.artifact-modal__text {
  min-width: 0;
}

.artifact-modal__cap {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(0.92rem, 1.9vw, 1.05rem);
  line-height: 1.55;
  color: var(--text);
}

@media (max-width: 640px) {
  .artifact-modal {
    grid-template-columns: 1fr;
  }

  .artifact-modal__photo {
    min-height: 160px;
  }
}

.modal-viz {
  margin: 0 0 1.25rem;
  padding: 1rem;
  background: #101010;
  border: 1px solid #2a2a2a;
}

.modal-viz--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 520px) {
  .modal-viz--split {
    grid-template-columns: 1fr;
  }
}

.modal-text {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 0.75rem;
}

#modalBody.modal-body--pmp .viz-stat-grid {
  margin-bottom: 1.35rem;
}

.modal-quote {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--red);
  font-style: italic;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.modal-quote cite {
  display: block;
  margin-top: 0.35rem;
  font-style: normal;
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.modal-chart {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.viz-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5rem 2.5rem;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
}

.viz-row__l {
  color: var(--white);
}

.viz-row__t {
  height: 8px;
  background: #222;
  border-radius: 2px;
  overflow: hidden;
}

.viz-row__f {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--red-dark), var(--red));
  border-radius: 2px;
  transition: width 0.9s var(--ease);
}

.viz-row__f--on {
  width: var(--pct, 50%);
}

.viz-row__p {
  font-family: var(--font-mono);
  color: var(--red);
  text-align: right;
}

.viz-donut-css {
  --p: 50;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  margin: 0 auto 0.5rem;
  background: conic-gradient(var(--red) calc(var(--p) * 1%), #2a2a2a 0);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.viz-donut-css__hole {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: #141414;
  border: 1px solid #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.35rem;
}

.viz-donut-css__hole strong {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--white);
}

.viz-donut-css__hole span {
  font-size: 0.62rem;
  color: var(--text-dim);
  line-height: 1.25;
  margin-top: 0.2rem;
}

.viz-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
}

.viz-stat-grid--cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
}

.viz-stat-grid--transport {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  width: 100%;
}

.viz-stat-grid--transport .viz-stat-cell:nth-child(-n + 3) {
  grid-column: span 2;
}

.viz-stat-grid--transport .viz-stat-cell:nth-child(n + 4) {
  grid-column: span 3;
}

@media (max-width: 520px) {
  .viz-stat-grid--cols-3 {
    grid-template-columns: 1fr;
  }

  .viz-stat-grid--transport {
    grid-template-columns: 1fr;
  }

  .viz-stat-grid--transport .viz-stat-cell {
    grid-column: span 1;
  }
}

.viz-stat-cell {
  background: #141414;
  border: 1px solid #333;
  padding: 0.75rem 0.65rem;
  text-align: center;
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.viz-stat-cell__v {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--red);
  line-height: 1.25;
  overflow-wrap: break-word;
}

.viz-stat-cell__l {
  font-size: 0.68rem;
  color: var(--text-dim);
  line-height: 1.35;
  margin-top: 0.35rem;
  overflow-wrap: break-word;
}

.viz-flow__step {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #2a2a2a;
}

.viz-flow__step:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.viz-flow__n {
  flex-shrink: 0;
  box-sizing: border-box;
  width: 3.85rem;
  height: 3.85rem;
  border-radius: 50%;
  border: 1px solid var(--red);
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  line-height: 1.12;
  padding: 0.2rem 0.35rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-wrap: break-word;
  word-break: break-word;
}

.viz-sub {
  color: var(--text-dim);
  font-size: 0.8rem;
}

.viz-tl {
  border-left: 2px solid var(--red);
  padding-left: 1rem;
  margin: 0.5rem 0;
}

.viz-tl__i {
  position: relative;
  margin-bottom: 1rem;
}

.viz-tl__i strong {
  color: var(--white);
  font-size: 0.8rem;
}

.viz-tl__i p {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.viz-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: start;
  margin: 0.5rem 0;
}

@media (max-width: 560px) {
  .viz-compare {
    grid-template-columns: 1fr;
  }
  .viz-compare__mid {
    display: none;
  }
}

.viz-compare__side {
  background: #141414;
  border: 1px solid #333;
  padding: 0.85rem;
  font-size: 0.78rem;
}

.viz-compare__side h4 {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.viz-compare__side--red {
  border-color: var(--red);
}

.viz-compare__mid {
  color: var(--red);
  font-size: 1.25rem;
  padding-top: 1.5rem;
}

.chronicle {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 2rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.chronicle::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--red), #333);
}

.chronicle-node {
  position: relative;
  padding-bottom: 1.25rem;
}

.chronicle-dot {
  position: absolute;
  left: -1.5rem;
  top: 0.35rem;
  width: 14px;
  height: 14px;
  margin-left: 0;
  border-radius: 50%;
  border: 2px solid var(--red);
  background: var(--bg);
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.chronicle-dot:hover,
.chronicle-dot[aria-expanded="true"] {
  transform: scale(1.15);
  box-shadow: 0 0 12px var(--red);
}

.chronicle-card {
  background: var(--bg-card);
  border: 1px solid #333;
  padding: 1rem 1.15rem;
  margin-top: 0.25rem;
}

.chronicle-card[hidden] {
  display: none !important;
}

.chronicle-card time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--red);
  letter-spacing: 0.06em;
}

.chronicle-card h3 {
  margin: 0.35rem 0 0.5rem;
  font-size: 1rem;
  color: var(--white);
}

.chronicle-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text);
}

/* Chronicle split: photo + open timeline */
.chronicle-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1rem;
  align-items: start;
}

.chronicle-photo {
  margin: 0;
  border: 1px solid #333;
  background: #111;
}

.chronicle-photo img {
  width: 100%;
  display: block;
  height: auto;
  filter: grayscale(100%) contrast(1.06);
}

.chronicle-photo figcaption {
  margin: 0;
  padding: 0.6rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  border-top: 1px solid #2c2c2c;
}

.chronicle-open {
  display: grid;
  gap: 0.75rem;
  position: relative;
  padding-left: 1.35rem;
}

.chronicle-open::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.15rem;
  bottom: 0.15rem;
  width: 2px;
  background: linear-gradient(180deg, var(--red), rgba(227, 43, 43, 0.35));
}

.chronicle-open .chronicle-card {
  display: block;
  position: relative;
}

.chronicle-open .chronicle-card::before {
  content: "";
  position: absolute;
  left: -1.15rem;
  top: 0.9rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--red);
  background: #111;
  box-shadow: 0 0 0 2px rgba(227, 43, 43, 0.18);
}

@media (max-width: 920px) {
  .chronicle-layout {
    grid-template-columns: 1fr;
  }
}

.chronicle-in-final {
  margin-bottom: 0;
  padding-bottom: clamp(2.75rem, 8vw, 5rem);
}

.chronicle-in-final + .medics-showcase {
  margin-top: clamp(2rem, 5vw, 3.25rem);
}

.asepsis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .asepsis-grid {
    grid-template-columns: 1fr;
  }
}

.asepsis-col {
  background: var(--bg-card);
  border: 1px solid #2a2a2a;
  padding: 1.25rem;
}

.asepsis-col h3 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 1rem;
}

.asepsis-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(227, 43, 43, 0.65);
  background: rgba(227, 43, 43, 0.05);
  box-shadow: 0 0 0 1px rgba(227, 43, 43, 0.2) inset;
}

.asepsis-flow span {
  padding: 0;
  border: 0;
  background: transparent;
}

.asepsis-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.asepsis-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  border: 1px solid #444;
  background: #141414;
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
}

.asepsis-note {
  margin-top: 1rem;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.55;
}

.asepsis-bottom {
  margin-top: 1.75rem;
}


.contusion-zone {
  position: relative;
  min-height: 280px;
  border: 1px solid #333;
  background: radial-gradient(ellipse at center, #1a1a1a, #0a0a0a);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  transition: filter 0.3s ease;
}

.contusion-zone__text {
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 2.5vw, 1.1rem);
  color: var(--white);
  text-align: center;
  max-width: 28rem;
  line-height: 1.5;
}

.contusion-zone--active {
  animation: contusion-shake 0.12s infinite;
  filter: blur(2.5px) contrast(1.15) brightness(1.05);
}

.contusion-zone--active .contusion-zone__text {
  animation: contusion-blurtext 2.5s ease-in-out infinite;
  opacity: 0.85;
}

@keyframes contusion-shake {
  0%,
  100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-2px, 1px);
  }
  50% {
    transform: translate(2px, -1px);
  }
  75% {
    transform: translate(-1px, -2px);
  }
}

@keyframes contusion-blurtext {
  0%,
  100% {
    opacity: 0.9;
    letter-spacing: normal;
  }
  50% {
    opacity: 0.45;
    letter-spacing: 0.15em;
  }
}

body.contusion-body {
  animation: contusion-shake-subtle 0.2s infinite;
}

@keyframes contusion-shake-subtle {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-1px, 0);
  }
}

.contusion-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.contusion-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 1.25rem;
}

@media (max-width: 900px) {
  .contusion-stats {
    grid-template-columns: 1fr;
  }
}

.contusion-stat {
  background: var(--bg-card);
  border: 1px solid #2a2a2a;
  padding: 1.2rem 1.1rem;
}

.contusion-stat__v {
  font-family: var(--font-mono);
  color: var(--red);
  font-size: 1.3rem;
  line-height: 1.2;
}

.contusion-stat__l {
  margin-top: 0.55rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.4;
}

.contusion-symptoms {
  margin: 1.25rem 0 1.75rem;
  padding: 1.25rem 1.15rem;
  border: 1px solid #2a2a2a;
  background: linear-gradient(160deg, rgba(227, 43, 43, 0.06), rgba(20, 20, 20, 0.9));
}

.contusion-symptoms__title {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}

.contusion-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.contusion-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  border: 1px solid #444;
  background: #141414;
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
}

.contusion-path {
  display: grid;
  gap: 0.85rem;
  margin: 1.25rem 0 2rem;
}

.contusion-path .viz-flow__step {
  padding: 1rem 0.95rem;
  border: 1px solid #2a2a2a;
  background: var(--bg-card);
  border-radius: 10px;
  margin: 0;
  overflow: hidden;
}

.contusion-path-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.65rem;
  margin: 1.25rem 0 2rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.contusion-step {
  flex: 0 0 auto;
  min-width: 190px;
}

.contusion-step {
  border: 1px solid #2a2a2a;
  background: var(--bg-card);
  border-radius: 10px;
  padding: 0.95rem 0.9rem;
}

.contusion-step__n {
  font-family: var(--font-mono);
  color: var(--red);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.contusion-step__t strong {
  display: block;
  color: var(--white);
  margin-bottom: 0.45rem;
  font-size: 1rem;
}

.contusion-step__d {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dogs-hero {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
  margin: 2rem 0;
  align-items: start;
}

.dogs-roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0 1rem;
}

@media (max-width: 900px) {
  .dogs-roles {
    grid-template-columns: 1fr;
  }
}

.role-card {
  background: linear-gradient(160deg, #0f0f0f, #141414);
  border: 1px solid #2a2a2a;
  padding: 1.2rem 1.15rem;
}

.role-card--red {
  border-color: rgba(227, 43, 43, 0.7);
  box-shadow: 0 0 0 1px rgba(227, 43, 43, 0.08);
}

.role-card__k {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  font-size: 0.7rem;
  margin-bottom: 0.6rem;
}

.role-card h3 {
  margin: 0 0 0.85rem;
  color: var(--white);
  font-size: 1.05rem;
}

.role-card__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem 0.9rem;
  margin-bottom: 0.85rem;
}

@media (max-width: 500px) {
  .role-card__facts {
    grid-template-columns: 1fr;
  }
}

.role-fact {
  background: #111;
  border: 1px solid #2a2a2a;
  padding: 0.75rem 0.75rem;
}

.role-fact strong {
  display: block;
  font-family: var(--font-mono);
  color: var(--red);
  font-size: 1.2rem;
}

.role-fact span {
  display: block;
  color: var(--text-dim);
  font-size: 0.78rem;
  margin-top: 0.3rem;
  line-height: 1.3;
}

.role-card__p {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
  font-size: 0.92rem;
}

.dogs-flow {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1rem 0 1.5rem;
  align-items: center;
}

.dogs-flow__step {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid #2a2a2a;
  padding: 0.95rem 0.9rem;
}

.dogs-flow__n {
  font-family: var(--font-mono);
  color: var(--red);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dogs-flow__t strong {
  color: var(--white);
  font-size: 0.95rem;
}

.dogs-flow__d {
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 1.35;
}

.dogs-flow__arr {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 1.4rem;
  margin: 0;
  justify-self: center;
}

.evac-modes {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0 0.25rem;
}

.evac-modes .evac-mode:nth-child(-n + 3) {
  grid-column: span 2;
}

.evac-modes .evac-mode:nth-child(n + 4) {
  grid-column: span 3;
}

@media (max-width: 900px) {
  .evac-modes {
    grid-template-columns: 1fr 1fr;
  }

  .evac-modes .evac-mode {
    grid-column: span 1;
  }
}

.evac-mode {
  background: #111;
  border: 1px solid #2a2a2a;
  padding: 0.85rem 0.85rem;
}

.evac-mode strong {
  display: block;
  font-family: var(--font-mono);
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.evac-mode span {
  display: block;
  color: var(--text-dim);
  font-size: 0.78rem;
  line-height: 1.35;
}

@media (max-width: 800px) {
  .dogs-hero {
    grid-template-columns: 1fr;
  }
}

.dogs-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.dogs-stat {
  background: var(--paper);
  border-left: 3px solid var(--red);
  padding: 0.85rem;
}

.dogs-stat strong {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--white);
  display: block;
}

.dogs-stat span {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.dogs-scheme {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  line-height: 1.6;
  padding: 1rem;
  border: 1px dashed #444;
  background: #121212;
}

.medics-showcase {
  margin: 1.25rem 0 2.5rem;
}

.medics-masthead {
  margin-bottom: clamp(1.35rem, 3vw, 2rem);
  max-width: none;
}

.medics-masthead__title {
  margin-bottom: 0.6rem;
}

.medics-masthead__dek {
  margin: 0;
  font-size: clamp(1.02rem, 2.1vw, 1.18rem);
  line-height: 1.55;
  color: var(--text);
}

.medics-masthead__dek em {
  color: var(--red);
  font-style: italic;
  font-weight: 600;
}

.medics-prose {
  max-width: none;
  margin-bottom: 1.5rem;
}

.medics-prose p {
  margin: 0 0 1rem;
  font-size: clamp(0.95rem, 1.7vw, 1.04rem);
  line-height: 1.68;
  color: var(--text);
}

.medics-prose p:last-child {
  margin-bottom: 0;
}

.medics-prose__lead {
  font-size: clamp(1.05rem, 2vw, 1.15rem) !important;
  line-height: 1.58 !important;
  color: var(--white) !important;
}

.medics-prose__outro {
  max-width: none;
  margin: 0 0 clamp(1.75rem, 3vw, 2.25rem);
  font-size: 0.95rem;
  line-height: 1.62;
  color: var(--text-dim);
  font-style: italic;
}

.medics-thanks {
  max-width: none;
  margin: clamp(1.5rem, 3vw, 2rem) 0;
  padding: clamp(1.5rem, 3vw, 2rem) 0;
  text-align: center;
  border-top: 1px solid rgba(227, 43, 43, 0.35);
  border-bottom: 1px solid rgba(227, 43, 43, 0.35);
}

.medics-thanks__word {
  margin: 0 0 0.65rem;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(2rem, 8vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--white);
}

.medics-thanks__lines {
  margin: 0 auto;
  max-width: 28rem;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text);
}

.medics-notes {
  padding-top: clamp(1.25rem, 2.5vw, 1.75rem);
}

.medics-notes__h {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

.medics-notes__intro {
  margin: 0 0 1.5rem;
  max-width: 36rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-dim);
}

.medics-notes__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.medics-note {
  margin: 0;
  padding: 0.9rem;
  border: 1px solid #333;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(227, 43, 43, 0.18) 0%, rgba(227, 43, 43, 0.02) 38%, rgba(18, 18, 18, 0.96) 100%);
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.26);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.medics-note:hover {
  transform: translateY(-2px);
  border-color: rgba(227, 43, 43, 0.6);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
}

.medics-note__title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
}

.medics-note p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text);
}

.medics-note__icon {
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.65rem;
  border-radius: 50%;
  border: 1px solid rgba(227, 43, 43, 0.55);
  background: rgba(227, 43, 43, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}

.medics-note--wide {
  grid-column: 1 / -1;
  padding-top: 0.35rem;
  margin-top: 0.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 640px) {
  .medics-notes__grid {
    grid-template-columns: 1fr;
  }

  .medics-note {
    padding: 0.85rem;
  }

  .medics-note--wide {
    margin-top: 0;
    padding-top: 0.5rem;
  }
}

.memory-book {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #333;
}

.memory-book h3 {
  font-size: 1rem;
  color: var(--white);
  margin: 0 0 0.5rem;
}

.memory-book > p {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 0 0 1rem;
}

.analytics-intro {
  max-width: 48rem;
  margin-bottom: 2rem;
}

.analytics-block {
  margin: 2.5rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid #2a2a2a;
}

.analytics-block h3 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 1rem;
}

.analytics-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #222;
}

.analytics-row:last-child {
  border-bottom: 0;
}

.analytics-row p {
  margin: 0;
  font-size: 0.9rem;
}

.analytics-row .meta {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
}

.analytics-cta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--red);
  background: transparent;
  color: var(--red);
  cursor: pointer;
  white-space: nowrap;
}

.analytics-cta:hover {
  background: rgba(227, 43, 43, 0.15);
}


