/* =========================================================================
   OUTSIDER ADVANTAGE — AGENTIC ONBOARDING DECK
   Shared editorial design language with Business Overview deck.
   Shell Paper ground. Shell Ink type. Monochrome with one Indigo + one
   Emerald accent, used with discipline.
   ========================================================================= */

:root {
  --shell-ink: #0b0d0f;
  --shell-paper: #f5f4f0;
  --shell-900: #151719;
  --shell-700: #3a3d41;
  --shell-400: #7a7d82;
  --shell-300: #b9b7b1;
  --shell-200: #d9d7d1;
  --shell-150: #e6e3dd;
  --signal-indigo: #3c4fe8;
  --signal-emerald: #2fb58a;

  --font-display: "Fraunces", "Freight Display Pro", Georgia, serif;
  --font-body: "Inter", "Söhne Buch", -apple-system, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  --rule: 1px solid var(--shell-200);
  --rule-ink: 1px solid var(--shell-ink);

  /* Vertical rhythm base 24px, 1.5 scale */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 36px;
  --s-5: 54px;
  --s-6: 81px;
  --s-7: 121px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
}
body {
  background: var(--shell-paper);
  color: var(--shell-ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

/* ---------- Typography primitives ---------- */
.display {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 96;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.04;
}
.h1 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 56;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
  font-size: clamp(40px, 4.6vw, 56px);
}
.h2 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 36;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  font-size: clamp(26px, 2.4vw, 34px);
}
.body-lg {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(17px, 1.2vw, 19px);
  line-height: 1.6;
  color: var(--shell-ink);
  hyphens: auto;
}
.body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(15px, 1vw, 17px);
  line-height: 1.55;
  color: var(--shell-ink);
}
.body-serif {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 14;
  font-weight: 400;
  font-size: clamp(17px, 1.2vw, 19px);
  line-height: 1.55;
  color: var(--shell-ink);
}
.caption {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--shell-400);
}
.overline {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--shell-400);
}
.mono {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0;
  line-height: 1.5;
  color: var(--shell-ink);
}
.mono-sm {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--shell-400);
}
.mono-chip {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  color: var(--shell-ink);
  background: var(--shell-150);
  padding: 2px 8px;
  border-radius: 2px;
  display: inline-block;
  letter-spacing: 0;
}
.italic {
  font-style: italic;
}
.romanum {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0;
  color: var(--shell-400);
}

/* ---------- Stage & slide ---------- */
.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--shell-paper);
}

.slide {
  position: absolute;
  inset: 0;
  padding: 96px 120px 96px 120px;
  display: none;
  opacity: 0;
  flex-direction: column;
  justify-content: flex-start;
  background: var(--shell-paper);
  transition:
    opacity 400ms ease-out,
    transform 400ms ease-out;
}
.slide.is-active {
  display: flex;
  opacity: 1;
}
.slide--dark {
  background: var(--shell-900);
  color: var(--shell-paper);
}
.slide--dark .h1,
.slide--dark .h2,
.slide--dark .display,
.slide--dark .body,
.slide--dark .body-lg,
.slide--dark .body-serif,
.slide--dark .mono {
  color: var(--shell-paper);
}
.slide--dark .caption,
.slide--dark .overline,
.slide--dark .mono-sm {
  color: var(--shell-300);
}

/* ---------- Folio (chrome) ---------- */
.folio {
  position: absolute;
  top: 32px;
  left: 120px;
  right: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--shell-400);
  pointer-events: none;
  z-index: 2;
}
.folio__left {
  display: flex;
  gap: 24px;
  align-items: baseline;
}
.folio__brand {
  color: var(--shell-ink);
  font-weight: 500;
}
.slide--dark .folio__brand {
  color: var(--shell-paper);
}
.folio__section {
}

/* ---------- Progress + foot ---------- */
.foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 120px;
  background: transparent;
  pointer-events: none;
  z-index: 4;
}
.foot__pager {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--shell-400);
  pointer-events: auto;
}
.foot__title {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--shell-400);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: auto;
}
.progress-rail {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 64px;
  height: 1px;
  background: var(--shell-200);
  z-index: 4;
}
.progress-fill {
  height: 100%;
  background: var(--shell-ink);
  width: 0;
  transition: width 400ms ease-out;
}
.slide--dark ~ .foot .foot__pager,
.slide--dark ~ .foot .foot__title {
  color: var(--shell-300);
}

/* ---------- Editorial title-page frame for Cover ---------- */
.title-frame {
  position: absolute;
  inset: 48px;
  border: 1px solid var(--shell-200);
  pointer-events: none;
}

/* ---------- Cover slide ---------- */
.cover {
  justify-content: space-between;
}
.cover__kicker {
  margin-top: 16px;
}
.cover__title {
  max-width: 14ch;
  margin-top: auto;
  margin-bottom: var(--s-5);
  font-size: clamp(64px, 7.8vw, 112px);
}
.cover__subtitle {
  max-width: 52ch;
  color: var(--shell-ink);
  position: relative;
}
.cover__underline {
  position: relative;
  width: 340px;
  height: 32px;
  margin-top: 14px;
}
.cover__meta {
  margin-top: var(--s-5);
  color: var(--shell-400);
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}
.cover__book {
  position: absolute;
  bottom: 120px;
  right: 120px;
  width: 280px;
  height: 360px;
  background:
    linear-gradient(
      135deg,
      rgba(11, 13, 15, 0.04) 0%,
      rgba(11, 13, 15, 0.12) 100%
    ),
    var(--shell-150);
  border: 1px solid var(--shell-200);
  box-shadow: 0 20px 40px -24px rgba(11, 13, 15, 0.22);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 24px;
}
.cover__book-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--shell-ink);
}
.cover__book-sig {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--shell-ink);
  border-top: 1px solid var(--shell-200);
  padding-top: 12px;
}

/* ---------- Layout grids ---------- */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
  width: 100%;
}
.col-8 {
  grid-column: span 8;
}
.col-7 {
  grid-column: span 7;
}
.col-6 {
  grid-column: span 6;
}
.col-5 {
  grid-column: span 5;
}
.col-4 {
  grid-column: span 4;
}
.col-3 {
  grid-column: span 3;
}

.stack-s {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.stack-m {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.stack-l {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.row {
  display: flex;
  gap: var(--s-3);
  align-items: baseline;
}
.row-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

.rule {
  border-top: var(--rule);
}
.rule-ink {
  border-top: 1px solid var(--shell-ink);
  width: 72px;
}

/* ---------- Slide headers ---------- */
.slide-header {
  margin-top: 40px;
  margin-bottom: var(--s-5);
  max-width: 68ch;
}
.slide-header .overline {
  margin-bottom: 18px;
  display: block;
}
.slide-header .h1 {
  margin-bottom: var(--s-2);
}
.slide-header .body-lg {
  color: var(--shell-400);
  max-width: 52ch;
}

/* ---------- Four-object grid (slide 2) ---------- */
.quad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0;
  border-top: var(--rule);
  border-left: var(--rule);
  width: 100%;
  max-height: 56vh;
}
.quad__cell {
  border-right: var(--rule);
  border-bottom: var(--rule);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.quad__label {
  color: var(--shell-400);
}
.quad__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.quad__body {
  color: var(--shell-700);
  font-size: 15px;
  line-height: 1.5;
}
.quad__meta {
  color: var(--shell-400);
  margin-top: auto;
}
.quad__cell--live::after {
  content: "";
  position: absolute;
  top: 28px;
  right: 32px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--signal-emerald);
  box-shadow: 0 0 0 6px rgba(47, 181, 138, 0.16);
  animation: live-pulse 2.4s ease-in-out infinite;
}
@keyframes live-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.55;
  }
}

/* ---------- Three-column (slide 3) ---------- */
.triptych {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border-top: var(--rule);
  width: 100%;
}
.triptych__col {
  padding: 32px 28px 8px 0;
  border-right: var(--rule);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.triptych__col:last-child {
  border-right: 0;
  padding-right: 0;
}
.triptych__col:not(:first-child) {
  padding-left: 28px;
}
.triptych__overline {
  color: var(--shell-400);
}
.triptych__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.triptych__body {
  font-size: 16px;
  line-height: 1.55;
}

.rail-labels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin-top: var(--s-3);
}
.rail-labels span {
  color: var(--shell-400);
}
.rail-labels span:nth-child(2) {
  text-align: center;
}
.rail-labels span:nth-child(3) {
  text-align: right;
}

/* ---------- Before/After (slide 4) ---------- */
.ba {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  width: 100%;
}
.ba__col {
  padding: 20px 0 0 0;
  border-top: 1px solid var(--shell-ink);
}
.ba__col--muted {
  opacity: 0.55;
}
.ba__label {
  margin-bottom: 16px;
}
.ba__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ba__list li {
  list-style: none;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  color: var(--shell-ink);
  padding-left: 18px;
  position: relative;
}
.ba__list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--shell-400);
}
.ba__config {
  background: var(--shell-150);
  padding: 20px 24px;
  border-left: 2px solid var(--shell-ink);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
}
.ba__config .locked {
  color: var(--signal-indigo);
  font-weight: 500;
}
.ba__pulled {
  margin-top: var(--s-4);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  max-width: 52ch;
}
.ba__footer-tag {
  margin-top: var(--s-3);
  color: var(--shell-400);
}

/* ---------- 8-team grid (slide 5) rough.js boxes ---------- */
.teams-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 14px;
  width: 100%;
  margin-top: var(--s-3);
}
.team-cell {
  position: relative;
  aspect-ratio: 5 / 4;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
}
.team-cell__rough {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.team-cell__rough svg {
  width: 100%;
  height: 100%;
}
.team-cell__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.team-cell__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  color: var(--shell-400);
}
.team-cell__count {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--shell-400);
}
.team-cell__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin-top: 8px;
}
.team-cell__body {
  font-size: 13px;
  line-height: 1.45;
  color: var(--shell-700);
}

/* ---------- Model slot ---------- */
.model-slot {
  width: 100%;
  min-height: 56vh;
  border: 1px dashed var(--shell-300);
  background: repeating-linear-gradient(
    135deg,
    transparent 0 10px,
    rgba(11, 13, 15, 0.02) 10px 11px
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--shell-400);
}
.model-slot__frame {
  width: 100%;
  height: 62vh;
  border: 1px solid var(--shell-200);
  background: var(--shell-paper);
}

/* ---------- Inputs list (slide 7) ---------- */
.inputs {
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 24px;
  row-gap: 22px;
  margin-top: var(--s-3);
}
.inputs__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: var(--shell-400);
  padding-top: 2px;
}
.inputs__body {
  padding-bottom: 16px;
  border-bottom: var(--rule);
}
.inputs__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: 20px;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.inputs__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--shell-400);
  margin-bottom: 6px;
}
.inputs__desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--shell-ink);
}
.inputs__pulled {
  margin-top: var(--s-4);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  max-width: 58ch;
}

/* ---------- Cadence (slide 8) rough circles ---------- */
.cadence {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  margin-top: var(--s-3);
}
.cadence__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-top: 12px;
}
.cadence__circle {
  width: 200px;
  height: 200px;
  position: relative;
}
.cadence__circle svg {
  width: 100%;
  height: 100%;
}
.cadence__circle-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.01em;
}
.cadence__items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cadence__items li {
  font-size: 15px;
  line-height: 1.5;
  color: var(--shell-ink);
  padding-left: 18px;
  position: relative;
}
.cadence__items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 1px;
  background: var(--shell-ink);
}

/* ---------- Orchestration (slide 9) ---------- */
.orch {
  margin-top: var(--s-3);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.orch__step {
  padding: 28px 28px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-right: var(--rule);
}
.orch__step:last-child {
  border-right: 0;
}
.orch__step:not(:first-child) {
  padding-left: 28px;
}
.orch__i {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 18px;
  color: var(--shell-400);
}
.orch__label {
  color: var(--shell-400);
}
.orch__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.orch__desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--shell-ink);
}
.orch__flow {
  width: 100%;
  height: 60px;
  margin-top: var(--s-2);
  margin-bottom: var(--s-2);
}
.orch__commit {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  max-width: 58ch;
  margin-top: var(--s-4);
}

/* ---------- Drift filter (slide 10) — uses model-slot for embed ---------- */
.legend {
  display: flex;
  gap: 32px;
  margin-top: var(--s-3);
}
.legend__item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.legend__swatch {
  width: 14px;
  height: 14px;
  display: inline-block;
}
.legend__swatch--indigo {
  background: var(--signal-indigo);
}
.legend__swatch--emerald {
  background: var(--signal-emerald);
}

/* ---------- Monthly artifacts (slide 11) ---------- */
.artifacts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: var(--s-3);
}
.artifact-card {
  border: var(--rule);
  padding: 22px 22px 60px 22px;
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--shell-paper);
  position: relative;
}
.artifact-card__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--shell-400);
}
.artifact-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.01em;
  line-height: 1.18;
}
.artifact-card__body {
  font-size: 13px;
  line-height: 1.45;
  color: var(--shell-700);
}
.artifact-card__foot {
  position: absolute;
  bottom: 16px;
  left: 22px;
  right: 22px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--shell-400);
  padding-top: 10px;
  border-top: var(--rule);
}

/* ---------- Audit (slide 12) ---------- */
.audit {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  margin-top: var(--s-3);
}
.audit__report {
  border: 1px solid var(--shell-ink);
  padding: 32px 32px 28px;
  background: var(--shell-paper);
  min-height: 380px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.audit__report-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--shell-400);
  text-transform: uppercase;
}
.audit__report-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-top: 4px;
}
.audit__report-rule {
  border-top: 1px solid var(--shell-ink);
  width: 48px;
  margin-top: 8px;
}
.audit__findings {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.audit__finding {
  display: grid;
  grid-template-columns: 150px 1fr 24px;
  gap: 14px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: var(--rule);
}
.audit__finding-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--shell-400);
}
.audit__finding-body {
  font-size: 14px;
  color: var(--shell-ink);
}
.audit__finding-mark {
  text-align: right;
  color: var(--signal-emerald);
  font-size: 14px;
}
.audit__sig {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 20px;
  border-top: 1px solid var(--shell-ink);
}
.audit__sig-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.audit__sig-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--shell-400);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.audit__side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 12px;
}
.audit__pull {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.18;
  letter-spacing: -0.01em;
}

/* ---------- Timeline (slide 13) ---------- */
.timeline {
  width: 100%;
  height: 180px;
  margin-top: var(--s-3);
  position: relative;
}
.timeline svg {
  width: 100%;
  height: 100%;
}
.timeline-rows {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: var(--s-2);
}
.timeline-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--shell-ink);
  padding-top: 16px;
}
.timeline-row__day {
}
.timeline-row__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.timeline-row__body {
  font-size: 13px;
  line-height: 1.5;
  color: var(--shell-700);
}
.timeline-row__artifact {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--shell-400);
  text-transform: uppercase;
}

/* ---------- Feedback (slide 14) ---------- */
.fb {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: var(--s-3);
}
.fb__col {
  padding-top: 18px;
  border-top: 1px solid var(--shell-ink);
}
.fb__col--muted {
  border-top-color: var(--shell-300);
  opacity: 0.7;
}
.fb__quotes {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}
.fb__quote {
  padding: 12px 16px;
  background: var(--shell-150);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  color: var(--shell-ink);
  border-left: 2px solid var(--shell-ink);
}
.fb__col--muted .fb__quote {
  background: transparent;
  border-left-color: var(--shell-300);
  color: var(--shell-400);
  font-family: var(--font-body);
  font-style: italic;
  font-size: 14px;
}

/* ---------- Numbered refusals (slide 15) ---------- */
.refusals {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: var(--s-3);
  max-width: 64ch;
}
.refusals li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
  align-items: baseline;
}
.refusals .num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--shell-400);
}
.refusals .text {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 18;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.5;
  color: var(--shell-ink);
}
.refusals .text em {
  font-style: italic;
}
.refusals__pulled {
  margin-top: var(--s-4);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 2.8vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  max-width: 52ch;
}
.indigo-mark {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--signal-indigo);
  margin-left: 8px;
  transform: translateY(-2px);
}

/* ---------- Incident flow (slide 16) ---------- */
.incident {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: var(--s-3);
  border-top: 1px solid var(--shell-ink);
}
.incident__step {
  padding: 24px 24px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-right: var(--rule);
}
.incident__step:last-child {
  border-right: 0;
}
.incident__step:not(:first-child) {
  padding-left: 24px;
}
.incident__label {
  color: var(--shell-400);
}
.incident__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.incident__desc {
  font-size: 14px;
  line-height: 1.5;
}
.offvoice {
  position: relative;
  display: inline-block;
  padding: 0 6px;
  color: var(--shell-ink);
}
.offvoice::before {
  content: "";
  position: absolute;
  inset: -4px -6px;
  background: var(--signal-indigo);
  opacity: 0.12;
  filter: blur(6px);
  z-index: -1;
}

/* ---------- Success / failure signals (slides 17, 18) ---------- */
.signals {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
  row-gap: 28px;
  margin-top: var(--s-3);
  max-width: 92ch;
}
.signals li {
  border-top: 1px solid var(--shell-ink);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.signals .label {
  color: var(--shell-400);
}
.signals .text {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: 20px;
  line-height: 1.28;
  letter-spacing: -0.01em;
}
.signals .note {
  font-size: 14px;
  color: var(--shell-700);
}
.signals__quote {
  margin-top: var(--s-4);
  padding: 18px 0;
  border-top: 1px solid var(--shell-ink);
  border-bottom: 1px solid var(--shell-ink);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.35;
  color: var(--shell-700);
  max-width: 72ch;
}

/* ---------- Worksheet (slide 19) ---------- */
.ws {
  margin-top: var(--s-2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 48px;
}
.ws-role {
  border-top: 1px solid var(--shell-ink);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ws-role__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.ws-role__label {
  color: var(--shell-400);
}
.ws-role__hint {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 13px;
  color: var(--shell-400);
}
.ws-role__fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ws-field {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  align-items: baseline;
}
.ws-field__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--shell-400);
}
.ws-input {
  position: relative;
  min-height: 32px;
}
.ws-input input {
  width: 100%;
  border: 0;
  padding: 4px 2px;
  background: transparent;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--shell-ink);
  letter-spacing: -0.01em;
  outline: none;
}
.ws-input input::placeholder {
  color: var(--shell-300);
  font-style: italic;
}
.ws-input__rough {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14px;
  pointer-events: none;
}
.ws-input__rough svg {
  width: 100%;
  height: 100%;
}
.ws-print {
  margin-top: var(--s-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: var(--rule);
}
.ws-print__link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--shell-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ---------- Anti-retainer (slide 20) ---------- */
.retainer {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 76ch;
  margin-top: var(--s-3);
}
.retainer__item {
  border-top: 1px solid var(--shell-ink);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.retainer__head {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.retainer__body {
  font-size: 16px;
  line-height: 1.55;
}
.retainer__pulled {
  margin-top: var(--s-5);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  max-width: 18ch;
}

/* ---------- Resources URLs (slide 21) ---------- */
.urls {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--s-3);
  max-width: 84ch;
}
.urls li {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 14px 0;
  border-bottom: var(--rule);
  align-items: baseline;
}
.urls__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--shell-400);
}
.urls__value {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--shell-ink);
}
.urls__value .path {
  background: var(--shell-150);
  padding: 2px 8px;
  border-radius: 2px;
}

/* ---------- Compounding loop (slide 22) ---------- */
.loop {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  margin-top: var(--s-3);
  align-items: center;
}
.loop__svg {
  width: 340px;
  height: 340px;
}
.loop__obs {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.loop__obs-item {
  border-top: 1px solid var(--shell-ink);
  padding-top: 12px;
}
.loop__obs-item strong {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  display: block;
  margin-bottom: 4px;
}
.loop__obs-item span {
  font-size: 15px;
  line-height: 1.55;
  color: var(--shell-700);
}
.loop__pulled {
  margin-top: var(--s-4);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  max-width: 56ch;
}
.loop__pulled .indigo {
  color: var(--signal-indigo);
}

/* ---------- Closing (slide 23) ---------- */
.closing {
  justify-content: center;
  align-items: center;
  text-align: center;
}
.closing__display {
  max-width: 22ch;
  font-size: clamp(56px, 6vw, 96px);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  position: relative;
}
.closing__underline {
  width: 460px;
  height: 34px;
  margin: 28px auto 0;
}
.closing__meta {
  margin-top: var(--s-5);
  color: var(--shell-400);
}

/* ---------- Appendix (slide 24) ---------- */
.appendix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 48px;
  margin-top: var(--s-3);
}
.appendix-block {
  border-top: 1px solid var(--shell-ink);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.appendix-block__label {
  color: var(--shell-400);
}
.appendix-block__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.appendix-block__body {
  font-size: 14px;
  line-height: 1.55;
}
.appendix-block__body dt {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  margin-top: 10px;
}
.appendix-block__body dd {
  margin-left: 0;
  color: var(--shell-700);
  font-size: 13px;
}

/* ---------- Speaker notes panel ---------- */
.notes {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 44vh;
  background: var(--shell-900);
  color: var(--shell-paper);
  padding: 28px 120px 28px;
  z-index: 10;
  transform: translateY(100%);
  transition: transform 280ms ease-out;
  overflow-y: auto;
  border-top: 1px solid var(--shell-700);
}
.notes.is-open {
  transform: translateY(0);
}
.notes__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.notes__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--shell-300);
  text-transform: uppercase;
}
.notes__close {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--shell-300);
  text-transform: uppercase;
}
.notes__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.notes__body {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 18;
  font-size: 17px;
  line-height: 1.55;
  color: var(--shell-paper);
  max-width: 84ch;
}
.notes__action {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--signal-emerald);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Thumbnails overview (Esc) ---------- */
.overview {
  position: fixed;
  inset: 0;
  background: var(--shell-paper);
  z-index: 20;
  padding: 64px 96px;
  overflow-y: auto;
  display: none;
}
.overview.is-open {
  display: block;
}
.overview__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--shell-ink);
}
.overview__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.01em;
}
.overview__hint {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--shell-400);
  text-transform: uppercase;
}
.overview__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.overview__card {
  aspect-ratio: 16 / 9;
  background: var(--shell-paper);
  border: 1px solid var(--shell-200);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition:
    border-color 160ms,
    background 160ms;
  text-align: left;
  font-family: var(--font-display);
}
.overview__card:hover {
  border-color: var(--shell-ink);
  background: var(--shell-150);
}
.overview__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--shell-400);
}
.overview__label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--shell-ink);
}

/* ---------- Reveal utility (for entry animation targets) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .slide {
    transition: none;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .quad__cell--live::after {
    animation: none;
  }
  .progress-fill {
    transition: none;
  }
}

/* ---------- Print ---------- */
@media print {
  body,
  .stage {
    position: static;
    overflow: visible;
    background: white;
  }
  .folio,
  .foot,
  .progress-rail,
  .notes,
  .overview {
    display: none !important;
  }
  .slide {
    position: relative !important;
    display: flex !important;
    opacity: 1 !important;
    page-break-after: always;
    break-after: page;
    min-height: 100vh;
    padding: 48px 56px;
  }
  .slide--dark {
    background: white;
    color: var(--shell-ink);
  }
  .slide--dark * {
    color: var(--shell-ink) !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  /* Worksheet: clear input values so pen fill-in works */
  .ws-input input {
    color: transparent !important;
  }
  .ws-input input::placeholder {
    color: transparent !important;
  }
}
