:root {
  --black: #040404;
  --white: #ffffff;
  --paper: #f2f2f2;
  --line: 2px;
  --accent: #d8ff63;
  --deck-index: 0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  overflow: hidden;
  background: radial-gradient(circle at 10% 10%, #1c1c1c 0%, #050505 55%);
  color: var(--black);
  font-family: "Work Sans", "Arial", sans-serif;
}

.deck-wrapper {
  width: 100%;
  height: 100dvh;
  border: 10px solid var(--black);
  background: linear-gradient(180deg, #101010 0%, #050505 100%);
}

.deck {
  width: 100%;
  height: 100%;
  transform: translate3d(0, calc(var(--deck-index) * -100dvh), 0);
  transition: transform 720ms cubic-bezier(0.2, 0.82, 0.2, 1);
}

.slide {
  width: 100%;
  height: 100dvh;
  padding: clamp(18px, 2vw, 32px);
  position: relative;
  background: linear-gradient(145deg, #0d0d0d 0%, #050505 100%);
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.22;
}

.slide-hero::after,
.slide-end::after {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: min(40vw, 420px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(216, 255, 99, 0.24) 0%,
    rgba(216, 255, 99, 0) 68%
  );
  pointer-events: none;
}

.frame {
  width: min(1240px, 100%);
  height: 100%;
  margin: 0 auto;
  background: var(--white);
  border: var(--line) solid var(--black);
  box-shadow: 0 0 0 10px var(--black);
  padding: clamp(16px, 2.1vw, 32px);
  display: grid;
  gap: clamp(12px, 1.5vw, 20px);
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: var(--line) solid var(--black);
  font-size: clamp(12px, 1vw, 14px);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.meta-row p {
  text-align: center;
}

.meta-right {
  text-align: right !important;
}

.hero-title {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero-title h1 {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(5.4rem, 15vw, 14rem);
  line-height: 0.8;
  letter-spacing: 0.01em;
}

.hero-title .mirror {
  transform: scaleY(-1) skewX(12deg);
  opacity: 0.32;
  margin-top: -8px;
}

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

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

.grid-warning {
  grid-template-columns: 80px 1fr;
}

.card {
  border: var(--line) solid var(--black);
  padding: clamp(16px, 1.8vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: space-between;
  transition: transform 260ms ease, background-color 180ms ease,
    color 180ms ease;
  background: var(--paper);
}

.card:hover {
  transform: translateY(-4px);
  background: var(--black);
  color: var(--white);
}

.card-dark {
  background: var(--black);
  color: var(--white);
}

.card-dark:hover {
  background: #141414;
}

.card-center {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.card-wide {
  height: 100%;
}

.section-id {
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(12px, 1vw, 15px);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card h2,
.card h3 {
  font-family: "Bebas Neue", Impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 0.86;
}

.card h2 {
  font-size: clamp(2.2rem, 6vw, 5.4rem);
}

.card h3 {
  font-size: clamp(1.3rem, 4vw, 2.8rem);
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.55rem);
  max-width: 720px;
}

.metric-list {
  display: grid;
  gap: 12px;
}

.metric-list p {
  line-height: 1.35;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.metric-grid > div {
  border: var(--line) solid currentColor;
  padding: 14px;
  background: rgba(0, 0, 0, 0.03);
}

.metric-grid-2 {
  grid-template-columns: 1fr 1fr;
}

.metric-value {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 0.85;
}

.bullet-list {
  display: grid;
  gap: 10px;
  list-style: none;
}

.bullet-list li {
  position: relative;
  padding-left: 20px;
  line-height: 1.3;
}

.bullet-list li::before {
  content: "■";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.8em;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.timeline > div {
  border: var(--line) solid currentColor;
  padding: 14px;
}

.timeline-step {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.9;
}

.huge {
  font-size: clamp(4.5rem, 12vw, 10rem) !important;
}

.big-num {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 0.8;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: fit-content;
}

.pill {
  display: inline-block;
  border: var(--line) solid currentColor;
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: clamp(12px, 0.95vw, 15px);
  background: transparent;
  width: fit-content;
}

.square {
  border-radius: 5px;
}

.tilt {
  transform: rotate(-12deg);
  margin-left: auto;
  background: var(--black);
  color: var(--white);
}

.split-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.warning-rail {
  border: var(--line) solid var(--black);
  background: var(--paper);
  display: grid;
  place-items: center;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.oval {
  width: min(320px, 100%);
  height: clamp(210px, 30vh, 300px);
  border-radius: 50%;
  overflow: hidden;
  border: var(--line) solid currentColor;
}

.oval.tall {
  width: min(220px, 92%);
  height: clamp(250px, 34vh, 340px);
}

.oval.portrait {
  width: min(280px, 95%);
  height: clamp(320px, 50vh, 450px);
}

.oval img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.15);
}

.statement {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 0.88;
  word-break: break-word;
}

.slide-contrast .card h2 {
  margin-top: auto;
}

.slide-end .frame {
  align-content: end;
}

.end-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: var(--line) solid var(--black);
  background: var(--paper);
  font-family: "IBM Plex Mono", monospace;
  text-align: center;
}

.end-row span {
  padding: 14px 6px;
  border-right: var(--line) solid var(--black);
  font-weight: 600;
}

.end-row span:last-child {
  border-right: none;
}

.end-row .year {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1;
}

.hud {
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  color: #f4f4f4;
  font-family: "IBM Plex Mono", monospace;
}

#counter {
  font-size: 13px;
  letter-spacing: 0.08em;
}

.hint {
  font-size: 11px;
  opacity: 0.75;
}

#dots {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid #f5f5f5;
  background: transparent;
  cursor: pointer;
}

.dot.active {
  background: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 1080px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

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

  .warning-rail {
    writing-mode: horizontal-tb;
    transform: none;
    min-height: 64px;
  }

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

  .metric-grid-2 {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  .deck-wrapper {
    border-width: 6px;
  }

  .frame {
    box-shadow: 0 0 0 6px var(--black);
  }

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

  .hud {
    right: 10px;
    gap: 8px;
  }

  .hint {
    display: none;
  }
}

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

  .card {
    transition: none;
  }
}
