:root {
  --paper: #e9e0cf;
  --paper-light: #f4efe5;
  --paper-dark: #d8cbb5;
  --ink: #171815;
  --muted: #706b61;
  --red: #a8372c;
  --red-bright: #c94a37;
  --green: #304a3f;
  --green-light: #6c8374;
  --gold: #b68434;
  --line: rgba(23, 24, 21, .2);
  --line-strong: rgba(23, 24, 21, .62);
  --sans: "Noto Sans SC", "PingFang SC", sans-serif;
  --serif: "Noto Serif SC", "Songti SC", serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", monospace;
  --topbar-h: 58px;
  --rail-w: 86px;
  --max: 1480px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  width: 100%;
  overflow-x: clip;
  background: var(--paper);
}

body {
  width: 100%;
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 12%, rgba(168, 55, 44, .055), transparent 23%),
    radial-gradient(circle at 85% 76%, rgba(48, 74, 63, .055), transparent 28%),
    var(--paper);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: 1000;
  inset: 0;
  pointer-events: none;
  opacity: .23;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

[contenteditable="true"] {
  border-radius: 2px;
  outline: none;
}

[contenteditable="true"]:focus {
  background: rgba(255, 255, 255, .45);
  box-shadow: 0 0 0 3px rgba(168, 55, 44, .18);
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper-light);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: fixed;
  z-index: 120;
  top: 0;
  right: 0;
  left: 0;
  height: var(--topbar-h);
  border-bottom: 1px solid var(--line-strong);
  background: rgba(233, 224, 207, .92);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  height: 100%;
  padding: 0 22px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
}

.brand-wordmark {
  color: var(--green);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -.03em;
}

.brand-domain {
  padding-left: 11px;
  border-left: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .06em;
}

.topbar-meta {
  height: 100%;
  display: flex;
  align-items: stretch;
}

.topbar-meta > * {
  border: 0;
  border-left: 1px solid var(--line-strong);
  background: transparent;
  display: inline-flex;
  align-items: center;
}

.evidence-button,
.overview-button {
  padding: 0 18px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .05em;
}

.evidence-button:hover,
.overview-button:hover {
  background: rgba(255, 255, 255, .35);
}

.evidence-button b {
  margin-left: 7px;
  color: var(--red);
}

.status-dot {
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: #1a9a55;
  box-shadow: 0 0 0 4px rgba(26, 154, 85, .12);
}

.page-counter {
  min-width: 98px;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
}

.page-counter b {
  color: var(--red);
  font-size: 17px;
}

.rail {
  position: fixed;
  z-index: 110;
  top: var(--topbar-h);
  bottom: 0;
  left: 0;
  width: var(--rail-w);
  border-right: 1px solid var(--line-strong);
  background: rgba(233, 224, 207, .86);
}

.rail ol {
  height: 100%;
  margin: 0;
  padding: 12px 0;
  list-style: none;
  display: grid;
  grid-template-rows: repeat(9, 1fr);
}

.rail a {
  position: relative;
  height: 100%;
  min-height: 54px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  color: var(--muted);
}

.rail a::after {
  position: absolute;
  top: 50%;
  right: -1px;
  width: 4px;
  height: 0;
  background: var(--red);
  content: "";
  transform: translateY(-50%);
  transition: height .25s ease;
}

.rail a span {
  font-family: var(--mono);
  font-size: 10px;
}

.rail a b {
  font-size: 12px;
  font-weight: 500;
}

.rail a:hover,
.rail a[aria-current="page"] {
  color: var(--ink);
}

.rail a[aria-current="page"]::after {
  height: 64%;
}

.progress-track {
  position: fixed;
  z-index: 130;
  right: 0;
  bottom: 0;
  left: var(--rail-w);
  height: 4px;
  background: rgba(23, 24, 21, .12);
}

.progress-track span {
  display: block;
  width: 11.111%;
  height: 100%;
  background: var(--red);
  transition: width .28s ease;
}

.slide {
  position: relative;
  max-width: 100vw;
  min-height: 100svh;
  padding: calc(var(--topbar-h) + 34px) 42px 36px calc(var(--rail-w) + 42px);
  overflow: hidden;
  overflow-x: clip;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  isolation: isolate;
}

.slide::after {
  position: absolute;
  z-index: -1;
  top: var(--topbar-h);
  right: 0;
  bottom: 0;
  left: var(--rail-w);
  opacity: .36;
  content: "";
  background-image:
    linear-gradient(rgba(23, 24, 21, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 24, 21, .055) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 85%, transparent);
}

.slide-no {
  position: absolute;
  z-index: -1;
  right: 2vw;
  bottom: -5vw;
  color: rgba(23, 24, 21, .035);
  font-family: var(--serif);
  font-size: clamp(200px, 32vw, 540px);
  font-weight: 900;
  line-height: .8;
}

.slide-inner {
  width: min(100%, var(--max));
  min-height: calc(100svh - var(--topbar-h) - 70px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.section-heading {
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

.kicker,
.eyebrow,
.claim-tag,
.slide span,
.slide dt {
  font-family: var(--mono);
}

.kicker {
  display: block;
  margin-bottom: 11px;
  color: var(--red);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
}

.section-heading h2 {
  max-width: 1040px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(31px, 3.2vw, 58px);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.12;
}

.claim-tag {
  flex: 0 0 auto;
  border: 1px solid currentColor;
  padding: 7px 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  cursor: pointer;
}

.claim-tag.live {
  color: #19683e;
}

.claim-tag.evidence {
  color: #315c8f;
}

.claim-tag.plan {
  color: #8b641c;
}

.claim-tag.thesis,
.claim-tag.assumption {
  color: var(--red);
}

.cover-slide {
  background:
    linear-gradient(90deg, rgba(233, 224, 207, .98) 0 48%, rgba(233, 224, 207, .5) 66%, transparent),
    var(--paper);
}

.cover-slide::after {
  background-size: 56px 56px;
}

.cover-copy {
  position: relative;
  z-index: 2;
  justify-content: center;
}

.eyebrow {
  margin-bottom: 34px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
}

.cover-slide h1 {
  width: 66%;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(58px, 7.2vw, 120px);
  font-weight: 900;
  letter-spacing: -.07em;
  line-height: .96;
}

.cover-slide h1 em {
  position: relative;
  color: var(--red);
  font-style: normal;
}

.cover-slide h1 em::after {
  position: absolute;
  right: -1%;
  bottom: -7px;
  left: 2%;
  height: 8px;
  content: "";
  background: var(--red);
  clip-path: polygon(0 34%, 100% 0, 97% 100%, 2% 78%);
  opacity: .5;
}

.cover-deck {
  width: min(60%, 760px);
  margin: 34px 0 0;
  color: var(--green);
  font-size: clamp(17px, 1.6vw, 26px);
  font-weight: 600;
  line-height: 1.6;
}

.cover-thesis {
  width: min(58%, 720px);
  margin-top: 38px;
  padding: 18px 0 0 112px;
  border-top: 1px solid var(--line-strong);
  position: relative;
}

.cover-thesis > span {
  position: absolute;
  top: 24px;
  left: 0;
  color: var(--red);
  font-size: 10px;
  font-weight: 600;
}

.cover-thesis p {
  margin: 0;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.8;
}

.cover-footer {
  width: min(62%, 760px);
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 11px;
}

.primary-link {
  padding: 13px 17px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper-light);
  text-decoration: none;
  font-weight: 600;
}

.primary-link span {
  margin-left: 22px;
}

.cover-orbit {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 5vw;
  width: min(44vw, 700px);
  aspect-ratio: 1;
  transform: translateY(-45%);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(23, 24, 21, .28);
  border-radius: 50%;
  inset: 10%;
}

.orbit-one {
  border-style: dashed;
  animation: rotate 22s linear infinite;
}

.orbit-two {
  inset: 24%;
  border-color: rgba(168, 55, 44, .5);
  animation: rotateReverse 15s linear infinite;
}

.orbit-one::before,
.orbit-two::before {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--red);
  content: "";
}

.orbit-one::before {
  top: 17%;
  right: 10%;
}

.orbit-two::before {
  bottom: 8%;
  left: 26%;
  background: var(--green);
}

.orbit-label {
  position: absolute;
  padding: 5px 8px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  font-size: 9px;
  letter-spacing: .1em;
}

.label-a { top: 8%; left: 46%; }
.label-b { top: 51%; right: 0; }
.label-c { right: 48%; bottom: 1%; }
.label-d { top: 48%; left: 0; }

.food-core {
  position: absolute;
  inset: 34%;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 12px var(--paper), 0 0 0 13px var(--ink);
  display: grid;
  place-items: center;
  color: var(--paper-light);
  text-align: center;
}

.food-core b {
  z-index: 2;
  font-family: var(--mono);
  font-size: clamp(13px, 1.6vw, 24px);
  line-height: 1.1;
  letter-spacing: .08em;
}

.food-core i {
  position: absolute;
  width: 55%;
  height: 14%;
  border-radius: 50%;
  background: rgba(244, 239, 229, .8);
  transform-origin: center;
}

.food-core i:nth-child(1) { transform: rotate(4deg) translateY(-175%); }
.food-core i:nth-child(2) { transform: rotate(46deg) translateY(-120%); }
.food-core i:nth-child(3) { transform: rotate(-42deg) translateY(130%); }
.food-core i:nth-child(4) { transform: rotate(84deg) translateY(160%); }
.food-core i:nth-child(5) { transform: rotate(-8deg) translateY(185%); }

@keyframes rotate {
  to { transform: rotate(360deg); }
}

@keyframes rotateReverse {
  to { transform: rotate(-360deg); }
}

.problem-layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(500px, 1.05fr) minmax(420px, .95fr);
  gap: clamp(36px, 5vw, 88px);
  align-items: center;
}

.blackbox {
  border: 1px solid var(--line-strong);
  background: rgba(23, 24, 21, .94);
  color: var(--paper-light);
}

.blackbox-head {
  min-height: 54px;
  padding: 9px 11px 9px 18px;
  border-bottom: 1px solid rgba(244, 239, 229, .3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.blackbox-head > span {
  font-size: 10px;
  letter-spacing: .08em;
}

.mode-switch {
  padding: 3px;
  border: 1px solid rgba(244, 239, 229, .32);
  display: flex;
}

.mode-switch button {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: rgba(244, 239, 229, .65);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10px;
}

.mode-switch button.active {
  background: var(--paper-light);
  color: var(--ink);
}

.dish-plate {
  position: relative;
  width: min(58%, 330px);
  margin: 20px auto 8px;
  aspect-ratio: 1;
}

.plate-ring {
  position: absolute;
  border: 1px solid rgba(244, 239, 229, .2);
  border-radius: 50%;
  inset: 0;
}

.ring-a {
  inset: 9%;
  border-color: rgba(244, 239, 229, .65);
}

.ring-b {
  inset: 24%;
  border-style: dashed;
}

.plate-food {
  position: absolute;
  border-radius: 50%;
  inset: 31%;
  background: #dcc77c;
  box-shadow: inset 0 0 34px rgba(83, 34, 22, .55);
  overflow: hidden;
}

.food-shape {
  position: absolute;
  border-radius: 60% 40%;
  background: var(--red-bright);
}

.food-shape.s1 { width: 52%; height: 24%; top: 12%; left: 8%; transform: rotate(25deg); }
.food-shape.s2 { width: 35%; height: 31%; top: 48%; left: 55%; background: var(--green-light); }
.food-shape.s3 { width: 44%; height: 18%; top: 65%; left: 12%; transform: rotate(-20deg); }
.food-shape.s4 { width: 22%; height: 50%; top: 15%; left: 66%; background: #f1e5c3; transform: rotate(45deg); }
.food-shape.s5 { width: 20%; height: 20%; top: 41%; left: 33%; background: #2f4c3a; }

.trace-list {
  border-top: 1px solid rgba(244, 239, 229, .25);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.trace-list button {
  min-width: 0;
  min-height: 86px;
  padding: 13px 11px;
  border: 0;
  border-right: 1px solid rgba(244, 239, 229, .2);
  background: transparent;
  color: var(--paper-light);
  text-align: left;
  cursor: pointer;
}

.trace-list button:last-child {
  border-right: 0;
}

.trace-list button:hover {
  background: rgba(255, 255, 255, .06);
}

.trace-list b {
  display: block;
  font-size: 11px;
}

.trace-list span {
  display: block;
  min-height: 32px;
  margin-top: 8px;
  color: #e98f81;
  font-size: 9px;
  line-height: 1.5;
}

.trace-list i {
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 7px;
  background: var(--red-bright);
}

.trace-list.open span {
  color: #8fd0a6;
}

.trace-list.open i {
  background: #49ad71;
}

.problem-copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.big-statement {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: clamp(21px, 2vw, 32px);
  font-weight: 700;
  line-height: 1.65;
}

.problem-points {
  border-top: 1px solid var(--line-strong);
}

.problem-points article {
  min-height: 92px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 52px 1fr;
}

.problem-points article > span {
  color: var(--red);
  font-size: 11px;
}

.problem-points h3,
.problem-points p {
  margin: 0;
}

.problem-points h3 {
  margin-bottom: 6px;
  font-size: 15px;
}

.problem-points p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.why-now-note {
  margin-top: auto;
  padding: 15px 18px;
  border-left: 4px solid var(--red);
  background: rgba(168, 55, 44, .08);
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
}

.why-now-note span {
  color: var(--red);
  font-size: 10px;
  font-weight: 600;
}

.why-now-note p {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
}

.redaction {
  display: inline-block;
  padding: 0 .2em;
  background: var(--ink);
  color: var(--paper-light);
  font-size: .9em;
  transform: rotate(-1deg);
}

.wedge-layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(520px, 1.05fr) minmax(460px, .95fr);
  gap: clamp(28px, 4vw, 70px);
  align-items: center;
}

.recipe-compiler {
  border: 1px solid var(--line-strong);
  background: rgba(244, 239, 229, .72);
}

.compiler-head {
  min-height: 45px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.compiler-head div {
  display: flex;
  gap: 5px;
}

.window-dot {
  width: 8px;
  height: 8px;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.window-dot:first-child {
  background: var(--red);
}

.compiler-head b,
.compiler-head > span {
  font-family: var(--mono);
  font-size: 10px;
}

.compiler-head > span {
  justify-self: end;
  color: var(--muted);
}

.recipe-compiler > label {
  display: block;
  padding: 20px 20px 8px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
}

.intent-line {
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr auto;
}

.intent-line input {
  min-width: 0;
  height: 49px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-right: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, .48);
  color: var(--ink);
  outline: none;
  font-size: 13px;
}

.intent-line input:focus {
  box-shadow: inset 0 -3px var(--red);
}

.intent-line button {
  min-height: 49px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  background: var(--red);
  color: white;
  cursor: pointer;
  font-weight: 600;
}

.intent-chips {
  padding: 10px 20px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.intent-chips button {
  min-height: 31px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
}

.intent-chips button:hover {
  border-color: var(--red);
  color: var(--red);
}

.compiled-recipe {
  margin: 0 20px 20px;
  padding: 19px;
  border: 1px solid var(--line-strong);
  background: var(--paper-light);
  transition: opacity .18s, transform .18s;
}

.compiled-recipe.loading {
  opacity: .45;
  transform: translateY(5px);
}

.recipe-title {
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.recipe-title span {
  color: var(--green);
  font-size: 9px;
  font-weight: 600;
}

.recipe-title h3 {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 25px;
}

.recipe-title > b {
  padding: 6px 8px;
  border: 1px solid var(--gold);
  color: #8a611d;
  font-family: var(--mono);
  font-size: 9px;
}

.compiled-recipe dl {
  margin: 6px 0 15px;
}

.compiled-recipe dl > div {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
}

.compiled-recipe dt {
  color: var(--red);
  font-size: 9px;
  font-weight: 600;
}

.compiled-recipe dd {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
}

.compiled-recipe dd.warning {
  color: var(--red);
}

.recipe-actions {
  display: flex;
  gap: 7px;
}

.recipe-actions button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
}

.recipe-actions button:first-child {
  background: var(--ink);
  color: var(--paper-light);
}

.product-proof {
  min-width: 0;
}

.product-proof figure {
  margin: 0;
  border: 1px solid var(--line-strong);
  background: white;
}

.product-proof img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8.2;
  object-fit: cover;
  object-position: center;
  filter: saturate(.72) contrast(1.04);
}

.product-proof figcaption {
  min-height: 38px;
  padding: 0 12px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 9px;
}

.product-proof figcaption a {
  color: var(--red);
  font-weight: 600;
}

.wedge-proof-grid {
  border-right: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.wedge-proof-grid article {
  min-height: 124px;
  padding: 14px;
  border-right: 1px solid var(--line);
}

.wedge-proof-grid article:last-child {
  border-right: 0;
}

.wedge-proof-grid b {
  color: var(--red);
  font-family: var(--mono);
  font-size: 9px;
}

.wedge-proof-grid h3 {
  margin: 10px 0 5px;
  font-size: 13px;
}

.wedge-proof-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.north-star {
  padding: 14px;
  border: 1px solid var(--line-strong);
  background: var(--green);
  color: var(--paper-light);
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 16px;
}

.north-star span {
  color: #b8cdbf;
  font-size: 9px;
  font-weight: 600;
}

.north-star p {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.6;
}

.market-signal {
  min-height: 126px;
  border: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, .7fr)) minmax(300px, 1.8fr);
}

.market-signal article {
  padding: 18px 20px;
  border-right: 1px solid var(--line);
  position: relative;
}

.market-signal article strong {
  font-family: var(--serif);
  font-size: clamp(38px, 4vw, 66px);
  line-height: 1;
}

.market-signal article i {
  color: var(--red);
  font-family: var(--mono);
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
}

.market-signal article p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.market-signal article button {
  position: absolute;
  top: 14px;
  right: 12px;
  padding: 4px 6px;
  border: 0;
  background: transparent;
  color: var(--red);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 8px;
}

.signal-caption {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.signal-caption span {
  margin-bottom: 8px;
  color: var(--red);
  font-size: 9px;
  font-weight: 600;
}

.signal-caption p {
  margin: 0;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
}

.persona-layout {
  flex: 1;
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(180px, .55fr) minmax(480px, 1.55fr) minmax(320px, .9fr);
  border: 1px solid var(--line-strong);
}

.persona-tabs {
  border-right: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
}

.persona-tabs button {
  flex: 1;
  min-height: 72px;
  padding: 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.persona-tabs button:last-child {
  border-bottom: 0;
}

.persona-tabs button.active {
  background: var(--red);
  color: white;
}

.persona-card {
  padding: clamp(24px, 3vw, 46px);
  border-right: 1px solid var(--line-strong);
  background: rgba(244, 239, 229, .44);
}

.persona-code {
  color: var(--red);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .08em;
}

.persona-card > h3 {
  max-width: 680px;
  margin: 18px 0 30px;
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 38px);
  line-height: 1.45;
}

.persona-jobs {
  border-top: 1px solid var(--line-strong);
}

.persona-jobs > div {
  min-height: 64px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 85px 1fr;
  gap: 18px;
}

.persona-jobs b {
  color: var(--red);
  font-size: 11px;
}

.persona-jobs p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.beachhead-actions {
  padding: 24px;
  background: var(--green);
  color: var(--paper-light);
}

.beachhead-actions > span {
  color: #b8cdbf;
  font-size: 9px;
  font-weight: 600;
}

.beachhead-actions ul {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.beachhead-actions li {
  min-height: 58px;
  padding: 14px 0;
  border-top: 1px solid rgba(244, 239, 229, .25);
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  font-size: 11px;
  line-height: 1.55;
}

.beachhead-actions li b {
  color: #d9b77d;
  font-family: var(--mono);
  font-size: 9px;
}

.chasm-map {
  min-height: 155px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: 1fr 1fr .72fr 1.15fr 1fr;
}

.stage {
  padding: 20px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stage > span {
  margin-bottom: auto;
  color: var(--red);
  font-size: 10px;
}

.stage b {
  display: block;
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 19px;
}

.stage i {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.stage.active {
  background: var(--ink);
  color: var(--paper-light);
}

.stage.active i {
  color: rgba(244, 239, 229, .7);
}

.stage.beachhead {
  position: relative;
}

.stage.beachhead::after {
  position: absolute;
  top: 7px;
  right: 7px;
  padding: 4px 6px;
  background: var(--red);
  color: white;
  content: "CUTOVER";
  font-family: var(--mono);
  font-size: 8px;
}

.the-chasm {
  position: relative;
  border-right: 1px solid var(--line);
  background: repeating-linear-gradient(-45deg, var(--ink), var(--ink) 6px, #292a26 6px, #292a26 12px);
  color: var(--paper-light);
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
}

.the-chasm b {
  z-index: 2;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
}

.the-chasm span {
  position: absolute;
  bottom: -16px;
  width: 140%;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
}

.chasm-detail {
  flex: 1;
  min-height: 260px;
  padding: clamp(28px, 4vw, 54px);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 58px;
  align-items: center;
  background: rgba(244, 239, 229, .4);
}

.detail-index {
  color: var(--red);
  font-size: 10px;
  font-weight: 600;
}

.chasm-detail h3 {
  margin: 12px 0;
  font-family: var(--serif);
  font-size: clamp(24px, 2.5vw, 40px);
  line-height: 1.35;
}

.chasm-detail p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.chasm-detail dl {
  margin: 0;
  border-top: 1px solid var(--line-strong);
}

.chasm-detail dl > div {
  min-height: 54px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
}

.chasm-detail dt {
  color: var(--red);
  font-size: 9px;
  font-weight: 600;
}

.chasm-detail dd {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
}

.whole-product {
  padding: 18px 22px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  background: var(--green);
  color: var(--paper-light);
  display: grid;
  grid-template-columns: 145px 1.8fr 1fr;
  gap: 20px;
  align-items: center;
}

.whole-product > span {
  color: #b8cdbf;
  font-size: 9px;
  font-weight: 600;
}

.whole-flow {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  white-space: nowrap;
}

.whole-flow b {
  padding: 6px 8px;
  border: 1px solid rgba(244, 239, 229, .35);
}

.whole-flow i {
  color: #d9b77d;
  font-style: normal;
}

.whole-product p {
  margin: 0;
  color: rgba(244, 239, 229, .76);
  font-size: 10px;
  line-height: 1.65;
}

.history-sources {
  grid-column: 1 / -1;
  padding-top: 10px;
  border-top: 1px solid rgba(244, 239, 229, .2);
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

.history-sources a {
  color: #d9b77d;
  font-family: var(--mono);
  font-size: 9px;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.protocol-layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(520px, 1.05fr) minmax(470px, .95fr);
  gap: clamp(28px, 4vw, 66px);
  align-items: center;
}

.protocol-slide .section-heading {
  margin-bottom: 14px;
}

.protocol-slide .stack-layer {
  min-height: 88px;
  padding-top: 13px;
  padding-bottom: 13px;
}

.protocol-slide .schema-panel pre {
  min-height: 286px;
  max-height: 286px;
  padding-top: 15px;
  padding-bottom: 15px;
  line-height: 1.55;
}

.protocol-slide .schema-detail {
  min-height: 68px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.protocol-slide .protocol-moat {
  margin-top: 15px;
}

.stack-visual {
  position: relative;
}

.stack-layer {
  position: relative;
  width: 88%;
  min-height: 102px;
  margin: -1px auto 0;
  padding: 18px 24px;
  border: 1px solid var(--line-strong);
  background: var(--paper-light);
  display: grid;
  grid-template-columns: 48px 1fr 30px;
  align-items: center;
  gap: 16px;
  text-align: left;
  cursor: pointer;
  transform: perspective(600px) rotateX(4deg);
  transition: width .2s, transform .2s, background .2s;
}

.stack-layer:hover,
.stack-layer.active {
  width: 94%;
  transform: perspective(600px) rotateX(0);
}

.stack-layer.active {
  background: var(--red);
  color: white;
}

.stack-layer > span {
  color: var(--red);
  font-size: 11px;
}

.stack-layer.active > span {
  color: #f8b3a8;
}

.stack-layer b {
  display: block;
  font-family: var(--mono);
  font-size: 14px;
}

.stack-layer i {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.stack-layer.active i {
  color: rgba(255, 255, 255, .75);
}

.stack-layer em {
  font-family: var(--serif);
  font-size: 27px;
  font-style: normal;
}

.layer-network { width: 76%; z-index: 1; }
.layer-runtime { width: 82%; z-index: 2; }
.layer-file { z-index: 3; }

.compatibility-strip {
  width: 94%;
  min-height: 68px;
  margin: 16px auto 0;
  padding: 12px 16px;
  border: 1px dashed var(--line-strong);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.compatibility-strip span {
  flex: 0 0 100%;
  color: var(--muted);
  font-size: 9px;
}

.compatibility-strip a,
.compatibility-strip b {
  padding: 5px 7px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
}

.compatibility-strip a {
  color: var(--green);
}

.schema-panel {
  border: 1px solid var(--line-strong);
  background: var(--ink);
  color: #ece7dc;
}

.schema-head {
  min-height: 46px;
  padding: 0 15px;
  border-bottom: 1px solid rgba(244, 239, 229, .2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.schema-head span {
  color: #b8cdbf;
  font-size: 9px;
}

.schema-head button {
  padding: 6px 9px;
  border: 1px solid rgba(244, 239, 229, .35);
  background: transparent;
  color: var(--paper-light);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 8px;
}

.schema-panel pre {
  min-height: 340px;
  margin: 0;
  padding: 21px 24px;
  overflow: auto;
  white-space: pre-wrap;
  font-family: var(--mono);
  font-size: clamp(10px, .9vw, 13px);
  line-height: 1.7;
}

.schema-panel code > span {
  color: #ef8c7d;
}

.schema-detail {
  min-height: 82px;
  padding: 14px 20px;
  border-top: 1px solid rgba(244, 239, 229, .2);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: center;
  background: #282925;
}

.schema-detail span {
  color: #d9b77d;
  font-size: 9px;
}

.schema-detail p {
  margin: 0;
  color: rgba(244, 239, 229, .78);
  font-size: 10px;
  line-height: 1.65;
}

.protocol-moat {
  margin-top: 25px;
  border: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.protocol-moat article {
  padding: 17px 20px;
  border-right: 1px solid var(--line);
}

.protocol-moat article:last-child {
  border-right: 0;
}

.protocol-moat span {
  color: var(--red);
  font-size: 9px;
  font-weight: 600;
}

.protocol-moat h3 {
  margin: 8px 0 5px;
  font-size: 13px;
}

.protocol-moat p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.business-layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(420px, .85fr) minmax(600px, 1.15fr);
  gap: clamp(30px, 4vw, 68px);
  align-items: center;
}

.pricing-stack {
  border-top: 1px solid var(--line-strong);
}

.pricing-stack article {
  min-height: 105px;
  padding: 16px 18px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 4px 20px;
}

.pricing-stack article:nth-child(2) {
  background: rgba(168, 55, 44, .08);
}

.pricing-stack article:nth-child(3) {
  background: var(--green);
  color: var(--paper-light);
}

.pricing-stack article:nth-child(3) p,
.pricing-stack article:nth-child(3) span {
  color: rgba(244, 239, 229, .72);
}

.pricing-stack span {
  color: var(--red);
  font-size: 9px;
  font-weight: 600;
}

.pricing-stack h3 {
  margin: 3px 0 0;
  font-size: 15px;
}

.pricing-stack strong {
  grid-column: 2;
  grid-row: 1 / 3;
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 40px);
}

.pricing-stack strong small {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
}

.pricing-stack p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.market-model {
  border: 1px solid var(--line-strong);
  background: rgba(244, 239, 229, .52);
}

.model-head {
  min-height: 90px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.model-head span {
  color: var(--red);
  font-size: 9px;
}

.model-head h3 {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: 20px;
}

.currency-toggle {
  border: 1px solid var(--line-strong);
  padding: 3px;
  display: flex;
}

.currency-toggle button {
  min-height: 29px;
  padding: 0 9px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 9px;
}

.currency-toggle button.active {
  background: var(--ink);
  color: var(--paper-light);
}

.revenue-bars {
  padding: 19px 20px 8px;
}

.revenue-row {
  min-height: 70px;
  display: grid;
  grid-template-columns: 88px 1fr 70px;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 6px 12px;
}

.revenue-row > span {
  font-size: 10px;
  font-weight: 600;
}

.revenue-row > div {
  height: 12px;
  background: rgba(23, 24, 21, .09);
}

.revenue-row > div i {
  display: block;
  width: var(--bar);
  height: 100%;
  background: var(--red);
  transform-origin: left;
  animation: growBar .8s both paused;
}

.is-active .revenue-row > div i {
  animation-play-state: running;
}

@keyframes growBar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.revenue-row b {
  font-family: var(--serif);
  font-size: 17px;
  text-align: right;
}

.revenue-row em {
  grid-column: 2 / 4;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  font-style: normal;
}

.model-disclaimer {
  margin: 0;
  padding: 14px 20px;
  border-top: 1px dashed var(--line-strong);
  border-bottom: 1px dashed var(--line-strong);
  color: var(--red);
  font-size: 10px;
  line-height: 1.7;
}

.economics {
  min-height: 86px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.economics > div {
  padding: 15px;
  border-right: 1px solid var(--line);
}

.economics > div:last-child {
  border-right: 0;
}

.economics span,
.economics b {
  display: block;
}

.economics span {
  color: var(--muted);
  font-size: 8px;
}

.economics b {
  margin-top: 8px;
  font-size: 10px;
}

.growth-slide .slide-inner {
  position: relative;
}

.growth-loop {
  position: absolute;
  top: 34%;
  left: 9%;
  width: min(36vw, 540px);
  aspect-ratio: 1;
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
}

.growth-loop::before {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
  inset: 16%;
}

.loop-core {
  position: absolute;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--red);
  color: var(--paper-light);
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  inset: 30%;
}

.loop-core b {
  font-family: var(--serif);
  font-size: clamp(16px, 1.8vw, 28px);
}

.loop-core span {
  margin-top: 6px;
  font-size: 8px;
}

.growth-loop > button {
  --angle: calc(var(--n) * 72deg - 90deg);
  position: absolute;
  top: 50%;
  left: 50%;
  width: 116px;
  min-height: 70px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  background: var(--paper-light);
  cursor: pointer;
  transform:
    translate(-50%, -50%)
    rotate(var(--angle))
    translateX(calc(min(36vw, 540px) * .46))
    rotate(calc(var(--angle) * -1));
}

.growth-loop > button:hover {
  background: var(--green);
  color: var(--paper-light);
}

.growth-loop button span,
.growth-loop button b,
.growth-loop button i {
  display: block;
}

.growth-loop button span {
  color: var(--red);
  font-size: 8px;
}

.growth-loop button b {
  margin-top: 4px;
  font-size: 11px;
}

.growth-loop button i {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
}

.growth-loop > button:hover i {
  color: rgba(244, 239, 229, .7);
}

.roadmap {
  width: 48%;
  margin: auto 0 auto auto;
  border-top: 1px solid var(--line-strong);
}

.roadmap-phase {
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.roadmap-phase > button {
  width: 100%;
  min-height: 58px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 15px;
  text-align: left;
  cursor: pointer;
}

.roadmap-phase > button span {
  color: var(--red);
  font-size: 10px;
}

.roadmap-phase > button b {
  font-family: var(--serif);
  font-size: 17px;
}

.roadmap-phase > div {
  max-height: 0;
  padding: 0 16px;
  overflow: hidden;
  background: rgba(244, 239, 229, .55);
  transition: max-height .3s ease, padding .3s ease;
}

.roadmap-phase.active > button {
  background: var(--ink);
  color: var(--paper-light);
}

.roadmap-phase.active > div {
  max-height: 180px;
  padding: 16px;
}

.roadmap-phase p {
  margin: 0 0 10px;
  font-size: 10px;
  line-height: 1.65;
}

.roadmap-phase ul {
  margin: 0;
  padding: 0 0 0 18px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.75;
}

.metric-strip {
  margin-top: auto;
  min-height: 62px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: 130px repeat(4, 1fr);
  align-items: center;
}

.metric-strip span {
  color: var(--red);
  font-size: 9px;
}

.metric-strip b {
  padding: 0 14px;
  border-left: 1px solid var(--line);
  font-size: 9px;
  font-weight: 600;
}

.ask-layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(420px, .9fr) minmax(350px, .7fr) minmax(380px, .85fr);
  border: 1px solid var(--line-strong);
}

.ask-layout > div {
  padding: clamp(24px, 2.5vw, 40px);
  border-right: 1px solid var(--line-strong);
}

.ask-layout > div:last-child {
  border-right: 0;
}

.round-card {
  background: var(--red);
  color: white;
}

.round-card > span,
.round-outcomes > span {
  color: rgba(255, 255, 255, .7);
  font-size: 9px;
  font-weight: 600;
}

.round-card > strong {
  display: block;
  margin: 24px 0 10px;
  font-family: var(--serif);
  font-size: clamp(46px, 5vw, 78px);
  line-height: 1;
}

.round-card > p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 11px;
  line-height: 1.8;
}

.use-bars {
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, .35);
}

.use-bars > div {
  min-height: 62px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .25);
  display: grid;
  grid-template-columns: 1fr 38px;
  grid-template-rows: auto 4px;
  align-items: center;
  gap: 8px;
}

.use-bars span {
  font-size: 9px;
}

.use-bars i {
  width: var(--use);
  height: 4px;
  background: white;
}

.use-bars b {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--mono);
  font-size: 10px;
  text-align: right;
}

.round-outcomes {
  background: var(--green);
  color: var(--paper-light);
}

.outcome-grid {
  margin-top: 26px;
  border-top: 1px solid rgba(244, 239, 229, .3);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.outcome-grid article {
  min-height: 135px;
  padding: 18px 12px;
  border-right: 1px solid rgba(244, 239, 229, .25);
  border-bottom: 1px solid rgba(244, 239, 229, .25);
}

.outcome-grid article:nth-child(2n) {
  border-right: 0;
}

.outcome-grid strong {
  font-family: var(--serif);
  font-size: clamp(30px, 3vw, 48px);
}

.outcome-grid p {
  margin: 8px 0 0;
  color: rgba(244, 239, 229, .7);
  font-size: 9px;
}

.outcome-note {
  margin: 24px 0 0;
  padding: 13px;
  border: 1px dashed rgba(244, 239, 229, .45);
  color: rgba(244, 239, 229, .76);
  font-size: 9px;
  line-height: 1.7;
}

.team-proof-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.team-proof-head span {
  color: var(--red);
  font-size: 9px;
  font-weight: 600;
}

.team-proof-head b {
  padding: 5px 7px;
  background: var(--ink);
  color: var(--paper-light);
  font-size: 9px;
}

.team-proof > p {
  margin: 24px 0;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
}

.team-slots {
  border-top: 1px solid var(--line-strong);
}

.team-slots button {
  width: 100%;
  min-height: 72px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  display: grid;
  grid-template-columns: 32px 1fr;
  grid-template-rows: auto auto;
  gap: 3px 8px;
  text-align: left;
  cursor: pointer;
}

.team-slots button:hover {
  background: rgba(255, 255, 255, .3);
}

.team-slots span {
  grid-row: 1 / 3;
  color: var(--red);
  font-size: 9px;
}

.team-slots b {
  font-size: 11px;
}

.team-slots i {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
}

.team-missing {
  margin-top: 20px;
  padding: 13px 15px;
  border-left: 4px solid var(--red);
  background: rgba(168, 55, 44, .08);
}

.team-missing b,
.team-missing span {
  display: block;
}

.team-missing b {
  margin-bottom: 5px;
  font-size: 10px;
}

.team-missing span {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 9px;
  line-height: 1.6;
}

.final-line {
  min-height: 72px;
  padding: 0 22px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.final-line p {
  margin: 0;
  font-family: var(--serif);
  font-size: 15px;
}

.final-line p b {
  color: var(--red);
}

.final-line a {
  color: var(--red);
  font-size: 10px;
  font-weight: 600;
}

.toast {
  position: fixed;
  z-index: 300;
  right: 22px;
  bottom: 22px;
  max-width: 360px;
  padding: 13px 16px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper-light);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s, transform .2s;
  font-size: 11px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

dialog {
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--paper-light);
  color: var(--ink);
}

dialog::backdrop {
  background: rgba(23, 24, 21, .7);
  backdrop-filter: blur(4px);
}

.evidence-drawer {
  width: min(720px, 92vw);
  height: 100svh;
  margin-left: auto;
  border-left: 1px solid var(--ink);
}

.dialog-head {
  min-height: 92px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.dialog-head span {
  color: var(--red);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
}

.dialog-head h2 {
  margin: 5px 0 0;
  font-family: var(--serif);
  font-size: 24px;
}

.dialog-head button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
}

.dialog-intro {
  margin: 0;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.evidence-list {
  height: calc(100svh - 170px);
  overflow-y: auto;
}

.evidence-list article {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
}

.evidence-list h3,
.evidence-list p {
  margin: 0;
}

.evidence-list h3 {
  font-size: 14px;
}

.evidence-list p {
  margin: 7px 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.evidence-list a {
  margin-right: 10px;
  color: var(--red);
  font-size: 9px;
}

.overview-dialog {
  width: min(1120px, 92vw);
  max-height: 88svh;
  margin: auto;
  border: 1px solid var(--ink);
}

.overview-grid {
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.overview-grid a {
  min-height: 135px;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.overview-grid a:nth-child(3n) {
  border-right: 0;
}

.overview-grid a:nth-child(n + 7) {
  border-bottom: 0;
}

.overview-grid a:hover {
  background: var(--green);
  color: var(--paper-light);
}

.overview-grid span {
  color: var(--red);
  font-family: var(--mono);
  font-size: 9px;
}

.overview-grid b {
  margin-top: 13px;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
}

.overview-grid i {
  margin-top: auto;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  font-style: normal;
}

.overview-grid a:hover i {
  color: rgba(244, 239, 229, .65);
}

@media (max-width: 1200px) {
  :root {
    --rail-w: 70px;
  }

  .slide {
    padding-right: 28px;
    padding-left: calc(var(--rail-w) + 28px);
  }

  .section-heading h2 {
    font-size: clamp(30px, 3.6vw, 46px);
  }

  .cover-slide h1 {
    width: 70%;
  }

  .problem-layout,
  .wedge-layout,
  .protocol-layout {
    gap: 30px;
  }

  .whole-product {
    grid-template-columns: 120px 1fr;
  }

  .whole-product p {
    grid-column: 1 / -1;
  }

  .history-sources {
    grid-column: 1 / -1;
  }

  .ask-layout {
    grid-template-columns: 1fr 1fr;
  }

  .team-proof {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line-strong);
  }

  .team-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .team-slots button {
    padding: 12px;
    border-right: 1px solid var(--line);
  }

  .growth-loop {
    left: 5%;
  }
}

@media (max-width: 960px) {
  html {
    scroll-snap-type: none;
  }

  :root {
    --rail-w: 0px;
  }

  .brand {
    padding-left: 14px;
  }

  .brand > span:last-child {
    display: none;
  }

  .evidence-button {
    padding: 0 12px;
  }

  .evidence-button b,
  .evidence-button .status-dot {
    display: none;
  }

  .overview-button {
    display: none;
  }

  .rail {
    top: auto;
    right: 0;
    bottom: 4px;
    width: auto;
    height: 54px;
    border-top: 1px solid var(--line-strong);
    border-right: 0;
    contain: layout paint;
  }

  .rail ol {
    padding: 0;
    grid-template-columns: repeat(9, 1fr);
    grid-template-rows: 1fr;
  }

  .rail a {
    min-width: 52px;
    min-height: 50px;
  }

  .rail a::after {
    top: -1px;
    right: 50%;
    width: 0;
    height: 4px;
    transform: translateX(50%);
    transition: width .2s;
  }

  .rail a[aria-current="page"]::after {
    width: 65%;
    height: 4px;
  }

  .rail a b {
    display: none;
  }

  .progress-track {
    left: 0;
  }

  .slide {
    min-height: auto;
    padding: calc(var(--topbar-h) + 30px) 24px 84px;
    overflow: visible;
  }

  .slide-inner {
    min-height: auto;
  }

  .cover-slide {
    min-height: 100svh;
  }

  .cover-slide h1 {
    width: 86%;
  }

  .cover-deck,
  .cover-thesis,
  .cover-footer {
    width: 68%;
  }

  .cover-orbit {
    right: -6vw;
    opacity: .62;
  }

  .problem-layout,
  .wedge-layout,
  .protocol-layout,
  .business-layout {
    grid-template-columns: 1fr;
  }

  .problem-copy {
    min-height: 420px;
  }

  .market-signal {
    grid-template-columns: repeat(3, 1fr);
  }

  .signal-caption {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }

  .persona-layout {
    grid-template-columns: 180px 1fr;
  }

  .persona-card {
    border-right: 0;
  }

  .beachhead-actions {
    grid-column: 1 / -1;
  }

  .beachhead-actions ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 20px;
  }

  .chasm-map {
    overflow-x: auto;
    grid-template-columns: 190px 190px 120px 210px 190px;
  }

  .chasm-detail {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .protocol-moat {
    margin-bottom: 16px;
  }

  .growth-loop {
    position: relative;
    top: auto;
    left: auto;
    width: min(74vw, 520px);
    margin: 30px auto 70px;
  }

  .growth-loop > button {
    transform:
      translate(-50%, -50%)
      rotate(var(--angle))
      translateX(calc(min(74vw, 520px) * .46))
      rotate(calc(var(--angle) * -1));
  }

  .roadmap {
    width: 100%;
    margin: 0;
  }

  .metric-strip {
    margin-top: 20px;
  }

  .ask-layout {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .topbar-meta .page-counter {
    min-width: 72px;
  }

  .rail {
    overflow-x: auto;
  }

  .rail ol {
    min-width: 468px;
  }

  .slide {
    padding: calc(var(--topbar-h) + 24px) 16px 82px;
  }

  .slide::after {
    left: 0;
    background-size: 28px 28px;
  }

  .section-heading {
    margin-bottom: 20px;
    gap: 12px;
  }

  .section-heading h2 {
    font-size: 29px;
    letter-spacing: -.035em;
  }

  .claim-tag {
    padding: 5px 6px;
    font-size: 8px;
  }

  .cover-slide {
    min-height: 100svh;
  }

  .cover-copy {
    justify-content: flex-start;
    padding-top: 7vh;
  }

  .eyebrow {
    margin-bottom: 24px;
  }

  .cover-slide h1 {
    width: 100%;
    font-size: clamp(50px, 16vw, 74px);
  }

  .cover-deck,
  .cover-thesis,
  .cover-footer {
    width: 100%;
  }

  .cover-deck {
    margin-top: 24px;
    font-size: 16px;
  }

  .cover-thesis {
    margin-top: 28px;
    padding-left: 0;
  }

  .cover-thesis > span {
    position: static;
    display: block;
    margin-bottom: 9px;
  }

  .cover-thesis p {
    font-size: 13px;
  }

  .cover-footer {
    margin-top: auto;
    padding-top: 28px;
  }

  .cover-footer > span {
    display: none;
  }

  .cover-orbit {
    top: auto;
    right: 0;
    bottom: -10vw;
    width: 70vw;
    opacity: .22;
    transform: none;
  }

  .blackbox-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .mode-switch {
    width: 100%;
  }

  .mode-switch button {
    flex: 1;
  }

  .dish-plate {
    width: 74%;
  }

  .trace-list {
    grid-template-columns: 1fr;
  }

  .trace-list button {
    min-height: 58px;
    border-right: 0;
    border-bottom: 1px solid rgba(244, 239, 229, .2);
    display: grid;
    grid-template-columns: 90px 1fr 42px;
    align-items: center;
    gap: 10px;
  }

  .trace-list span,
  .trace-list i {
    margin: 0;
    min-height: 0;
  }

  .problem-copy {
    min-height: auto;
  }

  .intent-line {
    grid-template-columns: 1fr;
  }

  .intent-line input {
    border-right: 1px solid var(--ink);
    border-bottom: 0;
  }

  .compiled-recipe dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

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

  .product-proof img {
    aspect-ratio: 4 / 3;
  }

  .wedge-proof-grid,
  .protocol-moat {
    grid-template-columns: 1fr;
  }

  .wedge-proof-grid article,
  .protocol-moat article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .north-star {
    grid-template-columns: 1fr;
  }

  .market-signal {
    grid-template-columns: 1fr 1fr;
  }

  .market-signal article:nth-child(3) {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }

  .market-signal article strong {
    font-size: 42px;
  }

  .persona-layout {
    grid-template-columns: 1fr;
  }

  .persona-tabs {
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
    flex-direction: row;
    overflow-x: auto;
  }

  .persona-tabs button {
    flex: 0 0 170px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .beachhead-actions {
    grid-column: auto;
  }

  .beachhead-actions ul {
    grid-template-columns: 1fr;
  }

  .whole-product {
    grid-template-columns: 1fr;
  }

  .whole-flow {
    flex-wrap: wrap;
    white-space: normal;
  }

  .whole-product p {
    grid-column: auto;
  }

  .history-sources {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .stack-layer {
    width: 100%;
    grid-template-columns: 34px 1fr 22px;
    padding: 15px;
  }

  .stack-layer:hover,
  .stack-layer.active,
  .compatibility-strip {
    width: 100%;
  }

  .schema-panel pre {
    min-height: 280px;
    font-size: 9px;
  }

  .schema-detail {
    grid-template-columns: 1fr;
  }

  .pricing-stack article {
    grid-template-columns: 1fr;
  }

  .pricing-stack strong {
    grid-column: 1;
    grid-row: auto;
    font-size: 29px;
  }

  .model-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .revenue-row {
    grid-template-columns: 72px 1fr 62px;
  }

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

  .economics > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .growth-loop {
    width: 82vw;
    margin-bottom: 84px;
  }

  .growth-loop > button {
    width: 92px;
    min-height: 62px;
    transform:
      translate(-50%, -50%)
      rotate(var(--angle))
      translateX(calc(82vw * .44))
      rotate(calc(var(--angle) * -1));
  }

  .growth-loop button i {
    display: none;
  }

  .metric-strip {
    padding: 12px;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .metric-strip span {
    grid-column: 1 / -1;
  }

  .metric-strip b {
    min-height: 40px;
    padding: 8px;
    border: 1px solid var(--line);
  }

  .ask-layout {
    grid-template-columns: 1fr;
  }

  .ask-layout > div {
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }

  .team-proof {
    grid-column: auto;
  }

  .team-slots {
    grid-template-columns: 1fr;
  }

  .team-slots button {
    border-right: 0;
  }

  .final-line {
    min-height: 100px;
    padding: 16px;
    align-items: flex-start;
    flex-direction: column;
  }

  .evidence-list article {
    grid-template-columns: 1fr;
  }

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

  .overview-grid a {
    min-height: 100px;
    border-right: 0;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1c1d1a;
    --paper-light: #262722;
    --paper-dark: #32332c;
    --ink: #eee7d8;
    --muted: #aaa395;
    --red: #e26452;
    --red-bright: #ed7968;
    --green: #263d34;
    --green-light: #8baa98;
    --gold: #d3a34f;
    --line: rgba(238, 231, 216, .18);
    --line-strong: rgba(238, 231, 216, .58);
  }

  body {
    background: var(--paper);
  }

  body::before {
    opacity: .08;
    mix-blend-mode: screen;
  }

  .topbar,
  .rail {
    background: rgba(28, 29, 26, .92);
  }

  .blackbox {
    background: #080908;
  }

  .recipe-compiler,
  .market-model,
  .chasm-detail,
  .persona-card {
    background: rgba(38, 39, 34, .72);
  }

  .product-proof figure {
    background: #f6f2ec;
  }

  .compiled-recipe,
  .stack-layer,
  .growth-loop > button,
  dialog {
    background: var(--paper-light);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .topbar,
  .rail,
  .progress-track,
  .toast {
    display: none !important;
  }

  .slide {
    min-height: 100vh;
    padding: 28px;
    page-break-after: always;
    break-after: page;
  }

  .slide::after {
    left: 0;
  }
}
