:root {
  --bg: #090b0f;
  --ink: #f6f1e8;
  --muted: #a9b0b8;
  --panel: rgba(14, 17, 23, 0.72);
  --panel-strong: rgba(246, 241, 232, 0.09);
  --line: rgba(246, 241, 232, 0.18);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background:
    radial-gradient(circle at 12% 16%, rgba(245, 197, 66, 0.16), transparent 28rem),
    radial-gradient(circle at 84% 76%, rgba(73, 214, 169, 0.13), transparent 30rem),
    var(--bg);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
}

button,
a {
  font: inherit;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(115deg, rgba(255, 255, 255, 0.05), transparent 45%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 18px clamp(18px, 4vw, 54px);
  background: linear-gradient(180deg, rgba(9, 11, 15, 0.82), rgba(9, 11, 15, 0));
  transition: opacity 220ms ease, visibility 220ms ease;
}

body.is-cover-active .topbar {
  opacity: 0;
  visibility: hidden;
}

body.is-cover-active .controls {
  opacity: 0;
  visibility: hidden;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 46%, var(--ink) 46% 54%, transparent 54%),
    linear-gradient(0deg, transparent 46%, var(--ink) 46% 54%, transparent 54%);
  box-shadow: inset 0 0 0 7px rgba(255, 255, 255, 0.06);
}

.progress-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  justify-self: center;
  width: min(48vw, 560px);
}

.progress-line {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

#progressFill {
  display: block;
  width: 8.333%;
  height: 100%;
  background: var(--ink);
  transform-origin: left;
  transition: width 420ms var(--ease), background 420ms var(--ease);
}

.dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 9px;
  height: 9px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.dot[aria-current="true"] {
  transform: scale(1.55);
  background: var(--dot-color, var(--ink));
}

.deck {
  height: 100vh;
  height: 100dvh;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  outline: none;
}

.deck::-webkit-scrollbar {
  display: none;
}

.slide {
  position: relative;
  flex: 0 0 100vw;
  width: 100vw;
  min-width: 100vw;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.88fr);
  gap: clamp(22px, 4.2vw, 62px);
  align-items: center;
  padding: 92px clamp(22px, 5vw, 72px) 54px;
  overflow-x: hidden;
  isolation: isolate;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(9, 11, 15, 0.98), rgba(9, 11, 15, 0.54) 48%, rgba(9, 11, 15, 0.82)),
    var(--slide-image) center / cover no-repeat;
  filter: saturate(0.9);
  transform: scale(1.03);
}

.cover-slide {
  grid-template-columns: 1fr;
  place-items: center;
  padding: 0;
  background: #000;
}

.cover-slide::before,
.cover-slide::after {
  display: none;
}

.cover-inner {
  width: min(100% - 40px, 920px);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  transform: translateY(-1.5vh);
}

.cover-logo-wrap {
  width: clamp(96px, 9vw, 132px);
  height: clamp(96px, 9vw, 132px);
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: #050505;
  box-shadow: 0 22px 70px rgba(255, 255, 255, 0.08);
}

.cover-logo {
  width: 76%;
  height: 76%;
  object-fit: contain;
  border-radius: 16px;
}

.cover-slide .kicker {
  display: none;
}

.cover-slide .kicker::before {
  display: none;
}

.cover-eyebrow {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 900;
  text-transform: uppercase;
}

.cover-slide h1 {
  max-width: 860px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(54px, 8.2vw, 118px);
  line-height: 0.92;
  font-weight: 900;
  text-align: center;
}

.cover-name {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 800;
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: linear-gradient(90deg, black, transparent 74%);
  opacity: 0.34;
}

.copy {
  position: relative;
  z-index: 2;
  max-width: 980px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--accent);
  font-size: clamp(12px, 1.1vw, 14px);
  font-weight: 800;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 42px;
  height: 2px;
  background: currentColor;
}

h1 {
  margin: 0;
  max-width: 900px;
  font-family: "Fraunces", serif;
  font-size: clamp(48px, 6.7vw, 104px);
  line-height: 0.9;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.lead {
  margin: clamp(18px, 2.2vw, 28px) 0 0;
  max-width: 760px;
  color: rgba(246, 241, 232, 0.83);
  font-size: clamp(18px, 1.65vw, 24px);
  line-height: 1.36;
  font-weight: 600;
  text-wrap: pretty;
}

.body-copy {
  display: grid;
  gap: 12px;
  margin-top: clamp(18px, 2vw, 26px);
  max-width: 820px;
}

.body-copy p {
  margin: 0;
  color: rgba(246, 241, 232, 0.74);
  font-size: clamp(15px, 1.12vw, 18px);
  line-height: 1.62;
  font-weight: 500;
}

.example {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  margin: clamp(18px, 2vw, 26px) 0 0;
  max-width: 800px;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(246, 241, 232, 0.84);
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.48;
  font-weight: 700;
}

.example span {
  color: var(--accent);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 900;
  text-transform: uppercase;
}

.visual {
  position: relative;
  z-index: 1;
  align-self: stretch;
  display: grid;
  align-content: center;
  min-height: 480px;
}

.llm-tech-slide {
  grid-template-columns: minmax(0, 0.95fr) minmax(390px, 1.05fr);
}

.prompt-demo-slide {
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
}

.hallucination-slide {
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
}

.next-word-slide {
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
}

.token-lens-slide {
  grid-template-columns: minmax(0, 0.84fr) minmax(460px, 1.16fr);
}

.llm-diagram {
  position: relative;
  z-index: 1;
  align-self: center;
  display: grid;
  gap: 12px;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(143, 211, 255, 0.13), transparent 34%),
    rgba(6, 8, 12, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.prompt-box,
.flow-step,
.transformer-card,
.prob-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.075);
}

.prompt-box {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.prompt-box span,
.prob-card > span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.prompt-box strong {
  color: var(--ink);
  font-size: clamp(21px, 2vw, 30px);
  line-height: 1.1;
}

.token-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.token-row span {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(143, 211, 255, 0.34);
  background: rgba(143, 211, 255, 0.12);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.flow-step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
}

.flow-step::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -16px;
  z-index: 2;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 10px solid var(--accent);
  transform: translateX(-50%);
}

.step-index {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #071018;
  font-weight: 900;
}

.flow-step strong,
.transformer-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 15px;
}

.flow-step p,
.transformer-card p {
  margin: 0;
  color: rgba(246, 241, 232, 0.72);
  font-size: 13px;
  line-height: 1.38;
  font-weight: 600;
}

.transformer-card {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
}

.layer-stack {
  position: relative;
  height: 96px;
}

.layer-stack span {
  position: absolute;
  inset: auto;
  width: 74px;
  height: 54px;
  border: 1px solid rgba(143, 211, 255, 0.48);
  background: rgba(143, 211, 255, 0.1);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.layer-stack span:nth-child(1) {
  left: 4px;
  top: 30px;
}

.layer-stack span:nth-child(2) {
  left: 18px;
  top: 20px;
}

.layer-stack span:nth-child(3) {
  left: 32px;
  top: 10px;
}

.layer-stack span:nth-child(4) {
  left: 46px;
  top: 0;
}

.prob-card {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.prob-line {
  position: relative;
  display: grid;
  grid-template-columns: 112px 1fr 44px;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.prob-line i {
  height: 10px;
  background: var(--accent);
  box-shadow: 0 0 24px rgba(143, 211, 255, 0.28);
}

.prob-line em {
  color: rgba(246, 241, 232, 0.72);
  font-style: normal;
  text-align: right;
}

.prompt-demo {
  position: relative;
  z-index: 1;
  align-self: center;
  display: grid;
  gap: 14px;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.14), transparent 38%),
    rgba(6, 8, 12, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hallucination-demo {
  position: relative;
  z-index: 1;
  align-self: center;
  display: grid;
  gap: 14px;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 222, 115, 0.15), transparent 38%),
    rgba(6, 8, 12, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.next-word-demo {
  position: relative;
  z-index: 1;
  align-self: center;
  display: grid;
  gap: 14px;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(143, 211, 255, 0.15), transparent 38%),
    rgba(6, 8, 12, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.token-lens {
  position: relative;
  z-index: 1;
  align-self: center;
  display: grid;
  gap: 14px;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(111, 255, 233, 0.16), transparent 38%),
    rgba(6, 8, 12, 0.8);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.question-card,
.hallucination-answer,
.risk-panel {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.075);
}

.question-card {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.question-card span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.question-card strong {
  color: var(--ink);
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.25;
}

.next-context-card,
.next-prob-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.075);
}

.next-context-card span,
.next-prob-card > span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.next-context-card small {
  color: rgba(246, 241, 232, 0.68);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
}

.next-context-card strong {
  color: var(--ink);
  font-size: clamp(22px, 2.1vw, 32px);
  line-height: 1.12;
}

.next-token-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.next-token-strip span {
  min-height: 46px;
  min-width: 86px;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  border: 1px solid rgba(143, 211, 255, 0.34);
  background: rgba(143, 211, 255, 0.12);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.next-token-strip .ghost {
  border-style: dashed;
  color: var(--accent);
}

.next-word-options {
  display: grid;
  gap: 12px;
}

.next-word-options.is-flashing {
  animation: outputFlash 420ms var(--ease);
}

.next-word-option {
  display: grid;
  grid-template-columns: 120px 1fr 44px;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.next-word-option i {
  height: 12px;
  background: var(--accent);
  box-shadow: 0 0 24px rgba(143, 211, 255, 0.28);
}

.next-word-option em {
  color: rgba(246, 241, 232, 0.72);
  font-style: normal;
  text-align: right;
}

.token-lens-input,
.token-lens-stage,
.embedding-panel {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.075);
}

.token-lens-input {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.token-lens-input > span,
.token-lens-head span,
.embedding-panel span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.token-lens-input textarea {
  width: 100%;
  min-height: 86px;
  resize: vertical;
  border: 1px solid rgba(111, 255, 233, 0.26);
  border-radius: var(--radius);
  outline: none;
  padding: 13px 14px;
  background: rgba(0, 0, 0, 0.26);
  color: var(--ink);
  font: inherit;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.45;
  font-weight: 800;
}

.token-lens-input textarea:focus {
  border-color: rgba(111, 255, 233, 0.72);
  box-shadow: 0 0 0 3px rgba(111, 255, 233, 0.12);
}

.token-lens-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 8px;
}

.token-sample,
.token-run {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(246, 241, 232, 0.74);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.token-sample {
  background: rgba(255, 255, 255, 0.08);
}

.token-run {
  padding: 0 16px;
  border-color: rgba(111, 255, 233, 0.44);
  background: rgba(111, 255, 233, 0.16);
  color: var(--ink);
}

.token-sample:hover,
.token-run:hover {
  transform: translateY(-1px);
  border-color: rgba(111, 255, 233, 0.48);
  color: var(--ink);
}

.token-sample.is-selected {
  border-color: rgba(111, 255, 233, 0.56);
  background: rgba(111, 255, 233, 0.14);
  color: var(--ink);
}

.token-lens-stage {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.token-lens-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.token-lens-head strong,
.embedding-panel strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.token-lens-tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.token-lens-tokens.is-flashing {
  animation: outputFlash 420ms var(--ease);
}

.token-chip {
  min-height: 52px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  max-width: 100%;
  border: 1px solid rgba(111, 255, 233, 0.22);
  background: rgba(111, 255, 233, 0.1);
  color: var(--ink);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.token-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(111, 255, 233, 0.48);
}

.token-chip.is-active {
  border-color: rgba(111, 255, 233, 0.86);
  background: rgba(111, 255, 233, 0.2);
  box-shadow: 0 0 28px rgba(111, 255, 233, 0.12);
}

.token-chip span {
  min-width: 0;
  padding: 0 0 0 12px;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 900;
}

.token-chip em {
  align-self: stretch;
  display: grid;
  place-items: center;
  min-width: 36px;
  padding: 0 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(246, 241, 232, 0.58);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.embedding-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.embedding-panel > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.embedding-bars {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  min-height: 112px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(0deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    rgba(0, 0, 0, 0.18);
  background-size: 100% 24px;
}

.embedding-bars.is-flashing {
  animation: outputFlash 360ms var(--ease);
}

.embedding-bars i {
  position: relative;
  display: block;
  height: var(--value);
  min-height: 18px;
  background: linear-gradient(180deg, var(--accent), rgba(111, 255, 233, 0.22));
  box-shadow: 0 0 22px rgba(111, 255, 233, 0.2);
}

.embedding-bars i span {
  position: absolute;
  left: 50%;
  bottom: -20px;
  color: rgba(246, 241, 232, 0.48);
  font-size: 10px;
  transform: translateX(-50%);
}

.vector-stream {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.vector-stream span {
  flex: 0 0 46px;
  height: 48px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 3px;
  padding: 7px;
  border: 1px solid rgba(111, 255, 233, 0.16);
  background: rgba(255, 255, 255, 0.06);
  animation: vectorPulse 1600ms var(--ease) infinite;
  animation-delay: var(--delay);
}

.vector-stream i {
  width: 5px;
  min-height: 8px;
  background: var(--accent);
  opacity: 0.78;
}

.prompt-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.prompt-choice {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(246, 241, 232, 0.74);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.prompt-choice:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.34);
  color: var(--ink);
}

.prompt-choice.is-selected {
  border-color: rgba(255, 209, 102, 0.56);
  background: rgba(255, 209, 102, 0.18);
  color: var(--ink);
}

.prompt-workbench {
  display: grid;
  gap: 12px;
}

.prompt-input-card,
.prompt-output-card,
.prompt-note {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.075);
}

.prompt-input-card {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.prompt-input-card span,
.output-head span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.prompt-input-card p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.45;
  font-weight: 800;
}

.prompt-output-card {
  min-height: 260px;
  display: grid;
  gap: 14px;
  padding: 16px;
}

.hallucination-answer {
  min-height: 238px;
  display: grid;
  gap: 14px;
  padding: 16px;
}

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

.output-head strong {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.16);
  color: var(--ink);
  font-size: 12px;
}

.demo-output {
  display: grid;
  gap: 10px;
}

.demo-output p {
  margin: 0;
  color: rgba(246, 241, 232, 0.8);
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.56;
  font-weight: 600;
}

.demo-output.is-flashing {
  animation: outputFlash 420ms var(--ease);
}

.prompt-note {
  margin: 0;
  padding: 13px 14px;
  border-left: 3px solid var(--accent);
  color: rgba(246, 241, 232, 0.78);
  font-size: 13px;
  line-height: 1.42;
  font-weight: 800;
}

.risk-toggle {
  min-height: 46px;
  border: 1px solid rgba(255, 222, 115, 0.42);
  border-radius: 999px;
  background: rgba(255, 222, 115, 0.14);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.risk-panel {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-left: 3px solid var(--accent);
}

.risk-panel[hidden] {
  display: none;
}

.risk-panel p {
  margin: 0;
  color: rgba(246, 241, 232, 0.78);
  font-size: 13px;
  line-height: 1.42;
  font-weight: 800;
}

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

@keyframes vectorPulse {
  0%,
  100% {
    opacity: 0.45;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-5px);
  }
}

.image-card {
  position: relative;
  min-height: min(58vh, 610px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #111821;
}

.image-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.03);
}

.image-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 18%, rgba(0, 0, 0, 0.65)),
    linear-gradient(120deg, rgba(0, 0, 0, 0.36), transparent 58%);
}

.image-card::after {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.stat-panel {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(6, 8, 12, 0.66);
  backdrop-filter: blur(16px);
}

.message {
  margin: 0;
  color: var(--ink);
  font-size: clamp(17px, 1.45vw, 23px);
  line-height: 1.18;
  font-weight: 800;
}

.points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.points li {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(246, 241, 232, 0.84);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.points li::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  background: var(--accent);
}

.controls {
  position: fixed;
  right: clamp(18px, 4vw, 54px);
  bottom: 28px;
  z-index: 30;
  display: flex;
  gap: 10px;
}

.icon-btn {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(9, 11, 15, 0.68);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.icon-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
}

.icon-btn:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}

.icon-btn span {
  font-size: 24px;
  line-height: 1;
}

.slide .copy,
.slide .visual,
.slide .llm-diagram,
.slide .prompt-demo,
.slide .hallucination-demo,
.slide .next-word-demo,
.slide .token-lens {
  opacity: 0.25;
  transform: translateY(20px);
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}

.slide.is-active .copy,
.slide.is-active .visual,
.slide.is-active .llm-diagram,
.slide.is-active .prompt-demo,
.slide.is-active .hallucination-demo,
.slide.is-active .next-word-demo,
.slide.is-active .token-lens {
  opacity: 1;
  transform: translateY(0);
}

.slide.is-active .visual,
.slide.is-active .llm-diagram,
.slide.is-active .prompt-demo,
.slide.is-active .hallucination-demo,
.slide.is-active .next-word-demo,
.slide.is-active .token-lens {
  transition-delay: 90ms;
}

@media (max-width: 980px) {
  body {
    overflow: hidden;
  }

  .topbar {
    grid-template-columns: auto 1fr;
    gap: 16px;
    padding-bottom: 18px;
    background: linear-gradient(180deg, rgba(9, 11, 15, 0.94), rgba(9, 11, 15, 0));
  }

  .progress-wrap {
    justify-self: stretch;
    width: auto;
  }

  .dots {
    display: none;
  }

  .slide {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 26px;
    padding-top: 92px;
    padding-bottom: 108px;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }

  .copy {
    grid-row: 1;
    z-index: 3;
  }

  .cover-slide {
    padding: 0;
  }

  .llm-tech-slide,
  .prompt-demo-slide,
  .hallucination-slide,
  .next-word-slide,
  .token-lens-slide {
    grid-template-columns: 1fr;
  }

  .llm-diagram,
  .prompt-demo,
  .hallucination-demo,
  .next-word-demo,
  .token-lens {
    grid-row: 2;
    align-self: stretch;
    margin-top: clamp(48px, 7vw, 78px);
    z-index: 1;
  }

  h1 {
    font-size: clamp(40px, 12vw, 68px);
    line-height: 0.96;
  }

  .lead {
    font-size: clamp(17px, 4.5vw, 22px);
  }

  .body-copy p {
    font-size: 15px;
    line-height: 1.55;
  }

  .visual {
    grid-row: 2;
    min-height: 0;
    margin-top: clamp(48px, 7vw, 78px);
    z-index: 1;
  }

  .image-card {
    min-height: min(58vh, 430px);
  }
}

@media (max-width: 620px) {
  .topbar {
    gap: 12px;
    padding: 12px 14px 14px;
  }

  .brand span:last-child {
    display: none;
  }

  .brand-mark {
    width: 22px;
    height: 22px;
  }

  .progress-wrap {
    gap: 10px;
    font-size: 11px;
  }

  .slide {
    gap: 20px;
    padding: 78px 14px 98px;
  }

  .slide::after {
    background-size: 54px 54px;
  }

  .cover-inner {
    width: min(100% - 28px, 920px);
    gap: 14px;
  }

  .cover-logo-wrap {
    width: 92px;
    height: 92px;
    border-radius: 20px;
  }

  .cover-slide h1 {
    font-size: clamp(48px, 17vw, 78px);
    line-height: 0.94;
  }

  .cover-name {
    margin-top: 10px;
    font-size: 18px;
  }

  .kicker {
    gap: 8px;
    margin-bottom: 14px;
  }

  .kicker::before {
    width: 28px;
  }

  h1 {
    font-size: clamp(34px, 10.5vw, 48px);
  }

  .lead {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.45;
  }

  .body-copy {
    gap: 10px;
    margin-top: 16px;
  }

  .body-copy p {
    font-size: 14px;
  }

  .example {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 16px;
    padding: 12px 13px;
    font-size: 13px;
  }

  .llm-diagram,
  .prompt-demo,
  .hallucination-demo,
  .next-word-demo,
  .token-lens {
    gap: 10px;
    margin-top: 92px;
    padding: 12px;
  }

  .visual {
    margin-top: 92px;
  }

  .prompt-box,
  .flow-step,
  .transformer-card,
  .prob-card,
  .question-card,
  .next-context-card,
  .next-prob-card,
  .token-lens-input,
  .token-lens-stage,
  .embedding-panel,
  .prompt-input-card,
  .prompt-output-card,
  .hallucination-answer,
  .risk-panel {
    padding: 12px;
  }

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

  .points li {
    min-height: 38px;
  }

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

  .transformer-card,
  .prob-line,
  .next-word-option {
    grid-template-columns: 1fr;
  }

  .prompt-tabs {
    grid-template-columns: 1fr;
  }

  .prompt-choice,
  .risk-toggle {
    min-height: 42px;
    font-size: 12px;
  }

  .token-lens-actions {
    grid-template-columns: 1fr;
  }

  .prompt-output-card,
  .hallucination-answer {
    min-height: auto;
  }

  .prob-line em {
    text-align: left;
  }

  .next-word-option em {
    text-align: left;
  }

  .next-token-strip span {
    min-width: 0;
    min-height: 40px;
  }

  .token-chip {
    min-height: 44px;
  }

  .embedding-bars {
    min-height: 94px;
    gap: 6px;
  }

  .vector-stream {
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .image-card {
    min-height: 0;
    overflow: visible;
    display: grid;
  }

  .image-card img {
    position: relative;
    height: 230px;
    object-fit: cover;
  }

  .image-card::before,
  .image-card::after {
    display: none;
  }

  .stat-panel {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    gap: 10px;
    padding: 12px;
    border-top: 0;
  }

  .message {
    font-size: 16px;
  }

  .controls {
    left: 16px;
    right: 16px;
    justify-content: space-between;
    bottom: max(14px, env(safe-area-inset-bottom));
  }

  .icon-btn {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 380px) {
  .slide {
    padding-left: 12px;
    padding-right: 12px;
  }

  h1 {
    font-size: 32px;
  }

  .image-card {
    min-height: 310px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
