/* Pearl Wellness · the journey: underwater hero -> surface -> the house (rooms)
   Motion follows Emil Kowalski's design-engineering standard:
   - custom ease-out for entrances/UI, ease-in-out for on-screen camera moves
   - exact transition properties (never `all`), :active press scale, hover only on hover-capable pointers
   - stagger 60-70ms, exits faster than entrances, prefers-reduced-motion = crossfades only
   Palette: deep conch pink accent, lagoon teal + Marin turquoise, sandy neutrals, a rare thin gold line. */
:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --abyss: #020b24;
  --sapphire: #04143a;
  --teal: #2a9fae;            /* lagoon teal */
  --turquoise: #3fb8c4;       /* Marin roof turquoise */
  --gold: #c9a45c;            /* rare, thin */
  --sand: #e9dcc6;
  --sand-2: #cdb89a;
  --conch: #e8737f;
  --conch-mid: #f28c8c;
  --conch-hi: #ffc2c2;
  --rose: #f4a3a8;
  --rose-deep: #ea8088;
  --blush: #fde6e4;
  --silver: #d6e1ea;
  --ink: #1e1620;             /* near-black, purple-tinted: text on light sections (never pure black) */
  --pearl: #f8f2ef;           /* pearl white: text on dark / underwater sections */
  --patina: #6fa79a;          /* brass patina beside the gold */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --label: "Unbounded", "Manrope", system-ui, sans-serif;   /* labels + nav */
}
* { box-sizing: border-box; }
html { background: var(--abyss); color: var(--silver); -webkit-text-size-adjust: 100%; }
html.in-house { overflow: hidden; }
body { margin: 0; font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 1px solid var(--conch-hi); outline-offset: 4px; border-radius: 6px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; gap: 24px;
  padding: max(18px, env(safe-area-inset-top)) clamp(18px, 4vw, 48px) 18px;
}
.nav__brand { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 24px; color: var(--blush); margin-right: auto; white-space: nowrap; }
.nav__links { display: flex; gap: clamp(16px, 2.4vw, 34px); }
.nav__links a {
  position: relative; font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgb(233 220 198 / 0.82); transition: color 200ms var(--ease-out);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0); transition: transform 220ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover { color: #fff; }
  .nav__links a:hover::after { transform: scaleX(1); }
}
.sound-toggle { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgb(233 220 198 / 0.28); transition: border-color 200ms var(--ease-out), transform 160ms var(--ease-out); }
.sound-toggle:active { transform: scale(0.94); }
.sound-toggle__bars { display: flex; gap: 2px; align-items: end; height: 12px; }
.sound-toggle__bars i { width: 2px; height: 3px; background: var(--sand); border-radius: 1px; transition: height 240ms var(--ease-out); }
.sound-toggle[aria-pressed="true"] { border-color: var(--turquoise); }
.sound-toggle[aria-pressed="true"] .sound-toggle__bars i { animation: eq 1.4s var(--ease-in-out) infinite alternate; background: var(--turquoise); }
.sound-toggle[aria-pressed="true"] .sound-toggle__bars i:nth-child(2) { animation-delay: -0.4s; }
.sound-toggle[aria-pressed="true"] .sound-toggle__bars i:nth-child(3) { animation-delay: -0.8s; }
.sound-toggle[aria-pressed="true"] .sound-toggle__bars i:nth-child(4) { animation-delay: -1.1s; }
@keyframes eq { from { height: 3px; } to { height: 12px; } }

/* nav over a light room: ink text, pearl-white glass */
.nav { transition: background-color 300ms var(--ease-out); }
.light-room .nav { background: rgb(248 242 239 / 0.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.light-room .nav__brand { color: var(--ink); }
.light-room .nav__links a { color: rgb(30 22 32 / 0.78); }
.light-room .sound-toggle { border-color: rgb(30 22 32 / 0.25); }
.light-room .sound-toggle__bars i { background: var(--ink); }
@media (hover: hover) and (pointer: fine) { .light-room .nav__links a:hover { color: var(--ink); } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 28px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #3d0d14;
  background: linear-gradient(135deg, var(--conch-hi) 0%, var(--conch-mid) 50%, var(--conch) 100%);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.35) inset, 0 10px 40px -10px rgb(232 115 127 / 0.75);
  transition: transform 160ms var(--ease-out), box-shadow 200ms var(--ease-out), filter 200ms var(--ease-out);
  user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn--small { height: 38px; padding: 0 20px; font-size: 11px; }
.btn--ghost { color: var(--sand); background: rgb(4 20 58 / 0.35); box-shadow: 0 0 0 1px rgb(233 220 198 / 0.35) inset; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn__icon { display: inline-flex; gap: 2px; align-items: end; height: 10px; }
.btn__icon i { width: 2px; background: var(--turquoise); border-radius: 1px; }
.btn__icon i:nth-child(1) { height: 5px; } .btn__icon i:nth-child(2) { height: 10px; } .btn__icon i:nth-child(3) { height: 7px; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { filter: brightness(1.06); box-shadow: 0 0 0 1px rgb(255 255 255 / 0.5) inset, 0 14px 50px -10px rgb(232 115 127 / 0.95); }
  .btn--ghost:hover { box-shadow: 0 0 0 1px var(--turquoise) inset; }
}
.link { font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sand); padding: 12px 2px; transition: color 200ms var(--ease-out); }
.link--inline { padding: 0; letter-spacing: 0.08em; text-transform: none; font-size: inherit; color: var(--turquoise); text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .link:hover { color: #fff; } }

/* circle-and-line divider (the pearl on its strand) */
.divider { display: flex; align-items: center; gap: 10px; margin: 16px 0 22px; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; max-width: 90px; background: linear-gradient(90deg, rgb(233 220 198 / 0.5), rgb(233 220 198 / 0)); }
.divider::before { transform: scaleX(-1); }
.divider i { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--gold); box-shadow: 0 0 0 3px rgb(232 115 127 / 0.18); }

/* ---------- journey ---------- */
.journey { position: relative; height: 620vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #062a5a; }
.stage__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage__layer { position: absolute; inset: 0; opacity: 0; transition: opacity 700ms var(--ease-out); }
.stage__layer canvas { display: block; width: 100%; height: 100%; }
.stage__uplook.is-ready { opacity: 1; }
.stage__exterior { opacity: var(--ext-o, 0); transition: none; }
.stage__vignette { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgb(2 11 36 / 0.5) 0%, transparent 16%), radial-gradient(120% 90% at 30% 40%, transparent 55%, rgb(2 11 36 / 0.45) 100%); }

.hero-copy {
  position: absolute; left: clamp(22px, 7vw, 120px); top: 50%; transform: translateY(-58%);
  width: min(560px, 86vw); z-index: 2;
  opacity: var(--hero-o, 1); translate: 0 var(--hero-y, 0px);
}
.wordmark {
  margin: 0; font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(54px, 7.6vw, 112px); line-height: 0.95;
  /* deep conch in the deep, pearl-blush as we rise toward the light (--rise 0..1 from app.js) */
  background: linear-gradient(180deg,
    color-mix(in oklab, #fff1ef calc(var(--rise, 0) * 100%), #e8737f) 0%,
    color-mix(in oklab, var(--rose) calc(var(--rise, 0) * 100%), #c95566) 55%,
    color-mix(in oklab, var(--rose-deep) calc(var(--rise, 0) * 100%), #a8435a) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 24px rgb(232 115 127 / 0.35)) drop-shadow(0 2px 2px rgb(2 11 36 / 0.5));
}
.subline { display: flex; align-items: center; gap: 14px; margin: 18px 0 0; font-size: clamp(12px, 1.1vw, 14px); font-weight: 500; letter-spacing: 0.46em; text-transform: uppercase; color: var(--sand); }
.subline .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--conch-mid); box-shadow: 0 0 10px var(--conch); }
.subline::after { content: ""; width: clamp(40px, 7vw, 110px); height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.lede { max-width: 440px; margin: 22px 0 0; font-size: clamp(14px, 1.1vw, 16px); line-height: 1.65; color: rgb(248 242 239 / 0.88); }
.cta { display: flex; align-items: center; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.exterior-copy {
  position: absolute; left: clamp(22px, 6vw, 100px); top: 18vh; z-index: 2; max-width: 360px;
  opacity: var(--ext-copy-o, 0); translate: 0 var(--ext-copy-y, 8px); pointer-events: none;
}
.exterior-copy.is-live { pointer-events: auto; }
.eyebrow { margin: 0; font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--turquoise); }
.exterior-copy__title { margin: 10px 0 6px; font-family: var(--serif); font-style: italic; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; color: var(--sand); text-shadow: 0 2px 20px rgb(2 11 36 / 0.6); }

.scroll-cue { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: rgb(233 220 198 / 0.6); pointer-events: none; }
.scroll-cue > * { opacity: var(--cue-o, 1); }
.scroll-cue i { width: 1px; height: 26px; overflow: hidden; position: relative; background: rgb(233 220 198 / 0.18); }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--conch); animation: cue 2.2s var(--ease-in-out) infinite; }
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(100%); } }
.sky-note { position: absolute; right: clamp(18px, 4vw, 48px); bottom: 18px; margin: 0; font-size: 10.5px; letter-spacing: 0.14em; color: rgb(233 220 198 / 0.55); opacity: var(--hero-o, 1); }

/* entrance */
[data-reveal] { opacity: 0; transform: translateY(10px); filter: blur(6px); }
.is-revealed [data-reveal] {
  opacity: 1; transform: none; filter: none;
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out), filter 700ms var(--ease-out);
  transition-delay: calc(250ms + var(--i, 0) * 70ms);
}

/* ---------- the house ---------- */
.house { position: fixed; inset: 0; z-index: 20; background: #0b0806; }
.house[hidden] { display: none; }
.room { position: absolute; inset: 0; overflow: hidden; visibility: hidden; }
.room.is-current { visibility: visible; }
.room__bg { position: absolute; inset: -3%; }
.room__bg img { width: 100%; height: 100%; object-fit: cover; translate: var(--px, 0px) var(--py, 0px); }
.room::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgb(12 8 6 / 0.82) 0%, rgb(12 8 6 / 0.55) 34%, transparent 62%), linear-gradient(0deg, rgb(12 8 6 / 0.5), transparent 30%); }
.room--terrace::after, .room--grotto::after { background: linear-gradient(90deg, rgb(2 6 18 / 0.6) 0%, transparent 40%); }
.room__panel {
  position: absolute; z-index: 2; left: clamp(20px, 6vw, 96px); top: 50%; transform: translateY(-50%);
  width: min(440px, 88vw); max-height: calc(100% - 200px); overflow: auto; color: var(--pearl);
}
/* circles soften the rectangles: a faint pearl ring behind every panel */
.room__panel::before { content: ""; position: absolute; left: -70px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgb(201 164 92 / 0.18); box-shadow: 0 0 0 26px rgb(63 184 196 / 0.035); pointer-events: none; z-index: -1; }
.room__no::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 9px; vertical-align: 1px; background: var(--conch-mid); box-shadow: 0 0 8px var(--conch); }
/* light section (atrium): sand card, ink text */
.room--light::after { background: linear-gradient(90deg, rgb(248 242 239 / 0.55) 0%, rgb(248 242 239 / 0.2) 40%, transparent 60%); }
.room--light .room__panel { color: var(--ink); padding: 34px 32px; border-radius: 220px 220px 22px 22px; background: rgb(246 238 226 / 0.9); box-shadow: 0 30px 60px -30px rgb(30 22 32 / 0.45), 0 0 0 1px rgb(201 164 92 / 0.45) inset; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.room--light .room__panel::before { display: none; }
.room--light .room__no { color: #2b7f8a; padding-top: 34px; text-align: center; }
.room--light .room__title { color: var(--ink); text-align: center; }
.room--light .room__text { color: rgb(30 22 32 / 0.82); }
.room--light .divider { justify-content: center; }
.room--light .divider::before, .room--light .divider::after { background: linear-gradient(90deg, rgb(30 22 32 / 0.35), rgb(30 22 32 / 0)); }
.paths { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; }
.paths li { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid rgb(30 22 32 / 0.12); }
.paths__dot { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--patina); background: radial-gradient(circle, var(--turquoise) 35%, transparent 40%); flex: none; }
.room[data-room="treatment"] .room__frame { top: 70px; }
.plan.is-compact svg { display: none; }
.plan__rill { fill: none; stroke: var(--turquoise); stroke-width: 1.2; stroke-linecap: round; opacity: 0.8; }
.room__panel > * { animation: panel-in 600ms var(--ease-out) both; }
.room__panel > :nth-child(2) { animation-delay: 60ms; } .room__panel > :nth-child(3) { animation-delay: 120ms; }
.room__panel > :nth-child(4) { animation-delay: 180ms; } .room__panel > :nth-child(5) { animation-delay: 240ms; } .room__panel > :nth-child(6) { animation-delay: 300ms; }
.room:not(.is-current) .room__panel > * { animation: none; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.room__no { margin: 0; font-size: 11px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--turquoise); }
.room__title { margin: 10px 0 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(36px, 4vw, 56px); line-height: 1; color: var(--pearl); }
.room__text { font-size: 15px; line-height: 1.6; color: rgb(248 242 239 / 0.88); margin: 0 0 18px; }
.room__tag { display: none; position: absolute; z-index: 3; left: 50%; bottom: 92px; transform: translateX(-50%); margin: 0; font-size: 10.5px; letter-spacing: 0.28em; text-transform: uppercase; color: rgb(233 220 198 / 0.7); pointer-events: none; }
.fine { font-size: 12px; line-height: 1.5; color: rgb(233 220 198 / 0.6); }
.room__frame { position: absolute; inset: 0; z-index: 1; }
.room__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.room__scene { position: absolute; inset: 0; }
.room__scene canvas { display: block; width: 100%; height: 100%; }
.room__scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; }
.room__sticky { position: sticky; top: 0; height: 100%; }
.room__spacer { height: 160%; }

/* booking chips */
.booking fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.booking legend { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: rgb(233 220 198 / 0.6); margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 9px 14px; border-radius: 999px; font-size: 13px; color: var(--sand); box-shadow: 0 0 0 1px rgb(233 220 198 / 0.28) inset; transition: background-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out), color 180ms var(--ease-out), transform 140ms var(--ease-out); cursor: pointer; }
.chips label:active span { transform: scale(0.97); }
.chips input:checked + span { background: rgb(232 115 127 / 0.22); box-shadow: 0 0 0 1px var(--conch-mid) inset; color: #fff; }
.chips input:focus-visible + span { outline: 1px solid var(--conch-hi); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .chips span:hover { box-shadow: 0 0 0 1px var(--turquoise) inset; } }

/* arch-masked product cards */
.products { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.products li { display: grid; gap: 4px; font-size: 13px; }
.products small { color: rgb(233 220 198 / 0.6); font-size: 11.5px; }
.arch { display: block; aspect-ratio: 3 / 4; border-radius: 999px 999px 6px 6px; overflow: hidden; box-shadow: 0 0 0 1px rgb(201 164 92 / 0.6); margin-bottom: 6px; }
.arch img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.6); transition: transform 400ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .products li:hover .arch img { transform: scale(1.7); } }

/* insurance */
.drop { position: relative; display: grid; justify-items: center; gap: 4px; text-align: center; padding: 26px 18px; border-radius: 160px 160px 14px 14px; box-shadow: 0 0 0 1px rgb(233 220 198 / 0.3) inset; cursor: pointer; transition: box-shadow 200ms var(--ease-out); }
.drop input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.drop__ring { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--gold); margin-bottom: 6px; box-shadow: 0 0 0 6px rgb(63 184 196 / 0.12); }
.drop small { color: rgb(233 220 198 / 0.6); }
.drop__preview { max-width: 100%; border-radius: 8px; margin-top: 10px; }
@media (hover: hover) and (pointer: fine) { .drop:hover { box-shadow: 0 0 0 1px var(--turquoise) inset; } }
.steps { padding-left: 18px; margin: 18px 0 8px; font-size: 13.5px; line-height: 1.55; color: rgb(233 220 198 / 0.85); }
.steps b { color: var(--blush); font-weight: 500; display: block; }

/* lounge punch card */
.strand { list-style: none; display: flex; align-items: center; gap: 0; padding: 0; margin: 4px 0 24px; }
.strand li { width: 22px; height: 22px; border-radius: 50%; position: relative; box-shadow: 0 0 0 1px rgb(233 220 198 / 0.4) inset; flex: none; }
.strand li + li { margin-left: 12px; }
.strand li + li::before { content: ""; position: absolute; right: 100%; top: 50%; width: 12px; height: 1px; background: rgb(201 164 92 / 0.7); }
.strand li.on { background: radial-gradient(circle at 35% 30%, var(--conch-hi), var(--conch-mid) 45%, var(--conch)); box-shadow: 0 0 12px rgb(232 115 127 / 0.6); }
.strand li.gift { box-shadow: 0 0 0 1px var(--gold) inset; background: radial-gradient(circle, rgb(201 164 92 / 0.35), transparent 70%); }
.guides { display: grid; gap: 12px; }
.guides article { padding: 14px 16px; border-left: 1px solid var(--gold); background: rgb(233 220 198 / 0.06); }
.guides h3 { margin: 0 0 4px; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 21px; color: var(--blush); }
.guides p { margin: 0; font-size: 13.5px; line-height: 1.5; color: rgb(233 220 198 / 0.8); }

/* office */
.login { display: grid; gap: 12px; }
.login label { display: grid; gap: 6px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgb(233 220 198 / 0.65); }
.login input { height: 46px; padding: 0 14px; border-radius: 12px; border: 0; font: inherit; font-size: 15px; letter-spacing: 0; text-transform: none; color: #fff; background: rgb(233 220 198 / 0.08); box-shadow: 0 0 0 1px rgb(233 220 198 / 0.22) inset; transition: box-shadow 180ms var(--ease-out); }
.login input:focus { outline: none; box-shadow: 0 0 0 1px var(--turquoise) inset; }
.tiles { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tiles li { padding: 16px; border-radius: 80px 80px 10px 10px; text-align: center; font-size: 13px; box-shadow: 0 0 0 1px rgb(201 164 92 / 0.5) inset; background: rgb(12 8 6 / 0.4); animation: panel-in 500ms var(--ease-out) both; }
.tiles li:nth-child(2) { animation-delay: 50ms; } .tiles li:nth-child(3) { animation-delay: 100ms; } .tiles li:nth-child(4) { animation-delay: 150ms; } .tiles li:nth-child(5) { animation-delay: 200ms; } .tiles li:nth-child(6) { animation-delay: 250ms; }

/* terrace constellation label */
.terrace-label { position: absolute; z-index: 3; left: 0; top: 0; pointer-events: none; translate: var(--lx, -999px) var(--ly, -999px); }
.terrace-label span { display: block; transform: translate(-50%, -140%); font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--conch-hi); text-shadow: 0 0 18px rgb(232 115 127 / 0.6); white-space: nowrap; opacity: 0; transition: opacity 200ms var(--ease-out); }
.terrace-label.is-on span { opacity: 1; }
.room__panel--slim { top: auto; bottom: 120px; transform: none; }

/* floor plan */
.plan {
  position: absolute; z-index: 5; right: clamp(14px, 3vw, 36px); bottom: clamp(14px, 3vh, 30px); width: 268px;
  padding: 12px 12px 10px; border-radius: 18px; background: rgb(12 8 6 / 0.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px rgb(233 220 198 / 0.14) inset, 0 20px 50px -20px rgb(0 0 0 / 0.6);
}
.plan svg { width: 100%; height: auto; display: block; }
.plan__cantilever { fill: rgb(63 184 196 / 0.12); stroke: var(--patina); stroke-width: 0.7; }   /* turquoise roof, patina edge */
.plan__room { fill: rgb(233 220 198 / 0.06); stroke: rgb(233 220 198 / 0.35); stroke-width: 0.7; transition: fill 200ms var(--ease-out), stroke 200ms var(--ease-out); }
.plan text { font-family: var(--sans); font-size: 7.2px; letter-spacing: 0.06em; fill: rgb(233 220 198 / 0.75); text-anchor: middle; pointer-events: none; }
.plan a { cursor: pointer; }
.plan a:focus-visible .plan__room { stroke: var(--conch-hi); }
@media (hover: hover) and (pointer: fine) { .plan a:hover .plan__room { fill: rgb(63 184 196 / 0.16); stroke: var(--turquoise); } }
.plan__room.is-here { fill: rgb(232 115 127 / 0.28); stroke: var(--conch-mid); }
.plan__you { fill: var(--conch-hi); filter: drop-shadow(0 0 4px var(--conch)); transition: cx 500ms var(--ease-in-out), cy 500ms var(--ease-in-out); }
.plan__bar { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.plan__name { flex: 1; text-align: center; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--blush); }
.plan__btn { min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; font-size: 13px; color: var(--sand); box-shadow: 0 0 0 1px rgb(233 220 198 / 0.25) inset; transition: box-shadow 180ms var(--ease-out), transform 140ms var(--ease-out); }
.plan__btn:active { transform: scale(0.95); }
.plan__btn--out { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; }
@media (hover: hover) and (pointer: fine) { .plan__btn:hover { box-shadow: 0 0 0 1px var(--turquoise) inset; } }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  .nav { gap: 10px; }
  .nav__links { display: none; }
  .nav__brand { font-size: 21px; }
  .hero-copy { top: auto; bottom: 86px; transform: none; }
  .cta .btn { flex: 1 1 auto; }
  .scroll-cue { display: none; }
  .sky-note { display: none; }
  .room__panel { top: 84px; transform: none; bottom: 210px; max-height: none; width: auto; right: 20px; }
  .room__panel--slim { top: auto; bottom: 200px; }
  .room::after { background: linear-gradient(180deg, rgb(12 8 6 / 0.85) 0%, rgb(12 8 6 / 0.55) 60%, rgb(12 8 6 / 0.7) 100%); }
  .products { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .plan { left: 12px; right: 12px; width: auto; bottom: 12px; }
  .plan svg { max-height: 110px; }
  .room__tag { bottom: 200px; }
}

/* ---------- reduced motion: crossfades only ---------- */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transform: none; filter: none; }
  .is-revealed [data-reveal] { transition: opacity 400ms linear; transition-delay: 0ms; }
  .scroll-cue i::after { animation: none; }
  .sound-toggle[aria-pressed="true"] .sound-toggle__bars i { animation: none; height: 8px; }
  .room__panel > *, .tiles li { animation-name: fade-only; }
  .btn:active, .chips label:active span, .plan__btn:active { transform: none; }
  .hero-copy { translate: 0 0; }
}
@keyframes fade-only { from { opacity: 0; } to { opacity: 1; } }

/* ---------- labels & nav: Unbounded (wide, so tracking comes down a touch) ---------- */
.nav__links a, .btn, .link, .subline, .eyebrow, .scroll-cue, .room__no, .room__tag, .booking legend, .login label, .plan__btn--out, .sky-note, .plan text {
  font-family: var(--label); font-weight: 400;
}
.nav__links a, .link, .eyebrow, .room__no, .booking legend, .login label { letter-spacing: 0.16em; font-size: 10.5px; }
.btn { letter-spacing: 0.1em; font-size: 11.5px; font-weight: 500; }
.subline { letter-spacing: 0.24em; font-weight: 300; }
.plan text { letter-spacing: 0.02em; font-size: 6.4px; }

/* =================================================================== the walk-through (one 3D house) */
[hidden] { display: none !important; }
.stage__world { transition: none; }
.stage__world canvas { touch-action: pan-y; }
.stage__door { position: absolute; inset: 0; pointer-events: none; opacity: 0; z-index: 1;
  background: radial-gradient(70% 70% at 50% 50%, rgb(20 12 8 / 0.15) 0%, rgb(12 7 5 / 0.85) 100%); }
.stage__door.is-cut { opacity: 1 !important; background: #0d0907; transition: opacity 240ms linear; }
.hero-copy.is-gone { pointer-events: none; visibility: hidden; }
.in-world .scroll-cue, .in-world .sky-note { display: none; }
.stage { touch-action: pan-y; }

/* glass panels anchored in each room (positioned by app.js from a 3D anchor point) */
.panels { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.panel {
  position: absolute; left: 0; top: 0; width: min(400px, 88vw); max-height: calc(100% - 150px); overflow: auto;
  visibility: hidden; opacity: 0; pointer-events: none; transform-origin: 50% 50%; will-change: transform, opacity;
  color: var(--pearl); padding: 26px 28px 24px; border-radius: 26px;
  background: linear-gradient(160deg, rgb(255 255 255 / 0.12), rgb(255 255 255 / 0.04)), rgb(24 16 22 / 0.42);
  -webkit-backdrop-filter: blur(16px) saturate(1.25); backdrop-filter: blur(16px) saturate(1.25);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.16) inset, 0 1px 0 rgb(255 255 255 / 0.22) inset, 0 30px 70px -30px rgb(0 0 0 / 0.6);
  scrollbar-width: thin;
}
.panel.is-on { pointer-events: auto; }
.panel::before { content: ""; position: absolute; right: -48px; top: -48px; width: 150px; height: 150px; border-radius: 50%;
  border: 1px solid rgb(201 164 92 / 0.28); box-shadow: 0 0 0 18px rgb(63 184 196 / 0.04); pointer-events: none; }
.panel::after { content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgb(201 164 92 / 0.8), transparent); }
.panel .room__title { font-size: clamp(32px, 3.2vw, 46px); }
.panel .room__text { color: rgb(248 242 239 / 0.86); }
.panel--slim { width: min(360px, 88vw); }
.panel--bare { background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; }
.panel--bare::before, .panel--bare::after { display: none; }
.panel--light { color: var(--ink); padding: 30px 28px 24px; border-radius: 210px 210px 24px 24px; background: rgb(246 238 226 / 0.86);
  box-shadow: 0 30px 60px -30px rgb(30 22 32 / 0.5), 0 0 0 1px rgb(201 164 92 / 0.5) inset; }
.panel--light::before { display: none; }
.panel--light::after { left: 30%; right: 30%; }
.panel--light .room__no { color: #2b7f8a; padding-top: 30px; text-align: center; }
.panel--light .room__title { color: var(--ink); text-align: center; }
.panel--light .room__text { color: rgb(30 22 32 / 0.82); }
.panel--light .divider { justify-content: center; }
.panel--light .divider::before, .panel--light .divider::after { background: linear-gradient(90deg, rgb(30 22 32 / 0.35), rgb(30 22 32 / 0)); }
.panel.is-on .panel__inner > * { animation: panel-in 620ms var(--ease-out) both; }
.panel.is-on .panel__inner > *:nth-child(2) { animation-delay: 50ms; } .panel.is-on .panel__inner > *:nth-child(3) { animation-delay: 100ms; }
.panel.is-on .panel__inner > *:nth-child(4) { animation-delay: 150ms; } .panel.is-on .panel__inner > *:nth-child(n+5) { animation-delay: 200ms; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* atlas overlay */
.atlas { position: fixed; inset: 0; z-index: 40; background: rgb(6 4 10 / 0.6); opacity: 0; transition: opacity 300ms var(--ease-out); }
.atlas.is-open { opacity: 1; }
.atlas__frame { position: absolute; inset: 64px 0 0; transform: scale(0.97); transition: transform 360ms var(--ease-out); }
.atlas.is-open .atlas__frame { transform: none; }
.atlas__frame iframe { width: 100%; height: 100%; border: 0; display: block; border-radius: 22px 22px 0 0; }
.atlas__close { position: absolute; top: 14px; right: 18px; }

/* floor plan: live position + menu */
.plan { position: absolute; z-index: 4; opacity: 0; translate: 0 12px; pointer-events: none; transition: opacity 500ms var(--ease-out), translate 500ms var(--ease-out); }
.in-world .plan { opacity: 1; translate: 0 0; pointer-events: auto; }
.plan__site { fill: rgb(63 184 196 / 0.08); stroke: var(--patina); stroke-width: 0.7; }
.plan__pool { fill: rgb(63 184 196 / 0.22); stroke: rgb(63 184 196 / 0.5); stroke-width: 0.6; }
.plan__soft { fill: rgb(233 220 198 / 0.5) !important; }
.plan__room--below { stroke-dasharray: 2 2; }
.plan__you { fill: var(--conch-hi); filter: drop-shadow(0 0 4px var(--conch)); transition: none; }
.plan__menu { list-style: none; margin: 8px 0 0; padding: 6px 0 0; border-top: 1px solid rgb(233 220 198 / 0.15); display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; }
.plan__menu button { width: 100%; text-align: left; padding: 7px 6px; border-radius: 10px; font-size: 13px; color: var(--sand); display: flex; gap: 8px; align-items: baseline; transition: background-color 160ms var(--ease-out); }
.plan__menu button span { font-family: var(--label); font-size: 9px; color: var(--turquoise); }
.plan__menu button[aria-current="true"] { color: var(--conch-hi); }
@media (hover: hover) and (pointer: fine) { .plan__menu button:hover { background: rgb(255 255 255 / 0.06); } }
.plan__menu[hidden] { display: none; }

@media (max-width: 760px) {
  .panel { left: 12px; right: 12px; top: auto; bottom: calc(150px + env(safe-area-inset-bottom)); width: auto; max-height: 46svh; padding: 20px 20px 18px; border-radius: 22px; }
  .panel--light { border-radius: 120px 120px 22px 22px; }
  .panel--bare { bottom: auto; top: 90px; }
  .panel .room__title { font-size: 30px; }
  .plan svg { max-height: 74px; }
  .atlas__frame { inset: 58px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .panel.is-on .panel__inner > * { animation-name: fade-only; animation-duration: 300ms; }
  .atlas, .atlas__frame { transition: opacity 200ms linear; transform: none; }
}
.stage__ranch { transition: none; }

/* ---------------------------------------------------------------- meditation: dimmed screen, one breathing pearl */
.meditate {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; align-content: center; gap: 18px;
  background: radial-gradient(60% 50% at 50% 46%, rgb(40 22 34 / 0.92), rgb(8 5 9 / 0.97) 70%);
  color: var(--pearl); text-align: center; opacity: 0; transition: opacity 900ms var(--ease-out);
}
.meditate.is-open { opacity: 1; }
.meditate__pearl { --k: 0.35; width: min(46vmin, 300px); aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 18px; }
.meditate__pearl i {
  display: block; width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #fff 0 6%, #f8e6e8 20%, #e9a9b4 52%, #b4637a 78%, #5a2b3e 100%);
  box-shadow: 0 0 calc(30px + 90px * var(--k)) calc(4px + 26px * var(--k)) rgb(233 150 168 / calc(0.18 + 0.32 * var(--k))),
              0 0 0 1px rgb(201 169 106 / 0.25);
  transform: scale(calc(0.72 + 0.5 * var(--k)));
  will-change: transform;
}
.meditate__phase { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: clamp(30px, 4.6vw, 48px); letter-spacing: 0.01em; min-height: 1.2em; margin: 0; }
.meditate__line { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: clamp(17px, 2vw, 21px); max-width: 30ch; min-height: 2.6em; margin: 0; color: rgb(248 242 239 / 0.72); }
.meditate__bar { position: absolute; left: 0; right: 0; bottom: max(28px, env(safe-area-inset-bottom)); display: flex; gap: 18px; justify-content: center; align-items: center; }
.meditate__time { font-family: var(--label); font-size: 11px; letter-spacing: 0.16em; color: rgb(248 242 239 / 0.6); font-variant-numeric: tabular-nums; }
.med__voice { display: flex; gap: 10px; align-items: center; font-size: 13px; margin: 6px 0 14px; }
@media (prefers-reduced-motion: reduce) {
  .meditate__pearl i { transform: none; opacity: calc(0.45 + 0.55 * var(--k)); }
  .meditate { transition: opacity 200ms linear; }
}

/* ---------------------------------------------------------------- ranch landing: line-art shell, name, Welcome */
.landing {
  --lo: 0; position: absolute; z-index: 6; top: clamp(64px, 9vh, 96px); left: clamp(20px, 4vw, 56px);
  display: flex; flex-direction: column; align-items: center; gap: 6px; width: max-content;
  opacity: var(--lo); transform: translateY(calc((1 - var(--lo)) * 10px)); pointer-events: none;
}
.landing:not([inert]) { pointer-events: auto; }
.landing__shell { width: clamp(72px, 9vw, 112px); height: auto; overflow: visible; fill: none; stroke: #f2b8c6; stroke-width: 0.9; stroke-linejoin: round; stroke-linecap: round; opacity: 0.78; filter: drop-shadow(0 0 6px rgb(242 184 198 / 0.35)); }
.landing__name { margin: 2px 0 0; font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: 0.01em; color: var(--pearl); text-shadow: 0 1px 14px rgb(30 22 32 / 0.35); }
.landing__welcome {
  margin-top: 8px; height: 30px; padding: 0 18px; border-radius: 999px; background: transparent;
  box-shadow: 0 0 0 1px rgb(248 242 239 / 0.6) inset; color: var(--pearl);
  font-family: 'Cormorant Garamond', serif; font-size: 15px; letter-spacing: 0.06em;
  transition: box-shadow 200ms var(--ease-out), background-color 200ms var(--ease-out), transform 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .landing__welcome:hover { background: rgb(248 242 239 / 0.1); box-shadow: 0 0 0 1px #f2b8c6 inset; } }
.landing__welcome:active { transform: scale(0.97); }
.at-landing .nav__brand { opacity: 0; transition: opacity 300ms var(--ease-out); }
@media (max-width: 760px) { .landing { top: 72px; left: 18px; } }

/* ---------------------------------------------------------------- client intake at the front entry */
.intake__tabs { display: flex; gap: 6px; padding: 4px; border-radius: 999px; background: rgb(248 242 239 / 0.07); margin-bottom: 14px; }
.intake__tabs button { flex: 1; height: 34px; border-radius: 999px; font-family: var(--label); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: rgb(248 242 239 / 0.7); transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out); }
.intake__tabs button[aria-selected="true"] { background: rgb(248 242 239 / 0.16); color: var(--pearl); }
.intake__map { position: relative; height: min(46vh, 380px); border-radius: 14px; overflow: hidden; background: #07070c; margin-bottom: 10px; display: grid; place-items: center; }
.intake__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.intake__range { width: 100%; accent-color: #e7a2b4; }
.intake__summary { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-style: italic; line-height: 1.35; margin: 10px 0 0; color: var(--pearl); }
.intake__drop { display: grid; gap: 4px; place-items: center; text-align: center; padding: 26px 16px; border-radius: 14px; cursor: pointer;
  border: 1px dashed rgb(242 184 198 / 0.55); background: rgb(248 242 239 / 0.04); transition: background-color 200ms var(--ease-out), border-color 200ms var(--ease-out); }
.intake__drop.is-over, .intake__drop:focus-within { background: rgb(242 184 198 / 0.1); border-color: #f2b8c6; }
.intake__drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.intake__drop-title { font-family: 'Cormorant Garamond', serif; font-size: 19px; }
.intake__files { list-style: none; margin: 12px 0 8px; padding: 0; display: grid; gap: 8px; }
.intake__files li { display: grid; grid-template-columns: 40px 1fr auto auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 10px; background: rgb(248 242 239 / 0.06); font-size: 13px; }
.intake__files img, .intake__ext { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; display: grid; place-items: center; background: rgb(248 242 239 / 0.1); font-family: var(--label); font-size: 9px; text-transform: uppercase; }
.intake__fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.intake__fsize { color: rgb(248 242 239 / 0.6); font-size: 12px; font-variant-numeric: tabular-nums; }
.intake__remove { font-size: 12px; padding: 4px 10px; border-radius: 999px; box-shadow: 0 0 0 1px rgb(248 242 239 / 0.3) inset; }
.intake__remove:hover { box-shadow: 0 0 0 1px #f2b8c6 inset; }
.intake__count { opacity: 0.8; }
.intake__foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
@media (max-width: 760px) {
  .intake__map { height: 42vh; }
}

/* ---------------------------------------------------------------- hub: the brand cube over the ranch */
.hub {
  --ho: 0; position: absolute; inset: 0; z-index: 6; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto auto auto;
  justify-items: center; padding: 84px 16px 18px; opacity: var(--ho); pointer-events: none;
  background: radial-gradient(60% 55% at 50% 45%, rgb(10 6 12 / calc(0.35 * var(--ho))), rgb(10 6 12 / calc(0.15 * var(--ho))) 70%);
}
.hub.is-on { pointer-events: auto; }
.hub__title { margin: 0; font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: clamp(28px, 4vw, 46px); color: var(--pearl); text-shadow: 0 2px 20px rgb(0 0 0 / 0.4); transform: translateY(calc((1 - var(--ho)) * 12px)); }
.hub__cube { width: min(46vh, 80vw); height: 100%; min-height: 220px; max-height: 420px; }
.hub__cube canvas { width: 100%; height: 100%; display: block; }
.hub__hint { margin: 0 0 8px; font-family: var(--label); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: rgb(248 242 239 / 0.6); }
.hub__faces { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-width: 720px; }
.hub__faces button, .mycube__faces button { height: 30px; padding: 0 14px; border-radius: 999px; font-size: 12px; color: var(--pearl); box-shadow: 0 0 0 1px rgb(224 33 138 / 0.55) inset; background: rgb(12 8 14 / 0.4); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: box-shadow 200ms var(--ease-out), background-color 200ms var(--ease-out); }
.hub__faces button:hover, .mycube__faces button:hover, .mycube__faces button[aria-current="true"] { box-shadow: 0 0 0 1px #e0218a inset, 0 0 14px rgb(224 33 138 / 0.45); background: rgb(224 33 138 / 0.12); }
.hub__map { width: min(320px, 80vw); margin-top: 10px; padding: 6px; border-radius: 14px; background: rgb(12 8 14 / 0.45); box-shadow: 0 0 0 1px rgb(248 242 239 / 0.12) inset; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hub__map svg { width: 100%; height: auto; display: block; }
.hub__powered { position: absolute; right: clamp(14px, 3vw, 32px); bottom: 14px; margin: 0; font-family: var(--label); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: rgb(248 242 239 / 0.5); }
.hub__powered b { font-weight: 500; color: rgb(224 33 138 / 0.85); }
@media (max-width: 760px) { .hub__map { width: 240px; } .hub__powered { right: 50%; transform: translateX(50%); bottom: 6px; } }

/* onyx (CUBE OS) panels: black, pink #e0218a outline glow */
.panel--onyx .panel__inner, .panel--onyx { --onyx-line: #e0218a; }
.panel.panel--onyx .panel__inner { background: linear-gradient(160deg, rgb(18 16 20 / 0.92), rgb(6 6 8 / 0.94)); box-shadow: 0 0 0 1px rgb(224 33 138 / 0.65) inset, 0 0 24px rgb(224 33 138 / 0.18), 0 30px 80px rgb(0 0 0 / 0.4); }
.panel--wide { width: min(560px, calc(100vw - 48px)); }
.panel--wide .panel__inner { max-height: calc(100svh - 150px); overflow: auto; overscroll-behavior: contain; }
.panel__h3 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 20px; margin: 16px 0 8px; }
.cc__tabs, .intake__tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; border-radius: 999px; background: rgb(248 242 239 / 0.06); margin: 10px 0 12px; }
.cc__tabs button { flex: 1; min-width: 72px; height: 30px; border-radius: 999px; font-family: var(--label); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: rgb(248 242 239 / 0.7); }
.cc__tabs button[aria-selected="true"] { color: #fff; box-shadow: 0 0 0 1px #e0218a inset, 0 0 12px rgb(224 33 138 / 0.35); }
.cc__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cc__list li { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 2px; padding: 10px 12px; border-radius: 12px; background: rgb(248 242 239 / 0.04); box-shadow: 0 0 0 1px rgb(224 33 138 / 0.22) inset; font-size: 13px; }
.cc__list li b { grid-row: span 2; font-variant-numeric: tabular-nums; color: #f6c6da; }
.cc__list li small { color: rgb(248 242 239 / 0.55); }
.cc__kicker { font-family: var(--label); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: #e0218a; margin: 0 0 8px; }
.cc__field { display: grid; gap: 6px; font-size: 12px; margin-bottom: 10px; }
.cc__field input { height: 38px; border-radius: 10px; padding: 0 12px; background: rgb(248 242 239 / 0.06); color: var(--pearl); border: 0; box-shadow: 0 0 0 1px rgb(248 242 239 / 0.2) inset; font: inherit; font-size: 15px; }
.cc__row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.staff { margin-top: 14px; font-size: 13px; } .staff summary { cursor: pointer; color: rgb(248 242 239 / 0.7); }
.ring-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0; }
.ring-tiles div { padding: 10px; border-radius: 12px; background: rgb(248 242 239 / 0.06); display: grid; gap: 2px; }
.ring-tiles b { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 500; } .ring-tiles span { font-size: 11px; opacity: 0.7; }
.ring-connect { display: flex; gap: 8px; flex-wrap: wrap; } .ring-connect .btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.plan-steps { margin: 6px 0 10px; padding-left: 0; list-style: none; display: grid; gap: 6px; font-size: 13.5px; }
.plan-steps b { display: inline-block; min-width: 96px; font-weight: 600; }
.notes { display: grid; gap: 6px; margin: 6px 0 10px; font-size: 13.5px; } .notes div { display: grid; grid-template-columns: 90px 1fr; } .notes dt { opacity: 0.65; } .notes dd { margin: 0; }
.notes__mine { display: grid; gap: 6px; font-size: 12px; } .notes__mine textarea { border-radius: 10px; padding: 10px; background: rgb(248 242 239 / 0.06); color: inherit; border: 0; box-shadow: 0 0 0 1px rgb(248 242 239 / 0.2) inset; font: inherit; resize: vertical; }

/* meditation library */
.med__prompt { font-family: 'Cormorant Garamond', serif; font-size: 21px; line-height: 1.3; margin: 2px 0 12px; }
.med__library { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.med__card { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgb(248 242 239 / 0.05); box-shadow: 0 0 0 1px rgb(248 242 239 / 0.12) inset; }
.med__card b { display: block; font-family: 'Cormorant Garamond', serif; font-size: 19px; font-weight: 500; }
.med__card span { display: block; font-family: var(--label); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; margin: 2px 0 4px; }
.med__card small { display: block; font-size: 12.5px; opacity: 0.75; line-height: 1.4; }
.med__play { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 0 1px rgb(242 184 198 / 0.7) inset; transition: background-color 200ms var(--ease-out), transform 160ms var(--ease-out); }
.med__play svg { width: 16px; height: 16px; fill: var(--pearl); }
.med__play:hover { background: rgb(242 184 198 / 0.14); } .med__play:active { transform: scale(0.96); }

/* the cube experience */
.mycube { position: fixed; inset: 0; z-index: 70; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 440px); grid-template-rows: 1fr auto; gap: 16px; padding: 70px clamp(16px, 4vw, 48px) 40px; color: var(--pearl);
  background: radial-gradient(70% 60% at 35% 45%, #1a1218, #060507 75%); opacity: 0; transition: opacity 400ms var(--ease-out); }
.mycube.is-open { opacity: 1; }
.mycube__stage { display: grid; grid-template-rows: 1fr auto auto; justify-items: center; min-height: 0; }
.mycube__cube { width: 100%; height: 100%; min-height: 260px; } .mycube__cube canvas { width: 100%; height: 100%; display: block; }
.mycube__name { margin: 0; font-family: 'Cormorant Garamond', serif; font-size: 28px; }
.mycube__space { align-self: center; padding: 22px; border-radius: 20px; max-height: calc(100svh - 160px); overflow: auto; background: linear-gradient(160deg, rgb(18 16 20 / 0.95), rgb(6 6 8 / 0.96)); box-shadow: 0 0 0 1px rgb(224 33 138 / 0.6) inset, 0 0 26px rgb(224 33 138 / 0.15); }
.mycube__space h3 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 26px; margin: 0 0 8px; }
.mycube__faces { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.mycube__close { position: absolute; top: 18px; right: clamp(16px, 4vw, 48px); }
.mycube .hub__powered { position: absolute; }
.cal { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; margin: 10px 0; }
.cal__day { display: grid; gap: 4px; padding: 6px; border-radius: 10px; background: rgb(248 242 239 / 0.04); font-size: 12px; }
.cal__day b { font-weight: 600; font-size: 11px; opacity: 0.8; }
.cal__slot { height: 26px; border-radius: 8px; font-size: 12px; box-shadow: 0 0 0 1px rgb(248 242 239 / 0.2) inset; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.cal__slot.is-taken { opacity: 0.3; text-decoration: line-through; }
.cal__slot.is-picked { box-shadow: 0 0 0 1px #e0218a inset, 0 0 10px rgb(224 33 138 / 0.4); background: rgb(224 33 138 / 0.14); }
.cal__msg { min-height: 1.2em; font-size: 13px; color: #f6c6da; }
@media (max-width: 760px) { .mycube { grid-template-columns: 1fr; grid-template-rows: 38vh auto auto; overflow: auto; padding-top: 60px; } .mycube__space { max-height: none; } }
.hub__map text { font-family: var(--sans); font-size: 6.4px; letter-spacing: 0.02em; fill: rgb(248 242 239 / 0.8); text-anchor: middle; pointer-events: none; }
.hub__map a { cursor: pointer; }
.hub__map a:hover .plan__room, .hub__map a:focus-visible .plan__room { fill: rgb(224 33 138 / 0.22); stroke: #e0218a; }

/* =================================================================== photographic interiors (v3) */
.stage__plates { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.stage__door { z-index: 2; }
.plate { position: absolute; inset: 0; overflow: hidden; visibility: hidden; opacity: 0; background: #0e0a09; will-change: opacity; contain: strict; }
.plate__pic { position: absolute; inset: -3%; transform: scale(1.04); will-change: transform; opacity: 0; transition: opacity 320ms var(--ease-out); }
.plate.is-ready .plate__pic { opacity: 1; }
.plate__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; user-select: none; }
/* pool sheen: mask = the water in the photo (same cover/position as the img), two slow ripple bands drift across it */
.plate__water { position: absolute; inset: 0; overflow: hidden; mix-blend-mode: screen; opacity: 0.55;
  -webkit-mask: var(--wm) 60% 50% / cover no-repeat; mask: var(--wm) 60% 50% / cover no-repeat; }
.plate__water b { position: absolute; left: -20%; right: -20%; top: -10%; bottom: -10%; will-change: transform;
  background: repeating-linear-gradient(176deg, rgb(255 255 255 / 0) 0 7px, rgb(210 245 255 / 0.22) 9px, rgb(255 255 255 / 0) 12px 19px);
  animation: plate-ripple 9s linear infinite; }
.plate__water b + b { background: repeating-linear-gradient(183deg, rgb(255 255 255 / 0) 0 11px, rgb(255 230 200 / 0.16) 13px, rgb(255 255 255 / 0) 16px 27px); animation-duration: 13s; animation-direction: reverse; }
@keyframes plate-ripple { from { transform: translate3d(-6%, 0, 0); } to { transform: translate3d(6%, 3%, 0); } }
@media (prefers-reduced-motion: reduce) { .plate__water { display: none; } }
.is-loading-room, .is-loading-room * { cursor: progress !important; }
/* a soft, slowly breathing light + a quiet left-side scrim so text sits on the calm wall */
.plate__light { position: absolute; inset: 0;
  background: linear-gradient(90deg, rgb(10 7 6 / 0.55) 0%, rgb(10 7 6 / 0.18) 38%, rgb(10 7 6 / 0) 60%),
              radial-gradient(120% 90% at 50% 40%, rgb(0 0 0 / 0) 55%, rgb(6 4 3 / 0.45) 100%);
  animation: plate-breathe 14s ease-in-out infinite alternate; }
@keyframes plate-breathe { from { opacity: 0.92; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .plate__light { animation: none; } }

/* quieter glass panels: hairline edge, smoky glass, no ornaments */
.panel { border-radius: 16px; padding: 26px 28px 22px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.07), rgb(255 255 255 / 0.02)), rgb(14 10 9 / 0.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.1); backdrop-filter: blur(22px) saturate(1.1);
  box-shadow: 0 0 0 0.5px rgb(255 244 230 / 0.28) inset, 0 24px 60px -28px rgb(0 0 0 / 0.7); }
.panel::before { display: none; }
.panel::after { left: 28px; right: auto; width: 44px; background: rgb(224 33 138 / 0.85); height: 1px; }
.panel .room__no { font-size: 9.5px; letter-spacing: 0.32em; color: rgb(248 242 239 / 0.55); }
.panel .room__title { font-style: normal; font-weight: 300; letter-spacing: -0.01em; font-size: clamp(28px, 2.6vw, 38px); margin-top: 8px; }
.panel .room__text { font-size: 14px; line-height: 1.65; color: rgb(248 242 239 / 0.78); }
.panel .btn { border-radius: 999px; }
.panel.panel--onyx .panel__inner { background: none; box-shadow: none; }
.panel.panel--onyx { background: linear-gradient(180deg, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.01)), rgb(8 7 9 / 0.72);
  box-shadow: 0 0 0 0.5px rgb(224 33 138 / 0.55) inset, 0 24px 70px -28px rgb(0 0 0 / 0.8); }
.cc__list li { background: rgb(248 242 239 / 0.03); box-shadow: 0 0 0 0.5px rgb(248 242 239 / 0.14) inset; border-radius: 10px; }
.cc__tabs { background: none; box-shadow: 0 0 0 0.5px rgb(248 242 239 / 0.16) inset; }

/* Stella: framed photographic portrait (full photo, never a cutout) + demo assistant */
.stella { display: grid; grid-template-columns: 132px 1fr; gap: 16px; margin: 14px 0 14px; align-items: start; }
.stella__portrait { margin: 0; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; position: relative;
  box-shadow: 0 0 0 0.5px rgb(255 244 230 / 0.3), 0 18px 40px -18px rgb(0 0 0 / 0.8); }
.stella__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }
.stella__portrait::after { content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgb(0 0 0 / 0) 70%, rgb(8 7 9 / 0.35)); pointer-events: none; }
.stella__hello { margin: 0 0 8px; font-family: var(--serif); font-size: 19px; line-height: 1.3; color: var(--pearl); }
.stella__log { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; max-height: 150px; overflow: auto; font-size: 12.5px; line-height: 1.5; }
.stella__log li { padding: 7px 10px; border-radius: 10px; }
.stella__log .me { justify-self: end; background: rgb(248 242 239 / 0.08); color: var(--pearl); }
.stella__log .her { display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: start; color: rgb(248 242 239 / 0.86); padding-left: 0; }
.stella__log .her img, .stella__avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgb(224 33 138 / 0.6); }
.stella__log .is-typing span { opacity: 0.5; }
.stella__ask { display: flex; gap: 6px; }
.stella__ask input { flex: 1; min-width: 0; height: 34px; border-radius: 999px; padding: 0 14px; border: 0; font: inherit; font-size: 13px;
  background: rgb(248 242 239 / 0.06); color: var(--pearl); box-shadow: 0 0 0 0.5px rgb(248 242 239 / 0.25) inset; }
.stella__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.stella__chips button { font-size: 11px; padding: 5px 10px; border-radius: 999px; color: rgb(248 242 239 / 0.75); box-shadow: 0 0 0 0.5px rgb(224 33 138 / 0.5) inset; }
@media (max-width: 760px) { .stella { grid-template-columns: 92px 1fr; gap: 12px; } .stella__hello { font-size: 16px; } }
/* the cube space sits in the great room, dimmed so the cube glows */
.mycube { background: radial-gradient(60% 60% at 35% 45%, rgb(14 10 12 / 0.55), rgb(6 5 7 / 0.92) 80%), url("../assets/plates/office-m.webp") 60% 50% / cover no-repeat, #060507; }
.stella__chat { min-width: 0; }
@media (max-width: 760px) { .stella__ask .btn { padding-inline: 12px; } }

/* phones / lite: no live blur over moving photos, no breathing layer: the cheapest possible composite */
@media (max-width: 760px), (pointer: coarse) {
  .panel { -webkit-backdrop-filter: none; backdrop-filter: none; background: linear-gradient(180deg, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.01)), rgb(16 11 10 / 0.86); }
  .panel.panel--onyx { background: rgb(8 7 9 / 0.9); }
  .plate__light { animation: none; }
  .plate img { transition-duration: 200ms; }
}
.map-poster { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: inherit; overflow: hidden; background: #07060a; cursor: pointer; }
.map-poster img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.82; transition: opacity 200ms var(--ease-out); }
.map-poster span { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; white-space: nowrap; padding: 8px 14px; border-radius: 999px; font-family: var(--label); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pearl); background: rgb(8 7 9 / 0.72); box-shadow: 0 0 0 0.5px rgb(224 33 138 / 0.7) inset; }
@media (hover: hover) and (pointer: fine) { .map-poster:hover img { opacity: 1; } }

/* =================================================================== live back end (v4): forms, tracker, secure cube */
.book__who { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 10px; }
.book__who input, .cc__field input { min-width: 0; width: 100%; box-sizing: border-box; }
.book__who[hidden] { display: none; }
.cc__field textarea, .cc__field select, .cc__filter input, .cc__filter select { border-radius: 10px; padding: 9px 12px; background: rgb(248 242 239 / 0.06); color: var(--pearl); border: 0; box-shadow: 0 0 0 1px rgb(248 242 239 / 0.2) inset; font: inherit; font-size: 15px; resize: vertical; }
.cc__field input:focus-visible, .cc__field textarea:focus-visible, .cc__filter input:focus-visible { outline: 1px solid #e0218a; outline-offset: 2px; }
.book__msg { min-height: 1.3em; font-size: 13px; color: #f6c6da; margin: 8px 0 0; }
.book__msg a { color: #fff; }
.chips--slots { max-height: 132px; overflow: auto; }
.chips--slots span, .chips--days span { padding: 7px 11px; font-variant-numeric: tabular-nums; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; margin: 4px 0 12px; color: rgb(248 242 239 / 0.8); }
.consent input { margin-top: 3px; accent-color: #e0218a; }
.cc__gate { display: grid; gap: 4px; max-width: 360px; margin: 8px 0 4px; }
.cc__gate[hidden], .cc__live[hidden] { display: none; }
.cc__filter { display: flex; gap: 8px; margin: 0 0 10px; }
.cc__filter input { flex: 1; min-width: 0; height: 36px; padding: 0 12px; }
.cc__filter select { height: 36px; padding: 0 10px; }
.cc__list li > .cc__acts { grid-column: 2; display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.cc__list li > .cc__draft { grid-column: 1 / -1; }
.cc__draft pre { white-space: pre-wrap; font: inherit; font-size: 13px; line-height: 1.5; margin: 8px 0 4px; padding: 10px 12px; border-radius: 10px; background: rgb(0 0 0 / 0.25); }
.cc__draft summary { cursor: pointer; font-size: 12px; color: rgb(248 242 239 / 0.7); }
.st { font-style: normal; font-family: var(--label); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; box-shadow: 0 0 0 0.5px currentColor inset; color: rgb(248 242 239 / 0.6); margin-left: 6px; }
.st--requested { color: #f6c6da; } .st--confirmed { color: #9fe3d3; } .st--declined, .st--cancelled { color: rgb(248 242 239 / 0.4); }
.badge { font-style: normal; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: #e0218a; color: #fff; margin-left: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: rgb(248 242 239 / 0.35); }
.dot--active { background: #6fd3b8; box-shadow: 0 0 8px rgb(111 211 184 / 0.6); } .dot--paused { background: #d9a441; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; letter-spacing: 0.08em; padding: 2px 8px; border-radius: 6px; background: rgb(224 33 138 / 0.18); color: #fff; user-select: all; }
.thread { list-style: none; margin: 10px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 42vh; overflow: auto; }
.thread li { max-width: 82%; padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.4; background: rgb(248 242 239 / 0.07); align-self: flex-start; }
.thread li.me { align-self: flex-end; background: rgb(224 33 138 / 0.22); }
.thread li small { display: block; font-size: 10.5px; opacity: 0.55; margin-top: 3px; }
.thread li.fine { max-width: none; background: none; padding: 0; }
.preview img, .preview iframe { display: block; width: 100%; max-height: 50vh; object-fit: contain; border: 0; border-radius: 10px; margin: 10px 0 6px; background: #000; }
.preview iframe { height: 50vh; }
.bubble { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 60; width: 54px; height: 54px; border-radius: 50%; padding: 0; box-shadow: 0 0 0 1px #e0218a, 0 10px 30px rgb(0 0 0 / 0.5), 0 0 18px rgb(224 33 138 / 0.35); overflow: visible; }
.bubble img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.bubble i { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; border-radius: 9px; background: #e0218a; color: #fff; font: 600 11px/18px var(--label, sans-serif); font-style: normal; text-align: center; }
.bubble i:empty { display: none; }
.redeem { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgb(6 4 4 / 0.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 20px; }
.redeem[hidden] { display: none; }
.redeem__card { width: min(380px, 100%); padding: 24px; border-radius: 18px; background: linear-gradient(160deg, rgb(18 16 20 / 0.96), rgb(6 6 8 / 0.97)); box-shadow: 0 0 0 1px rgb(224 33 138 / 0.6) inset, 0 30px 80px rgb(0 0 0 / 0.6); }
.redeem__card h3 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 28px; margin: 0 0 4px; }
.redeem__card input { text-transform: uppercase; letter-spacing: 0.12em; }
.nav__cube { margin-right: 6px; }
@media (max-width: 760px) {
  .book__who { grid-template-columns: 1fr; }
  .nav__cube { padding-inline: 10px; }
  .cc__tabs button { min-width: 0; flex: 1 1 28%; }
}
@media (max-width: 760px) {
  /* phones: stack the cube, its space and the face buttons in one scrolling column (no overlap) */
  .mycube { display: flex; flex-direction: column; gap: 12px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .mycube > * { flex: none; }
  .mycube__stage { height: 36vh; min-height: 230px; }
  .mycube__space { align-self: stretch; }
  .thread { max-height: 46vh; }
}
