/* Modern editorial polish layered over the established site structure. */
:root {
  --ink: #f4f7f9;
  --muted: #9ba8b3;
  --paper: #070a0f;
  --paper-2: #0c1119;
  --paper-3: #121a24;
  --line: rgba(223, 235, 242, 0.11);
  --line-strong: rgba(223, 235, 242, 0.24);
  --red: #ff5a52;
  --red-deep: #c42e31;
  --cyan: #5ee7ff;
  --gold: #ffc760;
  --green: #63e6ad;
  --lavender: #bca9ff;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.44);
  --radius: 22px;
  --header: 78px;
  --font-body: "Manrope", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Arial Narrow", ui-sans-serif, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

html[data-theme="light"] {
  --ink: #111820;
  --muted: #5d6974;
  --paper: #edf1f3;
  --paper-2: #f8fafb;
  --paper-3: #e3e9ed;
  --line: rgba(13, 23, 31, 0.11);
  --line-strong: rgba(13, 23, 31, 0.22);
  --red: #bd2634;
  --red-deep: #961d2a;
  --cyan: #00758b;
  --gold: #815300;
  --green: #08764f;
  --lavender: #6049b6;
  --shadow: 0 26px 75px rgba(40, 54, 65, 0.14);
}

html[data-theme="light"] .button.primary { color: #fff; }
html[data-theme="light"] .hero h1 em {
  background: linear-gradient(110deg, #c92c3a, #9e1d2b 72%, #b94732);
  background-clip: text;
  -webkit-background-clip: text;
}

html { scroll-padding-top: calc(var(--header) + 1.5rem); }

body {
  background:
    radial-gradient(circle at 82% 9%, rgba(94, 231, 255, 0.09), transparent 29rem),
    radial-gradient(circle at 9% 27%, rgba(255, 90, 82, 0.11), transparent 27rem),
    linear-gradient(135deg, transparent 0 49.7%, rgba(255, 255, 255, 0.012) 49.8% 50.2%, transparent 50.3%) 0 0 / 96px 96px,
    var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  font-synthesis: none;
}

body::before {
  background:
    linear-gradient(rgba(255,255,255,.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.011) 1px, transparent 1px);
  background-size: 72px 72px;
}

::selection { color: #fff; background: var(--red-deep); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.noise { opacity: .022; }

.site-header {
  padding-inline: max(1.25rem, calc((100vw - var(--max)) / 2));
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(24px) saturate(150%);
}

.brand {
  gap: .8rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border: 1px solid color-mix(in srgb, var(--red) 78%, white);
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  transform: rotate(-4deg);
  box-shadow:
    inset 0 0 0 3px color-mix(in srgb, var(--red) 8%, transparent),
    0 0 24px color-mix(in srgb, var(--red) 15%, transparent);
}

.site-header nav { gap: clamp(1.1rem, 2.4vw, 2rem); }

.site-header nav a {
  position: relative;
  padding-block: .45rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color .2s ease;
}

.site-header nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .2s ease;
}

.site-header nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.theme-toggle {
  width: 44px;
  height: 38px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--paper-2) 74%, transparent);
  font-family: var(--font-display);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.theme-toggle:hover {
  border-color: color-mix(in srgb, var(--cyan) 55%, var(--line));
  background: color-mix(in srgb, var(--cyan) 8%, var(--paper-2));
  transform: translateY(-1px) rotate(0);
}

.hero {
  position: relative;
  min-height: min(920px, calc(100svh - var(--header)));
  grid-template-columns: minmax(0, 1.12fr) minmax(350px, .88fr);
  gap: clamp(2.5rem, 6vw, 7.25rem);
  padding: clamp(4.5rem, 7vw, 7.5rem) 1.25rem clamp(5rem, 8vw, 7rem);
}

.hero::after {
  content: "";
  position: absolute;
  right: 1.25rem;
  bottom: 2.5rem;
  left: 1.25rem;
  height: 1px;
  background: linear-gradient(90deg, var(--red), var(--line) 28%, transparent 82%);
}

.eyebrow {
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .16em;
}

.hero h1,
.section-heading h2,
.method-intro h2,
.source-section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.06em;
  line-height: .91;
}

.hero h1 {
  max-width: 10.5ch;
  font-size: clamp(4rem, 7.5vw, 7.8rem);
  text-wrap: balance;
}

.hero h1 em {
  display: inline-block;
  color: var(--red);
  background: linear-gradient(110deg, #ff6b63 12%, #ff3f4b 70%, #ff8d61);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: normal;
  font-weight: 700;
  letter-spacing: -.07em;
  filter: drop-shadow(0 14px 38px rgba(255, 65, 75, .15));
}

.hero-intro {
  max-width: 60ch;
  margin-top: 2.1rem;
  color: color-mix(in srgb, var(--ink) 68%, var(--muted));
  font-size: clamp(1.02rem, 1.35vw, 1.22rem);
  font-weight: 500;
  letter-spacing: -.015em;
}

.hero-actions { gap: .75rem; margin: 2.15rem 0 2.5rem; }

.button {
  min-height: 50px;
  gap: .75rem;
  padding: .82rem 1.15rem;
  border-radius: 13px;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .035em;
  text-transform: uppercase;
  transition: transform .2s ease, color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.button::after { content: "↗"; font-size: 1rem; line-height: 1; }
.button.primary { color: #0b1017; box-shadow: 0 13px 32px rgba(255, 60, 70, .24); }
.button.primary:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(255, 60, 70, .3); }
.button.ghost { background: color-mix(in srgb, var(--paper-2) 82%, transparent); }

.hero-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .55rem;
  max-width: 730px;
  border: 0;
}

.hero-stats div,
.hero-stats div + div {
  min-height: 92px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--paper-2) 91%, transparent), color-mix(in srgb, var(--paper-3) 54%, transparent));
}

.hero-stats dt {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -.05em;
}

.hero-stats dd {
  margin-top: .55rem;
  font-family: var(--font-mono);
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .08em;
}

.hero-portrait::before {
  content: "";
  position: absolute;
  inset: 1.1rem -1rem -1rem 1rem;
  border: 1px solid color-mix(in srgb, var(--cyan) 30%, var(--line));
  border-radius: 26px 26px 110px 26px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--cyan) 5%, transparent), transparent 44%, color-mix(in srgb, var(--red) 7%, transparent));
}

.portrait-frame {
  width: min(100%, 470px);
  aspect-ratio: 1;
  border-radius: 26px 26px 110px 26px;
  border-color: color-mix(in srgb, var(--ink) 18%, transparent);
  background: #0b1017;
  box-shadow: 0 36px 100px rgba(0, 0, 0, .48), 0 0 0 1px rgba(255,255,255,.035);
}

.portrait-frame::after {
  background: linear-gradient(to top, rgba(2, 6, 10, .92), transparent 47%), linear-gradient(130deg, transparent 62%, rgba(94,231,255,.1));
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center 16%;
  filter: saturate(.82) contrast(1.07);
}

.portrait-stamp {
  right: 7%;
  bottom: 7%;
  border-width: 2px;
  border-radius: 7px;
  padding: .45rem .65rem;
  font-family: var(--font-mono);
  font-size: clamp(.58rem, 1vw, .72rem);
  font-weight: 600;
  letter-spacing: .1em;
  background: rgba(9, 12, 16, .56);
  backdrop-filter: blur(8px);
}

.redaction { height: 13px; }
.hero-portrait figcaption { font-family: var(--font-mono); font-size: .63rem; letter-spacing: .025em; }

.manifesto {
  position: relative;
  padding-block: 1.35rem;
  background: linear-gradient(90deg, color-mix(in srgb, var(--red) 8%, var(--paper-2)), var(--paper-2) 46%, color-mix(in srgb, var(--cyan) 6%, var(--paper-2)));
}

.manifesto::before {
  content: "";
  position: absolute;
  inset: -1px auto -1px 0;
  width: clamp(4px, 1vw, 12px);
  background: var(--red);
}

.manifesto p { font-size: .9rem; font-weight: 500; }

.record-section,
.method-section { padding-block: clamp(6.5rem, 9vw, 9rem); }

.section-heading { margin-bottom: 3rem; }
.section-heading h2,
.method-intro h2,
.source-section h2 { font-size: clamp(3.35rem, 6.1vw, 6.5rem); }
.section-heading > p { font-weight: 500; letter-spacing: -.01em; }

.controls {
  position: relative;
  top: auto;
  gap: .8rem;
  padding: 1rem;
  border-radius: 20px;
  border-color: color-mix(in srgb, var(--ink) 13%, transparent);
  background: color-mix(in srgb, var(--paper-2) 94%, transparent);
  backdrop-filter: blur(24px) saturate(145%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .2);
}

.search-box {
  min-height: 52px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
}

.search-box input { font-weight: 500; }

.filter-chip {
  min-height: 32px;
  padding: .44rem .68rem;
  border-radius: 9px;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .015em;
  transition: transform .18s ease, color .18s ease, border-color .18s ease, background .18s ease;
}

.filter-chip:hover { transform: translateY(-1px); }
.filter-chip.active { box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }

.results-meta {
  margin-bottom: 2.4rem;
  font-family: var(--font-mono);
  font-size: .69rem;
}

.noscript-note {
  margin: 0 0 1.4rem;
  padding: .9rem 1rem;
  border: 1px solid color-mix(in srgb, var(--red) 34%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--red) 8%, transparent);
  color: var(--muted);
  font-size: .82rem;
}

.timeline::before {
  width: 2px;
  background: linear-gradient(to bottom, var(--red), color-mix(in srgb, var(--red) 25%, var(--line)) 8%, var(--line) 92%, transparent);
}

.incident-card { gap: 3.15rem; padding-bottom: 2.25rem; }

.timeline-node {
  top: 1.75rem;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  transform: rotate(45deg);
  box-shadow: 0 0 0 1px var(--red), 0 0 26px rgba(255, 77, 69, .45);
}

.incident-date {
  padding-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: .69rem;
  font-weight: 600;
  letter-spacing: .025em;
}

.incident-body {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--paper-2) 96%, transparent), color-mix(in srgb, var(--paper-3) 66%, transparent));
  box-shadow: 0 16px 48px rgba(0, 0, 0, .15);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.incident-body::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: -1px;
  right: 2rem;
  left: 2rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  opacity: 0;
  transition: opacity .2s ease;
}

.incident-body:hover {
  border-color: color-mix(in srgb, var(--red) 28%, var(--line));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
  transform: translateY(-3px);
}

.incident-body:hover::before { opacity: 1; }

.case-number,
.status-pill,
.category-pill {
  font-family: var(--font-mono);
  font-weight: 600;
}

.case-number { font-size: .65rem; }
.status-pill, .category-pill { min-height: 28px; font-size: .62rem; letter-spacing: .04em; }

.incident-body h3 {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.incident-dek {
  color: color-mix(in srgb, var(--ink) 63%, var(--muted));
  font-size: .98rem;
  font-weight: 500;
  line-height: 1.7;
}

.tag-list span {
  font-family: var(--font-mono);
  font-size: .63rem;
  font-weight: 500;
}

.incident-body summary {
  min-height: 62px;
  font-family: var(--font-mono);
  font-size: .69rem;
  font-weight: 600;
  letter-spacing: .04em;
}

.summary-icon { font-family: var(--font-body); }

.evidence-panel h4 {
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 600;
}

.evidence-panel p { line-height: 1.72; }
.source-list a { font-weight: 700; }
.source-type { font-family: var(--font-mono); }

.baseline-section {
  padding-block: clamp(6.5rem, 9vw, 9rem);
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 90, 82, .12), transparent 26rem),
    linear-gradient(135deg, #f5f7f8, #e7edf0);
  color: #10171e;
}

.baseline-grid {
  gap: 1rem;
  background: transparent;
  border: 0;
}

.baseline-card {
  min-height: 285px;
  padding: 2rem;
  border: 1px solid rgba(17, 24, 33, .1);
  border-radius: 18px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 16px 40px rgba(41, 54, 64, .08);
  backdrop-filter: blur(8px);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.baseline-card:hover {
  transform: translateY(-4px);
  border-color: rgba(196, 46, 49, .28);
  box-shadow: 0 24px 55px rgba(41, 54, 64, .12);
}

.baseline-card::before {
  right: 1rem;
  top: .45rem;
  color: rgba(17, 24, 33, .05);
  font-family: var(--font-mono);
  font-size: 5.5rem;
  font-weight: 600;
}

.baseline-card h3 {
  max-width: 12ch;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -.04em;
}

.baseline-card p { line-height: 1.65; }
.baseline-card a { font-family: var(--font-mono); font-size: .65rem; font-weight: 600; }

.method-intro { max-width: 870px; }
.method-intro > p:last-child { font-weight: 500; }

.method-grid { gap: 1rem; }

.method-card {
  --status: var(--line-strong);
  min-height: 265px;
  padding: 1.6rem;
  border-radius: 19px;
  border-top: 3px solid var(--status);
  background: linear-gradient(155deg, color-mix(in srgb, var(--status) 7%, var(--paper-2)), var(--paper-2) 45%);
  box-shadow: 0 16px 45px rgba(0,0,0,.12);
  transition: transform .2s ease, border-color .2s ease;
}

.method-card:hover { transform: translateY(-4px); }
.method-card.documented { --status: var(--green); }
.method-card.reported { --status: var(--cyan); }
.method-card.disputed { --status: var(--lavender); }
.method-card.inquiry { --status: var(--gold); }

.method-card span {
  right: .9rem;
  top: .45rem;
  font-family: var(--font-mono);
  font-size: 4.75rem;
}

.method-card h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -.035em;
}

.method-card p { line-height: 1.65; }
.method-notes h3 { font-family: var(--font-mono); font-size: .67rem; font-weight: 600; }

.source-section {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5.5rem, 8vw, 7.5rem);
  background:
    radial-gradient(circle at 80% 0, rgba(255,255,255,.2), transparent 24rem),
    linear-gradient(120deg, #ff4b45, #d92535 64%, #9f1c32);
}

.source-section::after {
  content: "";
  position: absolute;
  right: -8rem;
  bottom: -13rem;
  width: 30rem;
  height: 30rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  box-shadow: 0 0 0 4rem rgba(255,255,255,.035), 0 0 0 8rem rgba(255,255,255,.025);
  pointer-events: none;
}

.source-section > * { position: relative; z-index: 1; }
.source-section h2 { font-weight: 700; }
.source-section .button.primary { color: #fff; background: #0c1119; border-color: #0c1119; }

footer {
  padding-block: 4.5rem;
  border-top: 1px solid var(--line);
  font-size: .75rem;
}

.footer-brand { font-size: .68rem; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-copy > * { animation: rise-in .7s cubic-bezier(.2,.8,.2,1) both; }
.hero-copy > :nth-child(2) { animation-delay: .06s; }
.hero-copy > :nth-child(3) { animation-delay: .12s; }
.hero-copy > :nth-child(4) { animation-delay: .18s; }
.hero-copy > :nth-child(5) { animation-delay: .24s; }
.hero-portrait { animation: rise-in .8s .12s cubic-bezier(.2,.8,.2,1) both; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr .78fr; gap: 3rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats div:nth-child(3),
  .hero-stats div:nth-child(4) { border: 1px solid var(--line); }
}

@media (max-width: 760px) {
  :root { --header: 62px; }
  body { min-width: 0; padding-bottom: 0; }
  .site-header { padding-inline: 1rem; }
  .site-header nav {
    display: none;
  }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 2rem; padding-top: 4rem; padding-bottom: 5rem; }
  .hero-portrait { order: -1; }
  .hero::after { bottom: 2rem; }
  .hero h1 { max-width: none; font-size: clamp(3.3rem, 17vw, 5.5rem); }
  .hero-portrait::before { inset: .55rem -.45rem -.45rem .45rem; }
  .portrait-frame,
  .hero-portrait::before { border-radius: 22px; }
  .portrait-frame { max-width: 330px; }
  .portrait-frame img { aspect-ratio: auto; object-position: center 16%; }
  .record-section,
  .method-section,
  .baseline-section { padding-block: 6rem; }
  .controls { border-radius: 16px; }
  .timeline::before { left: 7px; }
  .timeline-node { left: 0; }
  .incident-card { gap: .75rem; padding-left: 1.85rem; }
  .source-section { gap: 2rem; }
}

@media (max-width: 470px) {
  .brand { font-size: .68rem; }
  .brand-mark { width: 30px; height: 30px; }
  .hero { padding-inline: 1.25rem; }
  .hero h1 { font-size: clamp(3.3rem, 17vw, 5.5rem); }
  .hero-intro { font-size: 1.05rem; }
  .hero-stats { gap: .45rem; }
  .hero-stats div,
  .hero-stats div + div { min-height: 86px; padding: .85rem; }
  .hero-stats dd { font-size: .64rem; }
  .button { min-height: 48px; }
  .incident-body { border-radius: 16px; }
  .baseline-card { border-radius: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy > *,
  .hero-portrait { animation: none !important; }
}
