/* ==========================================================================
   Listing virtual tour — /realestate/*
   Standalone stylesheet: warm editorial pages with dark, cinematic tour
   sections. Shares nothing with styles.css on purpose; a listing page should
   look like the home it sells, not like the studio that built it.
   ========================================================================== */

:root {
  --paper:    #f6f2eb;
  --paper-2:  #eee7db;
  --paper-3:  #e2d8c8;
  --ink:      #1d1a16;
  --ink-2:    #4a453d;
  --ink-3:    #675f54;
  --line:     rgba(29, 26, 22, .12);
  --line-2:   rgba(29, 26, 22, .22);

  --night:    #12100d;
  --night-2:  #1c1915;
  --night-3:  #26221d;
  --on-night: #f4efe6;
  --on-night-2: rgba(244, 239, 230, .74);
  --on-night-3: rgba(244, 239, 230, .52);
  --glass:    rgba(20, 18, 15, .58);
  --glass-line: rgba(255, 255, 255, .14);

  --copper:   #96542a;
  --copper-2: #e2a877;
  --sage:     #c9d6b4;
  --sky:      #5f86a8;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1rem, 4vw, 3rem);
  /* Side gutters that also clear the notch on landscape phones (viewport-fit=cover). */
  --gl: max(var(--gutter), env(safe-area-inset-left, 0px));
  --gr: max(var(--gutter), env(safe-area-inset-right, 0px));
  --maxw:   1240px;
  --radius: 18px;
  --ease:   cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 4px; }
/* Dark sections and anything over a photo get the light ring, with a dark
   band on both sides so it holds over any pixel of the image behind. */
[data-dark] :focus-visible, .dark :focus-visible, .player :focus-visible, .calc :focus-visible, .foot :focus-visible,
.js .top:not(.is-solid) :focus-visible { outline-color: var(--copper-2); }
.hero :focus-visible, .walk :focus-visible, .player :focus-visible, .js .top:not(.is-solid) :focus-visible {
  outline-offset: 2px;
  box-shadow: 0 0 0 2px rgba(10, 9, 7, .85), 0 0 0 6px rgba(10, 9, 7, .85);
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: 8px;
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 1rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: min(100% - var(--gl) - var(--gr), var(--maxw)); margin-inline: auto; }

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 380; letter-spacing: -.015em; margin: 0; font-optical-sizing: auto; }
h1 { font-size: clamp(2.5rem, 6.2vw, 5.9rem); line-height: .98; font-weight: 340; }
h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.02; }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.2; }
h1 em, h2 em { font-style: italic; font-weight: 300; }
h2, h3 { text-wrap: balance; }
p { margin: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font: 600 .74rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  color: var(--copper);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.dark .eyebrow, .hero .eyebrow { color: var(--copper-2); }

.lede { font-family: var(--serif); font-size: clamp(1.3rem, 2.3vw, 1.9rem); line-height: 1.35; font-weight: 330; color: var(--ink); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  --b-bg: var(--ink); --b-fg: var(--paper); --b-line: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .8rem 1.35rem; border-radius: 999px;
  border: 1px solid var(--b-line); background: var(--b-bg); color: var(--b-fg);
  font: 600 .95rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s, border-color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(0,0,0,.45); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--copper { --b-bg: var(--copper-2); --b-fg: #1f140b; }
.btn--ghost { --b-bg: transparent; --b-fg: currentColor; --b-line: currentColor; }
.btn--ghost-light { --b-bg: rgba(255,255,255,.08); --b-fg: var(--on-night); --b-line: rgba(255,255,255,.32); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--ghost-light:hover { --b-bg: rgba(255,255,255,.16); }
.btn--sm { min-height: 40px; padding: .55rem 1rem; font-size: .88rem; }

.play-dot {
  width: 30px; height: 30px; margin-left: -.55rem; border-radius: 50%;
  display: grid; place-items: center; background: rgba(0,0,0,.12);
}
.btn--copper .play-dot { background: rgba(31, 20, 11, .14); }
.play-dot svg { width: 12px; height: 12px; margin-left: 2px; }

/* --------------------------------------------------------------------------
   Top bar
   -------------------------------------------------------------------------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem var(--gr) .7rem var(--gl);
  padding-top: max(.7rem, env(safe-area-inset-top, 0px));
  color: var(--on-night);
  transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
}
html:not(.js) .top { position: absolute; }
.js .js-hide { display: none; }
.top.is-solid {
  background: rgba(246, 242, 235, .88);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.top.is-dark {
  background: rgba(18, 16, 13, .78);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}
.icon-btn.is-copied { background: var(--copper-2); color: #1f140b; border-color: var(--copper-2); }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; }
.brand b { font: 400 1.35rem/1 var(--serif); letter-spacing: -.01em; }
.brand span { font: 600 .66rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; opacity: .78; }
.top nav { display: none; gap: .3rem; }
.top nav a {
  text-decoration: none; font-size: .88rem; font-weight: 500; padding: .5rem .8rem; border-radius: 999px;
  opacity: .86; transition: opacity .2s, background .2s;
}
.top nav a:hover { opacity: 1; background: rgba(127, 127, 127, .14); }
.top__actions { display: flex; align-items: center; gap: .5rem; }
.top .btn { --b-bg: var(--on-night); --b-fg: var(--night); }
.top .btn svg { width: 16px; height: 16px; }
.top.is-solid .btn { --b-bg: var(--ink); --b-fg: var(--paper); }
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 30%, transparent);
  background: transparent; cursor: pointer; transition: background .2s;
}
.icon-btn:hover { background: rgba(127, 127, 127, .16); }
.icon-btn svg { width: 18px; height: 18px; }
@media (min-width: 1040px) { .top nav { display: flex; } }
@media (max-width: 520px) { .top .btn .lbl-long { display: none; } }
@media (min-width: 521px) { .top .btn .lbl-short { display: none; } }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  background: var(--night); color: var(--on-night);
}
.hero__slides { position: absolute; inset: 0; z-index: -2; }
.hero__slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.8s var(--ease);
  transform-origin: var(--fx, 50%) var(--fy, 50%);
}
.hero__slides img.is-on { opacity: 1; }
.js .hero__slides img.is-on { animation: drift 11s linear both; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.12); } }

.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 9, 7, .55) 0%, rgba(10, 9, 7, 0) 22%),
    linear-gradient(0deg, rgba(10, 9, 7, .92) 0%, rgba(10, 9, 7, .7) 38%, rgba(10, 9, 7, .38) 72%, rgba(10, 9, 7, .22) 100%),
    linear-gradient(90deg, rgba(10, 9, 7, .5) 0%, rgba(10, 9, 7, 0) 60%);
}
@media (max-width: 1039px) {
  /* Text covers most of the photo on narrow screens, so darken it evenly. */
  .hero::after {
    background:
      linear-gradient(0deg, rgba(10, 9, 7, .94) 0%, rgba(10, 9, 7, .74) 40%, rgba(10, 9, 7, .74) 75%, rgba(10, 9, 7, .62) 100%);
  }
}
.hero__inner {
  width: 100%; padding: 7rem var(--gr) clamp(1.5rem, 4vw, 3rem) var(--gl);
  display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: end;
  max-width: 1500px; margin-inline: auto;
}
/* Grid items default to min-width:auto, so one long unbreakable line (the slide caption) would widen the whole column. */
.hero__inner > * { min-width: 0; }
@media (min-width: 1040px) { .hero__inner { grid-template-columns: 1fr minmax(360px, 420px); } }
.hero h1 { margin: 1rem 0 1.1rem; max-width: 13ch; text-wrap: balance; }
.hero h1 em { color: var(--copper-2); }
.hero .eyebrow { color: #ffd8b8; }
@media (min-width: 900px) and (orientation: landscape) { .hero__inner { grid-template-columns: 1fr minmax(340px, 400px); } }
@media (orientation: landscape) and (max-height: 520px) {
  .hero__inner { padding-top: 5rem; grid-template-columns: 1fr minmax(280px, 340px); }
  .hero h1 { font-size: clamp(2rem, 5vw, 2.6rem); margin: .6rem 0 .7rem; }
  .hero__sub { display: none; }
  .hero__ctas { margin-top: 1rem; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: .9rem; }
  .stats div:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 699px) and (max-height: 520px) { .hero__inner { grid-template-columns: minmax(0, 1fr); } }
.hero__sub { max-width: 46ch; color: var(--on-night-2); font-size: clamp(1rem, 1.3vw, 1.12rem); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

.price-card {
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(1.2); backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid var(--glass-line); border-radius: 22px;
  padding: clamp(1.1rem, 2.2vw, 1.6rem);
}
.price-card__label { font: 600 .7rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--on-night-2); }
.price { font: 330 clamp(2.3rem, 4vw, 3.1rem)/1 var(--serif); letter-spacing: -.02em; margin-top: .45rem; }
.price-card__row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin-top: .7rem; }
.price-drop {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .78rem; font-weight: 600; color: #ffd8b8;
  background: rgba(226, 168, 119, .16); border: 1px solid rgba(226, 168, 119, .34);
  padding: .3rem .6rem; border-radius: 999px;
}
.price-drop svg { width: 13px; height: 13px; }
.price-card__was { font-size: .8rem; color: var(--on-night-2); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 1.2rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--glass-line); }
.stats div { display: flex; flex-direction: column; gap: .15rem; padding-right: .5rem; }
.stats div + div { padding-left: .8rem; border-left: 1px solid var(--glass-line); }
.stats dt { order: 2; font-size: .72rem; color: var(--on-night-2); letter-spacing: .04em; }
.stats dd { order: 1; margin: 0; font: 400 1.35rem/1.1 var(--serif); white-space: nowrap; }
@media (max-width: 420px) {
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: .9rem; }
  .stats div:nth-child(3) { padding-left: 0; border-left: 0; }
}

.hero__meta {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  grid-column: 1 / -1; padding-top: 1.1rem; border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .8rem; color: var(--on-night-3);
}
.hero__caption { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.hero__caption span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__pause {
  flex: none; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; cursor: pointer;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(0, 0, 0, .25); color: var(--on-night);
}
.hero__pause:hover { background: rgba(255, 255, 255, .14); }
.hero__pause svg { width: 13px; height: 13px; }
.motion-off .hero__slides img, .motion-off .hero__ticks i::after, .motion-off .stage-img, .motion-off .home-pin .pulse { animation-play-state: paused !important; }
.hero__ticks { display: flex; gap: 6px; }
.hero__ticks[hidden] { display: none; }
.hero__ticks i { width: 22px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.25); overflow: hidden; position: relative; }
.hero__ticks i.is-on::after {
  content: ""; position: absolute; inset: 0; background: var(--on-night);
  transform-origin: left; animation: tick var(--tick, 7s) linear forwards;
}
@keyframes tick { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.scroll-cue { display: none; align-items: center; gap: .5rem; text-decoration: none; }
.scroll-cue svg { width: 14px; height: 14px; animation: bob 2.4s var(--ease) 2; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (min-width: 700px) { .scroll-cue { display: inline-flex; } }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.section__head { display: grid; gap: 1.1rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); max-width: 760px; }
.section__head p:not(.eyebrow) { color: var(--ink-2); font-size: 1.05rem; max-width: 60ch; }
.dark { background: var(--night); color: var(--on-night); }
.dark .section__head p:not(.eyebrow) { color: var(--on-night-2); }
.paper-2 { background: var(--paper-2); }

/* Intro */
.intro { display: grid; gap: clamp(2rem, 5vw, 5rem); }
@media (min-width: 960px) { .intro { grid-template-columns: 1.25fr 1fr; align-items: start; } }
.intro .lede { margin-top: 1.2rem; text-wrap: pretty; }
.intro__body { display: grid; gap: 1rem; color: var(--ink-2); }
.facts-strip { display: grid; grid-template-columns: 1fr; gap: 1px; margin-top: clamp(2.5rem, 5vw, 4rem); background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact { display: flex; gap: .9rem; align-items: flex-start; padding: 1.25rem 1.3rem; background: var(--paper); }
.fact svg { width: 26px; height: 26px; flex: none; color: var(--copper); margin-top: 2px; }
.fact b { display: block; font-weight: 600; font-size: .98rem; }
.fact span { display: block; color: var(--ink-3); font-size: .88rem; line-height: 1.5; margin-top: .1rem; }
@media (min-width: 600px) { .facts-strip { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .facts-strip { grid-template-columns: repeat(3, 1fr); } }

/* --------------------------------------------------------------------------
   Walkthrough — sticky stage with chapter cards scrolling over it
   -------------------------------------------------------------------------- */
.walk-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; }
.walk-head .section__head { margin-bottom: 0; }

.walk { position: relative; background: var(--night); color: var(--on-night); overflow: clip; }
@supports not (overflow: clip) { .walk { clip-path: inset(0); } }
.walk__stage { display: none; }
.walk__beats { position: relative; }

/* No-JS / fallback layout: an editorial stack of photos with text. */
.chapter { padding: clamp(3rem, 6vw, 5rem) var(--gr) clamp(3rem, 6vw, 5rem) var(--gl); max-width: 1100px; margin-inline: auto; }
.beat { display: grid; gap: 1rem; margin-bottom: 2.5rem; }
.beat__img { border-radius: var(--radius); overflow: hidden; background: var(--night-3); }
.beat__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card { display: grid; gap: .7rem; }
.card__num { font: 500 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--copper-2); display: flex; gap: .6rem; align-items: center; }
.card__num span { color: var(--on-night-2); }
.card h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.05; font-weight: 340; }
.card p { color: var(--on-night-2); font-size: .98rem; }
.card--caption { display: block; font-size: .93rem; line-height: 1.55; color: var(--on-night-2); }
.card--caption b { display: block; margin-bottom: .2rem; font: 400 1.15rem/1.2 var(--serif); color: var(--on-night); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .3rem 0 0; padding: 0; list-style: none; }
.chips li { font-size: .78rem; font-weight: 500; padding: .32rem .66rem; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: var(--on-night); }

/* JS layout. The stage is as tall as the large viewport (lvh), so no strip of
   background shows when a phone toolbar collapses mid-scroll. A sticky element
   is its own stacking context, so the rail lives in a separate sticky dock
   (z-index 2) that sits above the scrolling cards (z-index 1). */
.rail-dock { display: none; }
.js .rail-dock {
  display: block; position: sticky; top: 0; z-index: 2; pointer-events: none;
  height: 100vh; height: 100lvh; margin-bottom: -100vh; margin-bottom: -100lvh;
}
.js .walk__stage {
  display: block; position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden;
  background: var(--night);
}
.js .walk__beats { margin-top: -100vh; margin-top: -100lvh; z-index: 1; pointer-events: none; }
.walk__frames { position: absolute; inset: 0; overflow: hidden; }
.js .chapter { padding: 0; max-width: none; }
.js .beat {
  min-height: 100vh; min-height: 100svh; margin: 0;
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 6.5rem var(--gr) max(clamp(1.25rem, 5vh, 3rem), env(safe-area-inset-bottom, 0px)) var(--gl);
  pointer-events: none;
}
.js .beat--follow { min-height: 78vh; min-height: 78svh; }
.js .beat__img { display: none; }
.js .card {
  pointer-events: auto;
  width: min(100%, 440px);
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid var(--glass-line); border-radius: 20px;
  padding: clamp(1.1rem, 2.4vw, 1.7rem);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
  transition: opacity .6s var(--ease), transform .8s var(--ease-out);
}
.js .card--caption { width: auto; max-width: min(100%, 440px); padding: .85rem 1.1rem; border-radius: 14px; }
@media (max-width: 899px) { .js .card { background: rgba(20, 18, 15, .75); } }
@media (min-width: 900px) {
  /* On wide screens the card in focus stands out; the others stay readable. */
  .js .card { opacity: .55; transform: translateY(18px); }
  .js .beat.is-active .card { opacity: 1; transform: none; }
  /* Opt-in: dims only the main out-of-focus cards (still above 4.5:1); caption cards stay fully opaque. */
  .js .walk--clear .card { opacity: .86; }
  .js .walk--clear .card--caption { opacity: 1; }
  .js .walk--clear .beat.is-active .card { opacity: 1; }
  .js .beat { align-items: center; padding-left: max(var(--gl), calc((100vw - 1400px) / 2)); }
  .js .beat--follow { align-items: flex-end; padding-bottom: 3.5rem; }
}

.stage-img {
  max-width: none; /* the global img rule would cap this 104% box at 100% and leave a band on the right */
  position: absolute; inset: -2%; width: 104%; height: 104%; object-fit: cover;
  opacity: 0; transform: scale(1.08);
  transform-origin: var(--fx, 50%) var(--fy, 50%);
  transition: opacity 1.1s var(--ease), transform 1.4s var(--ease-out);
}
.stage-img.is-on, .stage-img.is-on + .stage-img { will-change: opacity, transform; }
.stage-img.is-on { opacity: 1; transform: scale(1.0); animation: walk-in 14s linear .9s forwards; }
.stage-img.is-past { opacity: 0; transform: scale(1.18); }
@keyframes walk-in { from { transform: scale(1.0); } to { transform: scale(1.1); } }
/* Portrait screens only see a slice of each landscape photo, so look around
   the room instead. The image keeps its own proportions at full height and
   slides sideways (a compositor-only transform). It starts on the focal
   point, swings about 12% of the photo toward the side with more of the room
   (--pan, set by tour.js), comes back, and rests on the focal point. Cards
   and the rail skip the backdrop blur here, so nothing re-blurs every frame. */
@media (max-aspect-ratio: 4/5) {
  .stage-img {
    inset: 0 auto 0 0; width: auto; height: 100%; max-width: none; aspect-ratio: var(--ar, 4 / 3);
    --x0: clamp(calc(100vw - 100%), calc(50vw - var(--fxn, 50) * 1%), 0px);
    --x1: clamp(calc(100vw - 100%), calc(50vw - (var(--fxn, 50) + var(--pan, 12)) * 1%), 0px);
    transform: translateX(var(--x0));
    transition: opacity 1.1s var(--ease);
  }
  .stage-img.is-on { transform: translateX(var(--x0)); animation: look 14s ease-in-out .6s 2 alternate both; }
  .stage-img.is-past { transform: translateX(var(--x0)); }
  .js .card { background: rgba(20, 18, 15, .84); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .js .rail { background: rgba(20, 18, 15, .86); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@keyframes look {
  from { transform: translateX(var(--x0)); }
  to   { transform: translateX(var(--x1)); }
}
.walk.is-away .stage-img { animation-play-state: paused; }
.walk__stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(10, 9, 7, .7) 0%, rgba(10, 9, 7, 0) 45%),
    linear-gradient(180deg, rgba(10, 9, 7, .5) 0%, rgba(10, 9, 7, 0) 18%);
}
@media (min-width: 900px) {
  .walk__stage::after {
    background:
      linear-gradient(90deg, rgba(10, 9, 7, .62) 0%, rgba(10, 9, 7, .12) 42%, rgba(10, 9, 7, 0) 60%),
      linear-gradient(180deg, rgba(10, 9, 7, .45) 0%, rgba(10, 9, 7, 0) 16%),
      linear-gradient(0deg, rgba(10, 9, 7, .45) 0%, rgba(10, 9, 7, 0) 25%);
  }
}

/* Chapter rail: a dark pill on small screens, a backed list on large ones,
   so the labels never sit on a bright patch of photo. */
.rail { display: none; }
.js .rail {
  display: flex; position: absolute; pointer-events: auto;
  top: 4.6rem; left: var(--gl); right: var(--gr);
  align-items: center; gap: .75rem;
  padding: .3rem .3rem .3rem .95rem; border-radius: 999px;
  background: rgba(20, 18, 15, .7); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-size: .8rem; color: var(--on-night-2);
}
.rail__now { font-weight: 600; color: var(--on-night); white-space: nowrap; }
.rail__bar { flex: 1; height: 2px; background: rgba(255,255,255,.18); border-radius: 2px; overflow: hidden; }
.rail__bar i { display: block; height: 100%; width: 100%; background: var(--copper-2); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .3s linear; }
.rail ol { display: none; }
.rail__tools { display: flex; gap: .35rem; flex: none; }
.rail__tools .icon-btn { width: 36px; height: 36px; }
@media (min-width: 900px) and (min-height: 560px) {
  .js .rail {
    top: 50%; left: auto; right: var(--gr); transform: translateY(-50%);
    flex-direction: column; align-items: flex-end; gap: 0;
    padding: .7rem .9rem .8rem 1.1rem; border-radius: 18px; background: rgba(10, 9, 7, .72);
  }
  .rail__now, .rail__bar { display: none; }
  .rail__tools { align-self: flex-end; }
  .rail ol { display: flex; flex-direction: column; gap: .1rem; margin: 0 0 .7rem; padding: 0; list-style: none; }
  .rail a {
    display: flex; align-items: center; justify-content: flex-end; gap: .7rem;
    padding: .3rem 0; text-decoration: none; color: var(--on-night-2);
    font-size: .8rem; font-weight: 500; transition: color .3s;
  }
  .rail a::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; transition: transform .3s var(--ease), background .3s; }
  .rail a:hover { color: var(--on-night); }
  .rail a[aria-current="step"] { color: var(--on-night); font-weight: 700; }
  .rail a[aria-current="step"]::after { background: var(--copper-2); transform: scale(1.6); }
}

/* --------------------------------------------------------------------------
   Renovation highlights
   -------------------------------------------------------------------------- */
.reno { display: grid; gap: clamp(2rem, 5vw, 5rem); }
@media (min-width: 960px) {
  .reno { grid-template-columns: minmax(280px, .8fr) 1.2fr; }
  .reno .section__head { position: sticky; top: 7rem; align-self: start; }
}
.reno__list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.reno__list li { display: grid; grid-template-columns: 48px 1fr; gap: 1.1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line-2); }
.reno__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); color: var(--copper); }
.reno__icon svg { width: 24px; height: 24px; }
.reno__list h3 { font-size: 1.3rem; }
.reno__list p { color: var(--ink-2); margin-top: .35rem; }
.reno__photo { margin-top: 1.5rem; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-3); }
.reno__photo img { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------------------
   Details + estimator
   -------------------------------------------------------------------------- */
.details { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 1000px) { .details { grid-template-columns: 1.15fr .85fr; align-items: start; } }
.spec { display: grid; grid-template-columns: 1fr; margin: 0; border-top: 1px solid var(--line-2); }
@media (min-width: 640px) { .spec { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; } }
.spec div { display: flex; justify-content: space-between; gap: 1rem; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--ink-3); font-size: .92rem; }
.spec dd { margin: 0; font-weight: 600; text-align: right; font-size: .95rem; }
.includes { margin-top: 2rem; padding: 1.4rem 1.5rem; border-radius: var(--radius); background: var(--paper-2); }
.includes h3 { font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.includes ul { display: flex; flex-wrap: wrap; gap: .45rem; margin: .9rem 0 0; padding: 0; list-style: none; }
.includes li { display: inline-flex; align-items: center; gap: .4rem; padding: .42rem .75rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .86rem; font-weight: 500; }
.includes li svg { width: 14px; height: 14px; color: var(--copper); }
.includes p { margin-top: .9rem; font-size: .82rem; color: var(--ink-3); }
.includes__sale { margin-top: 1rem; font-size: .86rem; color: var(--ink-2); max-width: 62ch; }

.calc {
  background: var(--night); color: var(--on-night);
  border-radius: 24px; padding: clamp(1.3rem, 3vw, 2rem);
  box-shadow: 0 40px 80px -40px rgba(29, 26, 22, .55);
}
.calc h3 { font-size: 1.6rem; }
.calc > p { color: var(--on-night-2); font-size: .9rem; margin-top: .4rem; }
.calc__total { margin: 1.4rem 0 1.2rem; padding: 1.2rem 0; border-block: 1px solid rgba(255, 255, 255, .12); }
.calc__total span { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-night-3); font-weight: 600; }
.calc__total .calc__sum { display: block; font: 330 clamp(2.4rem, 5vw, 3.2rem)/1.05 var(--serif); margin-top: .35rem; }
.calc__total small { font-family: var(--sans); font-size: 1rem; color: var(--on-night-3); }
.field { display: grid; gap: .45rem; margin-bottom: 1.05rem; }
.field__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.field label { font-size: .86rem; color: var(--on-night-2); }
.field__note { font-size: .76rem; color: var(--on-night-2); min-height: 1.1em; }
.field .val { font-weight: 600; font-variant-numeric: tabular-nums; }
.field input[type="number"], .field select {
  width: 100%; min-height: 44px; padding: .55rem .8rem; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: var(--on-night);
  font: 600 1rem var(--sans);
}
.field select option { color: var(--ink); }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--copper-2) var(--fill, 0%), rgba(255, 255, 255, .18) var(--fill, 0%)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .18); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--copper-2); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--on-night); border: 4px solid var(--copper-2); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--on-night); border: 4px solid var(--copper-2); }
.breakdown { display: grid; gap: .55rem; margin: 1.2rem 0 0; font-size: .9rem; }
.breakdown div { display: flex; justify-content: space-between; gap: 1rem; }
.breakdown dt { color: var(--on-night-2); }
.breakdown dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.breakdown .sub dt, .breakdown .sub dd { color: var(--on-night-3); font-weight: 500; font-size: .82rem; }
.calc__note { margin-top: 1.1rem; font-size: .76rem; line-height: 1.5; color: var(--on-night-3); }
.calc noscript p { color: var(--on-night-2); margin-top: 1rem; }
.no-js-hide { display: none; }
.js .no-js-hide { display: block; }

/* --------------------------------------------------------------------------
   Building
   -------------------------------------------------------------------------- */
.mosaic { display: grid; gap: .6rem; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
@media (min-width: 800px) { .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: .8rem; } }
.mosaic a {
  position: relative; display: block; overflow: hidden; border-radius: 14px;
  border: 0; padding: 0; background: var(--night-3); cursor: zoom-in; text-align: left;
}
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.mosaic a:hover img { transform: scale(1.05); }
.mosaic .tall { grid-row: span 2; }
.mosaic .wide { grid-column: span 2; }
/* Two columns: a wide tile beside the tall one would leave a hole, so it goes single. */
@media (max-width: 799px) { .mosaic .wide { grid-column: auto; } }
.mosaic span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem .9rem .75rem;
  background: linear-gradient(0deg, rgba(10, 9, 7, .9), rgba(10, 9, 7, 0));
  color: var(--on-night); font-size: .85rem; font-weight: 600;
}
.amenities { display: grid; grid-template-columns: 1fr; gap: 1px; margin-top: 2rem; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 600px) { .amenities { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .amenities { grid-template-columns: repeat(3, 1fr); } }
.amenities > div { display: flex; gap: .8rem; align-items: center; padding: 1.1rem 1.2rem; background: var(--night); }
.amenities svg { width: 24px; height: 24px; color: var(--copper-2); flex: none; }
.amenities b { font-weight: 600; font-size: .95rem; }
.amenities span { display: block; font-size: .82rem; color: var(--on-night-2); }
.amenity-note { margin-top: 1rem; max-width: 70ch; font-size: .8rem; color: var(--on-night-3); }
.building-facts { display: flex; flex-wrap: wrap; gap: 2rem 3rem; margin-top: 2.5rem; }
.building-facts div { display: grid; gap: .2rem; }
.building-facts b { font: 330 2.2rem/1 var(--serif); }
.building-facts span { font-size: .82rem; color: var(--on-night-2); }

/* --------------------------------------------------------------------------
   Neighbourhood
   -------------------------------------------------------------------------- */
.hood { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 1040px) { .hood { grid-template-columns: 1.35fr 1fr; align-items: start; } }
.map {
  position: relative; border-radius: 22px; overflow: hidden; background: #ece5d8;
  border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(29, 26, 22, .5);
}
@media (min-width: 1040px) { .map { position: sticky; top: 6rem; } }
.map svg { display: block; width: 100%; height: auto; }
.map__credit { position: absolute; right: .6rem; bottom: .5rem; font-size: .66rem; color: var(--ink-3); background: rgba(246, 242, 235, .85); padding: .15rem .45rem; border-radius: 6px; }
.map__credit a { color: inherit; }

.pin { cursor: pointer; }
.pin text { font: 700 13px var(--sans); fill: #fff; pointer-events: none; }
.pin .halo { opacity: 0; transition: opacity .25s; }
.pin.is-hot .halo, .pin:hover .halo { opacity: 1; }
.pin.is-dim { opacity: .18; }
@media (max-width: 699px) {
  /* The map is cropped around the suite on phones (tour.js), and the marks grow to stay legible. */
  .pin__b, .home-pin__b { transform: scale(1.5); }
  .map .m-phone { display: inline; }
  .map .m-road { font-size: 19px; }
  .map .m-road--big { font-size: 21px; }
  .map text.m-park { font-size: 18px; }
  .map .m-ring-l { font-size: 17px; }
}
.home-pin .pulse { transform-origin: center; transform-box: fill-box; opacity: 0; }
.map.is-in .home-pin .pulse { animation: pulse 2.6s var(--ease) .6s 1; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .55; } 100% { transform: scale(2.4); opacity: 0; } }

.tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.2rem; }
.tab {
  min-height: 40px; padding: .45rem .9rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); background: transparent; font-size: .86rem; font-weight: 600; color: var(--ink-2);
  transition: background .2s, color .2s, border-color .2s;
}
.tab:hover { border-color: var(--ink); color: var(--ink); }
.tab[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.places { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.places li { border-bottom: 1px solid var(--line); }
.places li[hidden] { display: none; }
.place {
  width: 100%; display: grid; grid-template-columns: 30px 1fr auto; gap: .9rem; align-items: center;
  padding: .85rem .2rem; background: none; border: 0; text-align: left; cursor: pointer;
  border-radius: 10px; transition: background .2s;
}
.place:hover, .place.is-hot { background: var(--paper-2); }
.place__n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 700; color: #fff; background: var(--c); }
.place[data-offmap] .place__n, .place[data-cropped] .place__n { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--c); }
.place b { display: block; font-weight: 600; font-size: .95rem; line-height: 1.3; }
.place small { display: block; color: var(--ink-3); font-size: .82rem; line-height: 1.4; margin-top: .1rem; }
.place__d { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.place__d b { font-size: .95rem; }
.place__d small { font-size: .76rem; white-space: normal; }
.place { grid-template-columns: 30px minmax(0, 1fr) auto; }
.place__d { max-width: 11.5rem; }
.place__d b { white-space: nowrap; }
.hood__note { margin-top: 1rem; font-size: .8rem; color: var(--ink-3); }

/* --------------------------------------------------------------------------
   Floor plan — the drawing with a photo hotspot in each room. The room list
   beside it is the accessible control; the hotspots respond to the pointer only.
   -------------------------------------------------------------------------- */
.plan { display: grid; gap: clamp(1.5rem, 3vw, 3rem); }
@media (min-width: 1040px) { .plan { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.plan__fig { margin: 0; }
@media (min-width: 1040px) { .plan__fig { position: sticky; top: 6rem; } }
.plan__sheet {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #fff;
  border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(29, 26, 22, .5);
}
.plan__sheet > img { width: 100%; height: 100%; object-fit: contain; }
.plan__fig figcaption { margin-top: .8rem; font-size: .8rem; color: var(--ink-3); }
.hs { position: absolute; border-radius: 4px; text-decoration: none; cursor: pointer; transition: background .25s; }
.hs:hover, .hs.is-hot { background: rgba(150, 84, 42, .15); }
.hs__dot {
  position: absolute; left: var(--dx, 50%); top: var(--dy, 50%); margin: -14px 0 0 -14px;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--copper); color: #fff; box-shadow: 0 0 0 3px rgba(150, 84, 42, .22), 0 5px 12px -4px rgba(0, 0, 0, .45);
  transition: transform .25s var(--ease);
}
.hs__dot svg { width: 14px; height: 14px; }
.hs:hover .hs__dot, .hs.is-hot .hs__dot { transform: scale(1.14); }
.hs__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--copper); opacity: 0; }
.plan__fig.is-in .hs__dot::after { animation: ping 2.4s var(--ease) .8s 1; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.2); opacity: 0; } }
@media (max-width: 699px) { .hs__dot { width: 22px; height: 22px; margin: -11px 0 0 -11px; } .hs__dot svg { width: 12px; height: 12px; } }
.hs--sm .hs__dot { margin: -9px 0 0 -9px; width: 18px; height: 18px; }
.hs--sm .hs__dot svg { width: 10px; height: 10px; }
.hs--sm .hs__dot::after { display: none; }
@media (max-width: 699px) { .hs--sm .hs__dot { margin: -8px 0 0 -8px; width: 16px; height: 16px; } .hs--sm .hs__dot svg { width: 9px; height: 9px; } }
.plan__rooms { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.plan__rooms li { border-bottom: 1px solid var(--line); }
.room {
  display: grid; grid-template-columns: 34px 1fr auto; gap: .9rem; align-items: center;
  padding: .9rem .4rem; border-radius: 10px; text-decoration: none; transition: background .2s;
}
.room:hover, .room.is-hot { background: var(--paper-2); }
.room__icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--copper); background: var(--paper-2); border: 1px solid var(--line); }
.room:hover .room__icon, .room.is-hot .room__icon { background: var(--paper); }
.room__icon svg { width: 17px; height: 17px; }
.room b { display: block; font-weight: 600; font-size: .97rem; line-height: 1.3; }
.room small { display: block; margin-top: .1rem; color: var(--ink-3); font-size: .82rem; line-height: 1.4; }
.room__dim { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.room__dim b { font-size: .95rem; }
.plan__fig figcaption a { color: inherit; }
.plan__note { margin-top: 1rem; font-size: .8rem; color: var(--ink-3); }

/* --------------------------------------------------------------------------
   Houses (first used by /realestate/23Myrtle). No floor plan exists for a
   house like this, so the layout is a room list per level, reusing .room.
   Also a "worth confirming" card and a timed open-house line (tour.js removes
   anything with data-until once that time has passed). All of this is new;
   no rule above it changes.
   -------------------------------------------------------------------------- */
.levels { display: grid; gap: clamp(1.75rem, 3vw, 2.75rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 820px) { .levels { grid-template-columns: repeat(2, 1fr); column-gap: clamp(2rem, 4vw, 4rem); } }
@media (min-width: 1100px) { .levels { grid-template-columns: repeat(3, 1fr); } }
.level__name { font: 380 1.6rem/1.15 var(--serif); }
.level__blurb { margin: .55rem 0 1.1rem; font-size: .92rem; color: var(--ink-2); max-width: 46ch; }
.level .room__dim small { color: var(--ink-3); }
.openhouse {
  margin: .9rem 0 0; padding: .65rem .85rem; border-radius: 12px; font-size: .88rem; line-height: 1.4;
  background: rgba(226, 168, 119, .14); border: 1px solid rgba(226, 168, 119, .4); color: var(--on-night);
}
.js .openhouse.no-js-hide { display: flex; align-items: center; gap: .6rem; }
.js .openhouse--plain.no-js-hide { display: inline-flex; margin-top: 1.3rem; background: rgba(255, 255, 255, .08); border-color: var(--glass-line); }
.openhouse svg { width: 18px; height: 18px; flex: none; color: var(--copper-2); }
.openhouse b { font-weight: 700; }
.confirm {
  margin-top: clamp(2.5rem, 5vw, 4rem); padding: clamp(1.3rem, 3vw, 2rem);
  border-radius: 22px; background: var(--night-2); border: 1px solid rgba(255, 255, 255, .12);
}
.confirm__head { display: flex; gap: 1rem; align-items: flex-start; }
.confirm__head > svg { width: 30px; height: 30px; flex: none; margin-top: .2rem; color: var(--copper-2); }
.confirm__head h3 { font-size: 1.55rem; }
.confirm__head p { margin-top: .4rem; max-width: 64ch; font-size: .9rem; color: var(--on-night-2); }
.confirm__list { display: grid; margin: 1.5rem 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .12); }
@media (min-width: 900px) { .confirm__list { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; } }
.confirm__list li { padding: 1rem 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: .9rem; line-height: 1.55; color: var(--on-night-2); }
.confirm__list b { display: block; margin-bottom: .15rem; font-weight: 600; font-size: .95rem; color: var(--on-night); }
.agent__name--2 { margin-top: 1.4rem; padding-top: 1.3rem; border-top: 1px solid var(--glass-line); }
.nb { white-space: nowrap; }
/* Header: the nav and the brand subtitle no longer wrap at 980-1060 px; the subtitle drops out on very small phones. */
@media (min-width: 700px) { .brand span, .top nav a { white-space: nowrap; } }
@media (max-width: 380px) { .brand span { display: none; } }
/* "Scroll to explore" landed with the last 72 px of the hero still under the header. */
#suite { scroll-margin-top: -80px; }
/* A button hidden by script (the pause-motion switch under reduced motion) must actually disappear. */
.icon-btn[hidden] { display: none; }
/* Opt-in (.walk--tight): shorter walkthrough cards on phones, so the photo stays visible. */
@media (max-width: 899px) {
  .js .walk--tight .card { padding: 1rem 1.1rem; gap: .5rem; }
  .js .walk--tight .card p { font-size: .93rem; line-height: 1.45; }
}
/* Selected filter tabs must stay distinguishable in Windows high-contrast mode. */
@media (forced-colors: active) {
  .tab[aria-pressed="true"] { forced-color-adjust: none; background: Highlight; color: HighlightText; border-color: Highlight; }
}
.paper-2 .includes { background: var(--paper); }
/* Mosaic captions sit on a taller scrim on phones, where they wrap onto two lines. */
@media (max-width: 799px) { .mosaic span { padding-top: 3rem; } }
/* Visible estimator error (the same text goes to the live region). */
.calc__err { margin: -.2rem 0 1rem; font-size: .86rem; line-height: 1.4; color: #ffb4a6; }
/* Print: the dark "Worth confirming" panel loses its background, so give it ink and an outline. */
@media print { .confirm { background: none !important; border: 1px solid #999; } .confirm, .confirm * { color: #1d1a16 !important; } }
/* Estimator inputs the script has flagged. */
.field input[aria-invalid="true"] { border-color: #ff9b8a; box-shadow: 0 0 0 2px rgba(255, 155, 138, .45); }

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */
.gallery-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.2rem; margin-bottom: 1.6rem; }
.gallery-head .section__head { margin-bottom: 0; }
.filters { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: none; max-width: 100%; }
.filters::-webkit-scrollbar { display: none; }
.dark .tab { border-color: rgba(255, 255, 255, .22); color: var(--on-night-2); flex: none; }
.dark .tab:hover { border-color: var(--on-night); color: var(--on-night); }
.dark .tab[aria-pressed="true"] { background: var(--on-night); color: var(--night); border-color: var(--on-night); }
.grid { display: grid; gap: .6rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, 1fr); gap: .8rem; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.grid figure { margin: 0; }
.grid figure[hidden] { display: none; }
.tile {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--avg, var(--night-3));
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out), opacity .4s; }
.tile:hover img { transform: scale(1.06); }
.tile::after {
  content: attr(data-label); position: absolute; left: .6rem; bottom: .55rem;
  font-size: .72rem; font-weight: 600; color: #fff; padding: .25rem .55rem; border-radius: 999px;
  background: rgba(10, 9, 7, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s;
}
.tile:hover::after, .tile:focus-visible::after { opacity: 1; transform: none; }
.grid figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact { position: relative; isolation: isolate; overflow: hidden; }
.contact__bg { position: absolute; inset: 0; z-index: -1; }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.contact__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--night) 10%, rgba(18, 16, 13, .75) 60%, rgba(18, 16, 13, .55)); }
.contact__inner { display: grid; gap: 2.5rem; align-items: end; }
@media (min-width: 960px) { .contact__inner { grid-template-columns: 1.2fr .8fr; } }
.contact h2 { max-width: 14ch; }
.contact__lede { color: var(--on-night-2); margin-top: 1.1rem; max-width: 48ch; font-size: 1.05rem; }
.contact .hero__ctas { margin-top: 2rem; }
.agent {
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: 22px; padding: 1.5rem;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.agent__role { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--on-night-3); }
.agent__name { font: 380 1.7rem/1.15 var(--serif); margin-top: .5rem; }
.agent__firm { color: var(--on-night-2); font-size: .92rem; margin-top: .2rem; }
.agent__lines { display: grid; gap: .5rem; margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--glass-line); font-size: .92rem; }
.agent__lines a { display: flex; justify-content: space-between; gap: 1rem; text-decoration: none; padding: .35rem 0; }
.agent__lines a span { color: var(--on-night-3); }
.agent__lines a:hover b { text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.foot { background: var(--night); color: var(--on-night-3); font-size: .8rem; padding: 2.5rem 0 3rem; border-top: 1px solid rgba(255, 255, 255, .08); }
.foot__inner { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .foot__inner { grid-template-columns: 1.6fr 1fr; align-items: end; } }
.foot p + p { margin-top: .6rem; }
.foot a { color: var(--on-night-2); }
.credit { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--on-night-2); font-weight: 600; }
.credit img { width: 22px; height: 22px; }
@media (min-width: 900px) { .foot__credit { text-align: right; } }

/* --------------------------------------------------------------------------
   Full-screen player
   -------------------------------------------------------------------------- */
.player {
  position: fixed; inset: 0; z-index: 90; background: #0b0a08; color: var(--on-night);
  display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: minmax(0, 1fr); overflow: hidden;
  opacity: 0; transition: opacity .4s var(--ease);
}
.player > * { min-width: 0; }
.player[hidden] { display: none; }
.player.is-open { opacity: 1; }
.player__viewport { position: absolute; inset: 0; overflow: hidden; touch-action: pan-y; }
.player__backdrop { position: absolute; inset: -10%; background-size: cover; background-position: center; filter: blur(40px) brightness(.45) saturate(1.2); transform: scale(1.1); transition: background-image .6s; }
.player__frame {
  position: absolute; inset: 0;
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
  transition: transform 1.2s var(--ease-out);
}
.player__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.12);
  transform-origin: var(--fx, 50%) var(--fy, 50%);
  transition: opacity .9s var(--ease), transform 1.1s var(--ease-out);
}
.player--contain .player__img { object-fit: contain; }
.player__img.is-on { opacity: 1; transform: scale(1.04); animation: player-drift 12s linear 1.1s forwards; }
.player__img.is-out { opacity: 0; transform: scale(1.22); }
.player__img.is-out.back { transform: scale(.94); }
@keyframes player-drift { from { transform: scale(1.04); } to { transform: scale(1.14); } }
.player--contain .player__img.is-on { animation: none; transform: scale(1); }

.player__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.75) 12%, rgba(0,0,0,0) 26%, rgba(0,0,0,0) 58%, rgba(0,0,0,.78) 100%); }
.player__top, .player__bottom { position: relative; z-index: 2; padding: .9rem var(--gr) .9rem var(--gl); }
.player__top { padding-top: max(.9rem, env(safe-area-inset-top, 0px)); }
.player__bottom { padding-bottom: max(.9rem, env(safe-area-inset-bottom, 0px)); }
.player__bottom::before { content: ""; position: absolute; inset: -3rem 0 0; z-index: -1; pointer-events: none; background: linear-gradient(0deg, rgba(0, 0, 0, .82), rgba(0, 0, 0, .6) 70%, transparent); }
.player__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.player__where { min-width: 0; }
.player__chapter { font: 600 .7rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--copper-2); }
.player__title { font: 380 clamp(1.25rem, 2.6vw, 1.8rem)/1.15 var(--serif); margin-top: .2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Phone player: let the photo title wrap onto two lines instead of ellipsising after a few letters. */
@media (max-width: 600px) {
  .player__title { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 1.15rem; line-height: 1.15; }
  .player__chapter { text-wrap: balance; }
}
.player__tools { display: flex; gap: .4rem; flex: none; }
.player .icon-btn { border-color: rgba(255, 255, 255, .28); background: rgba(0, 0, 0, .25); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.player .icon-btn:hover { background: rgba(255, 255, 255, .14); }
.player .icon-btn[aria-pressed="true"] { background: var(--on-night); color: var(--night); border-color: var(--on-night); }
.player__progress { position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 3; background: rgba(255, 255, 255, .08); }
.player__progress i { display: block; height: 100%; background: var(--copper-2); transform-origin: left; transform: scaleX(0); }
.player__progress i.run { animation: tick var(--dur, 6s) linear forwards; }

.player__nav { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gr) 0 var(--gl); pointer-events: none; }
.player__arrow {
  pointer-events: auto; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .3); cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .2s, transform .2s;
}
.player__arrow:hover { background: rgba(255, 255, 255, .16); transform: scale(1.05); }
.player__arrow svg { width: 22px; height: 22px; }
@media (hover: none) { .player__arrow { display: none; } }

.player__caption { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .6rem 1.5rem; margin-bottom: .9rem; }
.player__caption p { max-width: 62ch; color: var(--on-night-2); font-size: clamp(.9rem, 1.2vw, 1rem); text-shadow: 0 1px 2px rgba(0, 0, 0, .7), 0 0 14px rgba(0, 0, 0, .6); }
.player__next {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; padding: .45rem .9rem; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28); background: rgba(0, 0, 0, .3); color: var(--on-night); cursor: pointer;
  font-size: .84rem; font-weight: 600; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.player__next:hover { background: rgba(255, 255, 255, .14); }
.player__next svg { width: 15px; height: 15px; }
.player__next[hidden] { display: none; }

.strip { display: flex; gap: .45rem; overflow-x: auto; padding: .3rem 0 .2rem; scrollbar-width: none; scroll-behavior: smooth; }
.strip::-webkit-scrollbar { display: none; }
.strip__group { display: flex; gap: .35rem; align-items: flex-end; flex: none; }
.strip__group + .strip__group { padding-left: .45rem; border-left: 1px solid rgba(255, 255, 255, .14); }
.strip__label { writing-mode: vertical-rl; transform: rotate(180deg); font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--on-night-2); align-self: center; max-height: 56px; overflow: hidden; }
.strip button {
  flex: none; width: 76px; height: 56px; padding: 0; border-radius: 8px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; background: var(--night-3); opacity: .55; transition: opacity .25s, border-color .25s, transform .25s;
}
.strip button img { width: 100%; height: 100%; object-fit: cover; }
.strip button:hover { opacity: .9; }
.strip button[aria-current="true"] { opacity: 1; border-color: var(--copper-2); transform: translateY(-2px); }
@media (max-width: 600px), (max-height: 500px) { .strip button { width: 60px; height: 45px; } .strip__label { display: none; } }
@media (max-height: 500px) {
  .player__top, .player__bottom { padding-block: .5rem; }
  .player__caption { flex-wrap: nowrap; margin-bottom: .4rem; }
  .player__caption p { flex: 1 1 0; min-width: 0; max-width: none; font-size: .85rem; }
  .player__next { min-height: 34px; padding: .3rem .75rem; }
}

.player__hint {
  position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%);
  padding: .6rem 1rem; border-radius: 999px; background: rgba(0, 0, 0, .55); font-size: .85rem; font-weight: 600;
  pointer-events: none; opacity: 0; transition: opacity .5s;
}
.player__hint.show { opacity: 1; }

.player__top, .player__nav, .player__bottom, .player__shade { transition: opacity .35s var(--ease); }
.player.is-bare .player__top, .player.is-bare .player__nav, .player.is-bare .player__bottom, .player.is-bare .player__shade { opacity: 0; pointer-events: none; }

body.is-locked { overflow: hidden; }

.toast {
  position: fixed; left: 50%; bottom: max(1.25rem, env(safe-area-inset-bottom, 0px)); z-index: 95;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  padding: .6rem 1.1rem; border-radius: 999px; background: var(--ink); color: var(--paper);
  font-size: .88rem; font-weight: 600; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .5);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform 1s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .hero__slides img.is-on, .stage-img.is-on, .player__img.is-on { animation: none; }
  .js .hero__slides img.is-on { transform: none; }
  .player__img { transform: none !important; }
  .stage-img, .stage-img.is-on, .stage-img.is-past { transform: none; }
  .js .reveal { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) and (max-aspect-ratio: 4/5) {
  .stage-img, .stage-img.is-on, .stage-img.is-past { transform: translateX(var(--x0)); }
}

@media print {
  .top, .walk, .player, .map, .filters, .calc, .scroll-cue, .hero__ctas, .hero__ticks, .hero__pause, .contact__bg, .tabs, .rail-dock, .toast, .hs { display: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero { min-height: 0; background: none; }
  .hero::after, .hero__slides { display: none; }
  .dark, .foot { background: none; }
  [data-dark], [data-dark] *, .foot, .foot * { color: var(--ink) !important; text-shadow: none !important; }
  .price-card, .agent, .mosaic span, .amenities, .amenities div { background: none !important; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
}
