:root {
  --ink: #13231b;
  --muted: #607166;
  --paper: #fffdf6;
  --cream: #f5f2e8;
  --green: #1b3d2b;
  --green-2: #2e6f48;
  --leaf: #9aca47;
  --clay: #a65039;
  --gold: #d8a846;
  --line: rgba(19, 35, 27, 0.14);
  --shadow: 0 30px 90px rgba(19, 35, 27, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(27, 61, 43, 0.08), transparent 34%),
    linear-gradient(180deg, #faf9f2 0%, #ece7d7 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.deck {
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 18px clamp(14px, 3vw, 34px);
}

.deck-topbar,
.deck-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 54px;
}

.deck-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-weight: 900;
  text-decoration: none;
}

.deck-brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: var(--leaf);
}

.deck-context {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.deck-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(19, 35, 27, 0.1);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.74fr);
  gap: clamp(26px, 4vw, 64px);
  align-items: center;
  min-height: 100%;
  padding: clamp(34px, 5vw, 74px);
  opacity: 0;
  pointer-events: none;
  transform: translateX(26px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.slide-copy {
  max-width: 820px;
}

.slide-copy.wide {
  max-width: 1120px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  margin-bottom: 22px;
  color: var(--ink);
  letter-spacing: 0;
}

h1 {
  max-width: 980px;
  font-size: clamp(44px, 6.2vw, 86px);
  line-height: 0.98;
}

h2 {
  font-size: clamp(36px, 5.1vw, 68px);
  line-height: 1.02;
}

p {
  color: #3f5147;
  font-size: clamp(18px, 1.8vw, 23px);
}

.slide-photo {
  align-self: stretch;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--cream);
}

.slide-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-hero {
  background:
    linear-gradient(90deg, rgba(255, 253, 246, 0.96) 0%, rgba(255, 253, 246, 0.88) 50%, rgba(255, 253, 246, 0.28) 100%),
    var(--paper);
}

.slide-problem,
.slide-models,
.slide-brief,
.slide-benefits,
.slide-close {
  grid-template-columns: 1fr;
  align-content: center;
}

.stakeholder-grid,
.metric-wall,
.brief-grid,
.benefit-grid,
.signal-panel {
  display: grid;
  gap: 14px;
}

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

.stakeholder-grid div,
.benefit-grid div,
.signal-panel span {
  min-height: 138px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
}

.stakeholder-grid strong,
.benefit-grid strong {
  display: block;
  color: var(--green);
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1;
}

.stakeholder-grid span,
.benefit-grid span {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 20px);
}

.slide-system {
  background: var(--green);
}

.slide-system h2,
.slide-system p {
  color: white;
}

.slide-system .eyebrow {
  color: var(--leaf);
}

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

.flow span {
  display: flex;
  min-height: 86px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 900;
}

.flow span::before {
  width: 9px;
  height: 9px;
  margin-right: 14px;
  border-radius: 50%;
  background: var(--leaf);
  content: "";
}

.model-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.model-row figure {
  position: relative;
  min-height: 320px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--green);
}

.model-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.model-row figcaption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(19, 35, 27, 0.86);
  color: white;
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 900;
}

.slide-proof {
  grid-template-columns: minmax(0, 0.72fr) 1fr;
  background:
    linear-gradient(135deg, rgba(154, 202, 71, 0.2), transparent 40%),
    var(--paper);
}

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

.metric-wall div {
  min-height: 154px;
  padding: 24px;
  border-radius: 8px;
  background: var(--green);
  color: white;
}

.metric-wall strong {
  display: block;
  font-size: clamp(42px, 5.2vw, 72px);
  line-height: 0.95;
}

.metric-wall span {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(16px, 1.5vw, 20px);
}

.proof-note {
  grid-column: 1 / -1;
  max-width: 980px;
  color: var(--green);
  font-weight: 800;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #3f5147;
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 800;
}

.check-list li::before {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  margin-top: 10px;
  border-radius: 50%;
  background: var(--clay);
  content: "";
}

.slide-digital {
  background:
    linear-gradient(90deg, rgba(255, 253, 246, 0.95) 0%, rgba(255, 253, 246, 0.74) 46%, rgba(27, 61, 43, 0.08) 100%),
    var(--cream);
}

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

.signal-panel span {
  display: flex;
  min-height: 88px;
  align-items: center;
  color: var(--green);
  font-size: clamp(20px, 2.1vw, 30px);
  font-weight: 900;
}

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

.brief-grid span {
  display: grid;
  min-height: 92px;
  place-items: center;
  border: 1px solid rgba(27, 61, 43, 0.16);
  border-radius: 8px;
  background: var(--green);
  color: white;
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 900;
  text-align: center;
}

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

.slide-close {
  background:
    linear-gradient(90deg, rgba(27, 61, 43, 0.94), rgba(27, 61, 43, 0.76)),
    url("/assets/images/bakery.jpg") center / cover;
}

.slide-close h2,
.slide-close p {
  color: white;
}

.slide-close .eyebrow {
  color: var(--leaf);
}

.close-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.close-actions a,
.nav-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(19, 35, 27, 0.16);
  border-radius: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--green);
  font-weight: 950;
  text-decoration: none;
}

.close-actions a {
  min-height: 54px;
  padding: 14px 18px;
}

.deck-controls {
  padding-top: 14px;
}

.nav-button {
  cursor: pointer;
}

.nav-button.primary {
  border-color: var(--green);
  background: var(--green);
  color: white;
}

.nav-button:disabled {
  opacity: 0.42;
  cursor: default;
}

.slide-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.deck-dots {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 8px;
}

.deck-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(27, 61, 43, 0.22);
  cursor: pointer;
}

.deck-dot.is-active {
  background: var(--green);
}

@media (max-width: 1040px) {
  .deck {
    min-height: 100svh;
  }

  .slide {
    grid-template-columns: 1fr;
    align-content: start;
    overflow-y: auto;
  }

  .slide-photo {
    max-height: 34vh;
  }

  .stakeholder-grid,
  .model-row,
  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 1041px) and (max-height: 820px) {
  .deck {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .deck-topbar,
  .deck-controls {
    min-height: 44px;
  }

  .deck-controls {
    padding-top: 10px;
  }

  .slide {
    gap: 34px;
    padding: 42px 54px;
  }

  h1 {
    font-size: clamp(42px, 5vw, 68px);
  }

  h2 {
    margin-bottom: 16px;
    font-size: clamp(34px, 4.1vw, 52px);
    line-height: 1.02;
  }

  p {
    font-size: 18px;
  }

  .eyebrow {
    margin-bottom: 9px;
    font-size: 11px;
  }

  .slide-models {
    align-content: start;
  }

  .slide-models h2 {
    max-width: 1040px;
    font-size: clamp(32px, 3.6vw, 48px);
  }

  .slide-models .slide-copy {
    margin-bottom: 6px;
  }

  .model-row {
    gap: 14px;
  }

  .model-row figure {
    min-height: 220px;
    height: 220px;
  }

  .model-row figcaption {
    padding: 10px 12px;
    font-size: 18px;
  }

  .slide-quality {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 0.78fr);
  }

  .slide-quality .slide-photo {
    align-self: center;
    height: 420px;
    max-height: calc(100vh - 230px);
  }

  .slide-quality h2 {
    font-size: clamp(30px, 3.3vw, 44px);
  }

  .check-list {
    gap: 10px;
    margin-top: 18px;
  }

  .check-list li {
    font-size: 18px;
  }
}

@media (max-width: 720px) {
  .deck {
    padding: 10px;
  }

  .deck-stage {
    min-height: calc(100svh - 136px);
  }

  .slide {
    gap: 16px;
    padding: 18px;
  }

  h1 {
    font-size: 34px;
    line-height: 1.03;
  }

  h2 {
    margin-bottom: 14px;
    font-size: 27px;
    line-height: 1.06;
  }

  p {
    font-size: 15px;
  }

  .eyebrow {
    margin-bottom: 8px;
    font-size: 10px;
  }

  .deck-context,
  .deck-dots {
    display: none;
  }

  .stakeholder-grid,
  .metric-wall,
  .brief-grid,
  .benefit-grid,
  .signal-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .model-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stakeholder-grid div,
  .benefit-grid div,
  .signal-panel span,
  .brief-grid span {
    min-height: 68px;
    padding: 12px;
  }

  .stakeholder-grid strong,
  .benefit-grid strong {
    font-size: 20px;
  }

  .stakeholder-grid span,
  .benefit-grid span {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.25;
  }

  .metric-wall div {
    min-height: 98px;
    padding: 14px;
  }

  .metric-wall strong {
    font-size: 34px;
  }

  .metric-wall span {
    margin-top: 8px;
    font-size: 13px;
  }

  .proof-note {
    font-size: 14px;
    line-height: 1.35;
  }

  .model-row figure {
    min-height: 108px;
    max-height: 118px;
  }

  .model-row figcaption {
    right: 10px;
    bottom: 10px;
    left: 10px;
    padding: 8px 10px;
    font-size: 14px;
  }

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

  .flow span {
    min-height: 62px;
    padding: 12px;
    font-size: 17px;
  }

  .signal-panel span,
  .brief-grid span {
    font-size: 14px;
    line-height: 1.25;
  }

  .check-list {
    gap: 10px;
    margin-top: 16px;
  }

  .check-list li {
    font-size: 15px;
  }

  .slide-photo {
    max-height: 260px;
  }

  .deck-controls {
    gap: 10px;
  }

  .nav-button {
    min-width: 0;
    padding: 10px 12px;
    font-size: 13px;
  }
}
