:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #11100f;
  --panel-strong: #171311;
  --ink: #f5eee5;
  --muted: #b9ada0;
  --dim: #7f746b;
  --ember: #f06d2f;
  --acid: #a8ff60;
  --blood: #b51f32;
  --gold: #ffc857;
  --line: rgba(245, 238, 229, 0.16);
  --shadow: rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 5px),
    linear-gradient(135deg, #050505 0%, #130d0a 42%, #090909 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.slide-shell {
  width: min(1500px, calc(100vw - 48px));
  min-height: calc(100vh - 82px);
  margin: 0 auto;
  padding: 36px 0 96px;
}

.slide-header {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
}

.slide-kicker {
  margin: 0;
  color: var(--acid);
  font-family: "Courier New", ui-monospace, monospace;
  font-size: clamp(0.72rem, 1.2vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.slide-title {
  max-width: 1100px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.9rem, 4.6vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

.slide-subtitle {
  max-width: 860px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.45vw, 1.25rem);
  line-height: 1.4;
}

.title-slide {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.title-slide__image,
.title-slide__veil {
  position: absolute;
  inset: 0;
}

.title-slide__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.15) brightness(0.58) saturate(0.75);
}

.title-slide__veil {
  background:
    linear-gradient(0deg, rgba(5, 5, 5, 0.96) 0%, rgba(5, 5, 5, 0.42) 52%, rgba(5, 5, 5, 0.8) 100%),
    repeating-linear-gradient(90deg, rgba(168, 255, 96, 0.08) 0 1px, transparent 1px 88px);
}

.title-slide__content {
  position: relative;
  z-index: 1;
  width: min(1260px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 0 0 110px;
}

.title-slide__headline {
  max-width: 980px;
  margin: 8px 0 18px;
  color: var(--ink);
  font-size: clamp(3.4rem, 10.5vw, 9.8rem);
  line-height: 0.8;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 14px 60px var(--shadow);
}

.title-slide__subtitle {
  max-width: 760px;
  margin: 0;
  color: var(--gold);
  font-size: clamp(1rem, 1.75vw, 1.55rem);
  line-height: 1.25;
}

.title-slide__sigils {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.title-slide__sigils span {
  width: 48px;
  height: 6px;
  background: var(--blood);
  box-shadow: 0 0 18px rgba(181, 31, 50, 0.75);
}

.overview-layout,
.evidence-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: 24px;
  align-items: start;
}

.overview-note,
.evidence-analysis,
.media-frame {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 16, 15, 0.88);
  box-shadow: 0 24px 80px var(--shadow);
}

.overview-note {
  padding: 28px;
}

.overview-note h2,
.analysis-section__toggle {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.overview-note p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.55;
}

.overview-note p:last-child {
  margin-bottom: 0;
}

.toc-list {
  display: grid;
  gap: 9px;
}

.toc-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 128px 136px;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 13, 11, 0.86);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.toc-row:hover,
.toc-row:focus-visible {
  transform: translateX(5px);
  border-color: rgba(168, 255, 96, 0.6);
  background: rgba(31, 22, 17, 0.94);
}

.toc-row__rank {
  color: var(--ember);
  font-family: "Courier New", ui-monospace, monospace;
  font-weight: 800;
}

.toc-row__title {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.toc-row__score {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: right;
}

.toc-row__score b {
  color: var(--ink);
}

.evidence-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(390px, 0.8fr);
}

.evidence-media-stack {
  display: grid;
  gap: 18px;
}

.media-frame {
  overflow: hidden;
}

.media-frame object,
.media-frame video {
  display: block;
  width: 100%;
  height: min(62vh, 740px);
  border: 0;
  background: #050505;
}

.media-frame video {
  object-fit: contain;
}

.media-frame figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 8px;
}

.image-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #070707;
}

.evidence-analysis {
  padding: 18px;
}

.score-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.score-card {
  min-height: 96px;
  padding: 14px;
  border: 1px solid rgba(240, 109, 47, 0.34);
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.55);
}

.score-card--wide {
  grid-column: 1 / -1;
  min-height: 72px;
}

.score-card__label {
  display: block;
  color: var(--dim);
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.score-card__value {
  display: block;
  margin-top: 6px;
  color: var(--acid);
  font-size: clamp(1.85rem, 3.6vw, 3.35rem);
  line-height: 0.92;
}

.score-card__value--text {
  color: var(--gold);
  font-size: clamp(1.3rem, 2.15vw, 1.95rem);
}

.analysis-section {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.analysis-section__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.analysis-section__toggle:hover,
.analysis-section__toggle:focus-visible {
  color: var(--acid);
}

.analysis-section__icon {
  width: 10px;
  height: 10px;
  margin-left: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}

.analysis-section--collapsed .analysis-section__icon {
  transform: rotate(-45deg);
}

.analysis-section--collapsed .analysis-section__content {
  display: none;
}

.analysis-section ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.analysis-section li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.42;
}

.analysis-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  background: var(--ember);
  transform: rotate(45deg);
}

.source-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.source-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(168, 255, 96, 0.34);
  border-radius: 6px;
  color: var(--acid);
  background: rgba(168, 255, 96, 0.06);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.source-link:hover,
.source-link:focus-visible {
  border-color: var(--acid);
  background: rgba(168, 255, 96, 0.13);
}

.deck-nav {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.78);
  box-shadow: 0 18px 70px var(--shadow);
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}

.deck-nav__button,
.deck-nav__toc,
.deck-nav__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 38px;
  border-radius: 6px;
  text-decoration: none;
}

.deck-nav__button,
.deck-nav__toc {
  border: 1px solid rgba(245, 238, 229, 0.18);
  background: rgba(245, 238, 229, 0.07);
  color: var(--ink);
  font-weight: 900;
}

.deck-nav__toc,
.deck-nav__count {
  padding: 0 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.deck-nav__button:hover,
.deck-nav__toc:hover,
.deck-nav__button:focus-visible,
.deck-nav__toc:focus-visible {
  border-color: var(--ember);
  color: var(--gold);
}

.deck-nav__button--disabled {
  opacity: 0.32;
}

@media (max-width: 1100px) {
  .overview-layout,
  .evidence-layout {
    grid-template-columns: 1fr;
  }

  .media-frame object,
  .media-frame video {
    height: 58vh;
  }
}

@media (max-width: 720px) {
  .slide-shell {
    width: min(100vw - 24px, 1500px);
    padding-top: 24px;
  }

  .title-slide__content {
    width: calc(100vw - 24px);
  }

  .toc-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .toc-row__score {
    text-align: left;
  }

  .image-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .deck-nav {
    width: calc(100vw - 24px);
    justify-content: center;
  }
}
