/*
 * UI layer over the live 3D river.
 * Design read: calm, trust-first counselling landing for couples; the 3D
 * world is the hero visual, the UI stays quiet and legible on top of it.
 * Dials: variance 6, motion 5 (the scene carries the motion), density 3.
 * Shape system: panels 20px radius, every interactive control is a pill.
 * One accent (teal), cool neutrals, Outfit throughout.
 */
:root {
  --font: "Outfit", system-ui, sans-serif;
  --ink: #1f2628;
  --ink-soft: #465154;
  --accent: #3d7b80;
  --accent-deep: #2f6468;
  --on-accent: #ffffff;
  --glass: rgba(250, 248, 250, 0.84);
  --glass-edge: rgba(255, 255, 255, 0.7);
  --glass-shadow: 0 24px 60px -24px rgba(78, 62, 96, 0.35);
  --chip: rgba(255, 255, 255, 0.66);
  --radius: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef2f2;
    --ink-soft: #c3cccd;
    --accent: #7cc0c4;
    --accent-deep: #9bd2d5;
    --on-accent: #10292b;
    --glass: rgba(24, 30, 34, 0.84);
    --glass-edge: rgba(255, 255, 255, 0.14);
    --glass-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6);
    --chip: rgba(24, 30, 34, 0.62);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: #e9dfe3;
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

#gl {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  display: block;
}

/* Paper grain + soft vignette over the 3D view. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(70, 50, 60, 0.2) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.45  0 0 0 0 0.45  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
  opacity: 0.5;
}

/* ---------- header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 clamp(16px, 4vw, 48px);
}
.wordmark {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark span { color: var(--accent); }

/* Menu over the scene: glass pills, dropdown of services. */
.main-nav { display: flex; align-items: center; gap: 8px; }
.nav-link, .menu summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--chip);
  border: 1px solid var(--glass-edge);
  color: var(--ink);
  font: 500 15px/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  list-style: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.menu summary::-webkit-details-marker { display: none; }
.nav-link:hover, .menu summary:hover, .menu[open] summary { background: var(--accent); color: var(--on-accent); }
.nav-link:focus-visible, .menu summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.menu { position: relative; }
.menu summary i { font-size: 13px; transition: transform 0.2s ease; }
.menu[open] summary i { transform: rotate(180deg); }
.menu ul {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 280px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border-radius: var(--radius);
  background: rgba(250, 248, 250, 0.96);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
}
.menu li a { display: block; padding: 11px 14px; border-radius: 12px; color: var(--ink); font-size: 15px; text-decoration: none; }
.menu li a:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-deep); }
@media (prefers-color-scheme: dark) { .menu ul { background: rgba(24, 30, 34, 0.96); } }

.btn-book {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font: 500 15px/1 var(--font);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease;
}
.btn-book:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-book:active { transform: scale(0.98); }
.btn-book:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }


/* Scroll cue under the hero: a small mouse with a moving wheel. */
.scroll-hint {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  color: var(--ink-soft);
  font: 500 13px/1 var(--font);
  letter-spacing: 0.02em;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.scroll-hint-mouse {
  width: 24px;
  height: 36px;
  border: 2px solid var(--accent);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-hint-mouse span {
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  animation: wheel 1.6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes wheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}
/* After the first scroll it stays as a small, faint cue in the corner. */
.scroll-hint { transition: opacity 0.4s ease, bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1), left 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.scroll-hint > span:last-child { transition: opacity 0.3s ease; }
.scroll-hint.is-compact { left: calc(100% - 48px); bottom: 12px; opacity: 0.75; transform: translateX(-50%) scale(0.85); }
.scroll-hint.is-compact .scroll-hint-mouse { background: var(--chip); }
.scroll-hint.is-compact > span:last-child { opacity: 0; }
.scroll-hint.is-hidden { opacity: 0; }

/* "Tap me" tag that follows the kangaroo in the opening shot. */
.roo-hint {
  position: fixed;
  z-index: 15;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px 7px 10px;
  border-radius: 999px;
  background: rgba(31, 38, 40, 0.82);
  color: #fff;
  font: 500 12px/1 var(--font);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  will-change: transform;
}
.roo-hint i { font-size: 15px; animation: tap 1.4s ease-in-out infinite; }
.roo-hint::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 50%;
  width: 10px;
  height: 10px;
  background: inherit;
  transform: translateY(-50%) rotate(45deg);
  border-radius: 2px;
  z-index: -1;
}
.roo-hint.is-shown { opacity: 1; }
@keyframes tap {
  0%, 100% { transform: translateY(0) rotate(-10deg); }
  50% { transform: translateY(3px) rotate(-10deg) scale(0.92); }
}

/* ---------- panels live in perspective space (GSAP moves them in z) */
.layer {
  position: fixed;
  inset: 0;
  z-index: 10;
  perspective: 1100px;
  pointer-events: none;
}
.panel {
  position: absolute;
  top: 50%;
  pointer-events: auto;
}
/* In 3D mode the panels wait hidden until GSAP brings each one in; without
   JS or WebGL they stay visible, so the copy is always readable and crawlable. */
.js-3d .panel { visibility: hidden; }

/* ---------- hero: left-aligned, the boat sits to the right */
.hero {
  left: clamp(16px, 6vw, 96px);
  max-width: 560px;
  isolation: isolate;
}
/* Soft light scrim so the copy reads over trees and water (no box edge). */
.hero::before {
  content: "";
  position: absolute;
  inset: -120px -180px -120px -200px;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(247, 242, 246, 0.94), rgba(247, 242, 246, 0.8) 60%, transparent);
  filter: blur(10px);
  pointer-events: none;
}
@media (prefers-color-scheme: dark) {
  .hero::before { background: radial-gradient(closest-side, rgba(20, 26, 30, 0.7), rgba(20, 26, 30, 0.4) 55%, transparent); }
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 5.2vw, 72px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.hero .lede {
  margin: 0 0 28px;
  max-width: 40ch;
  font-size: 19px;
  line-height: 1.5;
  color: #333d40;
}

/* ---------- story cards (frosted glass: a web approximation, not an official material) */
.card {
  width: min(460px, calc(100vw - 32px));
  padding: 30px 32px 26px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), var(--glass-shadow);
  /* No backdrop blur: cards fly through 3D space over the live WebGL view,
     and blurring the canvas behind a moving card every frame drops the
     scene to a few fps. A denser fill keeps the copy legible instead. */
}
.card.left { left: clamp(16px, 5vw, 80px); }
.card.right { right: clamp(16px, 5vw, 80px); }
.card h2 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.card p {
  margin: 0;
  max-width: 44ch;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.card .more {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: 22px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--accent);
  font-size: 18px;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.card .more:hover { background: var(--accent); color: var(--on-accent); transform: translate(2px, -2px); }
.card .more:active { transform: scale(0.96); }
.card .more:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Final card: the one place the accent fills a surface. */
.card.final {
  background: color-mix(in srgb, #3d7b80 92%, transparent);
  border-color: rgba(255, 255, 255, 0.35);
}
.card.final h2, .card.final p { color: #fff; }
.card.final .actions { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; }
.card.final .btn-book { background: #fff; color: #2f6468; }
.card.final .btn-book:hover { background: #eef5f5; }
.card.final .more { margin: 0; border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.card.final .more:hover { background: #fff; color: #2f6468; }

/* ---------- journey rail */
/* Bottom bar: start + back, the stop rail, forward. */
.journey {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
}
.j-controls { display: flex; gap: 8px; }
.j-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--glass-edge);
  border-radius: 999px;
  background: var(--chip);
  color: var(--accent-deep);
  font-size: 18px;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}
.j-btn:hover { background: var(--accent); color: var(--on-accent); }
.j-btn:active { transform: scale(0.95); }
.j-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.j-btn:disabled { opacity: 0.4; pointer-events: none; }
.minimap {
  width: min(620px, calc(100vw - 220px));
  padding: 15px 36px 30px;
  border-radius: 999px;
  background: var(--chip);
  border: 1px solid var(--glass-edge);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.j-rail { position: relative; height: 2px; border-radius: 2px; background: color-mix(in srgb, var(--accent) 22%, transparent); }
.j-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 2px; background: var(--accent); }
.j-dot {
  position: absolute;
  top: 50%;
  width: 24px;
  height: 24px;
  padding: 0;
  transform: translate(-50%, -50%) scale(0.55);
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: var(--chip);
  color: var(--on-accent);
  font: 600 11px/1 var(--font);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease;
}
.j-dot span { opacity: 0; transition: opacity 0.2s ease; }
.j-dot.is-past { background: var(--accent); }
.j-dot.is-active, .j-dot:hover, .j-dot:focus-visible { transform: translate(-50%, -50%) scale(1); background: var(--accent); outline: none; }
.j-dot.is-active span, .j-dot:hover span, .j-dot:focus-visible span { opacity: 1; }
.j-dot::after {
  content: attr(data-label);
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, 4px);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(31, 38, 40, 0.9);
  color: #fff;
  font: 500 12px/1 var(--font);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.j-dot:hover::after, .j-dot:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
/* Short stop names, always visible under the dots. */
.j-name {
  position: absolute;
  top: 14px;
  transform: translateX(-50%);
  color: var(--ink-soft);
  font: 500 11px/1 var(--font);
  white-space: nowrap;
  pointer-events: none;
  transition: color 0.25s ease;
}
.j-name.is-active { color: var(--accent-deep); font-weight: 600; }

/* ---------- progress, lightning, drops on the lens */
.progress { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; height: 2px; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); }
.scroll-track { width: 1px; }
.flash {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: #eef0ff;
  opacity: 0;
  mix-blend-mode: screen;
}
.lens {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100vw;
  height: 100dvh;
  pointer-events: none;
}

/* ---------- small screens: one column, the card docks to the bottom */
@media (max-width: 760px) {
  .site-header { height: 64px; }
  .wordmark { font-size: 17px; }
  .btn-book { padding: 10px 16px; font-size: 14px; }
  .main-nav .btn-book { display: none; }
  .nav-link, .menu summary { padding: 9px 12px; font-size: 14px; }
  .menu ul { position: fixed; left: 16px; right: 16px; top: 64px; width: auto; }
  .btn-lg { padding: 13px 22px; font-size: 15px; }
  .hero { left: 16px; right: 16px; top: 36%; }
  .hero .lede { font-size: 16px; }
  .card, .card.left, .card.right {
    left: 16px;
    right: 16px;
    top: auto;
    bottom: 16px;
    width: auto;
    padding: 22px 22px 18px;
  }
  .card h2 { font-size: 21px; }
  .card p { font-size: 15.5px; }
  .card .more { margin-top: 14px; }
  .minimap { display: none; }
  .journey { bottom: auto; top: 72px; left: auto; right: 16px; transform: none; }
  .j-btn { width: 40px; height: 40px; }
  .scroll-hint { bottom: 32px; }
}

/* Solid fallbacks when blur/transparency is unwanted or unsupported. */
@media (prefers-reduced-transparency: reduce) {
  .card, .minimap { background: #f6f7f7; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@supports not (backdrop-filter: blur(1px)) {
  .card, .minimap { background: rgba(255, 255, 255, 0.92); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-book, .card .more, .j-dot, .j-dot::after { transition: none; }
  .scroll-hint-mouse span, .roo-hint i { animation: none; }
}

/* Warm light the river dissolves into on the way to the room. */
.fade {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 55%, #fff6ea, #f6dcc4 70%, #e9c3a7);
  opacity: 0;
}

/* Clean capture mode (?clean): only the scene. */
body.clean .site-header, body.clean .layer, body.clean .journey, body.clean .scroll-hint,
body.clean .roo-hint, body.clean .progress, body.clean .lens, body.clean .sound-toggle, body.clean .tap-hint { display: none !important; }

/* Room "Tap" tags: pointer arrow below, centred over the object. */
.tap-hint { z-index: 25; border: 0; cursor: pointer; pointer-events: none; }
.tap-hint.is-shown { pointer-events: auto; }
.tap-hint:hover { background: var(--accent); }
.tap-hint:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.tap-hint::after { left: 50%; right: auto; top: auto; bottom: -4px; transform: translateX(-50%) rotate(45deg); }

/* Keyword line above the hero heading. */
/* Brand + location chip: solid enough to read over grass and water. */
.hero .eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 6px 20px -10px rgba(40, 50, 60, 0.4);
}

/* Footer: after the whole journey, over the final scene. */
.site-footer {
  position: relative;
  z-index: 25;
  background: #f4f2f4;
  border-top: 1px solid rgba(31, 38, 40, 0.1);
}
.foot-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px clamp(16px, 4vw, 48px) 120px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 32px;
}
.foot-map { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 14px; background: rgba(31, 38, 40, 0.06); }
.foot-inner p { margin: 10px 0 0; color: var(--ink-soft); }
.foot-contact { display: grid; gap: 8px; margin-top: 18px; font-style: normal; color: var(--ink-soft); font-size: 15px; }
.foot-contact a { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.foot-contact i { color: var(--accent); }
.foot-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; align-content: start; }
.foot-links a { color: var(--ink-soft); text-decoration: none; font-size: 15px; }
.foot-links a:hover, .foot-contact a:hover { color: var(--accent-deep); }
@media (prefers-color-scheme: dark) { .site-footer { background: #141a1d; } }
@media (max-width: 760px) { .foot-inner { grid-template-columns: minmax(0, 1fr); } }

/* No WebGL: a plain, readable page of the same content. */
.no-3d #gl, .no-3d .lens, .no-3d .flash, .no-3d .fade, .no-3d .journey, .no-3d .scroll-hint,
.no-3d .roo-hint, .no-3d .progress, .no-3d .scroll-track { display: none !important; }
.no-3d body { background: #f4f2f4; }
.no-3d .layer { position: static; perspective: none; display: grid; gap: 20px; max-width: 760px; margin: 0 auto; padding: 110px 16px 40px; }
.no-3d .panel, .no-3d .card.left, .no-3d .card.right { position: static; transform: none !important; visibility: visible !important; opacity: 1 !important; width: auto; }
.no-3d .hero::before { display: none; }

/* Room card sits right and low, clear of the tea table, diffuser and air
   purifier by the window on the left. */
@media (min-width: 761px) { #card-8 { top: 64%; width: min(400px, calc(100vw - 32px)); } }
@media (prefers-color-scheme: dark) {
  .hero .lede { color: var(--ink-soft); }
  .hero .eyebrow { background: rgba(20, 26, 30, 0.8); }
}
/* Wordmark on a light pill so it reads over the scene. */
.site-header .wordmark { padding: 9px 16px; border-radius: 999px; background: var(--chip); border: 1px solid var(--glass-edge); }
.wordmark span { color: var(--accent-deep); }

/* Click-to-load map placeholder. */
.map-consent {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  aspect-ratio: 16 / 10;
  padding: 16px;
  border-radius: var(--radius, 20px);
  background: linear-gradient(135deg, #e3ece9, #eef1ee);
  text-align: center;
}
.map-consent.foot-map { aspect-ratio: 4 / 3; border-radius: 14px; }
.map-load {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 14px 20px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: #2f6468;
  font: 500 16px/1.2 "Outfit", system-ui, sans-serif;
  cursor: pointer;
  box-shadow: 0 10px 30px -18px rgba(40, 50, 60, 0.45);
}
.map-load i { font-size: 22px; }
.map-load small { color: #5a6568; font-size: 12px; font-weight: 400; }
.map-load:hover { background: #2f6468; color: #fff; }
.map-load:hover small { color: #dbe9ea; }
.map-open { color: #2f6468; font-size: 14px; }
.map-frame { width: 100%; height: 100%; border: 0; border-radius: inherit; }
.map-consent:has(.map-frame) { padding: 0; }
.foot-note { margin-top: 14px !important; font-size: 13px; line-height: 1.5; opacity: 0.85; }
@media (max-width: 860px) { .foot-inner { grid-template-columns: minmax(0, 1fr); } .map-consent.foot-map { max-width: 420px; } }

/* One header: a single translucent bar; links are plain text inside it. */
.site-header {
  height: 64px;
  background: rgba(250, 248, 250, 0.42);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.site-header .wordmark { padding: 0; background: none; border: 0; }
.nav-link, .menu summary { background: none; border: 0; padding: 10px 14px; }
.nav-link:hover, .menu summary:hover, .menu[open] summary { background: rgba(255, 255, 255, 0.55); color: var(--accent-deep); }
.main-nav { gap: 2px; }
.main-nav .btn-book { margin-left: 10px; }
@media (prefers-color-scheme: dark) {
  .site-header { background: rgba(20, 26, 30, 0.5); border-bottom-color: rgba(255, 255, 255, 0.08); }
  .nav-link:hover, .menu summary:hover, .menu[open] summary { background: rgba(255, 255, 255, 0.1); }
}
@media (prefers-reduced-transparency: reduce) { .site-header { background: #f6f7f7; backdrop-filter: none; } }

/* Phones: one "Menu" dropdown instead of a row of links. */
.mobile-menu { display: none; }
@media (max-width: 760px) {
  .main-nav > .nav-link, .main-nav > .menu:not(.mobile-menu), .main-nav > .btn-book { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu summary { padding: 10px 14px; }
  .mobile-menu ul { position: fixed; left: 16px; right: 16px; top: 68px; width: auto; }
  .mm-book { background: var(--accent); color: var(--on-accent) !important; text-align: center; margin-top: 6px; }
}


/* ---------- phones: scene on top, copy docked low and compact */
@media (max-width: 760px) {
  .hero { top: auto; bottom: 28px; left: 16px; right: 16px; max-width: none; }
  .hero::before { inset: -40px -16px -28px -16px; background: linear-gradient(to top, rgba(247, 242, 246, 0.95) 55%, rgba(247, 242, 246, 0.7) 80%, transparent); filter: none; }
  .hero h1 { font-size: clamp(32px, 9.5vw, 40px); margin-bottom: 12px; }
  .hero .lede { font-size: 15.5px; margin-bottom: 18px; }
  .hero .eyebrow { font-size: 11px; padding: 6px 11px; margin-bottom: 12px; }
  .card, .card.left, .card.right { bottom: 14px; padding: 18px 18px 16px; max-height: 42dvh; overflow: auto; }
  .card h2 { font-size: 19px; margin-bottom: 8px; }
  .card p { font-size: 14.5px; line-height: 1.5; }
  .card .more { width: 38px; height: 38px; margin-top: 10px; }
  #card-8 { top: auto; width: auto; }
  /* Scroll cue: a small mouse under the journey buttons, never over a card. */
  .scroll-hint, .scroll-hint.is-compact { left: auto; right: 22px; top: 128px; bottom: auto; transform: scale(0.8); opacity: 0.8; }
  .scroll-hint > span:last-child { display: none; }
  .tap-hint, .roo-hint { font-size: 11px; }
}

/* The river scene is always a light, pastel world, so the landing keeps its
   light palette even when the device is in dark mode (light text would vanish
   over the bright water). */
:root { color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #1f2628;
    --ink-soft: #465154;
    --accent: #3d7b80;
    --accent-deep: #2f6468;
    --on-accent: #ffffff;
    --glass: rgba(250, 248, 250, 0.84);
    --glass-edge: rgba(255, 255, 255, 0.7);
    --glass-shadow: 0 24px 60px -24px rgba(78, 62, 96, 0.35);
    --chip: rgba(255, 255, 255, 0.66);
  }
  .hero::before { background: radial-gradient(closest-side, rgba(247, 242, 246, 0.94), rgba(247, 242, 246, 0.8) 60%, transparent); }
  .hero .lede { color: #333d40; }
  .hero .eyebrow { background: rgba(255, 255, 255, 0.82); }
  .site-header { background: rgba(250, 248, 250, 0.42); border-bottom-color: rgba(255, 255, 255, 0.45); }
  .nav-link:hover, .menu summary:hover, .menu[open] summary { background: rgba(255, 255, 255, 0.55); }
  .menu ul { background: rgba(250, 248, 250, 0.96); }
  .site-footer { background: #f4f2f4; }
}
@media (prefers-color-scheme: dark) and (max-width: 760px) {
  .hero::before { background: linear-gradient(to top, rgba(247, 242, 246, 0.95) 55%, rgba(247, 242, 246, 0.7) 80%, transparent); }
}

/* Mobile menu: Services opens a nested list of every service. */
.mobile-menu ul { max-height: calc(100dvh - 90px); overflow-y: auto; }
.mm-services details summary { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; border-radius: 12px; list-style: none; cursor: pointer; font-size: 15px; background: none !important; border: 0 !important; color: inherit; }
.mm-services details summary::-webkit-details-marker { display: none; }
.mm-services details[open] summary i { transform: rotate(180deg); }
.mm-services ul { position: static !important; width: auto !important; margin: 0 0 4px 10px !important; padding: 0 0 0 8px !important; border: 0 !important; box-shadow: none !important; background: none !important; max-height: none; }
.mm-services ul a { padding: 9px 12px !important; font-size: 14px; }

/* Loading screen: brand on soft river light, thin progress line. */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 50% 60%, #f6eef3, #e6dde8 70%, #d9d4e3);
  transition: opacity 0.6s ease, visibility 0.6s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader-inner { display: grid; justify-items: center; gap: 18px; }
.loader-mark { font: 500 22px/1 var(--font); letter-spacing: -0.02em; color: #1f2628; }
.loader-mark em { font-style: normal; color: #2f6468; }
.loader-bar { width: 160px; height: 3px; border-radius: 3px; background: rgba(47, 100, 104, 0.15); overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 100%; background: #3d7b80; border-radius: 3px; transform: scaleX(0.08); transform-origin: left; transition: transform 0.35s ease; }
.no-3d .loader { display: none; }

/* Sound toggle: off on arrival, bottom-left pill. */
.sound-toggle {
  position: fixed; z-index: 21; left: 20px; bottom: 30px;
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px;
  border: 1px solid var(--glass-edge); border-radius: 999px; background: var(--chip);
  color: var(--accent-deep); font: 500 13px/1 var(--font); cursor: pointer;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: background 0.2s ease, color 0.2s ease;
}
.sound-toggle i { font-size: 17px; }
.sound-toggle:hover, .sound-toggle[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.sound-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sound-toggle.is-loading i { animation: spk 1s ease-in-out infinite; }
@keyframes spk { 50% { opacity: 0.4; } }
@media (max-width: 760px) { .sound-toggle { left: 16px; top: 76px; bottom: auto; padding: 9px; } .sound-toggle span { display: none; } }
@media (prefers-reduced-motion: reduce) { .sound-toggle.is-loading i { animation: none; } }
.map-consent:has(.map-frame) { display: block; padding: 0; overflow: hidden; }
.map-frame { display: block; width: 100%; height: 100%; }

/* Logo mark beside the wordmark. */
.wordmark { display: inline-flex; align-items: center; white-space: pre; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; display: block; flex: none; margin-right: 10px; }
@media (max-width: 560px) { .brand-mark { width: 30px; height: 30px; } }

/* Brand film: video, clickable end-card links, share row. */
.film { margin: 8px 0 32px; }
.film-frame { position: relative; border-radius: var(--radius, 20px); overflow: hidden; background: #f7f0f2; aspect-ratio: 16 / 9; box-shadow: 0 24px 60px -30px rgba(60, 70, 90, 0.35); }
.film video { display: block; width: 100%; height: 100%; object-fit: contain; background: #f7f0f2; }
.film-links { position: absolute; inset: 0; pointer-events: none; }
.film-link { position: absolute; display: block; border-radius: 999px; pointer-events: none; visibility: hidden; transition: box-shadow 0.2s ease, background 0.2s ease; }
.film-link.is-on { pointer-events: auto; visibility: visible; cursor: pointer; }
.film-link.is-on:hover { background: rgba(61, 123, 128, 0.12); box-shadow: 0 0 0 2px rgba(61, 123, 128, 0.55); }
.film-link:focus-visible { outline: 3px solid #3d7b80; outline-offset: 3px; }
.film-replay { position: absolute; right: 3%; top: 5%; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border: 1px solid rgba(31, 38, 40, 0.14); border-radius: 999px; background: rgba(255, 255, 255, 0.9);
  color: #2f6468; font: 500 14px/1 var(--font); cursor: pointer; }
.film-replay:hover { background: #3d7b80; color: #fff; }
.film-replay[hidden] { display: none; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.share-label { font-size: 14px; color: var(--ink-soft); margin-right: 4px; }
.share-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border: 1px solid var(--line, rgba(31, 38, 40, 0.12));
  border-radius: 999px; background: var(--surface, #fff); color: var(--ink); font: 500 14px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease; }
.share-btn i { font-size: 17px; color: var(--accent-deep); }
.share-btn:hover { background: var(--accent); color: var(--on-accent); }
.share-btn:hover i { color: inherit; }
.share-btn:active { transform: translateY(1px); }
.share-btn[hidden] { display: none; }
.share-copy.is-done, .share-ig.is-done { background: var(--accent); color: var(--on-accent); }
.share-copy.is-done i, .share-ig.is-done i { color: inherit; }
@media (max-width: 560px) { .share-btn span { display: none; } .share-btn { padding: 10px; } .share-native span, .share-copy span, .is-done span { display: inline; } }

/* Landing: "Watch the film" chip, floating teaser and dialog. */
.hero .film-chip { display: inline-flex; align-items: center; gap: 8px; margin-left: 10px; padding: 12px 18px; border: 1px solid var(--glass-edge);
  border-radius: 999px; background: var(--chip); color: var(--accent-deep); font: 500 15px/1 var(--font); cursor: pointer; vertical-align: middle; }
.hero .film-chip i { font-size: 18px; }
.hero a.film-chip { text-decoration: none; color: inherit; }
.hero .film-chip:hover { background: var(--accent); color: var(--on-accent); }
@media (max-width: 560px) { .hero .film-chip { margin: 12px 0 0; } }
.film-teaser { position: fixed; z-index: 22; left: 20px; bottom: 84px; display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 8px;
  border: 1px solid var(--glass-edge); border-radius: 18px; background: var(--chip); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px -24px rgba(40, 50, 60, 0.45); opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease; }
.film-teaser.is-shown:not(.is-blocked) { opacity: 1; transform: none; pointer-events: auto; }
.film-teaser-open { display: flex; align-items: center; gap: 12px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.film-teaser-thumb { position: relative; width: 96px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; flex: none; }
.film-teaser-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.film-teaser-thumb i { position: absolute; inset: 0; margin: auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 15px; }
.film-teaser-text { display: grid; gap: 3px; font-size: 14px; line-height: 1.25; }
.film-teaser-text strong { font-weight: 500; }
.film-teaser-text small { color: var(--ink-soft); font-size: 12.5px; }
.film-teaser-x { align-self: flex-start; padding: 4px; border: 0; background: none; color: var(--ink-soft); cursor: pointer; font-size: 15px; line-height: 1; }
.film-teaser-x:hover { color: var(--ink); }
@media (max-width: 760px) { .film-teaser { display: none; } }
body.clean .film-teaser { display: none !important; }
.film-dialog { width: min(1100px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 20px; border: 0; border-radius: 22px;
  background: #fbf9fa; color: #1f2628; box-shadow: 0 40px 100px -30px rgba(20, 30, 40, 0.6); overflow: auto; }
.film-dialog::backdrop { background: rgba(20, 30, 34, 0.55); }
.film-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.film-dialog-head h2 { margin: 0; font: 500 clamp(17px, 2.2vw, 22px)/1.25 var(--font); }
.film-close { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(31, 38, 40, 0.12); border-radius: 50%;
  background: #fff; color: #1f2628; font-size: 18px; cursor: pointer; }
.film-close:hover { background: #3d7b80; color: #fff; }
.film-dialog .film { margin: 0; --ink: #1f2628; --ink-soft: #4a5558; --surface: #fff; --line: rgba(31, 38, 40, 0.12); }
.film-dialog-more { margin: 14px 0 0; font-size: 14px; }
.film-dialog-more a { color: #2f6468; }
@media (max-width: 560px) { .film-dialog { padding: 14px; } }

/* Footer: "Still have questions?" film strip. */
.foot-film { max-width: 1200px; margin: 0 auto; padding: 44px clamp(16px, 4vw, 48px) 8px; display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 32px; align-items: center; }
.foot-film-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 40px -26px rgba(40, 50, 60, 0.5); }
.foot-film-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.foot-film-thumb:hover img { transform: scale(1.03); }
.foot-film-thumb i { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%;
  background: #3d7b80; color: #fff; font-size: 24px; box-shadow: 0 10px 24px -10px rgba(20, 40, 44, 0.6); }
.foot-film-copy h2 { margin: 0 0 8px; font: 500 clamp(22px, 2.4vw, 28px)/1.2 var(--font); color: var(--ink); }
.foot-film-copy p { margin: 0 0 18px; max-width: 56ch; color: var(--ink-soft); line-height: 1.6; }
.foot-film-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.foot-film-actions .btn-book { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.foot-film-actions .btn-book i { font-size: 18px; }
.foot-film-more { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-deep); font-weight: 500; text-decoration: none; }
.foot-film-more:hover { text-decoration: underline; }
@media (max-width: 760px) { .foot-film { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 32px; } .foot-film-thumb { max-width: 420px; } }
/* Hero: "Book a session" and "Watch the film" sit on one line, same height. */
.hero .btn-book, .hero .film-chip { vertical-align: middle; box-sizing: border-box; height: 52px; padding-top: 0; padding-bottom: 0; }
.hero .film-chip { font-size: 16px; }
@media (max-width: 760px) { .hero .btn-book, .hero .film-chip { height: 46px; font-size: 15px; } }
.hero .film-chip { margin: 0; }
.hero .btn-book { margin-right: 10px; }
@media (max-width: 560px) { .hero .btn-book, .hero .film-chip { margin-top: 12px; } }
.foot-film-actions .btn-quiz { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border: 1.5px solid var(--accent); border-radius: 999px;
  color: var(--accent-deep); font-weight: 500; text-decoration: none; transition: background 0.2s ease, color 0.2s ease; }
.foot-film-actions .btn-quiz i { font-size: 18px; }
.foot-film-actions .btn-quiz:hover { background: var(--accent); color: var(--on-accent); }
/* Services menu: free check-in, set apart from paid services. */
.menu li.nav-free { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(31, 38, 40, 0.1); }
.free-tag { display: inline-block; margin-right: 4px; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: 0.1em; }
.foot-inner .legal-name { margin: 2px 0 0 46px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.foot-inner .legal-name span { color: var(--accent-deep); }

/* Phones: scene counter + swipe cue instead of the desktop mouse icon. */
.m-progress { display: none; }
@media (max-width: 760px), (pointer: coarse) and (max-width: 1024px) {
  .scroll-hint { display: none !important; }
  .m-progress { position: fixed; z-index: 20; top: 124px; left: 16px; display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border: 1px solid var(--glass-edge); border-radius: 999px; background: rgba(255, 255, 255, 0.86); color: var(--ink);
    font: 500 13px/1 var(--font); white-space: nowrap; pointer-events: none; box-shadow: 0 10px 24px -16px rgba(30, 40, 50, 0.45); transition: opacity 0.4s ease; }
  .m-progress i { font-size: 18px; color: var(--accent-deep); animation: m-swipe 2.4s ease-in-out infinite; }
  .m-progress i::after { content: "↑"; margin-left: 1px; font: 600 12px/1 var(--font); vertical-align: 5px; }
  .m-progress .m-step { color: var(--accent-deep); font-weight: 600; }
  .m-progress .m-name { color: var(--ink-soft); }
  .m-progress .m-tip { padding-left: 8px; border-left: 1px solid rgba(31, 38, 40, 0.15); color: var(--ink-soft); }
  .m-progress.is-known .m-tip { display: none; }
  .m-progress.is-known i { animation: none; }
  .m-progress.is-hidden, .m-progress.is-clear { opacity: 0; }
  body.clean .m-progress { display: none !important; }
}
@keyframes m-swipe { 0%, 60%, 100% { transform: translateY(0); } 72% { transform: translateY(-5px); } 84% { transform: translateY(1px); } }
@media (prefers-reduced-motion: reduce) { .m-progress i { animation: none; } }
.m-nudge { display: none; }
@media (max-width: 760px), (pointer: coarse) and (max-width: 1024px) {
  .m-nudge { position: fixed; z-index: 21; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(0.92); display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 18px 22px 16px; border-radius: 22px; background: rgba(255, 255, 255, 0.9); box-shadow: 0 24px 50px -24px rgba(30, 40, 50, 0.5);
    text-align: center; pointer-events: none; opacity: 0; transition: opacity 0.45s ease, transform 0.45s ease; }
  .m-nudge.is-shown { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  .m-nudge.is-done { display: none; }
  .m-nudge-hand { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 30px; }
  .m-nudge-hand i { animation: m-up 1.6s ease-in-out infinite; }
  .m-nudge strong { font: 600 18px/1.2 var(--font); color: var(--ink); }
  .m-nudge small { font-size: 13px; color: var(--ink-soft); }
  body.clean .m-nudge { display: none !important; }
}
@keyframes m-up { 0% { translate: 0 8px; opacity: 0; } 25% { opacity: 1; } 70% { translate: 0 -10px; opacity: 1; } 100% { translate: 0 -14px; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .m-nudge-hand i { animation: none; } }
/* Room scene card: link to the room video tour. */
.card .room-tour-chip { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent-deep); font: 500 14px/1 var(--font); text-decoration: none; }
.card .room-tour-chip i { font-size: 17px; }
.card .room-tour-chip:hover { background: var(--accent); color: var(--on-accent); }
.m-progress .m-look { display: none; padding-left: 8px; border-left: 1px solid rgba(31, 38, 40, 0.15); color: var(--accent-deep); font-weight: 600; }
.m-progress.is-room .m-look { display: inline; }
.m-progress.is-room i { animation: m-look 2.4s ease-in-out infinite; }
.m-progress.is-room i::after { content: "↔"; }
@keyframes m-look { 0%, 55%, 100% { transform: translateX(0); } 70% { transform: translateX(-4px); } 85% { transform: translateX(4px); } }

/* Lite version (no 3D) and the switch between versions. Scene pictures show
   only in the plain layout; lazy + display:none keeps them off the 3D load. */
.lite-img { display: none; }
.no-3d .lite-img { display: block; width: calc(100% + 64px); max-width: none; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin: -30px -32px 18px; }
.no-3d .card { overflow: hidden; max-height: none; }
@media (max-width: 760px) { .no-3d .lite-img { width: calc(100% + 36px); margin: -18px -18px 14px; } }
.no-3d .sound-toggle { display: none !important; }
.lite-switch { margin: 18px 0 0; font-size: 14px; }
.lite-switch a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.lite-switch a:hover { color: var(--accent-deep); }
.lite-switch .to-full, .lite .lite-switch .to-lite { display: none; }
.lite .lite-switch .to-full { display: inline-flex; }
.no-3d:not(.lite) .lite-switch { display: none; }
.loader-lite { font: 400 13px/1.3 var(--font); color: #5b6a6c; text-decoration: underline; text-underline-offset: 3px;
  opacity: 0; animation: loader-lite-in 0.4s ease 5s forwards; }
@keyframes loader-lite-in { to { opacity: 1; } }

/* Phones: two secondary chips (Russian landing) share one row, with shorter
   labels, so the hero copy covers no more of the scene than the English one. */
.chip-short { display: none; }
@media (max-width: 560px) {
  .hero .film-chip + .film-chip { margin-left: 8px; }
  .hero .film-chip:has(+ .film-chip), .hero .film-chip + .film-chip { padding: 0 14px; gap: 6px; font-size: 14px; }
  .hero .film-chip:has(+ .film-chip) .chip-long, .hero .film-chip + .film-chip .chip-long { display: none; }
  .hero .film-chip:has(+ .film-chip) .chip-short, .hero .film-chip + .film-chip .chip-short { display: inline; }
}
