:root {
  --ink: #0a0a0a;
  --ink-2: #101010;
  --ink-3: #161616;
  --ink-4: #1d1d1d;
  --paper: #f4efe6;
  --paper-2: #ded7ca;
  --muted: #9b958c;
  --muted-2: #6d6963;
  --red: #e10600;
  --red-dark: #8d0804;
  --red-soft: rgba(225, 6, 0, 0.14);
  --line: rgba(244, 239, 230, 0.16);
  --line-strong: rgba(244, 239, 230, 0.3);
  --black-line: rgba(10, 10, 10, 0.18);
  --display: "Anton", Impact, sans-serif;
  --body: "Archivo", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --max: 1500px;
  --header-h: 78px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 8%, rgba(225, 6, 0, 0.13), transparent 24rem),
    var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

::selection {
  background: var(--red);
  color: var(--paper);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

h1,
h2,
h3,
p,
dl,
dd,
blockquote,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 400;
}

svg {
  display: block;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  transform: translateY(-150%);
  background: var(--paper);
  color: var(--ink);
  padding: 0.7rem 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.skip-link:focus {
  transform: none;
}

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

.mono {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  min-height: var(--header-h);
  padding: 0.75rem var(--gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(10, 10, 10, 0.96);
  border-color: var(--line-strong);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  line-height: 1;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--red);
  color: var(--paper);
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  transform: rotate(-2deg);
}

.brand-type {
  font-family: var(--mono);
  font-size: 0.62rem;
  line-height: 1.25;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand-type strong {
  color: var(--paper);
  font-size: 0.8rem;
  font-weight: 600;
}

.primary-nav {
  display: flex;
  justify-content: center;
  gap: clamp(0.9rem, 2.2vw, 2.2rem);
}

.primary-nav a {
  position: relative;
  padding: 0.35rem 0;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
}

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

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--paper);
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-left: clamp(0.5rem, 2vw, 2rem);
  border-left: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.57rem;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.header-meta strong {
  color: var(--paper);
  font-weight: 500;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px var(--red-soft);
  animation: pulse 2.4s ease-in-out infinite;
}

.menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  position: relative;
}

.menu-toggle span {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1px;
  background: var(--paper);
  transform: translateX(-50%);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.menu-toggle span:first-child {
  top: calc(50% - 4px);
}

.menu-toggle span:last-child {
  top: calc(50% + 4px);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  top: 50%;
  transform: translateX(-50%) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  top: 50%;
  transform: translateX(-50%) rotate(-45deg);
}

.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 7rem) var(--gutter) 2rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -12rem;
  right: -10rem;
  width: 40rem;
  height: 40rem;
  border: 1px solid rgba(225, 6, 0, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 28%;
  bottom: 0;
  width: 1px;
  background: linear-gradient(transparent, var(--line), transparent);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: clamp(1.6rem, 3vw, 2.8rem);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--red);
}

.eyebrow span:first-child::before {
  content: "";
  width: 1.8rem;
  height: 1px;
  background: var(--red);
}

.eyebrow span:last-child {
  padding-left: 1.2rem;
  border-left: 1px solid var(--line);
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(4.2rem, 10.7vw, 10.5rem);
  line-height: 0.88;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.hero-title span {
  display: block;
}

.hero-title-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--paper);
  text-stroke: 1.5px var(--paper);
  margin-top: 0.08em;
}

.hero-lead {
  max-width: 58ch;
  margin-top: clamp(1.8rem, 3.2vw, 2.8rem);
  color: var(--paper-2);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease);
}

.button svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--red);
  color: var(--paper);
}

.button-primary:hover {
  background: var(--paper);
  color: var(--ink);
}

.button-ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--paper);
}

.button-ghost:hover {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(1.5rem, 4vw, 3.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.hero-stats div {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
}

.hero-stats dt {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1;
  color: var(--paper);
}

.hero-stats dd {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-portrait {
  position: relative;
  width: min(100%, 430px);
  justify-self: end;
}

.portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  padding: 0.7rem;
  border: 1px solid var(--line-strong);
  background: var(--red);
  box-shadow: 18px 18px 0 rgba(225, 6, 0, 0.16);
}

.portrait-frame::before {
  content: "";
  position: absolute;
  inset: 0.7rem;
  z-index: 2;
  border: 1px solid rgba(244, 239, 230, 0.35);
  pointer-events: none;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(1) contrast(1.2) brightness(0.82);
  mix-blend-mode: luminosity;
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0.7rem;
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 40%, rgba(10, 10, 10, 0.82) 100%),
    linear-gradient(90deg, rgba(225, 6, 0, 0.36), transparent 50%);
  pointer-events: none;
}

.portrait-index {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 3;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  color: var(--paper);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.portrait-stamp {
  position: absolute;
  z-index: 4;
  left: -1.4rem;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 6.6rem;
  height: 6.6rem;
  border: 1px solid var(--paper);
  border-radius: 50%;
  background: var(--red);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.5rem;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  transform: rotate(-12deg);
  box-shadow: 0 0 0 6px rgba(10, 10, 10, 0.55);
}

.portrait-stamp strong {
  font-family: var(--display);
  font-size: 2.2rem;
  line-height: 0.9;
  font-weight: 400;
}

.portrait-corner {
  position: absolute;
  z-index: 3;
  width: 1.2rem;
  height: 1.2rem;
  border-color: var(--paper);
  border-style: solid;
}

.portrait-corner-tl {
  top: 1.15rem;
  right: 1.15rem;
  border-width: 1px 1px 0 0;
}

.portrait-corner-br {
  right: 1.15rem;
  bottom: 1.15rem;
  border-width: 0 1px 1px 0;
}

.hero-portrait figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.8rem;
  font-family: var(--mono);
  font-size: 0.5rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.hero-portrait figcaption a {
  max-width: 55%;
  text-align: right;
  transition: color 0.2s ease;
}

.hero-portrait figcaption a:hover {
  color: var(--paper);
}

.hero-foot {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-top: clamp(3.5rem, 7vw, 6rem);
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.hero-foot p {
  max-width: 68ch;
  font-size: 0.78rem;
  color: var(--muted);
}

.hero-foot .mono {
  color: var(--red);
  margin-right: 0.5rem;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
}

.scroll-cue svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: var(--red);
  stroke-width: 1.6;
  animation: nudge 2s ease-in-out infinite;
}

.ticker-wrap {
  overflow: hidden;
  margin: 1.2rem 0 0;
}

.ticker {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-block: 1px solid var(--red);
  background: var(--red);
  color: var(--paper);
  transform: rotate(-1.1deg) scale(1.02);
  margin: 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 48s linear infinite;
}

.ticker-track span {
  position: relative;
  padding: 0.8rem 1.6rem;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-track span::after {
  content: "/";
  position: absolute;
  right: 0;
  color: rgba(244, 239, 230, 0.55);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 9rem) var(--gutter);
  scroll-margin-top: 5.5rem;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 2rem clamp(2rem, 7vw, 8rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-kicker span {
  color: var(--red);
}

.section-kicker::after {
  content: "";
  width: 3rem;
  height: 1px;
  background: var(--red);
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(3.2rem, 7.2vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.section-head h2 em {
  font-style: normal;
  color: var(--red);
}

.section-intro {
  max-width: 52ch;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.method-card {
  position: relative;
  min-height: 19rem;
  padding: 1.6rem 1.5rem 2rem;
  border-right: 1px solid var(--line);
  transition: background 0.25s ease;
}

.method-card:last-child {
  border-right: 0;
}

.method-card:hover {
  background: var(--ink-2);
}

.method-number {
  display: block;
  margin-bottom: 2.8rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--red);
}

.method-card h3 {
  max-width: 12ch;
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.5vw, 2.3rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.method-card p {
  max-width: 34ch;
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.method-note {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid rgba(225, 6, 0, 0.45);
  background: var(--red-soft);
}

.method-note-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--red);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
}

.method-note p {
  max-width: 95ch;
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--paper-2);
}

.method-note strong {
  color: var(--paper);
}

.discovery {
  max-width: none;
  padding-inline: var(--gutter);
  border-block: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(225, 6, 0, 0.055), transparent 28rem),
    var(--ink-2);
}

.discovery .section-head,
.discovery-grid {
  max-width: var(--max);
  margin-inline: auto;
}

.discovery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.wheel-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.wheel-wrap {
  position: relative;
  width: min(100%, 610px);
  aspect-ratio: 1;
}

.wheel {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--ink);
  box-shadow:
    0 0 0 0.7rem var(--ink-2),
    0 0 0 calc(0.7rem + 1px) var(--line),
    0 2.5rem 6rem rgba(0, 0, 0, 0.45);
}

.wheel::before {
  content: "";
  position: absolute;
  inset: 2.5%;
  z-index: 1;
  border: 1px dashed rgba(244, 239, 230, 0.22);
  border-radius: 50%;
  pointer-events: none;
}

.wheel svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.wheel-rotor {
  transform-box: view-box;
  transform-origin: 280px 280px;
  transition: transform 4s cubic-bezier(0.1, 0.75, 0.08, 1);
}

.wheel-segment {
  stroke: rgba(244, 239, 230, 0.18);
  stroke-width: 1;
  transition: fill 0.2s ease;
}

.wheel-segment.is-red {
  fill: #2b0907;
}

.wheel-segment.is-dark {
  fill: #171717;
}

.wheel-segment.is-mid {
  fill: #1e1e1e;
}

.wheel-label {
  fill: rgba(244, 239, 230, 0.72);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-anchor: middle;
}

.wheel-label.is-red {
  fill: #ffb3af;
}

.wheel-center-ring {
  fill: var(--ink);
  stroke: var(--line-strong);
  stroke-width: 1;
}

.wheel-pointer {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  z-index: 4;
  width: 0;
  height: 0;
  border-left: 0.65rem solid transparent;
  border-right: 0.65rem solid transparent;
  border-top: 1.2rem solid var(--paper);
  transform: translateX(-50%);
  filter: drop-shadow(0 4px 0 var(--red));
}

.wheel-button {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 31%;
  aspect-ratio: 1;
  padding: 0.8rem;
  border: 7px solid var(--ink);
  border-radius: 50%;
  background: var(--red);
  color: var(--paper);
  cursor: pointer;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px rgba(244, 239, 230, 0.3), 0 0 0 8px rgba(225, 6, 0, 0.08);
  transition: background 0.25s ease, transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.wheel-button:hover:not(:disabled) {
  background: var(--paper);
  color: var(--ink);
  transform: translate(-50%, -50%) scale(1.04);
  box-shadow: 0 0 0 1px var(--paper), 0 0 0 14px rgba(225, 6, 0, 0.13);
}

.wheel-button:disabled {
  cursor: wait;
}

.wheel-button.is-spinning .wheel-button-label {
  opacity: 0.65;
}

.wheel-button-kicker {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wheel-button-label {
  margin-top: 0.25rem;
  font-family: var(--display);
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);
  line-height: 0.9;
  text-align: center;
  text-transform: uppercase;
}

.wheel-hint {
  max-width: 38ch;
  margin-top: 1.8rem;
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.65;
  color: var(--muted);
}

.wheel-hint .mono {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--red);
}

.discovery-panel {
  border: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.52);
  min-height: 34rem;
  display: flex;
  flex-direction: column;
}

.panel-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.panel-top .mono:last-child {
  color: var(--red);
}

.draw-result {
  flex: 1;
  display: flex;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.draw-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  min-height: 18rem;
  border: 1px dashed var(--line-strong);
  padding: 2rem;
}

.draw-empty-mark {
  font-family: var(--display);
  font-size: clamp(5rem, 10vw, 8rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px var(--muted-2);
}

.draw-empty p {
  margin-top: 1.5rem;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.draw-empty .mono {
  margin-top: 0.8rem;
  color: var(--muted);
}

.draw-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  animation: card-in 0.55s var(--ease) both;
}

.draw-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.draw-card-number {
  font-family: var(--display);
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.8;
  color: var(--red);
}

.draw-card-category {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

.draw-card h3 {
  margin-top: 1.4rem;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.draw-card p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.7;
}

.draw-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 1.5rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  padding: 0.32rem 0.55rem;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.52rem;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper-2);
}

.status-pill::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
}

.status-pill[data-tone="open"] {
  border-color: rgba(225, 6, 0, 0.55);
  color: #ffb3af;
}

.status-pill[data-tone="open"]::before {
  background: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
}

.status-pill[data-tone="closed"]::before {
  background: var(--paper-2);
}

.status-pill[data-tone="cleared"] {
  border-color: rgba(244, 239, 230, 0.3);
}

.status-pill[data-tone="cleared"]::before {
  background: var(--paper);
}

.status-pill[data-tone="context"]::before {
  background: var(--muted);
}

.session-block {
  padding: 1.2rem;
  border-top: 1px solid var(--line);
}

.session-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.session-head h3 {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  cursor: pointer;
  transition: color 0.2s ease;
}

.text-button:hover:not(:disabled) {
  color: var(--red);
}

.text-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.session-trail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.session-empty {
  font-size: 0.72rem;
  color: var(--muted-2);
}

.trail-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--line);
  background: var(--ink-3);
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.02em;
  color: var(--paper-2);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.trail-chip:hover {
  border-color: var(--red);
  color: var(--paper);
  background: var(--red-soft);
}

.trail-chip span {
  color: var(--red);
}

.catalog-head {
  align-items: end;
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-block: 1px solid var(--line);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.filter-button {
  padding: 0.55rem 0.7rem;
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.filter-button span {
  margin-left: 0.25rem;
  color: var(--muted-2);
}

.filter-button:hover {
  color: var(--paper);
}

.filter-button.is-active {
  border-color: var(--red);
  background: var(--red);
  color: var(--paper);
}

.filter-button.is-active span {
  color: rgba(244, 239, 230, 0.7);
}

.toolbar-fields {
  display: flex;
  gap: 0.5rem;
}

.search-field {
  position: relative;
  display: flex;
  align-items: center;
  min-width: min(22rem, 60vw);
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.2s ease;
}

.search-field:focus-within {
  border-color: var(--red);
}

.search-field svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.6;
}

.search-field input {
  width: 100%;
  padding: 0.6rem 0.5rem;
  border: 0;
  background: transparent;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.02em;
}

.search-field input::placeholder {
  color: var(--muted-2);
}

.search-field input:focus {
  outline: 0;
}

.sort-field select {
  min-height: 2.4rem;
  padding: 0 1.8rem 0 0.6rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background-color: var(--ink-2);
  color: var(--paper-2);
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.catalog-status {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 0 1.5rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.catalog-status > span:first-child {
  color: var(--paper);
}

.catalog-status-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.case-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 22rem;
  padding: 1.3rem;
  background: var(--ink);
  overflow: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

.case-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color 0.3s ease;
}

.case-card:hover {
  background: var(--ink-3);
}

.case-card:hover::before {
  border-color: var(--red);
}

.case-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2.2rem;
}

.case-card-number {
  font-family: var(--display);
  font-size: 3.4rem;
  line-height: 0.75;
  color: transparent;
  -webkit-text-stroke: 1px var(--muted-2);
  transition: color 0.3s ease, -webkit-text-stroke-color 0.3s ease;
}

.case-card:hover .case-card-number {
  color: var(--red);
  -webkit-text-stroke-color: var(--red);
}

.case-card-meta {
  text-align: right;
  font-family: var(--mono);
  font-size: 0.5rem;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.case-card-meta span {
  display: block;
}

.case-card-meta span:first-child {
  color: var(--muted);
}

.case-card h3 {
  max-width: 15ch;
  font-family: var(--display);
  font-size: clamp(1.65rem, 2.6vw, 2.25rem);
  line-height: 0.93;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.case-card:hover h3 {
  color: var(--red);
}

.case-card p {
  max-width: 38ch;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.65;
}

.case-card-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.5rem;
}

.case-card-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line);
  color: var(--paper);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease);
}

.case-card-arrow svg {
  width: 0.9rem;
  height: 0.9rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.case-card:hover .case-card-arrow {
  border-color: var(--red);
  background: var(--red);
  transform: translate(2px, -2px);
}

.empty-state {
  padding: 4rem 1rem;
  border: 1px dashed var(--line-strong);
  text-align: center;
}

.empty-state .mono {
  color: var(--red);
}

.empty-state h3 {
  margin-top: 0.8rem;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.empty-state p {
  margin: 0.8rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.timeline-section {
  border-top: 1px solid var(--line);
}

.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 1.5rem clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}

.timeline-item:hover {
  background: var(--ink-2);
}

.timeline-year {
  font-family: var(--display);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 0.8;
  color: var(--red);
}

.timeline-title {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.timeline-text {
  max-width: 60ch;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.legal {
  max-width: none;
  padding-inline: var(--gutter);
  background: var(--paper);
  color: var(--ink);
}

.legal > * {
  max-width: var(--max);
  margin-inline: auto;
}

.legal .section-kicker {
  color: rgba(10, 10, 10, 0.58);
}

.legal .section-kicker span {
  color: var(--red);
}

.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 7vw, 8rem);
  align-items: start;
}

.legal-copy h2 {
  font-family: var(--display);
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.legal-copy h2 em {
  font-style: normal;
  color: var(--red);
}

.legal-copy > p:not(.section-kicker) {
  max-width: 44ch;
  margin-top: 1.8rem;
  color: rgba(10, 10, 10, 0.7);
  font-size: 0.9rem;
  line-height: 1.75;
}

.legal-copy .button {
  margin-top: 1.8rem;
  border-color: rgba(10, 10, 10, 0.25);
  color: var(--ink);
}

.legal-copy .button:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.legal-list {
  border-top: 1px solid var(--black-line);
}

.legal-item {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--black-line);
}

.legal-tag {
  font-family: var(--mono);
  font-size: 0.55rem;
  color: var(--red);
}

.legal-item h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1;
  text-transform: uppercase;
}

.legal-item p {
  margin-top: 0.35rem;
  color: rgba(10, 10, 10, 0.62);
  font-size: 0.74rem;
  line-height: 1.55;
}

.legal-quote {
  margin-top: clamp(3rem, 7vw, 6rem);
  padding: clamp(1.8rem, 4vw, 3rem);
  background: var(--ink);
  color: var(--paper);
  border-left: 4px solid var(--red);
}

.legal-quote p {
  max-width: 40ch;
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 0.98;
  text-transform: uppercase;
}

.legal-quote footer {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.5rem;
  font-size: 0.7rem;
  color: var(--muted);
}

.legal-quote footer .mono {
  color: var(--red);
}

.sources {
  border-top: 1px solid var(--line);
}

.sources-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.source-link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 8.5rem;
  padding: 1.1rem;
  background: var(--ink);
  transition: background 0.25s ease;
}

.source-link:hover {
  background: var(--red);
}

.source-link .mono {
  color: var(--red);
  transition: color 0.25s ease;
}

.source-link:hover .mono {
  color: var(--paper);
}

.source-link strong {
  max-width: 16ch;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--paper-2);
}

.source-link:hover strong {
  color: var(--paper);
}

.source-arrow {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--muted-2);
  transition: color 0.25s ease, transform 0.25s ease;
}

.source-link:hover .source-arrow {
  color: var(--paper);
  transform: translate(2px, -2px);
}

.sources-note {
  max-width: 85ch;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.7;
}

.sources-note strong {
  color: var(--paper);
}

.site-footer {
  padding: clamp(3rem, 6vw, 5rem) var(--gutter) 1.5rem;
  border-top: 1px solid var(--red);
  background: var(--ink-2);
}

.footer-top,
.footer-grid,
.footer-bottom {
  max-width: var(--max);
  margin-inline: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.footer-statement {
  max-width: 30ch;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.footer-top-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-top-link:hover {
  color: var(--paper);
}

.footer-top-link span {
  color: var(--red);
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.7fr 0.7fr 1.6fr;
  gap: 2rem;
  padding: 2.5rem 0;
}

.footer-grid h3 {
  margin-bottom: 0.8rem;
  color: var(--red);
}

.footer-grid a {
  display: block;
  width: fit-content;
  margin: 0.35rem 0;
  color: var(--muted);
  font-size: 0.78rem;
  transition: color 0.2s ease;
}

.footer-grid a:hover {
  color: var(--paper);
}

.footer-note p {
  max-width: 55ch;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.7;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.case-dialog {
  width: min(1080px, calc(100% - 2rem));
  max-height: min(92vh, 980px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--ink-2);
  color: var(--paper);
  box-shadow: 0 3rem 9rem rgba(0, 0, 0, 0.7);
}

.case-dialog::backdrop {
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.case-dialog[open] {
  animation: dialog-in 0.35s var(--ease) both;
}

.modal-shell {
  position: relative;
  max-height: inherit;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-close {
  position: sticky;
  top: 0;
  z-index: 10;
  float: right;
  width: 3rem;
  height: 3rem;
  margin: 0;
  border: 0;
  border-left: 1px solid rgba(244, 239, 230, 0.25);
  border-bottom: 1px solid rgba(244, 239, 230, 0.25);
  background: var(--red);
  cursor: pointer;
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: var(--paper);
}

.modal-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 1px;
  background: var(--paper);
}

.modal-close:hover span {
  background: var(--ink);
}

.modal-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.modal-hero {
  padding: clamp(1.5rem, 4vw, 3.5rem);
  padding-right: clamp(3.5rem, 6vw, 5rem);
  background:
    linear-gradient(120deg, rgba(225, 6, 0, 0.24), transparent 55%),
    var(--ink-3);
  border-bottom: 1px solid var(--line);
}

.modal-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.modal-topline .modal-number {
  color: var(--red);
}

.modal-topline .modal-period {
  padding-left: 0.8rem;
  border-left: 1px solid var(--line);
}

.modal-hero h2 {
  max-width: 16ch;
  font-family: var(--display);
  font-size: clamp(2.8rem, 6.5vw, 6rem);
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.modal-hero .status-pill {
  margin-top: 1.5rem;
}

.modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(1.5rem, 4vw, 3.5rem);
}

.modal-main > section + section,
.modal-aside > section + section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.modal-section h3,
.modal-aside h3 {
  margin-bottom: 0.7rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}

.modal-section p,
.modal-aside p {
  color: var(--paper-2);
  font-size: 0.88rem;
  line-height: 1.75;
}

.modal-lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem) !important;
  color: var(--paper) !important;
}

.modal-chronology {
  margin: 0;
  padding: 0;
  list-style: none;
}

.modal-chronology li {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.modal-chronology li:last-child {
  border-bottom: 0;
}

.modal-chronology time {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red);
}

.modal-chronology p {
  font-size: 0.8rem;
  line-height: 1.6;
}

.modal-people {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.person-chip {
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.02em;
  color: var(--paper-2);
}

.connection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.connection-card {
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  background: rgba(244, 239, 230, 0.025);
}

.connection-card span {
  display: block;
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}

.connection-card p {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  line-height: 1.65;
}

.damage-card {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  background: linear-gradient(120deg, var(--red-soft), rgba(244, 239, 230, 0.02));
}

.damage-kicker {
  display: block;
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}

.damage-card strong {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--paper);
}

.damage-card p {
  margin-top: 0.55rem;
  font-size: 0.78rem;
  line-height: 1.65;
}

.evidence-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.evidence-list li {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.evidence-list li:last-child {
  border-bottom: 0;
}

.evidence-list strong {
  font-family: var(--mono);
  font-size: 0.52rem;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
}

.evidence-list span {
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--paper-2);
}

.editorial-note {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  background: var(--ink-3);
}

.editorial-note p {
  font-size: 0.86rem;
  line-height: 1.75;
  color: var(--paper);
}

.person-list {
  display: grid;
  gap: 0.55rem;
}

.person-card {
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--line);
  background: rgba(244, 239, 230, 0.025);
}

.person-card strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--paper);
}

.person-card span {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--red);
}

.person-card p {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  line-height: 1.55;
}

.person-card .person-status {
  font-family: var(--mono);
  font-size: 0.56rem;
  line-height: 1.5;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}

.modal-people-secondary {
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
}

.modal-sources {
  margin: 0;
  padding: 0;
  list-style: none;
}

.modal-sources li + li {
  margin-top: 0.55rem;
}

.modal-sources a {
  display: block;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.modal-sources a:hover {
  border-color: var(--red);
  background: var(--red-soft);
}

.modal-sources span {
  display: block;
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
}

.modal-sources strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--paper-2);
}

.modal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem clamp(1.5rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
  background: var(--ink);
}

.modal-footer .mono {
  color: var(--muted-2);
}

.modal-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.toast {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 120;
  max-width: min(24rem, calc(100% - 2.4rem));
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--paper);
  background: var(--red);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.6rem;
  line-height: 1.5;
  letter-spacing: 0.03em;
  transform: translateY(150%);
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s ease;
  pointer-events: none;
}

.toast.is-visible {
  transform: none;
  opacity: 1;
}

.noscript {
  position: fixed;
  inset: auto 1rem 1rem;
  z-index: 130;
  padding: 1rem;
  background: var(--red);
  color: var(--paper);
  font-size: 0.8rem;
}

body.dialog-open {
  overflow: hidden;
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--red-soft); }
  50% { box-shadow: 0 0 0 7px rgba(225, 6, 0, 0.05); }
}

@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(14px) scale(0.99); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1180px) {
  .header-meta {
    display: none;
  }

  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(250px, 0.85fr);
    gap: 2.5rem;
  }

  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sources-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 68px;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem var(--gutter) 1rem;
    border-bottom: 1px solid var(--line);
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.35);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.7rem;
  }

  .primary-nav a:last-child {
    border-bottom: 0;
  }

  .menu-toggle {
    display: block;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .hero-portrait {
    width: min(78vw, 390px);
    justify-self: start;
    margin-left: 1.5rem;
  }

  .hero-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.2rem;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .method-grid {
    grid-template-columns: 1fr;
  }

  .method-card {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .method-card:last-child {
    border-bottom: 0;
  }

  .method-number {
    margin-bottom: 1.5rem;
  }

  .discovery-grid {
    grid-template-columns: 1fr;
  }

  .wheel-stage {
    max-width: 600px;
    margin-inline: auto;
  }

  .discovery-panel {
    min-height: auto;
  }

  .draw-result {
    min-height: 20rem;
  }

  .catalog-toolbar {
    align-items: stretch;
  }

  .toolbar-fields {
    width: 100%;
  }

  .search-field {
    flex: 1;
    min-width: 0;
  }

  .timeline-item {
    grid-template-columns: 5rem minmax(0, 1fr);
  }

  .timeline-text {
    grid-column: 2;
  }

  .legal-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: auto 1fr;
  }

  .footer-top-link {
    grid-column: 2;
    justify-self: start;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-note {
    grid-column: 1 / -1;
  }

  .modal-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .hero {
    padding-top: 2.5rem;
  }

  .hero-title {
    font-size: clamp(3.5rem, 17vw, 6rem);
  }

  .hero-title-outline {
    -webkit-text-stroke-width: 1px;
  }

  .eyebrow {
    gap: 0.8rem;
  }

  .eyebrow span:last-child {
    padding-left: 0.8rem;
  }

  .hero-stats {
    gap: 1.2rem 2rem;
  }

  .hero-stats div {
    flex-direction: column;
    gap: 0.2rem;
  }

  .hero-portrait {
    width: min(84vw, 340px);
    margin-left: 0.7rem;
  }

  .portrait-stamp {
    left: -0.8rem;
    width: 5.5rem;
    height: 5.5rem;
  }

  .portrait-stamp strong {
    font-size: 1.8rem;
  }

  .ticker {
    transform: rotate(-1.5deg) scale(1.04);
  }

  .section-head h2 {
    font-size: clamp(2.9rem, 14vw, 4.5rem);
  }

  .case-grid {
    grid-template-columns: 1fr;
  }

  .case-card {
    min-height: 20rem;
  }

  .filter-group {
    gap: 0.2rem;
  }

  .filter-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.45rem 0.55rem;
    font-size: 0.52rem;
  }

  .toolbar-fields {
    flex-direction: column;
  }

  .search-field {
    min-width: 100%;
    min-height: 2.75rem;
  }

  .search-field input {
    min-height: 2.75rem;
    padding-block: 0;
  }

  .sort-field select {
    width: 100%;
    min-height: 2.75rem;
  }

  .trail-chip,
  .session-head .text-button {
    min-height: 2.75rem;
  }

  .session-head .text-button {
    min-width: 2.75rem;
    padding-inline: 0.25rem;
  }

  .trail-chip {
    padding-block: 0.55rem;
  }

  .catalog-status {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .catalog-status-line {
    display: none;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    padding: 1.2rem 0;
  }

  .timeline-year {
    font-size: 2.2rem;
  }

  .timeline-text {
    grid-column: auto;
  }

  .legal-quote footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.3rem;
  }

  .sources-grid {
    grid-template-columns: 1fr;
  }

  .source-link {
    min-height: 6.5rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .footer-top-link {
    grid-column: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-note {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.4rem;
  }

  .modal-hero {
    padding: 1.4rem;
    padding-right: 3.8rem;
  }

  .modal-hero h2 {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .modal-body {
    padding: 1.4rem;
  }

  .connection-grid {
    grid-template-columns: 1fr;
  }

  .evidence-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .modal-chronology li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .modal-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 1rem 1.4rem;
  }

  .wheel-hint {
    margin-top: 1.3rem;
  }

  .wheel-button {
    border-width: 5px;
  }

  .wheel-button-label {
    font-size: 1rem;
  }
}

@media (max-width: 420px) {
  .brand-type {
    display: none;
  }

  .hero-title {
    font-size: 3.2rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-stats dt {
    font-size: 1.7rem;
  }

  .draw-empty {
    padding: 1.2rem;
  }

  .draw-card-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .wheel-rotor {
    transition: none;
  }
}
