/* 414 Sunset Point — site styles
   Design language follows the reference site dcspaces.co.uk: warm cream page,
   soft rounded cards and panels, pill menu and buttons, bold tight grotesk
   headings (Satoshi), small spaced-out labels. The colours are our own:
   deep lake blue, mist and sand, taken from the Lake Keowee photos. */

/* ---------- Tokens ---------- */
:root {
  --bg: #F3F1EB;        /* page */
  --card: #FCFBF8;      /* white cards */
  --ink: #23292C;       /* text */
  --mut: #636A6C;       /* secondary text */
  --hair: rgba(35, 41, 44, .12);
  --accent: #1F3D47;    /* deep lake blue: selected states, progress line */
  --mist: #DCE6E5;      /* soft blue-green panel */
  --sand: #E4DACA;      /* warm panel */

  --edge: clamp(12px, 2vw, 24px);     /* page margin; cards run edge to edge inside it */
  --gap: clamp(10px, 1.3vw, 16px);    /* space between cards */
  --max: 1440px;
  --header-h: 60px;

  --r-lg: clamp(20px, 2.2vw, 28px);
  --r-md: clamp(14px, 1.6vw, 20px);
  --r-sm: 12px;

  --ease: cubic-bezier(.2, .7, .1, 1);
  --dur: 900ms;
  --stagger: 70ms;

  /* Photo height inside galleries; widths follow each photo's own shape. */
  --gh: clamp(220px, 62vw, 420px);
}
@media (min-width: 1180px) { :root { --header-h: 76px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Satoshi", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-synthesis: none;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

main { padding-bottom: clamp(48px, 6vw, 96px); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--edge); }
.section { padding-top: clamp(64px, 9vw, 128px); }
/* A link that opens the page at a chapter (…/#plan) stops below the fixed header. */
main section[id] { scroll-margin-top: var(--header-h); }

.skip {
  position: fixed; top: 8px; left: 8px; z-index: 60;
  padding: 10px 16px; border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 14px; text-decoration: none; transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--mut); margin-bottom: clamp(12px, 1.4vw, 18px);
}
.eyebrow--light { color: rgba(255, 255, 255, .86); }
.h2 {
  font-weight: 700; font-size: clamp(32px, 4.5vw, 60px); line-height: 1.02; letter-spacing: -.04em;
  max-width: 17ch; text-wrap: balance;
}
.h2--md { font-size: clamp(28px, 3.3vw, 46px); line-height: 1.05; max-width: 15ch; }
.h3 { font-weight: 700; font-size: clamp(22px, 2vw, 28px); line-height: 1.1; letter-spacing: -.03em; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; max-width: 34em; }

/* ---------- Small parts ---------- */
.card { background: var(--card); border-radius: var(--r-lg); padding: clamp(24px, 3.2vw, 44px); }
.panel { border-radius: var(--r-lg); padding: clamp(24px, 4.4vw, 64px); }
.panel--mist { background: var(--mist); }
.panel--sand { background: var(--sand); }

/* White label that sits on top of a photo. */
.tag {
  display: inline-block; padding: 7px 13px; border-radius: 999px;
  background: rgba(252, 251, 248, .94); color: var(--ink);
  font-size: 13px; font-weight: 500; line-height: 1.2; margin: 0;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; line-height: 1.2; }
.chips--glass li {
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 8px 8px 8px 22px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 500; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn__icon {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: rgba(35, 41, 44, .08); position: relative; transition: transform .35s var(--ease);
}
/* arrow drawn with a mask so it takes the button's text colour */
.btn__icon::after {
  content: ""; position: absolute; inset: 10px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12L12 4M5.5 4H12v6.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12L12 4M5.5 4H12v6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.btn:hover .btn__icon { transform: rotate(45deg); }
.btn--light { background: var(--card); color: var(--ink); }
.btn--glass {
  background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn--glass .btn__icon { background: rgba(255, 255, 255, .18); }
.btn--glass:hover { background: rgba(255, 255, 255, .24); }
.btn--dark { background: var(--accent); color: #fff; }
.btn--dark .btn__icon { background: rgba(255, 255, 255, .16); }
.btn--dark:hover { background: #17313a; }
.btn--sm { padding: 6px 6px 6px 18px; gap: 12px; font-weight: 700; letter-spacing: -.01em; }
.btn--sm .btn__icon { width: 32px; height: 32px; }
.btn--sm .btn__icon::after { inset: 9px; }

/* Section heading: label + big heading on the left, optional paragraph on the right. */
.sechead { display: grid; gap: 16px; margin-bottom: clamp(22px, 3vw, 40px); }
@media (min-width: 900px) {
  .sechead { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); column-gap: clamp(28px, 4vw, 64px); align-items: end; }
}
.note { font-size: 14px; color: var(--mut); }
.panel--dark { background: var(--accent); color: #fff; }

/* Rows of "name ...... value" (room areas, details). */
.rows > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding: 12px 0; border-top: 1px solid var(--hair); line-height: 1.35;
}
.rows dt { color: var(--mut); }
.rows dd { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
  .rows--two { columns: 2; column-gap: clamp(32px, 5vw, 80px); }
  .rows--two > div { break-inside: avoid; }
}

/* A photo with rounded corners and a label on top. Tapping it opens it full screen. */
.shot { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-md); background: #d9d6cf; }
.shot__clip { display: block; }
.shot img { transition: transform .9s var(--ease); }
.shot .tag { position: absolute; left: clamp(10px, 1vw, 14px); bottom: clamp(10px, 1vw, 14px); z-index: 1; }
img[data-zoom] { cursor: zoom-in; }
img[data-zoom]:focus-visible { outline-offset: -4px; outline-color: #fff; }

/* ---------- Header and menu ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  background: rgba(243, 241, 235, .9);
  -webkit-backdrop-filter: saturate(1.2) blur(14px); backdrop-filter: saturate(1.2) blur(14px);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--hair); }
.site-header__inner {
  display: flex; align-items: center; gap: 20px;
  height: var(--header-h); max-width: var(--max); margin: 0 auto; padding: 0 var(--edge);
}
.brand { display: none; flex-direction: column; line-height: 1.15; text-decoration: none; }
.brand strong { font-size: 18px; font-weight: 700; letter-spacing: -.03em; }
.brand span { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mut); margin-top: 3px; }
.menu {
  flex: 1; min-width: 0; display: flex; gap: 2px;
  overflow-x: auto; white-space: nowrap; scrollbar-width: none;
  margin: 0 calc(var(--edge) * -1); padding: 0 var(--edge);
}
.menu::-webkit-scrollbar { display: none; }
.menu a {
  padding: 9px 15px; border-radius: 999px; font-size: 15px; font-weight: 500; line-height: 1.2;
  text-decoration: none; opacity: .8;
  transition: background-color .3s ease, opacity .2s ease, box-shadow .3s ease;
}
.menu a:hover { opacity: 1; }
.menu a[aria-current="true"] { background: var(--card); opacity: 1; box-shadow: 0 1px 2px rgba(35, 41, 44, .08); }
.menu a[aria-disabled="true"] { opacity: .34; pointer-events: none; }
.site-header__cta { display: none; }
/* Click-to-call: always in the header. Phones show the word, wider screens the number. */
.call {
  flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 15px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em;
  text-decoration: none; white-space: nowrap; transition: background-color .25s ease;
}
.call:hover { background: #17313a; }
.call svg { width: 16px; height: 16px; flex: none; }
.call__num { display: none; }
@media (min-width: 600px) { .call__word { display: none; } .call__num { display: inline; } }
@media (max-width: 1179px) { .site-header__inner { gap: 10px; } .menu { margin-right: 0; padding-right: 6px; } }
/* The hero's call button carries a phone, not the arrow, and does not spin. */
.btn__icon--phone { display: grid; place-items: center; }
.btn__icon--phone::after { content: none; }
.btn__icon--phone svg { width: 16px; height: 16px; }
.btn:hover .btn__icon--phone { transform: none; }
.site-header__progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: 0 50%;
}
@media (min-width: 1180px) {
  .brand { display: flex; }
  .site-header__cta { display: inline-flex; }
  .menu { justify-content: center; margin: 0; padding: 0; }
}

/* ---------- Hero (deck page 1) ---------- */
.hero { padding: var(--header-h) var(--edge) 0; max-width: var(--max); margin: 0 auto; }
.hero__card {
  position: relative; isolation: isolate; overflow: hidden;
  height: calc(100vh - var(--header-h) - var(--edge)); height: calc(100svh - var(--header-h) - var(--edge));
  min-height: 540px; max-height: 1000px;
  border-radius: var(--r-lg); color: #fff; background: #1c2a30;
}
/* Taller than the card so it can drift on scroll without showing an edge. */
.hero__media { position: absolute; left: 0; right: 0; top: -8%; height: 116%; will-change: transform; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero__video.is-playing { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 22, 26, .12) 0%, rgba(12, 22, 26, 0) 30%, rgba(12, 22, 26, .84) 100%),
    linear-gradient(90deg, rgba(12, 22, 26, .38) 0%, rgba(12, 22, 26, 0) 62%);
}
.hero__content { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(22px, 4vw, 56px); }
.hero__title {
  font-weight: 700; font-size: clamp(46px, 8.6vw, 132px); line-height: .94; letter-spacing: -.05em;
}
/* Each title line sits in a clipping box so it can rise into view. */
.line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.line > span { display: block; }
.hero__place { margin-top: clamp(12px, 1.6vw, 20px); font-size: clamp(15px, 1.3vw, 18px); opacity: .92; }
.hero__foot {
  display: flex; flex-direction: column-reverse; gap: 22px;
  margin-top: clamp(22px, 3vw, 40px);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__facts { display: flex; flex-direction: column; gap: 12px; }
.hero__price { font-size: clamp(28px, 3.6vw, 48px); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
@media (min-width: 900px) {
  .hero__foot { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .hero__facts { align-items: flex-end; }
  .hero__facts .chips { justify-content: flex-end; }
}

/* ---------- The home (deck page 2) ---------- */
.intro { display: grid; gap: clamp(20px, 3vw, 40px); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--gap); }
.stat {
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  min-height: clamp(118px, 11vw, 156px);
  background: var(--card); border-radius: var(--r-md); padding: clamp(16px, 1.7vw, 24px);
}
.stat dt { font-size: 14px; font-weight: 500; color: var(--mut); line-height: 1.3; }
.stat dd {
  font-size: clamp(25px, 3.1vw, 44px); font-weight: 700; line-height: 1; letter-spacing: -.045em;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.split { display: grid; gap: var(--gap); margin-top: var(--gap); }

.photo { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-lg); background: #d9d6cf; aspect-ratio: 4 / 3; }
.photo__move { position: absolute; left: 0; right: 0; top: -7%; height: 114%; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .tag { position: absolute; left: clamp(12px, 1.4vw, 20px); bottom: clamp(12px, 1.4vw, 20px); z-index: 1; }

.checks { margin-top: clamp(14px, 1.6vw, 22px); }
.checks li { position: relative; padding: 12px 0 12px 32px; border-top: 1px solid var(--hair); line-height: 1.35; }
.checks li:first-child { border-top: 0; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 13px; width: 20px; height: 20px; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (min-width: 900px) {
  .intro { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: end; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .split .photo { aspect-ratio: auto; min-height: 100%; }
}

/* ---------- Gallery ----------
   Default (phones, reduced motion): a swipe carousel with native scrolling.
   Desktop: motion.js adds .is-pinned and moves the track sideways on scroll. */
.gallery { padding-top: clamp(64px, 9vw, 128px); }
.gallery__head { margin-bottom: clamp(22px, 3.4vh, 40px); }
.gallery__viewport {
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  scroll-snap-type: x mandatory; scroll-padding-left: var(--edge);
  -webkit-overflow-scrolling: touch;
}
.gallery__viewport::-webkit-scrollbar { display: none; }
.gallery__track { display: flex; gap: var(--gap); width: max-content; padding: 0 var(--edge); }
.gallery__item { flex: none; scroll-snap-align: start; }
.gallery__item img { height: var(--gh); width: auto; max-width: none; }
.gallery__bar { display: none; }

/* Desktop without the sideways motion (reduced-motion setting, or scripts not
   running): the photos simply wrap into rows of three. */
@media (min-width: 900px) {
  .gallery:not(.is-pinned) .gallery__viewport { overflow: visible; }
  .gallery:not(.is-pinned) .gallery__track { width: auto; flex-wrap: wrap; max-width: var(--max); margin: 0 auto; }
  .gallery:not(.is-pinned) .gallery__item { flex: 1 1 30%; }
  .gallery:not(.is-pinned) .gallery__item img { width: 100%; height: auto; }
}

.gallery.is-pinned { padding-top: 0; --gh: clamp(240px, calc(100vh - 380px), 620px); }
.gallery.is-pinned .gallery__pin {
  height: 100vh; padding-top: var(--header-h);
  display: flex; flex-direction: column; justify-content: center;
}
.gallery.is-pinned .gallery__head { width: 100%; }
.gallery.is-pinned .gallery__viewport { overflow: hidden; scroll-snap-type: none; }
.gallery.is-pinned .gallery__track { will-change: transform; }
.gallery.is-pinned .gallery__bar { display: block; width: 100%; margin-top: clamp(16px, 2.6vh, 26px); }
.gallery__bar span { display: block; height: 2px; border-radius: 2px; background: var(--hair); overflow: hidden; }
.gallery__bar i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- Mosaic ----------
   Phones: one swipe row, like the gallery. Desktop: every row is filled edge to
   edge, each photo as wide as its own shape needs (--ar = width ÷ height), so
   landscape and portrait photos sit side by side at the same height, uncropped. */
.mosaic {
  display: flex; gap: var(--gap); padding: 0 var(--edge);
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  scroll-snap-type: x mandatory; scroll-padding-left: var(--edge);
  -webkit-overflow-scrolling: touch;
}
.mosaic::-webkit-scrollbar { display: none; }
.mosaic__row { display: contents; }
.mosaic__item { flex: none; scroll-snap-align: start; }
.mosaic__item img { height: var(--gh); width: auto; max-width: none; }
@media (min-width: 900px) {
  .mosaic { display: grid; overflow: visible; max-width: var(--max); margin: 0 auto; scroll-snap-type: none; }
  .mosaic__row { display: flex; gap: var(--gap); }
  .mosaic__item { flex: var(--ar) 1 0%; min-width: 0; }
  .mosaic__item img { width: 100%; height: auto; }
}

/* ---------- The plan (deck pages 3–4) ---------- */
.plan { display: grid; gap: var(--gap); margin-top: var(--gap); }
.plan__stage { padding: clamp(14px, 1.6vw, 22px); }
.plan__tabs { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--bg); }
.tab {
  padding: 9px 16px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font-size: 15px; font-weight: 500; line-height: 1.2; color: var(--mut);
  transition: background-color .3s ease, color .3s ease;
}
.tab[aria-pressed="true"] { background: var(--accent); color: #fff; }
/* Both plans sit in the same box; only the chosen one is visible. */
.plan__sheet { position: relative; margin-top: clamp(12px, 1.4vw, 18px); aspect-ratio: 5 / 8; background: #fff; border-radius: var(--r-sm); overflow: hidden; }
.plan__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s linear .45s;
}
.plan__img.is-active { opacity: 1; visibility: visible; transition: opacity .45s ease, visibility 0s; }
.plan__levels { display: grid; gap: var(--gap); align-content: start; }
.level .h3 { margin-bottom: 14px; }
.level .eyebrow { margin-bottom: 8px; }
.plan__levels .note { padding: 6px 4px 0; }
@media (min-width: 900px) {
  .plan { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .plan__stage { position: sticky; top: calc(var(--header-h) + 12px); }
  .plan__sheet { aspect-ratio: auto; height: clamp(360px, calc(100vh - var(--header-h) - 150px), 780px); }
}

/* ---------- Two sliders side by side (deck page 10) ---------- */
.pair { display: grid; gap: clamp(18px, 2vw, 28px); }
@media (min-width: 900px) {
  .pair { display: flex; align-items: flex-start; }
  .pair .compare { flex: var(--grow, 1) 1 0%; min-width: 0; }
}
.pair + .note { margin-top: clamp(18px, 2vw, 28px); }

/* ---------- Closing panel (deck page 12) ---------- */
/* Details table with the map beside it (stacked on phones). */
.locate { display: grid; gap: var(--gap); }
.map {
  position: relative; isolation: isolate; overflow: hidden; transform: translateZ(0);
  border-radius: var(--r-lg); background: var(--mist); aspect-ratio: 4 / 3;
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (min-width: 900px) {
  .locate { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .map { aspect-ratio: auto; min-height: 100%; }
}
.locate + .closing { margin-top: var(--gap); }
.closing { display: grid; gap: clamp(24px, 4vw, 56px); }
.closing__line { font-size: clamp(36px, 6.4vw, 96px); font-weight: 700; line-height: .98; letter-spacing: -.045em; max-width: 12ch; }
.closing__contact { font-size: 17px; line-height: 1.6; }
.closing__contact a { color: inherit; }
.closing__name { font-size: clamp(22px, 2vw, 28px); font-weight: 700; letter-spacing: -.03em; }
@media (min-width: 900px) {
  .closing { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: end; }
}

/* ---------- Compare slider (before / after) ---------- */
.compare__box {
  --x: 50%;
  position: relative; isolation: isolate; overflow: hidden; aspect-ratio: var(--ar, 4 / 3);
  border-radius: var(--r-md); background: #cfc7b8;
  touch-action: pan-y; -webkit-user-select: none; user-select: none; cursor: ew-resize;
}
.compare__box img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  pointer-events: none; transition: opacity .22s ease;
}
/* The "before" photo lies on top and is cut off at the handle. */
.compare__before { clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.compare__box::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px;
  background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); pointer-events: none;
}
.compare__knob {
  position: absolute; top: 50%; left: var(--x); z-index: 2; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%; border: 0; padding: 0;
  display: grid; place-items: center;
  background: #fff; color: var(--ink); box-shadow: 0 4px 18px rgba(0, 0, 0, .28);
  cursor: ew-resize; touch-action: none; transition: transform .25s var(--ease);
}
.compare__box.is-dragging .compare__knob { transform: translate(-50%, -50%) scale(1.08); }
.compare__tag { position: absolute; bottom: clamp(10px, 1.2vw, 16px); z-index: 1; pointer-events: none; transition: opacity .25s ease; }
.compare__tag--l { left: clamp(10px, 1.2vw, 16px); }
.compare__tag--r { right: clamp(10px, 1.2vw, 16px); }
.compare__box.hide-l .compare__tag--l, .compare__box.hide-r .compare__tag--r { opacity: 0; }
.compare.is-swapping img { opacity: 0; }

/* ---------- Furnished or empty: one slider, many rooms (deck page 9) ---------- */
.viewer { display: grid; gap: clamp(18px, 2.4vw, 30px); }
.viewer > * { min-width: 0; }
.viewer__label { font-size: clamp(20px, 1.8vw, 26px); font-weight: 700; letter-spacing: -.03em; color: var(--ink); margin-top: 14px; }

/* Phones: one row you can swipe. Desktop: a wrapping grid. Both keep working with 10+ rooms. */
.viewer__thumbs {
  display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none;
  scroll-snap-type: x proximity;
  margin: -4px calc(clamp(24px, 4.4vw, 64px) * -1); padding: 4px clamp(24px, 4.4vw, 64px);
  scroll-padding-left: clamp(24px, 4.4vw, 64px);
}
.viewer__thumbs::-webkit-scrollbar { display: none; }
.viewer__thumbs li { flex: none; width: 108px; scroll-snap-align: start; }
.thumb { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.thumb img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm);
  opacity: .7; outline: 2px solid transparent; outline-offset: 2px;
  transition: opacity .25s ease, outline-color .25s ease;
}
.thumb span { display: block; margin-top: 8px; font-size: 13px; font-weight: 500; line-height: 1.25; color: var(--mut); transition: color .25s ease; }
.thumb:hover img, .thumb[aria-pressed="true"] img { opacity: 1; }
.thumb[aria-pressed="true"] img { outline-color: var(--accent); }
.thumb[aria-pressed="true"] span { color: var(--ink); }
.thumb:focus-visible { outline: none; }
.thumb:focus-visible img { outline-color: var(--accent); outline-style: dashed; }

@media (min-width: 900px) {
  .viewer {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: auto 1fr auto;
    grid-template-areas: "head stage" "thumbs stage" "note stage";
    column-gap: clamp(28px, 4vw, 64px);
  }
  .viewer__head { grid-area: head; }
  .viewer__stage { grid-area: stage; }
  .viewer__note { grid-area: note; }
  .viewer__thumbs {
    grid-area: thumbs; align-content: start;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 14px 12px;
    overflow: visible; margin: 0; padding: 0;
  }
  .viewer__thumbs li { width: auto; }
}

/* ---------- Full-screen photo viewer ---------- */
html.is-locked { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column;
  background: #101c21; color: #fff; opacity: 0; transition: opacity .3s ease;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 68px; padding: 12px var(--edge);
}
.lightbox__caption { font-size: 15px; font-weight: 500; }
.lightbox__buttons { display: flex; gap: 8px; flex: none; }
.lightbox__btn {
  width: 44px; height: 44px; border-radius: 50%; padding: 0; cursor: pointer;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .26); background: rgba(255, 255, 255, .08); color: #fff;
  transition: background-color .2s ease;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .2); }
.lightbox__btn:focus-visible { outline-color: #fff; }
.lightbox__stage { position: relative; flex: 1; min-height: 0; overflow: hidden; touch-action: none; cursor: zoom-in; }
.lightbox.is-zoomed .lightbox__stage { cursor: grab; }
.lightbox__img {
  position: absolute; inset: 0 var(--edge) var(--edge); margin: auto;
  max-width: calc(100% - var(--edge) * 2); max-height: calc(100% - var(--edge));
  width: auto; height: auto; border-radius: var(--r-sm);
  -webkit-user-select: none; user-select: none; will-change: transform;
  transition: opacity .25s ease;
}
.lightbox__img.is-smooth { transition: transform .35s var(--ease), opacity .25s ease; }
.lightbox__img.is-loading { opacity: 0; }

/* ---------- Motion ----------
   Everything below only hides content when scripts are running (.js),
   and motion.js adds .is-in when an element scrolls into view. */
.js [data-reveal] {
  opacity: 0; transform: translate3d(0, 28px, 0);
  transition:
    opacity var(--dur) var(--ease) calc(var(--i, 0) * var(--stagger)),
    transform var(--dur) var(--ease) calc(var(--i, 0) * var(--stagger));
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* "mask": the photo is uncovered from the bottom while it settles.
   The cut-out is on the first child, not on the element itself: browsers do not
   report a fully cut-out element as "on screen", so it would never be revealed. */
.js [data-reveal="mask"] { opacity: 1; transform: none; background: transparent; }
.js [data-reveal="mask"] > :first-child { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease); }
.js [data-reveal="mask"].is-in > :first-child { clip-path: inset(0 0 0 0); }
.js [data-reveal="mask"] img { transform: scale(1.16); transition: transform 1.7s var(--ease); }
.js [data-reveal="mask"].is-in img { transform: scale(1); }
.js [data-reveal="mask"] .tag { opacity: 0; transition: opacity .6s ease .8s; }
.js [data-reveal="mask"].is-in .tag { opacity: 1; }
/* Photos lift slightly under the cursor to show they can be opened. */
@media (hover: hover) {
  .js .shot[data-reveal="mask"].is-in:hover img, .gallery .shot:hover img { transform: scale(1.035); transition-duration: .9s; }
}

/* Hero entrance, started by .is-ready on <html>. */
.js .hero__media img { transform: scale(1.1); transition: transform 2.6s cubic-bezier(.16, .6, .2, 1); }
.js .hero .line > span { transform: translateY(108%); transition: transform 1.25s var(--ease) .1s; }
.js .hero .line:nth-child(2) > span { transition-delay: .2s; }
.js .hero__fade { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity 1s ease .55s, transform 1s var(--ease) .55s; }
.js .hero__foot.hero__fade { transition-delay: .75s; }
.js.is-ready .hero__media img, .js.is-ready .hero .line > span { transform: none; }
.js.is-ready .hero__fade { opacity: 1; transform: none; }

/* ---------- 3D model (js/model3d.js) ---------- */
.m3d { padding: clamp(14px, 1.6vw, 22px); }
.m3d__bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.m3d__stage {
  position: relative; margin-top: clamp(12px, 1.4vw, 18px); aspect-ratio: 4 / 5;
  border-radius: var(--r-sm); overflow: hidden;
  background: radial-gradient(120% 90% at 50% 38%, #fff 0%, #F6F4EF 62%, #ECE9E2 100%);
}
@media (min-width: 900px) {
  .m3d__stage { aspect-ratio: auto; height: clamp(480px, calc(100vh - var(--header-h) - 130px), 860px); }
}
.m3d__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; opacity: 0; transition: opacity .8s ease; }
.m3d__canvas:active { cursor: grabbing; }
.m3d.is-live .m3d__canvas { opacity: 1; }
.m3d__labels { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.m3d__label {
  position: absolute; left: 0; top: 0; opacity: 0; white-space: nowrap; will-change: transform;
  padding: 5px 10px; font-size: 12px; transition: opacity .25s ease;
  box-shadow: 0 6px 18px rgba(35, 41, 44, .12);
}
.m3d__hint { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 78px); pointer-events: none; transition: opacity .5s ease; box-shadow: 0 6px 18px rgba(35, 41, 44, .10); }
.m3d__hint.is-off, .m3d:not(.is-live) .m3d__hint { opacity: 0; }
.m3d__tools { position: absolute; right: 12px; bottom: 12px; display: grid; gap: 6px; }
.m3d:not(.is-live) .m3d__tools { visibility: hidden; }
.m3d__tools button {
  width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--hair); background: rgba(252, 251, 248, .94); color: var(--ink);
  font-size: 22px; font-weight: 500; line-height: 1; transition: background-color .25s ease;
}
.m3d__tools button:hover { background: #fff; }
.m3d__status { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; }
.m3d__status[hidden] { display: none; }
.m3d__note { padding: 10px 4px 0; }
@media (max-width: 480px) {
  .m3d__bar .tab { padding: 8px 12px; font-size: 14px; }
}

/* On paper everything is simply shown. */
@media print {
  .site-header { position: static; }
  .js [data-reveal], .js .hero__fade, .js .hero .line > span, .js [data-reveal="mask"] .tag {
    opacity: 1 !important; transform: none !important;
  }
  .js [data-reveal="mask"] > :first-child { clip-path: none !important; }
}

/* People who ask their device for less motion get plain, quick fades. */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-reveal="mask"] img,
  .js .hero__media img, .js .hero .line > span, .js .hero__fade {
    transform: none !important; transition: opacity .4s ease !important;
  }
  .js [data-reveal="mask"] > :first-child { clip-path: none !important; transition: none !important; }
  .btn__icon, .compare__knob { transition: none; }
}

/* ---- the film (16 Nov 2026) ---- */
.film__head { margin-bottom: clamp(20px, 3vw, 36px); }
.film { margin: 0; }
.film__video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #111; border-radius: var(--r-lg); object-fit: cover; }
.film__note { margin-top: 12px; font-size: .9rem; opacity: .7; }
