:root {
  --ink: #111827;
  --muted: #5b6472;
  --paper: #f7f3ea;
  --cream: #fffaf1;
  --coral: #ff6b4a;
  --teal: #14a098;
  --yellow: #f2b84b;
  --blue: #1d3557;
  --violet: #7b61ff;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(17, 24, 39, .18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--ink);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

.deck {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(17,24,39,.06) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(0deg, rgba(17,24,39,.05) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--paper);
}

.progress {
  position: fixed;
  inset: 0 0 auto;
  height: 6px;
  z-index: 20;
  background: rgba(17, 24, 39, .1);
}

.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--coral), var(--yellow), var(--teal));
  transition: width .35s ease;
}

.rail {
  position: fixed;
  z-index: 10;
  left: 24px;
  top: 28px;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: rgba(17, 24, 39, .5);
  font-size: 12px;
  font-weight: 800;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  pointer-events: none;
}

.rail__label {
  color: var(--ink);
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  min-height: 100vh;
  padding: 7vh clamp(28px, 6vw, 108px) 6vh clamp(56px, 8vw, 132px);
  opacity: 0;
  transform: translateX(34px) scale(.985);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}

.slide.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.slide--hero {
  background:
    radial-gradient(circle at 68% 20%, rgba(255, 107, 74, .18), transparent 28%),
    linear-gradient(135deg, rgba(20, 160, 152, .16), transparent 45%),
    var(--paper);
}

.hero-grid,
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: center;
}

.split--wide {
  grid-template-columns: minmax(280px, .82fr) minmax(420px, 1fr);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--coral);
  font-size: clamp(12px, 1.2vw, 15px);
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 26px;
  font-size: clamp(46px, 7.6vw, 108px);
  line-height: .88;
  font-weight: 950;
}

.title-mobile {
  display: none;
}

.hero-grid > *,
.split > * {
  min-width: 0;
}

h2 {
  max-width: 950px;
  margin-bottom: 24px;
  font-size: clamp(36px, 6.4vw, 88px);
  line-height: .95;
  font-weight: 950;
}

h3 {
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1;
  margin-bottom: 12px;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(19px, 2.3vw, 30px);
  line-height: 1.24;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 38px;
  color: var(--muted);
  font-weight: 800;
}

.icon-button,
.nav-button {
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background: var(--ink);
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(17, 24, 39, .2);
}

.icon-button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 22px;
}

.controls {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 30;
  display: flex;
  gap: 10px;
}

.nav-button {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 24px;
}

.nav-button:disabled {
  opacity: .35;
  cursor: default;
}

.ai-poster {
  position: relative;
  min-height: 560px;
  perspective: 1200px;
}

.poster-layer {
  position: absolute;
  display: grid;
  align-content: center;
  width: min(86%, 460px);
  min-height: 210px;
  padding: 30px;
  border: 3px solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
  transform: rotate(var(--rot)) translate(var(--x), var(--y));
}

.poster-layer span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.poster-layer strong {
  margin-top: 8px;
  font-size: clamp(30px, 4.5vw, 56px);
  line-height: .9;
}

.poster-layer small {
  margin-top: 16px;
  color: var(--muted);
  font-weight: 800;
}

.poster-layer--paper {
  --rot: -8deg;
  --x: 0;
  --y: -120px;
  left: 4%;
  top: 25%;
  background: #fff4d7;
}

.poster-layer--model {
  --rot: 8deg;
  --x: 62px;
  --y: 20px;
  left: 10%;
  top: 38%;
  background: var(--teal);
  color: var(--white);
}

.poster-layer--model span {
  color: rgba(255,255,255,.72);
}

.poster-layer--output {
  --rot: -2deg;
  --x: 20px;
  --y: 150px;
  left: 16%;
  top: 43%;
}

.manifesto,
.tool-grid,
.route-grid,
.systems-grid,
.activity,
.sources,
.pain-grid,
.logo-wall,
.prompt-recipe {
  display: grid;
  gap: 18px;
}

.manifesto div,
.tool-grid article,
.route-grid article,
.systems-grid article,
.activity article,
.pain-grid article,
.logo-wall article,
.prompt-recipe article {
  padding: 24px;
  border: 2px solid var(--ink);
  background: rgba(255, 255, 255, .78);
  box-shadow: 8px 8px 0 rgba(17, 24, 39, .12);
}

.manifesto span,
.tool-grid span,
.prompt-card span,
.bad span,
.good span {
  display: block;
  margin-bottom: 12px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.manifesto strong {
  display: block;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
}

.manifesto p,
.tool-grid p,
.route-grid p,
.systems-grid p,
.activity p,
.pain-grid p,
.logo-wall p,
.prompt-recipe p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.35;
}

.pain-grid {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  margin-top: 34px;
}

.pain-grid article {
  min-height: 340px;
  display: grid;
  align-content: space-between;
}

.pain-grid article:nth-child(1) { border-top: 12px solid var(--coral); }
.pain-grid article:nth-child(2) { border-top: 12px solid var(--yellow); }
.pain-grid article:nth-child(3) { border-top: 12px solid var(--teal); }
.pain-grid article:nth-child(4) { border-top: 12px solid var(--violet); }

.pain-grid span {
  color: var(--coral);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.logo-wall {
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  margin-top: 34px;
}

.logo-wall.grouped {
  grid-template-columns: repeat(3, minmax(200px, 1fr));
}

.icons-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.demo-btn {
  display: inline-block;
  margin-top: auto;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  text-align: center;
  transition: opacity 0.2s;
  border: 2px solid var(--ink);
}

.demo-btn:hover {
  opacity: 0.85;
}

.logo-wall article {
  min-height: 280px;
  display: grid;
  align-content: start;
}

.logo-wall img,
.letter-logo {
  width: 54px;
  height: 54px;
  margin-bottom: 28px;
}

.letter-logo {
  display: grid;
  place-items: center;
  border: 3px solid var(--ink);
  color: var(--white);
  background: var(--ink);
  font-size: 17px;
  font-weight: 950;
}

.logo-wall h3 {
  font-size: clamp(18px, 1.7vw, 25px);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 12px;
  align-items: stretch;
  margin-top: 34px;
}

.timeline article {
  min-height: 360px;
  padding: 20px;
  border-top: 12px solid var(--accent);
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 16px 34px rgba(17, 24, 39, .12);
}

.timeline span {
  display: inline-block;
  margin-bottom: 60px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 950;
}

.timeline p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.35;
}

.centered {
  text-align: center;
}

.centered h2,
.centered .lead {
  margin-right: auto;
  margin-left: auto;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 16px;
  margin-top: 46px;
  align-items: center;
}

.workflow div {
  min-height: 210px;
  padding: 22px;
  display: grid;
  align-content: space-between;
  color: var(--white);
  background: var(--ink);
}

.workflow div:nth-of-type(2) { background: var(--coral); }
.workflow div:nth-of-type(3) { background: var(--teal); }
.workflow div:nth-of-type(4) { background: var(--yellow); color: var(--ink); }
.workflow div:nth-of-type(5) { background: var(--blue); }

.workflow span {
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  opacity: .78;
}

.workflow strong {
  font-size: clamp(18px, 2.1vw, 30px);
  line-height: 1.05;
}

.workflow i {
  display: none;
}

.callout {
  max-width: 620px;
  margin-top: 34px;
  padding: 18px 20px;
  border-left: 8px solid var(--teal);
  color: var(--ink);
  background: var(--white);
  font-size: 20px;
  font-weight: 850;
  line-height: 1.25;
}

.ocr-demo {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: center;
}

.menu-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: center;
}

.paper {
  position: relative;
  min-height: 420px;
  padding: 56px 34px 34px;
  background: #fff6d8;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
  transform: rotate(-4deg);
}

.pin {
  position: absolute;
  top: 22px;
  left: calc(50% - 13px);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--coral);
  border: 3px solid var(--ink);
}

.paper p {
  margin: 22px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(17, 24, 39, .2);
  font-size: clamp(18px, 2.1vw, 28px);
  font-weight: 850;
  font-family: "Bradley Hand", "Comic Sans MS", cursive;
}

.scan-line {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 5px;
  background: var(--teal);
  box-shadow: 0 0 24px rgba(20, 160, 152, .9);
  animation: scan 3s ease-in-out infinite;
  z-index: 10;
}

@keyframes scan {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: 1; }
  90% { transform: translateY(380px); opacity: 1; }
  100% { transform: translateY(380px); opacity: 0; }
}

.menu-output {
  min-height: 380px;
  padding: 28px;
  display: grid;
  align-content: start;
  border: 3px solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
  animation: revealResult 3s ease-in-out forwards;
}

.menu-output span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.menu-output strong {
  display: block;
  margin: 12px 0 22px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: .9;
}

.menu-output ul {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 800;
  line-height: 1.35;
}

@keyframes revealResult {
  0%, 60% { opacity: 0; transform: translateX(20px); filter: blur(5px); }
  100% { opacity: 1; transform: translateX(0); filter: blur(0); }
}

pre {
  overflow: auto;
  min-height: 360px;
  margin: 0;
  padding: 28px;
  color: #d5fff7;
  background: #17202c;
  border: 2px solid var(--ink);
  font-size: clamp(14px, 1.6vw, 20px);
  line-height: 1.55;
  box-shadow: var(--shadow);
}

.tool-grid {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  margin-top: 32px;
}

.tool-grid small {
  color: var(--ink);
  font-weight: 850;
  line-height: 1.35;
}

.interactive-prompt-container {
  margin-top: 36px;
  width: 100%;
}

.interactive-prompt-hint {
  font-size: 16px;
  color: var(--teal);
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.interactive-prompt {
  padding: 40px;
  border: 3px solid var(--ink);
  background: var(--white);
  box-shadow: 12px 12px 0 rgba(20, 160, 152, .18);
  font-size: clamp(26px, 3.5vw, 44px);
  line-height: 1.45;
  font-weight: 850;
  color: var(--ink);
}

.prompt-segment {
  position: relative;
  transition: all 0.2s;
  cursor: pointer;
  display: inline;
  padding: 2px 4px;
  margin: 0 -2px;
  border-radius: 4px;
  border-bottom: 3px dashed rgba(20, 160, 152, 0.4);
}

.prompt-segment:hover {
  background-color: #e5f6f4;
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.prompt-segment::after {
  content: attr(data-type);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--ink);
  color: var(--white);
  font-size: 15px;
  font-weight: 900;
  padding: 6px 12px;
  border-radius: 6px;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(17, 24, 39, .25);
}

.prompt-segment:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-8px);
}

.vector-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.vector-pipeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 16px;
  align-items: start;
}

.pipeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.pipeline-item strong {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 950;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.raster-mark,
.vector-mark,
.flat-mark {
  position: relative;
  width: 100%;
  height: 430px;
  overflow: hidden;
  border: 3px solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.raster-mark img,
.vector-mark img,
.flat-mark img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.svg-note {
  max-width: 620px;
  margin-top: 30px;
  padding: 18px 20px;
  border: 3px solid var(--ink);
  color: var(--white);
  background: var(--ink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
}

.workflow.compact {
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  margin-top: 24px;
}

.workflow.compact div {
  min-height: 110px;
}

.workflow.compact strong {
  font-size: clamp(15px, 1.5vw, 22px);
}

.route-grid,
.systems-grid,
.activity {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  margin-top: 34px;
}

.route-grid article b,
.activity article b {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 28px;
  border-radius: 50%;
  color: var(--white);
  background: var(--ink);
}

.ladder {
  display: grid;
  gap: 12px;
  max-width: 1080px;
  margin-top: 34px;
}

.ladder div {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  border: 2px solid var(--ink);
  background: rgba(255,255,255,.82);
}

.ladder span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--white);
  background: var(--coral);
  font-weight: 950;
}

.ladder p {
  margin: 0;
  font-size: clamp(19px, 2.1vw, 28px);
  font-weight: 850;
  line-height: 1.18;
}

.brief-wheel {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 18px;
  max-width: 1050px;
  margin: 48px auto 24px;
}

.brief-wheel div {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  border: 3px solid var(--ink);
  background: var(--white);
  box-shadow: 8px 8px 0 rgba(17, 24, 39, .14);
}

.brief-wheel b {
  font-size: clamp(44px, 6vw, 84px);
  line-height: 1;
}

.brief-wheel span {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 900;
}

.center-text {
  max-width: 820px;
  margin: 0 auto;
  color: var(--muted);
  text-align: center;
  font-size: clamp(20px, 2.3vw, 30px);
}

.compare {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 22px;
  margin-top: 36px;
}

.bad,
.good {
  min-height: 390px;
  padding: 28px;
  border: 3px solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.bad {
  background: #ffe0d7;
}

.good {
  background: #dff8f2;
}

.bad p,
.good p {
  font-size: clamp(24px, 3vw, 44px);
  line-height: 1.08;
  font-weight: 900;
}

.systems-grid article:nth-child(1) { border-top: 12px solid var(--coral); }
.systems-grid article:nth-child(2) { border-top: 12px solid var(--teal); }
.systems-grid article:nth-child(3) { border-top: 12px solid var(--yellow); }
.systems-grid article:nth-child(4) { border-top: 12px solid var(--violet); }

.mini-app {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-top: 36px;
}

.mini-app span {
  padding: 16px 22px;
  color: var(--white);
  background: var(--ink);
  font-weight: 950;
}

.mini-app i {
  width: 34px;
  height: 4px;
  background: var(--coral);
}

.photo-demo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 18px;
}

.photo-card {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 rgba(17, 24, 39, .15);
  overflow: hidden;
  cursor: pointer;
  transition: filter 0.2s ease, box-shadow 0.2s ease;
}

.photo-card:hover {
  filter: brightness(1.05);
  box-shadow: 10px 10px 0 rgba(17, 24, 39, .25);
  z-index: 10;
}

.photo-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.photo-card span,
.photo-card strong {
  position: relative;
  z-index: 1;
}

.photo-card span {
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.photo-card strong {
  color: var(--white);
  text-shadow: 0 4px 16px rgba(17, 24, 39, .8);
  font-size: clamp(34px, 4vw, 62px);
  line-height: .94;
  font-weight: 950;
}

.photo-card--bad {
  transform: rotate(-3deg);
}

.photo-card--good {
  transform: rotate(1deg) translateY(12px);
}

.photo-card--escenario {
  transform: rotate(3deg);
}

.photo-prompt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 34px;
}

.photo-prompt p {
  min-height: 280px;
  margin: 0;
  padding: 26px;
  border: 3px solid var(--ink);
  background: var(--white);
  box-shadow: 8px 8px 0 rgba(20, 160, 152, .18);
  font-size: clamp(21px, 2.4vw, 34px);
  line-height: 1.16;
  font-weight: 850;
}

.photo-prompt p:nth-child(2) {
  background: #ffe0d7;
  box-shadow: 8px 8px 0 rgba(255, 107, 74, .18);
}

.prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.prompt-chips span {
  padding: 12px 16px;
  color: var(--white);
  background: var(--ink);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 13px;
}

.prompt-recipe {
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  margin-top: 34px;
}

.prompt-recipe article {
  min-height: 210px;
}

.prompt-recipe b {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  color: var(--white);
  background: var(--coral);
  border-radius: 50%;
}

.prompt-recipe h3 {
  font-size: clamp(18px, 1.7vw, 25px);
}

.prompt-examples article {
  min-height: 260px;
}

.activity article {
  min-height: 290px;
}

.checklist {
  display: grid;
  gap: 18px;
  max-width: 1050px;
  margin-top: 32px;
}

.checklist label {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  border: 2px solid var(--ink);
  background: rgba(255,255,255,.84);
  font-size: clamp(20px, 2.3vw, 32px);
  font-weight: 850;
  line-height: 1.15;
}

.checklist input {
  width: 26px;
  height: 26px;
  accent-color: var(--teal);
}

.sources {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  margin-top: 34px;
}

.sources a {
  min-height: 86px;
  padding: 18px;
  display: grid;
  align-items: center;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: var(--white);
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 6px 6px 0 rgba(17,24,39,.12);
}

.sources a:hover {
  background: var(--yellow);
}

@media (max-width: 1100px) {
  .timeline,
  .tool-grid,
  .prompt-board,
  .route-grid,
  .systems-grid,
  .activity,
  .sources,
  .pain-grid,
  .logo-wall,
  .prompt-recipe {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline article,
  .prompt-card,
  .activity article {
    min-height: 220px;
  }

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

@media (max-width: 820px) {
  .slide {
    align-content: start;
    padding: 76px 22px 86px 44px;
    overflow-y: auto;
    overflow-x: hidden;
  }

  h1 {
    max-width: calc(100vw - 76px);
    font-size: clamp(40px, 11vw, 48px);
    line-height: .96;
  }

  .lead {
    max-width: 286px;
    font-size: 20px;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .title-desktop {
    display: none;
  }

  .title-mobile {
    display: inline;
  }

  h2 {
    font-size: clamp(34px, 10vw, 48px);
    line-height: 1;
  }

  .rail {
    left: 12px;
  }

  .hero-grid,
  .split,
  .split--wide,
  .ocr-demo,
  .menu-demo,
  .vector-demo,
  .vector-pipeline,
  .compare,
  .photo-prompt {
    grid-template-columns: 1fr;
  }

  .ai-poster {
    min-height: 430px;
  }

  .poster-layer {
    width: 82%;
    min-height: 160px;
  }

  .poster-layer--paper {
    left: 0;
  }

  .poster-layer--model {
    --x: 16px;
    left: 4%;
  }

  .poster-layer--output {
    --x: 8px;
    left: 6%;
  }

  .timeline,
  .tool-grid,
  .prompt-board,
  .route-grid,
  .systems-grid,
  .activity,
  .sources,
  .pain-grid,
  .logo-wall,
  .prompt-recipe,
  .brief-wheel {
    grid-template-columns: 1fr;
  }

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

  .workflow.compact {
    grid-template-columns: 1fr;
  }

  .workflow div {
    min-height: 130px;
  }

  .paper,
  pre,
  .raster-mark,
  .flat-mark,
  .vector-mark,
  .photo-card,
  .bad,
  .good {
    min-height: 280px;
  }

  .pain-grid article,
  .logo-wall article,
  .prompt-recipe article {
    min-height: 190px;
  }

  .photo-demo {
    min-height: 540px;
  }

  .photo-card {
    width: 86%;
  }

  .photo-prompt p {
    min-height: 220px;
    font-size: 22px;
  }

  .mini-app {
    grid-template-columns: 1fr;
  }

  .mini-app i {
    width: 4px;
    height: 24px;
    justify-self: center;
  }
}

@media print {
  body {
    background: var(--paper);
  }

  .slide {
    position: relative;
    opacity: 1;
    transform: none;
    page-break-after: always;
  }

  .controls,
  .progress,
  .rail {
    display: none;
  }
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 24, 39, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 40px;
}

.image-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.image-modal img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  border: 4px solid var(--white);
}

.modal-close {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 38px;
  line-height: 1;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
  transform: scale(1.1);
  background: var(--coral);
  color: var(--white);
}
