/* WHO IS PAULO? : 70s grindhouse slasher
   Anything Studios. No em dashes anywhere. */

:root {
  --black: #0a0505;
  --black-2: #140a0a;
  --blood: #c01818;
  --blood-deep: #7a0c0c;
  --bone: #e8dcc4;
  --bone-dim: #b8ad95;
  --ink: #1a0e0e;
  --border: rgba(232, 220, 196, 0.18);
  --display: 'Anton', Impact, sans-serif;
  --type: 'Special Elite', 'Courier Prime', monospace;
  --mono: 'Courier Prime', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--bone);
  font-family: var(--mono);
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: var(--blood); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- overlays ---------- */
.grain {
  position: fixed; inset: -100px; z-index: 50; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.09;
  animation: grainShift 0.9s steps(4) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-30px, 18px); }
  50% { transform: translate(22px, -25px); }
  75% { transform: translate(-14px, -10px); }
  100% { transform: translate(0, 0); }
}

.vignette {
  position: fixed; inset: 0; z-index: 49; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.55) 100%);
}

/* cigarette burn cue, top right, fires occasionally via JS */
.cigburn {
  position: fixed; top: 7%; right: 6%; width: 46px; height: 46px;
  border-radius: 50%; z-index: 51; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(232,220,196,0.9) 0%, rgba(192,24,24,0.6) 45%, transparent 70%);
}
.cigburn.fire { animation: burn 0.45s ease-out; }
@keyframes burn {
  0% { opacity: 0; transform: scale(0.4); }
  30% { opacity: 0.85; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.25); }
}

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--type);
  font-size: 13px;
  letter-spacing: 0.32em;
  color: var(--blood);
  margin-bottom: 14px;
}
.type-line { font-family: var(--type); }

.h2 {
  font-family: var(--display);
  font-size: clamp(44px, 9vw, 88px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: var(--bone);
  text-shadow: 3px 3px 0 var(--blood-deep);
  margin-bottom: 18px;
}

.lede { color: var(--bone-dim); font-size: 15px; margin-bottom: 40px; }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 80px 20px 60px;
  background:
    radial-gradient(ellipse 90% 60% at 50% 40%, rgba(192, 24, 24, 0.16), transparent 70%),
    var(--black);
  overflow: hidden;
}

/* red window panes, like the cover */
.hero-window {
  position: absolute; top: 6%; left: 6%;
  width: clamp(90px, 16vw, 170px);
  aspect-ratio: 3 / 4;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  transform: rotate(-4deg);
  opacity: 0.5;
  filter: blur(0.4px);
}
.hero-window span {
  background: linear-gradient(160deg, var(--blood), var(--blood-deep));
  box-shadow: 0 0 26px rgba(192, 24, 24, 0.5);
  animation: paneFlicker 7s infinite;
}
.hero-window span:nth-child(3n) { animation-delay: 1.3s; }
.hero-window span:nth-child(4n) { animation-delay: 2.6s; }
@keyframes paneFlicker {
  0%, 92%, 100% { opacity: 1; }
  93% { opacity: 0.4; }
  95% { opacity: 0.9; }
  97% { opacity: 0.3; }
}

.title {
  font-family: var(--display);
  font-size: clamp(58px, 14.5vw, 180px);
  line-height: 0.92;
  color: var(--bone);
  text-transform: uppercase;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.22em;
  margin: 10px 0 18px;
  text-shadow:
    4px 4px 0 var(--blood-deep),
    0 0 60px rgba(192, 24, 24, 0.35);
}
.t-word { white-space: nowrap; }
.t-l { display: inline-block; opacity: 0; transform: translateY(0.25em); }
.loaded .t-l { animation: stampIn 0.07s ease-out forwards; }
.loaded .t-l:nth-child(1) { animation-delay: 0.25s; }
.loaded .t-word:nth-child(1) .t-l:nth-child(1) { animation-delay: 0.25s; }
.loaded .t-word:nth-child(1) .t-l:nth-child(2) { animation-delay: 0.38s; }
.loaded .t-word:nth-child(1) .t-l:nth-child(3) { animation-delay: 0.51s; }
.loaded .t-word:nth-child(2) .t-l:nth-child(1) { animation-delay: 0.72s; }
.loaded .t-word:nth-child(2) .t-l:nth-child(2) { animation-delay: 0.85s; }
.loaded .t-word:nth-child(3) .t-l:nth-child(1) { animation-delay: 1.06s; }
.loaded .t-word:nth-child(3) .t-l:nth-child(2) { animation-delay: 1.19s; }
.loaded .t-word:nth-child(3) .t-l:nth-child(3) { animation-delay: 1.32s; }
.loaded .t-word:nth-child(3) .t-l:nth-child(4) { animation-delay: 1.45s; }
.loaded .t-word:nth-child(3) .t-l:nth-child(5) { animation-delay: 1.58s; }
.loaded .t-word:nth-child(3) .t-l:nth-child(6) { animation-delay: 1.85s; }
@keyframes stampIn {
  from { opacity: 0; transform: translateY(0.25em) scale(1.4); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* occasional whole-title flicker, after stamp-in */
.loaded .title { animation: titleFlicker 9s 3s infinite; }
@keyframes titleFlicker {
  0%, 94%, 100% { opacity: 1; }
  95% { opacity: 0.55; }
  96% { opacity: 1; }
  98% { opacity: 0.7; }
  99% { opacity: 1; }
}

/* the question mark logo */
.qmark-wrap { width: 0.62em; height: 1em; vertical-align: baseline; }
.qmark { width: 100%; height: 102%; overflow: visible; display: inline-block; }
.qmark-stroke {
  stroke: var(--blood);
  stroke-width: 13;
  stroke-dasharray: var(--len, 140);
  stroke-dashoffset: var(--len, 140);
  filter: drop-shadow(0 0 14px rgba(192, 24, 24, 0.6));
}
.loaded .qmark-stroke { transition: stroke-dashoffset 1.1s ease 1.95s; stroke-dashoffset: 0; }
.qmark-dot, .qmark-drip { fill: var(--blood); opacity: 0; }
.loaded .qmark-dot { transition: opacity 0.2s ease 3s; opacity: 1; }
.loaded .qmark-drip { animation: dripFall 2.6s ease-in 3.3s infinite; transform-origin: 30px 88px; }
@keyframes dripFall {
  0% { opacity: 0; transform: scaleY(0.2); }
  25% { opacity: 1; transform: scaleY(0.7); }
  55% { opacity: 1; transform: scaleY(1.6) translateY(2px); }
  80% { opacity: 0; transform: scaleY(2.2) translateY(8px); }
  100% { opacity: 0; }
}

.tagline {
  color: var(--bone-dim);
  font-size: clamp(14px, 2.4vw, 19px);
  letter-spacing: 0.18em;
  margin-bottom: 36px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border);
  padding: 10px 16px;
  margin-bottom: 56px;
  text-align: left;
}
.rating-card {
  font-family: var(--display);
  background: var(--bone);
  color: var(--black);
  font-size: 30px;
  line-height: 1;
  padding: 8px 13px;
  flex-shrink: 0;
}
.rating-card.sm { font-size: 18px; padding: 5px 9px; }
.rating-text {
  font-family: var(--type);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--bone-dim);
  line-height: 1.7;
}

.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  text-decoration: none;
  color: var(--bone-dim);
  font-size: 12px;
  letter-spacing: 0.2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.cue-arrow { color: var(--blood); animation: cueBob 1.6s ease-in-out infinite; }
@keyframes cueBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- sections ---------- */
.section { padding: 110px 0; position: relative; }

.case-files {
  background:
    linear-gradient(rgba(192,24,24,0.04), transparent 30%),
    var(--black-2);
  border-top: 3px solid var(--blood);
}

/* case file cards */
.case {
  background: #100909;
  border: 1px solid var(--border);
  margin-bottom: 26px;
  position: relative;
}
.case-tab {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--blood);
  color: var(--bone);
  font-family: var(--type);
  font-size: 11px;
  letter-spacing: 0.22em;
  padding: 7px 14px;
}
.case-stamp {
  border: 1px solid var(--bone);
  padding: 1px 7px;
  transform: rotate(-3deg);
  font-size: 10px;
}
.case-head { padding: 18px 18px 12px; }
.case-title {
  font-family: var(--display);
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: 0.02em;
  color: var(--bone);
}
.featured .case-title { font-size: clamp(38px, 7vw, 64px); text-shadow: 2px 2px 0 var(--blood-deep); }
.case-meta { font-size: 11px; letter-spacing: 0.2em; color: var(--bone-dim); margin-top: 6px; }
.case iframe { display: block; border: 0; padding: 0 12px 12px; }

.case-grid { display: grid; grid-template-columns: 1fr; gap: 26px; margin-top: 26px; }
.case-grid .case { margin-bottom: 0; }

.full-cat { margin-top: 44px; font-size: 13px; color: var(--bone-dim); text-align: center; }

/* ---------- suspect dossier ---------- */
.suspect { background: var(--black); }

.dossier {
  border: 1px solid var(--border);
  background:
    repeating-linear-gradient(0deg, transparent 0 28px, rgba(232,220,196,0.025) 28px 29px),
    #0e0707;
  padding: 28px 22px;
  position: relative;
  display: grid;
  gap: 28px;
}
.dossier::before {
  content: 'CONFIDENTIAL';
  position: absolute;
  top: 42%; left: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
  font-family: var(--display);
  font-size: clamp(46px, 9vw, 110px);
  color: rgba(192, 24, 24, 0.09);
  letter-spacing: 0.1em;
  pointer-events: none;
  white-space: nowrap;
}

.mug { max-width: 320px; }
.mug img {
  filter: grayscale(0.85) contrast(1.15) brightness(0.9);
  border: 1px solid var(--border);
  outline: 6px solid #0e0707;
}
.mug.is-empty::after {
  content: 'PHOTOGRAPH MISSING FROM FILE';
  display: block;
  border: 1px dashed var(--border);
  padding: 60px 20px;
  text-align: center;
  font-family: var(--type);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--bone-dim);
}
.mug-label { display: block; font-size: 10px; letter-spacing: 0.2em; color: var(--bone-dim); margin-top: 10px; }

.facts { display: grid; gap: 16px; }
.fact dt {
  font-family: var(--type);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--blood);
}
.fact dd {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  margin-top: 3px;
}
.at-large {
  color: var(--blood);
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: 0.08em;
}

.redact {
  display: inline-block;
  width: 70px; height: 0.9em;
  background: var(--bone-dim);
  vertical-align: middle;
  margin-left: 6px;
  opacity: 0.85;
}
.redact.wide { width: 120px; }

.dossier-note { font-size: 12px; color: var(--bone-dim); letter-spacing: 0.06em; }

/* ---------- beats / wanted poster ---------- */
.beats {
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(192,24,24,0.12), transparent 75%),
    var(--black-2);
  border-top: 3px solid var(--blood);
  border-bottom: 3px solid var(--blood);
}

.wanted {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  border: 3px double var(--bone-dim);
  padding: 48px 26px;
  background: rgba(10, 5, 5, 0.6);
}
.wanted-top { font-size: 12px; letter-spacing: 0.3em; color: var(--bone-dim); margin-bottom: 18px; }
.wanted-title {
  font-family: var(--display);
  font-size: clamp(46px, 9vw, 86px);
  line-height: 0.95;
  color: var(--blood);
  text-shadow: 3px 3px 0 rgba(0,0,0,0.6);
  margin-bottom: 20px;
}
.wanted-body { font-size: 14px; color: var(--bone-dim); max-width: 430px; margin: 0 auto 34px; }

.btn-blood {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--blood);
  color: var(--bone);
  text-decoration: none;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.1em;
  padding: 18px 40px;
  border: 1px solid rgba(232,220,196,0.3);
  box-shadow: 0 0 0 rgba(192,24,24,0.5);
  transition: transform 0.15s ease, box-shadow 0.3s ease, background 0.2s ease;
}
.btn-blood:hover {
  background: #d92222;
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(192, 24, 24, 0.45);
}
.btn-sub { font-size: 10px; letter-spacing: 0.2em; opacity: 0.8; }

.wanted-fine { margin-top: 30px; font-size: 11px; letter-spacing: 0.22em; color: var(--bone-dim); }

/* ---------- sightings ---------- */
.sightings { background: var(--black); }

.sight-list { list-style: none; margin-top: 14px; }
.sight-list a {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 6px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--bone);
  transition: background 0.2s ease, padding-left 0.2s ease;
  min-height: 44px;
}
.sight-list li:first-child a { border-top: 1px solid var(--border); }
.sight-list a:hover { background: rgba(192, 24, 24, 0.08); padding-left: 16px; }
.sight-no { font-size: 11px; color: var(--blood); letter-spacing: 0.2em; }
.sight-name {
  font-family: var(--display);
  font-size: clamp(24px, 4.6vw, 40px);
  letter-spacing: 0.04em;
}
.sight-arrow { margin-left: auto; color: var(--blood); font-size: 20px; }

/* ---------- footer ---------- */
.footer { padding: 46px 0 60px; border-top: 1px solid var(--border); }
.footer-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--bone-dim);
}
.footer a { color: var(--bone-dim); }
.footer a:hover { color: var(--blood); }

/* ---------- scroll animations ---------- */
.reveal, .wipe { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.wipe { transform: translateX(-18px); }
.reveal.in, .wipe.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.15s; }
.reveal.d2 { transition-delay: 0.3s; }
.reveal.d3 { transition-delay: 0.45s; }

.stagger > * { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.in > *:nth-child(2) { transition-delay: 0.15s; }
.stagger.in > *:nth-child(3) { transition-delay: 0.25s; }
.stagger.in > *:nth-child(4) { transition-delay: 0.35s; }
.stagger.in > *:nth-child(5) { transition-delay: 0.45s; }
.stagger.in > *:nth-child(6) { transition-delay: 0.55s; }
.stagger.in > * { opacity: 1; transform: none; }

/* hero pieces get .in immediately via .loaded */
.hero .reveal { transition-delay: 2.2s; }
.hero .reveal.d1 { transition-delay: 2.35s; }
.hero .reveal.d2 { transition-delay: 2.5s; }
.hero .reveal.d3 { transition-delay: 2.7s; }

/* ---------- breakpoints ---------- */
@media (min-width: 680px) {
  .case-grid { grid-template-columns: 1fr 1fr; }
  .dossier { grid-template-columns: 320px 1fr; padding: 40px 36px; }
  .dossier-note { grid-column: 1 / -1; }
  .footer-row { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (min-width: 980px) {
  .case-grid { grid-template-columns: 1fr 1fr 1fr; }
  .section { padding: 140px 0; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .cigburn, .cue-arrow, .hero-window span { animation: none !important; }
  .t-l, .reveal, .wipe, .stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
  .qmark-stroke { stroke-dashoffset: 0 !important; transition: none !important; }
  .qmark-dot, .qmark-drip { opacity: 1 !important; animation: none !important; }
  .loaded .title { animation: none !important; }
}
