/* ============================================================
   HALDEN RESIDENCES — Residence 7C
   Warm cream / charcoal / sage (from the dining wall) / brass.
   Editorial serif + neutral sans. Restrained, cinematic motion.
   ============================================================ */

:root {
  --cream: #F2EEE6;
  --charcoal: #171714;
  /* accent tokens keep the original names; this listing uses the dusk-over-the-pool navy */
  --sage: #24364F;
  --sage-deep: #172539;
  --sage-soft: #8E9DB4;
  --gold: #B78A4F;
  --paper: #E8E2D8;
  --gray: #817C72;
  --ink-soft: #3d3a33;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(1rem, 4vw, 4rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--charcoal); color: var(--cream);
  padding: 0.6rem 1rem; text-decoration: none; font-size: 0.85rem;
}
.skip:focus { top: 1rem; }

/* ---------- type ---------- */
.label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1.2rem;
}
.label--light { color: var(--gold); }

.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  margin-bottom: 1.6rem;
}
.display em { font-style: italic; color: var(--sage); }
.display--light { color: var(--cream); }
.display--light em { color: var(--gold); }

.lede {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 34em;
  margin-bottom: 1.1rem;
}
.lede--light { color: #d9d3c6; }

.body { color: var(--gray); max-width: 38em; font-size: 0.98rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95em 1.9em;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.35s, color 0.35s, border-color 0.35s;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.btn--primary { background: var(--sage); color: var(--cream); }
.btn--primary:hover { background: var(--sage-deep); }

.btn--ghost { background: transparent; color: var(--cream); border-color: rgba(242, 238, 230, 0.55); }
.btn--ghost:hover { border-color: var(--cream); background: rgba(242, 238, 230, 0.08); }

.btn--ghost-dark { background: transparent; color: var(--charcoal); border-color: rgba(23, 23, 20, 0.35); }
.btn--ghost-dark:hover { border-color: var(--charcoal); }

.btn--order { background: var(--sage); color: var(--cream); padding: 0.8em 1.5em; }
.btn--order:hover { background: var(--sage-deep); }

/* ---------- navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--pad);
  transition: background 0.5s var(--ease), box-shadow 0.5s, padding 0.5s var(--ease), transform 0.5s var(--ease);
}
.nav--solid {
  background: rgba(242, 238, 230, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(23, 23, 20, 0.08);
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}
/* inside the tour the nav goes dark-glass so it doesn't fight the film */
.nav--tour {
  background: rgba(16, 16, 14, 0.55);
  box-shadow: 0 1px 0 rgba(242, 238, 230, 0.06);
}
.nav--tour .nav__logo { color: var(--cream) !important; }
.nav--tour .nav__links a { color: var(--cream) !important; }

.nav__brand { text-decoration: none; line-height: 1.1; }
.nav__logo {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: 0.28em;
  color: var(--cream);
  transition: color 0.5s;
}
.nav__logo-sub {
  display: block;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}
.nav--solid .nav__logo { color: var(--sage); }

.nav__links { display: flex; gap: clamp(1rem, 3vw, 2.4rem); }
.nav__links a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  padding: 0.4em 0.1em;
  position: relative;
  transition: color 0.5s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__links a:hover::after, .nav__links a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav--solid .nav__links a { color: var(--charcoal); }

.nav__actions { display: flex; align-items: center; gap: 1rem; }

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__order { padding: 0.75em 1.05em; white-space: nowrap; font-size: 0.7rem; }
  .nav__logo { font-size: 1.3rem; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--charcoal);
}
.hero__media { position: absolute; inset: 0; }
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
  transform: scale(1.06);
  transition: transform 9s linear, opacity 1.2s var(--ease);
}
.hero--film .hero__video { transform: scale(1); }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(10, 9, 7, 0.8) 0%, rgba(10, 9, 7, 0.3) 38%, transparent 60%),
    linear-gradient(to bottom, rgba(10, 9, 7, 0.45), transparent 24%);
}

.hero__copy {
  position: relative;
  z-index: 2;
  padding: 0 var(--pad) clamp(3.5rem, 9vh, 6.5rem);
  max-width: 46rem;
}
.hero__title { line-height: 1; margin-bottom: 1.1rem; }
.hero__title-main {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(4.2rem, 12vw, 9rem);
  letter-spacing: 0.02em;
  color: var(--cream);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45);
}
.hero__title-sub {
  display: block;
  margin-top: 0.9rem;
  font-family: var(--sans);
  font-size: clamp(0.66rem, 1.4vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero__tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: 0.6rem;
}
.hero__lede { color: #d9d3c6; max-width: 28em; margin-bottom: 1.8rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* copy fades in after the film starts (same beat as the reference) */
.hero__copy > * { opacity: 0; transform: translateY(18px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.hero--copy-in .hero__copy > * { opacity: 1; transform: none; }
.hero--copy-in .hero__copy > *:nth-child(2) { transition-delay: 0.12s; }
.hero--copy-in .hero__copy > *:nth-child(3) { transition-delay: 0.22s; }
.hero--copy-in .hero__copy > *:nth-child(4) { transition-delay: 0.32s; }

/* live room label over the hero film */
.hero__room {
  position: absolute; z-index: 2;
  right: var(--pad);
  bottom: calc(clamp(2rem, 6vh, 4rem) + 80px);
  width: min(300px, 32vw);
  text-align: right;
  opacity: 0; transform: translateY(12px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.hero--film .hero__room { opacity: 1; transform: none; transition-delay: 0.5s; }
.hero__room-k {
  font-size: 0.64rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(242, 238, 230, 0.7); margin-bottom: 0.35rem;
}
.hero__room-k span { color: var(--gold); margin-left: 0.6em; font-variant-numeric: tabular-nums; }
.hero__room-name {
  position: relative; height: 2.6rem; overflow: hidden;
  font-family: var(--serif); font-size: 2.1rem; line-height: 2.6rem;
  color: var(--cream); text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}
.hero__room-name > span { position: absolute; right: 0; top: 0; white-space: nowrap; }
.hero__room-name em { font-family: var(--sans); font-style: normal; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; color: var(--gold); margin-right: 0.8em; vertical-align: 0.5em; }
.hero__room-name .in { animation: roomIn 0.8s var(--ease) both; }
.hero__room-name .out { animation: roomOut 0.5s var(--ease) both; }
@keyframes roomIn { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes roomOut { to { transform: translateY(-100%); opacity: 0; } }
.hero__room-ticks { list-style: none; display: flex; gap: 4px; margin-top: 0.7rem; }
.hero__room-ticks li { flex: 1; height: 2px; background: rgba(242, 238, 230, 0.25); overflow: hidden; }
.hero__room-ticks span { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }

@media (max-width: 760px) {
  .hero__room { top: 5.2rem; bottom: auto; left: 1rem; right: 1rem; width: auto; text-align: left; }
  .hero__room-name { font-size: 1.7rem; }
  .hero__room-name > span { left: 0; right: auto; }
}

.hero__cue {
  position: absolute; right: var(--pad); bottom: clamp(2rem, 6vh, 4rem); z-index: 2;
  width: 1px; height: 52px; background: rgba(242, 238, 230, 0.25); overflow: hidden;
}
.hero__cue span {
  position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--cream);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { to { top: 100%; } }

/* ---------- sections ---------- */
.section { padding: clamp(5rem, 12vh, 9rem) var(--pad); }

/* 01 / the home */
.house {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}
.house__facts {
  display: grid; grid-template-columns: repeat(4, auto); justify-content: start;
  gap: 0 clamp(1.4rem, 3vw, 2.6rem);
  margin-top: 2.2rem; padding-top: 1.6rem;
  border-top: 1px solid rgba(23, 23, 20, 0.12);
}
.house__facts dt { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gray); }
.house__facts dd { font-family: var(--serif); font-size: 2rem; line-height: 1.2; color: var(--charcoal); }
.house__media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; background: var(--paper); }
.house__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.8s var(--ease); }
.house__media.in-view img { transform: scale(1); }

@media (max-width: 860px) {
  .house { grid-template-columns: 1fr; }
  .house__media { aspect-ratio: 4 / 4.4; }
  .house__facts { grid-template-columns: repeat(2, auto); gap: 1rem 2.4rem; }
}

/* ---------- 02 / the tour ---------- */
.tour {
  position: relative;
  background: var(--charcoal);
  color: var(--cream);
  /* height is set from JS: one viewport of scroll per room */
  height: 900vh;
}
.tour__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(150px, 0.42fr);
  grid-template-rows: auto 1fr;
  align-items: center;
  column-gap: clamp(1.5rem, 4vw, 4.5rem);
  padding: 5.5rem var(--pad) 2.5rem;
}
.tour__backdrop {
  position: absolute; inset: -8%;
  width: 116%; height: 116%;
  filter: blur(38px) saturate(1.1);
  opacity: 0.55;
  transform: scale(1.05);
}
.tour__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 62% 50%, rgba(23, 23, 20, 0.15), rgba(23, 23, 20, 0.85) 70%),
    linear-gradient(to right, rgba(23, 23, 20, 0.85), rgba(23, 23, 20, 0.3) 60%, rgba(23, 23, 20, 0.6));
}
.tour__head {
  position: relative; z-index: 2;
  grid-column: 1 / -1;
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
}
.tour__head .label { margin-bottom: 0; }
.tour__hint {
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(242, 238, 230, 0.6);
  transition: opacity 0.6s var(--ease);
}
.tour__hint::after { content: " ↓"; display: inline-block; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(3px); } }
.tour--started .tour__hint { opacity: 0; }

.tour__frame {
  position: relative; z-index: 2;
  grid-column: 2; grid-row: 2;
  height: min(76vh, 860px);
  aspect-ratio: 9 / 16;
  border-radius: 3px;
  overflow: hidden;
  background: #0d0d0b;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(242, 238, 230, 0.08);
}
.tour__video { width: 100%; height: 100%; object-fit: cover; }
.tour__frame-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(10, 9, 7, 0.55), transparent 30%);
}
.tour__caption {
  position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1.25rem;
  display: flex; justify-content: space-between;
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cream);
}
.tour__caption span:last-child { color: var(--gold); font-variant-numeric: tabular-nums; }
.tour__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(242, 238, 230, 0.15); }
.tour__bar span { display: block; height: 100%; width: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }

/* chapter copy */
.tour__chapters {
  position: relative; z-index: 2;
  grid-column: 1; grid-row: 2;
  align-self: center;
  min-height: 26rem;
  max-width: 30rem;
}
.chapter {
  position: absolute; left: 0; right: 0; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  visibility: hidden;
}
.chapter.is-active { pointer-events: auto; visibility: visible; }

.chapter__num {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.1rem;
}
.chapter__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1.02; letter-spacing: -0.01em;
  margin-bottom: 1.3rem;
}
.chapter__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.chapter__title .line > * { display: inline-block; }
.chapter__title em { font-style: italic; color: var(--gold); }
.chapter__body { color: #d9d3c6; font-size: 1.02rem; max-width: 27em; margin-bottom: 1.4rem; }
.chapter__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chapter__chips li {
  font-size: 0.64rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.45em 0.9em; border: 1px solid rgba(183, 138, 79, 0.55); color: var(--cream);
  border-radius: 2px; background: rgba(23, 23, 20, 0.25);
}
.chapter__cta { margin-top: 1.6rem; }

/* chapter motion: label slides, title lines rise out of a mask, body + chips follow */
.chapter__num, .chapter__body, .chapter__chips li, .chapter__cta {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.chapter__title .line > * {
  transform: translateY(110%);
  transition: transform 0.5s var(--ease);
}
.chapter.is-active .chapter__num { opacity: 1; transform: none; transition-duration: 0.9s; }
.chapter.is-active .chapter__title .line > * { transform: none; transition-duration: 1.05s; }
.chapter.is-active .chapter__title .line:nth-child(2) > * { transition-delay: 0.09s; }
.chapter.is-active .chapter__body { opacity: 1; transform: none; transition-duration: 1s; transition-delay: 0.22s; }
.chapter.is-active .chapter__chips li { opacity: 1; transform: none; transition-duration: 0.8s; }
.chapter.is-active .chapter__chips li:nth-child(1) { transition-delay: 0.34s; }
.chapter.is-active .chapter__chips li:nth-child(2) { transition-delay: 0.42s; }
.chapter.is-active .chapter__chips li:nth-child(3) { transition-delay: 0.5s; }
.chapter.is-active .chapter__cta { opacity: 1; transform: none; transition-duration: 0.9s; transition-delay: 0.55s; }
/* leaving: lift up and out */
.chapter.is-leaving { visibility: visible; }
.chapter.is-leaving .chapter__title .line > * { transform: translateY(-110%); }
.chapter.is-leaving .chapter__num,
.chapter.is-leaving .chapter__body,
.chapter.is-leaving .chapter__chips li { opacity: 0; transform: translateY(-12px); }

/* room rail */
.tour__rail {
  position: relative; z-index: 2;
  grid-column: 3; grid-row: 2;
  list-style: none;
  justify-self: end;
  display: flex; flex-direction: column; gap: 0.15rem;
  counter-reset: room;
}
.tour__rail button {
  display: flex; align-items: center; gap: 0.8rem; width: 100%;
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: 0.42rem 0;
  font: 600 0.66rem/1.2 var(--sans); letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(242, 238, 230, 0.4);
  transition: color 0.4s;
}
.tour__rail button::before {
  content: ""; width: 14px; height: 1px; background: currentColor; flex: none;
  transition: width 0.5s var(--ease), background 0.4s;
}
.tour__rail button:hover { color: rgba(242, 238, 230, 0.8); }
.tour__rail button.is-active { color: var(--cream); }
.tour__rail button.is-active::before { width: 34px; background: var(--gold); }
.tour__rail button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.tour__watch {
  position: absolute; z-index: 3; right: var(--pad); bottom: 2.2rem;
  background: none; border: 1px solid rgba(242, 238, 230, 0.35); color: var(--cream);
  font: 600 0.66rem/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.9em 1.3em; border-radius: 2px; cursor: pointer;
  transition: border-color 0.35s, background 0.35s;
}
.tour__watch:hover { border-color: var(--cream); background: rgba(242, 238, 230, 0.08); }
.tour__watch span { color: var(--gold); margin-left: 0.3em; }

/* tablet: hide rail labels, keep ticks */
@media (max-width: 1100px) {
  .tour__stage { grid-template-columns: minmax(0, 1fr) auto 28px; }
  .tour__rail button { font-size: 0; gap: 0; }
  .tour__rail button::before { width: 12px; }
  .tour__rail button.is-active::before { width: 26px; }
}

/* phone: film goes full-bleed, copy sits over it at the bottom */
@media (max-width: 760px) {
  .tour__stage {
    display: block;
    padding: 0;
  }
  .tour__backdrop, .tour__veil { display: none; }
  .tour__head {
    position: absolute; top: 4.6rem; left: 1rem; right: 1rem; z-index: 4;
  }
  .tour__frame {
    position: absolute; inset: 0;
    height: auto; aspect-ratio: auto;
    border-radius: 0; box-shadow: none;
  }
  .tour__frame-shade {
    background:
      linear-gradient(to top, rgba(10, 9, 7, 0.92) 0%, rgba(10, 9, 7, 0.55) 38%, transparent 62%),
      linear-gradient(to bottom, rgba(10, 9, 7, 0.55), transparent 22%);
  }
  .tour__caption { top: 6.4rem; bottom: auto; left: 1rem; right: 1rem; }
  .tour__caption span:first-child { visibility: hidden; }
  .tour__bar { top: 0; bottom: auto; height: 3px; }
  .tour__chapters {
    position: absolute; left: 1rem; right: 1rem; bottom: 4.6rem;
    min-height: 0; max-width: none;
  }
  .chapter { top: auto; bottom: 0; transform: none; }
  .chapter__title { font-size: clamp(2.3rem, 11vw, 3.1rem); margin-bottom: 0.8rem; }
  .chapter__body { font-size: 0.95rem; margin-bottom: 1rem; }
  .tour__head .label { white-space: nowrap; }
  .tour__rail {
    position: absolute; left: 1rem; right: 1rem; bottom: 1.6rem; z-index: 4;
    justify-self: stretch;
    flex-direction: row; gap: 0.35rem;
  }
  .tour__rail li { flex: 1; }
  .tour__rail button { font-size: 0; padding: 0.7rem 0; }
  .tour__rail button::before { width: 100%; height: 2px; background: rgba(242, 238, 230, 0.3); }
  .tour__rail button.is-active::before { width: 100%; background: var(--gold); }
  .tour__watch { top: 6rem; bottom: auto; right: 1rem; padding: 0.7em 0.9em; display: none; }
}

/* ---------- atmosphere ---------- */
.atmos {
  position: relative;
  height: clamp(460px, 92vh, 820px);
  overflow: hidden;
  background: var(--charcoal);
  display: flex; align-items: flex-end;
}
.atmos__media { position: absolute; inset: -10% 0; }
.atmos__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; will-change: transform; }
.atmos__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 9, 7, 0.7), transparent 55%); }
.atmos__copy { position: relative; z-index: 2; padding: 0 var(--pad) clamp(3rem, 9vh, 6rem); }
.atmos__line {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.02;
  color: var(--cream);
}

/* ---------- 03 / details (tabbed cards) ---------- */
.details { max-width: 1280px; margin: 0 auto; }
.details__head { margin-bottom: 2.6rem; }

.details__tabs {
  display: flex; gap: clamp(1.2rem, 3vw, 2.6rem);
  overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid rgba(23, 23, 20, 0.12);
  margin-bottom: 2.4rem;
}
.details__tabs::-webkit-scrollbar { display: none; }
.details__tab {
  flex: none; position: relative;
  background: none; border: 0; cursor: pointer;
  padding: 0.9rem 0.1rem;
  font: 600 0.74rem/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gray);
  transition: color 0.3s;
}
.details__tab em {
  font-style: normal; font-weight: 500; letter-spacing: 0.12em;
  margin-left: 0.5em; color: rgba(129, 124, 114, 0.7); font-size: 0.6rem;
}
.details__tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--sage); transform: scaleX(0); transition: transform 0.4s var(--ease);
}
.details__tab[aria-selected="true"] { color: var(--sage); }
.details__tab[aria-selected="true"]::after { transform: scaleX(1); }
.details__tab:hover { color: var(--charcoal); }
.details__tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.details__panel { transition: opacity 0.18s; }
.details__panel.is-switching { opacity: 0; }

.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.2rem, 2.4vw, 2rem); }
.spec-grid--rooms { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.spec-grid--text { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 5rem); }
@media (max-width: 1000px) { .spec-grid--rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .spec-grid, .spec-grid--text { grid-template-columns: 1fr; }
  .spec-grid--rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
}

.spec {
  background: var(--paper);
  border-radius: 2px;
  padding: 0 0 1.4rem;
  overflow: hidden;
  opacity: 0; transform: translateY(14px);
  animation: specIn 0.7s var(--ease) forwards;
}
@keyframes specIn { to { opacity: 1; transform: none; } }
.spec__media { aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 1.3rem; }
.spec-grid--rooms .spec__media { aspect-ratio: 4 / 5; }
.spec__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.spec:hover .spec__media img { transform: scale(1.04); }
.spec__top, .spec__desc, .spec__tags { padding: 0 1.4rem; }
.spec-grid--rooms .spec__top, .spec-grid--rooms .spec__desc { padding: 0 1rem; }
.spec__top { display: flex; align-items: baseline; gap: 0.8rem; margin-bottom: 0.5rem; }
.spec__name { font-family: var(--serif); font-weight: 600; font-size: 1.55rem; line-height: 1.15; }
.spec-grid--rooms .spec__name { font-size: 1.25rem; }
.spec__dots { flex: 1; border-bottom: 1px dotted rgba(23, 23, 20, 0.3); transform: translateY(-0.3em); min-width: 1rem; }
.spec__value { font-size: 0.86rem; font-weight: 600; color: var(--sage); white-space: nowrap; }
.spec-grid--rooms .spec__value { font-size: 0.72rem; }
.spec__desc { color: var(--gray); font-size: 0.92rem; }
.spec-grid--rooms .spec__desc { font-size: 0.84rem; }
.spec__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }
.spec__tag {
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.45em 0.8em; border: 1px solid rgba(23, 23, 20, 0.18); color: var(--ink-soft); border-radius: 2px;
}
.spec__tag--signature { background: var(--gold); border-color: var(--gold); color: var(--cream); }

/* text-only spec rows */
.spec--text { background: none; padding: 1.4rem 0; border-bottom: 1px solid rgba(23, 23, 20, 0.1); border-radius: 0; }
.spec--text .spec__top, .spec--text .spec__desc, .spec--text .spec__tags { padding: 0; }

.details__footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 3rem; padding-top: 1.8rem; border-top: 1px solid rgba(23, 23, 20, 0.12);
  color: var(--gray); font-size: 0.9rem;
}

/* ---------- 04 / visit ---------- */
.visit {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--charcoal);
  color: var(--cream);
}
.visit__media { position: absolute; inset: -6% 0; }
.visit__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; will-change: transform; }
.visit__shade {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(16, 15, 12, 0.94) 0%, rgba(16, 15, 12, 0.82) 45%, rgba(16, 15, 12, 0.45) 100%);
}
.visit__copy { position: relative; z-index: 2; padding: clamp(6rem, 14vh, 9rem) var(--pad); max-width: 58rem; }
.visit__grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem;
  margin: 2.6rem 0 2.8rem; padding: 1.8rem 0;
  border-top: 1px solid rgba(242, 238, 230, 0.14);
  border-bottom: 1px solid rgba(242, 238, 230, 0.14);
}
.visit__k { font-size: 0.64rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }
.visit__v { font-size: 0.98rem; color: var(--cream); }
.visit__v a { color: var(--cream); text-decoration: none; border-bottom: 1px solid rgba(242, 238, 230, 0.35); word-break: break-word; }
.visit__v a:hover { border-color: var(--gold); }
.visit__price { font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; }
.visit__price small { font-family: var(--sans); font-size: 0.75rem; color: #b9b2a3; }
.visit__s { font-size: 0.84rem; color: #b9b2a3; margin-top: 0.25rem; }
.visit__ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; }
@media (max-width: 900px) { .visit__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .visit__grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer {
  background: #121210; color: #b9b2a3;
  padding: clamp(3.5rem, 8vh, 5rem) var(--pad) 2rem;
  display: grid; grid-template-columns: 1fr auto; gap: 2.4rem;
}
.footer__logo { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.7rem; letter-spacing: 0.28em; color: var(--sage-soft); }
.footer__sub { display: block; font-size: 0.58rem; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); }
.footer__line { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: #d9d3c6; margin-top: 1rem; }
.footer__links { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__links a { color: var(--cream); text-decoration: none; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.footer__links a:hover { color: var(--gold); }
.footer__legal { grid-column: 1 / -1; font-size: 0.74rem; color: #77726a; padding-top: 1.6rem; border-top: 1px solid rgba(242, 238, 230, 0.07); }
@media (max-width: 640px) { .footer { grid-template-columns: 1fr; } }

/* ---------- mobile booking bar ---------- */
.orderbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  display: none; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(23, 23, 20, 0.95); color: var(--cream);
  font-size: 0.82rem;
  transform: translateY(110%); transition: transform 0.5s var(--ease);
}
.orderbar strong { color: var(--gold); font-weight: 600; }
.orderbar--show { transform: none; }
@media (max-width: 760px) { .orderbar { display: flex; } }

/* ---------- film lightbox ---------- */
.film {
  border: 0; padding: 0; background: transparent;
  max-width: min(92vw, 640px); max-height: 92vh; margin: auto;
}
.film::backdrop { background: rgba(10, 9, 7, 0.9); }
.film video { width: 100%; max-height: 88vh; background: #000; }
.film__close {
  position: absolute; top: 0.5rem; right: 0.5rem; z-index: 2;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  border: 0; background: rgba(23, 23, 20, 0.7); color: var(--cream);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
}

/* ---------- reveals ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.mask-reveal { clip-path: inset(12% 0 12% 0); transition: clip-path 1.4s var(--ease); }
.mask-reveal.in-view { clip-path: inset(0 0 0 0); }

/* ---------- no-js / reduced motion fallbacks ---------- */
.no-js .reveal, .no-motion .reveal { opacity: 1; transform: none; }
.no-js .mask-reveal, .no-motion .mask-reveal { clip-path: none; }
.no-js .hero__copy > * { opacity: 1; transform: none; }

.no-js .tour { height: auto; }
.no-js .tour__stage { position: relative; display: block; height: auto; padding: 5rem var(--pad); }
.no-js .tour__frame { height: auto; width: min(100%, 420px); margin: 2rem 0; }
.no-js .tour__chapters { min-height: 0; }
.no-js .chapter { position: static; transform: none; visibility: visible; margin-bottom: 3rem; }
.no-js .chapter *, .no-js .chapter__title .line > * { opacity: 1 !important; transform: none !important; }
.no-js .tour__rail, .no-js .tour__watch, .no-js .tour__hint { display: none; }

.no-motion .chapter *, .no-motion .chapter__title .line > * { transition: none !important; }

/* ============================================================
   Framed hero — portrait footage stays sharp on wide screens:
   the film sits in a 9:16 frame over a blurred copy of itself.
   Phones keep the full-bleed film.
   ============================================================ */
.hero__frame { position: absolute; inset: 0; }
.hero__backdrop { display: none; }

@media (min-width: 761px) {
  .hero--framed {
    --frame-h: calc(100svh - 7.5rem);
    --frame-w: calc(var(--frame-h) * 9 / 16);
  }
  .hero--framed .hero__backdrop {
    display: block;
    position: absolute; inset: -8%;
    width: 116%; height: 116%;
    filter: blur(40px) saturate(1.15);
    opacity: 0.5;
  }
  .hero--framed .hero__frame {
    inset: auto;
    top: 5.5rem; right: var(--pad);
    height: var(--frame-h); width: var(--frame-w);
    z-index: 1;
    border-radius: 3px;
    overflow: hidden;
    background: #0d0d0b;
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(242, 238, 230, 0.08);
  }
  .hero--framed .hero__frame::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to top, rgba(10, 9, 7, 0.7), transparent 34%);
  }
  .hero--framed .hero__video { object-position: 50% 50%; }
  .hero--framed .hero__shade {
    background:
      linear-gradient(to right, rgba(10, 9, 7, 0.82), rgba(10, 9, 7, 0.35) 60%, rgba(10, 9, 7, 0.2)),
      linear-gradient(to bottom, rgba(10, 9, 7, 0.45), transparent 24%);
  }
  .hero--framed .hero__copy { max-width: min(46rem, calc(100vw - var(--frame-w) - 3 * var(--pad))); }
  .hero--framed .hero__room {
    z-index: 2;
    left: 1.1rem; right: 1.1rem; bottom: 1.25rem;
    width: auto;
    text-align: left;
  }
  .hero--framed .hero__room-name { font-size: 1.7rem; }
  .hero--framed .hero__room-name > span { left: 0; right: auto; }
  .hero--framed .hero__cue { display: none; }
}

/* ---------- atmosphere triptych ---------- */
.atmos__media--triptych {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  background: var(--charcoal);
}
.atmos__media--triptych img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
@media (max-width: 640px) {
  .atmos__media--triptych { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atmos__media--triptych img:nth-child(3) { display: none; }
}

/* the visit backdrop is portrait footage stretched wide: soften it so it reads as mood, not detail */
.visit__media img { filter: blur(3px) saturate(1.05); }

/* ============================================================
   Pillarboxed hero source (1920×1080 file, picture in the middle
   608px strip, black bars either side). Played untouched: the
   video element is scaled so the picture strip covers the screen
   and the bars fall outside the hero (which clips overflow).
   --pic = visible picture width ÷ frame width (604/1920, trims edge bleed).
   ============================================================ */
@media (min-width: 761px) {
  .hero--pillarbox { --pic: 0.3146; }
  .hero--pillarbox .hero__video {
    inset: auto;
    left: 50%; top: 50%;
    max-width: none;
    width: max(calc(100vw / var(--pic)), calc(100svh * 16 / 9));
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: fill;
    transform: translate(-50%, -50%) scale(1.06);
  }
  .hero--pillarbox.hero--film .hero__video { transform: translate(-50%, -50%); }
}

/* ============================================================
   Tour as the home screen — full-bleed film on every screen,
   opening title over the first frame, room copy over the film.
   ============================================================ */
.tour--home .tour__stage { display: block; padding: 0; }
.tour--home .tour__backdrop,
.tour--home .tour__veil { display: none; }
.tour--home .tour__frame {
  position: absolute; inset: 0;
  width: auto; height: auto; aspect-ratio: auto;
  border-radius: 0; box-shadow: none;
}
.tour--home .tour__frame-shade {
  background:
    linear-gradient(to right, rgba(10, 9, 7, 0.72), rgba(10, 9, 7, 0.18) 55%, transparent 80%),
    linear-gradient(to top, rgba(10, 9, 7, 0.78), transparent 45%),
    linear-gradient(to bottom, rgba(10, 9, 7, 0.5), transparent 22%);
}
.tour--home .tour__caption {
  left: auto; right: var(--pad); top: 5.6rem; bottom: auto;
  gap: 1.2rem;
}
.tour--home .tour__bar { height: 3px; }
.tour--home .tour__chapters {
  position: absolute; z-index: 3;
  left: var(--pad); right: auto;
  bottom: clamp(3.5rem, 10vh, 6.5rem);
  width: min(34rem, calc(100vw - 2 * var(--pad) - 220px));
  max-width: none; min-height: 0;
}
.tour--home .chapter { top: auto; bottom: 0; transform: none; }
.tour--home .tour__rail {
  position: absolute; z-index: 3;
  right: var(--pad); top: 50%;
  transform: translateY(-50%);
}

/* opening title */
.tour__intro {
  position: absolute; z-index: 4;
  left: var(--pad);
  bottom: clamp(3.5rem, 10vh, 6.5rem);
  max-width: 46rem;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), visibility 0.6s;
}
.tour__intro .hero__title-sub { margin-bottom: 0.2rem; }
.tour__intro .tour__hint { margin-top: 1.6rem; }
.tour--started .tour__intro { opacity: 0; visibility: hidden; transform: translateY(-24px); }
.tour--home .tour__rail,
.tour--home .tour__caption { transition: opacity 0.6s var(--ease); }
.tour--home:not(.tour--started) .tour__caption { opacity: 0; }

/* desktop film is a pillarboxed 16:9 file: scale it so the bars fall outside the frame */
.tour--pillarbox { --pic: 0.3146; }
.tour--pillarbox .tour__video {
  position: absolute; left: 50%; top: 50%;
  max-width: none;
  width: max(calc(100vw / var(--pic)), calc(100svh * 16 / 9));
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: fill;
  transform: translate(-50%, -50%);
}

@media (max-width: 760px) {
  .tour--home .tour__chapters { left: 1rem; right: 1rem; bottom: 4.6rem; width: auto; }
  .tour--home .tour__rail { top: auto; transform: none; left: 1rem; right: 1rem; bottom: 1.6rem; }
  .tour--home .tour__caption { top: 5.2rem; right: 1rem; }
  .tour__intro { left: 1rem; right: 1rem; bottom: 4.6rem; }
  .tour__intro .hero__ctas .btn { padding: 0.9em 1.3em; }
}

/* ---------- 1011 footage (4K landscape master) ---------- */
/* sharp landscape stills now: no need to soften the visit backdrop */
.visit__media img { filter: none; }
/* the full film is landscape: give the player room */
.film { max-width: min(94vw, 1280px); }
.film video { max-height: 86vh; }

/* room list on the right: brighter, with a soft shadow so it reads over bright footage */
.tour--home .tour__rail button {
  color: rgba(242, 238, 230, 0.76);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55), 0 0 2px rgba(0, 0, 0, 0.35);
}
.tour--home .tour__rail button:hover { color: #fff; }
.tour--home .tour__rail button.is-active { color: #fff; }
.tour--home .tour__rail button::before { box-shadow: 0 0 6px rgba(0, 0, 0, 0.45); }

/* ============================================================
   Loader — frosted-glass card over the house at dusk.
   A line drawing of the home whose windows light up one by one
   with the real load progress, above an LED-strip progress bar.
   ============================================================ */
.is-loading, .is-loading body { overflow: hidden; }

.loader {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  background: var(--charcoal);
  transition: opacity 1s var(--ease), visibility 1s;
}
.no-js .loader { display: none; }
.loader--done { opacity: 0; visibility: hidden; }

/* the house photo behind the glass: softened, dimmed, slowly settling */
.loader__bg {
  position: absolute; inset: -4%;
  background: center / cover no-repeat;
  filter: blur(6px) saturate(1.1) brightness(0.55);
  transform: scale(1.06);
  opacity: 0;
  transition: opacity 1.2s var(--ease), transform 6s var(--ease);
}
.loader__bg.is-in { opacity: 1; transform: scale(1); }
.loader::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse at 50% 60%, rgba(23, 23, 20, 0.15), rgba(23, 23, 20, 0.75) 75%);
}

/* glassmorphism card */
.loader__card {
  position: relative; z-index: 2;
  width: min(460px, 100%);
  padding: clamp(1.6rem, 5vw, 2.4rem) clamp(1.4rem, 5vw, 2.4rem) clamp(1.4rem, 4vw, 2rem);
  text-align: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 1s var(--ease), opacity 1s var(--ease);
}
.loader--done .loader__card { transform: translateY(-16px) scale(0.98); }

.loader__logo {
  display: block;
  font-family: var(--serif); font-weight: 600;
  font-size: 1.55rem; letter-spacing: 0.3em;
  color: var(--cream);
}
.loader__sub {
  display: block; margin-top: 0.15rem;
  font-size: 0.56rem; font-weight: 600; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold);
}
.loader__title {
  margin: 1rem 0 0.6rem;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  color: #e6e0d4;
}

/* the house drawing */
.loader__house { display: block; width: 100%; height: auto; margin: 0.4rem 0 1.2rem; overflow: visible; }
.loader__house .hs { fill: rgba(255, 255, 255, 0.04); stroke: rgba(242, 238, 230, 0.7); stroke-width: 1.1; }
.loader__house .hs-roof { stroke: rgba(242, 238, 230, 0.9); stroke-width: 2.2; stroke-linecap: round; }
.loader__house .hs-stone { stroke: rgba(242, 238, 230, 0.28); stroke-width: 0.8; }
.loader__house .hs-ground { stroke: rgba(242, 238, 230, 0.35); stroke-width: 1; }
.loader__house .win { fill: rgba(255, 255, 255, 0.05); stroke: rgba(242, 238, 230, 0.55); stroke-width: 0.9; }
.loader__house .glow {
  fill: url(#warmLight);
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}
.loader__house .glow.is-on { opacity: 1; }

/* LED-strip progress bar */
.loader__bar {
  position: relative; height: 4px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
  overflow: visible;
}
.loader__bar span {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  border-radius: 4px;
  background: linear-gradient(to right, #f3c98a, #fff1d6);
  box-shadow: 0 0 10px rgba(255, 205, 140, 0.9), 0 0 24px rgba(255, 190, 110, 0.45);
}
.loader__meta {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 0.9rem;
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(242, 238, 230, 0.75);
}
.loader__pct {
  font-family: var(--serif); font-size: 1.45rem; letter-spacing: 0.02em;
  color: #f6dcae;
  font-variant-numeric: tabular-nums;
}

/* no backdrop-filter support: a solid tinted card still reads well */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .loader__card { background: rgba(30, 30, 26, 0.85); }
}

/* ============================================================
   Tour actions — Skip tour + Watch full film (frosted glass)
   ============================================================ */
.tour__actions {
  position: absolute; z-index: 5;
  right: var(--pad); bottom: 2.2rem;
  display: flex; gap: 0.6rem;
}
.tour__actions .tour__watch { position: static; }
.glass-btn,
.tour--home .tour__watch {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.9em 1.3em;
  font: 600 0.66rem/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cream); text-decoration: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: background 0.35s, border-color 0.35s, transform 0.35s var(--ease);
}
.glass-btn:hover,
.tour--home .tour__watch:hover { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.4); transform: translateY(-2px); }
.glass-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.tour__skip span { color: var(--gold); }

/* ============================================================
   Phone pass
   ============================================================ */
@media (max-width: 760px) {
  /* skip sits top-left, opposite the timecode, clear of the nav */
  .tour__actions { left: 1rem; right: auto; top: 4.9rem; bottom: auto; }
  .tour--home .tour__caption { top: 5.55rem; }
  .tour--home .tour__watch { display: none; }
  .glass-btn { padding: 0.75em 1.05em; font-size: 0.62rem; min-height: 36px; }

  /* intro: keep buttons side by side and comfortably tappable */
  .tour__intro .hero__title-main { font-size: clamp(3.6rem, 18vw, 4.6rem); }
  .tour__intro .hero__tag { font-size: 1.35rem; }
  .tour__intro .hero__lede { font-size: 0.92rem; margin-bottom: 1.3rem; }
  .tour__intro .hero__ctas { gap: 0.6rem; }
  .tour__intro .hero__ctas .btn { min-height: 44px; }

  /* room copy: a touch smaller so long rooms never collide with the top controls */
  .tour--home .chapter__title { font-size: clamp(2rem, 9.5vw, 2.7rem); }
  .tour--home .chapter__body { font-size: 0.9rem; line-height: 1.5; }
  .tour--home .chapter__chips li { font-size: 0.58rem; }

  /* progress strip: taller hit area for thumbs */
  .tour--home .tour__rail button { padding: 0.9rem 0; }

  /* sections */
  .section { padding-top: 4rem; padding-bottom: 4rem; }
  .house__facts dd { font-size: 1.7rem; }
  .atmos { height: 70svh; }
  .atmos__line { font-size: clamp(2.1rem, 9vw, 2.8rem); }
  .details__footer { flex-direction: column; align-items: flex-start; }
  .visit__copy { padding-top: 5rem; padding-bottom: 6rem; }
  .visit__ctas .btn { flex: 1 1 auto; justify-content: center; min-height: 44px; }
  .footer__links a { padding: 0.35rem 0; }
}

/* very small phones: room cards go single column so names never cramp */
@media (max-width: 400px) {
  .spec-grid--rooms { grid-template-columns: 1fr; }
  .spec-grid--rooms .spec__media { aspect-ratio: 16 / 10; }
}

/* section eases in after "Skip tour" */
.is-arriving { animation: arrive 0.9s var(--ease) both; }
@keyframes arrive { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.no-motion .is-arriving { animation: none; }

/* booking bar: one clean line on phones */
@media (max-width: 760px) {
  .orderbar { gap: 0.75rem; font-size: 0.8rem; }
  .orderbar > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .orderbar .btn { flex: none; white-space: nowrap; padding: 0.8em 1.1em; font-size: 0.68rem; min-height: 40px; }
}
