:root {
  --bg: #030303;
  --bg-2: #080706;
  --ink: #f0eadb;
  --dim: #a89c88;
  --muted: #6f675b;
  --panel: rgba(9, 8, 7, 0.82);
  --panel-strong: rgba(13, 11, 10, 0.94);
  --line: rgba(240, 234, 219, 0.14);
  --line-hot: rgba(202, 38, 32, 0.48);
  --blood: #ca2620;
  --blood-2: #76100d;
  --amber: #d5a35a;
  --smoke: rgba(0, 0, 0, 0.62);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(3, 3, 3, 0.42), rgba(3, 3, 3, 0.92) 66%, #030303),
    url("assets/outbreak-site-bg.png") center top / cover fixed no-repeat;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 74% 16%, rgba(202, 38, 32, 0.2), transparent 24%),
    radial-gradient(circle at 16% 82%, rgba(213, 163, 90, 0.12), transparent 28%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
  opacity: 0.75;
  pointer-events: none;
}

img,
iframe {
  display: block;
  width: 100%;
}

a,
button {
  font: inherit;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3, 3, 3, 0.88), rgba(3, 3, 3, 0.38) 44%, rgba(3, 3, 3, 0.82)),
    linear-gradient(180deg, rgba(3, 3, 3, 0.12), #030303 88%);
  pointer-events: none;
}

.virus-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.virus {
  position: absolute;
  width: var(--size);
  height: var(--size);
  background: url("assets/virus-particle.png") center / contain no-repeat;
  image-rendering: pixelated;
  opacity: var(--alpha);
  filter: blur(var(--blur)) saturate(0.9) drop-shadow(0 0 18px rgba(202, 38, 32, 0.28));
  animation:
    virus-drift var(--speed) linear infinite,
    virus-spin var(--spin) linear infinite;
}

.virus-a {
  --size: 180px;
  --alpha: 0.18;
  --blur: 0.4px;
  --speed: 42s;
  --spin: 36s;
  left: 6%;
  top: 18%;
}

.virus-b {
  --size: 320px;
  --alpha: 0.13;
  --blur: 1px;
  --speed: 58s;
  --spin: 54s;
  right: -4%;
  top: 12%;
}

.virus-c {
  --size: 112px;
  --alpha: 0.22;
  --blur: 0;
  --speed: 38s;
  --spin: 28s;
  left: 48%;
  top: 58%;
}

.virus-d {
  --size: 240px;
  --alpha: 0.12;
  --blur: 1.2px;
  --speed: 64s;
  --spin: 62s;
  left: -5%;
  bottom: 12%;
}

.virus-e {
  --size: 88px;
  --alpha: 0.26;
  --blur: 0;
  --speed: 46s;
  --spin: 31s;
  right: 18%;
  bottom: 18%;
}

.virus-f {
  --size: 150px;
  --alpha: 0.16;
  --blur: 0.7px;
  --speed: 52s;
  --spin: 43s;
  left: 68%;
  top: 38%;
}

@keyframes virus-drift {
  0% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(42px, -64px, 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes virus-spin {
  to {
    rotate: 360deg;
  }
}

.plague-scout {
  position: fixed;
  left: clamp(10px, 2vw, 24px);
  bottom: clamp(10px, 2vw, 22px);
  z-index: 28;
  width: 112px;
  height: 122px;
  pointer-events: none;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.72));
  animation: scout-breathe 2.4s ease-in-out infinite;
}

.plague-scout__sprite {
  width: 96px;
  height: 104px;
  background-image: url("assets/plaguedoc-spritesheet-clean.png");
  background-repeat: no-repeat;
  background-size: 768px 936px;
  background-position: 0 0;
  image-rendering: pixelated;
  animation: scout-idle 1.15s steps(6) infinite;
}

@keyframes scout-idle {
  to {
    background-position-x: -576px;
  }
}

@keyframes scout-breathe {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-5px) scale(1.018);
  }
}

.topbar {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  width: min(1180px, calc(100% - 28px));
  padding: 8px;
  background: rgba(4, 4, 4, 0.78);
  border: 1px solid var(--line);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
}

main {
  position: relative;
  z-index: 2;
}

.brand,
.nav-links a,
.copy-ca,
.x-link,
.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  text-decoration: none;
}

.brand {
  gap: 10px;
  padding: 0 12px;
  background: rgba(202, 38, 32, 0.18);
  border: 1px solid var(--line-hot);
  font-family: "Share Tech Mono", monospace;
  font-size: 20px;
}

.brand-mark {
  width: 12px;
  height: 12px;
  background: var(--blood);
  box-shadow: 0 0 0 4px rgba(202, 38, 32, 0.14), 0 0 24px rgba(202, 38, 32, 0.74);
}

.nav-links,
.actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  justify-content: center;
}

.nav-links a {
  padding: 0 12px;
  color: var(--dim);
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
  border-color: var(--line);
}

.copy-ca {
  max-width: 230px;
  padding: 0 12px;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
  background: var(--blood-2);
  border: 1px solid var(--line-hot);
  cursor: pointer;
}

.x-link {
  width: 40px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  font-weight: 700;
}

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
  gap: clamp(26px, 5vw, 76px);
  align-items: end;
  padding: 138px clamp(18px, 6vw, 92px) clamp(44px, 7vw, 90px);
  background:
    linear-gradient(90deg, rgba(3, 3, 3, 0.9), rgba(3, 3, 3, 0.46) 42%, rgba(3, 3, 3, 0.74)),
    linear-gradient(180deg, rgba(3, 3, 3, 0.22), #030303 100%),
    url("assets/outbreak-hero-bg.png") center / cover no-repeat;
}

.hero-panel {
  max-width: 880px;
  padding: clamp(18px, 3vw, 28px);
  background:
    linear-gradient(180deg, rgba(8, 7, 6, 0.78), rgba(8, 7, 6, 0.54)),
    rgba(8, 7, 6, 0.58);
  border: 1px solid var(--line);
  box-shadow: 0 30px 92px rgba(0, 0, 0, 0.62);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-family: "Share Tech Mono", monospace;
  font-size: 13px;
  line-height: 1.3;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Share Tech Mono", monospace;
  font-weight: 400;
}

h1 {
  max-width: 840px;
  font-size: clamp(44px, 6.8vw, 94px);
  line-height: 0.92;
}

h2 {
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 0.98;
}

h3 {
  font-size: 26px;
}

.hero-copy {
  max-width: 660px;
  margin: 20px 0 0;
  color: #d2c8b5;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.58;
  font-weight: 600;
}

.hero-actions {
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  padding: 0 16px;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
}

.primary {
  background: var(--blood);
  border-color: var(--line-hot);
  box-shadow: 0 0 34px rgba(202, 38, 32, 0.28);
}

.ghost {
  background: rgba(255, 255, 255, 0.055);
}

.case-card {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
}

.case-card img {
  aspect-ratio: 1;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.08);
}

.case-top,
.case-bottom {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  color: var(--dim);
  background: rgba(0, 0, 0, 0.72);
  border-bottom: 1px solid var(--line);
  font-family: "Share Tech Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.case-bottom {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.status-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px clamp(18px, 6vw, 92px);
  background: #050504;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.status-strip span {
  flex: 0 0 auto;
  padding: 8px 10px;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  font-family: "Share Tech Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.origin,
.map-section,
.memory,
.doctor-block,
.closing {
  padding: clamp(62px, 8vw, 112px) clamp(18px, 6vw, 92px);
}

.memory {
  display: grid;
  min-height: 72vh;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(3, 3, 3, 0.68), rgba(3, 3, 3, 0.92)),
    url("assets/outbreak-site-bg.png") center / cover no-repeat;
}

.memory-copy {
  width: min(980px, 100%);
  padding: clamp(18px, 4vw, 36px);
  background: rgba(0, 0, 0, 0.62);
  border-left: 3px solid var(--blood);
  box-shadow: 0 28px 86px rgba(0, 0, 0, 0.58);
}

.memory-copy p,
.doctor-copy p,
.closing p {
  margin: 18px 0 0;
  color: #cfc5b2;
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.62;
}

.memory-copy .hard-line {
  color: var(--ink);
  font-family: "Share Tech Mono", monospace;
  font-size: clamp(24px, 3.3vw, 44px);
  line-height: 1.08;
}

.origin {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(280px, 0.72fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  background: rgba(3, 3, 3, 0.72);
}

.origin-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.62);
}

.origin-media img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.photo-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 8px 10px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.76);
  border: 1px solid var(--line);
  font-family: "Share Tech Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.origin-copy {
  padding: clamp(18px, 3vw, 28px);
  background: var(--panel);
  border: 1px solid var(--line);
}

.origin-copy p {
  margin: 18px 0 0;
  color: var(--dim);
  font-size: 16px;
  line-height: 1.66;
}

.map-section {
  background:
    linear-gradient(180deg, rgba(3, 3, 3, 0.7), rgba(3, 3, 3, 0.9));
}

.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 22px;
}

.section-head .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -4px;
}

.monitor-shell {
  overflow: hidden;
  background: #020202;
  border: 1px solid var(--line-hot);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.035) inset,
    0 34px 92px rgba(0, 0, 0, 0.74),
    0 0 48px rgba(202, 38, 32, 0.14);
}

.monitor-header {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  color: #dccfb8;
  background: linear-gradient(90deg, #1a0504, #080707);
  border-bottom: 1px solid var(--line-hot);
  font-family: "Share Tech Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.live-map {
  height: min(720px, 72vh);
  min-height: 520px;
  background: #020202;
  border: 0;
}

.doctor-block {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(260px, 0.42fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  background:
    linear-gradient(90deg, rgba(3, 3, 3, 0.92), rgba(3, 3, 3, 0.7)),
    url("assets/outbreak-site-bg.png") center / cover no-repeat;
}

.doctor-copy {
  padding: clamp(18px, 4vw, 36px);
  background: rgba(0, 0, 0, 0.64);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blood);
}

.doctor-image {
  overflow: hidden;
  border: 1px solid var(--line-hot);
  background: rgba(0, 0, 0, 0.54);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.62);
}

.doctor-image img {
  aspect-ratio: 1;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.1);
}

.closing {
  min-height: 70vh;
  display: grid;
  align-items: end;
  background:
    linear-gradient(180deg, rgba(3, 3, 3, 0.22), rgba(3, 3, 3, 0.92)),
    url("assets/outbreak-site-bg.png") center / cover no-repeat;
}

.closing > div {
  width: min(940px, 100%);
  padding: clamp(18px, 4vw, 34px);
  background: rgba(0, 0, 0, 0.68);
  border: 1px solid var(--line);
}

.closing p {
  color: var(--amber);
  font-family: "Share Tech Mono", monospace;
  font-size: clamp(20px, 2.4vw, 34px);
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: auto 1fr;
  }

  .nav-links {
    display: none;
  }

  .actions {
    justify-content: end;
  }

  .hero,
  .origin,
  .doctor-block {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .case-card {
    width: min(380px, 100%);
  }

  .section-head {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 640px) {
  body::before {
    background-position: 58% top;
  }

  .topbar {
    top: 10px;
    width: calc(100% - 20px);
    grid-template-columns: 1fr;
  }

  .plague-scout {
    width: 82px;
    height: 92px;
  }

  .virus-a,
  .virus-d {
    display: none;
  }

  .virus-b {
    --size: 190px;
  }

  .virus-c,
  .virus-e,
  .virus-f {
    --size: 82px;
  }

  .plague-scout__sprite {
    width: 72px;
    height: 78px;
    background-size: 576px 702px;
  }

  @keyframes scout-idle {
    to {
      background-position-x: -432px;
    }
  }

  .brand {
    width: 100%;
  }

  .actions {
    justify-content: stretch;
  }

  .copy-ca {
    flex: 1;
    max-width: none;
    font-size: 13px;
  }

  .hero {
    padding: 144px 14px 44px;
  }

  h1 {
    font-size: clamp(42px, 14vw, 62px);
  }

  h2 {
    font-size: clamp(32px, 10vw, 48px);
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .origin,
  .map-section,
  .memory,
  .doctor-block,
  .closing {
    padding: 52px 14px;
  }

  .monitor-header {
    grid-template-columns: 1fr;
    padding: 10px 12px;
  }

  .live-map {
    height: 560px;
    min-height: 420px;
  }

  .memory-copy,
  .doctor-copy {
    padding: 18px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .virus,
  .plague-scout {
    animation: none;
  }

  .plague-scout__sprite {
    animation: none;
  }
}
