@import url("https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@600;700&family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;1,400&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --ink: #1a1714;
  --ink-2: #24201c;
  --ink-3: #2e2924;
  --gold: #c9a45a;
  --gold-dim: rgba(201, 164, 90, 0.14);
  --steel: #7aadc0;
  --steel-dim: rgba(122, 173, 192, 0.16);
  --text: #f2ece3;
  --muted: #9a9184;
  --line: rgba(242, 236, 227, 0.08);
  --line-strong: rgba(242, 236, 227, 0.16);
  --ask: #c45c4a;
  --warn: #d4a24a;
  --font-display: "Chakra Petch", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 6px;
  --slide-pad-x: clamp(1.5rem, 4.5vw, 4.5rem);
  --slide-pad-y: clamp(1.1rem, 3vh, 2.4rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  overflow: hidden;
}

body {
  background-image:
    linear-gradient(to right, rgba(242, 236, 227, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(242, 236, 227, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  background-color: var(--ink);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

button {
  font-family: inherit;
}

.deck {
  position: relative;
  height: 100vh;
  width: 100vw;
  z-index: 1;
}

.slide {
  display: none;
  position: absolute;
  inset: 0;
  padding: calc(var(--slide-pad-y) + 1.85rem) var(--slide-pad-x) 4.6rem;
  overflow-x: hidden;
  overflow-y: auto;
  animation: rise 0.45s ease both;
}

.slide.active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.05rem;
}

.slide.active > :not(.slide-kicker) {
  width: 100%;
  max-width: 80rem;
}

.slide-kicker {
  position: absolute;
  top: var(--slide-pad-y);
  left: var(--slide-pad-x);
  right: var(--slide-pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.slide-kicker strong {
  color: var(--gold);
  font-weight: 500;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0;
}

h2 {
  font-weight: 700;
  font-size: clamp(1.45rem, 3.2vw, 2.4rem);
  line-height: 1.12;
  max-width: 28ch;
  padding-bottom: 0.12em;
}

h3 {
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  line-height: 1.35;
  text-transform: uppercase;
}

p,
li {
  color: var(--muted);
  line-height: 1.65;
}

.lede {
  max-width: 58ch;
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  margin: 0.35rem 0 0;
  line-height: 1.65;
}

.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.6rem, 12vw, 8rem);
  line-height: 0.92;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

.thanks-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
  text-align: center;
}

.slide.thanks.active > :not(.slide-kicker) {
  width: auto;
  max-width: none;
}

.subhead {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  max-width: 22ch;
  margin: 0.45rem 0 0;
  line-height: 1.2;
}

.slide.pack > :not(.slide-kicker) {
  max-width: 72rem;
}

.slide.pack .hero-grid {
  max-width: 76rem;
}

.cta-row {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.chip {
  border: 1px solid var(--line-strong);
  background: var(--ink-2);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.38rem 0.65rem;
  border-radius: var(--radius);
}

.chip.gold {
  border-color: rgba(201, 164, 90, 0.45);
  background: var(--gold-dim);
  color: var(--gold);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 20rem);
  gap: 2rem;
  align-items: center;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 0.7rem;
}

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

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

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

.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  min-width: 0;
}

.card p {
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
}

.card .meta {
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  margin-bottom: 0.5rem;
  background: var(--gold-dim);
  color: var(--gold);
  border-radius: 3px;
}

.icon.svg-ask {
  background: rgba(196, 92, 74, 0.14);
  color: var(--ask);
}

.icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  color: var(--gold);
  line-height: 1;
  letter-spacing: 0.04em;
}

.badge {
  display: inline-block;
  padding: 0.14rem 0.42rem;
  background: var(--gold-dim);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 3px;
}

.list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.5rem 0 0.62rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--text);
  line-height: 1.55;
}

.list li::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  margin-top: 0.42rem;
  background: var(--gold);
}

.gap-map {
  display: grid;
  gap: 0.5rem;
}

.gap-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0 0.15rem 0.1rem;
}

.gap-head span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gap-head .have {
  color: var(--steel);
}

.gap-head .need {
  color: var(--gold);
}

.gap-row {
  display: grid;
  grid-template-columns: 1fr 2.4rem 1fr;
  gap: 0.75rem;
  align-items: stretch;
}

.gap-cell {
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: 0.8rem 0.95rem;
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.55;
  border-radius: var(--radius);
}

.gap-cell.need {
  border-color: rgba(201, 164, 90, 0.32);
}

.gap-cell.bad {
  border-color: rgba(196, 92, 74, 0.35);
}

.gap-cell p {
  margin: 0;
  color: var(--text);
}

.gap-but {
  display: grid;
  place-items: center;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

.code {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--gold);
  background: var(--ink);
  border: 1px solid var(--line);
  padding: 0.1rem 0.32rem;
}

.vs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.85rem;
  align-items: stretch;
}

.vs-col {
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
}

.vs-col.bad {
  border-color: rgba(196, 92, 74, 0.4);
}

.vs-col.good {
  border-color: rgba(201, 164, 90, 0.5);
  background: rgba(201, 164, 90, 0.06);
}

.vs-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.vs-col.bad .vs-label {
  color: var(--ask);
}

.vs-col.good .vs-label {
  color: var(--gold);
}

.vs-col h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.vs-col p {
  margin: 0;
  font-size: 0.88rem;
}

.vs-mid {
  display: grid;
  place-items: center;
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.why3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.feat {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.feat .card p {
  margin: 0.28rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
}

.feat .card h3 {
  font-size: 0.82rem;
}

.note {
  border-left: 2px solid var(--gold);
  padding: 0.15rem 0 0.2rem 0.75rem;
  font-size: 0.86rem;
  line-height: 1.5;
  margin: 0;
}

.users {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  align-items: start;
}

.lane {
  display: grid;
  gap: 0.5rem;
}

.col-title {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  color: var(--gold);
}

.art {
  width: 100%;
  max-width: 340px;
  justify-self: end;
}

.art svg {
  width: 100%;
  height: auto;
  display: block;
}

.loop {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.board {
  width: 100%;
  height: auto;
  max-height: min(58vh, 560px);
  display: block;
  overflow: visible;
}

.board text {
  font-family: var(--font-display);
  fill: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.board .muted {
  font-family: var(--font-body);
  fill: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.caption {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  max-width: 82ch;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.legend i {
  display: inline-block;
  width: 18px;
  height: 3px;
  margin-right: 0.4rem;
  vertical-align: middle;
  background: var(--gold);
}

.legend i.dash {
  background: repeating-linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 10px);
}

.legend i.pub {
  background: var(--steel);
}

.rivals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.rival {
  display: flex;
  flex-direction: column;
  padding: 1.15rem 1.1rem 1.05rem;
  min-height: 14.5rem;
}

.rival-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
  line-height: 1.05;
}

.rival-what {
  margin: 0.45rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.lacks {
  list-style: none;
  margin: 1.05rem 0 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid var(--line);
}

.lacks::before {
  content: "Lacks";
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ask);
  margin-bottom: 0.45rem;
}

.lacks li {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.35;
  padding: 0.18rem 0 0.18rem 0.7rem;
  position: relative;
}

.lacks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 5px;
  height: 5px;
  background: var(--ask);
}

.prims {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
}

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

.prim {
  padding: 1.15rem 1rem 1.05rem;
  min-height: 10.5rem;
}

.prim-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
  line-height: 1.1;
}

.prim p:not(.prim-name):not(.meta) {
  margin-top: 0.55rem;
  font-size: 0.86rem;
  line-height: 1.5;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.6rem;
  padding-top: 1.4rem;
  margin-top: 0.6rem;
}

.tl-line {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 1.55rem;
  height: 2px;
  background: var(--gold);
  opacity: 0.45;
}

.tl-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 1.1rem;
}

.tl-dot {
  position: absolute;
  top: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--gold);
  z-index: 1;
}

.tl-dot.gold {
  background: var(--gold);
}

.tl-phase {
  margin: 0.85rem 0 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.tl-step h3 {
  font-size: 1.05rem;
  margin: 0;
}

.tl-step p:not(.tl-phase) {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  max-width: 16ch;
  line-height: 1.45;
}

.board text.lbl {
  font-family: var(--font-mono);
  text-transform: none;
  letter-spacing: 0.03em;
  font-size: 15px;
}

.aleo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.aleo-table th,
.aleo-table td {
  text-align: left;
  padding: 0.52rem 0.4rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.aleo-table th {
  color: var(--muted);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.aleo-table td:first-child {
  color: var(--gold);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.72rem;
  white-space: nowrap;
  padding-right: 1rem;
}

.chrome {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem var(--slide-pad-x) 0.85rem;
  border-top: 1px solid var(--line);
  background: rgba(26, 23, 20, 0.92);
  backdrop-filter: blur(12px);
}

.progress {
  height: 2px;
  background: var(--line);
}

.progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold);
  transition: width 0.25s ease;
}

.nav-btns {
  display: flex;
  gap: 0.4rem;
}

.nav-btns button,
.hint {
  appearance: none;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
}

.nav-btns button:hover {
  background: var(--gold);
  color: var(--ink);
}

.hint {
  border-color: var(--line-strong);
  color: var(--muted);
  cursor: default;
}

.counter {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .grid-4,
  .grid-3,
  .users,
  .loop,
  .vs,
  .why3,
  .feat,
  .gap-row,
  .gap-head,
  .rivals,
  .prims,
  .prims-6,
  .timeline {
    grid-template-columns: 1fr;
  }

  .vs-mid {
    transform: rotate(90deg);
  }

  .art {
    max-width: 220px;
    justify-self: center;
  }

  .rival,
  .prim {
    min-height: 0;
  }

  .timeline {
    padding-top: 0;
    padding-left: 0.4rem;
    gap: 1.15rem;
  }

  .tl-line {
    left: 6px;
    right: auto;
    top: 0.4rem;
    bottom: 0.4rem;
    width: 2px;
    height: auto;
  }

  .tl-step {
    align-items: flex-start;
    text-align: left;
    padding-top: 0;
    padding-left: 1.6rem;
  }

  .tl-dot {
    left: 0;
    top: 0.15rem;
  }

  .tl-step p:not(.tl-phase) {
    max-width: none;
  }

  .slide.active {
    justify-content: flex-start;
    padding-top: calc(var(--slide-pad-y) + 2.4rem);
  }

  h2 {
    max-width: none;
  }
}

@media print {
  body,
  html,
  .deck {
    overflow: visible;
    height: auto;
    background: var(--ink);
  }

  .slide {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    position: relative;
    page-break-after: always;
    min-height: 100vh;
    animation: none;
  }

  .chrome {
    display: none;
  }
}
