:root {
  --bg: #f4efe6;
  --bg-deep: #181613;
  --panel: rgba(255, 250, 243, 0.84);
  --panel-strong: #fffaf3;
  --ink: #1f1b17;
  --muted: #685f55;
  --line: rgba(60, 45, 31, 0.14);
  --line-strong: rgba(60, 45, 31, 0.24);
  --accent: #41524b;
  --accent-2: #9a7d55;
  --accent-3: #d9c4a4;
  --accent-4: #ece1d1;
  --white: #ffffff;
  --shadow: 0 26px 60px rgba(39, 28, 15, 0.08);
  --shadow-soft: 0 18px 42px rgba(39, 28, 15, 0.05);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --rail-width: 280px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(154, 125, 85, 0.18), transparent 30%),
    radial-gradient(circle at bottom right, rgba(65, 82, 75, 0.12), transparent 26%),
    linear-gradient(180deg, #f6f0e8 0%, #f0e9df 38%, #eee7dd 100%);
  font: 16px/1.55 "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

ul {
  margin: 0;
  padding-left: 1.1rem;
}

.page-shell {
  display: grid;
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
  min-height: 100vh;
}

.rail {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 28px 18px 24px 24px;
}

.rail__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
  padding: 24px 20px;
  background: rgba(24, 22, 19, 0.92);
  color: rgba(255, 250, 243, 0.92);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(17, 14, 10, 0.26);
}

.brand-mark {
  display: grid;
  gap: 8px;
}

.brand-mark__eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 250, 243, 0.55);
}

.brand-mark__title {
  font: 600 1.15rem/1.25 "Avenir Next", "Segoe UI", sans-serif;
}

.story-nav {
  display: grid;
  gap: 10px;
}

.story-nav a {
  padding: 10px 12px;
  border: 1px solid rgba(255, 250, 243, 0.1);
  border-radius: 14px;
  color: rgba(255, 250, 243, 0.78);
  font-size: 0.92rem;
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.story-nav a:hover,
.story-nav a:focus-visible {
  transform: translateX(3px);
  border-color: rgba(217, 196, 164, 0.5);
  color: var(--white);
}

.rail-note {
  margin-top: auto;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 250, 243, 0.08), rgba(255, 250, 243, 0.03));
  border: 1px solid rgba(255, 250, 243, 0.08);
}

.rail-note__label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 250, 243, 0.56);
}

.rail-note p {
  color: rgba(255, 250, 243, 0.78);
  font-size: 0.9rem;
}

.deck {
  padding: 26px 26px 42px 12px;
}

.slide {
  padding: 10px 0;
}

.slide__frame {
  position: relative;
  overflow: hidden;
  width: min(100%, 1380px);
  min-height: 780px;
  margin: 0 auto;
  padding: 46px 46px 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.78), rgba(255, 250, 243, 0.95)),
    var(--panel);
  box-shadow: var(--shadow);
}

.slide__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(217, 196, 164, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(65, 82, 75, 0.08), transparent 22%);
  pointer-events: none;
}

.slide--cover .slide__frame,
.slide--close .slide__frame {
  background:
    radial-gradient(circle at top right, rgba(65, 82, 75, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(255, 250, 243, 0.74), rgba(255, 250, 243, 0.97)),
    var(--panel);
}

.cover-topline,
.kicker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

.cover-topline::before,
.kicker::before {
  content: "";
  display: inline-block;
  width: 34px;
  height: 1px;
  background: var(--accent-2);
}

.cover-grid,
.close-grid,
.split,
.keyword-layout,
.dual-roadmap,
.offer-grid,
.forecast-grid,
.roadmap-grid,
.architecture-grid,
.band-grid,
.three-up,
.competitor-grid,
.layers {
  position: relative;
  z-index: 1;
}

.cover-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.8fr);
  gap: 30px;
  align-items: end;
  margin-top: 34px;
}

h1,
h2,
.offer-panel--hero h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.03em;
}

h1 {
  max-width: 12ch;
  margin-top: 20px;
  font-size: clamp(3rem, 5.4vw, 5.9rem);
  line-height: 0.96;
}

h1 span {
  color: var(--accent);
}

h2 {
  max-width: 18ch;
  margin-top: 14px;
  font-size: clamp(2rem, 3.3vw, 3.45rem);
  line-height: 1.02;
}

.lede {
  max-width: 58ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.1rem;
}

.lede--tight {
  max-width: 48ch;
}

.cover-panel,
.panel,
.band,
.cluster-card,
.priority-table,
.forecast-card,
.roadmap-card,
.offer-panel,
.compare-card,
.layer-card,
.timeline-panel,
.close-panel,
.insight-callout,
.flow-note {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.cover-panel {
  padding: 22px;
}

.metric-stack {
  display: grid;
  gap: 14px;
}

.metric-stack__item {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.metric-stack__item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.metric-stack__item span,
.card__eyebrow,
.compare-card__eyebrow,
.forecast-card__label,
.offer-panel__label,
.close-panel__label,
.band__label,
.assumption-band__label,
.architecture-column__title,
.trust-grid__title {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.metric-stack__item strong {
  font-size: 1.26rem;
  line-height: 1.15;
}

.cover-signal {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(65, 82, 75, 0.08), rgba(217, 196, 164, 0.08));
}

.cover-signal__label {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.slide-heading {
  position: relative;
  z-index: 1;
  margin-bottom: 28px;
}

.slide-heading h2 {
  max-width: 17ch;
}

.three-up,
.competitor-grid,
.layers {
  display: grid;
  gap: 18px;
}

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

.card,
.compare-card,
.layer-card,
.forecast-card,
.roadmap-card {
  padding: 22px;
}

.card--feature h3,
.compare-card h3,
.layer-card h3,
.roadmap-card h3 {
  margin-bottom: 12px;
  font-size: 1.32rem;
  line-height: 1.15;
}

.card--feature p:last-child,
.compare-card p:last-child,
.layer-card p,
.roadmap-card li,
.stack-list__item span,
.trust-grid__item p,
.check-stack__item p,
.close-panel p,
.offer-panel p,
.flow-note p,
.insight-callout p {
  color: var(--muted);
}

.band-grid,
.split,
.keyword-layout,
.dual-roadmap,
.offer-grid,
.close-grid {
  display: grid;
  gap: 20px;
}

.band-grid {
  grid-template-columns: 1.3fr 1fr;
  margin-top: 18px;
}

.band {
  padding: 22px;
}

.band--dark {
  color: rgba(255, 250, 243, 0.9);
  background:
    linear-gradient(180deg, rgba(24, 22, 19, 0.92), rgba(24, 22, 19, 0.96)),
    var(--bg-deep);
}

.band--dark .band__label,
.band--dark p {
  color: rgba(255, 250, 243, 0.74);
}

.pill-row,
.gap-strip__items,
.architecture-chipset,
.offer-chipset,
.timeline-points,
.footer-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill,
.gap-strip__items span,
.architecture-chipset span,
.offer-chipset span,
.timeline-points span {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(236, 225, 209, 0.42);
}

.split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
  padding: 24px;
}

.panel h3,
.priority-table__header,
.timeline-panel h3 {
  margin-bottom: 18px;
}

.stack-list,
.check-stack,
.numbered-stack {
  display: grid;
  gap: 12px;
}

.stack-list__item,
.check-stack__item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.stack-list__item:last-child,
.check-stack__item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.stack-list__item strong {
  display: block;
  margin-bottom: 6px;
}

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

.trust-grid__item {
  padding: 16px;
  border-radius: 18px;
  background: rgba(236, 225, 209, 0.34);
  border: 1px solid rgba(60, 45, 31, 0.12);
}

.trust-grid__item--accent {
  background: rgba(65, 82, 75, 0.1);
}

.layer-card {
  position: relative;
  min-height: 280px;
}

.layer-card__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(65, 82, 75, 0.1);
  color: var(--accent);
  font-weight: 700;
}

.mini-list {
  margin-top: 14px;
  color: var(--muted);
}

.mini-list li + li {
  margin-top: 8px;
}

.insight-callout,
.flow-note {
  margin-top: 20px;
  padding: 18px 20px;
}

.insight-callout strong,
.flow-note strong {
  display: block;
  margin-bottom: 7px;
}

.gap-strip {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 16px;
  margin-top: 20px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(65, 82, 75, 0.12), rgba(217, 196, 164, 0.16));
  border: 1px solid rgba(60, 45, 31, 0.14);
}

.gap-strip__intro {
  display: flex;
  align-items: center;
  font: 600 1.25rem/1.1 "Iowan Old Style", Georgia, serif;
}

.keyword-layout {
  grid-template-columns: 1.2fr 0.95fr;
}

.keyword-clusters {
  display: grid;
  gap: 16px;
}

.cluster-card,
.priority-table {
  padding: 20px;
}

.cluster-card__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.cluster-card h3 {
  font-size: 1.3rem;
}

.cluster-card p {
  margin-top: 10px;
  color: var(--muted);
}

.tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(65, 82, 75, 0.1);
  color: var(--accent);
  font-size: 0.8rem;
  white-space: nowrap;
}

.bar-set {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.bar-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px;
  align-items: center;
  font-size: 0.95rem;
}

.bar {
  overflow: hidden;
  height: 11px;
  border-radius: 999px;
  background: rgba(60, 45, 31, 0.09);
}

.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
}

.priority-table {
  display: grid;
  gap: 12px;
  align-content: start;
}

.priority-table__header,
.priority-table__row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 0.8fr 0.6fr;
  gap: 14px;
  align-items: start;
}

.priority-table__header {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.priority-table__row {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.priority-table__row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.architecture-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.architecture-column {
  padding: 22px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.architecture-chipset {
  margin-top: 16px;
}

.dual-roadmap {
  grid-template-columns: 1.05fr 0.95fr;
}

.numbered-stack div {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: center;
}

.numbered-stack span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: rgba(65, 82, 75, 0.1);
  color: var(--accent);
  font-weight: 700;
}

.forecast-grid {
  gap: 18px;
}

.forecast-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.forecast-card strong {
  font-size: 2rem;
  line-height: 1;
}

.forecast-card p,
.forecast-card small {
  color: var(--muted);
}

.forecast-card--featured {
  background: linear-gradient(180deg, rgba(65, 82, 75, 0.94), rgba(38, 47, 43, 0.94));
  color: rgba(255, 250, 243, 0.95);
}

.forecast-card--featured .forecast-card__label,
.forecast-card--featured p,
.forecast-card--featured small {
  color: rgba(255, 250, 243, 0.75);
}

.assumption-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
  padding: 20px;
  border-radius: 22px;
  background: rgba(236, 225, 209, 0.6);
  border: 1px solid var(--line);
}

.assumption-band strong {
  display: block;
  font-size: 1.08rem;
}

.roadmap-card__phase {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.timeline-panel {
  margin-top: 18px;
  padding: 22px;
}

.timeline-panel__head p {
  margin-top: 8px;
  color: var(--muted);
}

.timeline-points {
  margin-top: 16px;
}

.offer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.offer-panel {
  padding: 22px;
}

.offer-panel--hero {
  background: linear-gradient(160deg, rgba(65, 82, 75, 0.11), rgba(217, 196, 164, 0.18));
}

.offer-panel--hero h3 {
  max-width: 12ch;
  margin-bottom: 12px;
  font-size: 2rem;
  line-height: 1;
}

.offer-chipset {
  margin-top: 14px;
}

.close-grid {
  grid-template-columns: 1.25fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.close-panel {
  padding: 24px;
}

.close-panel__label + p {
  margin-bottom: 18px;
}

.footer-bar {
  position: relative;
  z-index: 1;
  justify-content: space-between;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.footer-bar > div {
  min-width: 280px;
}

.footer-bar__label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (max-width: 1180px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .rail {
    position: relative;
    height: auto;
    padding: 20px 20px 0;
  }

  .deck {
    padding: 16px 20px 30px;
  }

  .story-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .slide__frame {
    min-height: auto;
    padding: 34px 24px 30px;
  }

  .cover-grid,
  .close-grid,
  .split,
  .keyword-layout,
  .dual-roadmap,
  .offer-grid,
  .band-grid,
  .gap-strip {
    grid-template-columns: 1fr;
  }

  .three-up,
  .competitor-grid,
  .layers,
  .forecast-grid,
  .roadmap-grid,
  .architecture-grid,
  .assumption-band {
    grid-template-columns: 1fr;
  }

  .trust-grid,
  .priority-table__header,
  .priority-table__row {
    grid-template-columns: 1fr;
  }

  .bar-row {
    grid-template-columns: 1fr;
  }

  .story-nav {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: none;
  }
}

@media print {
  body {
    background: #fff;
  }

  .page-shell {
    display: block;
  }

  .rail {
    display: none;
  }

  .deck {
    padding: 0;
  }

  .slide {
    padding: 0;
    break-after: page;
  }

  .slide__frame {
    width: 100%;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    page-break-inside: avoid;
  }
}
