:root {
  --night: #03070a;
  --ice: #dcecf0;
  --blue: #8eb6c2;
  --muted: #6f8b92;
  --red: #ff2d2d;
  --line: rgba(220, 236, 240, .22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--night); }
body {
  margin: 0;
  color: var(--ice);
  background: var(--night);
  font-family: "Courier New", Courier, monospace;
  overflow-x: hidden;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.vhs {
  position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .19;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0, rgba(255,255,255,.035) 1px, transparent 1px, transparent 4px),
    radial-gradient(circle at 50% 45%, transparent 45%, rgba(0,0,0,.75) 120%);
  mix-blend-mode: screen;
}
.scanline {
  position: fixed; z-index: 51; left: 0; right: 0; top: -18vh; height: 12vh; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(190,235,245,.09), transparent);
  animation: scan 8s linear infinite;
}
@keyframes scan { to { transform: translateY(136vh); } }

.topbar {
  position: fixed; z-index: 30; top: 0; left: 0; right: 0; height: 68px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 3vw; border-bottom: 1px solid var(--line); background: rgba(3,7,10,.72); backdrop-filter: blur(12px);
}
.brand { font-weight: 900; letter-spacing: -.06em; font-size: 1.2rem; text-decoration: none; }
.signal { display: flex; align-items: center; gap: 9px; color: var(--blue); font-size: .7rem; letter-spacing: .16em; }
.signal i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 14px var(--red); animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .15; } }
nav { justify-self: end; display: flex; gap: 22px; }
nav a { font-size: .68rem; letter-spacing: .12em; text-decoration: none; color: var(--blue); }
nav a:hover { color: var(--ice); }

.hero { min-height: 100svh; position: relative; display: flex; align-items: center; overflow: hidden; padding: 105px 5vw 165px; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; z-index: 0; filter: contrast(1.08) saturate(.8) brightness(.82); }
.hero-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(3,7,10,.97) 0%, rgba(3,7,10,.82) 38%, rgba(3,7,10,.12) 73%, rgba(3,7,10,.45) 100%), linear-gradient(0deg, rgba(3,7,10,.92), transparent 50%); }
.hero-copy { position: relative; z-index: 3; width: min(720px, 58vw); }
.kicker { margin: 0 0 18px; color: var(--blue); font-size: .74rem; letter-spacing: .19em; text-transform: uppercase; font-weight: 700; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 0; font-family: Arial Black, Impact, sans-serif; font-size: clamp(4.25rem, 9.1vw, 9.5rem); line-height: .77; letter-spacing: -.075em; text-transform: uppercase; }
h1 span { display: block; }
h1 .red { color: var(--red); text-shadow: 0 0 36px rgba(255,45,45,.25); }
.lede { margin: 30px 0 0; color: #b9cbd0; font-size: clamp(.95rem, 1.35vw, 1.2rem); line-height: 1.55; max-width: 570px; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-actions button, .share {
  min-height: 48px; border: 1px solid var(--ice); padding: 0 18px; cursor: pointer; text-transform: uppercase;
  letter-spacing: .08em; font-size: .73rem; font-weight: 800; transition: .2s ease;
}
.primary { background: var(--ice); color: var(--night); }
.primary:hover { background: var(--red); border-color: var(--red); color: #fff; }
.secondary { background: transparent; color: var(--ice); }
.secondary:hover { background: rgba(220,236,240,.09); }
.ca-status { margin: 12px 0 0; font-size: .64rem; color: var(--muted); letter-spacing: .12em; }
.recording { position: absolute; z-index: 4; right: 3vw; top: 94px; display: flex; gap: 18px; font-size: .7rem; letter-spacing: .12em; }
.recording span { color: var(--red); }
.recording span::before { content: "●"; margin-right: 7px; }
.recording b { font-weight: 500; color: var(--blue); }
.countdown { position: absolute; z-index: 5; bottom: 48px; right: 4vw; display: grid; grid-template-columns: repeat(4, minmax(76px, 110px)); border: 1px solid var(--line); background: rgba(3,7,10,.63); backdrop-filter: blur(10px); }
.countdown div { padding: 13px 16px 12px; border-right: 1px solid var(--line); }
.countdown div:last-child { border: 0; }
.countdown strong { display: block; font-size: clamp(1.5rem, 3vw, 2.6rem); line-height: 1; color: var(--ice); font-weight: 500; }
.countdown span { display: block; margin-top: 7px; color: var(--muted); font-size: .58rem; letter-spacing: .14em; }
.scroll-cue { position: absolute; z-index: 5; bottom: 58px; left: 5vw; font-size: .62rem; letter-spacing: .16em; text-decoration: none; color: var(--blue); }

.tape { border-block: 1px solid var(--red); overflow: hidden; background: var(--red); color: var(--night); transform: rotate(-.6deg) scale(1.01); position: relative; z-index: 8; }
.tape div { width: max-content; padding: 10px 0; font-weight: 900; font-size: .75rem; letter-spacing: .1em; animation: crawl 24s linear infinite; }
@keyframes crawl { to { transform: translateX(-50%); } }

.file-section { padding: 10vw 5vw; display: grid; grid-template-columns: .85fr 1.15fr .8fr; gap: 4vw; align-items: center; border-bottom: 1px solid var(--line); }
.file-heading h2, .warning-section h2, .final-section h2 { margin: 0; font-family: Arial Black, Impact, sans-serif; text-transform: uppercase; letter-spacing: -.06em; line-height: .86; }
.file-heading h2 { font-size: clamp(3rem, 6.4vw, 7rem); }
.file-heading h2 span { color: var(--red); }
.evidence-card { margin: 0; transform: rotate(1.2deg); }
.photo-frame { position: relative; padding: 13px; border: 1px solid var(--line); background: #071015; box-shadow: 0 30px 90px rgba(0,0,0,.55); }
.photo-frame img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; filter: contrast(1.08) saturate(.65); }
.corner { position: absolute; width: 28px; height: 28px; border-color: var(--red); }
.corner.tl { top: 5px; left: 5px; border-top: 2px solid var(--red); border-left: 2px solid var(--red); }
.corner.tr { top: 5px; right: 5px; border-top: 2px solid var(--red); border-right: 2px solid var(--red); }
.corner.bl { bottom: 5px; left: 5px; border-bottom: 2px solid var(--red); border-left: 2px solid var(--red); }
.corner.br { bottom: 5px; right: 5px; border-bottom: 2px solid var(--red); border-right: 2px solid var(--red); }
.evidence-card figcaption { padding-top: 12px; font-size: .62rem; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }
.evidence-card figcaption span { color: var(--red); }
.case-notes { border-top: 1px solid var(--line); }
.case-notes article { padding: 24px 0; border-bottom: 1px solid var(--line); }
.case-notes span { color: var(--red); font-size: .62rem; letter-spacing: .12em; }
.case-notes h3 { margin: 8px 0; font: 800 1.1rem/1 Arial, sans-serif; letter-spacing: -.02em; }
.case-notes p { margin: 0; color: var(--muted); line-height: 1.55; font-size: .82rem; }

.warning-section { min-height: 74vh; padding: 8vw 5vw; display: grid; grid-template-columns: auto 1.2fr .8fr; gap: 4vw; align-items: center; background: #e7f1f2; color: var(--night); }
.warning-section .kicker { color: #4c646b; }
.warning-mark { width: clamp(72px, 9vw, 140px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: white; font: 900 clamp(3rem,6vw,6rem)/1 Arial Black, sans-serif; box-shadow: 0 0 0 10px rgba(255,45,45,.18); }
.warning-section h2 { font-size: clamp(3rem, 6.5vw, 7.5rem); }
.distance-panel { align-self: end; padding: 28px; border: 2px solid var(--night); }
.distance-label { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; font-size: .65rem; letter-spacing: .08em; }
.distance-label b { font-size: 1.3rem; color: var(--red); white-space: nowrap; }
.meter { height: 13px; margin: 18px 0; border: 2px solid var(--night); padding: 2px; }
.meter i { display: block; height: 100%; width: 76%; background: var(--red); transition: width .8s ease; }
.distance-panel small { display: block; line-height: 1.45; color: #42545a; font-size: .62rem; }

.final-section { min-height: 92vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 9vw 5vw; background: radial-gradient(circle at 50% 40%, #15252d 0%, var(--night) 58%); }
.final-section h2 { font-size: clamp(4rem, 11vw, 12rem); }
.final-section > p:not(.kicker) { margin: 25px 0 10px; color: var(--blue); letter-spacing: .2em; font-size: .85rem; }
.date-lockup { margin: 16px 0 34px; font: 900 clamp(3rem, 8vw, 8rem)/1 Arial Black, sans-serif; letter-spacing: -.06em; color: var(--red); text-shadow: 0 0 46px rgba(255,45,45,.25); }
.date-lockup span { color: var(--ice); }
.share { display: inline-flex; align-items: center; color: var(--night); background: var(--ice); text-decoration: none; }
.share:hover { color: #fff; background: var(--red); border-color: var(--red); }

footer { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 28px; align-items: center; padding: 32px 4vw; border-top: 1px solid var(--line); color: var(--muted); font-size: .65rem; }
footer strong { color: var(--ice); font-family: Arial Black, sans-serif; font-size: .78rem; }
footer p { margin: 0; text-align: center; line-height: 1.5; }
footer span { text-align: right; }

.signal-modal { position: fixed; z-index: 80; inset: 50% auto auto 50%; transform: translate(-50%,-50%); width: min(560px, calc(100vw - 36px)); padding: 42px; background: #071015; border: 1px solid var(--red); box-shadow: 0 0 0 100vmax rgba(0,0,0,.82), 0 0 80px rgba(255,45,45,.16); text-align: center; }
.signal-modal[hidden] { display: none; }
.signal-modal .close { position: absolute; top: 10px; right: 12px; border: 0; background: transparent; color: var(--ice); font-size: 2rem; cursor: pointer; }
.signal-modal p { color: var(--red); font-size: .68rem; letter-spacing: .2em; }
.signal-modal strong { display: block; margin: 24px 0; font: 900 clamp(2.2rem,7vw,4rem)/.9 Arial Black, sans-serif; }
.signal-modal small { color: var(--muted); letter-spacing: .14em; }
.waveform { height: 68px; display: flex; justify-content: center; align-items: center; gap: 7px; margin: 24px 0; }
.waveform i { width: 4px; height: 20%; background: var(--red); animation: wave .65s ease-in-out infinite alternate; }
.waveform i:nth-child(2n) { animation-delay: -.2s; }
.waveform i:nth-child(3n) { animation-delay: -.4s; }
@keyframes wave { to { height: 100%; } }

body.arrived .signal i { background: var(--ice); box-shadow: 0 0 14px var(--ice); }
body.arrived .hero-shade { background: linear-gradient(90deg, rgba(3,7,10,.95), rgba(3,7,10,.38)), linear-gradient(0deg, rgba(120,0,0,.32), transparent); }
body.glitching { animation: glitch-body .13s steps(2) 6; }
@keyframes glitch-body { 50% { transform: translateX(4px); filter: hue-rotate(18deg) contrast(1.2); } }

@media (max-width: 920px) {
  .topbar { height: 60px; grid-template-columns: 1fr auto; padding-inline: 18px; }
  .signal { justify-self: end; }
  nav { display: none; }
  .hero { align-items: flex-start; padding: 118px 18px 210px; }
  .hero-image { object-position: 78% center; }
  .hero-shade { background: linear-gradient(180deg, rgba(3,7,10,.84) 0%, rgba(3,7,10,.56) 42%, rgba(3,7,10,.94) 82%); }
  .hero-copy { width: 100%; }
  h1 { font-size: clamp(4rem, 20vw, 7rem); }
  .recording { top: 76px; right: 18px; }
  .countdown { left: 18px; right: 18px; bottom: 56px; grid-template-columns: repeat(4,1fr); }
  .countdown div { padding-inline: 9px; }
  .scroll-cue { display: none; }
  .file-section { grid-template-columns: 1fr; gap: 55px; padding: 90px 18px; }
  .evidence-card { width: min(100%, 560px); justify-self: center; }
  .warning-section { grid-template-columns: 1fr; min-height: auto; padding: 90px 18px; }
  .warning-mark { width: 74px; }
  .distance-panel { margin-top: 20px; }
  .final-section { min-height: 82vh; padding: 100px 18px; }
  footer { grid-template-columns: 1fr; padding: 32px 18px; }
  footer p, footer span { text-align: left; }
}

@media (max-width: 520px) {
  .hero { padding-top: 105px; }
  h1 { font-size: 17.5vw; }
  .lede br { display: none; }
  .hero-actions button { width: 100%; }
  .countdown strong { font-size: 1.55rem; }
  .countdown span { font-size: .5rem; }
  .file-heading h2, .warning-section h2 { font-size: 14vw; }
  .signal-modal { padding: 38px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
