:root {
  color-scheme: dark;
  --bg: #080b10;
  --panel: #10151d;
  --panel-2: #151c26;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4f7fb;
  --muted: #a9b3c2;
  --blue: #4d91ff;
  --orange: #f7a52d;
  --cyan: #78dcf2;
  --max: 1500px;
  --topbar-height: 72px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-height) + 18px);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 10% -10%, rgba(77, 145, 255, 0.13), transparent 30rem),
    radial-gradient(circle at 90% 0%, rgba(247, 165, 45, 0.1), transparent 32rem),
    var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

button,
select,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 1000;
  background: #fff;
  color: #000;
  padding: 0.8rem 1rem;
  border-radius: 0.5rem;
}

.skip-link:focus {
  top: 1rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--topbar-height);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem clamp(1rem, 3vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 11, 16, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  flex-direction: column;
  min-width: 13rem;
}

.brand strong {
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.brand span {
  color: var(--muted);
  font-size: 0.76rem;
}

.progress-track {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
}

.progress-bar {
  width: 6.67%;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  border-radius: inherit;
  transition: width 180ms ease;
}

.deck-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.counter {
  min-width: 4.4rem;
  color: var(--muted);
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: 0.84rem;
}

.control,
.jump-select,
.source-link,
.download-link,
.full-size-link {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.control {
  min-width: 44px;
  padding: 0 0.9rem;
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
}

.control:hover,
.control:active {
  background: #202a38;
}

.jump-select {
  max-width: 12rem;
  padding: 0 2.2rem 0 0.9rem;
  color: var(--text);
  background: var(--panel-2);
}

.hero {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 7rem) clamp(1rem, 4vw, 4rem) clamp(2.5rem, 5vw, 5rem);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 7.4rem);
  line-height: 0.93;
  letter-spacing: -0.055em;
}

.hero h1 em {
  color: var(--orange);
  font-style: normal;
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(17rem, 0.6fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-top: clamp(2rem, 5vw, 4.5rem);
}

.hero-copy > p {
  max-width: 760px;
  margin: 0;
  color: #dce3ed;
  font-size: clamp(1.08rem, 2vw, 1.55rem);
  line-height: 1.5;
}

.warning {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(247, 165, 45, 0.45);
  border-radius: 1rem;
  background: rgba(247, 165, 45, 0.09);
  color: #ffddab;
  font-size: 0.88rem;
  line-height: 1.45;
}

.deck {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 3rem) 5rem;
}

.slide {
  min-height: calc(100svh - var(--topbar-height));
  display: flex;
  align-items: center;
  padding: clamp(2rem, 6vh, 5rem) 0;
  scroll-margin-top: calc(var(--topbar-height) + 10px);
}

.slide-shell {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(1rem, 2.5vw, 2.5rem);
  align-items: center;
}

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

.slide-visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: clamp(0.7rem, 1.5vw, 1.25rem);
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

.slide-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.full-size-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 0.85rem;
  text-decoration: none;
  white-space: nowrap;
}

.slide-notes {
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: linear-gradient(145deg, rgba(21, 28, 38, 0.96), rgba(12, 16, 22, 0.96));
}

.slide-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: var(--blue);
  color: #061128;
  font-size: 0.78rem;
  font-weight: 900;
}

.slide-notes h2 {
  margin: 1rem 0 0.7rem;
  font-size: clamp(1.3rem, 2vw, 1.85rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.takeaway {
  margin: 0;
  color: #d2d9e4;
  font-size: 0.96rem;
  line-height: 1.55;
}

.claim-box {
  margin-top: 1rem;
  padding: 0.9rem;
  border-left: 3px solid var(--orange);
  background: rgba(247, 165, 45, 0.08);
  color: #ffe1b2;
  font-size: 0.86rem;
  line-height: 1.45;
}

.source-heading {
  margin: 1.2rem 0 0.6rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.source-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.035);
  color: #e8edf5;
  text-decoration: none;
  font-size: 0.82rem;
  line-height: 1.25;
}

.source-link::after {
  content: "↗";
  color: var(--cyan);
  font-weight: 900;
}

.source-link:hover,
.source-link:active {
  border-color: rgba(120, 220, 242, 0.6);
  background: rgba(120, 220, 242, 0.08);
}

.source-tier {
  display: block;
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.67rem;
}

.source-spine {
  width: min(1180px, calc(100% - 2rem));
  margin: 2rem auto 6rem;
  padding: clamp(1.2rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--panel);
}

.source-spine h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.5rem);
  letter-spacing: -0.045em;
}

.source-spine > p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.55;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.tier-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--panel-2);
}

.tier-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.tier-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.master-sources {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.downloads {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.downloads h3 {
  margin: 0 0 0.8rem;
}

.download-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.download-link {
  display: inline-flex;
  align-items: center;
  padding: 0 1rem;
  background: #fff;
  color: #0a0e14;
  font-weight: 750;
  text-decoration: none;
}

.download-link:hover,
.download-link:active {
  background: #dfe7f2;
}

.site-footer {
  padding: 2rem 1rem 5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 0.8rem;
}

@media (max-width: 980px) {
  :root {
    --topbar-height: 66px;
  }

  .brand span,
  .jump-select {
    display: none;
  }

  .brand {
    min-width: 10rem;
  }

  .slide {
    min-height: auto;
    padding: 2.5rem 0;
  }

  .slide-shell {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .slide-notes {
    width: min(100%, 760px);
    margin: 0 auto;
  }
}

@media (max-width: 720px) {
  :root {
    --topbar-height: 116px;
  }

  .topbar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.55rem 0.75rem;
    min-height: var(--topbar-height);
    padding: 0.65rem 0.8rem;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .progress-track {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }

  .deck-controls {
    grid-column: 2;
    grid-row: 1;
  }

  .counter {
    min-width: 3.3rem;
    font-size: 0.78rem;
  }

  .control {
    padding: 0;
  }

  .control.share {
    display: none;
  }

  .hero {
    padding-top: 3.2rem;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 16vw, 4.7rem);
  }

  .hero-copy {
    grid-template-columns: 1fr;
  }

  .deck {
    padding-inline: 0.75rem;
  }

  .slide {
    padding: 1.8rem 0 2.8rem;
  }

  .slide-shell {
    gap: 0.9rem;
  }

  .slide-visual img {
    border-radius: 0.65rem;
  }

  .slide-caption {
    align-items: flex-start;
    margin-inline: 0.2rem;
  }

  .slide-notes {
    border-radius: 1rem;
  }

  .source-link {
    font-size: 0.88rem;
  }

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

  .source-spine {
    margin-bottom: 3rem;
  }
}

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

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