:root {
  --ink: #1d1d1f;
  --mute: rgba(29, 29, 31, 0.52);
  --hair: rgba(29, 29, 31, 0.1);
  --navy: #0a2f6e;
  --gold: #8a6a3e;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --pad: clamp(2.4rem, 6.5vw, 6.5rem);
  --display: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

.one {
  font-size: 12rem;
}

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

html,
body {
  height: 100%;
  background: #f5f5f7;
  color: var(--ink);
  font-family: var(--display);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.deck {
  position: relative;
  height: 100dvh;
  width: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--pad);
  padding-bottom: calc(var(--pad) + 2.4rem);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  background: #f5f5f7;
  color: var(--ink);
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.slide.theme-light {
  --ink: #1d1d1f;
  --mute: rgba(29, 29, 31, 0.52);
  --hair: rgba(29, 29, 31, 0.1);
  --gold: #8a6a3e;
  background: #f5f5f7;
  color: var(--ink);
}

.slide.theme-navy {
  --ink: #f5f5f7;
  --mute: rgba(245, 245, 247, 0.68);
  --hair: rgba(255, 255, 255, 0.16);
  --gold: #c4a574;
  background: #0a2f6e;
  color: #f5f5f7;
}

body.is-navy-chrome .progress {
  background: rgba(255, 255, 255, 0.16);
}

body.is-navy-chrome .counter {
  color: rgba(245, 245, 247, 0.55);
}

.eyebrow,
.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
  margin-bottom: 1.4rem;
}

h1,
.h1 {
  font-size: clamp(2.8rem, 8.4vw, 7.4rem);
  font-weight: 590;
  letter-spacing: -0.055em;
  line-height: 1.05;
  max-width: 16ch;
}

h2,
.h2 {
  font-size: clamp(2.1rem, 5.4vw, 4.6rem);
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 1.16;
  max-width: 18ch;
}

.lede {
  margin-top: 1.6rem;
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
  line-height: 1.42;
  letter-spacing: -0.02em;
  color: var(--mute);
  max-width: 34ch;
}

.mute {
  color: var(--mute);
}

.gold {
  color: var(--gold);
}

.stack {
  display: grid;
  gap: 1.1rem;
}

.row {
  display: grid;
  gap: clamp(1.2rem, 3vw, 3rem);
}

.row.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

h1+.row,
h2+.row {
  margin-top: 2.2rem;
}

.row.cols-2 {
  grid-template-columns: 1.15fr 0.85fr;
}

.row.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.item .num {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
}

.item h3 {
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.28;
  margin-bottom: 0.55rem;
}

.item p {
  font-size: 0.98rem;
  line-height: 1.4;
  color: var(--mute);
  max-width: 28ch;
}

.rule {
  width: 3.2rem;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem 0 1.2rem;
  border: 0;
}

.logo {
  width: 3.4rem;
  height: auto;
  margin-bottom: 2.4rem;
  opacity: 0.92;
}

.team {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem 3.5rem;
  max-width: 52rem;
  margin-top: 0.4rem;
}

.team li {
  list-style: none;
  padding-top: 1rem;
  border-top: 1px solid var(--hair);
}

.team .who {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  font-weight: 540;
  line-height: 1.25;
}

.team .role {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: var(--mute);
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.code-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem 1.6rem;
  align-items: baseline;
  max-width: 40rem;
}

.code-row dt {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.code-row dd {
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  letter-spacing: -0.03em;
}

.path {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
  align-items: center;
  font-size: clamp(1.2rem, 2.4vw, 1.85rem);
  letter-spacing: -0.03em;
  font-weight: 540;
  line-height: 1.45;
  max-width: 28ch;
}

.path span.sep {
  color: var(--gold);
  font-weight: 400;
}

.urls {
  display: grid;
  gap: 1.1rem;
  max-width: 36rem;
}

.urls li {
  list-style: none;
  font-size: clamp(1.2rem, 2.4vw, 1.9rem);
  letter-spacing: -0.04em;
}

.urls small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}

.speaker {
  position: absolute;
  left: var(--pad);
  bottom: 1.55rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  z-index: 3;
}

.chrome {
  position: fixed;
  z-index: 20;
  pointer-events: none;
}

.progress {
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(29, 29, 31, 0.1);
}

.progress>i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold);
  transition: width 500ms var(--ease);
}

.counter {
  right: var(--pad);
  bottom: 1.45rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--mute);
  font-variant-numeric: tabular-nums;
}

.notes {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  max-height: 38vh;
  overflow: auto;
  padding: 1.3rem var(--pad) 3.4rem;
  background: rgba(8, 8, 10, 0.92);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #f5f5f7;
  font-size: 1.02rem;
  line-height: 1.55;
  transform: translateY(110%);
  transition: transform 500ms var(--ease);
}

.notes.is-open {
  transform: translateY(0);
}

.notes strong {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.45rem;
  font-weight: 500;
}

.stage {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.4rem, 3.5vw, 3.2rem);
  align-items: center;
  width: 100%;
  min-height: 0;
}

.stage-copy h1,
.stage-copy h2 {
  max-width: 14ch;
  font-size: clamp(1.85rem, 4.6vw, 3.6rem);
  line-height: 1.22;
}

.stage-copy .lede {
  margin-top: 1.1rem;
  max-width: 32ch;
}

.stage-copy .path {
  font-size: clamp(1.05rem, 1.9vw, 1.5rem);
}

.stat-hero {
  width: min(100%, 26rem);
}

.stat-num {
  font-size: clamp(5.2rem, 14vw, 8.4rem);
  font-weight: 590;
  letter-spacing: -0.07em;
  line-height: 0.88;
}

.stat-label {
  margin-top: 0.7rem;
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  letter-spacing: -0.03em;
  max-width: 16ch;
}

.cipher-stage {
  margin: 1.2rem 0 1.6rem;
  min-height: 4.4rem;
}

.cipher-name {
  font-size: clamp(1.7rem, 3.8vw, 2.8rem);
  font-weight: 560;
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.cipher-name.is-cipher {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: clamp(1.05rem, 2.1vw, 1.55rem);
  letter-spacing: 0.02em;
  word-break: break-all;
  max-width: 28ch;
  color: var(--gold);
}

.cipher-hint {
  margin-top: 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}

.slide:has([data-cipher]) h2 {
  font-size: clamp(1.85rem, 4.4vw, 3.4rem);
  max-width: 14ch;
}

.stage-ui {
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.stage-ui-stack {
  display: grid;
  gap: 0.85rem;
  width: min(100%, 28rem);
}

@media (max-width: 768px) {

  .row.cols-3,
  .row.cols-2,
  .row.cols-4,
  .team,
  .stage {
    grid-template-columns: 1fr;
  }

  h1,
  .h1 {
    font-size: clamp(2.2rem, 12vw, 3.4rem);
  }
}

@media print {
  @page {
    size: landscape;
    margin: 0;
  }

  body {
    overflow: visible;
    background: #f5f5f7;
  }

  body::before,
  .chrome,
  .notes,
  .speaker {
    display: none !important;
  }

  .deck {
    height: auto;
  }

  .slide {
    position: relative;
    page-break-after: always;
    break-after: page;
    min-height: 100vh;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
}