:root {
  --ink: #171013;
  --paper: #f7f1e9;
  --cream: #fffaf4;
  --coral: #f0655b;
  --pink: #e9a4b8;
  --wine: #6c2639;
  --gold: #d8a94b;
  --sage: #8ea98d;
  --muted: #74686b;
  --line: rgba(23,16,19,.13);
  --shadow: 0 28px 90px rgba(45,18,26,.18);
  font-family: Assistant, Heebo, system-ui, sans-serif;
  color: var(--ink);
  background: #120d0f;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; overflow: hidden; }
button { font: inherit; }
body { background: radial-gradient(circle at 15% 15%, #362027 0, transparent 34%), #120d0f; }

#deck { position: fixed; inset: 0; }
.slide { position: absolute; inset: 0; display: none; overflow: hidden; background: var(--paper); isolation: isolate; }
.slide.active { display: block; animation: enter .45s cubic-bezier(.2,.8,.2,1); }
.slide::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(rgba(23,16,19,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(23,16,19,.035) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 85%); }
.slide::after { content: attr(data-number); position: absolute; left: 4vw; top: 2.8vw; z-index: -1; color: rgba(108,38,57,.055); font: 900 min(19vw, 260px)/1 Heebo; letter-spacing: -.08em; }
.canvas { width: min(100% - 9vw, 1500px); height: calc(100% - 110px); margin: 0 auto; padding-block: clamp(36px, 5vw, 78px) 34px; display: flex; flex-direction: column; justify-content: center; }
.eyebrow { margin: 0 0 14px; color: var(--wine); font: 800 clamp(.72rem, 1vw, .92rem) Heebo; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Heebo, Assistant, sans-serif; letter-spacing: -.055em; }
h1 { max-width: 1200px; margin-bottom: 24px; font-size: clamp(3.5rem, 7.5vw, 8.4rem); line-height: .91; }
h2 { max-width: 1250px; margin-bottom: clamp(25px, 4vw, 52px); font-size: clamp(2.8rem, 5.2vw, 6.1rem); line-height: .94; }
h2 em, h1 em { color: var(--coral); font-style: normal; }
h3 { margin-bottom: 10px; font-size: clamp(1.15rem, 1.6vw, 1.65rem); }
.lead { max-width: 980px; color: #4f4447; font-size: clamp(1.15rem, 1.65vw, 1.75rem); line-height: 1.45; }
.small { color: var(--muted); font-size: .78rem; line-height: 1.45; }
.note { padding: 13px 16px; border-right: 4px solid var(--gold); background: rgba(216,169,75,.11); color: #5f4b24; font-size: .84rem; line-height: 1.5; }
.source { position: absolute; right: 4.5vw; bottom: 90px; max-width: 760px; color: #83777a; font-size: .67rem; direction: ltr; text-align: left; }

.hero { background: #1a1115; color: var(--cream); }
.hero::before { background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); }
.hero::after { color: rgba(255,255,255,.035); }
.hero .canvas { justify-content: flex-end; padding-bottom: 9vw; }
.hero .eyebrow { color: var(--pink); }
.hero h1 { max-width: 1150px; }
.hero .lead { color: #d6c8cc; max-width: 790px; }
.hero-orbit { position: absolute; width: min(48vw, 760px); aspect-ratio: 1; left: -8vw; top: -12vw; border: 1px solid rgba(240,101,91,.25); border-radius: 50%; }
.hero-orbit::before, .hero-orbit::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(233,164,184,.16); }
.hero-orbit::before { inset: 12%; }
.hero-orbit::after { inset: 28%; background: radial-gradient(circle, rgba(240,101,91,.28), transparent 65%); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(18px, 2.4vw, 34px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(14px, 1.8vw, 24px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(12px, 1.4vw, 20px); }
.card { min-height: 150px; padding: clamp(18px, 2.1vw, 30px); border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.54); box-shadow: 0 14px 40px rgba(37,15,21,.05); }
.card.dark { background: var(--ink); color: white; }
.card.accent { background: var(--coral); color: white; border-color: transparent; }
.card p { color: var(--muted); line-height: 1.48; margin: 0; }
.card.dark p, .card.accent p { color: rgba(255,255,255,.72); }
.card .number { display: block; margin-bottom: 16px; font: 900 clamp(2.2rem, 4vw, 4.6rem)/.9 Heebo; letter-spacing: -.06em; }
.card .label { display: block; color: var(--wine); font-size: .78rem; font-weight: 800; }
.card.dark .label, .card.accent .label { color: var(--pink); }

.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 6vw; align-items: center; }
.statement { padding: 4vw; border-radius: 32px; background: var(--ink); color: white; box-shadow: var(--shadow); }
.statement strong { display: block; font: 800 clamp(2rem, 3.5vw, 4rem)/1.08 Heebo; letter-spacing: -.055em; }
.statement strong em { color: var(--pink); font-style: normal; }

.list { display: grid; gap: 11px; padding: 0; margin: 0; list-style: none; }
.list li { position: relative; padding: 12px 42px 12px 14px; border-bottom: 1px solid var(--line); font-size: clamp(.9rem, 1.12vw, 1.1rem); line-height: 1.4; }
.list li::before { content: ""; position: absolute; right: 12px; top: 19px; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.list.compact { grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 30px; }

.flow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 9px; align-items: stretch; direction: rtl; }
.flow-step { min-height: 155px; padding: 18px 12px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.56); display: flex; flex-direction: column; justify-content: space-between; }
.flow-step span { color: var(--coral); font: 900 1.8rem Heebo; }
.flow-step strong { font-size: .95rem; }
.flow-arrow { display: none; }

.metric-bars { display: grid; gap: 18px; }
.bar-row { display: grid; grid-template-columns: 160px 1fr 90px; gap: 18px; align-items: center; }
.bar { height: 20px; border-radius: 999px; background: rgba(108,38,57,.09); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--coral), var(--wine)); }
.bar-row strong { font: 900 1.35rem Heebo; }

.roadmap { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.phase { min-height: 310px; padding: 26px 22px; border-radius: 24px; color: white; background: var(--ink); position: relative; overflow: hidden; }
.phase:nth-child(2) { background: var(--wine); }
.phase:nth-child(3) { background: #b54d4d; }
.phase:nth-child(4) { background: var(--coral); }
.phase b { display: block; color: rgba(255,255,255,.5); font: 900 3.8rem/1 Heebo; }
.phase h3 { margin-top: 30px; }
.phase p { color: rgba(255,255,255,.72); font-size: .86rem; line-height: 1.45; }
.phase small { position: absolute; right: 22px; bottom: 20px; color: white; font-weight: 800; }

.timeline { position: relative; display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; padding-top: 36px; }
.timeline::before { content: ""; position: absolute; right: 0; left: 0; top: 13px; height: 3px; background: linear-gradient(90deg, var(--pink), var(--coral), var(--wine)); }
.timeline-card { position: relative; min-height: 290px; padding: 25px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.62); }
.timeline-card::before { content: ""; position: absolute; right: 22px; top: -31px; width: 16px; height: 16px; border: 4px solid var(--paper); border-radius: 50%; background: var(--coral); }
.timeline-card span { color: var(--wine); font-weight: 800; }
.timeline-card ul { padding-right: 18px; color: var(--muted); line-height: 1.45; font-size: .84rem; }

.formula { padding: 26px 30px; border-radius: 22px; background: var(--ink); color: white; direction: ltr; text-align: center; font: 800 clamp(1rem, 1.55vw, 1.45rem) Heebo; letter-spacing: -.02em; }
.scenario-table { width: 100%; border-collapse: collapse; margin-top: 25px; font-size: clamp(.72rem, .95vw, .9rem); }
.scenario-table th, .scenario-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: center; }
.scenario-table th { color: var(--wine); font-size: .74rem; }
.scenario-table td:last-child { font-weight: 900; color: var(--wine); }

.kpi { display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px; }
.kpi-panel { padding: 26px; border-radius: 25px; background: white; border: 1px solid var(--line); }
.kpi-row { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.kpi-row:last-child { border-bottom: 0; }
.kpi-row strong { color: var(--wine); }
.kpi-panel[style*="background:var(--ink)"] .kpi-row strong { color: var(--pink); }

.decision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.decision { min-height: 115px; padding: 23px 25px; border-radius: 20px; background: white; border: 1px solid var(--line); display: grid; grid-template-columns: 45px 1fr; gap: 13px; align-items: start; }
.decision span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--coral); color: white; font-weight: 900; }
.decision p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.final-slide h2 { font-size: clamp(2.5rem, 4.6vw, 5.2rem); margin-bottom: 28px; }
.final-slide .decision { min-height: 100px; padding-block: 18px; }
.final-slide .statement { margin-top: 18px !important; padding: 2vw 3vw; }
.final-slide .statement strong { font-size: clamp(1.65rem, 2.55vw, 3rem); }

.chrome { position: fixed; right: 0; left: 0; bottom: 0; height: 76px; z-index: 100; display: grid; grid-template-columns: auto 1fr auto auto; gap: 24px; align-items: center; padding: 0 3.5vw; color: white; background: rgba(18,13,15,.96); border-top: 1px solid rgba(255,255,255,.09); backdrop-filter: blur(18px); }
.deck-brand { display: flex; align-items: center; gap: 9px; font: 800 .68rem Heebo; letter-spacing: .11em; direction: ltr; }
.deck-brand i { width: 20px; height: 1px; background: var(--coral); }
.progress { height: 3px; background: rgba(255,255,255,.13); }
.progress span { display: block; width: 0; height: 100%; background: var(--coral); transition: width .3s ease; }
.counter { display: flex; gap: 5px; align-items: baseline; direction: ltr; color: rgba(255,255,255,.55); }
.counter strong { color: white; font: 900 1.4rem Heebo; }
.controls { display: flex; gap: 8px; direction: ltr; }
.controls button, .overview-head button { min-height: 38px; padding: 0 13px; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; color: white; background: transparent; cursor: pointer; }
.controls .round { width: 40px; padding: 0; border-radius: 50%; font-size: 1.15rem; }
.controls button:hover, .controls button:focus { background: rgba(255,255,255,.1); }

.overview { width: min(1100px, calc(100% - 40px)); max-height: 82vh; padding: 0; border: 1px solid rgba(255,255,255,.15); border-radius: 24px; color: white; background: #171013; box-shadow: 0 35px 100px rgba(0,0,0,.55); }
.overview::backdrop { background: rgba(9,6,7,.78); backdrop-filter: blur(8px); }
.overview-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 22px; background: #171013; border-bottom: 1px solid rgba(255,255,255,.1); }
.overview-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; padding: 20px; }
.overview-card { min-height: 120px; padding: 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 15px; color: white; background: rgba(255,255,255,.03); cursor: pointer; text-align: right; }
.overview-card:hover { border-color: var(--coral); }
.overview-card span { color: var(--pink); font-size: .68rem; }
.overview-card strong { display: block; margin-top: 12px; font-size: .9rem; }

@keyframes enter { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: translateX(0); } }

@media (max-width: 900px) {
  .canvas { width: min(100% - 38px, 780px); height: calc(100% - 70px); padding-block: 35px 25px; justify-content: flex-start; overflow-y: auto; }
  h1 { font-size: clamp(3rem, 14vw, 5rem); }
  h2 { font-size: clamp(2.35rem, 10vw, 4rem); margin-bottom: 26px; }
  .grid-2, .grid-3, .grid-4, .split, .kpi, .decision-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: repeat(2,1fr); }
  .roadmap, .timeline { grid-template-columns: 1fr 1fr; }
  .timeline::before, .timeline-card::before { display: none; }
  .timeline { padding-top: 0; }
  .card, .phase, .timeline-card { min-height: auto; }
  .list.compact { grid-template-columns: 1fr; }
  .source { position: static; margin-top: 18px; }
  .chrome { height: 62px; grid-template-columns: 1fr auto auto; gap: 10px; padding: 0 12px; }
  .deck-brand, .progress, .controls button:not(.round) { display: none; }
  .overview-grid { grid-template-columns: repeat(2,1fr); }
  .scenario-table { min-width: 760px; }
  .table-scroll { overflow-x: auto; }
}

@media print {
  html, body { overflow: visible; background: white; }
  #deck { position: static; }
  .slide { position: relative; display: block !important; width: 13.333in; height: 7.5in; page-break-after: always; }
  .canvas { height: 100%; padding-bottom: 30px; }
  .chrome { display: none; }
}

@media (prefers-reduced-motion: reduce) { .slide.active { animation: none; } }
