/* ==========================================================================
   Board & Brew — Presentation
   ========================================================================== */

/* Fonts: one weight per family, as supplied. Faux bold is disabled so
   headings never get synthesised weight; faux italic is allowed for the
   tagline since no italic cut is supplied.
   The Arsenica trial draws digits and % as crossed-out placeholders, so
   unicode-range leaves them out and they fall through to Helvetica Neue.
   Drop the unicode-range line once the licensed font is in place. */
@font-face {
  font-family: "Arsenica";
  src: url("fonts/ArsenicaTrial-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-0024, U+0026-002F, U+003A-10FFFF;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("fonts/HelveticaNeueLight.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --wood: #4A2E1F;
  --wood-deep: #2E1C12;
  --tan: #B98A5E;
  --beige: #E8DCC8;
  --sand: #F3ECE0;
  --off-white: #FBF8F2;

  --font-heading: "Arsenica", "Helvetica Neue", Georgia, serif;
  --font-body: "Helvetica Neue", "Helvetica", Arial, sans-serif;

  --radius: 24px;
  --shadow: 0 18px 50px -20px rgba(46, 28, 18, 0.45);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --slide-dur: 0.6s;

  /* Stage margins, expressed in container units of the 16:9 stage */
  --pad-x: 4.2cqw;
  --pad-y: 3.6cqw;
}

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

html,
body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  background: var(--wood);
  color: var(--wood);
  font-family: var(--font-body);
  font-weight: 300;
  font-synthesis: style;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  display: grid;
  place-items: center;
  height: 100vh;
  height: 100dvh;
  touch-action: pan-y pinch-zoom;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Stage: fixed 16:9, letterboxed in the dark brown body
   -------------------------------------------------------------------------- */
.stage {
  position: relative;
  width: min(100vw, calc(100vh * 16 / 9));
  height: min(100vh, calc(100vw * 9 / 16));
  width: min(100vw, calc(100dvh * 16 / 9));
  height: min(100dvh, calc(100vw * 9 / 16));
  overflow: hidden;
  background: var(--sand);
  container-type: size;
  container-name: stage;
  isolation: isolate;
}

/* Portrait phones and tablets: fill the screen instead of a tiny letterbox */
@media (max-aspect-ratio: 1/1) and (max-width: 1024px) {
  .stage {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
  }
  :root {
    --pad-x: 6.5cqw;
    --pad-y: 6.5cqw;
  }
}

/* --------------------------------------------------------------------------
   Slides and transitions
   -------------------------------------------------------------------------- */
.slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateX(3%);
  transition:
    opacity var(--slide-dur) var(--ease),
    transform var(--slide-dur) var(--ease),
    visibility 0s linear var(--slide-dur);
  z-index: 1;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity var(--slide-dur) var(--ease),
    transform var(--slide-dur) var(--ease),
    visibility 0s;
  z-index: 2;
}

.slide.is-leaving { visibility: visible; }
.slide.is-leaving.to-left  { transform: translateX(-3%); }
.slide.is-leaving.to-right { transform: translateX(3%); }

/* Incoming from the left when going backwards */
.stage.is-back .slide:not(.is-active):not(.is-leaving) { transform: translateX(-3%); }

/* Staggered element reveal; resets instantly while the slide is hidden */
.reveal {
  opacity: 0;
  transform: translateY(2.4cqh);
}

.slide.is-active .reveal {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
  transition-delay: calc(0.28s + var(--i, 0) * 0.14s);
}

.slide.is-leaving .reveal { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Grain overlay
   -------------------------------------------------------------------------- */
.grain {
  position: absolute;
  inset: -50%;
  z-index: 5;
  pointer-events: none;
  opacity: 0.11;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.29 0 0 0 0 0.18 0 0 0 0 0.12 0 0 0 1.6 -0.25'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

.stage[data-theme="light"] .grain,
.stage[data-theme="split"] .grain {
  mix-blend-mode: multiply;
  opacity: 0.16;
}

/* --------------------------------------------------------------------------
   Slide 1: Title (text left, one large hero render right)
   -------------------------------------------------------------------------- */
.slide--title {
  /* Bottom clearance, level with the presenter controls */
  --title-bottom: 5.4cqh;
  background:
    radial-gradient(80% 70% at 100% 0%, rgba(232, 220, 200, 0.85) 0%, rgba(243, 236, 224, 0) 65%),
    var(--sand);
  color: var(--wood);
  display: grid;
  grid-template-columns: 42fr 58fr;
  column-gap: 3.4cqw;
  /* Bottom padding clears the presenter controls and the hint */
  padding: 12.5cqh var(--pad-x) calc(var(--title-bottom) + 8cqh);
}

.title__label {
  position: absolute;
  top: var(--pad-y);
  z-index: 3;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(8px, 0.95cqw, 18px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wood);
}

.title__label .sep {
  display: inline-block;
  margin: 0 0.9em;
  color: var(--tan);
}

.title__label--left  { left: var(--pad-x); }
.title__label--right { right: var(--pad-x); }

.title__text {
  position: relative;
  z-index: 2;
  align-self: center;
}

.title__lede { margin-top: 4.4cqh; }

.title__logo {
  margin: 0;
  line-height: 0;
}

.title__logo img {
  display: block;
  width: 100%;
  max-width: 36cqw;
  height: auto;
}

.tagline {
  margin: 0;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: 2.1cqw;
  letter-spacing: 0.005em;
  color: var(--wood);
  display: flex;
  align-items: center;
}

.tagline::before {
  content: "";
  flex: none;
  width: 3.4cqw;
  height: 1px;
  margin-right: 1.2cqw;
  background: var(--tan);
}

.title__intro {
  margin-top: 2.2cqh;
  max-width: 32cqw;
  font-size: clamp(9px, 1.12cqw, 21px);
  line-height: 1.6;
  color: rgba(74, 46, 31, 0.7);
}

/* One large hero render filling the right side */
.title-card {
  position: relative;
  margin: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--beige);
  box-shadow: 0 34px 70px -30px rgba(46, 28, 18, 0.6), 0 6px 16px rgba(46, 28, 18, 0.1);
  opacity: 0;
  transform: translateY(6cqh);
}

.slide.is-active .title-card {
  opacity: 1;
  transform: none;
  transition:
    opacity 1s var(--ease-out) 0.8s,
    transform 1.2s var(--ease-out) 0.8s;
}

.slide.is-leaving .title-card { opacity: 1; transform: none; }

.title-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
  transform-origin: 50% 55%;
}

.slide.is-active .title-card img {
  animation: title-zoom 30s ease-in-out 1.8s infinite alternate both;
}

@keyframes title-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.05); }
}

.title-card__tag {
  position: absolute;
  z-index: 1;
  left: clamp(8px, 1.2cqw, 24px);
  bottom: clamp(8px, 1.2cqw, 24px);
  padding: 0.55em 1.1em 0.5em;
  border-radius: 999px;
  font-size: clamp(8px, 0.9cqw, 17px);
  letter-spacing: 0.08em;
  box-shadow: 0 4px 14px -6px rgba(46, 28, 18, 0.5);
}

.title-card__tag { background: var(--off-white); color: var(--wood); }

.hint {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: calc(var(--title-bottom) + 2.6cqh);
  translate: -50% 0;
  font-size: clamp(8px, 0.85cqw, 16px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(74, 46, 31, 0.6);
  white-space: nowrap;
}

.slide.is-active .hint {
  animation: hint-pulse 3.2s ease-in-out 2s infinite;
}

.hint__touch { display: none; }

@media (hover: none) and (pointer: coarse) {
  .hint__keys { display: none; }
  .hint__touch { display: inline; }
}

.hint.is-dismissed,
.slide.is-active .hint.is-dismissed {
  opacity: 0 !important;
  animation: none;
  transition: opacity 0.5s var(--ease);
}

@keyframes hint-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}


/* --------------------------------------------------------------------------
   Slide 2: The Opportunity (split layout)
   -------------------------------------------------------------------------- */
.slide--opportunity {
  background: var(--sand);
  display: grid;
  grid-template-columns: 45fr 55fr;
}

/* Brown panel slides in from the left */
.opp__panel {
  position: relative;
  z-index: 2;
  background: var(--wood);
  color: var(--off-white);
  display: flex;
  align-items: center;
  transform: translateX(-101%);
  box-shadow: 18px 0 60px -30px rgba(46, 28, 18, 0.6);
}

.slide.is-active .opp__panel {
  transform: none;
  transition: transform 0.85s var(--ease-out) 0.08s;
}

.slide.is-leaving .opp__panel { transform: none; }

.opp__panel-inner {
  width: 100%;
  padding: 0 4.4cqw 0 var(--pad-x);
}

.opp__label {
  font-size: clamp(8px, 0.95cqw, 18px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tan);
}

.opp__label .sep {
  display: inline-block;
  margin: 0 0.9em;
  opacity: 0.7;
}

.opp__heading {
  margin-top: 3.4cqh;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 3.55cqw;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--off-white);
  text-wrap: balance;
}

.opp__lede {
  margin-top: 3.4cqh;
  max-width: 34cqw;
  font-size: clamp(9px, 1.1cqw, 22px);
  line-height: 1.6;
  color: rgba(251, 248, 242, 0.82);
}

.opp__callouts {
  list-style: none;
  margin-top: 5.2cqh;
  display: grid;
  gap: 3cqh;
}

.callout {
  position: relative;
  padding-left: 1.6cqw;
}

.callout::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.15em;
  width: 1px;
  background: var(--tan);
}

.callout__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.55cqw;
  line-height: 1.1;
  color: var(--off-white);
}

.callout__text {
  margin-top: 0.7cqh;
  font-size: clamp(8.5px, 0.98cqw, 19px);
  line-height: 1.5;
  color: rgba(251, 248, 242, 0.72);
}

/* Collage: positions are % of a near-square box, so the same geometry
   holds in the landscape split and the stacked portrait layout */
.opp__collage {
  position: relative;
  z-index: 1;
}

.card {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--beige);
  box-shadow: var(--shadow), 0 2px 6px rgba(46, 28, 18, 0.08);
}

.card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Warm, slightly muted grade so the photos sit with the palette */
  filter: sepia(0.2) saturate(0.8) contrast(0.98) brightness(1.03);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(185, 138, 94, 0.14), rgba(74, 46, 31, 0.1));
  mix-blend-mode: soft-light;
}

.card--bridge { left: 8%;  top: 6%;  width: 84%; height: 46%; }
.card--site   { left: 3%;  top: 47%; width: 40%; height: 34%; z-index: 2; }
.card--surf   { left: 49%; top: 55%; width: 43%; height: 29%; }

.card--bridge img { object-position: 50% 72%; }
.card--site img   { object-position: 50% 62%; }
.card--surf img   { object-position: 40% 55%; filter: sepia(0.2) saturate(0.8) contrast(1) brightness(1.14); }

.card--site { box-shadow: 0 24px 60px -18px rgba(46, 28, 18, 0.55), 0 0 0 5px var(--sand); }

.tag {
  position: absolute;
  z-index: 1;
  top: clamp(8px, 1cqw, 20px);
  left: clamp(8px, 1cqw, 20px);
  padding: 0.55em 1.1em 0.5em;
  border-radius: 999px;
  background: var(--tan);
  color: var(--off-white);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(8px, 0.78cqw, 15px);
  letter-spacing: 0.08em;
  white-space: nowrap;
  box-shadow: 0 4px 14px -6px rgba(46, 28, 18, 0.5);
}

/* Cards fade and scale in one by one: bridge, surf, site */
.reveal-card {
  opacity: 0;
  transform: scale(0.94);
}

.slide.is-active .reveal-card {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.9s var(--ease-out),
    transform 1.1s var(--ease-out);
  transition-delay: var(--d, calc(0.6s + var(--c, 0) * 0.22s));
}

.slide.is-leaving .reveal-card { opacity: 1; transform: none; }

/* Dotted route from our site to the bridge */
.opp__route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  overflow: visible;
  pointer-events: none;
  clip-path: inset(0 100% 0 0);
  filter: drop-shadow(0 0 1.5px rgba(46, 28, 18, 0.95)) drop-shadow(0 1px 3px rgba(46, 28, 18, 0.5));
}

/* Short round-capped dashes read as dots; zero-length dashes vanish in
   Chrome when combined with non-scaling-stroke */
.opp__route path {
  fill: none;
  stroke: var(--off-white);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-dasharray: 1.2 11;
  vector-effect: non-scaling-stroke;
}

.slide.is-active .opp__route {
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.9s var(--ease) 1.45s;
}

.slide.is-leaving .opp__route { clip-path: inset(0 0 0 0); }

.route-pin,
.route-end {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
}

.route-pin {
  /* Tip sits on the cafe roof in the "Our site" photo */
  left: 21.6%;
  top: 62%;
  width: clamp(18px, 1.5cqw, 30px);
  translate: -50% -94%;
  transform: translateY(-6px) scale(0.6);
  transform-origin: 50% 100%;
}

.route-pin svg {
  display: block;
  width: 100%;
  filter: drop-shadow(0 3px 5px rgba(46, 28, 18, 0.45));
}

.route-pin path { fill: var(--wood); stroke: var(--off-white); stroke-width: 1.6; }
.route-pin circle { fill: var(--tan); }

.route-end {
  /* On the bridge in the aerial photo */
  left: 49%;
  top: 38.5%;
  width: clamp(10px, 0.8cqw, 16px);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  border: 2px solid var(--off-white);
  background: var(--tan);
  box-shadow: 0 0 0 5px rgba(251, 248, 242, 0.28), 0 2px 6px rgba(46, 28, 18, 0.5);
  transform: scale(0.4);
}

.slide.is-active .route-pin {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s var(--ease) 1.3s, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.3s;
}

.slide.is-active .route-end {
  opacity: 1;
  transform: none;
  transition: opacity 0.3s var(--ease) 2.25s, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 2.25s;
}

.slide.is-leaving .route-pin,
.slide.is-leaving .route-end { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Slide 3: The Rebrand (three columns)
   -------------------------------------------------------------------------- */
.slide--rebrand {
  background:
    radial-gradient(70% 60% at 0% 0%, rgba(232, 220, 200, 0.75) 0%, rgba(243, 236, 224, 0) 70%),
    var(--sand);
  display: grid;
  grid-template-columns: 30fr 35fr 35fr;
  column-gap: 2.6cqw;
  align-items: center;
  padding: 0 var(--pad-x);
}

.rb__label {
  font-size: clamp(8px, 0.95cqw, 18px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tan);
}

.rb__label .sep {
  display: inline-block;
  margin: 0 0.9em;
  opacity: 0.7;
}

.rb__heading {
  margin-top: 3cqh;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 3.2cqw;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--wood);
  text-wrap: balance;
}

.rb__heading .amp { color: var(--tan); }

.rb__body {
  margin-top: 3cqh;
  font-size: clamp(9px, 1.02cqw, 20px);
  line-height: 1.62;
  color: rgba(74, 46, 31, 0.82);
}

.rb__pills {
  list-style: none;
  margin-top: 4cqh;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6cqw;
}

.pill {
  padding: 0.6em 1.25em 0.55em;
  border: 1px solid var(--tan);
  border-radius: 999px;
  font-size: clamp(8px, 0.85cqw, 16px);
  letter-spacing: 0.04em;
  color: var(--wood);
  background: rgba(251, 248, 242, 0.45);
  white-space: nowrap;
}

/* Before / after comparison */
.rb__compare {
  display: flex;
  justify-content: center;
}

.ba {
  --pos: 50%;
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 76cqh;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--beige);
  box-shadow: 0 30px 60px -28px rgba(46, 28, 18, 0.55), 0 4px 12px rgba(46, 28, 18, 0.08);
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.ba__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  filter: sepia(0.12) saturate(0.88);
  pointer-events: none;
}

.ba__after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--pos));
}

.ba__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  translate: -50% 0;
  background: var(--off-white);
  box-shadow: 0 0 10px rgba(46, 28, 18, 0.35);
  pointer-events: none;
}

.ba__handle {
  position: absolute;
  top: 50%;
  left: var(--pos);
  translate: -50% -50%;
  width: clamp(34px, 3cqw, 56px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--off-white);
  color: var(--wood);
  box-shadow: 0 6px 20px -4px rgba(46, 28, 18, 0.5);
  cursor: grab;
  transition: scale 0.25s var(--ease);
}

.ba.is-dragging .ba__handle { cursor: grabbing; scale: 1.08; }

.ba__handle svg {
  width: 58%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ba__handle:focus-visible { outline: 2px solid var(--tan); outline-offset: 3px; }

.ba__tag {
  position: absolute;
  z-index: 2;
  top: clamp(8px, 1cqw, 20px);
  padding: 0.55em 1.1em 0.5em;
  border-radius: 999px;
  font-size: clamp(8px, 0.78cqw, 15px);
  letter-spacing: 0.08em;
  pointer-events: none;
  box-shadow: 0 4px 14px -6px rgba(46, 28, 18, 0.5);
}

.ba__tag--before { left: clamp(8px, 1cqw, 20px); background: var(--beige); color: var(--wood); }
.ba__tag--after  { right: clamp(8px, 1cqw, 20px); background: var(--tan); color: var(--off-white); }

/* Identity column */
.rb__identity {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 1.1cqw;
  height: min(76cqh, calc((100cqw - 2 * var(--pad-x) - 5.2cqw) * 35 / 100 * 4 / 3));
}

.identity-card {
  position: relative;
  border-radius: var(--radius);
  background:
    radial-gradient(90% 70% at 50% 40%, rgba(185, 138, 94, 0.16) 0%, rgba(74, 46, 31, 0) 70%),
    var(--wood);
  color: var(--off-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3.4cqh;
  padding: 2cqw;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.identity-card__label {
  position: absolute;
  top: 1.8cqw;
  left: 0;
  right: 0;
  text-align: center;
  font-size: clamp(8px, 0.85cqw, 16px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tan);
}

.identity__logo {
  width: 78%;
  max-height: 80%;
  overflow: visible;
}

/* Icon draws itself on, then the wordmark fades in */
.identity__icon path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.identity__wordmark { opacity: 0; }

.slide.is-active .identity__icon path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.65, 0, 0.35, 1) 2.15s;
}

.slide.is-active .identity__icon path:nth-child(n+2) { transition-delay: 2.55s; }

.slide.is-active .identity__wordmark {
  opacity: 1;
  transition: opacity 1s var(--ease) 2.75s;
}

.slide.is-leaving .identity__icon path { stroke-dashoffset: 0; }
.slide.is-leaving .identity__wordmark { opacity: 1; }

.identity-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1cqw;
}

.mini-card {
  margin: 0;
  aspect-ratio: 1;
  border-radius: calc(var(--radius) * 0.75);
  background: var(--beige);
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px -18px rgba(46, 28, 18, 0.45);
}

.mini-card img {
  display: block;
  max-width: 70%;
  max-height: 66%;
}

.mini-card:first-child img { max-height: 62%; }

/* --------------------------------------------------------------------------
   Slide 4: Brand Identity
   -------------------------------------------------------------------------- */
.slide--identity {
  background: var(--off-white);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  row-gap: 4.2cqh;
  /* Bottom padding keeps the texture row clear of the presenter controls */
  padding: calc(var(--pad-y) + 1cqh) var(--pad-x) 14cqh;
}

.bi__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 5cqw;
}

.bi__label,
.bi__band-title {
  font-size: clamp(8px, 0.95cqw, 18px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tan);
  font-weight: 300;
}

.bi__label .sep {
  display: inline-block;
  margin: 0 0.9em;
  opacity: 0.7;
}

.bi__heading {
  margin-top: 2cqh;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 3.3cqw;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--wood);
}

.bi__intro {
  max-width: 36cqw;
  font-size: clamp(9px, 1.02cqw, 20px);
  line-height: 1.6;
  color: rgba(74, 46, 31, 0.78);
  padding-bottom: 0.4cqh;
}

.bi__band-title {
  font-size: clamp(7px, 0.78cqw, 15px);
  margin-bottom: 1.6cqh;
}

.bi__band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 2.6cqw;
  min-height: 0;
}

.bi__palette,
.bi__type {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Colour swatches */
.swatches {
  list-style: none;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.9cqw;
}

.swatches > li { min-height: 0; }

.swatch {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--off-white);
  border: 1px solid rgba(232, 220, 200, 0.9);
  box-shadow: 0 16px 30px -22px rgba(46, 28, 18, 0.45);
  transition: translate 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.swatch:hover {
  translate: 0 -0.9cqh;
  box-shadow: 0 24px 36px -22px rgba(46, 28, 18, 0.55);
}

/* Fixed share (not flex) so every label row lines up, however the text wraps */
.swatch__colour {
  flex: none;
  height: 62%;
}

/* Off-white disappears against the card, so give its colour block an edge */
.swatch--outline .swatch__colour { box-shadow: inset 0 -1px 0 var(--beige); }

.swatch__name {
  margin-top: 1.3cqh;
  padding: 0 0.75cqw;
  font-family: var(--font-heading);
  font-size: clamp(9px, 1.08cqw, 21px);
  line-height: 1.1;
  /* Two lines reserved so hex codes line up whether or not a name wraps */
  min-height: 2.2em;
  color: var(--wood);
}

.swatch__hex {
  margin-top: 0.5cqh;
  padding: 0 0.75cqw;
  font-size: clamp(7px, 0.72cqw, 14px);
  letter-spacing: 0.08em;
  color: rgba(74, 46, 31, 0.75);
  font-variant-numeric: tabular-nums;
}

.swatch__role {
  margin-top: auto;
  padding: 0.6cqh 0.75cqw 1.3cqh;
  font-size: clamp(7px, 0.68cqw, 13px);
  line-height: 1.35;
  color: var(--tan);
}

/* Typography cards */
.type-cards {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2cqw;
}

.type-card {
  display: flex;
  flex-direction: column;
  padding: 1.8cqw 1.8cqw 1.6cqw;
  border-radius: var(--radius);
  background: var(--sand);
  box-shadow: 0 16px 30px -24px rgba(46, 28, 18, 0.4);
  min-height: 0;
  overflow: hidden;
}

.type-card__aa {
  display: block;
  font-size: 7cqw;
  line-height: 0.9;
  color: var(--wood);
  transform-origin: 0 100%;
  transform: scale(0.86);
}

.slide.is-active .type-card__aa {
  transform: none;
  transition: transform 1.3s var(--ease-out) calc(0.4s + 6 * 0.14s);
}

.slide.is-leaving .type-card__aa { transform: none; }

.type-card__aa--serif { font-family: var(--font-heading); }

/* Only the Light cut of Helvetica Neue is installed; a hairline stroke
   gives the specimen a medium weight without faux-bold synthesis */
.type-card__aa--sans {
  font-family: var(--font-body);
  font-weight: 300;
  letter-spacing: -0.02em;
  -webkit-text-stroke: 0.018em currentColor;
}

.type-card__name {
  margin-top: auto;
  padding-top: 1.4cqh;
  font-size: clamp(10px, 1.35cqw, 26px);
  color: var(--wood);
}

.type-card__name--serif { font-family: var(--font-heading); }

.type-card__role {
  margin-top: 0.5cqh;
  font-size: clamp(7px, 0.75cqw, 14px);
  letter-spacing: 0.04em;
  color: var(--tan);
}

.type-card__sample {
  margin-top: 1.6cqh;
  padding-top: 1.4cqh;
  border-top: 1px solid rgba(185, 138, 94, 0.35);
  font-size: clamp(8px, 0.92cqw, 18px);
  line-height: 1.5;
  color: rgba(74, 46, 31, 0.85);
}

.type-card__sample--serif {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(9px, 1.15cqw, 22px);
  line-height: 1.35;
}

/* Materials and textures: small crops, so the image area stays small */
.textures {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2cqw;
}

.texture {
  padding: 0.7cqw 0.7cqw 1.4cqh;
  border-radius: var(--radius);
  background: var(--sand);
  box-shadow: 0 14px 28px -22px rgba(46, 28, 18, 0.4);
}

.texture img {
  display: block;
  width: 100%;
  height: 9.5cqh;
  object-fit: cover;
  border-radius: calc(var(--radius) - 0.7cqw);
  filter: sepia(0.1) saturate(0.9);
}

.texture__name {
  margin-top: 1.3cqh;
  padding: 0 0.4cqw;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(9px, 1.08cqw, 21px);
  line-height: 1.15;
  color: var(--wood);
}

.texture__note {
  margin-top: 0.4cqh;
  padding: 0 0.4cqw;
  font-size: clamp(7px, 0.74cqw, 14px);
  color: rgba(74, 46, 31, 0.7);
}

/* --------------------------------------------------------------------------
   Slide 5: The Bar Renovation
   -------------------------------------------------------------------------- */
.slide--bar {
  background:
    radial-gradient(70% 60% at 100% 100%, rgba(232, 220, 200, 0.7) 0%, rgba(243, 236, 224, 0) 70%),
    var(--sand);
  display: grid;
  grid-template-columns: 58fr 42fr;
  grid-template-rows: auto minmax(0, 1fr);
  column-gap: 2.8cqw;
  row-gap: 3.4cqh;
  padding: calc(var(--pad-y) + 1cqh) var(--pad-x) 14cqh;
}

.bar__header { grid-column: 1 / -1; }

.bar__label {
  font-size: clamp(8px, 0.95cqw, 18px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tan);
}

.bar__label .sep {
  display: inline-block;
  margin: 0 0.9em;
  opacity: 0.7;
}

.bar__heading {
  margin-top: 1.8cqh;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 3.4cqw;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--wood);
}

/* Slider card + toggle */
.bar__compare {
  display: flex;
  flex-direction: column;
  gap: 2cqh;
  min-height: 0;
}

/* Landscape variant of the slide 3 comparison card: fills the column */
.ba--wide {
  flex: 1;
  aspect-ratio: auto;
  max-height: none;
  min-height: 0;
  box-shadow: 0 40px 70px -34px rgba(46, 28, 18, 0.6), 0 6px 16px rgba(46, 28, 18, 0.1);
}

.ba__img--night {
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}

.ba.is-night .ba__img--night { opacity: 1; }

.daynight {
  align-self: flex-start;
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border-radius: 999px;
  background: var(--beige);
  box-shadow: inset 0 1px 2px rgba(46, 28, 18, 0.08);
}

.daynight__btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  min-width: 5.6cqw;
  padding: 0.7em 1.5em 0.65em;
  border-radius: 999px;
  background: transparent;
  color: var(--wood);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(9px, 0.85cqw, 16px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.daynight__btn:hover { background: rgba(251, 248, 242, 0.55); }

.daynight__btn.is-selected {
  background: var(--wood);
  color: var(--off-white);
  box-shadow: 0 4px 12px -4px rgba(46, 28, 18, 0.5);
}

.daynight__btn:focus-visible { outline: 2px solid var(--tan); outline-offset: 2px; }

/* Right column: plan + features */
.bar__side {
  display: flex;
  flex-direction: column;
  gap: 2.6cqh;
  min-height: 0;
}

.plan {
  margin: 0;
  flex: none;
  padding: 1.4cqw 1.6cqw;
  border-radius: var(--radius);
  background: var(--beige);
  box-shadow: 0 18px 34px -26px rgba(46, 28, 18, 0.45);
}

.plan__svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 34cqh;
  overflow: visible;
}

.plan__path { fill: rgba(163, 154, 140, 0.32); }
.plan__canopy { fill: rgba(185, 138, 94, 0.2); stroke: rgba(185, 138, 94, 0.55); stroke-width: 1; stroke-dasharray: 3 5; }

.plan__counter {
  fill: none;
  stroke: var(--wood);
  stroke-width: 15;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.plan__stool,
.plan__table {
  fill: var(--off-white);
  stroke: var(--wood);
  stroke-width: 1.6;
}

.plan__table { fill: rgba(251, 248, 242, 0.7); }

.plan__pop > * {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
}

.plan__steps ellipse { fill: rgba(74, 46, 31, 0.55); }
.plan__walk { fill: none; stroke: rgba(74, 46, 31, 0.5); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 0.1 7; }

.plan__arrow {
  fill: none;
  stroke: var(--tan);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plan__text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.06em;
  fill: var(--wood);
}

.plan__label { text-anchor: middle; }
.plan__text--end { text-anchor: end; }
.plan__text--start { text-anchor: start; }
.plan__text--path { text-anchor: middle; letter-spacing: 0.14em; text-transform: uppercase; font-size: 10px; }
.plan__prep { text-anchor: middle; font-family: var(--font-heading); font-style: italic; font-size: 15px; letter-spacing: 0; }

.plan__text,
.plan__arrow,
.plan__steps { opacity: 0; }

/* Draw sequence: counters, then stools/tables, then arrows and labels */
.slide.is-active .plan__counter {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s cubic-bezier(0.65, 0, 0.35, 1) 1.25s;
}

.slide.is-active .plan__pop > * {
  transform: none;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) calc(2.1s + var(--n, 0) * 0.06s);
}

.plan__pop > :nth-child(2) { --n: 1; }
.plan__pop > :nth-child(3) { --n: 2; }
.plan__pop > :nth-child(4) { --n: 3; }
.plan__pop > :nth-child(5) { --n: 4; }
.plan__pop > :nth-child(6) { --n: 5; }

.slide.is-active .plan__text,
.slide.is-active .plan__arrow,
.slide.is-active .plan__steps {
  opacity: 1;
  transition: opacity 0.7s var(--ease) 2.55s;
}

.slide.is-leaving .plan__counter { stroke-dashoffset: 0; }
.slide.is-leaving .plan__pop > * { transform: none; }
.slide.is-leaving .plan__text,
.slide.is-leaving .plan__arrow,
.slide.is-leaving .plan__steps { opacity: 1; }

/* Feature rows */
.features {
  list-style: none;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.6cqh;
}

.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.2cqw;
  align-items: start;
}

.feature__icon {
  width: clamp(18px, 1.9cqw, 36px);
  height: auto;
  margin-top: 0.1em;
  fill: none;
  stroke: var(--tan);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(10px, 1.3cqw, 25px);
  line-height: 1.1;
  color: var(--wood);
}

.feature__text {
  margin-top: 0.5cqh;
  font-size: clamp(8px, 0.9cqw, 17px);
  line-height: 1.5;
  color: rgba(74, 46, 31, 0.75);
}

/* --------------------------------------------------------------------------
   Slide 6: Target Market & Strategy
   -------------------------------------------------------------------------- */
.slide--market {
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(232, 220, 200, 0.7) 0%, rgba(243, 236, 224, 0) 70%),
    var(--sand);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  row-gap: 3cqh;
  padding: calc(var(--pad-y) + 0.5cqh) var(--pad-x) 13.5cqh;
}

.tm__label {
  font-size: clamp(8px, 0.95cqw, 18px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tan);
}

.tm__label .sep {
  display: inline-block;
  margin: 0 0.9em;
  opacity: 0.7;
}

.tm__heading {
  margin-top: 1.8cqh;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 3.1cqw;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--wood);
}

/* Market cards */
.tm__markets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2cqw;
  min-height: 0;
}

.market {
  display: grid;
  grid-template-columns: 32% minmax(0, 1fr);
  column-gap: 2cqw;
  min-height: 0;
  padding: 1.4cqw;
  border-radius: var(--radius);
  box-shadow: 0 24px 46px -30px rgba(46, 28, 18, 0.6);
  opacity: 0;
  transform: translateY(6cqh);
}

.slide.is-active .market {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.8s var(--ease-out),
    transform 1s var(--ease-out);
  transition-delay: calc(0.55s + var(--m, 0) * 0.22s);
}

.slide.is-leaving .market { opacity: 1; transform: none; }

.market--dark  { background: var(--wood); color: var(--off-white); }
.market--light { background: var(--beige); color: var(--wood); }

.market__img {
  min-height: 0;
  overflow: hidden;
  border-radius: calc(var(--radius) * 0.7);
}

.market__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
}

.slide.is-active .market__img img {
  transform: none;
  transition: transform 1.6s var(--ease-out);
  transition-delay: calc(0.55s + var(--m, 0) * 0.22s);
}

.slide.is-leaving .market__img img { transform: none; }

.market__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1cqh 1cqw 1cqh 0;
}

.market__label {
  font-size: clamp(8px, 0.82cqw, 16px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tan);
}

.market__title {
  margin-top: 1.2cqh;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 2.6cqw;
  line-height: 1;
}

.market__body {
  margin-top: 1.6cqh;
  font-size: clamp(9px, 1.02cqw, 20px);
  line-height: 1.6;
}

.market--dark .market__body  { color: rgba(251, 248, 242, 0.8); }
.market--light .market__body { color: rgba(74, 46, 31, 0.8); }

.market__pills {
  list-style: none;
  margin-top: 2cqh;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6cqw;
}

/* Approach card */
.approach {
  padding: 2.4cqh 2.8cqw 2.6cqh;
  border-radius: var(--radius);
  background: var(--off-white);
  box-shadow: 0 20px 40px -30px rgba(46, 28, 18, 0.5);
  opacity: 0;
  transform: translateY(3cqh);
}

.slide.is-active .approach {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease-out) 1.15s, transform 0.9s var(--ease-out) 1.15s;
}

.slide.is-leaving .approach { opacity: 1; transform: none; }

.approach__label {
  font-size: clamp(8px, 0.82cqw, 16px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tan);
}

.approach__cols {
  margin-top: 1.6cqh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  column-gap: 3cqw;
}

.approach__col {
  opacity: 0;
  transform: translateY(1.5cqh);
}

.slide.is-active .approach__col {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease-out) var(--cd), transform 0.8s var(--ease-out) var(--cd);
}

.approach__col--left  { --cd: 1.5s; }
.approach__col--right { --cd: 1.72s; }

.slide.is-leaving .approach__col { opacity: 1; transform: none; }

/* Thin tan divider that draws top to bottom */
.approach__divider {
  width: 1px;
  background: var(--tan);
  transform-origin: center top;
  transform: scaleY(0);
}

.slide.is-active .approach__divider {
  transform: none;
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1) 1.9s;
}

.slide.is-leaving .approach__divider { transform: none; }

.approach__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.75cqw;
  line-height: 1.1;
  color: var(--wood);
}

.approach__body {
  margin-top: 1cqh;
  font-size: clamp(9px, 1cqw, 19px);
  line-height: 1.6;
  color: rgba(74, 46, 31, 0.8);
}

.approach__motto {
  margin-top: 2.2cqh;
  text-align: center;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.7cqw;
  color: var(--tan);
  opacity: 0;
}

.slide.is-active .approach__motto {
  opacity: 1;
  transition: opacity 0.9s var(--ease) 2.5s;
}

.slide.is-leaving .approach__motto { opacity: 1; }

/* --------------------------------------------------------------------------
   Slide 7: Menu Concept (open menu on a dark timber table)
   -------------------------------------------------------------------------- */
.slide--menu {
  background:
    radial-gradient(120% 90% at 50% 45%, rgba(46, 28, 18, 0) 45%, rgba(30, 18, 11, 0.55) 100%),
    repeating-linear-gradient(178deg, rgba(0, 0, 0, 0) 0 22px, rgba(30, 18, 11, 0.09) 22px 23px, rgba(0, 0, 0, 0) 23px 61px, rgba(185, 138, 94, 0.05) 61px 62px),
    var(--wood);
  display: grid;
  grid-template-columns: 19cqw minmax(0, 1fr);
  column-gap: 2cqw;
  padding: 0 var(--pad-x);
}

.mc__header {
  padding-top: calc(var(--pad-y) + 1cqh);
}

.mc__label {
  font-size: clamp(8px, 0.95cqw, 18px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tan);
}

.mc__label .sep {
  display: inline-block;
  margin: 0 0.9em;
  opacity: 0.7;
}

.mc__heading {
  margin-top: 2cqh;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 2.5cqw;
  line-height: 1.08;
  color: var(--off-white);
}

.mc__toggle { display: none; }

.mc__spread {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1.8cqw;
  padding-top: 3.5cqh;
}

/* ---- Menu page: kraft paper in pure CSS ---- */
.menu-page {
  --paper: #D9C3A0;
  position: relative;
  container-type: inline-size;
  flex: none;
  height: 83cqh;
  aspect-ratio: 1 / 1.414;
  display: flex;
  flex-direction: column;
  /* No padding here: children pad themselves in cqi, which only resolve
     against this page when it has no padding of its own */
  padding: 0;
  border-radius: 6px;
  color: var(--wood);
  background-color: var(--paper);
  background-image:
    /* fine grain */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.32 0 0 0 0 0.2 0 0 0 0 0.1 0 0 0 0.55 -0.12'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
    /* long paper fibres */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.004 0.09' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.3 0 0 0 0 0.16 0 0 0 0.5 -0.18'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E"),
    /* lighter centre, darker edges */
    radial-gradient(120% 90% at 50% 45%, rgba(255, 246, 228, 0.22) 0%, rgba(255, 246, 228, 0) 55%, rgba(120, 78, 40, 0.28) 100%);
  background-size: 180px 180px, 400px 400px, 100% 100%;
  box-shadow:
    inset 0 0 18px rgba(110, 70, 35, 0.35),
    0 2px 3px rgba(20, 12, 8, 0.25),
    0 18px 30px -8px rgba(20, 12, 8, 0.45),
    0 45px 70px -30px rgba(20, 12, 8, 0.7);
  opacity: 0;
  transform: translateY(10cqh) rotate(0deg);
}

.slide.is-active .menu-page {
  opacity: 1;
  transform: rotate(var(--rot, 0deg));
  transition:
    opacity 0.9s var(--ease-out) var(--d, 0.45s),
    transform 1.2s var(--ease-out) var(--d, 0.45s);
}

.slide.is-leaving .menu-page { opacity: 1; transform: rotate(var(--rot, 0deg)); }

/* Thin inset border */
.menu-page::before {
  content: "";
  position: absolute;
  inset: 3cqi;
  border: 1.5px solid rgba(74, 46, 31, 0.85);
  border-radius: 3px;
  pointer-events: none;
}

/* Surfboard icon in each corner */
.menu-page::after {
  content: "";
  position: absolute;
  inset: 4.4cqi;
  pointer-events: none;
  opacity: 0.85;
  background:
    url("images/logo/logo-icon-brown.svg") left top / auto 6.2cqi no-repeat,
    url("images/logo/logo-icon-brown.svg") right top / auto 6.2cqi no-repeat,
    url("images/logo/logo-icon-brown.svg") left bottom / auto 6.2cqi no-repeat,
    url("images/logo/logo-icon-brown.svg") right bottom / auto 6.2cqi no-repeat;
}

.menu-page__head { text-align: center; padding: 6.6cqi 6.5cqi 0; }

.menu-page__brand {
  font-family: var(--font-heading);
  font-size: 3.3cqi;
  letter-spacing: 0.08em;
  color: var(--wood);
}

.menu-page__title {
  margin-top: 1cqi;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 7.8cqi;
  line-height: 1;
  color: var(--wood);
}

.menu-page__title::after {
  content: "";
  display: block;
  width: 11cqi;
  height: 2px;
  margin: 2.2cqi auto 0;
  background: var(--tan);
}

.menu-items {
  list-style: none;
  flex: 1;
  min-height: 0;
  margin-top: 2.4cqi;
  padding: 0 6.5cqi;
  display: grid;
  /* Fixed rows: tall art may spill a little but never stretches the list */
  grid-template-rows: repeat(5, minmax(0, 1fr));
}

/* Zig-zag: art left on odd rows, right on even rows; text stays left-aligned */
.menu-item {
  display: grid;
  grid-template-columns: 25cqi minmax(0, 1fr);
  grid-template-areas: "art text";
  align-items: center;
  column-gap: 1cqi;
  min-height: 0;
}

.menu-item:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) 25cqi;
  grid-template-areas: "text art";
}

.menu-item__art {
  grid-area: art;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  opacity: 0;
  transform: scale(0.55);
}

.menu-item:nth-child(odd)  .menu-item__art { margin-right: -2cqi; }
.menu-item:nth-child(even) .menu-item__art { margin-left: -2cqi; }

.menu-item__art img {
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 0.6cqi 0.5cqi rgba(74, 46, 31, 0.28));
  rotate: -4deg;
  transition: translate 0.4s var(--ease-out), scale 0.4s var(--ease-out);
}

.menu-item:nth-child(even) .menu-item__art img { rotate: 4deg; }

/* Tall glasses sized by height, plated food by width; both spill into neighbouring rows */
.menu-page--shakes .menu-item__art img { height: 22cqi; width: auto; }
.menu-page--bites  .menu-item__art img { width: 25cqi; height: auto; max-height: 21cqi; object-fit: contain; }

.slide.is-active .menu-item__art {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.45s var(--ease-out),
    transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: calc(1.55s + var(--pd, 0s) + var(--n, 0) * 0.16s);
}

.slide.is-leaving .menu-item__art { opacity: 1; transform: none; }

@media (hover: hover) {
  .menu-item:hover .menu-item__art img {
    translate: 0 -1.4cqi;
    scale: 1.07;
  }
}

.menu-item__text { grid-area: text; }

.menu-item:nth-child(even) .menu-item__text { padding-left: 2cqi; }

.menu-item__name {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 4cqi;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wood);
}

.menu-item__desc {
  margin-top: 0.9cqi;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 2.95cqi;
  line-height: 1.36;
  color: rgba(74, 46, 31, 0.88);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.menu-page__foot {
  margin-top: 1.6cqi;
  padding: 0 6.5cqi 5cqi;
  text-align: center;
  font-size: 2.5cqi;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(74, 46, 31, 0.8);
}

/* Open-full-screen button, bottom centre of the slide */
.mc__open {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 3.4cqh;
  translate: -50% 0;
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 0.85em 1.8em 0.8em;
  border-radius: 999px;
  background: var(--off-white);
  color: var(--wood);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(9px, 0.85cqw, 16px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.6);
  transition: background-color 0.3s var(--ease), translate 0.3s var(--ease-out);
}

.mc__open:hover { background: var(--beige); }
.mc__open:focus-visible { outline: 2px solid var(--tan); outline-offset: 3px; }

/* ---- Full-screen menu overlay ---- */
.menu-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: var(--sand);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
}

.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s var(--ease), visibility 0s;
}

.menu-overlay__scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  outline: none;
}

.menu-overlay__pages {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 3cqw;
  padding: 9cqh 4cqw 7cqh;
}

/* Straightened and larger for reading */
.menu-overlay .menu-page {
  height: auto;
  width: 43cqw;
  opacity: 1;
  transform: none;
}

.menu-overlay .menu-item__art { opacity: 1; transform: none; }

.menu-overlay__close {
  position: absolute;
  z-index: 2;
  top: 2.4cqh;
  right: 2cqw;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 0.75em 1.1em 0.7em 1.4em;
  border-radius: 999px;
  background: var(--wood);
  color: var(--off-white);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(10px, 0.85cqw, 16px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px -8px rgba(46, 28, 18, 0.6);
}

.menu-overlay__close svg {
  width: 1.3em;
  height: 1.3em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.menu-overlay__close:focus-visible { outline: 2px solid var(--tan); outline-offset: 3px; }

/* --------------------------------------------------------------------------
   Slide 7: The Layout (site plan + zone cards)
   -------------------------------------------------------------------------- */
.slide--layout {
  background: var(--sand);
  display: grid;
  /* The plan is to true proportion (about 11 m x 23 m), so its card is tall
     and narrow; the header and cards take the remaining width */
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  column-gap: 3.4cqw;
  row-gap: 3cqh;
  padding: calc(var(--pad-y) + 0.5cqh) var(--pad-x) 13.5cqh;
}

.lp__header { grid-column: 2; grid-row: 1; }

.lp__label {
  font-size: clamp(8px, 0.95cqw, 18px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tan);
}

.lp__label .sep {
  display: inline-block;
  margin: 0 0.9em;
  opacity: 0.7;
}

.lp__heading {
  margin-top: 1.8cqh;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 3.1cqw;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--wood);
}

.lp__intro {
  margin-top: 1.6cqh;
  max-width: 50cqw;
  font-size: clamp(9px, 1.02cqw, 20px);
  line-height: 1.6;
  color: rgba(74, 46, 31, 0.78);
}

/* Plan card */
.lp-card {
  grid-column: 1;
  grid-row: 1 / -1;
  margin: 0;
  height: 100%;
  min-height: 0;
  padding: 1.6cqh 1.2cqw;
  border-radius: var(--radius);
  background: var(--beige);
  box-shadow: 0 20px 40px -28px rgba(46, 28, 18, 0.5);
}

.lp-svg {
  display: block;
  height: 100%;
  width: auto;
  overflow: visible;
}

.lp-zone {
  stroke: none;
  opacity: 0;
  cursor: pointer;
  transition: fill 0.3s var(--ease);
}

.lp-zone--bar    { fill: rgba(185, 138, 94, 0.2); }
.lp-zone--tree   { fill: rgba(163, 154, 140, 0.24); }
.lp-zone--deck   { fill: rgba(251, 248, 242, 0.6); }
.lp-zone--lounge { fill: rgba(163, 154, 140, 0.14); }
.lp-zone.is-hot  { fill: rgba(185, 138, 94, 0.5); }

.lp-covered { pointer-events: none; opacity: 0; }
.lp-hatch-line { stroke: rgba(74, 46, 31, 0.28); stroke-width: 1.2; }

.lp-outline,
.lp-divider {
  fill: none;
  stroke: var(--wood);
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  pointer-events: none;
}

.lp-outline { stroke-width: 2.2; }
.lp-divider { stroke-width: 1; stroke-opacity: 0.55; }

.lp-counter {
  fill: none;
  stroke: var(--wood);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lp-stool,
.lp-chair,
.lp-round,
.lp-table,
.lp-sofa,
.lp-service,
.lp-stage,
.lp-hut,
.lp-hut-core {
  fill: var(--off-white);
  stroke: var(--wood);
  stroke-width: 1.1;
}

.lp-chair { stroke-width: 0.9; }
.lp-service { fill: rgba(74, 46, 31, 0.12); }
.lp-stage { fill: rgba(185, 138, 94, 0.45); }
.lp-hut { fill: rgba(185, 138, 94, 0.3); stroke-dasharray: 2 1.6; }
.lp-hut-core { fill: var(--wood); stroke: none; }
.lp-canopy { fill: rgba(185, 138, 94, 0.22); stroke: rgba(185, 138, 94, 0.6); stroke-width: 0.8; stroke-dasharray: 3 4; }

.lp-bridge-arrow,
.lp-walk-arrow {
  fill: none;
  stroke: var(--tan);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lp-walk circle { fill: rgba(74, 46, 31, 0.45); }

.lp-dim { fill: none; stroke: var(--driftwood, #A39A8C); stroke-width: 0.8; }
.lp-reef { fill: none; stroke: #A39A8C; stroke-width: 1; }

.lp-dim-label,
.lp-edge-label,
.lp-nexus,
.lp-small,
.lp-title {
  pointer-events: none;
  fill: var(--wood);
}

.lp-dim-label {
  font-family: var(--font-body);
  font-size: 7px;
  fill: #857b6d;
  text-anchor: middle;
  letter-spacing: 0.04em;
}

.lp-edge-label {
  font-family: var(--font-body);
  font-size: 7.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-anchor: middle;
}

.lp-nexus {
  font-family: var(--font-body);
  font-size: 7px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-anchor: middle;
  fill-opacity: 0.45;
}

.lp-small {
  font-family: var(--font-body);
  font-size: 7.3px;
  letter-spacing: 0.01em;
  fill-opacity: 0.9;
}

.lp-title {
  font-family: var(--font-heading);
  font-size: 12px;
}

.lp-title--sm { font-size: 10.5px; }
.lp-mid { text-anchor: middle; }
.lp-covered-label { font-style: italic; }

/* Draw sequence: outline, zones one by one, furniture, labels */
.slide--layout .lp-pop {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
}

.slide--layout .lp-counter,
.slide--layout .lp-canopy,
.slide--layout .lp-bridge-arrow,
.slide--layout .lp-edge,
.slide--layout text { opacity: 0; }

.slide--layout.is-active .lp-outline,
.slide--layout.is-active .lp-divider {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.45s;
}

.slide--layout.is-active .lp-zone {
  opacity: 1;
  transition: opacity 0.6s var(--ease) var(--zd, 1.1s), fill 0.3s var(--ease);
}

.lp-zone--tree   { --zd: 1.35s; }
.lp-zone--deck   { --zd: 1.6s; }
.lp-zone--lounge { --zd: 1.85s; }

.slide--layout.is-active .lp-covered {
  opacity: 1;
  transition: opacity 0.6s var(--ease) 1.85s;
}

.slide--layout.is-active .lp-counter,
.slide--layout.is-active .lp-canopy {
  opacity: 1;
  transition: opacity 0.5s var(--ease) 2.15s;
}

.slide--layout.is-active .lp-pop {
  transform: none;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 2.25s;
}

.slide--layout.is-active .lp-edge,
.slide--layout.is-active .lp-bridge-arrow,
.slide--layout.is-active text {
  opacity: 1;
  transition: opacity 0.7s var(--ease) 2.7s;
}

.slide--layout.is-leaving .lp-outline,
.slide--layout.is-leaving .lp-divider { stroke-dashoffset: 0; }
.slide--layout.is-leaving .lp-zone,
.slide--layout.is-leaving .lp-covered,
.slide--layout.is-leaving .lp-counter,
.slide--layout.is-leaving .lp-canopy,
.slide--layout.is-leaving .lp-edge,
.slide--layout.is-leaving .lp-bridge-arrow,
.slide--layout.is-leaving text { opacity: 1; }
.slide--layout.is-leaving .lp-pop { transform: none; }

/* Zone cards */
.zone-cards {
  grid-column: 2;
  grid-row: 2;
  list-style: none;
  min-height: 0;
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 1.3cqh;
}

.zone-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 1.4cqw;
  min-height: 0;
  padding: 1.2cqh 1.4cqw;
  border-radius: var(--radius);
  background: var(--off-white);
  border: 1px solid transparent;
  box-shadow: 0 12px 26px -22px rgba(46, 28, 18, 0.5);
  cursor: default;
  outline: none;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.zone-card.is-hot,
.zone-card:focus-visible {
  background: #F6EBDD;
  border-color: var(--tan);
  box-shadow: 0 16px 30px -20px rgba(185, 138, 94, 0.7);
}

.zone-card__num {
  align-self: start;
  padding-top: 0.2em;
  font-size: clamp(8px, 0.85cqw, 16px);
  letter-spacing: 0.14em;
  color: var(--tan);
  font-variant-numeric: tabular-nums;
}

.zone-card__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(10px, 1.4cqw, 27px);
  line-height: 1.1;
  color: var(--wood);
}

.zone-card__body {
  margin-top: 0.6cqh;
  font-size: clamp(8px, 0.92cqw, 18px);
  line-height: 1.5;
  color: rgba(74, 46, 31, 0.76);
}

.zone-card__thumb {
  display: block;
  width: 8.6cqw;
  height: 100%;
  max-height: 11cqh;
  object-fit: cover;
  border-radius: calc(var(--radius) * 0.6);
}

/* Image box used by the sliders and collage cards */
.media { position: relative; border-radius: var(--radius); }

/* --------------------------------------------------------------------------
   Slide 8: The Rest of the Space (tabbed before/after gallery)
   -------------------------------------------------------------------------- */
.slide--rest {
  background: var(--sand);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  row-gap: 2.6cqh;
  padding: calc(var(--pad-y) + 0.5cqh) var(--pad-x) 13.5cqh;
}

/* Grid, not flex: the intro gets its own capped column plus extra right
   padding, so it always wraps inside the slide */
.rs__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 33cqw);
  column-gap: 4cqw;
  align-items: end;
  padding-right: 2cqw;
}

.rs__label,
.ro__label {
  font-size: clamp(8px, 0.95cqw, 18px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tan);
}

.rs__label .sep,
.ro__label .sep,
.fv__label .sep {
  display: inline-block;
  margin: 0 0.9em;
  opacity: 0.7;
}

.rs__heading,
.ro__heading {
  margin-top: 1.8cqh;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 3.1cqw;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--wood);
}

.rs__intro {
  min-width: 0;
  overflow-wrap: break-word;
  font-size: clamp(9px, 1.02cqw, 20px);
  line-height: 1.6;
  color: rgba(74, 46, 31, 0.78);
  padding-bottom: 0.4cqh;
}

.rs-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.6cqw;
}

.rs-tab {
  appearance: none;
  flex: none;
  cursor: pointer;
  padding: 0.65em 1.4em 0.6em;
  border: 1px solid var(--tan);
  border-radius: 999px;
  background: transparent;
  color: var(--wood);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(9px, 0.85cqw, 16px);
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.rs-tab:hover { background: rgba(185, 138, 94, 0.12); }

.rs-tab.is-active {
  background: var(--wood);
  border-color: var(--wood);
  color: var(--off-white);
}

.rs-tab:focus-visible { outline: 2px solid var(--tan); outline-offset: 2px; }

.rs-panels {
  position: relative;
  min-height: 0;
}

.rs-panel {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 58fr 42fr;
  column-gap: 3.4cqw;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0s linear 0.5s;
}

.rs-panel.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s var(--ease), visibility 0s;
}

/* Portrait (3:4) sliders at full height; the lounge's two fill the width */
.rs-media {
  height: 100%;
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.rs-media--duo { gap: 1.6cqw; }

.media--tall {
  height: 100%;
  aspect-ratio: 3 / 4;
  box-shadow: 0 30px 60px -28px rgba(46, 28, 18, 0.55), 0 4px 12px rgba(46, 28, 18, 0.08);
}

.media--landscape { aspect-ratio: 4 / 3; max-width: 100%; }

.ba--fill {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  max-height: none;
  box-shadow: none;
}

.rs-duo__col {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 1cqh;
}

.rs-duo__label {
  font-size: clamp(8px, 0.78cqw, 15px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tan);
}

.rs-duo__col .media--tall { height: calc(100% - 1cqh - 1.4em); }

/* Text sits at the top of the panel, level with the slider, not centred */
.rs-text {
  align-self: start;
  min-width: 0;
  padding-top: 1.2cqh;
}

.rs-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 2.5cqw;
  line-height: 1.05;
  color: var(--wood);
}

.rs-body {
  margin-top: 1.8cqh;
  max-width: 32cqw;
  font-size: clamp(9px, 1.05cqw, 20px);
  line-height: 1.62;
  color: rgba(74, 46, 31, 0.8);
}

.rs-pills {
  list-style: none;
  margin-top: 2.8cqh;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6cqw;
}

/* --------------------------------------------------------------------------
   Slide 9: Rollout & Next Steps
   -------------------------------------------------------------------------- */
.slide--rollout {
  background: var(--off-white);
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  row-gap: 3.4cqh;
  padding: calc(var(--pad-y) + 0.5cqh) var(--pad-x) 13.5cqh;
}

.timeline { position: relative; }

.timeline__line {
  position: absolute;
  left: calc(100% / 6);
  right: calc(100% / 6);
  top: calc(0.6cqw - 1px);
  height: 2px;
  background: var(--tan);
  transform-origin: left center;
  transform: scaleX(0);
}

.slide.is-active .timeline__line {
  transform: none;
  transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1) 0.6s;
}

.slide.is-leaving .timeline__line { transform: none; }

.phases {
  position: relative;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2cqw;
}

.phase {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phase__node {
  width: 1.2cqw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--off-white);
  border: 2px solid var(--tan);
  margin-bottom: 2.2cqh;
}

.phase__card {
  width: 100%;
  padding: 1.7cqw 1.8cqw 1.8cqw;
  border-radius: var(--radius);
  background: var(--sand);
  box-shadow: 0 18px 36px -26px rgba(46, 28, 18, 0.5);
  opacity: 0;
  transform: translateY(3cqh) scale(0.96);
}

.slide.is-active .phase__card {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.7s cubic-bezier(0.34, 1.4, 0.64, 1);
  transition-delay: calc(1.3s + var(--n, 0) * 0.25s);
}

.slide.is-leaving .phase__card { opacity: 1; transform: none; }

.phase__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1cqw;
}

.phase__num {
  font-family: var(--font-heading);
  font-size: 3.6cqw;
  line-height: 0.9;
  color: var(--tan);
}

.phase__thumb {
  flex: none;
  width: 8.8cqw;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: calc(var(--radius) * 0.6);
}

.phase__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phase__title {
  margin-top: 1.6cqh;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.75cqw;
  color: var(--wood);
}

.phase__list {
  list-style: none;
  margin-top: 1.2cqh;
  display: grid;
  gap: 0.7cqh;
}

.phase__list li {
  position: relative;
  padding-left: 1.2cqw;
  font-size: clamp(8px, 0.95cqw, 18px);
  line-height: 1.45;
  color: rgba(74, 46, 31, 0.8);
}

.phase__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.6cqw;
  height: 1px;
  background: var(--tan);
}

.ro-panel {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  column-gap: 4cqw;
  padding: 2.8cqh 3cqw 3cqh;
  border-radius: var(--radius);
  background: var(--wood);
  color: var(--off-white);
  box-shadow: 0 24px 50px -30px rgba(46, 28, 18, 0.7);
  opacity: 0;
  transform: translateY(6cqh);
}

.slide.is-active .ro-panel {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease-out) 2.2s, transform 1s var(--ease-out) 2.2s;
}

.slide.is-leaving .ro-panel { opacity: 1; transform: none; }

.ro-panel__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.9cqw;
  color: var(--off-white);
}

.ro-steps {
  list-style: none;
  margin-top: 1.6cqh;
  display: grid;
  gap: 0.8cqh;
  font-size: clamp(8px, 1cqw, 19px);
  line-height: 1.45;
  color: rgba(251, 248, 242, 0.85);
}

.ro-steps span {
  display: inline-block;
  min-width: 1.4em;
  color: var(--tan);
}

.ro-panel__col--contact {
  padding-left: 4cqw;
  border-left: 1px solid rgba(251, 248, 242, 0.15);
}

.ro-email {
  display: inline-block;
  margin-top: 1.6cqh;
  font-size: clamp(10px, 1.25cqw, 24px);
  letter-spacing: 0.02em;
  color: var(--tan);
  text-decoration: none;
  border-bottom: 1px solid rgba(185, 138, 94, 0.45);
  padding-bottom: 0.15em;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.ro-email:hover { color: var(--beige); border-color: var(--beige); }
.ro-email:focus-visible { outline: 2px solid var(--tan); outline-offset: 3px; }

/* --------------------------------------------------------------------------
   Slide 10: The Final Vision
   -------------------------------------------------------------------------- */
.slide--vision {
  /* Bottom clearance for the presenter controls */
  --title-bottom: 5.4cqh;
  background:
    radial-gradient(120% 90% at 50% 40%, rgba(46, 28, 18, 0) 50%, rgba(30, 18, 11, 0.5) 100%),
    var(--wood);
  color: var(--off-white);
  display: grid;
  grid-template-columns: 42fr 58fr;
  grid-template-rows: minmax(0, 64fr) minmax(0, 36fr);
  column-gap: 3.6cqw;
  row-gap: 1.6cqh;
  padding: var(--pad-y) var(--pad-x) calc(var(--title-bottom) + 8.5cqh);
}

.fv__text {
  grid-column: 1;
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.fv__label {
  font-size: clamp(8px, 0.95cqw, 18px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tan);
}

.fv__heading {
  margin-top: 2cqh;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 2.85cqw;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--off-white);
  text-wrap: balance;
}

.fv__body {
  margin-top: 2cqh;
  font-size: clamp(9px, 1cqw, 19px);
  line-height: 1.62;
  color: rgba(251, 248, 242, 0.75);
}

.pillars {
  list-style: none;
  margin-top: 2.4cqh;
}

.pillar {
  display: grid;
  grid-template-columns: 2.4cqw minmax(0, 1fr);
  column-gap: 0.8cqw;
  padding: 1.05cqh 0;
  border-top: 1px solid rgba(185, 138, 94, 0.4);
}

.pillar:last-child { border-bottom: 1px solid rgba(185, 138, 94, 0.4); }

.pillar__num {
  padding-top: 0.3em;
  font-size: clamp(8px, 0.8cqw, 15px);
  letter-spacing: 0.12em;
  color: var(--tan);
}

.pillar__title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(10px, 1.3cqw, 25px);
  color: var(--off-white);
}

.pillar__text {
  margin-top: 0.3cqh;
  font-size: clamp(8px, 0.9cqw, 17px);
  line-height: 1.45;
  color: rgba(251, 248, 242, 0.7);
}

.fv__tagline {
  margin-top: 2.2cqh;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 2cqw;
  color: var(--tan);
}

.fv-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(251, 248, 242, 0.06);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7), 0 6px 16px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: scale(0.94);
}

.slide.is-active .fv-card {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.9s var(--ease-out),
    transform 1.1s var(--ease-out);
  transition-delay: calc(0.3s + var(--c, 0) * 0.18s);
}

.slide.is-leaving .fv-card { opacity: 1; transform: none; }

.fv-card--night { grid-column: 2; grid-row: 1; }

.fv-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fv-card--night img { transform-origin: 55% 45%; }

.slide.is-active .fv-card--night img {
  animation: fv-kenburns 28s ease-in-out 1s infinite alternate both;
}

@keyframes fv-kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.09); }
}

.fv__row {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2cqw;
  min-height: 0;
}

.fv-tag {
  position: absolute;
  z-index: 1;
  left: clamp(8px, 1cqw, 20px);
  bottom: clamp(8px, 1cqw, 20px);
  padding: 0.55em 1.1em 0.5em;
  border-radius: 999px;
  background: var(--off-white);
  color: var(--wood);
  font-size: clamp(8px, 0.78cqw, 15px);
  letter-spacing: 0.08em;
  box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.5);
}

@keyframes rs-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}


/* --------------------------------------------------------------------------
   Presenter controls
   -------------------------------------------------------------------------- */
.controls {
  position: absolute;
  z-index: 10;
  right: calc(var(--pad-x) - 0.6cqw);
  bottom: calc(5.4cqh + 1.6cqh);
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 6px;
  border-radius: 999px;
  color: var(--off-white);
  background: rgba(46, 28, 18, 0.34);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(251, 248, 242, 0.14);
  transition: opacity 0.5s var(--ease), color 0.4s var(--ease), background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.stage[data-theme="light"] .controls,
.stage[data-theme="split"] .controls {
  color: var(--wood);
  background: rgba(251, 248, 242, 0.55);
  border-color: rgba(74, 46, 31, 0.14);
}

.stage.is-idle .controls {
  opacity: 0;
  pointer-events: none;
}

.stage.is-idle { cursor: none; }

.ctrl {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  width: clamp(30px, 2.2cqw, 42px);
  height: clamp(30px, 2.2cqw, 42px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), opacity 0.25s var(--ease);
}

.ctrl svg {
  width: 46%;
  height: 46%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ctrl:hover { background: rgba(251, 248, 242, 0.14); }
.stage[data-theme="light"] .ctrl:hover,
.stage[data-theme="split"] .ctrl:hover { background: rgba(74, 46, 31, 0.08); }

.ctrl:focus-visible {
  outline: 1.5px solid var(--tan);
  outline-offset: 2px;
}

.ctrl:disabled {
  opacity: 0.3;
  cursor: default;
}

.ctrl:disabled:hover { background: transparent; }

/* .ctrl sets display, which would otherwise override the hidden attribute
   (music button with no audio file, fullscreen button where unsupported) */
.ctrl[hidden] { display: none; }

.ctrl .icon-exit { display: none; }

/* Music toggle: speaker with waves when playing, crossed when off */
.ctrl .icon-music-on { display: none; }
.is-music-on .ctrl .icon-music-on { display: block; }
.is-music-on .ctrl .icon-music-off { display: none; }
.is-fullscreen .ctrl .icon-enter { display: none; }
.is-fullscreen .ctrl .icon-exit { display: block; }

.counter {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(11px, 0.85cqw, 16px);
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
  padding: 0 0.5em;
  white-space: nowrap;
}

.counter__sep {
  margin: 0 0.55em;
  opacity: 0.5;
}

.controls__divider {
  width: 1px;
  height: 45%;
  min-height: 14px;
  margin: 0 4px;
  background: currentColor;
  opacity: 0.25;
}

/* Progress bar along the very bottom */
.progress {
  position: absolute;
  z-index: 11;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(251, 248, 242, 0.12);
  pointer-events: none;
}

.stage[data-theme="light"] .progress,
.stage[data-theme="split"] .progress { background: rgba(74, 46, 31, 0.1); }

.progress__bar {
  height: 100%;
  width: 0;
  background: var(--tan);
  transition: width var(--slide-dur) var(--ease);
}

/* --------------------------------------------------------------------------
   Portrait / narrow layouts (container-based)
   -------------------------------------------------------------------------- */
@container stage (max-aspect-ratio: 1/1) {
  /* Slide 1: text on top, the hero card below */
  .slide--title {
    --title-bottom: 4.6cqh;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    row-gap: 4.5cqh;
    padding: calc(var(--pad-y) + 13cqw) var(--pad-x) calc(var(--title-bottom) + 15cqh);
  }

  .title__label { font-size: 2.7cqw; letter-spacing: 0.18em; max-width: 64cqw; line-height: 1.6; }
  .title__label .sep { display: block; height: 0; overflow: hidden; margin: 0; }

  .title__text { align-self: start; }
  .title__lede { margin-top: 2.6cqh; }
  .title__logo img { width: 88%; max-width: none; }
  .tagline { font-size: 5.2cqw; }
  .tagline::before { width: 7cqw; margin-right: 2.4cqw; }
  .title__intro { margin-top: 1.4cqh; max-width: none; font-size: 3.5cqw; line-height: 1.5; }

  .title-card { border-radius: 18px; }
  .title-card__tag { font-size: 2.7cqw; left: 2.6cqw; bottom: 2.6cqw; }

  /* Stacked above the controls pill so the two never collide */
  .hint { font-size: 2.8cqw; bottom: calc(var(--title-bottom) + 9.4cqh); }


  .controls { bottom: calc(4.6cqh + 1.2cqh); }


  /* Slide 2: photos on top, brown panel below */
  .slide--opportunity {
    grid-template-columns: 1fr;
    grid-template-rows: 44fr 56fr;
  }
  .opp__collage { order: -1; }
  .opp__panel { align-items: flex-start; box-shadow: 0 -18px 50px -30px rgba(46, 28, 18, 0.6); }
  .opp__panel-inner { padding: 5.5cqw var(--pad-x) calc(4.6cqh + 5cqh + 12px); }
  .opp__label { font-size: 2.7cqw; }
  .opp__heading { margin-top: 1.8cqh; font-size: 7.4cqw; }
  .opp__lede { margin-top: 1.8cqh; max-width: none; font-size: 3.35cqw; line-height: 1.5; }
  .opp__callouts { margin-top: 2.6cqh; gap: 1.8cqh; }
  .callout { padding-left: 3.4cqw; }
  .callout__title { font-size: 4.2cqw; }
  .callout__text { margin-top: 0.3cqh; font-size: 3.1cqw; line-height: 1.4; }
  .card { border-radius: 18px; }
  .tag { font-size: 2.5cqw; }
  .route-pin { width: 5.2cqw; }
  .route-end { width: 3cqw; }

  /* Slide 3: text, then before/after, then identity. Taller than a phone
     screen, so this slide scrolls vertically inside itself. */
  .slide--rebrand {
    display: block;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: calc(var(--pad-y) + 2cqw) var(--pad-x) calc(4.6cqh + 5cqh + 24px);
  }
  .slide--rebrand::-webkit-scrollbar { display: none; }
  .rb__label { font-size: 2.7cqw; }
  .rb__heading { margin-top: 1.6cqh; font-size: 8.4cqw; }
  .rb__body { margin-top: 1.6cqh; font-size: 3.5cqw; line-height: 1.55; }
  .rb__pills { margin-top: 2.2cqh; gap: 2cqw; }
  .pill { font-size: 3.1cqw; }
  .rb__compare { margin-top: 4cqh; }
  .ba { max-height: none; border-radius: 20px; }
  .ba__handle { width: 12cqw; }
  .ba__tag { font-size: 2.8cqw; top: 3cqw; }
  .ba__tag--before { left: 3cqw; }
  .ba__tag--after { right: 3cqw; }
  .rb__identity { height: auto; margin-top: 3cqh; gap: 3cqw; grid-template-rows: auto auto; }
  .identity-card { aspect-ratio: 4 / 3.3; border-radius: 20px; padding: 6cqw; }
  .identity-card__label { top: 5cqw; font-size: 2.7cqw; }
  .identity__logo { width: 72%; margin-top: 4cqw; }
  .identity-row { gap: 3cqw; }
  .mini-card { border-radius: 16px; }

  /* Slide 4: stacked, scrolls vertically inside itself; palette 3x2,
     type cards stacked, textures in a horizontal scroll row */
  .slide--identity {
    display: block;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    padding: calc(var(--pad-y) + 2cqw) var(--pad-x) calc(4.6cqh + 5cqh + 24px);
  }
  .slide--identity::-webkit-scrollbar { display: none; }
  .bi__header { display: block; }
  .bi__label { font-size: 2.7cqw; }
  .bi__heading { margin-top: 1.6cqh; font-size: 8.4cqw; }
  .bi__intro { margin-top: 1.6cqh; max-width: none; font-size: 3.5cqw; line-height: 1.55; }
  .bi__band-title { font-size: 2.6cqw; margin-bottom: 1.6cqh; }
  .bi__band { display: block; margin-top: 4cqh; }
  .swatches { grid-template-columns: repeat(3, 1fr); gap: 2.6cqw; }
  .swatch { border-radius: 18px; }
  .swatch__colour { flex: none; height: 20cqw; }
  .swatch__name { font-size: 3.7cqw; margin-top: 1.2cqh; padding: 0 2.4cqw; min-height: 0; }
  .swatch__hex { font-size: 2.6cqw; padding: 0 2.4cqw; }
  .swatch__role { font-size: 2.5cqw; padding: 0.6cqh 2.4cqw 1.4cqh; margin-top: 0.4cqh; }
  .bi__type { margin-top: 4cqh; }
  .type-cards { grid-template-columns: 1fr; gap: 3cqw; }
  .type-card { padding: 5cqw; border-radius: 18px; }
  .type-card__aa { font-size: 17cqw; }
  .type-card__name { font-size: 5cqw; padding-top: 1.6cqh; }
  .type-card__role { font-size: 3cqw; }
  .type-card__sample { font-size: 3.4cqw; }
  .type-card__sample--serif { font-size: 4.3cqw; }
  .bi__materials { margin-top: 4cqh; }
  .textures {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 3cqw;
    margin: 0 calc(-1 * var(--pad-x));
    padding: 0 var(--pad-x) 2cqw;
    scroll-padding: 0 var(--pad-x);
  }
  .textures::-webkit-scrollbar { display: none; }
  .texture { flex: 0 0 40cqw; scroll-snap-align: start; padding: 2cqw 2cqw 1.4cqh; border-radius: 18px; }
  .texture img { height: 22cqw; border-radius: 12px; }
  .texture__name { font-size: 3.9cqw; padding: 0 1cqw; }
  .texture__note { font-size: 2.8cqw; padding: 0 1cqw; }

  /* Slide 5: header, slider + toggle, plan, features; scrolls inside */
  .slide--bar {
    display: block;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    padding: calc(var(--pad-y) + 2cqw) var(--pad-x) calc(4.6cqh + 5cqh + 24px);
  }
  .slide--bar::-webkit-scrollbar { display: none; }
  .bar__label { font-size: 2.7cqw; }
  .bar__heading { margin-top: 1.4cqh; font-size: 8.4cqw; }
  .bar__compare { margin-top: 3cqh; gap: 2.4cqw; }
  .ba--wide { flex: none; aspect-ratio: 4 / 3; border-radius: 20px; }
  .daynight__btn { font-size: 2.9cqw; min-width: 20cqw; }
  .bar__side { margin-top: 4cqh; gap: 3.4cqh; }
  .plan { padding: 3.4cqw; border-radius: 20px; }
  .plan__svg { max-height: none; }
  .features { gap: 2.6cqh; }
  .feature { column-gap: 3.4cqw; }
  .feature__icon { width: 6.4cqw; }
  .feature__title { font-size: 4.6cqw; }
  .feature__text { font-size: 3.4cqw; }

  /* Slide 6: one menu page at a time with a Shakes / Bites toggle */
  .slide--menu {
    display: block;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    padding: calc(var(--pad-y) + 2cqw) var(--pad-x) calc(4.6cqh + 5cqh + 24px);
  }
  .slide--menu::-webkit-scrollbar { display: none; }
  .mc__header { padding-top: 0; }
  .mc__label { font-size: 2.7cqw; }
  .mc__heading { margin-top: 1.4cqh; font-size: 7.6cqw; }
  .mc__toggle {
    display: inline-flex;
    margin-top: 3cqh;
    gap: 3px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(251, 248, 242, 0.12);
  }
  .mc__toggle-btn {
    appearance: none;
    border: 0;
    cursor: pointer;
    min-width: 22cqw;
    padding: 0.7em 1.5em 0.65em;
    border-radius: 999px;
    background: transparent;
    color: var(--off-white);
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 2.9cqw;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
  }
  .mc__toggle-btn.is-selected { background: var(--off-white); color: var(--wood); }
  .mc__spread { display: block; padding-top: 3cqh; }
  .mc__spread[data-page="shakes"] .menu-page--bites,
  .mc__spread[data-page="bites"] .menu-page--shakes { display: none; }
  .menu-page { height: auto; width: 100%; aspect-ratio: auto; }
  .menu-page__head { padding-top: 10cqi; }
  .menu-page__foot { padding-bottom: 8cqi; }
  .slide.is-active .menu-page,
  .slide.is-leaving .menu-page { transform: none; }
  .menu-page__brand { font-size: 3.8cqi; }
  .menu-page__title { font-size: 10cqi; }
  .menu-items { grid-template-rows: none; grid-auto-rows: minmax(34cqi, auto); row-gap: 2cqi; margin-top: 5cqi; }
  .menu-item { grid-template-columns: 32cqi minmax(0, 1fr); }
  .menu-item:nth-child(even) { grid-template-columns: minmax(0, 1fr) 32cqi; }
  .menu-page--shakes .menu-item__art img { height: 38cqi; }
  .menu-page--bites  .menu-item__art img { width: 32cqi; }
  .menu-item__name { font-size: 5cqi; }
  .menu-item__desc { font-size: 3.9cqi; -webkit-line-clamp: 4; }
  .menu-page__foot { margin-top: 5cqi; font-size: 3cqi; }
  .mc__open { position: static; translate: none; display: block; margin: 4cqh auto 0; font-size: 2.9cqw; }
  .menu-overlay__pages { flex-direction: column; align-items: stretch; gap: 5cqw; padding: 16cqw 4cqw 8cqh; }
  .menu-overlay .menu-page { width: 100%; }
  .menu-overlay .menu-page--bites,
  .menu-overlay .menu-page--shakes { display: flex; }
  .menu-overlay__close { font-size: 2.9cqw; top: 3cqw; right: 3cqw; }

  /* Slide 7: header, plan, then the zone cards; scrolls inside */
  .slide--layout {
    display: block;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    padding: calc(var(--pad-y) + 2cqw) var(--pad-x) calc(4.6cqh + 5cqh + 24px);
  }
  .slide--layout::-webkit-scrollbar { display: none; }
  .lp__label { font-size: 2.7cqw; }
  .lp__heading { margin-top: 1.4cqh; font-size: 8cqw; }
  .lp__intro { max-width: none; font-size: 3.5cqw; line-height: 1.55; }
  .lp-card { height: auto; margin-top: 3cqh; padding: 3cqw; border-radius: 20px; }
  .lp-svg { width: 100%; height: auto; }
  .zone-cards { display: flex; flex-direction: column; margin-top: 3cqh; gap: 2.4cqw; }
  .zone-card { padding: 3.4cqw 4cqw; column-gap: 3.4cqw; border-radius: 18px; }
  .zone-card__num { font-size: 2.8cqw; }
  .zone-card__title { font-size: 5cqw; }
  .zone-card__body { font-size: 3.4cqw; }
  .zone-card__thumb { width: 22cqw; height: 22cqw; max-height: none; border-radius: 12px; }

  /* Slide 6: market cards stacked, then the approach card, columns stacked */
  .slide--market {
    display: block;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    padding: calc(var(--pad-y) + 2cqw) var(--pad-x) calc(4.6cqh + 5cqh + 24px);
  }
  .slide--market::-webkit-scrollbar { display: none; }
  .tm__label { font-size: 2.7cqw; }
  .tm__heading { margin-top: 1.4cqh; font-size: 8.2cqw; }
  .tm__markets { grid-template-columns: 1fr; gap: 3.4cqw; margin-top: 3cqh; }
  .market { grid-template-columns: 34% minmax(0, 1fr); column-gap: 4cqw; padding: 3.4cqw; border-radius: 20px; }
  .market__img { border-radius: 14px; min-height: 36cqw; }
  .market__text { padding: 1cqh 0; }
  .market__label { font-size: 2.6cqw; }
  .market__title { font-size: 7cqw; margin-top: 0.8cqh; }
  .market__body { font-size: 3.4cqw; margin-top: 1cqh; line-height: 1.5; }
  .market__pills { gap: 1.6cqw; margin-top: 1.4cqh; }
  .approach { margin-top: 3.4cqw; padding: 5cqw; border-radius: 20px; }
  .approach__label { font-size: 2.6cqw; }
  .approach__cols { grid-template-columns: 1fr; row-gap: 4cqw; margin-top: 2cqh; }
  .approach__divider { width: 100%; height: 1px; transform-origin: left center; transform: scaleX(0); }
  .approach__title { font-size: 5.4cqw; }
  .approach__body { font-size: 3.4cqw; }
  .approach__motto { font-size: 5cqw; margin-top: 3cqh; }

  /* Slides 8-10 scroll inside themselves on portrait screens */
  .slide--rest,
  .slide--rollout,
  .slide--vision {
    display: block;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    padding: calc(var(--pad-y) + 2cqw) var(--pad-x) calc(4.6cqh + 5cqh + 24px);
  }
  .slide--rest::-webkit-scrollbar,
  .slide--rollout::-webkit-scrollbar,
  .slide--vision::-webkit-scrollbar { display: none; }

  /* Slide 8: tabs scroll sideways; slider on top, text below */
  .rs__header { display: block; padding-right: 0; }
  .rs__label, .ro__label, .fv__label { font-size: 2.7cqw; }
  .rs__heading, .ro__heading { margin-top: 1.4cqh; font-size: 8.2cqw; }
  .rs__intro { margin-top: 1.6cqh; max-width: none; font-size: 3.5cqw; line-height: 1.55; }
  .rs-tabs {
    margin: 3cqh calc(-1 * var(--pad-x)) 0;
    padding: 0 var(--pad-x) 1cqh;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 2cqw;
  }
  .rs-tabs::-webkit-scrollbar { display: none; }
  .rs-tab { font-size: 3.1cqw; }
  .rs-panels { margin-top: 2.4cqh; }
  .rs-panel { position: static; display: none; }
  .rs-panel.is-active { display: block; animation: rs-fade 0.45s var(--ease); }
  .rs-media, .rs-media--duo { height: auto; flex-direction: column; gap: 3.4cqw; }
  .media--tall, .rs-duo__col .media--tall { height: auto; width: 100%; border-radius: 20px; }
  .rs-duo__col { height: auto; gap: 1.4cqw; }
  .rs-duo__label { font-size: 2.6cqw; }
  .rs-text { margin-top: 4cqw; }
  .rs-title { font-size: 6.4cqw; }
  .rs-body { max-width: none; margin-top: 1.4cqh; font-size: 3.5cqw; }
  .rs-pills { margin-top: 2cqh; gap: 2cqw; }

  /* Slide 9: phases stack with a vertical line */
  .timeline { margin-top: 3cqh; }
  .timeline__line {
    left: calc(1.8cqw + 1px);
    right: auto;
    top: 2cqw;
    bottom: 2cqw;
    width: 2px;
    height: auto;
    transform-origin: center top;
    transform: scaleY(0);
  }
  .slide.is-active .timeline__line { transform: none; }
  .phases { grid-template-columns: 1fr; gap: 3cqw; }
  .phase { flex-direction: row; align-items: flex-start; gap: 3cqw; }
  .phase__node { flex: none; width: 4cqw; margin: 3cqw 0 0; }
  .phase__card { flex: 1; padding: 4.4cqw; border-radius: 20px; }
  .phase__num { font-size: 10cqw; }
  .phase__thumb { width: 26cqw; border-radius: 12px; }
  .phase__title { font-size: 5.4cqw; }
  .phase__list li { font-size: 3.4cqw; padding-left: 3.6cqw; }
  .phase__list li::before { width: 2cqw; }
  .ro-panel { grid-template-columns: 1fr; row-gap: 4cqw; margin-top: 4cqh; padding: 5cqw; border-radius: 20px; }
  .ro-panel__title { font-size: 6cqw; }
  .ro-steps { font-size: 3.5cqw; }
  .ro-email { font-size: 4cqw; }
  .ro-panel__col--contact { padding: 4cqw 0 0; border-left: 0; border-top: 1px solid rgba(251, 248, 242, 0.15); }

  /* Slide 10: night image, then text, then the three small images */
  .slide--vision { display: flex; flex-direction: column; }
  .fv-card--night { order: 1; flex: none; aspect-ratio: 4 / 3; border-radius: 20px; }
  .fv__text { order: 2; flex: none; min-height: auto; margin-top: 5cqw; }
  .fv__row { order: 3; flex: none; margin-top: 5cqw; gap: 2.4cqw; }
  .fv__row .fv-card { aspect-ratio: 1; border-radius: 14px; }
  .fv__heading { font-size: 8cqw; }
  .fv__body { font-size: 3.5cqw; }
  .pillar { grid-template-columns: 7cqw minmax(0, 1fr); column-gap: 2cqw; padding: 1.6cqh 0; }
  .pillar__num { font-size: 2.7cqw; }
  .pillar__title { font-size: 4.6cqw; }
  .pillar__text { font-size: 3.3cqw; }
  .fv__tagline { font-size: 6cqw; }
  .fv-tag { font-size: 2.4cqw; }

  /* Controls sit over the brown panel here */
  .stage[data-theme="split"] .controls {
    color: var(--off-white);
    background: rgba(46, 28, 18, 0.34);
    border-color: rgba(251, 248, 242, 0.14);
  }
  .stage[data-theme="split"] .ctrl:hover { background: rgba(251, 248, 242, 0.14); }
}

/* Very short landscape (phones held sideways) */
@container stage (max-height: 420px) {
  .title__label { font-size: 10px; }
  .hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  :root { --slide-dur: 0.3s; }
  .slide { transform: none !important; }
  .reveal { transform: none; }
  .slide.is-active .title-card img,
  .slide.is-active .fv-card--night img,
  .slide.is-active .hint { animation: none; }
}
