/* ============================================================================
   Sensory Rooms — guided video tour / configurator
   The walkthrough video pauses at each category; the visitor chooses an option
   per stop (centred in the frame) and their picks come together at the end.
   ========================================================================== */
:root {
  --exp-bg: #14110d;
  --exp-ink: #f4efe6;
  --exp-muted: #b4ab99;
  --exp-teal: #2f7d74;
  --exp-burgundy: #b4616a;
  --exp-cream: #fffaf1;
  --exp-line: rgba(255, 250, 241, .16);
}

* { box-sizing: border-box; }
body.exp-body {
  margin: 0; overflow: hidden;
  background: var(--exp-bg); color: var(--exp-ink);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.exp-topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; padding: 16px 22px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.4), transparent);
}
.exp-topbar a { pointer-events: auto; text-decoration: none; color: var(--exp-ink); }
.exp-brand { display: flex; align-items: center; gap: 10px; font: 600 14px/1 "DM Sans", sans-serif; letter-spacing: .14em; }
.exp-brand img { height: 24px; width: auto; }
.exp-back { font: 500 13px "DM Sans", sans-serif; color: var(--exp-muted); }
.exp-back:hover { color: var(--exp-ink); }

/* --- the stage: a fixed 16:9 "screen" holds the video + composite so the whole
   frame always shows. Desktop: the screen is sized to COVER the viewport (the
   immersive full-bleed look). Phones: the stage becomes a region and the screen
   is CONTAINED in it, so nothing is ever cut; hotspots map onto the screen by
   percentage, so they track it at any size with no JS re-layout. --- */
.tour { position: fixed; inset: 0; overflow: hidden; }
.tour-stage { position: absolute; inset: 0; overflow: hidden; container-type: size; z-index: 1; }
.tour-screen {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  aspect-ratio: 16 / 9; width: max(100cqw, calc(100cqh * 16 / 9));  /* cover */
}
.tour-video, .tour-poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: var(--exp-bg);
}
.tour-poster { z-index: 0; }
.tour-video { z-index: 1; }
.tour-scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,8,6,.45) 0%, transparent 22%, transparent 55%, rgba(10,8,6,.72) 100%);
}
/* per-category composite + hotspots overlay the video inside the screen */
.tour-stage-cat { position: absolute; inset: 0; z-index: 3; }
.tour-catvis { position: absolute; inset: 0; opacity: 0; transition: opacity .42s ease; }
.tour-catvis.is-shown { opacity: 1; }

/* --- generic overlay panels --- */
.tour-layer { position: absolute; inset: 0; z-index: 3; }
.eyebrow { font: 600 11px "DM Mono", monospace; letter-spacing: .24em; text-transform: uppercase; color: var(--exp-burgundy); margin: 0; }

/* intro + outro share a centred card */
.tour-panel {
  position: absolute; inset: 0; z-index: 6; display: flex; overflow-y: auto; text-align: center; padding: 30px 24px;
  opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s ease;
  background: radial-gradient(120% 90% at 50% 45%, rgba(10,8,6,.3), rgba(10,8,6,.66));
}
.tour-panel.is-on { opacity: 1; visibility: visible; }
/* margin:auto centres the card and, on short screens, keeps it fully scrollable
   (never clipped) with the panel's top/bottom padding below it */
.tour-panel-inner { max-width: 620px; margin: auto; }
/* the compact "two modes" block on the Begin-walk intro */
.tour-intro-modes { margin: 18px auto 26px; max-width: 460px; }
.tour-intro-modes > .eyebrow { color: var(--exp-burgundy); margin: 0 0 12px; }
.tour-intro-modes-body { text-align: center; }
.tour-intro-modes-body .scm-panel { text-align: left; }
.tour-intro-modes-body .scm-voice { justify-content: center; }
.tour-panel h1 { margin: 12px 0 14px; font-family: "Playfair Display", Georgia, serif; font-weight: 500; font-size: clamp(30px, 5.2vw, 56px); line-height: 1.04; letter-spacing: -.02em; }
.tour-panel p { margin: 0 auto 26px; max-width: 520px; color: var(--exp-muted); font-size: clamp(14px, 1.7vw, 17px); line-height: 1.6; }
/* Begin-the-walk cover backdrop: the package render behind a soft scrim, with
   the intro text on a frosted card so it reads clearly over a bright image. */
.tour-panel.has-cover { background: linear-gradient(rgba(8,6,4,.32), rgba(8,6,4,.62)), var(--cover) center / cover no-repeat; }
.tour-panel.has-cover .tour-panel-inner {
  background: rgba(12,9,6,.64); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,250,241,.14); border-radius: 22px;
  padding: 22px clamp(22px, 3.5vw, 40px); box-shadow: 0 30px 80px rgba(0,0,0,.42);
}
/* keep the begin-the-walk card compact so the whole thing — modes + button —
   stays inside the viewport with breathing room below */
.tour-panel.has-cover h1 { font-size: clamp(26px, 4vw, 44px); margin: 6px 0 10px; }
.tour-panel.has-cover .tour-panel-inner > p { margin-bottom: 14px; font-size: clamp(13px, 1.5vw, 15px); }
.tour-panel.has-cover .tour-intro-modes { margin: 10px auto 16px; }
.tour-panel.has-cover .tour-intro-modes > .eyebrow { margin-bottom: 8px; }
.tour-panel.has-cover .scm.is-compact .scm-bullets { gap: 6px; }
.tour-panel.has-cover .scm.is-compact .scm-bullets li { font-size: 12px; }
.tour-panel.has-cover .scm.is-compact .scm-ic { width: 24px; height: 24px; }
.tour-panel.has-cover .scm.is-compact .scm-ic svg { width: 13px; height: 13px; }
.tour-panel.has-cover .scm.is-compact .scm-voice { margin-top: 10px; }
.tour-panel.has-cover #tour-start { padding: 12px 26px; }

/* curtain: the title card over the video's first frame as the walk begins */
.tour-curtain {
  position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; text-align: center; padding: 24px;
  opacity: 0; visibility: hidden; pointer-events: none;
  background: radial-gradient(120% 95% at 50% 46%, rgba(8,6,4,.52), rgba(8,6,4,.82));
  transition: opacity .9s ease, visibility .9s ease;
}
.tour-curtain.is-on { opacity: 1; visibility: visible; }
.tour-curtain-inner { max-width: 660px; }
.tour-curtain.is-on .tour-curtain-inner { animation: curtain-rise 1.1s ease both; }
.tour-curtain .eyebrow { color: var(--exp-burgundy); margin: 0 0 14px; }
.tour-curtain h1 { margin: 0 0 16px; font-family: "Playfair Display", Georgia, serif; font-weight: 500; font-size: clamp(34px, 6vw, 68px); line-height: 1.02; letter-spacing: -.02em; text-shadow: 0 2px 34px rgba(0,0,0,.55); }
.tour-curtain p { margin: 0 auto; max-width: 520px; color: rgba(244,239,230,.92); font-size: clamp(15px, 2vw, 20px); line-height: 1.6; text-shadow: 0 1px 18px rgba(0,0,0,.55); }
@keyframes curtain-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 14px 28px; border-radius: 999px; border: 1px solid transparent;
  font: 600 14px "DM Sans", sans-serif; text-decoration: none;
}
.btn-primary { background: var(--exp-cream); color: #171717; }
.btn-primary:hover { background: #fff; }
.btn-ghost { background: transparent; color: var(--exp-ink); border-color: var(--exp-line); }
.btn-ghost:hover { border-color: var(--exp-ink); }
.btn:disabled { opacity: .4; cursor: default; }

/* --- a category stop: the composite + hotspots (.tour-catvis) fade in/out ---
   the cart + features live in their own regions (see below). */

/* the selected option, placed in the frame at room scale.
   Size + grounding are per-category (experience.json "hero": { scale, bottom }):
   --hero-h = product height as a share of the frame; --hero-bottom grounds it. */
.tour-hero { position: absolute; inset: 0; pointer-events: none; --hero-h: min(52vh, 46vw); --hero-bottom: 7%; }
.tour-hero figure { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; height: var(--hero-h); width: auto; display: grid; place-items: center; }
.tour-hero.is-grounded figure { top: auto; bottom: var(--hero-bottom); transform: translateX(-50%); }
.tour-hero img { height: 100%; width: auto; max-width: 92vw; object-fit: contain; filter: drop-shadow(0 26px 40px rgba(0,0,0,.45)); animation: hero-in .45s ease both; }
/* pinned-to-room product: JS sets the figure's exact px box (left/top/width/height,
   matching the image's aspect); the image fills it, uncapped and undistorted */
.tour-hero.is-placed figure { top: auto; display: block; }
.tour-hero.is-placed img { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; }
/* full-frame render: a composite keyframe (room + product) that matches the video
   frame exactly; overlays the video edge-to-edge (same object-fit) and fades in */
.tour-hero.is-cover figure { position: absolute; inset: 0; left: 0; top: 0; transform: none; margin: 0; width: 100%; height: 100%; display: block; }
/* no per-image animation: the whole .tour-cat fades in/out (see above) */
.tour-hero.is-cover figure img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; filter: none; animation: none; }
/* reveal layer: a second full-frame render (e.g. shutters open, pelmet inner)
   that cross-fades in while a "reveal" feature is hovered, then fades back. */
.tour-hero.is-cover .tour-reveal { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0; z-index: 1; pointer-events: none; filter: none; animation: none; transition: opacity .5s ease; }
.tour-hero.is-cover .tour-reveal.is-on { opacity: 1; }
/* seamless product swap: the incoming (already-decoded) render fades in over
   the current one, then the old is dropped — no flash on size/colour change */
.tour-hero.is-cover figure img.tour-hero-next { position: absolute; inset: 0; z-index: 0; opacity: 0; transition: opacity .45s ease; }
.tour-hero.is-cover figure img.tour-hero-next.is-in { opacity: 1; }
.tour-hero-ph {
  width: min(46vw, 520px); height: min(34vh, 360px); border: 2px dashed rgba(255,250,241,.55); border-radius: 12px;
  background: rgba(47,125,116,.2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 10px;
}
.tour-hero-ph b { font: 600 clamp(14px,1.8vw,20px) "DM Sans", sans-serif; color: var(--exp-cream); }
.tour-hero-ph small { font: 500 10px "DM Mono", monospace; letter-spacing: .1em; color: var(--exp-muted); text-transform: uppercase; }

/* Desktop: the cart + features float over the video (bottom-left / bottom-right)
   inside their slots; phones turn the slots into real regions (responsive block
   at the end). */
.tour-info, .tour-feats-card {
  position: absolute; bottom: 112px; z-index: 6; opacity: 0; transition: opacity .42s ease;
  background: rgba(16,13,10,.62); backdrop-filter: blur(6px); border: 1px solid var(--exp-line);
  border-radius: 14px;
}
.tour-info.is-shown, .tour-feats-card.is-shown { opacity: 1; }
/* left card: unit name + size / colour selectors */
.tour-info {
  left: 28px; width: min(330px, 80vw); padding: 18px 20px;
  display: flex; flex-direction: column; gap: 16px;
}
.tour-info h3 { margin: 2px 0 0; font: 600 20px "DM Sans", sans-serif; }
/* right card: features */
.tour-feats-card { right: 28px; width: min(300px, 82vw); padding: 18px 20px; }
.tour-feats-card .eyebrow { margin-bottom: 12px; }
.tour-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
/* each row: bullet + name, with the description tucked under it and revealed on
   hover (accordion) — so the explanation shows HERE, never over the product */
.tour-feats li { display: grid; grid-template-columns: 6px 1fr; column-gap: 9px; row-gap: 3px; align-items: start; font-size: 13.5px; line-height: 1.45; color: var(--exp-ink); cursor: pointer; transition: color .2s ease; }
.tour-feats li::before { content: ""; margin-top: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--exp-teal); transition: transform .2s ease, background .2s ease; }
.tour-feats .tf-name { grid-column: 2; }
.tour-feats .tf-desc { grid-column: 2; display: none; font-size: 12px; line-height: 1.4; color: var(--exp-muted); }
.tour-feats li.is-active { color: var(--exp-cream); }
.tour-feats li.is-active::before { background: var(--exp-cream); transform: scale(1.5); }
.tour-feats li.is-active .tf-desc { display: block; animation: tf-desc-in .2s ease; }
@keyframes tf-desc-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.feats-empty { margin: 0; color: var(--exp-muted); font-size: 13px; }

/* light-glow overlays: a warm bloom pinned over a lit element (e.g. an LED
   strip) that swells when its feature is hovered — "the light responds". */
.tour-glows { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.tour-glow {
  position: absolute; transform: translate(-50%, -50%) scale(.9); border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255,216,150,.95), rgba(255,206,140,.4) 44%, rgba(255,200,130,0) 72%);
  opacity: 0; filter: blur(7px); mix-blend-mode: screen;
  transition: opacity .4s ease, transform .4s ease;
}
.tour-glow.is-active { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
/* RGB backlight: a saturated glow that cycles through the spectrum while hovered */
.tour-glow.is-rgb { background: radial-gradient(ellipse at center, rgba(90,150,255,.95), rgba(90,150,255,.4) 44%, rgba(90,150,255,0) 72%); }
.tour-glow.is-rgb.is-active { animation: glow-hue 6s linear infinite; }
@keyframes glow-hue { from { filter: blur(7px) hue-rotate(0deg); } to { filter: blur(7px) hue-rotate(360deg); } }

/* fragrance "spray": a fine mist of particles that puffs up from a dispenser
   while its feature is hovered. Positioned at the nozzle point (like a hotspot). */
.tour-sprays { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
.tour-spray { position: absolute; width: 0; height: 0; opacity: 0; transition: opacity .25s ease; }
.tour-spray.is-active { opacity: 1; }
.tour-spray i {
  position: absolute; left: 0; top: 0; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%;
  background: radial-gradient(circle, rgba(214,228,222,.8), rgba(214,228,222,0) 68%); opacity: 0;
}
.tour-spray.is-active i { animation: spray-puff 1.7s ease-out infinite; }
.tour-spray i:nth-child(1) { --sx: -28px; --sy: 58px; animation-delay: 0s; }
.tour-spray i:nth-child(2) { --sx: -6px;  --sy: 72px; animation-delay: .3s; }
.tour-spray i:nth-child(3) { --sx: 16px;  --sy: 66px; animation-delay: .12s; }
.tour-spray i:nth-child(4) { --sx: 34px;  --sy: 48px; animation-delay: .46s; }
.tour-spray i:nth-child(5) { --sx: -40px; --sy: 32px; animation-delay: .62s; }
.tour-spray i:nth-child(6) { --sx: 40px;  --sy: 28px; animation-delay: .54s; }
@keyframes spray-puff {
  0%   { opacity: 0; transform: translate(0, 0) scale(.3); }
  18%  { opacity: .75; }
  100% { opacity: 0; transform: translate(var(--sx, -20px), var(--sy, 54px)) scale(2.1); }
}

/* feature hotspots — hover circles pinned onto the product image */
.tour-hotspots { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
.tour-spot { position: absolute; transform: translate(-50%, -50%); padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; }
/* hover points are always visible; hovering one (or its list row) shows its
   description in the Features panel and, for an inner feature, its reveal image */
.tour-spot { opacity: 1; visibility: visible; pointer-events: auto; }
.spot-dot { display: block; width: 16px; height: 16px; border-radius: 50%; background: rgba(255,250,241,.95); box-shadow: 0 0 0 2px rgba(20,16,12,.5), 0 2px 6px rgba(0,0,0,.4); position: relative; transition: transform .2s ease, background .2s ease; }
.spot-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid rgba(255,250,241,.8); animation: spot-pulse 2.2s ease-out infinite; }
@keyframes spot-pulse { 0% { transform: scale(.65); opacity: .85; } 100% { transform: scale(1.7); opacity: 0; } }
.tour-spot:hover .spot-dot, .tour-spot:focus-visible .spot-dot, .tour-spot.is-active .spot-dot { background: var(--exp-teal); transform: scale(1.25); }
/* callout: above the dot by default, below when .below */
.spot-card {
  position: absolute; left: 50%; bottom: calc(100% + 14px); transform: translateX(-50%) translateY(6px);
  width: max-content; max-width: 230px; text-align: left; padding: 11px 13px; border-radius: 11px;
  background: rgba(16,13,10,.92); backdrop-filter: blur(8px); border: 1px solid var(--exp-line);
  box-shadow: 0 14px 34px rgba(0,0,0,.4); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease; z-index: 1;
}
.tour-spot.below .spot-card { bottom: auto; top: calc(100% + 14px); }
.spot-card::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: rgba(16,13,10,.92); }
.tour-spot.below .spot-card::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: rgba(16,13,10,.92); }
.tour-spot:hover .spot-card, .tour-spot:focus-visible .spot-card, .tour-spot.is-active .spot-card { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.spot-card b { display: block; font: 600 13px "DM Sans", sans-serif; color: var(--exp-cream); margin-bottom: 3px; }
.spot-card span { display: block; font-size: 12px; line-height: 1.45; color: var(--exp-muted); }
/* desktop: the floating callout is replaced by the Features-panel accordion so
   it never covers the product; it returns on small screens (no panel there) */
.spot-card { display: none; }

/* size + colour chooser (now inside the left card) */
.choose-wrap {
  display: flex; flex-direction: column; gap: 16px; align-items: stretch;
}
.choose-group { display: flex; flex-direction: column; gap: 9px; }
.choose-label { font: 600 10px "DM Mono", monospace; letter-spacing: .18em; color: var(--exp-muted); text-transform: uppercase; }
.choose-label em { color: var(--exp-cream); font-style: normal; }
.choose-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.choose-pill {
  cursor: pointer; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--exp-line);
  background: rgba(255,255,255,.04); color: var(--exp-ink); font: 500 13px "DM Sans", sans-serif;
  transition: border-color .2s ease, background .2s ease;
}
.choose-pill:hover { border-color: rgba(255,250,241,.45); }
.choose-pill.is-on { border-color: var(--exp-cream); background: var(--exp-cream); color: #171717; }
.choose-swatches { display: flex; gap: 10px; }
.choose-swatch { cursor: pointer; padding: 0; border: none; background: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.choose-swatch span { width: 26px; height: 26px; border-radius: 50%; background: var(--sw); box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset; transition: transform .15s ease; }
.choose-swatch:hover span { transform: scale(1.08); }
.choose-swatch.is-on { box-shadow: 0 0 0 2px var(--exp-cream); }

/* bottom navigation */
.tour-nav {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 8; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px calc(18px + env(safe-area-inset-bottom)); gap: 14px;
}
.tour-dots { display: flex; gap: 8px; }
.tour-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,250,241,.28); transition: background .2s ease, transform .2s ease; }
.tour-dots i.is-on { background: var(--exp-cream); transform: scale(1.25); }
.tour-dots i.is-done { background: var(--exp-teal); }

/* outro summary */
.tour-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; max-width: 640px; margin: 0 auto 26px; }
.tour-sum { background: rgba(255,255,255,.05); border: 1px solid var(--exp-line); border-radius: 12px; padding: 12px; text-align: left; display: flex; gap: 12px; align-items: center; }
.tour-sum .t { flex: none; width: 48px; height: 48px; border-radius: 8px; background: rgba(255,255,255,.06); display: grid; place-items: center; overflow: hidden; }
.tour-sum .t img { width: 100%; height: 100%; object-fit: contain; }
.tour-sum .t span { font: 600 8px "DM Mono", monospace; color: var(--exp-muted); text-align: center; padding: 2px; }
.tour-sum small { display: block; font: 600 9px "DM Mono", monospace; letter-spacing: .1em; color: var(--exp-muted); text-transform: uppercase; }
.tour-sum b { font: 600 14px "DM Sans", sans-serif; }
.tour-sum em { display: block; font-style: normal; font-size: 12px; color: var(--exp-muted); margin-top: 1px; }
.tour-cart-empty { max-width: 420px; margin: 0 auto 24px; color: var(--exp-muted); font-size: 14px; line-height: 1.5; }
.tour-outro-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.tour-restart-link { display: block; margin: 16px auto 0; background: none; border: 0; cursor: pointer; color: var(--exp-muted); font: 500 12px "DM Mono", monospace; letter-spacing: .1em; }
.tour-restart-link:hover { color: var(--exp-cream); }

/* add-to-cart button (in the left card) */
.tour-add {
  margin-top: 4px; width: 100%; cursor: pointer; padding: 11px 14px; border-radius: 10px;
  border: 1.5px solid var(--exp-cream); background: var(--exp-cream); color: #171717;
  font: 600 13px "DM Sans", sans-serif; letter-spacing: .01em; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.tour-add:hover { background: #fff; }
.tour-add.is-in { background: transparent; color: var(--exp-cream); border-color: var(--exp-line); }

/* top-right cart widget */
.exp-cart {
  position: fixed; top: 54px; right: 16px; z-index: 30; width: 232px;
  background: rgba(16,13,10,.72); backdrop-filter: blur(8px); border: 1px solid var(--exp-line);
  border-radius: 12px; padding: 10px 12px; opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.exp-cart.has-items { opacity: 1; transform: none; pointer-events: auto; }
.exp-cart-head { display: flex; align-items: center; justify-content: space-between; font: 600 10px "DM Mono", monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--exp-muted); margin-bottom: 8px; }
.exp-cart-head b { display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--exp-teal); color: #fff; font: 600 11px "DM Sans", sans-serif; }
.exp-cart ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.exp-cart li { display: flex; align-items: center; gap: 8px; }
.exp-cart .ec-line { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.exp-cart .ec-name { font: 600 12.5px "DM Sans", sans-serif; color: var(--exp-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exp-cart .ec-var { font: 500 11px "DM Mono", monospace; color: var(--exp-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exp-cart .ec-rm { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(255,255,255,.07); color: var(--exp-muted); cursor: pointer; font-size: 15px; line-height: 1; transition: background .15s ease, color .15s ease; }
.exp-cart .ec-rm:hover { background: rgba(227,73,72,.9); color: #fff; }

/* confirm / warning dialog */
.exp-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(8,6,4,.55); opacity: 0; transition: opacity .2s ease; }
.exp-modal.is-on { opacity: 1; }
.exp-modal-card { width: min(380px, 92vw); background: var(--exp-bg); border: 1px solid var(--exp-line); border-radius: 16px; padding: 24px; text-align: center; box-shadow: 0 30px 70px rgba(0,0,0,.5); }
.exp-modal-card p { margin: 0 0 18px; color: var(--exp-ink); font-size: 15px; line-height: 1.55; }
.exp-modal-card b { color: var(--exp-cream); }
.exp-modal-actions { display: flex; gap: 10px; justify-content: center; }

/* loading */
.exp-loading { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: var(--exp-bg); color: var(--exp-muted); font: 500 13px "DM Mono", monospace; letter-spacing: .14em; transition: opacity .4s ease; }
.exp-loading.is-hidden { opacity: 0; pointer-events: none; }
.exp-load-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.exp-load-inner p { margin: 0; }
.exp-load-bar { width: 220px; max-width: 60vw; height: 3px; border-radius: 3px; background: rgba(255,250,241,.14); overflow: hidden; }
.exp-load-bar > i { display: block; height: 100%; width: 0%; background: var(--exp-cream); border-radius: 3px; transition: width .25s ease; }

@keyframes cat-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes hero-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

/* ============================================================================
   Phones / small screens — lay the walk out in regions so the whole 16:9 frame
   shows with nothing overlapping or cut. Portrait: cart / video / features(+nav)
   top-to-bottom. Landscape: cart | video | features, nav along the bottom.
   The video stays at exact 16:9 (contained); hotspots, fonts and paddings
   shrink so the frame gets the most room.
   ========================================================================== */
@media (max-width: 820px), (orientation: landscape) and (max-height: 600px) {
  .exp-cart { display: none; }               /* the floating cart would overlap */
  .exp-topbar { display: none; }             /* brand/back bar would overlap the regions */
  .tour-scrim { display: none; }
  .tour-stage { position: relative; inset: auto; z-index: auto; min-width: 0; min-height: 0; background: #000; }
  .tour-screen { width: min(100cqw, calc(100cqh * 16 / 9)); }   /* contain — full frame, never cut */
  /* NB: .tour-stage-cat must keep z-index:3 so the product composite paints
     above the <video> (which sits on its own compositing layer at z-index:1);
     resetting it to auto here hid every product behind the clip. */
  /* cards flow into their regions instead of floating over the video */
  .tour-info, .tour-feats-card {
    position: static; inset: auto; bottom: auto; left: auto; right: auto;
    width: auto; max-width: none; border-radius: 0; opacity: 1;
    background: rgba(16,13,10,.9); backdrop-filter: none; border: 0;
  }
  .tour-info { gap: 8px; padding: 9px clamp(10px, 3vw, 16px); }
  .tour-info h3 { font-size: 15px; }
  .tour-info > .eyebrow { display: none; }
  .tour-feats-card { padding: 8px clamp(10px, 3vw, 16px); }
  .tour-feats-card .eyebrow { margin-bottom: 6px; font-size: 10px; }
  .tour-feats { gap: 5px; }
  .tour-feats li { font-size: 11.5px; line-height: 1.35; column-gap: 7px; }
  .tour-feats .tf-desc { font-size: 10.5px; }
  .tour-nav { position: static; inset: auto; z-index: auto; padding: 7px 14px calc(7px + env(safe-area-inset-bottom)); }
  .tour-nav .btn { padding: 8px 15px; font-size: 12px; }
  .tour-dots i { width: 6px; height: 6px; }
  /* smaller hotspots for the smaller frame; no pop-up cards (description lives
     in the features region now) */
  .spot-dot { width: 10px; height: 10px; box-shadow: 0 0 0 1.5px rgba(20,16,12,.5), 0 1px 4px rgba(0,0,0,.4); }
  .spot-dot::after { inset: -4px; border-width: 1.5px; }
  .spot-card { display: none; }
  .choose-pill { padding: 6px 11px; font-size: 12px; }
  .choose-label { font-size: 9px; letter-spacing: .12em; }
  .choose-swatch { width: 26px; height: 26px; }
  .choose-swatch span { width: 21px; height: 21px; }
  .tour-add { font-size: 12px; padding: 9px 14px; }
}

/* portrait: cart (top) / video (middle) / features (bottom) / nav.
   Rows are 1fr · auto · 1fr · auto so the video keeps an EXACT, FIXED place
   in the centre — the top and bottom regions hold the leftover space and the
   video never shifts when the colour panel shows or hides between products. */
@media (max-width: 820px) and (orientation: portrait) {
  .tour { display: grid; grid-template-rows: 1fr auto 1fr auto; }
  .tour-info-slot { grid-row: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; overflow-y: auto; }
  .tour-stage { grid-row: 2; width: 100%; aspect-ratio: 16 / 9; }
  .tour-feats-slot { grid-row: 3; min-height: 0; display: flex; align-items: stretch; }
  .tour-feats-card { flex: 1; overflow-y: auto; }
  .tour-nav { grid-row: 4; }
  /* compact horizontal cart bar */
  .tour-info { flex-flow: row wrap; align-items: center; gap: 6px 12px; }
  .tour-info h3 { flex: 1 1 100%; }
  .tour-info .choose-group { flex-flow: row wrap; align-items: center; gap: 6px 8px; }
  .tour-add { width: auto; margin: 0; }
}

/* landscape: cart | video | features, nav across the bottom */
@media (orientation: landscape) and (max-height: 600px) {
  .tour { display: grid; grid-template-columns: minmax(118px, 19%) 1fr minmax(132px, 23%); grid-template-rows: minmax(0, 1fr) auto; }
  .tour-info-slot { grid-column: 1; grid-row: 1; min-height: 0; display: flex; }
  .tour-stage { grid-column: 2; grid-row: 1; width: 100%; height: 100%; }
  .tour-feats-slot { grid-column: 3; grid-row: 1; min-height: 0; display: flex; }
  .tour-info, .tour-feats-card { flex: 1; overflow-y: auto; }
  .tour-nav { grid-column: 1 / -1; grid-row: 2; }
}

/* very short landscape (phones): trim the begin-the-walk card so it fits without
   scrolling — drop the modes preview and shrink the titles */
@media (orientation: landscape) and (max-height: 460px) {
  .tour-panel.has-cover .tour-intro-modes { display: none; }
  .tour-panel.has-cover .tour-panel-inner { padding: 16px 22px; }
  .tour-panel.has-cover h1 { font-size: clamp(22px, 5vw, 32px); margin: 4px 0 8px; }
  .tour-panel.has-cover .tour-panel-inner > p { margin-bottom: 12px; }
  .tour-curtain h1 { font-size: clamp(26px, 7vw, 46px); }
  .tour-curtain p { font-size: clamp(13px, 2.4vw, 16px); }
}

@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }
