@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --cream: #f7efe3;
  --warm-white: #fff8ee;
  --olive: #4f543a;
  --deep-olive: #252719;
  --sand: #d7bd95;
  --shadow: rgba(16, 12, 7, 0.38);
}

* { box-sizing: border-box; }

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

body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--deep-olive);
  color: var(--warm-white);
}

.presentation {
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.section {
  position: relative;
  min-height: 100vh;
  scroll-snap-align: start;
  overflow: hidden;
}

.hero { background: #1d1d14; }

.hero-gallery,
.hero-panel,
.hero-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-panel {
  opacity: 0;
  transform: translateX(24px) scale(1.01);
  transition: opacity 900ms ease, transform 1200ms ease;
}

.hero-panel.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.hero-panel img {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(22, 18, 10, 0.72) 0%, rgba(22, 18, 10, 0.52) 28%, rgba(22, 18, 10, 0.16) 52%, rgba(22, 18, 10, 0.04) 100%),
    linear-gradient(0deg, rgba(13, 10, 6, 0.30), rgba(13, 10, 6, 0.03) 45%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(560px, 42vw);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: clamp(28px, 5.5vw, 72px);
  padding-bottom: 56px;
  text-shadow: 0 20px 60px var(--shadow);
  animation: heroCopyIn 1400ms ease both 250ms;
}

.hero-copy h1 {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.94;
  font-size: clamp(48px, 6.3vw, 104px);
}

.hero-copy h1 span,
.hero-copy h1 strong {
  display: block;
}

.hero-copy h1 strong {
  font-weight: 500;
  color: var(--cream);
}

.hero-subtitle {
  margin: clamp(30px, 4vh, 48px) 0 0;
  font-size: clamp(17px, 1.7vw, 25px);
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: rgba(255, 248, 238, 0.88);
}

.partner-lockup {
  position: absolute;
  left: clamp(28px, 5.5vw, 72px);
  bottom: clamp(34px, 6vh, 70px);
  color: rgba(255, 248, 238, 0.86);
}

.partner-lockup p {
  margin: 0 0 5px;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.partner-lockup span {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 248, 238, 0.62);
}

.finish-controls {
  position: absolute;
  z-index: 3;
  right: clamp(28px, 4vw, 58px);
  bottom: clamp(34px, 6vh, 70px);
  display: flex;
  gap: 12px;
}

.finish-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 248, 238, 0.72);
  background: rgba(255, 248, 238, 0.18);
  cursor: pointer;
  padding: 0;
}

.finish-dot.is-active {
  background: var(--warm-white);
}

.scroll-arrow {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 248, 238, 0.52);
  border-radius: 999px;
  background: rgba(255, 248, 238, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  animation: arrowFloat 2.2s ease-in-out infinite;
}

.scroll-arrow span {
  display: block;
  width: 12px;
  height: 12px;
  border-right: 1.6px solid var(--warm-white);
  border-bottom: 1.6px solid var(--warm-white);
  transform: rotate(45deg);
  margin: 13px auto 0;
}

.placeholder-section {
  display: grid;
  place-items: center;
  background: var(--cream);
  color: var(--deep-olive);
}

.placeholder-content {
  width: min(760px, 82vw);
}

.eyebrow {
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px;
  color: var(--olive);
}

.placeholder-content h2 {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-size: clamp(44px, 7vw, 96px);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.placeholder-content p:last-child {
  font-size: 22px;
  color: rgba(37, 39, 25, 0.68);
}

@keyframes heroCopyIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes arrowFloat {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

@media (max-width: 900px) {
  .hero-copy {
    width: min(590px, 72vw);
    padding-left: 34px;
  }

  .partner-lockup { left: 34px; }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(22, 18, 10, 0.78) 0%, rgba(22, 18, 10, 0.44) 48%, rgba(22, 18, 10, 0.04) 100%),
      linear-gradient(0deg, rgba(13, 10, 6, 0.34), rgba(13, 10, 6, 0.03) 45%);
  }
}


/* PRESENTATION V1 POLISH — website typography + clearer horizontal finish navigation */
.presentation {
  overflow: hidden;
  scroll-snap-type: none;
}

.hero-copy h1 {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif !important;
  font-weight: 500 !important;
}

.hero-copy h1 span { font-weight: 400; }
.hero-copy h1 strong { font-weight: 600 !important; }

.hero-subtitle,
.partner-lockup,
.finish-controls,
.swipe-hint {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif !important;
}

.finish-nav {
  position: absolute;
  z-index: 5;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255,248,238,.42);
  background: rgba(255,248,238,.07);
  color: rgba(255,248,238,.88);
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  line-height: 38px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background .25s ease, transform .25s ease, border-color .25s ease;
}

.finish-nav:hover {
  background: rgba(255,248,238,.13);
  border-color: rgba(255,248,238,.7);
}

.finish-nav-prev { left: clamp(-12px, -0.5vw, 8px); }
.finish-nav-next { right: clamp(-12px, -0.5vw, 8px); }

.finish-controls {
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid rgba(255,248,238,.18);
  border-radius: 999px;
  background: rgba(10,8,5,.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.finish-label {
  display: none;
  margin-right: 4px;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,248,238,.68);
  white-space: nowrap;
}

.finish-label.is-active { display: inline-block; }

.swipe-hint {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 86px;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,248,238,.56);
  pointer-events: none;
}

.scroll-arrow {
  bottom: 30px;
}

@media (max-width: 900px) {
  .finish-nav { width: 46px; height: 46px; font-size: 36px; line-height: 38px; }
  .swipe-hint { bottom: 82px; width: 80vw; text-align: center; }
  .finish-controls { right: 22px; }
}

/* CHAPTER 2 — Designed for hospitality */
.presentation {
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.chapter {
  height: 100vh;
  min-height: 100vh;
  background: #17140d;
}

.chapter-strip {
  height: 100vh;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.chapter-strip::-webkit-scrollbar { display: none; }

.chapter-page {
  position: relative;
  flex: 0 0 100%;
  height: 100vh;
  scroll-snap-align: start;
  overflow: hidden;
  background: #17140d;
}

.chapter-page img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
}

.chapter-page-one img { object-position: center; }
.chapter-page-two img { object-position: center; }
.chapter-page-three img { object-position: center; }

.page-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 13, 7, 0.74) 0%, rgba(18, 13, 7, 0.50) 30%, rgba(18, 13, 7, 0.16) 58%, rgba(18, 13, 7, 0.03) 100%),
    linear-gradient(0deg, rgba(10, 7, 4, 0.26), rgba(10, 7, 4, 0.02) 52%);
  pointer-events: none;
}

.chapter-copy {
  position: relative;
  z-index: 2;
  width: min(680px, 44vw);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: clamp(28px, 5.5vw, 72px);
  padding-bottom: 56px;
  text-shadow: 0 20px 60px rgba(16, 12, 7, 0.45);
}

.chapter-copy .eyebrow {
  margin: 0 0 clamp(18px, 2.5vh, 30px);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(255, 248, 238, 0.74);
}

.chapter-copy h2 {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-size: clamp(52px, 6.4vw, 106px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.94;
  color: var(--cream);
}

.chapter-lede {
  margin: clamp(28px, 3.4vh, 42px) 0 0;
  max-width: 620px;
  font-size: clamp(17px, 1.35vw, 23px);
  line-height: 1.48;
  letter-spacing: -0.02em;
  color: rgba(255, 248, 238, 0.88);
}

.fact-list {
  display: grid;
  gap: 10px;
  margin-top: clamp(26px, 3.2vh, 40px);
  max-width: 520px;
}

.fact-list span {
  position: relative;
  padding-left: 22px;
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(13px, 1vw, 16px);
  line-height: 1.45;
  color: rgba(255, 248, 238, 0.78);
}

.fact-list span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 1px;
  background: rgba(255, 248, 238, 0.70);
}

.chapter-nav {
  position: absolute;
  z-index: 5;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(255,248,238,.42);
  background: rgba(255,248,238,.07);
  color: rgba(255,248,238,.88);
  font-family: 'Cormorant Garamond', serif;
  font-size: 44px;
  line-height: 46px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background .25s ease, transform .25s ease, border-color .25s ease, opacity .25s ease;
}

.chapter-nav:hover {
  background: rgba(255,248,238,.13);
  border-color: rgba(255,248,238,.7);
}

.chapter-prev { left: clamp(-12px, -0.5vw, 8px); }
.chapter-next { right: clamp(-12px, -0.5vw, 8px); }

.chapter-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255,248,238,.16);
  border-radius: 999px;
  background: rgba(10,8,5,.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.chapter-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 248, 238, 0.70);
  background: rgba(255, 248, 238, 0.14);
  padding: 0;
  cursor: pointer;
}

.chapter-dot.is-active { background: var(--warm-white); }

@media (max-width: 900px) {
  .chapter-copy {
    width: min(650px, 74vw);
    padding-left: 34px;
  }

  .chapter-copy h2 {
    font-size: clamp(48px, 10vw, 82px);
  }

  .chapter-lede {
    font-size: 17px;
  }

  .chapter-nav { width: 46px; height: 46px; font-size: 36px; line-height: 38px; }
}

/* CHAPTER 3 — Keeping hospitality simple */
.chapter-down-arrow {
  bottom: 28px;
}

.chapter-two .chapter-down-arrow {
  left: 50%;
  transform: translateX(-50%);
}

.chapter-two .chapter-down-arrow {
  bottom: 78px;
}

.chapter-three {
  background: #17140d;
}

.chapter-three-page {
  width: 100%;
  flex: none;
}

.chapter-three-page img {
  object-position: center;
}

.chapter-three .page-shade {
  background:
    linear-gradient(90deg, rgba(18, 13, 7, 0.78) 0%, rgba(18, 13, 7, 0.54) 32%, rgba(18, 13, 7, 0.18) 62%, rgba(18, 13, 7, 0.04) 100%),
    linear-gradient(0deg, rgba(10, 7, 4, 0.28), rgba(10, 7, 4, 0.03) 52%);
}

.chapter-three .chapter-copy {
  width: min(720px, 46vw);
}

.chapter-three .chapter-copy h2 {
  max-width: 700px;
}

@media (max-width: 900px) {
  .chapter-two .chapter-down-arrow { bottom: 76px; }
  .chapter-three .chapter-copy { width: min(650px, 76vw); }
}

/* CHAPTER 4 — Consistency by design */
.chapter-four {
  background: #17140d;
}

.chapter-four .chapter-down-arrow {
  bottom: 78px;
}

.chapter-four-page-one img,
.chapter-four-page-two img,
.chapter-four-page-three img {
  object-position: center;
}

.chapter-four .page-shade {
  background:
    linear-gradient(90deg, rgba(18, 13, 7, 0.76) 0%, rgba(18, 13, 7, 0.52) 31%, rgba(18, 13, 7, 0.17) 60%, rgba(18, 13, 7, 0.04) 100%),
    linear-gradient(0deg, rgba(10, 7, 4, 0.27), rgba(10, 7, 4, 0.03) 52%);
}

.chapter-four .chapter-copy {
  width: min(720px, 46vw);
}

.chapter-four .chapter-copy h2 {
  max-width: 720px;
}

@media (max-width: 900px) {
  .chapter-four .chapter-copy { width: min(650px, 76vw); }
  .chapter-four .chapter-down-arrow { bottom: 76px; }
}


/* CHAPTER 5 — Designed for busy teams */
.chapter-five {
  background: #17140d;
}

.chapter-five-page {
  width: 100%;
  flex: none;
}

.chapter-five-page img {
  object-position: center;
}

.chapter-five .page-shade {
  background:
    linear-gradient(90deg, rgba(18, 13, 7, 0.78) 0%, rgba(18, 13, 7, 0.54) 32%, rgba(18, 13, 7, 0.18) 62%, rgba(18, 13, 7, 0.04) 100%),
    linear-gradient(0deg, rgba(10, 7, 4, 0.28), rgba(10, 7, 4, 0.03) 52%);
}

.chapter-five .chapter-copy {
  width: min(720px, 46vw);
}

.chapter-five .chapter-copy h2 {
  max-width: 720px;
}

.chapter-five .chapter-down-arrow {
  bottom: 28px;
}

@media (max-width: 900px) {
  .chapter-five .chapter-copy { width: min(650px, 76vw); }
}


/* CHAPTER 6 — Small footprint. Big return. */
.chapter-six {
  background: #17140d;
}

.chapter-six-page {
  width: 100%;
  flex: none;
}

.chapter-six-page img {
  object-position: center;
}

.chapter-six .page-shade {
  background:
    linear-gradient(90deg, rgba(18, 13, 7, 0.78) 0%, rgba(18, 13, 7, 0.54) 32%, rgba(18, 13, 7, 0.18) 62%, rgba(18, 13, 7, 0.04) 100%),
    linear-gradient(0deg, rgba(10, 7, 4, 0.28), rgba(10, 7, 4, 0.03) 52%);
}

.chapter-six .chapter-copy {
  width: min(720px, 46vw);
}

.chapter-six .chapter-copy h2 {
  max-width: 720px;
}

.chapter-six .chapter-down-arrow {
  bottom: 28px;
}

@media (max-width: 900px) {
  .chapter-six .chapter-copy { width: min(650px, 76vw); }
}


/* CHAPTER 7 — Revenue calculator */
.chapter-seven {
  background: #efe6d8;
}

.calculator-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #efe6d8;
}


/* CHAPTER 8 — Staff time comparison */
.chapter-seven {
  position: relative;
}

.calculator-down-arrow {
  bottom: 28px;
  background: rgba(22, 18, 10, 0.14);
  border-color: rgba(79, 74, 67, 0.34);
}

.calculator-down-arrow span {
  border-right-color: rgba(79, 74, 67, 0.86);
  border-bottom-color: rgba(79, 74, 67, 0.86);
}

.chapter-eight {
  background: #17140d;
}

.chapter-eight-page {
  width: 100%;
  flex: none;
}

.chapter-eight-page img {
  object-position: center;
}

.chapter-eight .chapter-down-arrow {
  bottom: 28px;
}

/* CHAPTER 8 — corrected fit-to-screen table */
.chapter-eight {
  background: #17140d;
}

.chapter-eight-page {
  width: 100%;
  height: 100vh;
  flex: none;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  background: #17140d;
}

.chapter-eight-page img {
  position: relative;
  inset: auto;
  width: 100%;
  height: calc(100vh - 72px);
  max-width: 100%;
  max-height: calc(100vh - 72px);
  object-fit: contain;
  object-position: center top;
  transform: none;
  display: block;
}

.chapter-eight .chapter-down-arrow {
  bottom: 12px;
  background: rgba(255, 248, 238, 0.10);
  border-color: rgba(255, 248, 238, 0.42);
}

@media (max-width: 1200px) {
  .chapter-eight-page img {
    height: calc(100vh - 64px);
    max-height: calc(100vh - 64px);
  }
  .chapter-eight .chapter-down-arrow { bottom: 10px; }
}

/* NEW CHAPTER 2 — The machine fits anywhere */
.chapter-two-intro .page-shade-center {
  background:
    radial-gradient(circle at 50% 44%, rgba(10, 7, 4, 0.28) 0%, rgba(10, 7, 4, 0.50) 44%, rgba(10, 7, 4, 0.70) 100%),
    linear-gradient(0deg, rgba(10, 7, 4, 0.30), rgba(10, 7, 4, 0.08) 52%);
}

.chapter-copy-center {
  width: min(860px, 72vw);
  min-height: 100vh;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
  align-items: center;
  text-align: center;
}

.chapter-copy-center h2 {
  max-width: 860px;
}

.chapter-copy-center .chapter-lede {
  max-width: 700px;
}

.fact-list-center {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 42px);
  max-width: none;
}

.fact-list-center span {
  padding-left: 0;
  font-size: clamp(14px, 1.1vw, 18px);
  color: rgba(255, 248, 238, 0.84);
}

.fact-list-center span::before { display: none; }

.chapter-two-page img {
  object-position: center;
}

.chapter-two .chapter-down-arrow {
  bottom: 78px;
}

@media (max-width: 900px) {
  .chapter-copy-center {
    width: min(650px, 78vw);
  }
  .fact-list-center {
    display: grid;
    gap: 10px;
  }
}


/* NEW CHAPTER 3 — It doesn't create work */
.chapter-three {
  background: #17140d;
}

.chapter-three .chapter-strip {
  height: 100vh;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.chapter-three .chapter-strip::-webkit-scrollbar { display: none; }

.chapter-three-page img {
  object-position: center;
}

.chapter-three-intro .page-shade-center {
  background:
    radial-gradient(circle at 50% 44%, rgba(10, 7, 4, 0.20) 0%, rgba(10, 7, 4, 0.46) 46%, rgba(10, 7, 4, 0.72) 100%),
    linear-gradient(0deg, rgba(10, 7, 4, 0.32), rgba(10, 7, 4, 0.08) 52%);
}

.chapter-three .page-shade:not(.page-shade-center) {
  background:
    linear-gradient(90deg, rgba(18, 13, 7, 0.76) 0%, rgba(18, 13, 7, 0.52) 31%, rgba(18, 13, 7, 0.17) 60%, rgba(18, 13, 7, 0.04) 100%),
    linear-gradient(0deg, rgba(10, 7, 4, 0.27), rgba(10, 7, 4, 0.03) 52%);
}

.chapter-three .chapter-copy h2 {
  max-width: 700px;
}

.chapter-three .chapter-down-arrow {
  bottom: 78px;
}

.chapter3-prev { left: clamp(-12px, -0.5vw, 8px); }
.chapter3-next { right: clamp(-12px, -0.5vw, 8px); }

@media (max-width: 900px) {
  .chapter-three .chapter-copy { width: min(650px, 76vw); }
  .chapter-three .chapter-down-arrow { bottom: 76px; }
}


/* NEW CHAPTER 4 — Commercial opportunity */
.chapter-four-commercial {
  width: 100%;
  flex: none;
}

.chapter-four-commercial img {
  object-position: center;
}

.chapter-four-commercial .page-shade {
  background:
    linear-gradient(90deg, rgba(18, 13, 7, 0.78) 0%, rgba(18, 13, 7, 0.56) 32%, rgba(18, 13, 7, 0.19) 62%, rgba(18, 13, 7, 0.05) 100%),
    linear-gradient(0deg, rgba(10, 7, 4, 0.30), rgba(10, 7, 4, 0.04) 52%);
}

.chapter-four-commercial .chapter-copy {
  width: min(760px, 48vw);
}

.chapter-four-commercial .chapter-copy h2 {
  max-width: 700px;
}

.chapter-transition {
  margin: clamp(30px, 4vh, 52px) 0 0;
  max-width: 650px;
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-size: clamp(28px, 3.2vw, 50px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: rgba(255, 248, 238, 0.94);
}

.chapter-four-commercial .chapter-down-arrow {
  bottom: 28px;
}

@media (max-width: 900px) {
  .chapter-four-commercial .chapter-copy { width: min(650px, 76vw); }
}


/* Sales Chapter 4 — flavour carousel imported from Sol Serve website */
.sales-flavour-section{
  position:relative;
  min-height:100svh;
  height:100svh;
  overflow:hidden;
  background:#050403;
  color:#F5E9D6;
  padding:clamp(70px,8vh,110px) 7vw clamp(70px,8vh,105px);
  display:grid;
  grid-template-columns:minmax(330px,.82fr) minmax(520px,1.18fr);
  gap:clamp(32px,5vw,86px);
  align-items:center;
}
.sales-flavour-section::after{
  content:"";
  position:absolute;
  inset:0;
  background-image:url('assets/moment5-costa-del-sol.webp');
  background-size:cover;
  background-position:center center;
  background-repeat:no-repeat;
  z-index:0;
  pointer-events:none;
}
.sales-flavour-section::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.60) 0%, rgba(0,0,0,.39) 42%, rgba(0,0,0,.60) 100%),
    linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.34) 45%, rgba(0,0,0,.52) 100%),
    radial-gradient(circle at 70% 44%, rgba(212,162,58,.12), transparent 36%);
  z-index:1;
  pointer-events:none;
}
.sales-flavour-section > *{position:relative;z-index:5;}
.flavour-orbit-copy{max-width:710px;}
.sales-flavour-section .chapter-label{
  margin:0 0 24px;
  font-family:Inter, ui-sans-serif, system-ui, sans-serif;
  font-size:13px;
  letter-spacing:.34em;
  text-transform:uppercase;
  color:rgba(245,233,214,.82);
}
.sales-flavour-section h2{
  margin:0;
  font-family:'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-size:clamp(76px,7.3vw,138px);
  line-height:.86;
  letter-spacing:-.045em;
  font-weight:500;
  color:#F5E9D6;
}
.sales-flavour-section .flavour-orbit-intro{
  margin:clamp(24px,3vh,38px) 0 0;
  max-width:690px;
  font-size:clamp(17px,1.18vw,21px);
  line-height:1.48;
  color:rgba(245,233,214,.88);
}
.flavour-orbit-stage{position:relative;z-index:5;min-height:min(620px,72vh);display:flex;align-items:center;justify-content:center;perspective:1100px;}
.flavour-orbit{position:relative;width:min(680px,100%);height:min(520px,62vh);transform-style:preserve-3d;user-select:none;touch-action:pan-y;}
.orbit-card{
  position:absolute;left:50%;top:50%;width:clamp(145px,16vw,255px);transform-style:preserve-3d;
  transition:transform .75s cubic-bezier(.2,.82,.2,1),opacity .75s ease,filter .75s ease;
  opacity:.34;filter:blur(.2px) saturate(.82) brightness(.74) drop-shadow(0 20px 34px rgba(0,0,0,.28));
  pointer-events:auto;will-change:transform,opacity,filter;
}
.orbit-card img{width:100%;height:auto;display:block;object-fit:contain;}
.orbit-card[data-offset="0"]{transform:translate(-50%,-54%) translate3d(0,0,220px) scale(1.42);z-index:10;opacity:1;filter:drop-shadow(0 34px 46px rgba(0,0,0,.45));}
.orbit-card[data-offset="1"]{transform:translate(-50%,-50%) translate3d(235px,18px,70px) rotateY(-24deg) scale(.78);z-index:7;opacity:.78;}
.orbit-card[data-offset="-1"]{transform:translate(-50%,-50%) translate3d(-235px,18px,70px) rotateY(24deg) scale(.78);z-index:7;opacity:.78;}
.orbit-card[data-offset="2"]{transform:translate(-50%,-50%) translate3d(325px,58px,-110px) rotateY(-38deg) scale(.54);z-index:4;opacity:.36;}
.orbit-card[data-offset="-2"]{transform:translate(-50%,-50%) translate3d(-325px,58px,-110px) rotateY(38deg) scale(.54);z-index:4;opacity:.36;}
.orbit-card[data-offset="3"],.orbit-card[data-offset="-3"]{transform:translate(-50%,-50%) translate3d(0,86px,-230px) scale(.42);z-index:1;opacity:.16;filter:blur(1.6px) saturate(.65) brightness(.55);}
.orbit-caption{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);text-align:center;z-index:12;min-width:300px;pointer-events:none;}
.orbit-caption .orbit-type{display:block;font-family:Inter, ui-sans-serif, system-ui, sans-serif;font-size:11px;letter-spacing:.34em;line-height:1;text-transform:uppercase;color:rgba(245,233,214,.58);}
.orbit-caption h3{margin:8px 0 0;font-family:'Cormorant Garamond', Georgia, 'Times New Roman', serif;font-size:clamp(40px,4vw,68px);line-height:.9;font-weight:500;color:#F5E9D6;}
.flavour-orbit-btn{position:absolute;top:50%;transform:translateY(-50%);z-index:20;width:54px;height:54px;border:1px solid rgba(245,233,214,.38);border-radius:999px;background:rgba(255,255,255,.045);color:#F5E9D6;font-size:42px;line-height:45px;font-family:Georgia,serif;cursor:pointer;}
.flavour-prev{left:0}.flavour-next{right:0}
.orbit-dots{position:absolute;left:50%;bottom:-24px;transform:translateX(-50%);z-index:14;display:flex;gap:11px;}
.orbit-dots button{width:7px;height:7px;padding:0;border:1px solid rgba(245,233,214,.58);border-radius:99px;background:transparent;cursor:pointer;}
.orbit-dots button.is-active{width:28px;background:#F5E9D6;border-color:#F5E9D6;}
.sales-flavour-section .flavour-down-arrow{z-index:22;bottom:28px;}

@media (min-width:601px) and (max-width:1180px) and (orientation:landscape){
  .sales-flavour-section{grid-template-columns:minmax(270px,.78fr) minmax(390px,1.22fr);gap:24px;padding:52px 5.5vw 48px;align-items:center;}
  .sales-flavour-section .flavour-orbit-copy{max-width:410px;}
  .sales-flavour-section .chapter-label{margin-bottom:14px;font-size:11px;letter-spacing:.28em;}
  .sales-flavour-section h2{font-size:clamp(48px,6vw,74px);line-height:.88;letter-spacing:-.04em;}
  .sales-flavour-section .flavour-orbit-intro{margin-top:18px;max-width:390px;font-size:clamp(13px,1.55vw,16px);line-height:1.38;}
  .flavour-orbit-stage{min-height:360px;}
  .flavour-orbit{width:min(520px,100%);height:330px;}
  .orbit-card{width:clamp(96px,12vw,152px);}
  .orbit-card[data-offset="0"]{transform:translate(-50%,-56%) translate3d(0,0,145px) scale(1.10);}
  .orbit-card[data-offset="1"]{transform:translate(-50%,-50%) translate3d(165px,12px,45px) rotateY(-22deg) scale(.68);opacity:.68;}
  .orbit-card[data-offset="-1"]{transform:translate(-50%,-50%) translate3d(-165px,12px,45px) rotateY(22deg) scale(.68);opacity:.68;}
  .orbit-card[data-offset="2"]{transform:translate(-50%,-50%) translate3d(225px,42px,-90px) rotateY(-34deg) scale(.46);opacity:.28;}
  .orbit-card[data-offset="-2"]{transform:translate(-50%,-50%) translate3d(-225px,42px,-90px) rotateY(34deg) scale(.46);opacity:.28;}
  .orbit-card[data-offset="3"],.orbit-card[data-offset="-3"]{transform:translate(-50%,-50%) translate3d(0,72px,-200px) scale(.34);opacity:.10;}
  .orbit-caption{bottom:0;}
  .orbit-caption .orbit-type{font-size:10px;letter-spacing:.28em;}
  .orbit-caption h3{font-size:clamp(30px,4vw,42px);}
  .flavour-orbit-btn{width:44px;height:44px;font-size:34px;line-height:36px;}
  .flavour-prev{left:-6px}.flavour-next{right:-6px}
  .orbit-dots{bottom:-20px;}
  .sales-flavour-section .flavour-down-arrow{bottom:18px;}
}
@media(max-width:600px){
  .sales-flavour-section{display:block;height:auto;min-height:100svh;padding:86px 7vw 112px;}
  .sales-flavour-section::after{background-position:62% center;}
  .sales-flavour-section h2{font-size:clamp(58px,16.5vw,82px);line-height:.88;}
  .sales-flavour-section .flavour-orbit-intro{font-size:17px;line-height:1.46;}
  .flavour-orbit-stage{min-height:470px;margin-top:36px;}
  .flavour-orbit{height:390px;width:100%;}
  .orbit-card{width:clamp(112px,38vw,168px);}
  .orbit-card[data-offset="0"]{transform:translate(-50%,-58%) translate3d(0,0,180px) scale(1.32);}
  .orbit-card[data-offset="1"]{transform:translate(-50%,-50%) translate3d(115px,18px,25px) rotateY(-20deg) scale(.68);opacity:.68;}
  .orbit-card[data-offset="-1"]{transform:translate(-50%,-50%) translate3d(-115px,18px,25px) rotateY(20deg) scale(.68);opacity:.68;}
  .orbit-card[data-offset="2"],.orbit-card[data-offset="-2"],.orbit-card[data-offset="3"],.orbit-card[data-offset="-3"]{transform:translate(-50%,-50%) translate3d(0,68px,-170px) scale(.38);opacity:0;pointer-events:none;}
  .flavour-orbit-btn{width:46px;height:46px;font-size:34px;line-height:38px;}
  .flavour-prev{left:-6px}.flavour-next{right:-6px}
  .orbit-caption{bottom:4px}.orbit-caption h3{font-size:42px}.orbit-dots{bottom:-28px;}
}

/* OnePlus Pad / large tablet landscape fix for flavour carousel */
@media (orientation: landscape) and (min-width: 900px) and (max-height: 950px) {
  .sales-flavour-section {
    height: 100dvh;
    min-height: 100dvh;
    grid-template-columns: minmax(300px, .82fr) minmax(420px, 1.18fr);
    gap: clamp(18px, 3vw, 42px);
    padding: clamp(42px, 5vh, 64px) 6vw clamp(44px, 5vh, 64px);
    align-items: center;
  }

  .sales-flavour-section .flavour-orbit-copy {
    max-width: 450px;
  }

  .sales-flavour-section .chapter-label {
    margin-bottom: 14px;
    font-size: 10px;
    letter-spacing: .30em;
  }

  .sales-flavour-section h2 {
    font-size: clamp(50px, 5.8vw, 82px);
    line-height: .88;
    letter-spacing: -.045em;
  }

  .sales-flavour-section .flavour-orbit-intro {
    margin-top: 18px;
    max-width: 400px;
    font-size: clamp(13px, 1.35vw, 16px);
    line-height: 1.38;
  }

  .flavour-orbit-stage {
    min-height: min(390px, 56vh);
    transform: translateY(-10px);
  }

  .flavour-orbit {
    width: min(540px, 100%);
    height: min(350px, 52vh);
  }

  .orbit-card {
    width: clamp(98px, 11vw, 150px);
  }

  .orbit-card[data-offset="0"] {
    transform: translate(-50%, -56%) translate3d(0,0,150px) scale(1.16);
  }

  .orbit-card[data-offset="1"] {
    transform: translate(-50%, -50%) translate3d(170px,12px,48px) rotateY(-22deg) scale(.70);
    opacity: .72;
  }

  .orbit-card[data-offset="-1"] {
    transform: translate(-50%, -50%) translate3d(-170px,12px,48px) rotateY(22deg) scale(.70);
    opacity: .72;
  }

  .orbit-card[data-offset="2"] {
    transform: translate(-50%, -50%) translate3d(230px,40px,-92px) rotateY(-34deg) scale(.46);
    opacity: .30;
  }

  .orbit-card[data-offset="-2"] {
    transform: translate(-50%, -50%) translate3d(-230px,40px,-92px) rotateY(34deg) scale(.46);
    opacity: .30;
  }

  .orbit-card[data-offset="3"],
  .orbit-card[data-offset="-3"] {
    transform: translate(-50%, -50%) translate3d(0,70px,-200px) scale(.34);
    opacity: .10;
  }

  .orbit-caption {
    bottom: 0;
  }

  .orbit-caption .orbit-type {
    font-size: 9px;
    letter-spacing: .30em;
  }

  .orbit-caption h3 {
    font-size: clamp(30px, 3.2vw, 44px);
  }

  .flavour-orbit-btn {
    width: 44px;
    height: 44px;
    font-size: 34px;
    line-height: 36px;
  }

  .flavour-prev { left: -8px; }
  .flavour-next { right: -8px; }
  .orbit-dots { bottom: -18px; }
  .sales-flavour-section .flavour-down-arrow { bottom: 16px; }
}

/* Slightly tighter flavour carousel for very short tablet/browser UI heights */
@media (orientation: landscape) and (min-width: 900px) and (max-height: 760px) {
  .sales-flavour-section {
    padding-top: 34px;
    padding-bottom: 38px;
  }
  .sales-flavour-section h2 {
    font-size: clamp(44px, 5vw, 68px);
  }
  .sales-flavour-section .flavour-orbit-intro {
    font-size: 13px;
    line-height: 1.34;
  }
  .flavour-orbit-stage {
    min-height: 320px;
    transform: translateY(-14px);
  }
  .flavour-orbit {
    height: 300px;
    width: min(500px, 100%);
  }
  .orbit-card { width: clamp(86px, 10vw, 132px); }
  .orbit-card[data-offset="0"] { transform: translate(-50%, -56%) translate3d(0,0,130px) scale(1.10); }
  .orbit-card[data-offset="1"] { transform: translate(-50%, -50%) translate3d(150px,10px,44px) rotateY(-22deg) scale(.68); }
  .orbit-card[data-offset="-1"] { transform: translate(-50%, -50%) translate3d(-150px,10px,44px) rotateY(22deg) scale(.68); }
  .orbit-card[data-offset="2"] { transform: translate(-50%, -50%) translate3d(205px,36px,-90px) rotateY(-34deg) scale(.44); }
  .orbit-card[data-offset="-2"] { transform: translate(-50%, -50%) translate3d(-205px,36px,-90px) rotateY(34deg) scale(.44); }
  .orbit-caption h3 { font-size: 34px; }
  .sales-flavour-section .flavour-down-arrow { bottom: 12px; }
}


/* Tablet flavour carousel size boost — OnePlus Pad landscape */
@media (orientation: landscape) and (min-width: 900px) and (max-height: 950px) {
  .flavour-orbit-stage {
    min-height: min(450px, 62vh);
    transform: translateY(-6px);
  }
  .flavour-orbit {
    width: min(660px, 100%);
    height: min(420px, 58vh);
  }
  .orbit-card {
    width: clamp(150px, 16vw, 210px);
  }
  .orbit-card[data-offset="0"] {
    transform: translate(-50%, -56%) translate3d(0,0,185px) scale(1.24);
  }
  .orbit-card[data-offset="1"] {
    transform: translate(-50%, -50%) translate3d(215px,14px,58px) rotateY(-22deg) scale(.72);
    opacity: .74;
  }
  .orbit-card[data-offset="-1"] {
    transform: translate(-50%, -50%) translate3d(-215px,14px,58px) rotateY(22deg) scale(.72);
    opacity: .74;
  }
  .orbit-card[data-offset="2"] {
    transform: translate(-50%, -50%) translate3d(290px,44px,-96px) rotateY(-34deg) scale(.48);
    opacity: .30;
  }
  .orbit-card[data-offset="-2"] {
    transform: translate(-50%, -50%) translate3d(-290px,44px,-96px) rotateY(34deg) scale(.48);
    opacity: .30;
  }
  .orbit-caption { bottom: -2px; }
  .orbit-dots { bottom: -20px; }
}

/* Short tablet/browser-height version: larger cups while still fitting */
@media (orientation: landscape) and (min-width: 900px) and (max-height: 760px) {
  .flavour-orbit-stage {
    min-height: 365px;
    transform: translateY(-8px);
  }
  .flavour-orbit {
    width: min(610px, 100%);
    height: 355px;
  }
  .orbit-card {
    width: clamp(132px, 15vw, 185px);
  }
  .orbit-card[data-offset="0"] {
    transform: translate(-50%, -56%) translate3d(0,0,165px) scale(1.24);
  }
  .orbit-card[data-offset="1"] {
    transform: translate(-50%, -50%) translate3d(195px,12px,52px) rotateY(-22deg) scale(.70);
  }
  .orbit-card[data-offset="-1"] {
    transform: translate(-50%, -50%) translate3d(-195px,12px,52px) rotateY(22deg) scale(.70);
  }
  .orbit-card[data-offset="2"] {
    transform: translate(-50%, -50%) translate3d(260px,40px,-92px) rotateY(-34deg) scale(.46);
  }
  .orbit-card[data-offset="-2"] {
    transform: translate(-50%, -50%) translate3d(-260px,40px,-92px) rotateY(34deg) scale(.46);
  }
  .orbit-caption { bottom: -4px; }
  .orbit-caption h3 { font-size: clamp(34px, 3.5vw, 46px); }
  .orbit-dots { bottom: -20px; }
}

/* Tablet flavour carousel +30% cup boost — requested after larger-cups build */
@media (orientation: landscape) and (min-width: 900px) and (max-height: 950px) {
  .flavour-orbit-stage {
    min-height: min(510px, 66vh);
    transform: translateY(-8px);
  }
  .flavour-orbit {
    width: min(780px, 100%);
    height: min(500px, 64vh);
  }
  .orbit-card {
    width: clamp(195px, 20.8vw, 273px);
  }
  .orbit-card[data-offset="0"] {
    transform: translate(-50%, -56%) translate3d(0,0,205px) scale(1.24);
  }
  .orbit-card[data-offset="1"] {
    transform: translate(-50%, -50%) translate3d(255px,14px,62px) rotateY(-22deg) scale(.72);
  }
  .orbit-card[data-offset="-1"] {
    transform: translate(-50%, -50%) translate3d(-255px,14px,62px) rotateY(22deg) scale(.72);
  }
  .orbit-card[data-offset="2"] {
    transform: translate(-50%, -50%) translate3d(340px,44px,-96px) rotateY(-34deg) scale(.48);
  }
  .orbit-card[data-offset="-2"] {
    transform: translate(-50%, -50%) translate3d(-340px,44px,-96px) rotateY(34deg) scale(.48);
  }
  .orbit-caption { bottom: -8px; }
  .orbit-dots { bottom: -28px; }
}

/* Short tablet/browser-height +30% cup boost */
@media (orientation: landscape) and (min-width: 900px) and (max-height: 760px) {
  .flavour-orbit-stage {
    min-height: 430px;
    transform: translateY(-10px);
  }
  .flavour-orbit {
    width: min(720px, 100%);
    height: 430px;
  }
  .orbit-card {
    width: clamp(172px, 19.5vw, 241px);
  }
  .orbit-card[data-offset="0"] {
    transform: translate(-50%, -56%) translate3d(0,0,188px) scale(1.24);
  }
  .orbit-card[data-offset="1"] {
    transform: translate(-50%, -50%) translate3d(230px,12px,56px) rotateY(-22deg) scale(.70);
  }
  .orbit-card[data-offset="-1"] {
    transform: translate(-50%, -50%) translate3d(-230px,12px,56px) rotateY(22deg) scale(.70);
  }
  .orbit-card[data-offset="2"] {
    transform: translate(-50%, -50%) translate3d(305px,40px,-92px) rotateY(-34deg) scale(.46);
  }
  .orbit-card[data-offset="-2"] {
    transform: translate(-50%, -50%) translate3d(-305px,40px,-92px) rotateY(34deg) scale(.46);
  }
  .orbit-caption { bottom: -10px; }
  .orbit-caption h3 { font-size: clamp(34px, 3.5vw, 46px); }
  .orbit-dots { bottom: -30px; }
}


/* Language switch */
.language-switch {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 248, 238, 0.22);
  border-radius: 999px;
  background: rgba(24, 21, 14, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: rgba(255, 248, 238, 0.72);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.14);
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 248, 238, 0.54);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(10px, 0.85vw, 12px);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 2px 0;
  cursor: pointer;
  transition: color 180ms ease, opacity 180ms ease;
}

.lang-btn.is-active {
  color: var(--warm-white);
}

.lang-separator {
  color: rgba(255, 248, 238, 0.35);
  font-size: 11px;
  line-height: 1;
}

@media (max-width: 900px) {
  .language-switch {
    top: max(10px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    padding: 7px 10px;
  }
  .lang-btn {
    font-size: 10px;
    letter-spacing: 0.12em;
  }
}

/* v1.0 polish pass — brighter venue images + tighter chapter messaging */
.hero-overlay {
  background:
    linear-gradient(90deg, rgba(22, 18, 10, 0.60) 0%, rgba(22, 18, 10, 0.38) 30%, rgba(22, 18, 10, 0.10) 56%, rgba(22, 18, 10, 0.02) 100%),
    linear-gradient(0deg, rgba(13, 10, 6, 0.20), rgba(13, 10, 6, 0.02) 45%) !important;
}

.page-shade,
.chapter-three .page-shade:not(.page-shade-center),
.chapter-five .page-shade,
.chapter-four-commercial .page-shade {
  background:
    linear-gradient(90deg, rgba(18, 13, 7, 0.58) 0%, rgba(18, 13, 7, 0.38) 31%, rgba(18, 13, 7, 0.11) 62%, rgba(18, 13, 7, 0.02) 100%),
    linear-gradient(0deg, rgba(10, 7, 4, 0.18), rgba(10, 7, 4, 0.01) 52%) !important;
}

.chapter-two-intro .page-shade-center,
.chapter-three-intro .page-shade-center {
  background:
    radial-gradient(circle at 48% 44%, rgba(10, 7, 4, 0.16) 0%, rgba(10, 7, 4, 0.34) 46%, rgba(10, 7, 4, 0.56) 100%),
    linear-gradient(0deg, rgba(10, 7, 4, 0.20), rgba(10, 7, 4, 0.04) 52%) !important;
}

.sales-flavour-section::before {
  background:
    linear-gradient(90deg, rgba(0,0,0,.46) 0%, rgba(0,0,0,.28) 42%, rgba(0,0,0,.46) 100%),
    linear-gradient(180deg, rgba(0,0,0,.30) 0%, rgba(0,0,0,.22) 45%, rgba(0,0,0,.40) 100%),
    radial-gradient(circle at 70% 44%, rgba(212,162,58,.14), transparent 36%) !important;
}

.chapter-three-intro .chapter-copy-center {
  width: min(650px, 42vw);
  margin-left: clamp(54px, 8vw, 130px);
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
  align-items: center;
  text-align: center;
}

.chapter-three .chapter-copy .chapter-lede {
  max-width: 560px;
}

.chapter-five .chapter-copy {
  width: min(700px, 44vw);
}

.chapter-five .chapter-copy h2 {
  max-width: 700px;
}

.chapter-five .revenue-line {
  margin-top: clamp(16px, 2.1vh, 24px);
  font-size: clamp(22px, 2.1vw, 34px);
  line-height: 1.16;
  color: rgba(255, 248, 238, 0.92);
}

.chapter-five .revenue-line + .revenue-line {
  margin-top: clamp(10px, 1.5vh, 16px);
}

.chapter-five .chapter-transition {
  margin-top: clamp(48px, 7vh, 86px);
}

@media (max-width: 900px) {
  .chapter-three-intro .chapter-copy-center {
    width: min(560px, 52vw);
    margin-left: clamp(34px, 7vw, 78px);
  }
  .chapter-five .chapter-copy { width: min(620px, 74vw); }
  .chapter-five .revenue-line { font-size: clamp(20px, 3.2vw, 30px); }
}


/* v1.1 polish pass — brighter field-tested images, cleaner Ch2/Ch5, flavour type match */
.hero-overlay {
  background:
    linear-gradient(90deg, rgba(22, 18, 10, 0.42) 0%, rgba(22, 18, 10, 0.27) 30%, rgba(22, 18, 10, 0.07) 56%, rgba(22, 18, 10, 0.01) 100%),
    linear-gradient(0deg, rgba(13, 10, 6, 0.14), rgba(13, 10, 6, 0.01) 45%) !important;
}

.page-shade,
.chapter-three .page-shade:not(.page-shade-center),
.chapter-five .page-shade,
.chapter-four-commercial .page-shade {
  background:
    linear-gradient(90deg, rgba(18, 13, 7, 0.41) 0%, rgba(18, 13, 7, 0.27) 31%, rgba(18, 13, 7, 0.08) 62%, rgba(18, 13, 7, 0.01) 100%),
    linear-gradient(0deg, rgba(10, 7, 4, 0.13), rgba(10, 7, 4, 0.01) 52%) !important;
}

.chapter-two-intro .page-shade-center,
.chapter-three-intro .page-shade-center {
  background:
    radial-gradient(circle at 48% 44%, rgba(10, 7, 4, 0.11) 0%, rgba(10, 7, 4, 0.24) 46%, rgba(10, 7, 4, 0.39) 100%),
    linear-gradient(0deg, rgba(10, 7, 4, 0.14), rgba(10, 7, 4, 0.03) 52%) !important;
}

.sales-flavour-section::before {
  background:
    linear-gradient(90deg, rgba(0,0,0,.32) 0%, rgba(0,0,0,.20) 42%, rgba(0,0,0,.32) 100%),
    linear-gradient(180deg, rgba(0,0,0,.21) 0%, rgba(0,0,0,.16) 45%, rgba(0,0,0,.28) 100%),
    radial-gradient(circle at 70% 44%, rgba(212,162,58,.13), transparent 36%) !important;
}

/* Chapter 2 opener: keep the centred editorial block, but move it left so the image breathes */
.chapter-two-intro .chapter-copy-center {
  width: min(650px, 42vw);
  margin-left: clamp(54px, 8vw, 130px);
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
  align-items: center;
  text-align: center;
}

.chapter-two-intro .chapter-copy-center h2 {
  max-width: 650px;
}

.chapter-two-intro .chapter-copy-center .chapter-lede {
  max-width: 620px;
}

/* Flavour carousel: slightly larger, lighter-feeling text to match the chapter language */
.sales-flavour-section h2 {
  font-size: clamp(82px, 7.6vw, 142px) !important;
  line-height: .88 !important;
  font-weight: 500 !important;
}

.sales-flavour-section .flavour-orbit-intro {
  font-size: clamp(18px, 1.24vw, 22px) !important;
  line-height: 1.46 !important;
}

/* Chapter 5: quieter, more premium commercial bridge into the calculator */
.chapter-five .chapter-copy {
  width: min(650px, 42vw) !important;
}

.chapter-five .chapter-copy h2 {
  max-width: 650px !important;
  font-size: clamp(48px, 5.35vw, 90px) !important;
  line-height: .96 !important;
  font-weight: 500 !important;
}

.chapter-five .revenue-line {
  margin-top: clamp(14px, 1.8vh, 22px) !important;
  font-size: clamp(19px, 1.65vw, 27px) !important;
  line-height: 1.22 !important;
  font-weight: 400 !important;
  color: rgba(255, 248, 238, 0.90) !important;
}

.chapter-five .revenue-line strong {
  font-weight: 600 !important;
}

.chapter-five .revenue-line + .revenue-line {
  margin-top: clamp(8px, 1.1vh, 13px) !important;
}

.chapter-five .chapter-transition {
  margin-top: clamp(46px, 7vh, 88px) !important;
  max-width: 560px !important;
  font-size: clamp(27px, 3vw, 46px) !important;
  line-height: 1.05 !important;
  font-weight: 500 !important;
}

/* Language selector: slightly quieter and more presentation-like */
.language-switch {
  top: max(10px, env(safe-area-inset-top)) !important;
  right: max(12px, env(safe-area-inset-right)) !important;
  padding: 6px 10px !important;
  background: rgba(24, 21, 14, 0.16) !important;
  border-color: rgba(255, 248, 238, 0.18) !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.10) !important;
}

.lang-btn {
  font-size: clamp(9px, 0.74vw, 11px) !important;
  letter-spacing: 0.13em !important;
}

/* Tablet landscape adjustments */
@media (orientation: landscape) and (min-width: 900px) and (max-height: 950px) {
  .chapter-two-intro .chapter-copy-center {
    width: min(560px, 44vw);
    margin-left: clamp(40px, 6.5vw, 92px);
  }

  .chapter-two-intro .chapter-copy-center h2 {
    max-width: 560px;
  }

  .sales-flavour-section h2 {
    font-size: clamp(56px, 6.3vw, 92px) !important;
  }

  .sales-flavour-section .flavour-orbit-intro {
    font-size: clamp(14px, 1.48vw, 17px) !important;
    line-height: 1.38 !important;
  }

  .chapter-five .chapter-copy {
    width: min(590px, 44vw) !important;
  }

  .chapter-five .chapter-copy h2 {
    font-size: clamp(44px, 5vw, 78px) !important;
  }

  .chapter-five .revenue-line {
    font-size: clamp(18px, 1.8vw, 25px) !important;
  }

  .chapter-five .chapter-transition {
    font-size: clamp(25px, 3vw, 42px) !important;
  }
}

@media (orientation: landscape) and (min-width: 900px) and (max-height: 760px) {
  .sales-flavour-section h2 {
    font-size: clamp(50px, 5.6vw, 78px) !important;
  }

  .sales-flavour-section .flavour-orbit-intro {
    font-size: 14px !important;
    line-height: 1.34 !important;
  }

  .chapter-five .chapter-copy h2 {
    font-size: clamp(42px, 4.8vw, 70px) !important;
  }

  .chapter-five .revenue-line {
    font-size: clamp(17px, 1.75vw, 23px) !important;
  }

  .chapter-five .chapter-transition {
    font-size: clamp(24px, 2.8vw, 38px) !important;
    margin-top: clamp(34px, 5.5vh, 64px) !important;
  }
}

@media (max-width: 900px) {
  .chapter-two-intro .chapter-copy-center {
    width: min(560px, 52vw);
    margin-left: clamp(34px, 7vw, 78px);
  }
}

/* v1.2 — controlled presentation paging: one vertical swipe = one chapter */
.presentation.presentation-pager {
  scroll-snap-type: none;
  -webkit-overflow-scrolling: auto;
  overscroll-behavior: none;
  touch-action: pan-x;
}
.section {
  scroll-snap-stop: always;
}
.chapter-strip {
  overscroll-behavior-x: contain;
}


/* v2.0 — Portrait process video chapter */
.process-video-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #17140d;
  display: grid;
  grid-template-columns: 48% 52%;
  align-items: center;
  color: var(--warm-white);
}

.process-video-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 45%, rgba(215, 189, 149, 0.18) 0%, rgba(215, 189, 149, 0.06) 30%, rgba(23, 20, 13, 0) 58%),
    linear-gradient(90deg, rgba(23, 20, 13, 0.98) 0%, rgba(23, 20, 13, 0.92) 46%, rgba(23, 20, 13, 0.78) 100%);
  pointer-events: none;
}

.process-video-copy {
  position: relative;
  z-index: 2;
  width: min(620px, 42vw);
  padding-left: clamp(28px, 5.5vw, 72px);
  text-shadow: 0 20px 60px rgba(16, 12, 7, 0.45);
}

.process-video-copy .chapter-label {
  margin: 0 0 clamp(18px, 2.4vh, 28px);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(255, 248, 238, 0.70);
}

.process-video-copy h2 {
  margin: 0;
  max-width: 620px;
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-size: clamp(52px, 5.8vw, 96px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.94;
  color: var(--cream);
}

.process-lede {
  margin: clamp(26px, 3.2vh, 40px) 0 0;
  max-width: 500px;
  font-size: clamp(17px, 1.35vw, 23px);
  line-height: 1.48;
  letter-spacing: -0.02em;
  color: rgba(255, 248, 238, 0.84);
}

.process-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(26px, 3.4vh, 42px);
}

.process-steps span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 248, 238, 0.20);
  border-radius: 999px;
  background: rgba(255, 248, 238, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: rgba(255, 248, 238, 0.84);
}

.process-video-stage {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: clamp(38px, 6vh, 74px) clamp(36px, 6vw, 92px) clamp(60px, 8vh, 92px) 0;
}

.process-video-frame {
  position: relative;
  height: min(78vh, 760px);
  aspect-ratio: 9 / 16;
  border-radius: clamp(24px, 3vw, 42px);
  overflow: hidden;
  background: #0f0d08;
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 248, 238, 0.18),
    inset 0 0 0 1px rgba(255, 248, 238, 0.08);
}

.process-video-frame::before {
  content: '';
  position: absolute;
  inset: 10px;
  z-index: 2;
  pointer-events: none;
  border-radius: calc(clamp(24px, 3vw, 42px) - 10px);
  border: 1px solid rgba(255, 248, 238, 0.12);
}

.process-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.process-down-arrow {
  bottom: 28px;
}

@media (orientation: landscape) and (max-height: 760px) {
  .process-video-copy h2 {
    font-size: clamp(44px, 5vw, 74px);
  }
  .process-lede {
    font-size: clamp(15px, 1.2vw, 19px);
  }
  .process-video-frame {
    height: min(76vh, 620px);
  }
}

@media (max-width: 900px) {
  .process-video-section {
    grid-template-columns: 46% 54%;
  }
  .process-video-copy {
    width: min(520px, 40vw);
    padding-left: 34px;
  }
  .process-video-copy h2 {
    font-size: clamp(42px, 6.2vw, 72px);
  }
  .process-video-stage {
    padding-right: 34px;
  }
}

/* v2.1 — client/mobile UX polish */
.controlled-horizontal-strip {
  overflow-x: hidden;
}

.chapter-nav,
.finish-nav {
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 248, 238, 0.22),
    0 0 28px rgba(255, 248, 238, 0.12);
}

.chapter-nav-next,
.chapter3-next,
.finish-nav-next {
  border-color: rgba(255, 248, 238, 0.74);
  background: rgba(255, 248, 238, 0.15);
  animation: sideArrowGlow 2.15s ease-in-out infinite;
}

.chapter-nav-next::after,
.chapter3-next::after,
.finish-nav-next::after {
  content: '';
  position: absolute;
  inset: -9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 248, 238, 0.26);
  animation: sideArrowRing 2.15s ease-out infinite;
  pointer-events: none;
}

@keyframes sideArrowGlow {
  0%, 100% {
    transform: translateY(-50%) scale(1);
    box-shadow:
      0 18px 46px rgba(0, 0, 0, 0.34),
      0 0 0 1px rgba(255, 248, 238, 0.22),
      0 0 20px rgba(255, 248, 238, 0.10);
  }
  50% {
    transform: translateY(-50%) scale(1.07);
    box-shadow:
      0 22px 58px rgba(0, 0, 0, 0.42),
      0 0 0 1px rgba(255, 248, 238, 0.38),
      0 0 42px rgba(255, 248, 238, 0.30);
  }
}

@keyframes sideArrowRing {
  0% { opacity: 0.72; transform: scale(0.88); }
  100% { opacity: 0; transform: scale(1.34); }
}

/* Phones: behave like a website, not a locked kiosk deck. */
@media (max-width: 760px) {
  html, body {
    min-height: 100%;
    overflow-x: hidden;
  }

  .language-switch {
    top: 12px;
    right: 12px;
    padding: 8px 10px;
    transform: scale(0.92);
    transform-origin: top right;
  }

  .presentation {
    height: auto;
    min-height: 100vh;
    overflow: visible;
    scroll-snap-type: none;
    scroll-behavior: smooth;
  }

  .presentation.presentation-pager {
    touch-action: auto;
    overscroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
  }

  .section,
  .chapter,
  .chapter-page {
    min-height: 100svh;
    height: auto;
    overflow: visible;
    scroll-snap-align: none;
  }

  .hero {
    min-height: 100svh;
    overflow: hidden;
  }

  .hero-copy {
    width: min(86vw, 430px);
    min-height: 100svh;
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero-copy h1 {
    font-size: clamp(44px, 14vw, 68px);
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .partner-lockup {
    left: 24px;
    bottom: 86px;
  }

  .finish-controls {
    right: 18px;
    bottom: 84px;
  }

  .finish-nav,
  .chapter-nav {
    width: 50px;
    height: 50px;
    font-size: 38px;
    line-height: 40px;
    background: rgba(255, 248, 238, 0.18);
  }

  .chapter-strip {
    height: auto;
    min-height: 100svh;
    overflow-x: hidden;
    overflow-y: visible;
    touch-action: pan-y;
  }

  .chapter-copy,
  .chapter-three .chapter-copy,
  .chapter-five .chapter-copy,
  .chapter-six .chapter-copy {
    width: min(86vw, 460px);
    min-height: 100svh;
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 88px;
  }

  .chapter-copy-center {
    width: min(86vw, 460px);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
  }

  .chapter-copy h2,
  .chapter-copy-center h2 {
    font-size: clamp(46px, 13vw, 72px);
  }

  .chapter-lede {
    font-size: 17px;
  }

  .fact-list-center {
    display: grid;
    gap: 10px;
  }

  .process-video-section {
    display: block;
    min-height: auto;
    padding: 86px 24px 96px;
    overflow: visible;
  }

  .process-video-bg {
    background:
      radial-gradient(circle at 50% 68%, rgba(215, 189, 149, 0.18) 0%, rgba(215, 189, 149, 0.07) 34%, rgba(23, 20, 13, 0) 62%),
      linear-gradient(180deg, rgba(23, 20, 13, 0.98) 0%, rgba(23, 20, 13, 0.90) 100%);
  }

  .process-video-copy {
    width: 100%;
    padding: 0;
    text-align: left;
  }

  .process-video-copy h2 {
    font-size: clamp(52px, 15vw, 82px);
  }

  .process-lede {
    font-size: 17px;
    max-width: 92vw;
  }

  .process-video-stage {
    height: auto;
    padding: 34px 0 0;
    justify-content: center;
  }

  .process-video-frame {
    width: min(72vw, 330px);
    height: auto;
    max-height: none;
  }

  .process-down-arrow {
    bottom: 22px;
  }

  .sales-flavour-section {
    min-height: auto;
    padding-top: 84px;
    padding-bottom: 98px;
    overflow: visible;
  }

  .flavour-orbit-copy {
    width: min(88vw, 460px);
    padding-left: 24px;
    padding-right: 24px;
  }

  .flavour-orbit-stage {
    min-height: 520px;
  }

  .calculator-frame {
    min-height: 100svh;
  }

  .chapter-eight-page {
    height: auto;
    min-height: 100svh;
    align-items: center;
    padding: 84px 12px 84px;
  }

  .chapter-eight-page img {
    height: auto;
    max-height: none;
    width: 100%;
  }
}

/* v2.1 correction — existing right-arrow class name */
.chapter-next {
  border-color: rgba(255, 248, 238, 0.74);
  background: rgba(255, 248, 238, 0.15);
  animation: sideArrowGlow 2.15s ease-in-out infinite;
}
.chapter-next::after {
  content: '';
  position: absolute;
  inset: -9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 248, 238, 0.26);
  animation: sideArrowRing 2.15s ease-out infinite;
  pointer-events: none;
}

/* v2.2 — mobile overlay arrows + calculator escape fix */
@media (max-width: 760px) {
  /* Side arrows stay in the viewport instead of travelling with chapter content. */
  .chapter-nav,
  .finish-nav {
    position: fixed !important;
    top: 50svh !important;
    transform: translateY(-50%) !important;
    width: 46px !important;
    height: 46px !important;
    font-size: 34px !important;
    line-height: 36px !important;
    background: rgba(255, 248, 238, 0.035) !important;
    border-color: rgba(255, 248, 238, 0.18) !important;
    color: rgba(255, 248, 238, 0.34) !important;
    opacity: 0.42;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow:
      0 10px 30px rgba(0, 0, 0, 0.12),
      0 0 22px rgba(255, 248, 238, 0.13) !important;
  }

  .chapter-prev,
  .chapter3-prev,
  .finish-nav-prev { left: 8px !important; }

  .chapter-next,
  .chapter3-next,
  .finish-nav-next { right: 8px !important; }

  .chapter-nav:active,
  .finish-nav:active {
    opacity: 0.78;
    color: rgba(255, 248, 238, 0.86) !important;
    background: rgba(255, 248, 238, 0.13) !important;
  }

  .chapter-next,
  .chapter3-next,
  .finish-nav-next {
    animation: mobileSideArrowGlow 2.25s ease-in-out infinite !important;
  }

  .chapter-next::after,
  .chapter3-next::after,
  .finish-nav-next::after {
    inset: -8px !important;
    border-color: rgba(255, 248, 238, 0.18) !important;
  }

  @keyframes mobileSideArrowGlow {
    0%, 100% {
      opacity: 0.30;
      transform: translateY(-50%) scale(1);
      box-shadow: 0 0 18px rgba(255, 248, 238, 0.08) !important;
    }
    50% {
      opacity: 0.68;
      transform: translateY(-50%) scale(1.08);
      box-shadow: 0 0 38px rgba(255, 248, 238, 0.32) !important;
    }
  }

  /* Make the calculator iframe fill the phone viewport, while the iframe forwards swipes to the parent page. */
  .chapter-seven {
    height: 100svh !important;
    min-height: 100svh !important;
    overflow: hidden !important;
  }

  .calculator-frame {
    position: relative !important;
    inset: auto !important;
    display: block;
    width: 100% !important;
    height: 100svh !important;
    min-height: 100svh !important;
  }
}

/* v2.3 — split phone UX from tablet deck properly */
@media (max-width: 760px) {
  /* Phones: never trap the calculator inside a one-screen iframe. Let it become a tall normal page section. */
  .chapter-seven {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    background: #efe6d8 !important;
  }

  .calculator-frame {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    height: 1900px !important;
    min-height: 1900px !important;
    border: 0 !important;
    overflow: hidden !important;
  }

  /* Mobile side navigation: only active chapter arrows can be tapped. This avoids invisible arrows from other chapters blocking clicks. */
  .chapter-nav,
  .finish-nav {
    pointer-events: none !important;
    opacity: 0 !important;
  }

  .section.is-mobile-active .chapter-nav,
  .section.is-mobile-active .finish-nav {
    pointer-events: auto !important;
    opacity: 0.38 !important;
  }

  .section.is-mobile-active .chapter-next,
  .section.is-mobile-active .chapter3-next,
  .section.is-mobile-active .finish-nav-next {
    opacity: 0.62 !important;
    color: rgba(255, 248, 238, 0.78) !important;
    background: rgba(255, 248, 238, 0.08) !important;
    border-color: rgba(255, 248, 238, 0.32) !important;
    animation: mobileSideArrowGlowV23 3.2s ease-in-out infinite !important;
  }

  .section.is-mobile-active .chapter-next::before,
  .section.is-mobile-active .chapter3-next::before,
  .section.is-mobile-active .finish-nav-next::before {
    content: 'Swipe';
    position: absolute;
    right: 8px;
    top: -27px;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    font-size: 9px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255, 248, 238, .64);
    text-shadow: 0 2px 12px rgba(0,0,0,.45);
    pointer-events: none;
  }

  .horizontal-hint-learned .chapter-next,
  .horizontal-hint-learned .chapter3-next,
  .horizontal-hint-learned .finish-nav-next {
    animation: none !important;
    opacity: 0.34 !important;
  }

  @keyframes mobileSideArrowGlowV23 {
    0%, 100% {
      opacity: 0.32;
      transform: translateY(-50%) scale(1);
      box-shadow:
        0 0 16px rgba(255, 248, 238, 0.08),
        0 0 0 rgba(201, 149, 50, 0) !important;
    }
    45% {
      opacity: 0.88;
      transform: translateY(-50%) scale(1.12);
      box-shadow:
        0 0 32px rgba(255, 248, 238, 0.45),
        0 0 52px rgba(201, 149, 50, 0.34) !important;
    }
  }
}

/* v2.5 — mobile-only calculator exact iframe height.
   JS sets this to the calculator content height, avoiding both cut-off content and blank space. */
@media (max-width: 760px) {
  .calculator-frame {
    height: auto !important;
    min-height: 0 !important;
    background: #efe6d8 !important;
  }
}

/* v2.5 — keep the flavour chapter down arrow truly centred.
   Earlier direct-child positioning in the flavour section overrode the global absolute arrow placement. */
.sales-flavour-section > .flavour-down-arrow {
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
}


/* v2.6 — clean calculator reset.
   Tablet/desktop keep the full-screen iframe. Phones use an exact JS-set height from the fresh calculator. */
@media (max-width: 760px) {
  .chapter-seven {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    background: #efe6d8 !important;
  }

  .calculator-frame {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    height: var(--fwip-calculator-height, 1500px) !important;
    min-height: var(--fwip-calculator-height, 1500px) !important;
    border: 0 !important;
    overflow: hidden !important;
    background: #efe6d8 !important;
  }
}


/* v3.0 — Chapter 1: emotion first, commercial hook second */
.hero-story-panel { overflow: hidden; }
.hero-story-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(10,8,4,.16), transparent 40%);
}
.hero-slide-copy {
  position: absolute;
  z-index: 3;
  color: var(--warm-white);
  text-shadow: 0 18px 55px rgba(12,9,5,.5);
}
.hero-slide-copy-emotional {
  left: clamp(28px, 5.5vw, 72px);
  top: 50%;
  transform: translateY(-50%);
  width: min(680px, 52vw);
}
.hero-slide-copy-emotional h1 {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .92;
  font-size: clamp(54px, 6.7vw, 112px);
}
.hero-slide-copy-emotional h1 span,
.hero-slide-copy-emotional h1 strong { display: block; }
.hero-slide-copy-emotional h1 strong { font-weight: 600; color: var(--cream); }
.hero-overlay-emotional {
  background:
    linear-gradient(90deg, rgba(21,17,9,.65) 0%, rgba(21,17,9,.38) 35%, rgba(21,17,9,.08) 66%, rgba(21,17,9,.02) 100%),
    linear-gradient(0deg, rgba(10,8,4,.25), transparent 52%);
}
.hero-overlay-commercial {
  background:
    linear-gradient(90deg, rgba(20,16,9,.78) 0%, rgba(20,16,9,.64) 40%, rgba(20,16,9,.18) 68%, rgba(20,16,9,.04) 100%),
    linear-gradient(0deg, rgba(10,8,4,.28), transparent 55%);
}
.hero-slide-copy-commercial {
  left: clamp(28px, 5.5vw, 72px);
  top: 50%;
  transform: translateY(-52%);
  width: min(700px, 54vw);
  padding-bottom: 36px;
}
.hero-kicker {
  margin: 0 0 16px;
  font-size: clamp(11px, .9vw, 14px);
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: rgba(255,248,238,.72);
}
.hero-slide-copy-commercial h2 {
  margin: 0 0 clamp(20px, 3.2vh, 36px);
  max-width: 690px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(42px, 5.1vw, 86px);
  font-weight: 400;
  line-height: .93;
  letter-spacing: -.04em;
}
.hero-slide-copy-commercial h2 strong { color: var(--cream); font-weight: 600; }
.hero-retail-note {
  margin: -12px 0 clamp(16px, 2.4vh, 26px);
  font-size: clamp(11px, .92vw, 15px);
  line-height: 1.35;
  letter-spacing: .015em;
  color: rgba(255,248,238,.72);
}
.hero-retail-note strong {
  font-weight: 600;
  color: rgba(255,248,238,.95);
}
.hero-economics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 22px);
  max-width: 700px;
  padding: 18px 0 17px;
  border-top: 1px solid rgba(255,248,238,.28);
  border-bottom: 1px solid rgba(255,248,238,.28);
}
.hero-economics div { min-width: 0; }
.hero-economics span {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(28px, 3vw, 52px);
  line-height: 1;
  color: var(--cream);
}
.hero-economics small {
  display: block;
  margin-top: 5px;
  font-size: clamp(10px, .85vw, 13px);
  line-height: 1.25;
  color: rgba(255,248,238,.72);
}
.hero-payback {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 48px);
  max-width: 700px;
  padding-top: 17px;
}
.hero-payback div { display: flex; flex-direction: column; gap: 3px; }
.hero-payback span {
  font-size: clamp(11px, .9vw, 14px);
  color: rgba(255,248,238,.68);
}
.hero-payback strong {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(23px, 2.35vw, 39px);
  line-height: 1;
  font-weight: 500;
  color: var(--cream);
}
.hero-footnote {
  margin: 10px 0 0;
  font-size: clamp(9px, .72vw, 11px);
  color: rgba(255,248,238,.52);
}
.hero-product-band {
  position: absolute;
  z-index: 4;
  top: clamp(22px, 3.2vh, 38px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.6vw, 28px);
  white-space: nowrap;
  pointer-events: none;
  font-family: 'Inter', Arial, sans-serif;
  font-size: clamp(10px, .78vw, 13px);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,248,238,.82);
  text-shadow: 0 4px 18px rgba(0,0,0,.45);
}
.hero-product-band span:not(:last-child)::after {
  content: '•';
  margin-left: clamp(14px, 1.6vw, 28px);
  color: rgba(255,248,238,.46);
}
.hero-story-controls { right: clamp(22px, 3vw, 44px); bottom: 50%; transform: translateY(50%); flex-direction: column; }
.hero-next-chapter { bottom: 24px; }
.hero-panel:not(.is-active) .hero-next-chapter { pointer-events: none; }

@media (max-width: 1180px) and (orientation: landscape) {
  .hero-slide-copy-emotional { width: min(620px, 55vw); left: 5.5vw; }
  .hero-slide-copy-emotional h1 { font-size: clamp(52px, 6.3vw, 82px); }
  .hero-slide-copy-commercial { width: min(700px, 67vw); left: 5.5vw; }
  .hero-slide-copy-commercial h2 { font-size: clamp(40px, 4.8vw, 66px); margin-bottom: 18px; }
  .hero-economics { padding: 12px 0; }
  .hero-payback { padding-top: 12px; }
  .hero-product-band { top: 18px; }
  .hero-next-chapter { bottom: 16px; }
}

@media (max-width: 760px) {
  .hero-slide-copy-emotional,
  .hero-slide-copy-commercial { left: 28px; right: 28px; width: auto; }
  .hero-slide-copy-emotional h1 { font-size: clamp(46px, 13vw, 72px); }
  .hero-slide-copy-commercial { top: 47%; }
  .hero-slide-copy-commercial h2 { font-size: clamp(40px, 10.5vw, 62px); }
  .hero-economics { grid-template-columns: repeat(2, 1fr); row-gap: 12px; }
  .hero-payback { grid-template-columns: 1fr; gap: 10px; }
  .hero-product-band { top: 14px; left: 50%; right: auto; font-size: 9px; gap: 9px; letter-spacing: .12em; }
  .hero-product-band span:not(:last-child)::after { margin-left: 9px; }
  .hero-story-controls { right: 14px; }
}


/* Chapter 2 commercial copy refresh */
#chapter-2 .eyebrow:empty { display: none; }
#chapter-2 .chapter-closing {
  margin: clamp(18px, 3.2vh, 34px) 0 0;
  max-width: 650px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(26px, 3.2vw, 52px);
  line-height: 1.02;
  font-weight: 600;
  color: #fff8ee;
  text-wrap: balance;
}
#chapter-2 .chapter-footnote {
  margin: clamp(14px, 2vh, 22px) 0 0;
  max-width: 660px;
  font-size: clamp(10px, 0.82vw, 13px);
  line-height: 1.35;
  color: rgba(255,248,238,.72);
}
#chapter-2 .fact-list span { line-height: 1.28; }
#chapter-2 .chapter-two-cafe .fact-list { gap: clamp(7px, 1.05vh, 12px); }
#chapter-2 .chapter-two-cafe .fact-list span { font-size: clamp(14px, 1.45vw, 22px); }

/* Keep desktop language selector clear of the right-side chapter controls */
@media (min-width: 901px) {
  .language-switch { right: max(86px, calc(env(safe-area-inset-right) + 86px)) !important; }
}

/* Chapter 2 — fixed architectural footprint diagrams */
.chapter-two-intro .architecture-diagrams {
  width: min(590px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  margin: clamp(20px, 3vh, 34px) auto 0;
}

.chapter-two-intro .architecture-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.chapter-two-intro .architecture-frame {
  --line: rgba(255, 248, 238, 0.82);
  position: relative;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px),
    rgba(10, 7, 4, 0.12);
  background-size: 16px 16px;
  box-shadow: 0 14px 34px rgba(0,0,0,.18);
}

.chapter-two-intro .architecture-frame::before,
.chapter-two-intro .architecture-frame::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.chapter-two-intro .architecture-frame::before {
  left: 0;
  right: 0;
  top: -14px;
  border-top: 1px solid var(--line);
}

.chapter-two-intro .architecture-frame::after {
  top: 0;
  bottom: 0;
  left: -14px;
  border-left: 1px solid var(--line);
}

.chapter-two-intro .architecture-frame-a4 {
  width: clamp(112px, 9.2vw, 150px);
  aspect-ratio: 210 / 297;
}

.chapter-two-intro .architecture-frame-system {
  width: clamp(132px, 10.8vw, 174px);
  aspect-ratio: 1 / 1;
}

.chapter-two-intro .dimension {
  position: absolute;
  z-index: 2;
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(9px, .72vw, 12px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 248, 238, .86);
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
}

.chapter-two-intro .dimension-top {
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
}

.chapter-two-intro .dimension-side {
  left: -32px;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  transform-origin: center;
}

.chapter-two-intro .diagram-core {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(28px, 2.8vw, 44px);
  line-height: 1;
  font-weight: 500;
  color: #fff8ee;
  text-shadow: 0 5px 18px rgba(0,0,0,.42);
}

.chapter-two-intro .diagram-caption {
  margin: 0;
  min-height: 2.5em;
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(13px, 1.02vw, 17px);
  line-height: 1.35;
  font-weight: 400;
  color: rgba(255, 248, 238, .92);
  text-align: center;
  text-wrap: balance;
}

.chapter-two-intro .diagram-caption strong {
  font-weight: 700;
  color: #fff8ee;
}



@media (max-width: 760px) {
  .chapter-two-intro .architecture-diagrams {
    width: min(420px, 88vw);
    gap: 28px;
  }
  .chapter-two-intro .architecture-frame-a4 { width: 92px; }
  .chapter-two-intro .architecture-frame-system { width: 108px; }
  .chapter-two-intro .dimension-side { left: -27px; }
}



/* Chapter 3 — typography and positioning aligned with the approved chapter style */
#chapter-3 .chapter-copy {
  width: min(720px, 46vw);
}
#chapter-3 .chapter-copy h2 {
  max-width: 700px;
}
#chapter-3 .chapter-three-summary {
  margin-top: clamp(26px, 3.2vh, 40px);
  gap: 10px;
}
#chapter-3 .chapter-three-summary span {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: normal;
}
#chapter-3 .chapter-three-summary strong {
  font-weight: 700;
  color: #fff8ee;
}



/* Page 5 proof points — approved content only */
.sales-flavour-section .flavour-proof-list{
  list-style:none;
  margin:26px 0 0;
  padding:0;
  max-width:500px;
  display:grid;
  gap:16px;
  color:#f5eddf;
  font-family:Inter,Arial,sans-serif;
  font-size:clamp(16px,1.35vw,22px);
  line-height:1.3;
}
.sales-flavour-section .flavour-proof-list li{
  display:flex;
  align-items:center;
  gap:14px;
}
.sales-flavour-section .flavour-proof-list li::before{
  content:"";
  width:6px;
  height:6px;
  flex:0 0 6px;
  border-radius:50%;
  background:#d9c28a;
}
.sales-flavour-section .flavour-proof-list strong{
  font-weight:600;
}
.sales-flavour-section .flavour-proof-awards::before{
  display:none;
}
.sales-flavour-section .great-taste-logo{
  width:70px;
  height:70px;
  flex:0 0 70px;
  object-fit:cover;
  border-radius:50%;
  box-shadow:0 8px 24px rgba(0,0,0,.2);
}
.sales-flavour-section .flavour-menu-cta{
  display:inline-flex;
  align-items:center;
  gap:12px;
  min-height:44px;
  margin-top:24px;
  padding:0 22px;
  border:1px solid rgba(245,233,214,.55);
  border-radius:999px;
  color:#f5e9d6;
  background:rgba(255,255,255,.055);
  font:600 12px/1 Inter,Arial,sans-serif;
  letter-spacing:.09em;
  text-transform:uppercase;
  text-decoration:none;
  transition:background-color .2s ease,border-color .2s ease,transform .2s ease;
}
.sales-flavour-section .flavour-menu-cta:hover,
.sales-flavour-section .flavour-menu-cta:focus-visible{
  background:rgba(245,233,214,.14);
  border-color:#f5e9d6;
}
.sales-flavour-section .flavour-menu-cta:active{transform:translateY(1px);}
@media (max-width:1180px) and (orientation:landscape){
  .sales-flavour-section .flavour-proof-list{
    margin-top:18px;
    gap:11px;
    max-width:400px;
    font-size:clamp(13px,1.45vw,16px);
  }
  .sales-flavour-section .great-taste-logo{
    width:54px;
    height:54px;
    flex-basis:54px;
  }
  .sales-flavour-section .flavour-menu-cta{min-height:38px;margin-top:16px;padding:0 18px;font-size:10px;}
}
@media (max-width:600px){
  .sales-flavour-section .flavour-proof-list{
    margin-top:20px;
    gap:13px;
    font-size:16px;
  }
  .sales-flavour-section .great-taste-logo{
    width:56px;
    height:56px;
    flex-basis:56px;
  }
}

/* Chapter 6 — Better ingredients. Better choices. */
.chapter-five .chapter-six-copy {
  width: min(720px, 46vw) !important;
}

.chapter-five .chapter-six-copy h2 {
  max-width: 720px !important;
}

.chapter-five .chapter-six-facts {
  margin-top: 26px;
  max-width: 650px;
  gap: 16px;
  font-family: Inter, Arial, sans-serif;
  color: #f5eddf;
}

.chapter-five .chapter-six-facts span {
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(16px, 1.35vw, 22px);
  font-weight: 400;
  line-height: 1.3;
  color: #f5eddf;
}

.chapter-five .chapter-six-footnote {
  margin-top: clamp(20px, 2.8vh, 32px);
  max-width: 650px;
  font-size: clamp(11px, .82vw, 14px);
  line-height: 1.4;
  color: rgba(255, 248, 238, .68);
}

@media (max-width: 900px) {
  .chapter-five .chapter-six-copy {
    width: min(650px, 76vw) !important;
  }
  .chapter-five .chapter-six-facts {
    margin-top: 18px;
    gap: 11px;
  }
  .chapter-five .chapter-six-facts span {
    font-size: clamp(13px, 1.45vw, 16px);
    line-height: 1.3;
  }
}


/* CHAPTER 9 — final demonstration image; same fit and scrolling behavior as Chapter 8 */
.chapter-nine {
  background: #17140d;
}

.chapter-nine-page {
  width: 100%;
  height: 100vh;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #17140d;
}

.chapter-nine-page img {
  position: relative;
  inset: auto;
  width: 100%;
  height: 100vh;
  max-width: 100%;
  max-height: 100vh;
  object-fit: contain;
  object-position: center;
  transform: none;
  display: block;
}

@media (max-width: 760px) {
  .chapter-nine-page {
    height: auto;
    min-height: 100svh;
    padding: 72px 10px;
  }
  .chapter-nine-page img {
    height: auto;
    max-height: none;
    width: 100%;
  }
}


/* Final meeting fixes — approved only */
.presentation.presentation-pager > .section {
  scroll-snap-stop: always;
}
#chapter-8 {
  height: 100vh;
  min-height: 100vh;
  scroll-margin-top: 0;
}


/* Chapter 1 — product explanation slide */
.hero-overlay-product {
  background:
    linear-gradient(90deg, rgba(21,17,9,.68) 0%, rgba(21,17,9,.42) 39%, rgba(21,17,9,.10) 70%, rgba(21,17,9,.02) 100%),
    linear-gradient(0deg, rgba(10,8,4,.25), transparent 52%);
}
.hero-slide-copy-product {
  left: clamp(28px, 5.5vw, 72px);
  top: 50%;
  transform: translateY(-50%);
  width: min(760px, 60vw);
}
.hero-slide-copy-product h2 {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .92;
  font-size: clamp(54px, 6.7vw, 112px);
}
.hero-slide-copy-product h2 strong,
.hero-slide-copy-product h2 span { display: block; }
.hero-slide-copy-product h2 strong {
  color: var(--cream);
  font-weight: 600;
}
.hero-slide-copy-product p {
  margin: clamp(22px, 3.4vh, 38px) 0 0;
  font-family: 'Inter', Arial, sans-serif;
  font-size: clamp(13px, 1.2vw, 19px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .08em;
  color: rgba(255,248,238,.92);
}
.hero-slide-copy-product p b {
  padding: 0 .5em;
  color: rgba(255,248,238,.55);
  font-weight: 400;
}
@media (max-width: 900px) {
  .hero-slide-copy-product { left: 28px; right: 28px; width: auto; }
  .hero-slide-copy-product h2 { font-size: clamp(46px, 13vw, 72px); }
  .hero-slide-copy-product p {
    max-width: 78vw;
    font-size: clamp(11px, 2.7vw, 15px);
    letter-spacing: .055em;
  }
}


/* Approved navigation layout fix — Chapter 1 only.
   Keep side arrows refined; restore the slide indicator to bottom centre
   and place the chapter down arrow directly above it. */
.hero-story-controls {
  left: 50% !important;
  right: auto !important;
  bottom: 26px !important;
  transform: translateX(-50%) !important;
  flex-direction: row !important;
}

.hero-next-chapter {
  bottom: 76px !important;
}

@media (max-width: 1180px) and (orientation: landscape) {
  .hero-story-controls { bottom: 24px !important; }
  .hero-next-chapter { bottom: 74px !important; }
}

@media (max-width: 760px) {
  .hero-story-controls {
    left: 50% !important;
    right: auto !important;
    bottom: 22px !important;
    transform: translateX(-50%) !important;
  }
  .hero-next-chapter { bottom: 72px !important; }
}

/* Chapter 2, slide 1 only — tablet visibility and spacing refinement */
@media (orientation: landscape) and (min-width: 900px) and (max-height: 950px) {
  .chapter-two-intro .chapter-copy-center {
    justify-content: center;
    padding-top: 2vh;
    padding-bottom: 5vh;
  }

  .chapter-two-intro .chapter-copy-center h2 {
    margin-bottom: clamp(26px, 3.4vh, 38px);
  }

  .chapter-two-intro .architecture-diagrams {
    width: min(620px, 100%);
    gap: clamp(46px, 5vw, 72px);
    margin-top: 0;
  }

  .chapter-two-intro .architecture-item {
    gap: 20px;
  }

  .chapter-two-intro .architecture-frame {
    --line: rgba(255, 248, 238, 0.98);
    border-width: 2px;
    background:
      linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px),
      rgba(10, 7, 4, 0.24);
    background-size: 16px 16px;
    box-shadow: 0 14px 34px rgba(0,0,0,.30), 0 0 0 1px rgba(255,248,238,.12);
  }

  .chapter-two-intro .architecture-frame::before {
    border-top-width: 2px;
  }

  .chapter-two-intro .architecture-frame::after {
    border-left-width: 2px;
  }

  .chapter-two-intro .dimension {
    color: #fff8ee;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0,0,0,.72);
  }

  .chapter-two-intro .diagram-core {
    color: #fffdf7;
    text-shadow: 0 5px 20px rgba(0,0,0,.72);
  }

  .chapter-two-intro .diagram-caption {
    color: #fff8ee;
    text-shadow: 0 2px 10px rgba(0,0,0,.62);
  }

  #chapter-2 .chapter-two-intro .chapter-closing {
    margin-top: clamp(34px, 4.8vh, 52px);
  }
}


/* Approved refinement: Chapter 2 slide 1 only */
@media (orientation: landscape) and (min-width: 900px) and (max-height: 950px) {
  .chapter-two-intro .chapter-copy-center h2 {
    margin-bottom: clamp(38px, 4.8vh, 52px);
  }

  .chapter-two-intro .architecture-frame {
    --line: #ffffff;
    border-color: #ffffff;
    background:
      linear-gradient(rgba(255,255,255,.24) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,.24) 1px, transparent 1px),
      rgba(10, 7, 4, 0.18);
  }

  .chapter-two-intro .architecture-frame::before { border-top-color: #ffffff; }
  .chapter-two-intro .architecture-frame::after { border-left-color: #ffffff; }
  .chapter-two-intro .dimension,
  .chapter-two-intro .diagram-core,
  .chapter-two-intro .diagram-caption { color: #ffffff; }
}


/* Native tablet chapter scrolling — calculator is inline, not an iframe. */
.presentation,
.presentation.presentation-pager {
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}
.presentation > .section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.calculator-embed {
  display: block;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background: #efe6d8;
}
#chapter-7 {
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}
@media (max-width: 760px) {
  .presentation,
  .presentation.presentation-pager {
    height: auto;
    min-height: 100%;
    overflow: visible;
    scroll-snap-type: none;
    touch-action: auto;
  }
  .calculator-embed,
  #chapter-7 {
    height: auto;
    min-height: 100svh;
    overflow: visible;
  }
}


/* Scoped fixes: Chapter 1 horizontal paging and mobile text safety. */
.hero-gallery {
  display:flex;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.hero-gallery::-webkit-scrollbar { display:none; }
.hero-panel {
  position:relative;
  inset:auto;
  flex:0 0 100%;
  min-width:100%;
  opacity:1;
  transform:none;
  transition:none;
  scroll-snap-align:start;
  scroll-snap-stop:always;
}
.hero-panel.is-active { opacity:1; transform:none; }

@media (max-width:760px) {
  .hero-slide-copy-emotional {
    left:28px;
    right:auto;
    width:62vw;
  }
  .hero-slide-copy-emotional h1 {
    font-size:clamp(42px, 11.5vw, 62px);
  }
  .hero-slide-copy-product {
    left:28px;
    right:auto;
    width:68vw;
  }
  .hero-slide-copy-product h2 {
    font-size:clamp(42px, 11.5vw, 62px);
  }
  .hero-slide-copy-product p { max-width:66vw; }
  .hero-slide-copy-commercial {
    left:28px;
    right:auto;
    width:61vw;
  }
  .hero-slide-copy-commercial h2 {
    font-size:clamp(37px, 9.6vw, 54px);
  }
}

/* Chapter 8 mobile comparison — fixed FWIP reference with scrollable competitors */
.mobile-comparison { display: none; }

@media (max-width: 760px) {
  #chapter-8,
  .chapter-eight-page {
    height: 100svh;
    min-height: 100svh;
    overflow: hidden;
  }

  .chapter-eight-page {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
  }

  .chapter-eight-desktop-image { display: none !important; }

  .mobile-comparison {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: max(86px, calc(env(safe-area-inset-top) + 74px)) 0 max(94px, calc(env(safe-area-inset-bottom) + 78px));
    color: #f5eee2;
    background:
      linear-gradient(180deg, rgba(17,15,10,.985), rgba(17,15,10,.99)),
      url('assets/chapter-8-page-1.png') center / cover no-repeat;
    box-sizing: border-box;
  }

  .mobile-comparison-header {
    flex: 0 0 auto;
    padding: 0 20px 12px;
  }

  .mobile-comparison-kicker {
    margin: 0 0 9px;
    font: 600 9px/1.3 Inter, Arial, sans-serif;
    letter-spacing: .18em;
    color: rgba(255,248,238,.72);
    white-space: nowrap;
  }

  .mobile-comparison-header h2 {
    margin: 0;
    font: 500 clamp(31px, 8vw, 42px)/.98 'Cormorant Garamond', Georgia, serif;
    letter-spacing: -.025em;
  }

  .mobile-comparison-header > p:last-child {
    margin: 7px 0 0;
    font: 500 13px/1.35 Inter, Arial, sans-serif;
    color: #d9ae70;
  }

  .mobile-comparison-scroll {
    --metric-width: 132px;
    --fwip-width: 94px;
    --competitor-width: 132px;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-left: calc(var(--metric-width) + var(--fwip-width));
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    border-top: 1px solid rgba(255,255,255,.16);
    border-bottom: 1px solid rgba(255,255,255,.16);
  }

  .mobile-comparison-scroll::-webkit-scrollbar { display: none; }

  .mobile-comparison-table {
    width: max-content;
    min-height: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    font-family: Inter, Arial, sans-serif;
    font-size: 11.5px;
    line-height: 1.18;
    color: #f6f0e8;
  }

  .mobile-comparison-table th,
  .mobile-comparison-table td {
    height: 45px;
    padding: 6px 8px;
    box-sizing: border-box;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255,255,255,.14);
    background: rgba(20,18,13,.50);
  }

  .mobile-comparison-table thead th {
    height: 58px;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .04em;
    background: rgba(26,23,17,.94);
  }

  .mobile-comparison-table .metric-column {
    position: sticky;
    left: 0;
    z-index: 4;
    width: var(--metric-width);
    min-width: var(--metric-width);
    max-width: var(--metric-width);
    text-align: left;
    padding-left: 14px;
    font-weight: 500;
    background: rgba(25,22,16,.98);
  }

  .mobile-comparison-table .fwip-column {
    position: sticky;
    left: var(--metric-width);
    z-index: 3;
    width: var(--fwip-width);
    min-width: var(--fwip-width);
    max-width: var(--fwip-width);
    font-weight: 700;
    color: #f2c98d;
    background: rgba(101,86,65,.98);
    box-shadow: 10px 0 18px -14px rgba(0,0,0,.95);
  }

  .mobile-comparison-table thead .metric-column,
  .mobile-comparison-table thead .fwip-column { z-index: 6; }

  .mobile-comparison-table .competitor-column,
  .mobile-comparison-table td:not(.fwip-column) {
    width: var(--competitor-width);
    min-width: var(--competitor-width);
    max-width: var(--competitor-width);
  }

  .mobile-comparison-table .snap-column { scroll-snap-align: start; }

  .fwip-wordmark {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 23px;
    font-style: italic;
    font-weight: 600;
    text-transform: lowercase;
    letter-spacing: -.03em;
  }

  .mobile-comparison-hint {
    flex: 0 0 auto;
    margin: 10px auto 0;
    padding: 7px 13px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    background: rgba(31,27,20,.64);
    font: 600 10px/1 Inter, Arial, sans-serif;
    letter-spacing: .04em;
    color: rgba(255,248,238,.82);
    opacity: 1;
    transition: opacity .45s ease, transform .45s ease;
    pointer-events: none;
  }

  .mobile-comparison-hint.is-hidden {
    opacity: 0;
    transform: translateY(4px);
  }

  .mobile-comparison-footnote {
    flex: 0 0 auto;
    margin: 8px 20px 0;
    font: 500 9px/1.25 Inter, Arial, sans-serif;
    color: rgba(255,248,238,.62);
  }

  .chapter-eight .chapter-down-arrow {
    z-index: 20;
    bottom: max(18px, calc(env(safe-area-inset-bottom) + 10px));
  }
}

/* Chapter 9 responsive contact hero + Spanish live layout */
.chapter-nine-live { display: none; }

@media (max-width: 760px) {
  #chapter-9,
  .chapter-nine-page {
    width: 100%;
    height: 100svh;
    min-height: 100svh;
    overflow: hidden;
    background: #8f6743;
  }

  .chapter-nine-page {
    position: relative;
    display: block;
  }

  .chapter-nine-desktop-image { display: none !important; }

  .chapter-nine-live {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(88px, calc(env(safe-area-inset-top) + 76px)) 22px max(46px, calc(env(safe-area-inset-bottom) + 34px));
    box-sizing: border-box;
    color: #fff9f1;
    background:
      linear-gradient(180deg, rgba(40,24,13,.24), rgba(40,24,13,.44)),
      linear-gradient(90deg, rgba(48,30,18,.18), rgba(48,30,18,.56)),
      url('assets/chapter-9-page-1.png') 24% center / cover no-repeat;
  }

  .chapter-nine-panel {
    width: min(100%, 410px);
    max-height: calc(100svh - 132px);
    overflow: hidden;
    text-align: center;
    padding: 22px 20px 20px;
    border-radius: 24px;
    background: rgba(58,38,24,.58);
    border: 1px solid rgba(255,255,255,.22);
    box-shadow: 0 18px 50px rgba(0,0,0,.24);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .chapter-nine-panel h2 {
    margin: 0;
    font: 500 clamp(39px, 10vw, 54px)/.94 'Cormorant Garamond', Georgia, serif;
    letter-spacing: -.025em;
  }

  .chapter-nine-intro {
    margin: 10px auto 0;
    max-width: 310px;
    font: italic 600 14px/1.35 Inter, Arial, sans-serif;
    color: #efb65a;
  }

  .chapter-nine-rule {
    width: 76%;
    height: 1px;
    margin: 13px auto;
    background: rgba(255,255,255,.52);
  }

  .chapter-nine-demo-copy {
    display: grid;
    gap: 3px;
    font: 400 13px/1.25 Inter, Arial, sans-serif;
  }

  .chapter-nine-demo-copy strong { font-weight: 650; }
  .chapter-nine-demo-copy em { margin-bottom: 2px; }

  .chapter-nine-arrange {
    margin: 0 0 8px;
    font: 650 10px/1.2 Inter, Arial, sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #efb65a;
  }

  .chapter-nine-contact-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
  }

  .chapter-nine-qr {
    width: 92px;
    height: 92px;
    object-fit: cover;
    background: #fff;
  }

  .chapter-nine-people {
    display: grid;
    gap: 10px;
    text-align: left;
  }

  .chapter-nine-people p { margin: 0; }
  .chapter-nine-people strong {
    display: block;
    font: 500 23px/1 'Cormorant Garamond', Georgia, serif;
  }
  .chapter-nine-people span {
    display: block;
    margin-top: 2px;
    font: 400 12px/1.2 Inter, Arial, sans-serif;
  }

  .chapter-nine-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px 14px;
    margin-top: 12px;
    font: 500 11px/1.3 Inter, Arial, sans-serif;
    color: #efb65a;
  }
}

/* Spanish desktop/tablet versions use the live translated layouts. */
@media (min-width: 761px) {
  html[lang="es"] #chapter-8 .chapter-eight-desktop-image { display: none !important; }
  html[lang="es"] #chapter-8 .mobile-comparison {
    display: flex;
    flex-direction: column;
    width: min(1180px, 94vw);
    height: min(720px, calc(100vh - 90px));
    margin: auto;
    padding: 30px 32px 22px;
    box-sizing: border-box;
    color: #f5eee2;
    background:
      linear-gradient(180deg, rgba(17,15,10,.97), rgba(17,15,10,.985)),
      url('assets/chapter-8-page-1.png') center / cover no-repeat;
    border-radius: 2px;
  }
  html[lang="es"] #chapter-8 .mobile-comparison-header { padding: 0 0 18px; }
  html[lang="es"] #chapter-8 .mobile-comparison-kicker { margin: 0 0 8px; font-size: 11px; }
  html[lang="es"] #chapter-8 .mobile-comparison-header h2 { margin: 0; font: 500 48px/.95 'Cormorant Garamond', Georgia, serif; }
  html[lang="es"] #chapter-8 .mobile-comparison-header > p:last-child { margin: 8px 0 0; color:#d9ae70; }
  html[lang="es"] #chapter-8 .mobile-comparison-scroll { overflow: visible; flex: 1 1 auto; }
  html[lang="es"] #chapter-8 .mobile-comparison-table { width: 100%; min-height: 0; table-layout: fixed; border-collapse: collapse; font-size: 12px; }
  html[lang="es"] #chapter-8 .mobile-comparison-table th,
  html[lang="es"] #chapter-8 .mobile-comparison-table td { height: 49px; padding: 6px 8px; border-bottom:1px solid rgba(255,255,255,.16); background:rgba(20,18,13,.55); }
  html[lang="es"] #chapter-8 .mobile-comparison-table thead th { height: 58px; background:rgba(26,23,17,.92); }
  html[lang="es"] #chapter-8 .mobile-comparison-table .metric-column,
  html[lang="es"] #chapter-8 .mobile-comparison-table .fwip-column { position: static; width:auto; min-width:0; max-width:none; }
  html[lang="es"] #chapter-8 .mobile-comparison-table .metric-column { text-align:left; background:rgba(25,22,16,.96); }
  html[lang="es"] #chapter-8 .mobile-comparison-table .fwip-column { color:#f2c98d; background:rgba(101,86,65,.98); }
  html[lang="es"] #chapter-8 .mobile-comparison-hint { display:none; }
  html[lang="es"] #chapter-8 .mobile-comparison-footnote { margin-top:10px; }

  html[lang="es"] #chapter-9 .chapter-nine-desktop-image { display: none !important; }
  html[lang="es"] #chapter-9 .chapter-nine-live {
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    padding: 5vh 8vw;
    box-sizing:border-box;
    color:#fff9f1;
    background:
      linear-gradient(90deg, rgba(41,26,16,.05) 35%, rgba(41,26,16,.48) 72%, rgba(41,26,16,.72) 100%),
      url('assets/chapter-9-page-1.png') 24% center / cover no-repeat;
  }
  html[lang="es"] #chapter-9 .chapter-nine-panel {
    width:min(480px, 40vw);
    text-align:left;
    padding:28px 30px;
    border-radius:24px;
    background:rgba(58,38,24,.55);
    border:1px solid rgba(255,255,255,.2);
    backdrop-filter:blur(7px);
    -webkit-backdrop-filter:blur(7px);
  }
  html[lang="es"] #chapter-9 .chapter-nine-panel h2 { margin:0; font:500 clamp(50px,5.2vw,78px)/.95 'Cormorant Garamond',Georgia,serif; }
  html[lang="es"] #chapter-9 .chapter-nine-intro { margin:12px 0 0; font:italic 600 18px/1.35 Inter,Arial,sans-serif; color:#efb65a; }
  html[lang="es"] #chapter-9 .chapter-nine-rule { width:100%; height:1px; margin:18px 0; background:rgba(255,255,255,.58); }
  html[lang="es"] #chapter-9 .chapter-nine-demo-copy { display:grid; gap:4px; font:400 16px/1.3 Inter,Arial,sans-serif; }
  html[lang="es"] #chapter-9 .chapter-nine-arrange { margin:0 0 10px; color:#efb65a; text-transform:uppercase; letter-spacing:.06em; font:650 12px/1.2 Inter,Arial,sans-serif; }
  html[lang="es"] #chapter-9 .chapter-nine-contact-grid { display:flex; align-items:center; gap:18px; }
  html[lang="es"] #chapter-9 .chapter-nine-qr { width:118px; height:118px; object-fit:cover; }
  html[lang="es"] #chapter-9 .chapter-nine-people { display:grid; gap:12px; }
  html[lang="es"] #chapter-9 .chapter-nine-people p { margin:0; }
  html[lang="es"] #chapter-9 .chapter-nine-people strong { display:block; font:500 31px/1 'Cormorant Garamond',Georgia,serif; }
  html[lang="es"] #chapter-9 .chapter-nine-people span { display:block; font:400 15px/1.3 Inter,Arial,sans-serif; }
  html[lang="es"] #chapter-9 .chapter-nine-links { display:flex; gap:18px; margin-top:14px; color:#efb65a; font:500 14px/1.3 Inter,Arial,sans-serif; }
}

/* v-final — Chapter 9 regression repair: preserve original desktop/tablet artwork,
   keep the translated live layout mobile-only, restore mobile horizontal arrows. */
@media (min-width: 761px) {
  #chapter-9 .chapter-nine-desktop-image,
  html[lang="es"] #chapter-9 .chapter-nine-desktop-image {
    display: block !important;
  }

  #chapter-9 .chapter-nine-live,
  html[lang="es"] #chapter-9 .chapter-nine-live {
    display: none !important;
  }
}

@media (max-width: 760px) {
  /* Restore the approved side arrows on phones. */
  .chapter-nav,
  .finish-nav,
  .section.is-mobile-active .chapter-nav,
  .section.is-mobile-active .finish-nav {
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
    opacity: .46 !important;
  }

  .chapter-prev,
  .chapter3-prev,
  .finish-nav-prev {
    left: 8px !important;
  }

  .chapter-next,
  .chapter3-next,
  .finish-nav-next {
    right: 8px !important;
  }

  /* Mobile Chapter 9: true full-screen hero, no card and no QR code. */
  #chapter-9 .chapter-nine-live {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: max(82px, calc(env(safe-area-inset-top) + 70px)) 30px
             max(42px, calc(env(safe-area-inset-bottom) + 30px)) !important;
    background:
      linear-gradient(180deg, rgba(38,24,14,.20), rgba(38,24,14,.44)),
      linear-gradient(90deg, rgba(42,27,17,.16), rgba(42,27,17,.46)),
      url('assets/chapter-9-page-1.png') 22% center / cover no-repeat !important;
  }

  #chapter-9 .chapter-nine-panel {
    width: min(100%, 390px) !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    text-align: center !important;
  }

  #chapter-9 .chapter-nine-panel h2 {
    font-size: clamp(42px, 11vw, 58px) !important;
    text-shadow: 0 3px 18px rgba(0,0,0,.28);
  }

  #chapter-9 .chapter-nine-intro {
    max-width: 325px !important;
    font-size: 14px !important;
    text-shadow: 0 2px 12px rgba(0,0,0,.34);
  }

  #chapter-9 .chapter-nine-rule {
    width: min(78%, 280px) !important;
  }

  #chapter-9 .chapter-nine-demo-copy {
    font-size: 14px !important;
    line-height: 1.32 !important;
    text-shadow: 0 2px 10px rgba(0,0,0,.35);
  }

  #chapter-9 .chapter-nine-arrange {
    margin-bottom: 10px !important;
  }

  #chapter-9 .chapter-nine-qr {
    display: none !important;
  }

  #chapter-9 .chapter-nine-contact-grid {
    display: block !important;
  }

  #chapter-9 .chapter-nine-people {
    display: flex !important;
    justify-content: center !important;
    gap: 34px !important;
    text-align: center !important;
  }

  #chapter-9 .chapter-nine-people strong {
    font-size: 27px !important;
  }

  #chapter-9 .chapter-nine-people span {
    font-size: 13px !important;
  }

  #chapter-9 .chapter-nine-links {
    margin-top: 14px !important;
    font-size: 12px !important;
    text-shadow: 0 2px 10px rgba(0,0,0,.35);
  }
}


/* v-final-nav — mobile swipe cues, Chapter 8 gesture pass-through, Chapter 9 QR removal */
@media (max-width: 760px) {
  /* Side arrows are intentionally replaced by a non-interactive swipe cue on phones. */
  .finish-nav,
  .chapter-nav,
  .section.is-mobile-active .finish-nav,
  .section.is-mobile-active .chapter-nav {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .mobile-horizontal-cue {
    position: absolute;
    left: 50%;
    bottom: max(72px, calc(env(safe-area-inset-bottom) + 58px));
    width: 58px;
    height: 14px;
    transform: translateX(-50%);
    z-index: 44;
    pointer-events: none;
    opacity: .76;
    transition: opacity .4s ease, transform .4s ease;
  }
  .mobile-horizontal-cue::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 6px;
    height: 1px;
    background: rgba(255,255,255,.55);
    border-radius: 99px;
  }
  .mobile-horizontal-cue::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 4px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 8px rgba(0,0,0,.25);
    animation: mobileSwipeDot 1.7s ease-in-out infinite;
  }
  .mobile-horizontal-cue.is-hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(4px);
  }
  @keyframes mobileSwipeDot {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(43px); }
  }

  /* Let vertical gestures begun on the comparison travel to the chapter scroller. */
  .mobile-comparison-scroll {
    touch-action: pan-x pan-y !important;
    overscroll-behavior-y: auto !important;
  }

  #chapter-9 .chapter-nine-qr { display: none !important; }
}

/* QR is removed from the live Chapter 9 layout at every breakpoint. */
#chapter-9 .chapter-nine-qr { display: none !important; }
#chapter-9 .chapter-nine-contact-grid { justify-content: center; }

/* 2026-07-20 final polish: precise Chapter 8 endpoint and unified Chapter 9 composition. */
@media (max-width: 760px) {
  /* Give the final competitor enough trailing track to snap fully beside the two sticky columns. */
  #chapter-8 .mobile-comparison-scroll {
    padding-right: max(0px, calc(100vw - var(--metric-width) - var(--fwip-width) - var(--competitor-width)));
    box-sizing: border-box;
  }
  #chapter-8 .mobile-comparison-table .snap-column {
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
}

/* Chapter 9: use the clean centred mobile-style composition on tablet and desktop too.
   The original artwork is deliberately zoomed/cropped so its baked-in copy and QR sit outside the canvas. */
@media (min-width: 761px) {
  #chapter-9 .chapter-nine-desktop-image,
  html[lang="es"] #chapter-9 .chapter-nine-desktop-image {
    display: none !important;
  }

  #chapter-9 .chapter-nine-live,
  html[lang="es"] #chapter-9 .chapter-nine-live {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: clamp(72px, 7vh, 110px) clamp(40px, 6vw, 100px) clamp(48px, 6vh, 90px) !important;
    box-sizing: border-box !important;
    color: #fff9f1 !important;
    background:
      linear-gradient(180deg, rgba(38,24,14,.22), rgba(38,24,14,.48)),
      linear-gradient(90deg, rgba(42,27,17,.12), rgba(42,27,17,.46)),
      url('assets/chapter-9-page-1.png') left center / 180% auto no-repeat !important;
  }

  #chapter-9 .chapter-nine-panel,
  html[lang="es"] #chapter-9 .chapter-nine-panel {
    width: min(620px, 58vw) !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    text-align: center !important;
  }

  #chapter-9 .chapter-nine-panel h2,
  html[lang="es"] #chapter-9 .chapter-nine-panel h2 {
    margin: 0 !important;
    font: 500 clamp(64px, 6.2vw, 104px)/.91 'Cormorant Garamond', Georgia, serif !important;
    letter-spacing: -.025em !important;
    text-shadow: 0 3px 22px rgba(0,0,0,.3) !important;
  }

  #chapter-9 .chapter-nine-intro,
  html[lang="es"] #chapter-9 .chapter-nine-intro {
    max-width: 560px !important;
    margin: 16px auto 0 !important;
    font: italic 600 clamp(17px, 1.45vw, 24px)/1.38 Inter, Arial, sans-serif !important;
    color: #efb65a !important;
    text-shadow: 0 2px 14px rgba(0,0,0,.34) !important;
  }

  #chapter-9 .chapter-nine-rule,
  html[lang="es"] #chapter-9 .chapter-nine-rule {
    width: min(76%, 430px) !important;
    height: 1px !important;
    margin: clamp(16px, 2vh, 24px) auto !important;
    background: rgba(255,255,255,.58) !important;
  }

  #chapter-9 .chapter-nine-demo-copy,
  html[lang="es"] #chapter-9 .chapter-nine-demo-copy {
    display: grid !important;
    gap: 4px !important;
    font: 400 clamp(15px, 1.2vw, 20px)/1.32 Inter, Arial, sans-serif !important;
    text-align: center !important;
    text-shadow: 0 2px 12px rgba(0,0,0,.34) !important;
  }

  #chapter-9 .chapter-nine-arrange,
  html[lang="es"] #chapter-9 .chapter-nine-arrange {
    margin: 0 0 12px !important;
    color: #efb65a !important;
    text-transform: uppercase !important;
    letter-spacing: .075em !important;
    font: 650 clamp(11px, .9vw, 14px)/1.2 Inter, Arial, sans-serif !important;
    text-align: center !important;
  }

  #chapter-9 .chapter-nine-contact-grid,
  html[lang="es"] #chapter-9 .chapter-nine-contact-grid {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  #chapter-9 .chapter-nine-people,
  html[lang="es"] #chapter-9 .chapter-nine-people {
    display: flex !important;
    justify-content: center !important;
    gap: clamp(44px, 5vw, 86px) !important;
    text-align: center !important;
  }

  #chapter-9 .chapter-nine-people p,
  html[lang="es"] #chapter-9 .chapter-nine-people p { margin: 0 !important; }

  #chapter-9 .chapter-nine-people strong,
  html[lang="es"] #chapter-9 .chapter-nine-people strong {
    display: block !important;
    font: 500 clamp(30px, 2.7vw, 46px)/1 'Cormorant Garamond', Georgia, serif !important;
  }

  #chapter-9 .chapter-nine-people span,
  html[lang="es"] #chapter-9 .chapter-nine-people span {
    display: block !important;
    margin-top: 4px !important;
    font: 400 clamp(14px, 1.1vw, 18px)/1.25 Inter, Arial, sans-serif !important;
  }

  #chapter-9 .chapter-nine-links,
  html[lang="es"] #chapter-9 .chapter-nine-links {
    display: flex !important;
    justify-content: center !important;
    gap: clamp(22px, 3vw, 42px) !important;
    margin-top: 18px !important;
    color: #efb65a !important;
    font: 500 clamp(13px, 1vw, 17px)/1.3 Inter, Arial, sans-serif !important;
  }
}

/* Navigation hard reset — one native horizontal mechanism for Chapters 1–4.
   These final rules intentionally replace all earlier experimental overflow/touch overrides. */
#hero .hero-gallery,
#chapter-2 #chapter2Strip,
#chapter-3 #chapter3Strip,
#chapter-4 #chapter4Strip {
  display: flex !important;
  width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory !important;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

#hero .hero-gallery::-webkit-scrollbar,
#chapter-2 #chapter2Strip::-webkit-scrollbar,
#chapter-3 #chapter3Strip::-webkit-scrollbar,
#chapter-4 #chapter4Strip::-webkit-scrollbar {
  display: none;
}

#hero .hero-gallery > .hero-panel,
#chapter-2 #chapter2Strip > .chapter-page,
#chapter-3 #chapter3Strip > .chapter-page,
#chapter-4 #chapter4Strip > .chapter-page {
  flex: 0 0 100% !important;
  width: 100% !important;
  min-width: 100% !important;
  scroll-snap-align: start !important;
  scroll-snap-stop: always !important;
}

/* Chapter 8 uses native two-axis gesture arbitration. No synthetic vertical jump. */
@media (max-width: 760px) {
  #chapter-8 .mobile-comparison-scroll {
    touch-action: pan-x pan-y !important;
    overscroll-behavior-x: contain !important;
    overscroll-behavior-y: auto !important;
  }
}

/* Chapter 5 flavour title — match the approved mobile chapter title scale */
@media (max-width: 760px) {
  .sales-flavour-section h2 {
    font-size: clamp(46px, 13vw, 72px) !important;
    line-height: .96 !important;
  }
}

/* 2026-07-21 tablet-only polish: replace Chapters 1–3 side arrows with the premium swipe cue. */
@media (min-width: 761px) and (pointer: coarse) {
  #hero > .finish-nav,
  #chapter-2 > .chapter-nav,
  #chapter-3 > .chapter-nav {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .tablet-horizontal-cue {
    position: absolute;
    left: 50%;
    bottom: 72px;
    width: 58px;
    height: 14px;
    transform: translateX(-50%);
    z-index: 44;
    pointer-events: none;
    opacity: .76;
    transition: opacity .4s ease, transform .4s ease;
  }

  .tablet-horizontal-cue::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 6px;
    height: 1px;
    background: rgba(255,255,255,.55);
    border-radius: 99px;
  }

  .tablet-horizontal-cue::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 4px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 8px rgba(0,0,0,.25);
    animation: tabletSwipeDot 1.7s ease-in-out infinite;
  }

  @keyframes tabletSwipeDot {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(43px); }
  }
}

/* 2026-07-21 tablet-only visible-stage alignment for Chapters 1–3.
   The section matches the actually visible browser area; the original full-height
   artwork is bottom-anchored inside it, so any necessary crop happens at the top. */
@media (min-width: 761px) and (pointer: coarse) {
  #hero,
  #chapter-2,
  #chapter-3 {
    height: var(--tablet-visible-height, 100dvh) !important;
    min-height: var(--tablet-visible-height, 100dvh) !important;
    overflow: hidden !important;
  }

  #hero .hero-gallery,
  #chapter-2 #chapter2Strip,
  #chapter-3 #chapter3Strip {
    position: absolute !important;
    inset: auto 0 0 0 !important;
    height: 100vh !important;
    min-height: 100vh !important;
  }

  #hero .hero-gallery > .hero-panel,
  #chapter-2 #chapter2Strip > .chapter-page,
  #chapter-3 #chapter3Strip > .chapter-page {
    height: 100vh !important;
    min-height: 100vh !important;
  }
}


/* 2026-07-21 mobile-only Chapter 8 short-viewport fit.
   Slightly tightens the table on shorter phone viewports so the final row clears the table frame. */
@media (max-width: 760px) and (max-height: 800px) {
  #chapter-8 .mobile-comparison-table th,
  #chapter-8 .mobile-comparison-table td {
    height: 44px;
  }

  #chapter-8 .mobile-comparison-table thead th {
    height: 56px;
  }
}


/* Chapter 9 catalogue CTA + tablet-height repair.
   Scoped to Chapter 9 only; chapters 1–8 and mobile layout remain unchanged. */
#chapter-9 .chapter-nine-catalogue-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin: 18px auto 0;
  padding: 0 28px;
  border: 1px solid rgba(239, 182, 90, .9);
  border-radius: 999px;
  color: #fff9f1;
  background: rgba(58, 38, 24, .28);
  font: 650 13px/1 Inter, Arial, sans-serif;
  letter-spacing: .065em;
  text-transform: uppercase;
  text-decoration: none;
  box-sizing: border-box;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

#chapter-9 .chapter-nine-catalogue-cta:hover,
#chapter-9 .chapter-nine-catalogue-cta:focus-visible {
  background: rgba(239, 182, 90, .18);
  border-color: #efb65a;
}

#chapter-9 .chapter-nine-catalogue-cta:active {
  transform: translateY(1px);
}

/* Tablet only: recover vertical room through spacing and positioning, not smaller type. */
@media (min-width: 761px) and (max-width: 1180px) {
  #chapter-9 .chapter-nine-live,
  html[lang="es"] #chapter-9 .chapter-nine-live {
    align-items: flex-start !important;
    padding: max(46px, 5.5vh) 40px max(24px, 3vh) !important;
    overflow: hidden !important;
  }

  #chapter-9 .chapter-nine-panel,
  html[lang="es"] #chapter-9 .chapter-nine-panel {
    margin: 0 auto !important;
  }

  #chapter-9 .chapter-nine-intro,
  html[lang="es"] #chapter-9 .chapter-nine-intro {
    margin-top: 9px !important;
  }

  #chapter-9 .chapter-nine-rule,
  html[lang="es"] #chapter-9 .chapter-nine-rule {
    margin: 11px auto !important;
  }

  #chapter-9 .chapter-nine-demo-copy,
  html[lang="es"] #chapter-9 .chapter-nine-demo-copy {
    gap: 2px !important;
  }

  #chapter-9 .chapter-nine-catalogue-cta,
  html[lang="es"] #chapter-9 .chapter-nine-catalogue-cta {
    min-height: 42px;
    margin-top: 12px;
    padding-inline: 24px;
  }

  #chapter-9 .chapter-nine-arrange,
  html[lang="es"] #chapter-9 .chapter-nine-arrange {
    margin-bottom: 8px !important;
  }

  #chapter-9 .chapter-nine-links,
  html[lang="es"] #chapter-9 .chapter-nine-links {
    margin-top: 10px !important;
  }
}

/* Preserve the compact mobile chapter while making the new CTA easy to tap. */
@media (max-width: 760px) {
  #chapter-9 .chapter-nine-catalogue-cta {
    min-height: 42px;
    margin-top: 12px;
    padding: 0 22px;
    font-size: 11px;
  }
}

/* v-final Chapter 9 tablet viewport safety.
   Uses the real dynamic viewport and allows only Chapter 9 to scroll when
   browser chrome leaves less vertical room. When the content fits, auto
   block margins keep the original centred presentation composition. */
@media (min-width: 761px) and (max-width: 1180px) {
  #chapter-9 {
    height: 100svh !important;
    min-height: 100svh !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    overflow: hidden !important;
  }

  #chapter-9 .chapter-nine-page {
    height: 100svh !important;
    min-height: 100svh !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    overflow: hidden !important;
  }

  #chapter-9 .chapter-nine-live,
  html[lang="es"] #chapter-9 .chapter-nine-live {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    padding-top: max(30px, calc(env(safe-area-inset-top) + 18px)) !important;
    padding-right: 40px !important;
    padding-bottom: max(34px, calc(env(safe-area-inset-bottom) + 24px)) !important;
    padding-left: 40px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  #chapter-9 .chapter-nine-live::-webkit-scrollbar,
  html[lang="es"] #chapter-9 .chapter-nine-live::-webkit-scrollbar {
    display: none;
  }

  #chapter-9 .chapter-nine-panel,
  html[lang="es"] #chapter-9 .chapter-nine-panel {
    flex: 0 0 auto !important;
    margin: auto !important;
  }
}

/* 2026-07-25 FINAL Chapter 9 tablet/Chrome repair.
   Chapter 9 becomes a content-led final page on touch tablets. It no longer
   depends on a fixed slide height, so Chrome's tab/address bars cannot crop
   the contact details. Chapters 1–8 and phone/desktop layouts are untouched. */
@media (min-width: 761px) and (max-width: 1400px) and (pointer: coarse) {
  .presentation,
  .presentation.presentation-pager {
    height: var(--tablet-visible-height, 100dvh) !important;
    min-height: var(--tablet-visible-height, 100dvh) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scroll-snap-type: y proximity !important;
    overscroll-behavior-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
  }

  #chapter-9 {
    position: relative !important;
    height: auto !important;
    min-height: var(--tablet-visible-height, 100dvh) !important;
    overflow: visible !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: normal !important;
    background: #8f6743 !important;
  }

  #chapter-9 .chapter-nine-page {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: var(--tablet-visible-height, 100dvh) !important;
    overflow: visible !important;
  }

  #chapter-9 .chapter-nine-desktop-image,
  html[lang="es"] #chapter-9 .chapter-nine-desktop-image {
    display: none !important;
  }

  #chapter-9 .chapter-nine-live,
  html[lang="es"] #chapter-9 .chapter-nine-live {
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    height: auto !important;
    min-height: var(--tablet-visible-height, 100dvh) !important;
    max-height: none !important;
    padding: max(34px, calc(env(safe-area-inset-top) + 20px)) 40px
             max(72px, calc(env(safe-area-inset-bottom) + 56px)) !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    background:
      linear-gradient(180deg, rgba(38,24,14,.22), rgba(38,24,14,.48)),
      linear-gradient(90deg, rgba(42,27,17,.12), rgba(42,27,17,.46)),
      url('assets/chapter-9-page-1.png') left center / 180% auto no-repeat !important;
  }

  #chapter-9 .chapter-nine-panel,
  html[lang="es"] #chapter-9 .chapter-nine-panel {
    flex: 0 0 auto !important;
    margin: 0 auto !important;
    padding-bottom: 0 !important;
  }
}
