:root {
  color-scheme: light;
  --paper: #f3efe3;
  --paper-deep: #e8e3d5;
  --ink: #101510;
  --ink-soft: #3f463c;
  --muted: #73786d;
  --line: rgba(16, 21, 16, 0.16);
  --line-strong: rgba(16, 21, 16, 0.32);
  --lime: #d7ff59;
  --lime-deep: #a8ce26;
  --rust: #ee6b4d;
  --blue: #b6dbe0;
  --white: #fffdf7;
  --shadow: 0 20px 55px rgba(16, 21, 16, 0.11);
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --radius: 1.15rem;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(16, 21, 16, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 21, 16, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 2rem 2rem;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: radial-gradient(circle at 85% 8%, rgba(215, 255, 89, 0.23), transparent 27rem);
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--rust);
}

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

button {
  color: inherit;
  font: inherit;
}

button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 0.2rem solid var(--rust);
  outline-offset: 0.25rem;
}

::selection {
  background: var(--ink);
  color: var(--lime);
}

.skip-link {
  position: fixed;
  z-index: 30;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 0.9rem;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--lime);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

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

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

.eyebrow,
.micro-label,
.kicker {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.35;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.eyebrow::before {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--lime-deep);
  border-radius: 50%;
  box-shadow: 0 0 0 0.26rem rgba(168, 206, 38, 0.2);
  content: "";
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.17em;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.wordmark span {
  color: var(--rust);
}

.wordmark::before {
  width: 0.65rem;
  height: 0.65rem;
  margin-right: 0.2rem;
  background: var(--lime);
  border: 0.13rem solid var(--ink);
  content: "";
}

.button,
.text-link,
.icon-button {
  border: 0;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.2rem;
  padding: 0.85rem 1.15rem;
  border: 0.09rem solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  background: var(--rust);
  color: var(--white);
  transform: translateY(-0.15rem);
}

.button--lime {
  background: var(--lime);
  color: var(--ink);
}

.button--lime:hover {
  background: var(--ink);
  color: var(--lime);
}

.button--quiet {
  background: transparent;
  color: var(--ink);
}

.button--quiet:hover {
  background: var(--ink);
  color: var(--paper);
}

.arrow-mark {
  font-size: 1.2rem;
  line-height: 0.7;
}

/* Landing page */

.landing-shell {
  width: min(100% - 2.5rem, 88rem);
  margin: 0 auto;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.5rem;
  border-bottom: 0.09rem solid var(--line);
}

.landing-nav nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.7rem);
}

.landing-nav nav a {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
}

.landing-nav nav a:last-child {
  padding: 0.65rem 0.75rem;
  border: 0.09rem solid var(--ink);
  color: var(--ink);
}

.landing-nav nav a:last-child:hover {
  background: var(--ink);
  color: var(--lime);
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(19rem, 0.85fr);
  gap: clamp(2.5rem, 8vw, 8rem);
  align-items: center;
  min-height: calc(100svh - 5.5rem);
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(5rem, 11vw, 10rem);
}

.landing-hero h1 {
  max-width: 10ch;
  margin: 1.3rem 0 1.5rem;
  font-size: clamp(3.3rem, 8.3vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.085em;
  line-height: 0.9;
}

.landing-hero h1 em {
  color: var(--rust);
  font-style: normal;
}

.landing-lede {
  max-width: 37rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-note {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
}

.terminal-card {
  overflow: hidden;
  border: 0.09rem solid var(--ink);
  background: var(--ink);
  box-shadow: var(--shadow);
  transform: rotate(1.7deg);
}

.terminal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.8rem;
  padding: 0 1rem;
  border-bottom: 0.09rem solid rgba(243, 239, 227, 0.17);
  color: var(--paper-deep);
  font-family: var(--mono);
  font-size: 0.67rem;
}

.terminal-dots {
  display: flex;
  gap: 0.34rem;
}

.terminal-dots i {
  display: block;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
}

.terminal-dots i:nth-child(1) {
  background: var(--rust);
}

.terminal-dots i:nth-child(2) {
  background: var(--lime);
}

.terminal-dots i:nth-child(3) {
  background: var(--blue);
}

.terminal-body {
  padding: clamp(1.4rem, 4vw, 2.4rem);
  color: var(--paper);
  font-family: var(--mono);
  font-size: clamp(0.71rem, 1.5vw, 0.9rem);
  line-height: 1.8;
}

.terminal-body p {
  margin: 0;
}

.terminal-body .prompt {
  color: var(--lime);
}

.terminal-body .muted {
  color: #879084;
}

.terminal-body .good {
  color: var(--lime);
}

.terminal-body .warn {
  color: #ffb49d;
}

.terminal-stamp {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.35rem 0.5rem;
  border: 0.09rem solid var(--lime);
  color: var(--lime);
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.section-rule {
  border-top: 0.09rem solid var(--line-strong);
}

.landing-section {
  padding: clamp(4rem, 9vw, 8rem) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(12rem, 0.4fr) minmax(0, 1fr);
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-heading h2 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 5rem);
  letter-spacing: -0.075em;
  line-height: 0.94;
}

.section-heading p {
  max-width: 38rem;
  margin: 0;
  align-self: end;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.42;
}

.flow-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 0.09rem solid var(--ink);
  border-bottom: 0.09rem solid var(--ink);
}

.flow-node {
  position: relative;
  min-height: 12rem;
  padding: 1.35rem;
  border-right: 0.09rem solid var(--line-strong);
}

.flow-node:last-child {
  border-right: 0;
}

.flow-node::after {
  position: absolute;
  top: 1.4rem;
  right: -0.4rem;
  z-index: 1;
  width: 0.7rem;
  height: 0.7rem;
  border-top: 0.09rem solid var(--ink);
  border-right: 0.09rem solid var(--ink);
  background: var(--paper);
  content: "";
  transform: rotate(45deg);
}

.flow-node:last-child::after {
  display: none;
}

.flow-node:nth-child(2) {
  background: rgba(182, 219, 224, 0.28);
}

.flow-node:nth-child(3) {
  background: rgba(215, 255, 89, 0.22);
}

.flow-node:nth-child(4) {
  background: rgba(238, 107, 77, 0.13);
}

.flow-number {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
}

.flow-node h3 {
  margin: 2.4rem 0 0.55rem;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  letter-spacing: -0.05em;
  line-height: 1;
}

.flow-node p {
  max-width: 15rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.boundary-card {
  min-height: 18rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 0.09rem solid var(--ink);
  background: var(--white);
}

.boundary-card--not {
  background: var(--ink);
  color: var(--paper);
}

.boundary-card h3 {
  max-width: 14ch;
  margin: 1rem 0 1.4rem;
  font-size: clamp(1.7rem, 3vw, 3rem);
  letter-spacing: -0.07em;
  line-height: 0.96;
}

.boundary-card p {
  max-width: 34rem;
  margin: 0;
  color: var(--ink-soft);
}

.boundary-card--not p {
  color: #d0d4c8;
}

.boundary-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.boundary-list li {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  padding-top: 0.75rem;
  border-top: 0.09rem solid var(--line);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.boundary-card--not .boundary-list li {
  border-color: rgba(243, 239, 227, 0.19);
  color: var(--paper);
}

.boundary-list li::before {
  flex: 0 0 auto;
  color: var(--rust);
  content: "×";
  font-family: var(--mono);
  font-weight: 800;
}

.boundary-card:not(.boundary-card--not) .boundary-list li::before {
  color: var(--lime-deep);
  content: "✓";
}

.landing-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 2.5rem;
  border-top: 0.09rem solid var(--line-strong);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.67rem;
}

.landing-footer p {
  margin: 0;
}

.source-note {
  max-width: 36rem;
  margin-top: 1.2rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.67rem;
}

/* Pitch deck chrome */

.deck-body {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  min-height: 100svh;
  background:
    linear-gradient(rgba(16, 21, 16, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 21, 16, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 2rem 2rem;
}

.deck-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 3rem, 94rem);
  min-height: 4.7rem;
  margin: 0 auto;
  gap: 1rem;
}

.deck-meta,
.deck-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.deck-meta {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.deck-rule {
  padding-left: 0.8rem;
  border-left: 0.09rem solid var(--line-strong);
  color: var(--ink);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.3rem;
  padding: 0.55rem 0.72rem;
  border: 0.09rem solid var(--line-strong);
  background: transparent;
  font-family: var(--mono);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.icon-button:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--lime);
}

.progress-track {
  width: min(100% - 3rem, 94rem);
  height: 0.35rem;
  margin: 0 auto;
  border-top: 0.09rem solid var(--line-strong);
}

.progress-track progress {
  display: block;
  width: 100%;
  height: 0.35rem;
  border: 0;
  background: transparent;
  accent-color: var(--rust);
}

.progress-track progress::-webkit-progress-bar {
  background: transparent;
}

.progress-track progress::-webkit-progress-value {
  background: var(--rust);
}

.progress-track progress::-moz-progress-bar {
  background: var(--rust);
}

.deck {
  width: min(100% - 3rem, 94rem);
  min-height: 0;
  margin: 0 auto;
}

.slide {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: calc(100svh - 10rem);
  min-height: 0;
  padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
}

.slide[hidden] {
  display: none;
}

.slide > * {
  min-width: 0;
}

.slide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.7rem, 4vw, 3.6rem);
}

.slide-topic {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.slide-topic::before {
  width: 1.4rem;
  height: 0.15rem;
  background: var(--rust);
  content: "";
}

.slide-mark {
  padding: 0.35rem 0.5rem;
  border: 0.09rem solid var(--line-strong);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.slide h1,
.slide h2 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.65rem, 7.6vw, 7.3rem);
  font-weight: 700;
  letter-spacing: -0.092em;
  line-height: 0.86;
}

.slide h2 {
  max-width: 25ch;
  font-size: clamp(2.5rem, 4.8vw, 5.5rem);
}

.slide h1 em,
.slide h2 em {
  color: var(--rust);
  font-style: normal;
}

.slide-copy {
  max-width: 40rem;
  margin: 1.7rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.2rem, 1.9vw, 1.7rem);
  line-height: 1.4;
}

.slide-foot {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 0.09rem solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.67rem;
}

.slide-foot p {
  max-width: 46rem;
  margin: 0;
}

.slide-foot strong {
  color: var(--ink);
}

.title-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(16rem, 0.9fr);
  gap: clamp(2rem, 7vw, 8rem);
  align-items: center;
}

.title-layout .slide-copy {
  max-width: 35rem;
}

.title-card {
  position: relative;
  min-height: 19rem;
  padding: clamp(1.4rem, 3vw, 2.5rem);
  border: 0.09rem solid var(--ink);
  background: var(--lime);
  box-shadow: 0.7rem 0.7rem 0 var(--ink);
  transform: rotate(-2.2deg);
}

.title-card::before,
.title-card::after {
  position: absolute;
  width: 1rem;
  height: 1rem;
  border: 0.09rem solid var(--ink);
  content: "";
}

.title-card::before {
  top: 0.8rem;
  right: 0.8rem;
  border-radius: 50%;
}

.title-card::after {
  right: 1rem;
  bottom: 1rem;
  transform: rotate(45deg);
}

.title-card .micro-label {
  color: var(--ink);
}

.title-card h3 {
  max-width: 8ch;
  margin: 4rem 0 0;
  font-size: clamp(2rem, 4vw, 4.5rem);
  letter-spacing: -0.09em;
  line-height: 0.86;
}

.title-card p {
  margin: 1.2rem 0 0;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.three-up,
.four-up {
  display: grid;
  gap: 0.8rem;
  align-self: center;
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.four-up {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card,
.stage-card,
.hypothesis-card,
.principle-card {
  min-height: 10rem;
  padding: 1.2rem;
  border: 0.09rem solid var(--ink);
  background: var(--white);
}

.metric-card:nth-child(2),
.stage-card:nth-child(2),
.hypothesis-card:nth-child(2) {
  background: rgba(182, 219, 224, 0.31);
}

.metric-card:nth-child(3),
.stage-card:nth-child(3),
.hypothesis-card:nth-child(3) {
  background: rgba(215, 255, 89, 0.28);
}

.metric-card h3,
.stage-card h3,
.hypothesis-card h3,
.principle-card h3 {
  margin: 2.8rem 0 0.6rem;
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.metric-card p,
.stage-card p,
.hypothesis-card p,
.principle-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.35;
}

.card-number {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
}

.quote-band {
  max-width: 48rem;
  margin: 2.6rem auto 0;
  padding: 1.2rem 1.4rem;
  border-left: 0.3rem solid var(--rust);
  background: rgba(238, 107, 77, 0.1);
  color: var(--ink);
  font-size: clamp(1.15rem, 2.1vw, 1.7rem);
  letter-spacing: -0.035em;
}

.quote-band strong {
  font-weight: 700;
}

.stage-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-self: center;
  border-top: 0.09rem solid var(--ink);
  border-bottom: 0.09rem solid var(--ink);
}

.stage-card {
  position: relative;
  min-height: 14rem;
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
  border-right: 0.09rem solid var(--line-strong);
}

.stage-card:last-child {
  border-right: 0;
}

.stage-card::after {
  position: absolute;
  top: 1.2rem;
  right: -0.4rem;
  width: 0.7rem;
  height: 0.7rem;
  border-top: 0.09rem solid var(--ink);
  border-right: 0.09rem solid var(--ink);
  background: var(--paper);
  content: "";
  transform: rotate(45deg);
}

.stage-card:last-child::after {
  display: none;
}

.code-strip {
  align-self: center;
  margin-top: 2rem;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  border: 0.09rem solid var(--ink);
  background: var(--ink);
  color: var(--lime);
  font-family: var(--mono);
  font-size: 0.76rem;
  white-space: nowrap;
}

.code-strip .soft {
  color: var(--paper);
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  align-self: center;
}

.principle-card {
  min-height: 12rem;
}

.principle-card:nth-child(2) {
  background: var(--ink);
  color: var(--paper);
}

.principle-card:nth-child(2) p {
  color: #d0d4c8;
}

.principle-card:nth-child(3) {
  background: var(--lime);
}

.principle-card:nth-child(3) p {
  color: var(--ink-soft);
}

.hypothesis-note {
  display: inline-block;
  margin: 1.2rem 0 0;
  padding: 0.45rem 0.6rem;
  border: 0.09rem solid var(--rust);
  color: var(--rust);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hypothesis-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  align-self: center;
}

.hypothesis-card {
  min-height: 15rem;
}

.hypothesis-card h3 {
  margin-top: 3.2rem;
}

.audience-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-self: center;
  border-top: 0.09rem solid var(--ink);
  border-bottom: 0.09rem solid var(--ink);
}

.audience-card {
  min-height: 13rem;
  padding: 1.3rem;
  border-right: 0.09rem solid var(--line-strong);
}

.audience-card:last-child {
  border-right: 0;
}

.audience-card:nth-child(2) {
  background: rgba(215, 255, 89, 0.28);
}

.audience-card h3 {
  max-width: 11ch;
  margin: 3.3rem 0 0.55rem;
  font-size: clamp(1.35rem, 2.7vw, 2.2rem);
  letter-spacing: -0.07em;
  line-height: 0.92;
}

.audience-card p {
  max-width: 19rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.matrix-wrap {
  align-self: center;
  overflow-x: auto;
  border: 0.09rem solid var(--ink);
  background: var(--white);
}

.matrix {
  display: grid;
  min-width: 42rem;
  grid-template-columns: minmax(10rem, 1.2fr) repeat(4, minmax(7rem, 1fr));
}

.matrix-row { display: contents; }

.matrix-row > div {
  min-height: 3.5rem;
  padding: 0.85rem 0.8rem;
  border-right: 0.09rem solid var(--line);
  border-bottom: 0.09rem solid var(--line);
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.3;
}

.matrix-row > div:nth-child(5n) {
  border-right: 0;
}

.matrix-row:last-child > div {
  border-bottom: 0;
}

.matrix .matrix-head {
  min-height: 3rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  text-transform: uppercase;
}

.matrix .matrix-label {
  color: var(--ink);
  font-weight: 700;
}

.matrix .matrix-highlight {
  background: var(--lime);
  color: var(--ink);
}

.matrix .yes {
  color: #55750e;
  font-weight: 800;
}

.matrix .no {
  color: var(--rust);
  font-weight: 800;
}

.team-layout {
  display: grid;
  grid-template-columns: minmax(15rem, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 7vw, 8rem);
  align-self: center;
  align-items: center;
}

.team-card {
  padding: clamp(1.5rem, 4vw, 2.8rem);
  border: 0.09rem solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0.7rem 0.7rem 0 var(--lime-deep);
}

.team-card .micro-label {
  color: var(--lime);
}

.team-card h3 {
  margin: 2.8rem 0 0.7rem;
  color: var(--paper);
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: -0.09em;
  line-height: 0.88;
}

.team-card p {
  margin: 0;
  color: #d0d4c8;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.team-notes {
  display: grid;
  gap: 0.8rem;
}

.team-notes .principle-card {
  min-height: 7.5rem;
}

.team-notes .principle-card h3 {
  margin-top: 1rem;
}

.metric-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  align-self: center;
}

.metric-card {
  min-height: 14rem;
}

.metric-card .metric-value {
  display: block;
  margin-top: 2.5rem;
  font-size: clamp(2.6rem, 5vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.09em;
  line-height: 0.84;
}

.metric-card .metric-unit {
  display: block;
  margin-top: 0.7rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.67rem;
  text-transform: uppercase;
}

.metric-card--proposal {
  border-color: var(--rust);
  background: rgba(238, 107, 77, 0.08);
}

.metric-card--proposal .metric-value {
  color: var(--rust);
  font-size: clamp(2rem, 4vw, 4rem);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-self: center;
  border-top: 0.09rem solid var(--ink);
  border-bottom: 0.09rem solid var(--ink);
}

.timeline-step {
  min-height: 15rem;
  padding: 1.3rem;
  border-right: 0.09rem solid var(--line-strong);
}

.timeline-step:last-child {
  border-right: 0;
}

.timeline-step:first-child {
  background: var(--lime);
}

.timeline-step:nth-child(2) {
  background: rgba(182, 219, 224, 0.31);
}

.timeline-step h3 {
  margin: 3.3rem 0 0.6rem;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.timeline-step p {
  max-width: 18rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.deck-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 3rem, 94rem);
  min-height: 5rem;
  margin: 0 auto;
  border-top: 0.09rem solid var(--line-strong);
}

.nav-button {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.5rem;
  padding: 0.5rem 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-button:not(:disabled):hover {
  color: var(--rust);
}

.nav-button:disabled {
  cursor: not-allowed;
  opacity: 0.3;
}

.nav-arrow {
  font-family: var(--sans);
  font-size: 1.3rem;
  line-height: 0.7;
}

.slide-counter {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.key-guide {
  width: min(calc(100% - 2rem), 34rem);
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.key-guide::backdrop {
  background: rgba(16, 21, 16, 0.45);
}

.key-guide[open] {
  animation: dialog-in 150ms ease-out;
}

.key-guide-inner {
  padding: 1.5rem;
  border: 0.09rem solid var(--ink);
}

.key-guide h2 {
  margin: 0.7rem 0 1.2rem;
  font-size: 2rem;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.key-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem 1rem;
  margin: 0 0 1.4rem;
  font-family: var(--mono);
  font-size: 0.75rem;
}

.key-list dt {
  padding: 0.18rem 0.35rem;
  background: var(--ink);
  color: var(--lime);
  font-weight: 700;
}

.key-list dd {
  margin: 0;
  align-self: center;
}

.dialog-close {
  width: 100%;
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(0.5rem) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (min-width: 761px) and (max-height: 800px) {
  .deck-chrome {
    min-height: 3.7rem;
  }

  .deck-nav {
    min-height: 3.7rem;
  }

  .slide {
    height: calc(100svh - 8rem);
    padding: 1rem 0 0.85rem;
    overflow: auto;
  }

  .slide-head {
    margin-bottom: 1.1rem;
  }

  .slide h1,
  .slide h2 {
    max-width: none;
    font-size: clamp(2.35rem, 4.35vw, 3.6rem);
    line-height: 0.9;
  }

  .slide-copy {
    margin-top: 1rem;
    font-size: clamp(1.05rem, 1.55vw, 1.4rem);
  }

  .slide-foot {
    padding-top: 0.8rem;
  }

  .title-card {
    min-height: 12rem;
    padding: 1.2rem;
  }

  .title-card h3 {
    margin-top: 2.1rem;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
  }

  .metric-card,
  .stage-card,
  .hypothesis-card,
  .principle-card {
    min-height: 8rem;
    padding: 0.72rem;
  }

  .metric-card h3,
  .stage-card h3,
  .hypothesis-card h3,
  .principle-card h3 {
    margin-top: 1.1rem;
    font-size: 1.2rem;
  }

  .metric-card p,
  .stage-card p,
  .hypothesis-card p,
  .principle-card p {
    font-size: 0.78rem;
  }

  .stage-card {
    min-height: 10rem;
  }

  .stage-card h3 {
    margin-top: 1.5rem;
  }

  .stage-card p {
    font-size: 0.76rem;
  }

  .three-up,
  .four-up,
  .principle-grid,
  .hypothesis-grid,
  .metric-rail {
    gap: 0.55rem;
  }

  .quote-band {
    margin-top: 1rem;
    padding: 0.72rem 0.9rem;
    font-size: 1rem;
  }

  .principle-card {
    min-height: 9rem;
  }

  .audience-card,
  .timeline-step {
    min-height: 10.5rem;
    padding: 0.9rem;
  }

  .audience-card h3,
  .timeline-step h3 {
    margin-top: 2rem;
    font-size: clamp(1.2rem, 2.2vw, 1.9rem);
  }

  .audience-card p,
  .timeline-step p {
    font-size: 0.78rem;
  }

  .metric-card {
    min-height: 11rem;
  }

  .metric-card .metric-value {
    margin-top: 1.6rem;
    font-size: clamp(2rem, 3.7vw, 3.5rem);
  }

  .team-card {
    padding: 1.4rem;
  }

  .team-card h3 {
    margin-top: 2rem;
    font-size: clamp(2rem, 3.5vw, 3.3rem);
  }

  .team-notes .principle-card {
    min-height: 5.8rem;
  }

  .team-notes .principle-card h3 {
    margin-top: 0.7rem;
  }

  .team-notes .principle-card p {
    font-size: 0.75rem;
  }

  .matrix-row > div {
    min-height: 2.9rem;
    padding: 0.55rem;
    font-size: 0.6rem;
  }
}

@media (max-width: 760px) {
  .landing-shell,
  .deck-chrome,
  .progress-track,
  .deck,
  .deck-nav {
    width: min(100% - 1.5rem, 94rem);
  }

  .landing-nav {
    min-height: 4.4rem;
  }

  .landing-nav nav a:first-child,
  .deck-rule {
    display: none;
  }

  .landing-hero {
    display: block;
    min-height: auto;
    padding: 4.5rem 0 5rem;
  }

  .landing-hero h1 {
    max-width: 9ch;
    font-size: clamp(3.2rem, 16vw, 6rem);
  }

  .terminal-card {
    max-width: 34rem;
    margin: 3.5rem 0 0 0.35rem;
  }

  .section-heading,
  .title-layout,
  .team-layout {
    display: block;
  }

  .section-heading p {
    margin-top: 1.5rem;
  }

  .flow-track,
  .stage-rail,
  .audience-rail,
  .timeline {
    grid-template-columns: 1fr;
  }

  .flow-node,
  .stage-card,
  .audience-card,
  .timeline-step {
    min-height: 9rem;
    border-right: 0;
    border-bottom: 0.09rem solid var(--line-strong);
  }

  .flow-node:last-child,
  .stage-card:last-child,
  .audience-card:last-child,
  .timeline-step:last-child {
    border-bottom: 0;
  }

  .flow-node::after,
  .stage-card::after {
    top: auto;
    right: auto;
    bottom: -0.4rem;
    left: 1.4rem;
    transform: rotate(135deg);
  }

  .flow-node h3,
  .stage-card h3,
  .audience-card h3,
  .timeline-step h3 {
    margin-top: 1.6rem;
  }

  .boundary-grid,
  .three-up,
  .four-up,
  .principle-grid,
  .hypothesis-grid,
  .metric-rail {
    grid-template-columns: 1fr;
  }

  .boundary-card {
    min-height: auto;
  }

  .slide {
    height: auto;
    min-height: calc(100svh - 11rem);
    overflow: visible;
    padding-top: 2rem;
  }

  .slide h1,
  .slide h2 {
    max-width: 10ch;
    font-size: clamp(2.7rem, 14vw, 5.5rem);
  }

  .slide-head {
    align-items: flex-start;
  }

  .slide-mark {
    display: none;
  }

  .title-card {
    min-height: 14rem;
    margin: 3rem 0.55rem 1rem 0;
  }

  .title-card h3 {
    margin-top: 2.8rem;
  }

  .code-strip {
    margin-top: 1.5rem;
    font-size: 0.66rem;
  }

  .matrix-wrap {
    margin-top: 1rem;
  }

  .team-card {
    margin: 1rem 0.6rem 2rem 0;
  }

  .slide-foot {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 1rem;
  }

  .slide-foot p:last-child {
    display: none;
  }

  .deck-chrome {
    min-height: 4rem;
  }

  .deck-actions {
    gap: 0.4rem;
  }

  .icon-button {
    min-height: 2.1rem;
    padding-inline: 0.5rem;
    font-size: 0.6rem;
  }

  .nav-button span:not(.nav-arrow) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  @page {
    margin: 0.55in;
    size: landscape;
  }

  body,
  .deck-body {
    display: block;
    min-height: auto;
    background: #fff;
  }

  .deck-chrome,
  .progress-track,
  .deck-nav,
  .key-guide,
  .skip-link {
    display: none !important;
  }

  .deck,
  .slide {
    width: 100%;
  }

  .slide,
  .slide[hidden] {
    display: grid !important;
    min-height: 7.1in;
    break-after: page;
    page-break-after: always;
  }

  .slide:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .slide h1,
  .slide h2 {
    font-size: 4.2rem;
  }

  .slide-foot {
    color: #444;
  }
}
