:root {
  --bg: #f6f5f2;
  --ink: #111110;
  --ink-2: #4a4945;
  --ink-3: #8a8883;
  --line: #e4e2dc;
  --card: #ffffff;
  --problem: #c4411a;
  --solution: #17804a;
  --accent: #111110;
  --phone-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 18px 40px -12px rgba(0, 0, 0, .22);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* ---------- stage (presentation mode) ---------- */
.viewport { position: fixed; inset: 0; }
.stage {
  position: absolute; left: 50%; top: 50%;
  width: 1600px; height: 900px;
  transform-origin: center center;
}
.slide {
  position: absolute; inset: 0;
  padding: 80px 96px 88px;
  display: none;
}
.slide.active { display: flex; }

.eyebrow {
  margin: 0 0 14px;
  font-size: 17px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3);
  display: flex; align-items: center; gap: 12px;
}
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }

/* ---------- title ---------- */
.s-title { align-items: center; gap: 64px; }
.t-copy { flex: 1; }
.s-title h1 { font-size: 128px; font-weight: 700; letter-spacing: -.045em; line-height: 1; }
.t-sub { font-size: 40px; font-weight: 500; margin: 16px 0 40px; color: var(--ink-2); letter-spacing: -.02em; }
.t-author { font-size: 22px; font-weight: 600; margin: 0 0 8px; }
.t-hint { font-size: 16px; color: var(--ink-3); margin: 0; }
kbd {
  font-family: inherit; font-size: 14px; border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 6px; padding: 1px 7px; background: var(--card);
}
.t-phones { position: relative; width: 640px; height: 720px; flex: none; }
.t-phones img {
  position: absolute; height: 600px; border-radius: 34px; box-shadow: var(--phone-shadow);
  border: 1px solid rgba(0, 0, 0, .08);
}
.t-phones img:nth-child(1) { left: 0; top: 90px; transform: rotate(-6deg); }
.t-phones img:nth-child(2) { left: 180px; top: 20px; z-index: 2; }
.t-phones img:nth-child(3) { left: 360px; top: 90px; transform: rotate(6deg); }

/* ---------- section ---------- */
.s-section { flex-direction: column; justify-content: center; }
.s-section h2 { font-size: 120px; font-weight: 700; letter-spacing: -.04em; }

/* ---------- issue ---------- */
.s-issue { align-items: center; gap: 72px; }
.media { display: flex; gap: 22px; align-items: flex-start; flex: none; }
.shot { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.screen {
  --h: 690px;
  height: var(--h); aspect-ratio: 590 / 1280;
  border-radius: 34px; overflow: hidden; background: #000;
  border: 1px solid rgba(0, 0, 0, .1);
  box-shadow: var(--phone-shadow);
  position: relative;
}
.media.n2 .screen { --h: 660px; }
.media.n3 .screen { --h: 600px; border-radius: 30px; }
.screen video, .screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.is-video .screen { cursor: pointer; }
.is-wide { align-self: center; }
.is-wide .screen { height: auto; width: 460px; aspect-ratio: 590 / 180; border-radius: 16px; }
figcaption { font-size: 15px; color: var(--ink-3); font-weight: 500; text-align: center; max-width: 320px; }

.copy { flex: 1; min-width: 0; }
.copy h2 { font-size: 60px; font-weight: 700; line-height: 1.08; margin-bottom: 36px; letter-spacing: -.03em; }
.wide-media .copy h2 { font-size: 48px; margin-bottom: 28px; }
.block { padding-left: 24px; border-left: 3px solid; margin-bottom: 36px; }
.block h3 { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; margin-bottom: 10px; }
.problem { border-color: var(--problem); }
.problem h3 { color: var(--problem); }
.solution { border-color: var(--solution); margin-bottom: 0; }
.solution h3 { color: var(--solution); }
.block p, .block li { font-size: 27px; line-height: 1.5; color: var(--ink-2); }
.wide-media .block p, .wide-media .block li { font-size: 23px; }
.block p { margin: 0; }
.block ul { margin: 0; padding-left: 22px; }
.block li { margin-bottom: 8px; }
.block li::marker { color: var(--solution); }

.funnel { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 16px; }
.f-label { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--problem); width: 84px; }
.proposed .f-label { color: var(--solution); }
.step {
  font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums;
  padding: 5px 11px; border-radius: 999px; background: #fbe9e3; color: #7a2a12;
}
.proposed .step { background: #e1f3e8; color: #0f5132; }
.step + .step::before { content: none; }

/* closing */
.good { list-style: none; padding: 0; margin: 0 0 40px; }
.good li { font-size: 28px; line-height: 1.45; color: var(--ink-2); padding: 14px 0 14px 40px; border-bottom: 1px solid var(--line); position: relative; }
.good li::before { content: "✓"; position: absolute; left: 4px; color: var(--solution); font-weight: 700; }

/* ---------- proposal mocks ---------- */
.is-mock .screen { background: #fbfbfa; }
.mock {
  height: 100%; padding: 50px 16px 16px; display: flex; flex-direction: column; gap: 10px;
  font-size: 12px; color: #111;
}
.mock svg { width: 16px; height: 16px; stroke-width: 1.8; }
.m-bar { display: grid; grid-template-columns: 24px 1fr 24px; align-items: center; text-align: center; font-size: 15px; }
.m-src { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid #eee; border-radius: 14px; padding: 8px; }
.m-src b, .m-meta b { display: block; font-size: 12.5px; }
.m-src small, .m-meta small { color: #888; font-size: 11px; display: flex; align-items: center; gap: 4px; }
.m-meta small svg { width: 11px; height: 11px; }
.m-art { width: 38px; height: 38px; border-radius: 9px; background: linear-gradient(135deg, #e94f6b, #f6c343 45%, #37b6c9); flex: none; }
.m-h { font-weight: 700; font-size: 12.5px; margin-top: 4px; }
.m-h em { font-weight: 400; color: #999; font-style: normal; margin-left: 4px; }
.m-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.m-tile {
  aspect-ratio: 1; border-radius: 14px; background: #fff; border: 1px solid #ececec;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  font-size: 10.5px; font-weight: 500; color: #555;
}
.m-tile svg { width: 22px; height: 22px; stroke-width: 1.6; }
.m-tile.on { background: #111; color: #fff; border-color: #111; }
.m-vocals { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.m-vox { display: flex; align-items: center; gap: 7px; background: #fff; border: 1px solid #ececec; border-radius: 999px; padding: 5px 10px 5px 5px; font-size: 11px; font-weight: 500; }
.m-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.m-dot svg { width: 10px; height: 10px; fill: #111; stroke: none; }
.m-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.m-chips span { border: 1px solid #ececec; background: #fff; border-radius: 999px; padding: 6px 11px; font-size: 11px; font-weight: 500; }
.m-chips span.on { background: #111; color: #fff; border-color: #111; }
.m-input { border: 1px dashed #d8d8d8; border-radius: 14px; padding: 10px 12px; color: #aaa; }
.m-cta {
  margin-top: auto; background: #111; color: #fff; border-radius: 999px; padding: 13px 16px;
  display: flex; align-items: center; justify-content: center; gap: 7px; font-weight: 600; font-size: 13.5px;
}
.m-cta span { opacity: .6; font-weight: 500; margin-left: 4px; }
.m-cover { height: 150px; border-radius: 18px; background: radial-gradient(circle at 30% 30%, #f6c343, transparent 55%), radial-gradient(circle at 75% 70%, #37b6c9, transparent 55%), linear-gradient(135deg, #e94f6b, #7b4bd6); }
.m-row { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #eee; border-radius: 14px; padding: 8px; }
.m-thumb { width: 38px; height: 38px; border-radius: 9px; flex: none; background: linear-gradient(135deg, #e94f6b, #f6c343); }
.m-thumb.v2 { background: linear-gradient(135deg, #37b6c9, #7b4bd6); }
.m-thumb.v3 { background: linear-gradient(135deg, #f6c343, #37b6c9); }
.m-thumb.v4 { background: linear-gradient(135deg, #7b4bd6, #e94f6b); }
.m-meta { flex: 1; min-width: 0; }
.m-row.locked .m-thumb { filter: saturate(.5) brightness(.95); }
.m-prev { display: block; height: 4px; border-radius: 4px; background: #eee; margin: 5px 0 4px; overflow: hidden; }
.m-prev i { display: block; height: 100%; background: #111; }
.m-play { width: 30px; height: 30px; border-radius: 50%; background: #f1f1f1; display: grid; place-items: center; flex: none; }
.m-play svg { width: 13px; height: 13px; }
.m-note { text-align: center; color: #999; font-size: 10.5px; }

/* ---------- chrome ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 5; }
.progress-bar { height: 100%; width: 0; background: var(--ink); transition: width .25s ease; }
.controls {
  position: fixed; right: 20px; bottom: 16px; z-index: 5;
  display: flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, .85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px;
}
.nav-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent;
  font-size: 17px; cursor: pointer; color: var(--ink);
}
.nav-btn:hover { background: var(--line); }
.counter { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 56px; text-align: center; color: var(--ink-2); }

/* ---------- narrow screens: scrolling document ---------- */
@media (max-width: 900px) {
  body { overflow: auto; }
  .viewport { position: static; }
  .stage { position: static; width: auto; height: auto; transform: none !important; }
  .slide, .slide.active {
    position: relative; display: block; padding: 40px 16px 44px;
    border-bottom: 1px solid var(--line);
  }
  .controls { display: none; }
  .progress { display: none; }
  .s-title h1 { font-size: 56px; }
  .t-sub { font-size: 24px; margin-bottom: 20px; }
  .t-author { font-size: 17px; }
  .t-hint { display: none; }
  .t-phones { display: none; }
  .s-section h2 { font-size: 44px; }
  .media { overflow-x: auto; margin: 0 -16px 24px; padding: 4px 16px 8px; gap: 14px; scroll-snap-type: x mandatory; }
  .shot { scroll-snap-align: center; }
  .screen, .media.n2 .screen, .media.n3 .screen { --h: 480px; border-radius: 26px; }
  .is-wide .screen { width: 240px; }
  .mock { zoom: .72; height: calc(100% / .72); }
  .copy h2, .wide-media .copy h2 { font-size: 30px; margin-bottom: 20px; }
  .eyebrow { font-size: 13px; flex-wrap: wrap; }
  .block p, .block li, .wide-media .block p, .wide-media .block li { font-size: 17px; }
  .good li { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .progress-bar { transition: none; }
}
