:root {
  --paper: #f3eee6;
  --sand: #e9e0d2;
  --ink: #1b1612;
  --forest: #12261e;
  --cream: #f6f1ea;
  --orange: #f16606;
  --sage: #2f6a45;
  --serif: "Fraunces", "Iowan Old Style", Palatino, serif;
  --sans: "Instrument Sans", "Avenir Next", "Segoe UI", sans-serif;
  --shadow: 0 22px 50px rgba(12, 16, 12, 0.22);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--forest);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.45;
}
img { max-width: 100%; }
button, input { font: inherit; }
a { color: inherit; }
::selection { background: var(--orange); color: white; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--orange);
  z-index: 60;
  transition: width 0.35s ease;
}

.chrome {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.15rem;
  pointer-events: none;
}
.brand, .chrome-meta {
  pointer-events: auto;
  border: 1px solid rgba(28, 22, 18, 0.1);
  box-shadow: 0 8px 24px rgba(28, 22, 18, 0.08);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  background: rgba(243, 238, 230, 0.94);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.28rem 0.75rem 0.28rem 0.28rem;
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.02em;
  backdrop-filter: blur(12px);
}
.brand img { width: 28px; height: 28px; display: block; }
.chrome-meta {
  background: rgba(243, 238, 230, 0.94);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  backdrop-filter: blur(12px);
}

#deck {
  height: 100dvh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(241, 102, 6, 0.8) transparent;
}

.slide {
  position: relative;
  height: 100dvh;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  display: grid;
  justify-items: center;
  align-content: safe center;
  padding: 5rem 5vw 5.2rem;
}
.slide[data-theme="paper"] {
  background: var(--paper);
  color: var(--ink);
  --muted: #5c4f44;
  --line: rgba(28, 22, 18, 0.12);
  --heat: #c44700;
}
.slide[data-theme="sand"] {
  background: var(--sand);
  color: var(--ink);
  --muted: #5c4f44;
  --line: rgba(28, 22, 18, 0.14);
  --heat: #c44700;
}
.slide[data-theme="ink"] {
  background: var(--forest);
  color: var(--cream);
  --muted: #d2c6b6;
  --line: rgba(246, 241, 234, 0.16);
  --heat: #ff8f45;
}

.num {
  position: absolute;
  right: 2vw;
  bottom: 3.6rem;
  z-index: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(6rem, 14vw, 11rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
}
.slide > :not(.num) { position: relative; z-index: 1; }
.wrap { width: min(1120px, 100%); }

.kicker {
  margin: 0 0 0.6rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--heat);
}
h1, .display, h3.display {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin: 0;
}
h1 { font-size: clamp(3rem, 5.2vw, 5.15rem); line-height: 0.92; }
.display { font-size: clamp(2.05rem, 3.35vw, 3.25rem); max-width: 18em; }
h1 em, .display em {
  font-style: italic;
  font-weight: 500;
  color: var(--heat);
}
h3 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.3rem;
}
p { margin: 0; }
.lede {
  margin-top: 0.85rem;
  max-width: 40rem;
  font-size: 1.08rem;
  line-height: 1.45;
  color: var(--muted);
}
.fine {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}
.heat { color: var(--heat); }

.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(12px); }
.js .slide.is-in .reveal {
  animation: rise 0.7s cubic-bezier(0.16, 0.84, 0.32, 1) forwards;
}
.js .slide.is-in .d2 { animation-delay: 0.08s; }
.js .slide.is-in .d3 { animation-delay: 0.16s; }
.js .slide.is-in .d4 { animation-delay: 0.24s; }
@keyframes rise {
  to { opacity: 1; transform: none; }
}

.facts, .try {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 1.15rem 0 0;
}
.facts li, .try a, .chip {
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  font-size: 0.84rem;
  text-decoration: none;
}
.try a:hover, .textbtn:hover, .iconbtn:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }
.chip { background: color-mix(in srgb, var(--heat) 12%, transparent); border-color: transparent; }

.split-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  justify-items: stretch;
  align-items: stretch;
  align-content: stretch;
  padding: 0;
  overflow: hidden;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 3.2rem 5.5rem 6vw;
  min-width: 0;
}
.hero-visual { position: relative; height: 100%; min-height: 100dvh; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-phone {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -46%);
  height: min(78dvh, 680px);
  width: auto;
  max-width: 86%;
  border-radius: 32px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.38);
  object-fit: contain;
}
.hero-cap {
  position: absolute;
  right: 1rem;
  bottom: 5.2rem;
  background: rgba(243, 238, 230, 0.92);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
}

.two, .prescribe, .shots, .phases, .reg, .reasons, .streams, .statrow, .scenarios {
  display: grid;
  gap: 1.15rem 1.6rem;
}
.two { grid-template-columns: 1fr 1fr; align-items: center; margin-top: 1rem; }
.two.top { align-items: start; }
.prescribe { grid-template-columns: 0.86fr 1.14fr; align-items: center; margin-top: 0.8rem; }
.shots { grid-template-columns: 1fr 1fr; align-items: end; margin-top: 0.8rem; }
.statrow, .scenarios, .reasons, .streams, .phases, .reg { grid-template-columns: repeat(3, 1fr); }
.statrow, .scenarios { margin-top: 1rem; }
.reasons, .streams, .phases, .reg { margin-top: 1.1rem; }
.reasons { list-style: none; padding: 0; }

.study {
  margin-top: 1.1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}
.study b, .monument, .census b, .scenario b, .stat b {
  display: block;
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.04em;
  line-height: 0.9;
}
.study b { font-size: clamp(3rem, 6vw, 4.6rem); }
.monument { font-size: clamp(4.2rem, 8vw, 6.6rem); color: var(--heat); }
.census {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 0.9rem;
  border-top: 1px solid var(--line);
}
.census article, .fails li, .fund-list li {
  border-bottom: 1px solid var(--line);
}
.census article { padding: 0.75rem 0.9rem 0.75rem 0; }
.census b { font-size: clamp(1.7rem, 2.6vw, 2.45rem); }
.census span, .stat span, .scenario span { display: block; margin-top: 0.3rem; font-size: 0.92rem; }
.census small, .scenario small { display: block; margin-top: 0.2rem; color: var(--muted); font-size: 0.75rem; }

.fails, .checks, .proof, .hires, .sources, .steps { list-style: none; padding: 0; margin: 0.8rem 0 0; }
.fails li, .steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}
.fails li:last-child, .steps li:last-child { border-bottom: 1px solid var(--line); }
.idx {
  font-family: var(--serif);
  font-style: italic;
  color: var(--heat);
  font-size: 1.25rem;
}
.fails strong, .steps strong, .hires strong { display: block; }

.frame { display: flex; justify-content: center; }
.frame img {
  width: auto;
  max-width: 100%;
  max-height: var(--shot, 56vh);
  height: auto;
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.slide[data-theme="ink"] .frame img {
  box-shadow: 0 0 0 1px rgba(246, 241, 234, 0.16), 0 22px 50px rgba(0, 0, 0, 0.35);
}
.cap { margin-top: 0.4rem; text-align: center; color: var(--muted); font-size: 0.75rem; }

.methods { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; margin-top: 0.8rem; }
.methods div, .feature {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.7rem 0.8rem;
}
.methods b { display: block; font-size: 0.95rem; }
.feature { margin-top: 0.55rem; }
.feature b { font-family: var(--serif); font-size: 1.15rem; }

blockquote {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
blockquote footer {
  margin-top: 0.75rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--muted);
}

.compare, .versus {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.9rem;
  font-size: 0.92rem;
}
.compare th, .compare td, .versus th, .versus td {
  text-align: left;
  padding: 0.48rem 0.55rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare th:last-child, .versus tr.us td {
  background: color-mix(in srgb, var(--heat) 16%, transparent);
}
.versus a { text-decoration-thickness: 1px; text-underline-offset: 0.15em; }

#taste { display: block; padding: 0; }
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  height: 100%;
}
.gallery figure { position: relative; margin: 0; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 3rem 0.9rem 4.8rem;
  background: linear-gradient(to top, rgba(16, 12, 8, 0.75), transparent);
  color: white;
  font-family: var(--serif);
  font-size: 1.25rem;
}
#taste .taste-head, #taste .medallion {
  position: absolute;
  z-index: 2;
  background: rgba(18, 22, 18, 0.82);
  color: var(--cream);
  backdrop-filter: blur(10px);
}
.taste-head {
  top: 5.1rem;
  left: 1.2rem;
  max-width: 26rem;
  padding: 1rem 1.1rem 1.05rem;
  border-radius: 16px;
}
.taste-head .display { font-size: clamp(1.7rem, 2.6vw, 2.35rem); }
.medallion {
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
  width: min(380px, 86vw);
  padding: 0.95rem 1.05rem;
  border-radius: 16px;
  background: var(--cream);
  color: var(--ink);
}
.medallion b {
  display: block;
  font-family: var(--serif);
  font-size: 2.6rem;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: #c44700;
}

.wide-note {
  margin-top: 0.8rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}
.scenario {
  border-top: 2px solid var(--heat);
  padding-top: 0.7rem;
}
.scenario b { font-size: clamp(2rem, 3vw, 2.7rem); }
.path {
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
}
.path b { display: block; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--heat); }

.fundbar {
  display: flex;
  height: 18px;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.9rem;
}
.fundbar span { display: block; min-width: 8px; }
.c1 { background: #f16606; }
.c2 { background: #1e4a34; }
.c3 { background: #c4a574; }
.c4 { background: #7d9a78; }
.c5 { background: #d9cfc2; }
.fund-list { list-style: none; padding: 0; margin: 0.4rem 0 0; }
.fund-list li {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.48rem 0;
}
.swatch { width: 14px; height: 14px; border-radius: 4px; }
.fund-list em { font-style: normal; font-variant-numeric: tabular-nums; font-weight: 600; }
.fund-list small { display: block; color: var(--muted); font-size: 0.8rem; }

.phases, .reg { list-style: none; padding: 0; }
.phases li, .reg li { border-top: 2px solid var(--heat); padding-top: 0.75rem; }
.when {
  margin-bottom: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--heat);
}
.phases ul, .reg p { margin: 0.45rem 0 0; padding-left: 1.1rem; color: var(--muted); }
.reg p { padding-left: 0; }

.checks li, .hires li { padding: 0.38rem 0 0.38rem 0.9rem; position: relative; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--sage);
}
.proof { counter-reset: proof; }
.proof li {
  counter-increment: proof;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: baseline;
  padding: 0.45rem 0;
  border-top: 1px solid var(--line);
}
.proof li::before {
  content: counter(proof);
  font-family: var(--serif);
  font-style: italic;
  color: var(--heat);
  font-size: 1.3rem;
}
.fly {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.fly li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.75rem;
  font-family: var(--serif);
}
.fly li:not(:last-child)::after { content: "→"; color: var(--heat); }

.person { font-family: var(--serif); font-size: clamp(2rem, 3vw, 2.7rem); letter-spacing: -0.03em; margin: 0; }
.hires { list-style: none; padding: 0; }
.hires li { padding: 0.65rem 0; border-top: 1px solid var(--line); }
.hires span { display: block; color: var(--muted); font-size: 0.92rem; }

.ctas { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.15rem; }
.cta {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: var(--orange);
  color: white;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-weight: 600;
}
.cta.ghost {
  background: transparent;
  color: inherit;
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
}
.mail { display: inline-block; margin-top: 0.9rem; color: var(--heat); }

.tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.8rem 0; }
.tabs button {
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.panel { display: none; max-height: min(50vh, 460px); overflow: auto; padding-right: 0.4rem; }
.panel.active { display: block; }
.econ { width: 100%; border-collapse: collapse; }
.econ td { padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.econ td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.econ tr.total td { font-family: var(--serif); font-size: 1.15rem; }
.sources li { padding: 0.42rem 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.sources a { font-weight: 600; }
.panel h3 { margin: 0.8rem 0 0.2rem; font-size: 1rem; }

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.9rem;
  background: rgba(243, 238, 230, 0.94);
  color: var(--ink);
  border-top: 1px solid rgba(28, 22, 18, 0.08);
  backdrop-filter: blur(16px);
}
.dock-title { flex: 1; min-width: 0; margin: 0; font-size: 0.92rem; }
.dock-title span { color: #5c4f44; margin-right: 0.45rem; font-variant-numeric: tabular-nums; }
.dock-actions { display: flex; gap: 0.4rem; }
.iconbtn, .textbtn {
  border: 1px solid rgba(28, 22, 18, 0.16);
  background: transparent;
  color: inherit;
  border-radius: 999px;
  height: 2.35rem;
  cursor: pointer;
}
.iconbtn { width: 2.35rem; }
.textbtn { padding: 0 0.8rem; }

dialog { border: 0; padding: 0; background: transparent; width: min(820px, calc(100% - 1.5rem)); }
dialog::backdrop { background: rgba(16, 18, 14, 0.62); }
.sheet {
  background: var(--paper);
  color: var(--ink);
  border-radius: 18px;
  padding: 1.2rem 1.2rem 1rem;
  max-height: min(78dvh, 680px);
  overflow: auto;
}
.sheet header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6rem; }
.sheet h2 { font-family: var(--serif); font-weight: 560; margin: 0; }
#index-list {
  columns: 2;
  list-style: none;
  padding: 0;
  margin: 0;
}
#index-list a {
  display: flex;
  gap: 0.6rem;
  text-decoration: none;
  padding: 0.38rem 0.2rem;
  border-radius: 8px;
}
#index-list a:hover, #index-list a[aria-current="true"] { background: rgba(241, 102, 6, 0.12); }
#index-list span { color: #c44700; font-variant-numeric: tabular-nums; width: 1.6rem; }

@media (max-width: 980px) {
  .split-hero, .two, .prescribe, .shots, .phases, .reg, .reasons, .streams, .statrow, .scenarios {
    grid-template-columns: 1fr;
  }
  .census { grid-template-columns: 1fr 1fr; }
  .hero-visual { height: 34vh; }
  .hero-phone {
    height: min(52dvh, 420px);
    transform: translate(-50%, -42%);
  }
  .hero-copy { padding: 5.2rem 1.2rem 1rem; }
  .slide { overflow: auto; }
  .frame img { --shot: 42vh; }
  #full { display: none; }
  .chrome-meta { display: none; }
  #index-list { columns: 1; }
  .gallery figcaption { font-size: 0.85rem; padding-bottom: 4.2rem; }
  .medallion { top: auto; bottom: 4.6rem; transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; animation: none; }
  .progress { transition: none; }
  #deck { scroll-behavior: auto; }
}

.slide.dense { align-content: start; overflow: auto; }
.matrix, .cheques {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.7rem;
  font-size: 0.78rem;
  line-height: 1.35;
}
.matrix th, .matrix td, .cheques td {
  text-align: left;
  vertical-align: top;
  padding: 0.38rem 0.4rem;
  border-bottom: 1px solid var(--line);
}
.matrix th.us, .matrix td.us { background: color-mix(in srgb, var(--heat) 14%, transparent); }
.matrix-wrap { overflow-x: auto; }
.pair4 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 1.1rem; margin-top: 0.75rem; }
.block { border-top: 1px solid var(--line); padding-top: 0.5rem; }
.block b { display: block; }
.notice p { margin-top: 0.65rem; }
@media (max-width: 980px) {
  .pair4 { grid-template-columns: 1fr; }
}

@media print {
  .chrome, .dock, .progress, .num, dialog { display: none !important; }
  html, body, #deck, .slide { height: auto; overflow: visible; }
  .slide { break-after: page; min-height: auto; }
}
