/* --- Variables (investigative / case-file palette) --- */
:root {
  --bg: #0a0a0b;
  --bg-alt: #141416;
  --text: #e4e4e7;
  --text-muted: #9898a0;
  --accent: #c44b4b;
  --accent-hover: #d85c5c;
  --border: #252528;
  --card-bg: #121214;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 760px;
  --space: clamp(1rem, 3vw, 2rem);
  --radius: 8px;
}

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

/* --- Links (underline expansion on hover) --- */
a {
  color: var(--accent);
  text-decoration: none;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 100%;
  background-size: 0 2px;
  transition: color 0.2s ease, background-size 0.25s ease;
}
a:hover {
  color: var(--accent-hover);
  background-size: 100% 2px;
}

/* --- Hero --- */
.hero {
  padding: var(--space) var(--space) calc(var(--space) * 2);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: var(--space);
  align-items: start;
}
@media (min-width: 700px) {
  .hero-content { grid-template-columns: 1fr 320px; align-items: center; }
}

/* Hero typography */
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 3.25rem);
  font-weight: 400;
  margin: 0 0 0.4em;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hero .tagline {
  margin: 0 0 0.6em;
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.5;
}

/* Timeline facts (vertical timeline: line + dots) */
.hero-facts {
  margin: 0.75em 0 1em;
  padding: 0 0 0 1.5rem;
  list-style: none;
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  color: var(--text);
  line-height: 1.7;
  border-left: 2px solid var(--border);
  position: relative;
}
.hero-facts li {
  position: relative;
  margin-bottom: 0.5em;
  padding-left: 0;
}
.hero-facts li::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: -5px;
}
.hero-facts li:last-child { margin-bottom: 0; }

/* Hero CTA (Call for action) */
.hero-cta,
.cta-callout {
  margin: 1.25em 0 0.5em;
  padding: 1.25rem 1.5rem;
  background: rgba(196, 75, 75, 0.12);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.hero-cta:hover,
.cta-callout:hover {
  border-color: var(--accent-hover);
  box-shadow: 0 0 0 1px var(--accent-hover);
}
.hero-cta .cta-heading,
.cta-callout .cta-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 0.5em;
}
.hero .cta-line {
  margin: 0;
  color: #fff;
  font-weight: 800;
  font-size: clamp(1.15rem, 2.8vw, 1.5rem);
  line-height: 1.3;
  letter-spacing: 0.02em;
}
.hero-scroll {
  margin: 0.75em 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Hero photo (case file frame) */
.hero-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--card-bg);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.hero-photo:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(196, 75, 75, 0.15);
}
.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 320px;
  margin: 0 auto;
}
.hero-photo figcaption {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* --- Section layout --- */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--space) * 1.5) var(--space);
}
.section.alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Section headings with rule */
.section-header {
  margin-bottom: 1.25em;
}
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 0 0 0.35em;
}
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 400;
  margin: 0 0 0.5em;
  color: #fff;
  padding-bottom: 0.5em;
  border-bottom: 1px solid var(--border);
}
.section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.5em 0 0.5em;
  color: var(--text);
}
.section p { margin: 0 0 1em; }
.section p:last-child { margin-bottom: 0; }

/* Key stats (inline emphasis for figures) */
.key-stat {
  font-weight: 700;
  color: #fff;
}

/* --- Who is Paul --- */
.who-grid {
  display: grid;
  gap: var(--space);
  align-items: start;
}
@media (min-width: 600px) {
  .who-grid { grid-template-columns: 220px 1fr; }
}
.who-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--card-bg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.who-photo:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(196, 75, 75, 0.12);
}
.who-photo img { display: block; width: 100%; height: auto; }
.who-bio p { margin-top: 0; }

/* --- Crimes: exhibit cards --- */
.exhibit-card {
  margin-bottom: 1.5em;
  padding: 1.25rem 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.exhibit-card:hover {
  border-left-color: var(--accent-hover);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.exhibit-card:last-of-type { margin-bottom: 0; }
.exhibit-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 0.5em;
}
.exhibit-card h3 { margin-top: 0; }
.exhibit-card p { margin-bottom: 0.75em; }
.exhibit-card p:last-child { margin-bottom: 0; }

/* --- Video embed (responsive 16:9) --- */
.video-embed { margin: 1.5em 0; }
.video-embed h3 { margin-top: 0; margin-bottom: 0.75em; }
.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card-bg);
}
.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* --- Transcript exhibits (quote blocks) --- */
.transcript-quotes { margin: 1.5em 0; }
.transcript-quotes h3 { margin-top: 0; }
.quote-block,
.transcript-exhibit {
  margin-bottom: 1.5em;
  padding: 1.25rem 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.quote-block:hover,
.transcript-exhibit:hover {
  border-left-color: var(--accent-hover);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.transcript-meta {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 0.5em;
}
.quote-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.5em;
}
.quote-audio { margin-top: 1rem; }
.quote-block audio,
.transcript-exhibit audio {
  max-width: 100%;
  height: 36px;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
}
.quote-block audio::-webkit-media-controls-panel,
.transcript-exhibit audio::-webkit-media-controls-panel { background: #fff; }
.quote-block audio::-webkit-media-controls-current-time-display,
.quote-block audio::-webkit-media-controls-time-remaining-display,
.transcript-exhibit audio::-webkit-media-controls-current-time-display,
.transcript-exhibit audio::-webkit-media-controls-time-remaining-display { color: #333; }
.quote-block blockquote,
.transcript-exhibit blockquote {
  margin: 0;
  padding: 0;
  border: none;
  font-style: normal;
}
.quote-block blockquote p,
.transcript-exhibit blockquote p {
  margin: 0.25em 0;
  font-size: 0.95rem;
}
.quote-note {
  margin: 0.5em 0 0 !important;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.transcript-summary {
  margin-top: 1.5em;
  padding: 1.25rem 1.5rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  font-size: 0.95rem;
  border-left: 4px solid var(--accent);
}
.transcript-summary strong { color: var(--accent); }

/* --- Callout (statement / demand) --- */
.callout {
  margin-top: 1.5em !important;
  padding: 1.5rem 1.75rem;
  background: rgba(196, 75, 75, 0.12);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  font-weight: 600;
  color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.callout:hover {
  border-color: var(--accent-hover);
  box-shadow: 0 0 0 1px var(--accent-hover);
}

/* --- Sources --- */
.sources-inline {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 1em !important;
}
.sources-inline a { color: var(--accent); }
.sources-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
  padding-top: 1em;
}
.sources-list li {
  margin-bottom: 0.6em;
  padding-left: 1em;
  position: relative;
}
.sources-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.sources-list a { color: var(--accent); }

/* --- Footer --- */
.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space);
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ========== Animations ========== */

/* Hero stagger (on load) */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 {
    animation: heroReveal 0.5s ease-out 0.1s both;
  }
  .hero .tagline {
    animation: heroReveal 0.5s ease-out 0.2s both;
  }
  .hero-facts {
    animation: heroReveal 0.5s ease-out 0.35s both;
  }
  .hero-cta,
  .cta-callout {
    animation: heroReveal 0.5s ease-out 0.5s both;
  }
  .hero-scroll {
    animation: heroReveal 0.5s ease-out 0.65s both;
  }
  .hero-photo {
    animation: heroPhotoReveal 0.55s ease-out 0.4s both;
  }
}
@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes heroPhotoReveal {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Scroll-triggered reveal (.in-view added by JS) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
.reveal-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Disable all motion when user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero h1,
  .hero .tagline,
  .hero-facts,
  .hero-cta,
  .cta-callout,
  .hero-scroll,
  .hero-photo {
    animation: none;
  }
}
