:root {
  --ink: #111111;
  --paper: #fbfaf5;
  --paper-2: #f2f0e8;
  --muted: #5d5d58;
  --line: #171717;
  --accent: #b11717;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.35;
}

a {
  color: inherit;
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 28px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.7rem;
  font-weight: 950;
}

nav {
  display: flex;
  gap: 14px;
  align-items: center;
  white-space: nowrap;
}

nav a {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-decoration: none;
}

nav a:hover,
nav a:focus,
nav a[aria-current="true"] {
  color: var(--accent);
  outline: none;
}

.deck {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 56px 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.72fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 24px 50px;
  align-items: center;
  width: 100%;
  height: calc(100vh - 56px);
  padding: 44px 68px 104px;
  overflow: hidden;
  background: var(--paper);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(30px);
  transition: opacity 180ms ease, transform 240ms ease, visibility 180ms ease;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.slide.is-exiting-back {
  transform: translateX(-30px);
}

.copy {
  min-width: 0;
}

.kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
  letter-spacing: 0;
}

h1,
h2 {
  max-width: 980px;
  font-size: clamp(2.85rem, 4.45vw, 5.3rem);
  line-height: 0.98;
  font-weight: 950;
  word-break: keep-all;
  overflow-wrap: normal;
}

.lead {
  max-width: 760px;
  margin-top: 18px;
  color: var(--ink);
  font-size: clamp(1.14rem, 1.5vw, 1.42rem);
  font-weight: 820;
  word-break: keep-all;
}

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

.triad article {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 158px;
  padding: 20px 20px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.2);
}

b {
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 950;
  text-transform: uppercase;
}

.triad span {
  color: var(--ink);
  font-size: clamp(1.18rem, 1.42vw, 1.55rem);
  line-height: 1.18;
  font-weight: 900;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.visual {
  min-width: 0;
  margin: 0;
}

.visual img {
  display: block;
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
  background: #fffdf7;
  border: 1px solid var(--line);
}

.visual figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
}

.evidence-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  list-style: none;
}

.evidence-row li {
  min-height: 104px;
  padding: 16px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.evidence-row strong {
  display: block;
  color: var(--ink);
  font-size: clamp(1.8rem, 2.55vw, 3.05rem);
  line-height: 0.95;
  font-weight: 950;
}

.evidence-row span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
  text-transform: uppercase;
}

.link-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
}

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

.deck-controls {
  position: fixed;
  right: 20px;
  bottom: 18px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 950;
  cursor: pointer;
}

.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.34;
}

.slide-status {
  display: grid;
  min-width: 126px;
  text-align: center;
}

.slide-status span:first-child {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 950;
}

.slide-status span:last-child {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

@media (max-width: 1240px) {
  nav {
    display: none;
  }

  .slide {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    align-content: start;
    overflow: auto;
    padding: 32px 30px 110px;
  }

  .visual img {
    max-height: none;
  }
}

@media (max-width: 780px) {
  .topbar {
    height: 52px;
    padding: 0 16px;
  }

  .brand {
    font-size: 0.82rem;
  }

  .slide {
    inset: 52px 0 0;
    height: calc(100vh - 52px);
    padding: 24px 18px 154px;
  }

  h1,
  h2 {
    font-size: 2.3rem;
  }

  .triad,
  .evidence-row {
    grid-template-columns: 1fr;
  }

  .deck-controls {
    right: 12px;
    left: 12px;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slide {
    transition: none;
  }
}
