:root {
  color-scheme: dark;
  --ink: #0b0e17;
  --panel: #121725;
  --panel-2: #191f30;
  --text: #f4f1e9;
  --muted: #a9afbd;
  --line: rgba(244, 241, 233, .16);
  --accent: #ff5f4d;
  --accent-deep: #d94238;
  --focus: #ffc4bc;
  --radius: 18px;
  --max: 1360px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "Arial Narrow", "Aptos Display", "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, audio { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, video:focus-visible, audio:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 70px;
  padding: 12px clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 14, 23, .9);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: baseline; gap: 14px; }
.brand span { font-weight: 900; letter-spacing: -.04em; font-size: 1.15rem; }
.brand small { color: var(--muted); }
.topbar nav { display: flex; align-items: center; gap: 24px; }
.topbar nav a, .topbar button { color: var(--muted); font-size: .9rem; }
.topbar button { border: 0; background: transparent; cursor: pointer; }
.topbar nav a:hover, .topbar button:hover { color: var(--text); }

.hero {
  min-height: calc(100dvh - 70px);
  max-width: var(--max);
  margin: auto;
  padding: clamp(52px, 8vw, 110px) clamp(20px, 4vw, 64px);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(40px, 7vw, 110px);
}
.hero-copy { max-width: 680px; }
.course-name { color: var(--accent); font-weight: 800; letter-spacing: .06em; margin: 0 0 22px; }
.hero h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(4rem, 9vw, 8.3rem);
  line-height: .82;
  letter-spacing: -.075em;
  text-transform: uppercase;
}
.hero-copy > p:not(.course-name) { max-width: 38ch; margin: 28px 0 32px; color: var(--muted); font-size: clamp(1.05rem, 1.7vw, 1.35rem); }
.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.action:hover { border-color: var(--text); transform: translateY(-2px); }
.action:active { transform: translateY(1px) scale(.98); }
.action.primary { background: var(--accent); color: #160c0b; border-color: var(--accent); font-weight: 800; }
.action.primary:hover { background: #ff796a; border-color: #ff796a; }

.hero-poster {
  position: relative;
  aspect-ratio: 4 / 5;
  min-height: 520px;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 70% 26%, rgba(255, 95, 77, .42), transparent 28%),
    radial-gradient(circle at 24% 76%, rgba(59, 93, 173, .52), transparent 36%),
    linear-gradient(150deg, #1b2440, #0d101b 64%);
}
.hero-poster::after {
  content: "";
  position: absolute;
  inset: 6%;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  transform: rotate(-18deg);
}
.compass-word { position: relative; z-index: 2; font-size: clamp(4rem, 8vw, 7rem); font-weight: 950; line-height: .8; letter-spacing: -.08em; transform: rotate(-6deg); text-shadow: 12px 18px 0 rgba(0,0,0,.2); }
.orbit { position: absolute; border: 2px solid var(--accent); border-radius: 50%; opacity: .7; }
.orbit-one { width: 84%; height: 36%; transform: rotate(22deg); }
.orbit-two { width: 42%; height: 86%; transform: rotate(48deg); }

.curatorial {
  max-width: var(--max);
  margin: 0 auto;
  padding: 52px clamp(20px, 4vw, 64px) 80px;
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 40px;
  border-top: 1px solid var(--line);
}
.curatorial p { margin: 0; color: var(--muted); }
.curatorial strong { max-width: 20ch; font-size: clamp(1.8rem, 4vw, 3.8rem); line-height: 1; letter-spacing: -.04em; }

.rooms-section { max-width: var(--max); margin: auto; padding: 80px clamp(20px, 4vw, 64px) 120px; }
.rooms-section > header { max-width: 700px; margin-bottom: 50px; }
.rooms-section > header h2 { font-size: clamp(2.5rem, 5vw, 5rem); line-height: .95; letter-spacing: -.05em; margin: 0 0 20px; }
.rooms-section > header p { color: var(--muted); max-width: 52ch; }
.rooms-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.room-card {
  grid-column: span 4;
  min-height: 430px;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: transform .35s cubic-bezier(.16,1,.3,1), border-color .3s ease;
}
.room-card:hover { transform: translateY(-8px); border-color: rgba(255,95,77,.65); }
.room-card-1, .room-card-5 { grid-column: span 7; }
.room-card-2, .room-card-4 { grid-column: span 5; }
.room-card-3, .room-card-6 { grid-column: span 6; }
.card-image { position: relative; min-height: 270px; overflow: hidden; background: var(--panel-2); }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.16,1,.3,1); }
.room-card:hover img { transform: scale(1.035); }
.card-image span { position: absolute; left: 16px; bottom: 16px; padding: 8px 12px; border-radius: 999px; background: rgba(11,14,23,.82); color: var(--text); font-size: .76rem; backdrop-filter: blur(8px); }
.card-placeholder { width: 100%; height: 100%; min-height: 270px; background: repeating-linear-gradient(135deg, #171d2b 0 24px, #1c2334 24px 48px); }
.card-copy { padding: 24px; }
.card-copy small { color: var(--accent); }
.card-copy h2 { margin: 10px 0 2px; font-size: clamp(1.7rem, 3vw, 3rem); line-height: .98; letter-spacing: -.04em; }
.card-copy p { margin: 8px 0 0; color: var(--muted); font-weight: 700; }

.mission-callout, .vote-panel {
  max-width: calc(var(--max) - 128px);
  margin: 0 auto 100px;
  padding: clamp(30px, 5vw, 68px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #160c0b;
}
.mission-callout h2, .vote-panel h2 { margin: 0 0 8px; font-size: clamp(2rem, 4vw, 4rem); letter-spacing: -.05em; }
.mission-callout p, .vote-panel p { margin: 0; max-width: 48ch; }
.mission-callout .action.primary { background: #160c0b; color: var(--text); border-color: #160c0b; }

footer { min-height: 120px; padding: 30px clamp(20px, 4vw, 64px); display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; color: var(--muted); border-top: 1px solid var(--line); }

.room-shell { max-width: var(--max); margin: auto; padding: 70px clamp(20px, 4vw, 64px) 110px; }
.room-intro { min-height: 56vh; display: flex; flex-direction: column; justify-content: center; position: relative; }
.room-number { color: var(--accent); font-weight: 800; margin-bottom: 20px; }
.room-intro h1 { max-width: 11ch; margin: 0; font-size: clamp(4rem, 10vw, 9rem); line-height: .82; letter-spacing: -.075em; text-transform: uppercase; }
.agency-name { color: var(--muted); font-weight: 800; letter-spacing: .08em; }
.logline { max-width: 58ch; font-size: clamp(1.2rem, 2vw, 1.65rem); color: var(--muted); }
.projection { margin-bottom: 70px; }
.screen-frame { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #05060a; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.screen-frame video { width: 100%; height: 100%; object-fit: contain; background: #05060a; }
.external-screen { display: grid; place-items: center; background: linear-gradient(rgba(5,6,10,.68),rgba(5,6,10,.88)), var(--poster) center/cover; }
.external-copy { max-width: 500px; padding: 30px; text-align: center; }
.external-copy p { font-size: 1.15rem; }
.missing-screen { display: grid; place-content: center; text-align: center; color: var(--muted); background: repeating-linear-gradient(135deg,#101522 0 28px,#151b29 28px 56px); }
.missing-mark { font-size: 7rem; color: var(--accent); line-height: .8; }
.projection-meta { display: flex; flex-wrap: wrap; gap: 14px 28px; padding: 18px 4px; color: var(--muted); border-bottom: 1px solid var(--line); }
.room-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 20px; margin: 70px 0; }
.story-panel, .credits-panel { padding: clamp(28px, 4vw, 52px); border-radius: var(--radius); }
.story-panel { background: var(--text); color: var(--ink); }
.credits-panel { background: var(--panel-2); }
.room-grid h2, .companion h2, .incidents h2 { margin: 0 0 20px; font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.04em; }
.story-panel > p, .credits-panel > p { font-size: 1.15rem; }
dl { margin: 34px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
dt { color: #5d6574; font-size: .82rem; font-weight: 800; }
dd { margin: 6px 0 0; font-weight: 700; }
.coverage { margin-top: 50px; display: flex; align-items: baseline; gap: 15px; }
.coverage strong { color: var(--accent); font-size: 4rem; line-height: .8; }
.coverage span { color: var(--muted); }
.companion { display: grid; grid-template-columns: .9fr 1.1fr; gap: 20px; margin-bottom: 60px; }
.audio-module { padding: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.audio-module > div { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.audio-module span { font-weight: 800; }
.audio-module strong { color: var(--accent); }
.audio-module audio { width: 100%; }
.audio-module.unavailable { color: var(--muted); }
.documents { display: grid; align-content: stretch; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.documents > * { min-height: 72px; padding: 16px 22px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); }
.documents > *:last-child { border-bottom: 0; }
.documents a:hover { background: var(--panel-2); }
.documents b { color: var(--accent); font-size: .8rem; }
.document-missing { color: var(--muted); }
.external-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; }
.incidents { margin: 50px 0; padding: 30px; border-left: 4px solid var(--accent); background: var(--panel); }
.incidents ul { margin: 0; padding-left: 20px; color: var(--muted); }
.vote-panel { max-width: none; margin: 70px 0; }
.vote-button { min-height: 50px; padding: 0 24px; border: 2px solid #160c0b; border-radius: 999px; background: #160c0b; color: var(--text); font-weight: 800; cursor: pointer; white-space: nowrap; }
.vote-button:active { transform: translateY(1px) scale(.98); }
.room-navigation { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.room-navigation a { min-height: 140px; padding: 30px; display: flex; flex-direction: column; justify-content: center; }
.room-navigation a + a { text-align: right; border-left: 1px solid var(--line); }
.room-navigation a:hover { background: var(--panel); }
.room-navigation small { color: var(--muted); }
.room-navigation strong { font-size: clamp(1.4rem, 3vw, 2.6rem); }

.mission-panel {
  position: fixed;
  z-index: 30;
  right: 20px;
  top: 90px;
  width: min(390px, calc(100vw - 40px));
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #171c29;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.mission-panel[hidden] { display: none; }
.mission-panel h2 { margin: 0 40px 22px 0; font-size: 2rem; }
.mission-close { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; color: var(--text); background: transparent; cursor: pointer; }
.mission-list { display: grid; gap: 8px; }
.mission-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; color: var(--muted); border-bottom: 1px solid var(--line); }
.mission-item.complete { color: var(--text); }
.mission-item.complete span { color: var(--accent); }
.mission-summary { color: var(--muted); margin: 20px 0 0; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s cubic-bezier(.16,1,.3,1); }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 55px; }
  .hero h1 { font-size: clamp(3.7rem, 16vw, 7rem); }
  .hero-poster { min-height: auto; }
  .curatorial, .room-grid, .companion { grid-template-columns: 1fr; }
  .room-card, .room-card-1, .room-card-2, .room-card-3, .room-card-4, .room-card-5, .room-card-6 { grid-column: span 6; }
  .external-actions { grid-column: auto; }
  .mission-callout, .vote-panel { max-width: calc(100% - 40px); }
}

@media (max-width: 640px) {
  .topbar { min-height: 62px; }
  .brand small, .topbar nav > a { display: none; }
  .hero { min-height: auto; padding-top: 54px; }
  .hero h1 { font-size: clamp(3.5rem, 18vw, 5.6rem); }
  .hero-poster { min-height: 430px; }
  .curatorial { grid-template-columns: 1fr; padding-bottom: 35px; }
  .rooms-section { padding-top: 55px; }
  .rooms-grid { display: block; }
  .room-card { margin-bottom: 18px; min-height: 390px; }
  .mission-callout, .vote-panel { margin: 0 20px 70px; padding: 28px; flex-direction: column; align-items: flex-start; }
  footer { flex-direction: column; align-items: flex-start; }
  .room-shell { padding-top: 45px; }
  .room-intro { min-height: 55vh; }
  .room-intro h1 { font-size: clamp(3.4rem, 18vw, 6rem); }
  .screen-frame { border-radius: 10px; }
  dl { grid-template-columns: 1fr; }
  .companion { display: block; }
  .documents { margin-top: 18px; }
  .external-actions { margin-top: 18px; }
  .room-navigation { grid-template-columns: 1fr; }
  .room-navigation a + a { text-align: left; border-left: 0; border-top: 1px solid var(--line); }
  .projection-meta { font-size: .86rem; }
  .vote-button { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
