/* Vanished Tapes — VHS true-crime theme */

:root {
  --bg: #0b0b0d;
  --bg2: #101014;
  --panel: #141418;
  --line: #26262c;
  --ink: #ece8e1;
  --muted: #a09a90;
  --red: #e5322d;
  --red-dim: #8f1f1b;
  --amber: #ffb454;
  --font-display: 'Special Elite', 'Courier New', monospace;
  --font-head: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- fixed CRT overlays ---------- */
.fx-noise, .fx-scanlines, .fx-vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 9990;
}
.fx-noise {
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: noise-jitter 0.6s steps(3) infinite;
}
@keyframes noise-jitter {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-18px, 10px); }
  66% { transform: translate(14px, -12px); }
  100% { transform: translate(0, 0); }
}
.fx-scanlines {
  opacity: .5;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px, transparent 3px,
    rgba(0, 0, 0, .22) 3px, rgba(0, 0, 0, .22) 4px
  );
}
.fx-vignette {
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .55) 100%);
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1.2rem;
  background: rgba(11, 11, 13, .88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { width: 40px; height: 40px; object-fit: cover; border: 1px solid var(--line); }
.brand span {
  font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .04em;
  color: var(--ink);
}
.site-header nav { display: flex; gap: 1.1rem; }
.site-header nav a {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .12em;
  font-size: .8rem; color: var(--muted); text-decoration: none;
  transition: color .2s;
}
.site-header nav a:hover { color: var(--red); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(229, 50, 45, .10), transparent 70%),
    var(--bg);
  padding: 4rem 1.2rem 5rem;
}
.tracking-bar {
  position: absolute; left: 0; right: 0; height: 90px; top: -90px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.10) 45%, rgba(255,255,255,.16) 50%, rgba(255,255,255,.10) 55%, transparent);
  filter: blur(2px);
  animation: tracking 8s linear infinite;
  pointer-events: none;
}
@keyframes tracking {
  0% { top: -90px; } 100% { top: 110%; }
}
.osd {
  position: absolute; top: 1.1rem;
  font-family: var(--font-head); letter-spacing: .18em; font-size: .85rem;
  color: rgba(236, 232, 225, .75); text-shadow: 0 0 8px rgba(0,0,0,.9);
}
.osd-play { left: 1.2rem; }
.osd-tri { color: var(--red); }
.osd-time { right: 1.2rem; font-variant-numeric: tabular-nums; }

.hero-inner { position: relative; z-index: 2; max-width: 720px; }
.hero-logo {
  width: min(300px, 62vw); margin: 0 auto 1.6rem;
  border: 1px solid var(--line);
  box-shadow: 0 0 60px rgba(229, 50, 45, .25), 0 20px 60px rgba(0,0,0,.6);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 9vw, 5rem);
  letter-spacing: .02em; line-height: 1.05;
  text-shadow: 0 0 24px rgba(229, 50, 45, .35);
  position: relative;
}
.hero-title.glitching { animation: vhs-glitch .38s steps(2) both; }
@keyframes vhs-glitch {
  0%   { transform: translate(0); text-shadow: 0 0 24px rgba(229,50,45,.35); }
  20%  { transform: translate(-4px, 2px); text-shadow: -3px 0 #e5322d, 3px 0 #2da8e5; }
  40%  { transform: translate(4px, -2px) skewX(3deg); clip-path: inset(20% 0 40% 0); }
  60%  { transform: translate(-3px, 1px); text-shadow: 3px 0 #e5322d, -3px 0 #2da8e5; clip-path: inset(60% 0 10% 0); }
  80%  { transform: translate(2px, 0); clip-path: none; }
  100% { transform: translate(0); text-shadow: 0 0 24px rgba(229,50,45,.35); }
}
.hero-tag {
  margin-top: 1rem; color: var(--muted);
  font-size: clamp(1rem, 2.6vw, 1.25rem); font-weight: 300;
}
.hero-cta { margin-top: 2rem; display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: .8rem 1.6rem;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .14em;
  font-size: .85rem; text-decoration: none; border: 1px solid transparent;
  transition: transform .15s, box-shadow .2s, background .2s, color .2s;
}
.btn-red { background: var(--red); color: #fff; box-shadow: 0 0 24px rgba(229,50,45,.35); }
.btn-red:hover { background: #f0443d; transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }
.btn-sm { padding: .6rem 1.2rem; font-size: .78rem; }

.scroll-hint {
  position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%);
  font-size: 1.6rem; color: var(--muted); text-decoration: none;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- sections ---------- */
.section { padding: 4.5rem 1.2rem; }
.section-alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wrap { max-width: 1080px; margin: 0 auto; }
.wrap.narrow { max-width: 680px; }
.kicker {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .28em;
  font-size: .75rem; color: var(--red); margin-bottom: .6rem;
}
.section-title {
  font-family: var(--font-head); font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; font-size: clamp(1.8rem, 5vw, 2.6rem);
  margin-bottom: 2.2rem;
}

/* ---------- case files ---------- */
.case-grid {
  display: grid; gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.case-card {
  background: var(--panel); border: 1px solid var(--line);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.case-card:hover {
  transform: translateY(-4px);
  border-color: var(--red-dim);
  box-shadow: 0 12px 40px rgba(0,0,0,.5), 0 0 24px rgba(229,50,45,.12);
}
.case-media { position: relative; aspect-ratio: 9 / 12; overflow: hidden; background: #000; }
.case-media img { width: 100%; height: 100%; object-fit: cover; }
.case-no {
  position: absolute; top: .8rem; left: .8rem;
  font-family: var(--font-display); font-size: .8rem;
  background: rgba(0,0,0,.72); color: var(--amber);
  border: 1px solid var(--line); padding: .3rem .7rem; letter-spacing: .06em;
}
.case-body { padding: 1.4rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.case-body h3 {
  font-family: var(--font-head); font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; font-size: 1.25rem; line-height: 1.25;
}
.case-sub { font-family: var(--font-display); color: var(--red); font-size: .9rem; }
.case-body p { color: var(--muted); font-size: .95rem; }
.case-body .btn, .case-body .text-link { margin-top: auto; align-self: flex-start; }
.text-link { color: var(--red); text-decoration: none; font-family: var(--font-head); letter-spacing: .1em; text-transform: uppercase; font-size: .82rem; }
.text-link:hover { text-decoration: underline; }

/* click-to-play facade */
.video-facade {
  position: relative; width: 100%; height: 100%; border: 0; padding: 0;
  background: #000; cursor: pointer; display: block;
}
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.video-facade:hover img { opacity: 1; }
.play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(229, 50, 45, .92); color: #fff; font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 30px rgba(229,50,45,.6);
  transition: transform .15s;
}
.video-facade:hover .play-btn { transform: translate(-50%, -50%) scale(1.08); }
.video-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* classified cards */
.classified-media {
  display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(to bottom, transparent 0 3px, rgba(0,0,0,.4) 3px 4px),
    radial-gradient(ellipse at center, #1a1a1f 0%, #0b0b0d 75%);
}
.static-word {
  font-family: var(--font-display); color: var(--muted); letter-spacing: .3em;
  font-size: .9rem; opacity: .6;
}
.redacted { background: #000; color: transparent; border-radius: 2px; user-select: none; }
.classified-note {
  font-family: var(--font-display); color: var(--amber) !important; font-size: .85rem !important;
}

/* ---------- about ---------- */
.tape-label {
  background: #f2ede2; color: #1c1a17;
  padding: 2rem; transform: rotate(-.6deg);
  box-shadow: 0 14px 40px rgba(0,0,0,.55);
  border-top: 10px solid var(--red);
  font-family: var(--font-display);
}
.tape-label p + p { margin-top: 1rem; }
.tape-label p { font-size: 1.02rem; line-height: 1.7; }

/* ---------- follow ---------- */
.follow-grid {
  display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.follow-card {
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  padding: 2rem 1rem; text-decoration: none;
  background: var(--panel); border: 1px solid var(--line);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.follow-card svg { width: 40px; height: 40px; fill: var(--ink); margin-bottom: .5rem; transition: fill .2s; }
.follow-card:hover { transform: translateY(-4px); border-color: var(--red); box-shadow: 0 0 24px rgba(229,50,45,.15); }
.follow-card:hover svg { fill: var(--red); }
.follow-name { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .14em; font-size: .95rem; }
.follow-handle { color: var(--muted); font-size: .85rem; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line); padding: 2.2rem 1.2rem;
  text-align: center; color: var(--muted); font-size: .85rem;
}
.rewind { font-family: var(--font-display); margin-top: .4rem; color: var(--red-dim); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .fx-noise, .tracking-bar, .scroll-hint { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- small screens ---------- */
@media (max-width: 560px) {
  .site-header nav { gap: .8rem; }
  .site-header nav a { font-size: .72rem; }
  .brand span { font-size: .9rem; }
  .case-media { aspect-ratio: 9 / 11; }
}
