:root {
  --forest: #123e35;
  --forest-2: #1e5b4a;
  --leaf: #71ad70;
  --lime: #d5ed8c;
  --paper: #f3efe5;
  --paper-2: #e8e0d1;
  --ink: #12231e;
  --muted: #5d6d64;
  --earth: #c66a3d;
  --warning: #efb64f;
  --danger: #bf5747;
  --white: #fffef9;
  --shadow: 0 22px 70px rgb(9 45 35 / 16%);
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body {
  background: #082a22;
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
}
button { font: inherit; }
#deck { width: 100%; height: 100%; }

.slide {
  position: absolute;
  inset: 0;
  display: none;
  overflow: hidden;
  padding: clamp(28px, 4.5vw, 64px) clamp(28px, 6vw, 92px) clamp(88px, 8vw, 112px);
  background:
    radial-gradient(circle at 89% 4%, rgb(213 237 140 / 35%), transparent 28%),
    linear-gradient(150deg, var(--paper), #fffdf7 61%);
}
.slide.active { display: flex; flex-direction: column; }
.slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 100%;
  background: linear-gradient(var(--leaf), var(--forest));
}
.slide::after {
  content: attr(data-id);
  position: absolute;
  right: 32px;
  top: 24px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}
.slide.hero {
  color: white;
  background: var(--forest);
  isolation: isolate;
}
.slide.hero::before { width: 100%; background: linear-gradient(90deg, rgb(10 37 30 / 94%), rgb(10 37 30 / 61%) 58%, rgb(10 37 30 / 20%)); z-index: -1; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.section {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--earth);
  font-size: clamp(11px, 1.2vw, 15px);
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.section::after {
  content: "";
  width: 64px;
  height: 2px;
  background: currentColor;
  opacity: .55;
}
.hero .section { color: var(--lime); }
h1 {
  max-width: 1080px;
  margin: 12px 0 8px;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(42px, 5.4vw, 78px);
  line-height: 1;
  letter-spacing: -.035em;
}
.hero h1 { max-width: 870px; font-size: clamp(48px, 6.3vw, 88px); }
.subtitle {
  max-width: 980px;
  margin: 0 0 clamp(22px, 3vw, 38px);
  color: var(--muted);
  font-size: clamp(17px, 1.8vw, 25px);
  line-height: 1.4;
}
.hero .subtitle { color: rgb(255 255 255 / 78%); }
.content { min-height: 0; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: clamp(15px, 1.8vw, 24px); }
.grid { display: grid; gap: clamp(14px, 1.7vw, 24px); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.card {
  min-width: 0;
  padding: clamp(16px, 2vw, 28px);
  border: 1px solid rgb(18 62 53 / 14%);
  border-radius: 18px;
  background: rgb(255 254 249 / 91%);
  box-shadow: 0 10px 32px rgb(9 45 35 / 8%);
}
.card strong { display: block; color: var(--forest); font-size: clamp(20px, 2.1vw, 31px); line-height: 1.1; }
.card p { margin: 10px 0 0; color: var(--muted); font-size: clamp(14px, 1.45vw, 20px); line-height: 1.45; }
.stat strong { font-size: clamp(30px, 3.4vw, 48px); }
.stat span { display: block; margin-top: 6px; color: var(--muted); font-size: clamp(13px, 1.2vw, 17px); }
.stat small { display: block; margin-top: 12px; color: var(--forest-2); font-size: 12px; font-weight: 700; }
.callout, .warning, .decision {
  padding: clamp(14px, 1.7vw, 22px) clamp(18px, 2vw, 28px);
  border-radius: 18px;
  font-size: clamp(15px, 1.5vw, 21px);
  font-weight: 700;
  line-height: 1.45;
}
.callout { background: linear-gradient(105deg, var(--forest), var(--forest-2)); color: white; }
.decision { background: var(--lime); color: var(--forest); }
.warning { border-left: 6px solid var(--warning); background: #fff5dc; color: #694b16; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.chip {
  padding: 10px 14px;
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 999px;
  background: rgb(255 255 255 / 10%);
  color: inherit;
  font-size: 13px;
  font-weight: 700;
}
.table-wrap { overflow: hidden; border-radius: 20px; border: 1px solid rgb(23 63 53 / 12%); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: clamp(12px, 1.25vw, 17px); }
th, td { padding: clamp(9px, 1.1vw, 14px) clamp(10px, 1.2vw, 18px); text-align: left; border-bottom: 1px solid rgb(23 63 53 / 10%); }
th { background: linear-gradient(100deg, var(--forest), var(--forest-2)); color: white; font-size: .82em; letter-spacing: .05em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
tbody td:first-child { color: var(--forest); font-weight: 750; }
.bar-list { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: minmax(150px, 240px) 1fr auto; align-items: center; gap: 14px; }
.bar-label { font-weight: 750; }
.bar-track { height: 18px; border-radius: 999px; background: var(--paper-2); overflow: hidden; }
.bar-fill { height: 100%; min-width: 6px; border-radius: inherit; background: linear-gradient(90deg, var(--forest), var(--leaf)); }
.bar-fill.noise { background: linear-gradient(90deg, #c6634b, #e9a685); }
.bar-fill.intent { background: linear-gradient(90deg, #a86d3d, #dfb37c); }
.bar-value { color: var(--forest); font-weight: 800; }
.bar-meta { grid-column: 2 / 4; margin-top: -8px; color: var(--muted); font-size: 12px; }
.steps .card { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: start; }
.step-n, .tag {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--forest);
  color: white;
  font-weight: 800;
}
.steps .card p { grid-column: 2; }
.evidence-img { width: 100%; max-height: min(50vh, 520px); object-fit: contain; border-radius: 18px; background: white; box-shadow: var(--shadow); }
.evidence-figure { position: relative; margin: 0; }
.owner-proof {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: min(38%, 390px);
  border: 5px solid white;
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.dual-images { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dual-images figure { margin: 0; min-width: 0; }
.dual-images img { width: 100%; height: min(46vh, 440px); object-fit: contain; border-radius: 18px; background: white; box-shadow: var(--shadow); }
figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; }
.checks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.check { padding: 14px; border-radius: 16px; background: white; border: 1px solid rgb(23 63 53 / 13%); }
.check b { display: block; margin-bottom: 7px; color: var(--forest); font-size: 11px; letter-spacing: .08em; }
.check.pending b { color: var(--earth); }
.funnel { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: stretch; gap: 0; }
.funnel .card { position: relative; border-radius: 0; }
.funnel .card:first-child { border-radius: 22px 0 0 22px; }
.funnel .card:last-child { border-radius: 0 22px 22px 0; }
.funnel .card:not(:last-child)::after { content: "→"; position: absolute; right: -13px; top: 50%; z-index: 2; color: var(--earth); font-size: 27px; font-weight: 800; }
.list { margin: 12px 0 0; padding-left: 19px; color: var(--muted); font-size: clamp(13px, 1.2vw, 17px); line-height: 1.55; }
.universe { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.universe .card { padding: 17px; }
.universe .card strong { font-size: 18px; }
.universe .tags { margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.formula { padding: 20px 26px; border-radius: 18px; background: var(--forest); color: white; font-size: clamp(18px, 2vw, 28px); font-weight: 800; text-align: center; }
.status { align-self: flex-start; padding: 9px 14px; border-radius: 999px; background: #f9dfaf; color: #704b0d; font-weight: 800; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.timeline .card { position: relative; padding-top: 56px; }
.timeline .days { position: absolute; top: 16px; left: 18px; color: var(--earth); font-weight: 800; letter-spacing: .05em; }
.actions { display: grid; gap: 10px; }
.action { display: grid; grid-template-columns: 50px 1fr minmax(140px, 220px); align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px; background: white; border: 1px solid rgb(23 63 53 / 12%); }
.action b:first-child { color: var(--earth); }
.action span { color: var(--muted); font-size: 13px; }
.qa { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qa .card { padding: 16px 19px; }
.qa strong { font-size: clamp(15px, 1.4vw, 19px); }
.qa p { margin-top: 7px; font-size: clamp(13px, 1.15vw, 16px); }

.slide.layout-evidence {
  padding-top: clamp(28px, 3.2vw, 42px);
  padding-bottom: 84px;
}
.slide.layout-evidence h1 {
  max-width: 980px;
  margin-top: 7px;
  font-size: clamp(38px, 4vw, 52px);
  line-height: 1;
}
.slide.layout-evidence .subtitle { margin-bottom: 12px; }
.slide.layout-evidence .content {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: start;
  justify-content: stretch;
  gap: 10px 18px;
}
.slide.layout-evidence .evidence-figure { min-width: 0; }
.slide.layout-evidence .evidence-img { height: min(32vh, 245px); max-height: 245px; }
.slide.layout-evidence .owner-proof { width: min(54%, 380px); right: 10px; bottom: 10px; }
.slide.layout-evidence .checks { grid-template-columns: 1fr; gap: 6px; }
.slide.layout-evidence .check { padding: 8px 11px; font-size: 12px; }
.slide.layout-evidence .check b { display: inline; margin: 0 7px 0 0; }
.slide.layout-evidence .callout { grid-column: 1 / 3; }

.controls {
  position: fixed;
  z-index: 20;
  right: 22px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 999px;
  background: rgb(13 43 36 / 88%);
  color: white;
  backdrop-filter: blur(16px);
}
.controls button {
  min-width: 42px;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 10%);
  color: white;
  cursor: pointer;
}
.controls button:hover, .controls button:focus-visible { background: var(--leaf); color: var(--forest); outline: none; }
#counter { min-width: 64px; text-align: center; font-size: 12px; font-weight: 800; }
#notes {
  position: fixed;
  z-index: 30;
  inset: 0 0 0 auto;
  width: min(540px, 92vw);
  padding: 22px;
  transform: translateX(105%);
  transition: transform .22s ease;
  background: rgb(8 29 24 / 96%);
  color: white;
  box-shadow: -18px 0 70px rgb(0 0 0 / 28%);
}
#notes.open { transform: translateX(0); }
.notes-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.notes-head button { border: 0; border-radius: 999px; padding: 9px 14px; background: var(--leaf); color: var(--forest); font-weight: 800; }
#notes-content { margin: 0; height: calc(100% - 60px); overflow: auto; white-space: pre-wrap; font: 13px/1.58 "Manrope", sans-serif; color: rgb(255 255 255 / 88%); }

@media (max-width: 900px) {
  .grid.four, .grid.five, .timeline, .funnel, .checks, .universe { grid-template-columns: repeat(2, 1fr); }
  .funnel .card { border-radius: 20px !important; }
  .funnel .card::after { display: none; }
  .bar-row { grid-template-columns: 150px 1fr auto; }
  .slide { padding-bottom: 98px; overflow-y: auto; }
  .dual-images { grid-template-columns: 1fr; }
  .dual-images img { height: 32vh; }
  .slide.layout-evidence .content { grid-template-columns: 1fr; grid-template-rows: auto; }
  .slide.layout-evidence .evidence-img { height: min(30vh, 230px); }
  .slide.layout-evidence .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slide.layout-evidence .callout { grid-column: 1; }
}

@media (max-width: 560px) {
  .slide { padding: 26px 20px 92px 28px; }
  .slide::after { right: 18px; top: 16px; }
  h1, .hero h1 { font-size: clamp(36px, 11vw, 50px); }
  .subtitle { font-size: 16px; }
  .grid.two, .grid.three, .grid.four, .grid.five, .timeline, .funnel, .checks, .universe, .qa { grid-template-columns: 1fr; }
  .content { justify-content: flex-start; }
  .card { border-radius: 16px; }
  .stat strong { font-size: 30px; }
  .bar-row { grid-template-columns: 1fr auto; }
  .bar-track { grid-column: 1 / 3; }
  .bar-meta { grid-column: 1 / 3; }
  .action { grid-template-columns: 34px 1fr; }
  .action span { grid-column: 2; }
  .controls { left: 50%; right: auto; transform: translateX(-50%); bottom: 12px; }
  table { min-width: 620px; }
  .table-wrap { overflow-x: auto; }
  .slide.layout-evidence .checks { grid-template-columns: 1fr; }
  .slide.layout-evidence .evidence-img { height: 220px; }
  .slide.layout-evidence .owner-proof { display: block; width: 72%; right: 7px; bottom: 7px; border-width: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  #notes { transition: none; }
}
