:root {
  --ink: #1a1412;
  --paper: #f6efe4;
  --burgundy: #5c1a32;
  --deep: #2a0c16;
  --green: #3f5e3a;
  --gold: #c4a35a;
  --cream: #e4d6c4;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Figtree", "Avenir Next", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --space: 8px;
  --max: 1180px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 0.4em;
}

h1 { font-size: clamp(3rem, 7vw, 5.6rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.02em; }

p { margin: 0 0 1em; max-width: 62ch; }
.foot p, .overlay__mark p, .hero__photo figcaption { max-width: none; }
a { color: inherit; }

.mono {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.kicker { color: var(--gold); margin-bottom: 12px; }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--gold);
  color: var(--deep);
  padding: 8px 16px;
  z-index: 20;
}
.skip:focus { left: 8px; }

.mast {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px 32px;
  background: var(--deep);
  color: var(--paper);
}
.mast__brand { display: flex; align-items: center; gap: 10px; }
.mast__brand p, .mast__case { margin: 0; }
.mast__nav { display: flex; gap: 22px; }
.mast__nav a { text-decoration: none; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; }
.mast__nav a:hover { color: var(--gold); }
.mast__case { justify-self: end; color: var(--gold); }
.stamp-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--deep), 0 0 0 4px var(--gold);
}

.ticker {
  overflow: hidden;
  background: var(--gold);
  color: var(--deep);
  border-bottom: 3px solid var(--deep);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: tick 28s linear infinite;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 8px 0;
}
.ticker__track span { padding-right: 0; white-space: nowrap; }

@keyframes tick {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) 1.2fr;
  gap: 40px;
  align-items: end;
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 32px 96px;
}
.hero h1 em { font-style: italic; color: var(--burgundy); }
.lede { font-size: 1.15rem; max-width: 38ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.meta-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--cream);
}
.meta-row dt { margin: 0 0 6px; color: var(--green); }
.meta-row dd { margin: 0; font-family: var(--display); font-size: 1.25rem; font-weight: 700; }

.hero__photo {
  margin: 0;
  background: var(--deep);
  padding: 12px 12px 0;
  box-shadow: 8px 8px 0 var(--deep);
  outline: 1px solid var(--deep);
}
.hero__photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 58% 38%;
}
.hero__photo figcaption {
  color: var(--cream);
  padding: 12px 4px 14px;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid var(--deep);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms var(--ease), background 180ms var(--ease);
}
.btn:hover { transform: translate(-2px, -2px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn--gold { background: var(--gold); color: var(--deep); }
.btn--ghost { background: transparent; color: var(--ink); }

.evidence {
  background: var(--burgundy);
  color: var(--paper);
  padding: 96px 32px;
}
.section-head { max-width: var(--max); margin: 0 auto 48px; }
.section-head h2 { max-width: 16ch; }
.evidence__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.exhibit {
  background: var(--deep);
  padding: 28px;
  border-left: 4px solid var(--gold);
}
.exhibit p.mono { color: var(--gold); margin-bottom: 16px; }
.exhibit p { max-width: none; color: var(--cream); }

.findings {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 32px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.score { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.score li {
  display: grid;
  grid-template-columns: 160px 1fr 40px;
  grid-template-areas: "label bar num";
  gap: 16px;
  align-items: center;
}
.score__label { font-weight: 600; grid-area: label; }
.score__bar {
  height: 10px;
  background: var(--cream);
  position: relative;
  grid-area: bar;
}
.score__bar i {
  display: block;
  height: 100%;
  width: var(--v);
  background: var(--burgundy);
}
.score .mono { text-align: right; grid-area: num; }

.protocol {
  background: var(--deep);
  color: var(--paper);
  padding: 96px 32px 112px;
}
.protocol h2, .protocol .kicker, .protocol ol { max-width: var(--max); margin-left: auto; margin-right: auto; }
.protocol h2 { margin-bottom: 48px; }
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  border-top: 2px solid var(--gold);
  padding-top: 20px;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  letter-spacing: 0.12em;
  color: var(--gold);
  display: block;
  margin-bottom: 16px;
  font-size: 0.72rem;
}

.verdict { padding: 96px 32px 120px; }
.verdict__paper {
  max-width: 760px;
  margin: 0 auto 0 32px;
  background: var(--paper);
  border: 2px solid var(--deep);
  box-shadow: 12px 12px 0 var(--burgundy);
  padding: 48px 48px 40px;
  position: relative;
}
.verdict__paper h2 { padding-right: 108px; }
.verdict__paper::after {
  content: "VIO-001";
  position: absolute;
  right: 28px;
  top: 36px;
  bottom: auto;
  width: 92px;
  height: 92px;
  border: 3px solid var(--burgundy);
  border-radius: 50%;
  color: var(--burgundy);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  display: grid;
  place-items: center;
  transform: rotate(-18deg);
  opacity: 0.85;
  pointer-events: none;
}
.verdict .sign { margin-top: 24px; color: var(--green); }
.verdict__row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.foot {
  background: var(--burgundy);
  color: var(--cream);
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.foot p { margin: 0; }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(42, 12, 22, 0.55);
  display: grid;
  place-items: center;
  z-index: 30;
}
.overlay[hidden] { display: none; }
.overlay__mark {
  width: min(420px, 86vw);
  aspect-ratio: 1;
  border: 8px solid var(--gold);
  border-radius: 50%;
  background: var(--deep);
  color: var(--gold);
  display: grid;
  place-content: center;
  text-align: center;
  transform: rotate(-12deg);
  box-shadow: 0 0 0 12px var(--deep);
}
.overlay__mark p { margin: 0; max-width: none; }
.overlay__mark .mono { font-size: 1.4rem; letter-spacing: 0.28em; }

@media (max-width: 900px) {
  .mast { grid-template-columns: 1fr; }
  .mast__case { justify-self: start; }
  .hero, .findings, .evidence__grid, .steps {
    grid-template-columns: 1fr;
  }
  .exhibit:first-child { grid-row: auto; }
  .score li {
    grid-template-columns: 1fr 40px;
    grid-template-areas:
      "label num"
      "bar bar";
  }
  .verdict__paper { margin: 0; }
  .hero__photo img {
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: var(--deep);
  }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .mast, .hero, .evidence, .findings, .protocol, .verdict { padding-left: 20px; padding-right: 20px; }
  .hero { padding-top: 40px; padding-bottom: 56px; }
  .evidence, .findings, .protocol, .verdict { padding-top: 56px; padding-bottom: 64px; }
  .mast__nav { flex-wrap: wrap; gap: 12px 18px; }
  .meta-row { grid-template-columns: 1fr; }
  .verdict__paper { padding: 32px 24px; }
  .verdict__paper h2 { padding-right: 84px; }
  .verdict__paper::after { width: 72px; height: 72px; right: 16px; top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track { animation: none; }
  .btn { transition: none; }
}
