/* Aurea: Beyond, then within.

   Two worlds and one crossing. Outside (Beyond) the ground is the blue-grey
   mist of the bay at dusk with chocolate type; inside (Within) it is the
   brochure's chocolate with champagne type. Gold is a line and a ring, never
   a fill. The two grounds never blend: the page switches once, at the
   threshold. The renders are never filtered. */

:root {
  font-variant-numeric: lining-nums;
  /* outside */
  --mist: #E9EDEF;
  --mist-2: #DDE3E6;
  --mist-card: #F7F9FA;
  --ink: #2A1F1A;
  --ink-soft: #594D46;
  --gold-out: #7A5A2A;          /* gold that can carry text on the mist */
  /* inside */
  --choc: #33261F;
  --choc-2: #3D2E26;
  --choc-3: #4A392F;
  --cham: #ECDDC9;
  --cham-soft: #C2B19D;
  --gold-in: #D2B07A;           /* gold that can carry text on the chocolate */
  /* the ring and the line */
  --gold: #B8925A;
  --card: #F8F4EE;              /* the booking card and dialogs, inside and out */
  --hair-o: rgb(42 31 26 / 0.14);
  --hair-o2: rgb(42 31 26 / 0.28);
  --hair-i: rgb(236 221 201 / 0.14);
  --hair-i2: rgb(236 221 201 / 0.3);
  /* the collections, from the chart's legend */
  --c-prestige: #8FA88A;
  --c-signature: #D9A79A;
  --c-skyvilla: #B48A4E;

  --sc-canvas: var(--mist);
  --sc-surface: var(--mist-card);
  --sc-ink: var(--ink);
  --sc-ink-soft: var(--ink-soft);
  --sc-accent: var(--ink);
  --sc-accent-ink: #FFFFFF;
  --sc-font-display: "Gilda Display", "Didot", "Bodoni 72", Georgia, serif;
  --sc-font-text: "Jost", "Futura", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sc-font-mono: "Jost", system-ui, sans-serif;
  --sc-hairline: var(--hair-o);
  --sc-hairline-strong: var(--hair-o2);
  --sc-shadow-color: 20 30% 8%;
  --sc-r-sm: 3px; --sc-r-md: 6px; --sc-r-lg: 12px;

  --gut: clamp(1.25rem, 4.4vw, 4rem);
  --bar-h: 0px;
  --wrap-w: min(76rem, calc(100% - 2 * var(--gut)));
  --sect: clamp(4.5rem, 8.5vw, 8.5rem);
  --sky-top: #3F7CBE;
}

html { background: var(--mist); scroll-padding-top: calc(var(--bar-h) + 1rem); }
body { background: var(--mist); color: var(--ink); font-family: var(--sc-font-text); font-weight: 400; font-size: 1.0625rem; line-height: 1.62; }
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--gut); top: -4rem; z-index: 200; background: var(--card); color: var(--ink); padding: 0.6rem 1rem; border-radius: var(--sc-r-sm); }
.skip:focus { top: 0.5rem; }
p, figure, h1, h2, h3, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.wrap { width: var(--wrap-w); margin-inline: auto; }

/* ------------------------------------------------------------------ type -- */
.h2 {
  font: 400 clamp(2.1rem, 1.35rem + 2.3vw, 3.5rem)/1.05 var(--sc-font-display);
  letter-spacing: 0.005em; text-wrap: balance; max-width: 19ch;
}
.h3 { font: 600 0.74rem/1.25 var(--sc-font-text); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-out); }
.lede { font-size: clamp(1.07rem, 1rem + 0.3vw, 1.22rem); line-height: 1.62; max-width: 56ch; text-wrap: pretty; }
.small { font-size: 0.9rem; line-height: 1.6; color: var(--ink-soft); }
.credit { font-size: 0.74rem; letter-spacing: 0.03em; color: var(--ink-soft); }
.link-arrow {
  background: none; border: 0; padding: 0; cursor: pointer; color: inherit;
  font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1.5px; text-underline-offset: 0.3em;
}
.link-arrow::after { content: " \2192"; }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover { text-decoration-thickness: 2.5px; } }

/* --------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.8rem 1.6rem;
  background: var(--choc); color: var(--cham);
  font: 500 0.92rem/1 var(--sc-font-text); letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  box-shadow: var(--sc-e1);
  transition: background-color 160ms var(--sc-ease-out), color 160ms var(--sc-ease-out), transform 120ms var(--sc-ease-out), opacity 200ms var(--sc-ease-out);
}
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.55; cursor: progress; }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--choc-3); } }
.btn--block { width: 100%; }
.btn--sm { min-height: 2.5rem; padding: 0.5rem 1.05rem; font-size: 0.78rem; }
.btn--light { background: var(--card); color: var(--choc); }
@media (hover: hover) and (pointer: fine) { .btn--light:hover { background: #fff; } }
.within .btn--gold, .sec--within .btn { background: var(--gold-in); color: var(--choc); }
@media (hover: hover) and (pointer: fine) { .sec--within .btn:hover { background: #E2C592; } }

/* ---------------------------------------------------------------- frames -- */
.frame { position: relative; overflow: hidden; border-radius: var(--sc-r-md); background: var(--mist-2); box-shadow: var(--sc-e2); }
.frame > img, .frame__move > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.frame__move { height: calc(100% + 40px); margin-top: -20px; will-change: transform; }
figure.frame { display: grid; }
figure.frame > figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 3rem 1rem 0.8rem;
  display: flex; justify-content: space-between; align-items: baseline; gap: 0.25rem 1rem; flex-wrap: wrap;
  font-size: 0.86rem; color: #fff; background: linear-gradient(to top, rgb(20 14 10 / 0.86) 0, rgb(20 14 10 / 0.55) 48%, rgb(20 14 10 / 0) 100%);
}
figure.frame > figcaption .credit { color: rgb(255 255 255 / 0.85); }
.zoom { display: block; padding: 0; border: 0; cursor: zoom-in; text-align: left; }
.zoom__hint {
  position: absolute; right: 0.75rem; bottom: 0.75rem; padding: 0.45rem 0.85rem; border-radius: 999px;
  background: rgb(51 38 31 / 0.9); color: var(--cham); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.04em;
}
@media (hover: hover) and (pointer: fine) {
  .zoom > img { transition: transform 420ms var(--sc-ease-out); }
  .zoom:hover > img { transform: scale(1.015); }
}
[data-wipe] { will-change: clip-path; }

/* ================================================== THE THRESHOLD INDEX == */
/* Fixed at the top left: BEYOND over WITHIN with the threshold hairline
   between, a gold ring that travels down beside them as you read, the
   section named beside it, and the booking button. On phones, a slim bar. */
.ti {
  position: fixed; left: clamp(0.75rem, 1.6vw, 1.5rem); top: clamp(0.75rem, 1.6vw, 1.25rem); z-index: 60;
  display: grid; grid-template-columns: auto minmax(0, auto) auto; align-items: center; gap: 0.9rem;
  padding: 0.45rem 0.55rem 0.45rem 0.6rem; border-radius: 999px;
  background: rgb(247 249 250 / 0.86); color: var(--ink);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.5) inset, var(--sc-e2); border: 1px solid var(--hair-o);
  -webkit-backdrop-filter: blur(12px) saturate(1.1); backdrop-filter: blur(12px) saturate(1.1);
  transition: background-color 500ms var(--sc-ease-out), color 500ms var(--sc-ease-out), border-color 500ms var(--sc-ease-out), opacity 260ms, transform 300ms var(--sc-ease-out);
}
.ti__open { display: flex; align-items: center; gap: 0.6rem; padding: 0.15rem 0.5rem 0.15rem 0.35rem; background: none; border: 0; cursor: pointer; border-radius: 999px; }
.ti__track { position: relative; width: 14px; height: 46px; }
.ti__track::before { content: ""; position: absolute; left: 50%; top: 2px; bottom: 2px; width: 1px; background: currentColor; opacity: 0.22; }
.ti__ring {
  position: absolute; left: 0; top: 0; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--gold); background: transparent; box-sizing: border-box;
  transform: translate3d(0, calc(var(--t, 0) * 32px), 0); will-change: transform;
}
.ti__words { display: grid; gap: 0; justify-items: start; }
.ti__w { font: 400 0.95rem/1.05 var(--sc-font-display); letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.45; transition: opacity 400ms var(--sc-ease-out); }
.ti__w.is-on { opacity: 1; }
.ti__line { display: block; width: 100%; height: 1px; margin: 0.32rem 0; background: var(--gold); }
.ti__sec { font-size: 0.84rem; font-weight: 500; letter-spacing: 0.02em; white-space: nowrap; max-width: 16rem; overflow: hidden; text-overflow: ellipsis; }
.ti__book { margin-left: 0.15rem; }
.within .ti { background: rgb(51 38 31 / 0.86); color: var(--cham); border-color: var(--hair-i); box-shadow: 0 1px 0 rgb(255 255 255 / 0.05) inset, var(--sc-e2); }
.within .ti .btn { background: var(--gold-in); color: var(--choc); }
@media (hover: hover) and (pointer: fine) { .within .ti .btn:hover { background: #E2C592; } }
.ti.is-away { opacity: 0; transform: translateY(-8px); pointer-events: none; }

/* ================================================================= HERO == */
/* The aerial in a box of its own proportions (2762 x 1975); the sky plane
   is the picture's top 960 rows. The name sits between sky and land. */
.hero { position: relative; height: 100svh; min-height: 38rem; max-height: 70rem; overflow: hidden; background: #8EB9DD; isolation: isolate; container-type: size; color: var(--ink); }
.hero__scene { position: absolute; inset: 0; }
.hero__box {
  --ar: 1.3985;
  --bw: max(112cqw, calc(108cqh * var(--ar)));
  position: absolute; width: var(--bw); height: calc(var(--bw) / var(--ar));
  left: min(-1.5cqw, calc(50% - var(--bw) * 0.47)); top: calc(-0.03 * var(--bw) / var(--ar));
}
.hero__plane { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.hero__plane--sky { height: calc(100% * 960 / 1975); }
.hero__plane--land { height: 100%; }
.hero__plane > img { display: block; width: 100%; height: 100%; }
.hero__name {
  position: absolute; left: max(var(--gut), calc(var(--bw) * 0.035)); top: max(15%, 7.5rem);
  font: 400 clamp(3.6rem, 1.4rem + 6.4vw, 8.4rem)/0.9 var(--sc-font-display);
  letter-spacing: 0.2em; text-transform: uppercase; color: #2A1F1A;
  will-change: transform; pointer-events: none;
}
.hero__veil { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgb(20 30 45 / 0) 52%, rgb(16 14 14 / 0.22) 72%, rgb(16 12 10 / 0.72) 100%); }
.hero__copy {
  position: absolute; z-index: 3; left: var(--gut); bottom: clamp(2rem, 7vh, 4.5rem);
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.8rem; max-width: 30rem; color: #FBF6EE;
}
.hero__kicker { font: 600 0.74rem/1.3 var(--sc-font-text); letter-spacing: 0.24em; text-transform: uppercase; color: #F2DDB8; }
.hero__verse { font: italic 400 clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem)/1.15 var(--sc-font-display); }
.hero__lede { font-size: 1.04rem; line-height: 1.55; max-width: 32ch; color: rgb(251 246 238 / 0.94); }
.hero__copy .btn { margin-top: 0.4rem; }
.hero__credit { position: absolute; right: var(--gut); bottom: 0.9rem; z-index: 3; padding: 0.12rem 0.45rem; border-radius: 3px; background: rgb(20 14 10 / 0.6); color: #fff; }
.hero__copy > *, .hero__name { animation: rise 1000ms var(--sc-ease-out) both; }
.hero__copy > :nth-child(2) { animation-delay: 60ms; } .hero__copy > :nth-child(3) { animation-delay: 140ms; }
.hero__copy > :nth-child(4) { animation-delay: 220ms; } .hero__copy > :nth-child(5) { animation-delay: 300ms; }
@keyframes rise { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }

/* 4:3 to 16:10 windows */
@media (min-aspect-ratio: 6/5) and (max-aspect-ratio: 8/5) and (min-width: 861px) {
  .hero__box { left: min(-1.5cqw, calc(50% - var(--bw) * 0.44)); }
  .hero__name { font-size: clamp(3.2rem, 1rem + 6vw, 7rem); }
}
/* portrait and square windows: the picture at the foot, its sky carried on above */
@media (max-aspect-ratio: 6/5), (max-width: 860px) {
  .hero { background: linear-gradient(180deg, var(--sky-top) 0, #4B88C6 34%, #4B88C6 100%); max-height: none; }
  .hero__box { --bw: max(150cqw, calc(66cqh * var(--ar))); left: calc(50% - var(--bw) * 0.5); top: auto; bottom: calc(-0.02 * var(--bw) / var(--ar)); }
  .hero__plane--sky > img { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%); mask-image: linear-gradient(180deg, transparent 0, #000 12%); }
  .hero__name { left: 50%; top: -24%; translate: -50% 0; font-size: clamp(3rem, 15vw, 5.6rem); letter-spacing: 0.16em; }
  .hero__copy { left: var(--gut); right: var(--gut); max-width: none; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); gap: 0.6rem; }
  .hero__lede { max-width: 34ch; font-size: 0.98rem; }
  .hero__verse { font-size: clamp(1.35rem, 6vw, 1.8rem); }
  .hero__credit { right: var(--gut); bottom: auto; top: calc(var(--bar-h) + 0.6rem); }
  .hero__veil { background: linear-gradient(180deg, rgb(20 30 45 / 0) 46%, rgb(16 14 14 / 0.55) 62%, rgb(16 12 10 / 0.88) 100%); }
}
@media (max-width: 860px) {
  .hero__name { animation: none; }
}

/* ============================================================= SECTIONS == */
.sec { position: relative; padding: var(--sect) 0; overflow-x: clip; }
.sec--beyond { background: var(--mist); color: var(--ink); }
.sec--within { background: var(--choc); color: var(--cham); }
.sec--within .h3 { color: var(--gold-in); }
.sec--within .small, .sec--within .credit { color: var(--cham-soft); }
.sec--within .lede { color: var(--cham); }

/* --- Beyond: the Golden Mile and the developers --- */
.gm__head .lede { margin-top: 1rem; }
.then { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.75rem; border-top: 1px solid var(--hair-o2); position: relative; }
.then::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--gold); transform-origin: 0 50%; transform: scaleX(var(--draw, 1)); }
.then li { display: grid; align-content: start; gap: 0.45rem; }
.then__pic { aspect-ratio: 5 / 4; display: grid; place-items: end start; margin-bottom: 0.6rem; }
.then__pic img { width: 100%; height: 100%; object-fit: contain; object-position: left bottom; }
.then__year { font: 400 1.9rem/1 var(--sc-font-display); color: var(--gold-out); }
.then__t { font: 600 0.78rem/1.3 var(--sc-font-text); letter-spacing: 0.16em; text-transform: uppercase; }
.then li > p:last-child { font-size: 0.95rem; line-height: 1.55; color: var(--ink-soft); }
.gm { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, 0.8fr); gap: clamp(1.5rem, 3vw, 2.75rem); margin-top: clamp(3.5rem, 7vw, 6rem); align-items: start; }
.gm__pic { aspect-ratio: 1600 / 1050; }
.gm__mile p { margin-top: 0.75rem; color: var(--ink-soft); }
.mile { margin-top: 1rem; border-top: 1px solid var(--hair-o2); }
.mile > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.75rem; padding: 0.42rem 0; border-bottom: 1px solid var(--hair-o); font-size: 0.88rem; line-height: 1.4; }
.mile dt { color: var(--ink-soft); }
.gm__section { align-self: stretch; display: grid; align-content: end; }
.gm__section img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.gm__section figcaption { display: flex; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.5rem; font-size: 0.82rem; color: var(--ink-soft); }
.devs { margin-top: clamp(4rem, 8vw, 7rem); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: start; }
.devs__head .lede { margin-top: 1rem; }
.devs__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.devs__one { display: grid; gap: 1rem; align-content: start; }
.devs__one p { font-size: 0.93rem; line-height: 1.58; color: var(--ink-soft); }
.devs__logo { display: block; width: auto; }
.devs__logo--p { height: 84px; margin: -14px 0 -10px -16px; }
.devs__logo--f { height: 40px; margin-top: 10px; margin-bottom: 10px; }
.particulars { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--hair-o2); }
.particulars > div { padding: 1rem 1.25rem 1.1rem 0; border-bottom: 1px solid var(--hair-o); }
.particulars dt { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.particulars dd { margin-top: 0.4rem; font-size: 0.97rem; line-height: 1.45; }

/* --- Beyond: location --- */
.loc__head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.loc__head .lede { margin-top: 1rem; }
.loc { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start; }
.loc__map { aspect-ratio: 1600 / 1144; }
.loc__lists { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 2rem; }
.ways__list { margin-top: 0.75rem; border-top: 1px solid var(--hair-o2); }
.ways__list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.48rem 0; border-bottom: 1px solid var(--hair-o); font-size: 0.93rem; line-height: 1.4; }
.ways__list b { font-weight: 500; color: var(--ink-soft); text-align: right; }
.ways__list--plain li { display: block; }
.pano { margin: clamp(3.5rem, 7vw, 6rem) 0 0; overflow-x: clip; }
.pano__cap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 0.5rem 3rem; align-items: end; margin-bottom: clamp(3.5rem, 6vw, 5rem); }
.pano__t { font: 400 clamp(1.6rem, 1.2rem + 1.2vw, 2.4rem)/1.1 var(--sc-font-display); }
.pano__cap p { color: var(--ink-soft); max-width: 58ch; }
.pano__img { position: relative; }
.pano__img img { display: block; width: 100%; height: auto; }
.pano > figcaption { padding-top: 0.6rem; font-size: 0.86rem; color: var(--ink-soft); }
.pano__key { display: none; }
/* leaders drop from a label above the picture to the landmark, as in the brochure */
.pano__tags li {
  position: absolute; left: calc(var(--x) * 1%); top: -2.6rem; height: calc(var(--to) * 1% + 2.6rem);
  border-left: 1px solid rgb(42 31 26 / 0.55); padding-left: 0.4rem; pointer-events: none;
}
.pano__tags li::after { content: ""; position: absolute; left: -3px; bottom: -3px; width: 5px; height: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px rgb(42 31 26 / 0.6); }
.pano__tags li.is-up { top: -4.1rem; height: calc(var(--to) * 1% + 4.1rem); }
.pano__tags li.is-r { border-left: 0; border-right: 1px solid rgb(42 31 26 / 0.55); padding: 0 0.4rem 0 0; transform: translateX(-100%); }
.pano__tags li.is-r::after { left: auto; right: -3px; }
.pano__tags span { display: inline-block; font-size: 0.74rem; font-weight: 500; letter-spacing: 0.03em; color: var(--ink); white-space: nowrap; line-height: 1.2; }

/* ======================================================== THE THRESHOLD == */
.th-sec { position: relative; background: var(--choc); }
.th { position: relative; height: 330svh; }
.th__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; background: #2E2E2C; isolation: isolate; }
.th__hall, .th__iris { position: absolute; inset: 0; }
.th__hall { transform-origin: 0 0; will-change: transform; }
.th__hall img, .th__iris img { position: absolute; display: block; max-width: none; }
.th__iris { will-change: clip-path; clip-path: ellipse(0 0 at 50% 50%); }
.th__iris img { will-change: transform, opacity; transform-origin: 50% 40%; }
.th__ring { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.th__ring ellipse { fill: none; stroke: #E8C98E; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.th__copy { position: absolute; z-index: 3; left: var(--gut); bottom: clamp(2rem, 8vh, 5rem); max-width: 30rem; color: #FBF6EE; will-change: opacity, transform; }
.th__copy::before { content: ""; position: absolute; left: calc(-1 * var(--gut)); width: 100vw; top: -7rem; bottom: calc(-1 * clamp(2rem, 8vh, 5rem)); z-index: -1; background: linear-gradient(to top, rgb(16 12 10 / 0.86) 0, rgb(16 12 10 / 0.72) 45%, rgb(16 12 10 / 0) 100%); pointer-events: none; }
.th__copy .h2 { max-width: 14ch; }
.th__copy p:last-child { margin-top: 0.9rem; font-size: 1.02rem; line-height: 1.55; color: rgb(251 246 238 / 0.92); max-width: 40ch; }
.th__kicker { font: 600 0.74rem/1.3 var(--sc-font-text); letter-spacing: 0.24em; text-transform: uppercase; color: #F2DDB8; margin-bottom: 0.7rem; }
.th__copy--b { opacity: 0; }
.th__credit { position: absolute; right: var(--gut); bottom: 0.9rem; z-index: 3; padding: 0.12rem 0.45rem; border-radius: 3px; background: rgb(20 14 10 / 0.6); color: #fff; }

/* ======================================================= WITHIN: LEVELS == */
.lv { display: grid; grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr); grid-template-rows: auto 1fr; gap: clamp(1.5rem, 3vw, 2.5rem) clamp(2rem, 4.5vw, 4.5rem); align-items: start; }
.lv__head { grid-column: 1 / -1; }
.lv__head .lede { margin-top: 1rem; }
.lv__tower { position: relative; }
@media (min-width: 1101px) { .lv__tower { position: sticky; top: 6.5rem; } }
.lv__tower-img { position: relative; border-radius: var(--sc-r-md); overflow: hidden; box-shadow: var(--sc-e3); }
.lv__tower-img img { display: block; width: 100%; height: auto; }
.lv__tower figcaption { display: flex; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.6rem; font-size: 0.84rem; color: var(--cham-soft); }
.lv__marks li { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); right: 0; height: 0; }
.lv__marks li::before { content: ""; position: absolute; left: 0; right: 7.4rem; top: 0; height: 1px; background: rgb(236 213 170 / 0.75); }
.lv__marks button, .lv__marks span {
  position: absolute; right: 0.6rem; top: 0; transform: translateY(-50%);
  display: inline-flex; align-items: baseline; gap: 0.4rem; min-width: 6.6rem; min-height: 2.2rem; padding: 0.35rem 0.75rem;
  border-radius: 999px; border: 1px solid rgb(236 213 170 / 0.6); background: rgb(40 29 23 / 0.92); color: var(--cham);
  font-size: 0.82rem; letter-spacing: 0.04em; cursor: pointer; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: background-color 160ms var(--sc-ease-out), color 160ms var(--sc-ease-out);
}
.lv__marks span { cursor: default; opacity: 0.85; }
.lv__marks .is-2 span { transform: translateY(-10%); }
.lv__marks b { font: 400 1.05rem/1 var(--sc-font-display); color: var(--gold-in); }
.lv__marks button[aria-pressed="true"] { background: var(--gold-in); color: var(--choc); border-color: var(--gold-in); }
.lv__marks button[aria-pressed="true"] b { color: var(--choc); }
@media (hover: hover) and (pointer: fine) { .lv__marks button:hover { border-color: var(--gold-in); } }
.lv__tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.lv__tabs button {
  min-height: 2.75rem; padding: 0.5rem 1.1rem; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--hair-i2); color: var(--cham); font-size: 0.92rem;
  transition: background-color 140ms var(--sc-ease-out), color 140ms var(--sc-ease-out), border-color 140ms var(--sc-ease-out);
}
.lv__tabs b { font-weight: 600; margin-right: 0.25rem; }
.lv__tabs [aria-selected="true"] { background: var(--gold-in); border-color: var(--gold-in); color: var(--choc); }
@media (hover: hover) and (pointer: fine) { .lv__tabs button:hover { border-color: var(--gold-in); } }
.lv__panel { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(14rem, 1fr); gap: 1.5rem; margin-top: 1.25rem; align-items: start; }
.lv__sheet { position: relative; border-radius: var(--sc-r-md); overflow: hidden; background: #5F6B57; box-shadow: var(--sc-e3); }
.lv__img { display: block; width: 100%; }
.lv__img img { display: block; width: 100%; height: auto; }
.lv__rings { position: absolute; inset: 0; pointer-events: none; }
.lv__rings i { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: 2.6%; aspect-ratio: 1; min-width: 18px; border-radius: 50%; translate: -50% -50%; box-shadow: 0 0 0 2px #F3D9A6, 0 0 0 6px rgb(243 217 166 / 0.35); opacity: 0; scale: 1.6; transition: opacity 180ms var(--sc-ease-out), scale 260ms var(--sc-ease-out); }
.lv__rings i.is-on { opacity: 1; scale: 1.15; }
.lv__credit { position: absolute; right: 0.5rem; bottom: 0.4rem; padding: 0.1rem 0.4rem; border-radius: 3px; background: rgb(20 14 10 / 0.6); color: #fff !important; }
.lv__legend { border-top: 1px solid var(--hair-i2); }
.lv__legend li { display: grid; grid-template-columns: 2rem 1fr; align-items: baseline; padding: 0.42rem 0.4rem; border-bottom: 1px solid var(--hair-i); font-size: 0.93rem; line-height: 1.4; cursor: default; border-radius: 2px; transition: background-color 140ms var(--sc-ease-out); }
.lv__legend li::before { content: attr(data-n); font-weight: 600; color: var(--gold-in); font-variant-numeric: tabular-nums; }
.lv__legend li.is-on { background: rgb(210 176 122 / 0.16); }
.lv__legend small { display: block; color: var(--cham-soft); font-size: 0.82rem; }
.pools { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(1rem, 2vw, 1.5rem) clamp(1.25rem, 3vw, 2.5rem); margin-top: clamp(4rem, 8vw, 6.5rem); align-items: start; }
.pools__big { aspect-ratio: 16 / 9; }
.pools__copy { align-self: center; }
.pools__copy p, .pools__note p { margin-top: 0.75rem; color: var(--cham-soft); max-width: 44ch; }
.pools__a { aspect-ratio: 16 / 8; grid-column: 2; grid-row: 2; }
.pools__b { aspect-ratio: 16 / 8; grid-column: 1; grid-row: 2 / span 2; width: 82%; justify-self: end; }
.pools__note { grid-column: 2; grid-row: 3; }
.sky { margin: clamp(4rem, 8vw, 6.5rem) 0 0; }
.sky img { display: block; width: 100%; height: auto; }
.sky > figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem 2rem; flex-wrap: wrap; padding-top: 0.75rem; font-size: 0.92rem; color: var(--cham-soft); }
.sky > figcaption b { color: var(--cham); font-weight: 600; }

/* ========================================================= WITHIN: HOMES == */
.homes__head .lede { margin-top: 1rem; }
.colls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); margin-top: clamp(2rem, 4vw, 3rem); }
.colls li { padding-top: 1.1rem; border-top: 1px solid var(--gold); }
.colls__n { font: 400 1.7rem/1.1 var(--sc-font-display); color: var(--cham); }
.colls li p:last-child { margin-top: 0.5rem; color: var(--cham-soft); font-size: 0.97rem; }
.rooms { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); margin-top: clamp(2.5rem, 5vw, 3.75rem); align-items: start; }
.room img { display: block; width: 100%; height: auto; border-radius: var(--sc-r-md); }
.room figcaption { display: flex; justify-content: space-between; gap: 0.25rem 1rem; flex-wrap: wrap; padding-top: 0.55rem; font-size: 0.86rem; color: var(--cham-soft); }
.room--wide { grid-column: 1 / span 8; }
.room--tall { grid-column: 9 / span 4; align-self: end; }
.room--a { grid-column: 1 / span 6; }
.room--b { grid-column: 7 / span 6; margin-top: clamp(1rem, 4vw, 3rem); }
.brochure { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.brochure__card {
  display: inline-flex; align-items: center; gap: 1.25rem; padding: 0.75rem 1.5rem 0.75rem 0.75rem; border-radius: var(--sc-r-md);
  background: var(--choc-2); border: 1px solid var(--hair-i2); text-decoration: none; color: var(--cham);
  transition: transform 160ms var(--sc-ease-out), border-color 160ms var(--sc-ease-out);
}
.brochure__card img { width: 8.5rem; height: auto; border-radius: 3px; box-shadow: 0 0 0 1px var(--hair-i2); }
.brochure__text { display: grid; gap: 0.25rem; }
.brochure__text b { font: 400 1.3rem/1.2 var(--sc-font-display); font-weight: 400; }
.brochure__text span { font-size: 0.88rem; color: var(--cham-soft); }
@media (hover: hover) and (pointer: fine) { .brochure__card:hover { transform: translateY(-2px); border-color: var(--gold-in); } }

/* =================================================== WITHIN: FLOOR PLANS == */
.plans__head { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.plans__head .lede { margin-top: 1rem; }
.filter { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter button {
  min-height: 2.6rem; padding: 0.5rem 1rem; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--hair-i2); color: var(--cham); font-size: 0.92rem;
  transition: background-color 140ms var(--sc-ease-out), color 140ms var(--sc-ease-out), border-color 140ms var(--sc-ease-out);
}
.filter button span { color: var(--cham-soft); margin-left: 0.15rem; }
.filter [aria-checked="true"] { background: var(--gold-in); border-color: var(--gold-in); color: var(--choc); }
.filter [aria-checked="true"] span { color: rgb(51 38 31 / 0.75); }
@media (hover: hover) and (pointer: fine) { .filter button:hover { border-color: var(--gold-in); } }
.types { display: grid; grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); gap: 0.75rem; margin-top: 1.5rem; }
.types li[hidden] { display: none; }
.type {
  width: 100%; height: 100%; display: grid; grid-template-columns: 4.8rem 1fr; gap: 1rem; align-items: center; text-align: left;
  padding: 0.75rem 0.9rem 0.75rem 0.75rem; border-radius: var(--sc-r-md); cursor: pointer;
  background: var(--choc-2); border: 1px solid var(--hair-i); color: var(--cham);
  transition: border-color 140ms var(--sc-ease-out), background-color 140ms var(--sc-ease-out), transform 120ms var(--sc-ease-out);
}
.type:active { transform: scale(0.985); }
@media (hover: hover) and (pointer: fine) { .type:hover { border-color: var(--gold-in); background: var(--choc-3); } }
.type__thumb { width: 4.8rem; height: 4.8rem; border-radius: 3px; background: #fff; overflow: hidden; display: grid; place-items: center; }
.type__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 45%; }
.type__thumb--none { background: var(--choc-3); color: var(--gold-in); font: 400 1.6rem/1 var(--sc-font-display); }
.type__name { display: block; font: 400 1.2rem/1.2 var(--sc-font-display); }
.type__meta { display: block; margin-top: 0.2rem; font-size: 0.86rem; color: var(--cham-soft); line-height: 1.4; }
.type__left { display: inline-block; margin-top: 0.4rem; font-size: 0.82rem; font-weight: 600; color: var(--gold-in); }
.plans__dl { margin-top: 1.5rem; }

/* =================================================== WITHIN: AVAILABILITY == */
.avail__head { margin-bottom: 1.75rem; }
.avail__head .lede { margin-top: 1rem; }
.avail__num { color: var(--gold-in); }
.avail__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.avail__asat { max-width: 44ch; }
/* the tower, as the chart draws it: penthouses on top, the Sky Villas,
   Level 33 Sky, the upper homes, Level 17 Lounge, the lower homes, Level 3 */
.tower-chart { margin-top: 1.75rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.62fr); gap: 1.5rem 3rem; align-items: start; }
.tc { display: grid; grid-template-columns: 2rem repeat(6, minmax(0, 1fr)); gap: 3px; max-width: 34rem; }
.tc__lvl { display: grid; place-items: center end; padding-right: 0.35rem; font-size: 0.66rem; color: var(--cham-soft); font-variant-numeric: tabular-nums; }
.tc__cell { min-height: 1.05rem; border-radius: 2px; background: rgb(236 221 201 / 0.06); }
.tc__band { grid-column: 2 / -1; display: grid; place-items: center; min-height: 1.35rem; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-in); border-top: 1px solid var(--hair-i2); border-bottom: 1px solid var(--hair-i2); }
.tc__stack { text-align: center; font-size: 0.66rem; color: var(--cham-soft); padding-top: 0.25rem; font-variant-numeric: tabular-nums; }
.tc__cell--open {
  display: grid; place-items: center; padding: 0; border: 0; cursor: pointer; font: 600 0.6rem/1 var(--sc-font-text); color: var(--choc);
  transition: transform 120ms var(--sc-ease-out), opacity 200ms var(--sc-ease-out), box-shadow 140ms var(--sc-ease-out);
}
.tc__cell--open[data-coll="prestige"] { background: var(--c-prestige); }
.tc__cell--open[data-coll="signature"] { background: var(--c-signature); }
.tc__cell--open[data-coll="skyvilla"] { background: var(--c-skyvilla); color: #FFF7EA; }
.tc__cell--open.is-dim { opacity: 0.14; }
.tc__cell--open.is-hl { box-shadow: 0 0 0 2px var(--cham); }
@media (hover: hover) and (pointer: fine) { .tc__cell--open:hover { transform: scale(1.12); box-shadow: 0 0 0 2px var(--cham); position: relative; z-index: 2; } }
.tc__note { display: grid; gap: 1rem; align-content: start; }
.tc__key { display: grid; gap: 0.6rem; font-size: 0.9rem; color: var(--cham-soft); }
.tc__key span { display: inline-flex; align-items: center; gap: 0.6rem; }
.tc__key i { width: 1rem; height: 1rem; border-radius: 2px; flex: none; }
.tc__facts { border-top: 1px solid var(--hair-i2); }
.tc__facts div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--hair-i); font-size: 0.93rem; }
.tc__facts dt { color: var(--cham-soft); }
.tc__facts dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.avail__how { margin-top: 1.25rem; }

/* ============================================================ THE CLOSE == */
/* The last view arrives full width and draws in to a round window (the
   ring is gold); the booking sits beside it on the chocolate. */
.close { --eh: min(88svh, 58rem); padding-top: 0; padding-bottom: calc(var(--sect) * 0.9); background: var(--choc); color: var(--cham); }
.eye { position: relative; height: var(--eh); margin: 0; }
.eye__clip { position: absolute; inset: 0; clip-path: circle(150% at 50% 50%); will-change: clip-path; }
.eye__clip img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; display: block; }
.eye__ring { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.eye__ring circle { fill: none; stroke: var(--gold-in); stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: 0; }
.eye__cap { position: absolute; left: var(--gut); bottom: 0.9rem; display: flex; gap: 0.75rem; flex-wrap: wrap; font-size: 0.82rem; color: var(--cham-soft); }
.book { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(1.75rem, 4vw, 4rem); margin-top: calc(var(--eh) * -1 + clamp(3rem, 8vh, 6rem)); position: relative; align-items: start; }
.book__spacer { min-height: 1px; }
.book__side { display: grid; gap: 1.5rem; }
.book__intro .lede { margin-top: 1rem; color: var(--cham); }
.book__title { font-style: italic; }
.book__facts { margin-top: 1.5rem; border-top: 1px solid var(--hair-i2); }
.book__facts > div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--hair-i); font-size: 0.97rem; }
.book__facts dt { color: var(--cham-soft); }
.book__facts a { font-weight: 600; text-decoration-color: var(--gold-in); text-underline-offset: 0.25em; }

/* ----------------------------------------------------- the booking card -- */
.card { background: var(--card); color: var(--ink); border-radius: var(--sc-r-lg); }
.tb { position: relative; overflow: hidden; box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.55); }
.tb > * { border-top: 1px solid var(--hair-o2); }
.tb > :first-child, .tb > input, .tb > .hp { border-top: 0; }
.tb__head { padding: 1.4rem 1.5rem 1.1rem; border-top: 0 !important; box-shadow: inset 0 3px 0 var(--gold); }
.tb__title { font: italic 400 1.7rem/1.1 var(--sc-font-display); color: var(--ink); }
.tb__sub { margin-top: 0.45rem; font-size: 0.93rem; color: var(--ink-soft); }
.tb__interest { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 1.5rem; background: #EFE4D2; font-size: 0.92rem; }
.tb__interest[hidden] { display: none; }
.tb__interest-x { background: none; border: 0; padding: 0.25rem; font: inherit; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; color: var(--ink-soft); }
.when { border: 0; margin: 0; padding: 1.25rem 1.5rem; min-width: 0; }
.when__legend { padding: 0; margin-bottom: 1rem; float: left; width: 100%; font: 600 0.72rem/1.2 var(--sc-font-text); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-out); }
.when__legend + * { clear: both; }
.when__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 1.1rem; }
.when__tabs button {
  display: grid; gap: 0.3rem; text-align: left; padding: 0.65rem 0.85rem; min-height: 3.6rem;
  background: #fff; border: 1px solid var(--hair-o2); border-radius: var(--sc-r-sm); cursor: pointer; color: var(--ink);
  transition: border-color 140ms var(--sc-ease-out), background-color 140ms var(--sc-ease-out);
}
.when__n { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.when__v { font-size: 0.92rem; font-weight: 500; color: var(--ink-soft); }
.when__tabs button.is-set .when__v { color: var(--ink); }
.when__tabs [aria-selected="true"] { border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--gold); }
@media (hover: hover) and (pointer: fine) { .when__tabs button:hover { border-color: var(--ink); } }
.when__month { font-size: 0.92rem; font-weight: 600; margin-bottom: 0.75rem; }
.when__dow, .when__dates { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.35rem; }
.when__dow { font-size: 0.72rem; color: var(--ink-soft); text-align: center; margin-bottom: 0.35rem; }
.when__dates { margin-bottom: 1.1rem; }
.when__dates button, .when__times button {
  position: relative; font: 500 0.92rem/1 var(--sc-font-text); color: var(--ink);
  background: #fff; border: 1px solid var(--hair-o2); border-radius: var(--sc-r-sm);
  cursor: pointer; min-height: 2.75rem; padding: 0.3rem 0.2rem; font-variant-numeric: tabular-nums;
  transition: background-color 140ms var(--sc-ease-out), border-color 140ms var(--sc-ease-out), color 140ms var(--sc-ease-out);
}
.when__dates button { display: grid; place-items: center; align-content: center; gap: 0.1rem; }
.when__dates .m { font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.when__dates .pad { visibility: hidden; }
@media (hover: hover) and (pointer: fine) { .when__dates button:hover, .when__times button:hover { border-color: var(--ink); } }
.when__dates [aria-checked="true"], .when__times [aria-checked="true"] { background: var(--choc); border-color: var(--choc); color: var(--cham); }
.when__dates [aria-checked="true"] .m { color: rgb(236 221 201 / 0.8); }
.when__dates button[data-other]::after { content: ""; position: absolute; left: 50%; bottom: 0.26rem; width: 0.3rem; height: 0.3rem; margin-left: -0.15rem; border-radius: 50%; background: var(--gold); }
.when__times { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.35rem; }
.when__times button:disabled { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }
.when__native label { display: block; margin-top: 0.75rem; font-size: 0.92rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { padding: 0.8rem 1.5rem 0.95rem; min-width: 0; }
.field + .field { border-left: 1px solid var(--hair-o2); }
.field--wide { grid-column: 1 / -1; border-left: 0 !important; border-top: 1px solid var(--hair-o2); }
.field label { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.45rem; }
.field input {
  width: 100%; min-height: 2.9rem; padding: 0.65rem 0.8rem;
  background: #FCFAF7; border: 1px solid rgb(42 31 26 / 0.32); border-radius: var(--sc-r-sm);
  font: 400 1rem/1.2 var(--sc-font-text); color: var(--ink);
  transition: border-color 140ms var(--sc-ease-out), background-color 140ms var(--sc-ease-out);
}
.field input::placeholder { color: color-mix(in oklab, var(--ink-soft) 85%, transparent); }
.field input:focus-visible { border-color: var(--ink); background: #fff; outline-offset: 1px; }
.field input[aria-invalid="true"] { border-color: #A3342A; }
.field__error { margin: 0.35rem 0 0; font-size: 0.88rem; color: #A3342A; }
.field__error:empty { display: none; }
.tb__submit { padding: 1.25rem 1.5rem 1rem; }
.tb .btn { background: var(--choc); color: var(--cham); }
@media (hover: hover) and (pointer: fine) { .tb .btn:hover { background: var(--choc-3); } }
.tb__fineprint { margin-top: 1rem; font-size: 0.82rem; line-height: 1.55; color: var(--ink-soft); text-align: center; text-wrap: pretty; }
.tb__status { padding: 1rem 1.5rem; font-size: 0.93rem; }
.tb__status.is-ok { background: #E8EEE4; color: #1F3A22; }
.tb__status.is-wait { background: #F0EBE3; color: var(--ink); }
.tb__status.is-err { background: #F6E3DC; color: #7A2A14; }
.tb__status a { color: inherit; font-weight: 600; }
.tb__status:focus { outline: none; }
.tb.is-sending > :not([data-status]):not(.tb__head), .tb.is-done > :not([data-status]):not(.tb__head) { display: none; }
.tb.is-sending .tb__status, .tb.is-done .tb__status { padding: 2rem 1.75rem; font-size: 1.1rem; line-height: 1.55; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* --------------------------------------------------------------- footer -- */
.foot { position: relative; z-index: 1; padding: 2.25rem var(--gut) 2.75rem; font-size: 0.88rem; background: #261C17; color: var(--cham-soft); border-top: 1px solid var(--hair-i); }
.foot__lines { text-align: center; }
.foot__lines p { line-height: 1.7; }
.foot__lines p + p { margin-top: 0.25rem; }
.foot__lines span { white-space: nowrap; }
.foot a { color: var(--cham); text-decoration-color: var(--gold-in); text-underline-offset: 0.25em; }

/* ------------------------------------------------------------- dialogs -- */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--card); box-shadow: var(--sc-e3); }
dialog::backdrop { background: rgb(20 14 10 / 0.62); }
.dlg-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.9rem 1rem 0.9rem 1.4rem; border-bottom: 1px solid var(--hair-o); }
.dlg-title { font: italic 400 1.25rem/1.2 var(--sc-font-display); color: var(--ink); }
.dlg-close { min-height: 2.5rem; padding: 0.4rem 1rem; border-radius: 999px; cursor: pointer; background: var(--choc); color: var(--cham); border: 0; font-size: 0.86rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.index-dlg { width: min(30rem, calc(100vw - 2rem)); border-radius: var(--sc-r-lg); max-height: min(44rem, calc(100svh - 2rem)); }
.index-dlg__body { padding: 0.75rem 1.4rem 1.4rem; overflow: auto; }
.index-dlg__world { display: grid; justify-items: start; padding: 0.5rem 0; }
.index-dlg__w { font: 400 1rem/1 var(--sc-font-display); letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-out); margin: 0.5rem 0 0.35rem; }
.index-dlg__world a, .index-dlg__line a { padding: 0.4rem 0; font-weight: 500; text-decoration-color: var(--gold); text-underline-offset: 0.22em; }
.index-dlg a.is-here { color: var(--gold-out); }
.index-dlg__line { display: grid; justify-items: start; padding: 0.6rem 0 0.6rem 1rem; border-left: 2px solid var(--gold); margin: 0.25rem 0; }
.index-dlg__line span { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
.plan-dlg { width: min(66rem, calc(100vw - 2rem)); height: min(54rem, calc(100svh - 2rem)); border-radius: var(--sc-r-lg); }
.plan-dlg[open] { display: grid; grid-template-rows: auto 1fr; }
.plan-dlg__body { display: grid; grid-template-columns: minmax(16rem, 0.8fr) minmax(0, 1.4fr); min-height: 0; }
.plan-dlg__meta { padding: 1.25rem 1.4rem; overflow: auto; border-right: 1px solid var(--hair-o); }
.plan-dlg__meta .h3 { color: var(--gold-out); }
.plan-dlg__meta .facts { display: grid; gap: 0; border-top: 1px solid var(--hair-o2); margin-top: 0.75rem; }
.plan-dlg__meta .facts div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--hair-o); font-size: 0.93rem; }
.plan-dlg__meta .facts dt { color: var(--ink-soft); }
.plan-dlg__meta .facts dd { text-align: right; font-weight: 600; }
.plan-dlg__meta .btn { margin-top: 1.25rem; width: 100%; background: var(--choc); color: var(--cham); }
.plan-dlg__meta .link-arrow { display: inline-block; margin-top: 0.9rem; }
.plan-dlg__units { margin-top: 1rem; font-size: 0.88rem; color: var(--ink-soft); line-height: 1.6; }
.plan-dlg__units b { color: var(--ink); }
.plan-dlg__units button { margin: 0.2rem 0.3rem 0 0; padding: 0.3rem 0.6rem; border-radius: 999px; border: 1px solid var(--hair-o2); background: #fff; cursor: pointer; font-size: 0.82rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.plan-dlg__units button[aria-pressed="true"] { background: var(--choc); color: var(--cham); border-color: var(--choc); }
.plan-dlg__img { overflow: auto; background: #fff; display: grid; place-items: start center; }
.plan-dlg__img img { width: 100%; max-width: 52rem; height: auto; display: block; }
.plan-dlg__img.is-none { background: var(--choc); color: var(--cham); place-items: center; padding: 2rem; text-align: center; }
.plan-dlg__none { max-width: 26rem; }
.plan-dlg__none p:first-child { font: 400 1.6rem/1.2 var(--sc-font-display); margin-bottom: 0.75rem; }
.plan-dlg__none p + p { color: var(--cham-soft); }
.viewer { width: calc(100vw - 2rem); height: calc(100svh - 2rem); max-width: none; max-height: none; border-radius: var(--sc-r-lg); }
.viewer[open] { display: grid; grid-template-rows: auto 1fr; }
.viewer__body { overflow: auto; background: #fff; display: grid; place-items: start center; }
.viewer__body img { display: block; width: auto; max-width: none; height: auto; }
.viewer.is-fit .viewer__body img { width: 100%; max-width: 100%; cursor: zoom-in; }
.viewer:not(.is-fit) .viewer__body img { cursor: zoom-out; }

/* ============================================================== TABLET == */
@media (max-width: 1100px) {
  .gm { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .gm__section { grid-column: 2; grid-row: 2; }
  .gm__pic { grid-row: span 2; }
  .devs { grid-template-columns: 1fr; }
  .particulars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loc { grid-template-columns: 1fr; }
  .lv { grid-template-columns: 1fr; }
  .lv__tower { max-width: 34rem; }
  .tower-chart { grid-template-columns: 1fr; }
  .book { grid-template-columns: 1fr; margin-top: 0; }
  .book__spacer { display: none; }
  .close { --eh: min(80svh, 44rem); }
}

/* =============================================================== PHONE == */
@media (max-width: 860px) {
  :root { --bar-h: calc(3.6rem + env(safe-area-inset-top, 0px)); --sect: clamp(3.5rem, 12vw, 5rem); }
  .wrap { width: calc(100% - 2 * var(--gut)); }
  /* the index becomes a slim bar at the top */
  .ti {
    left: 0; right: 0; top: 0; border-radius: 0; border: 0; border-bottom: 1px solid var(--hair-o);
    grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.5rem; height: var(--bar-h);
    padding: env(safe-area-inset-top, 0px) 0.6rem 0 0.4rem;
  }
  .within .ti { border-bottom-color: var(--hair-i); }
  .ti__track { height: 38px; width: 12px; }
  .ti__ring { width: 12px; height: 12px; transform: translate3d(0, calc(var(--t, 0) * 26px), 0); }
  .ti__w { font-size: 0.78rem; letter-spacing: 0.2em; }
  .ti__line { margin: 0.22rem 0; }
  .ti__sec { font-size: 0.8rem; max-width: none; }
  .ti__book { padding-inline: 0.85rem; }
  .ti.is-top { background: rgb(247 249 250 / 0.7); }
  .then { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.25rem; }
  .gm { grid-template-columns: 1fr; }
  .gm__pic, .gm__section { grid-column: auto; grid-row: auto; }
  .gm__section { max-width: 22rem; }
  .devs__pair { grid-template-columns: 1fr; gap: 1.75rem; }
  .particulars { grid-template-columns: 1fr; }
  .loc__lists { grid-template-columns: 1fr; }
  .pano__cap { grid-template-columns: 1fr; margin-bottom: 4.5rem; }
  .pano__img { overflow: hidden; }
  /* phones: the panorama at 160%, its landmarks numbered on the picture and named below it */
  .pano__img > img { width: 160%; max-width: none; margin-left: -30%; }
  .pano__tags { position: absolute; inset: 0; width: 160%; margin-left: -30%; counter-reset: tag; }
  .pano__img { overflow: hidden; }
  .pano__cap { margin-bottom: 1.25rem; }
  .pano__tags li { top: 1.9rem; height: calc(var(--to) * 1% - 1.9rem); padding: 0; border-left-color: rgb(255 255 255 / 0.9); counter-increment: tag; }
  .pano__tags li.is-r { transform: none; border-right: 0; border-left: 1px solid rgb(255 255 255 / 0.9); padding: 0; }
  .pano__tags li.is-r::after { left: -3px; right: auto; }
  .pano__tags li.is-up { top: 1.9rem; height: calc(var(--to) * 1% - 1.9rem); }
  .pano__tags span { position: absolute; left: 0; top: 0; translate: -50% -100%; width: 1.35rem; height: 1.35rem; border-radius: 50%; overflow: hidden; color: transparent; background: var(--choc); box-shadow: 0 0 0 1.5px #fff; }
  .pano__tags span::before { content: counter(tag); position: absolute; inset: 0; display: grid; place-items: center; color: var(--cham); font-size: 0.7rem; font-weight: 600; }
  .pano__tags li.is-off { display: none; }
  .pano__key { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; padding-top: 0.75rem; font-size: 0.86rem; color: var(--ink); counter-reset: key; }
  .pano__key li { counter-increment: key; }
  .pano__key li::before { content: counter(key) "  "; font-weight: 600; color: var(--gold-out); }
  .lv__panel { grid-template-columns: 1fr; }
  .lv__marks button, .lv__marks span { min-width: 5.6rem; font-size: 0.78rem; padding: 0.3rem 0.6rem; }
  .lv__marks li::before { right: 6.4rem; }
  .pools { grid-template-columns: 1fr; }
  .pools__a, .pools__b, .pools__note { grid-column: auto; grid-row: auto; width: 100%; }
  .sky { overflow: hidden; }
  .sky img { width: 180%; max-width: none; margin-left: -40%; }
  .colls { grid-template-columns: 1fr; }
  .rooms { grid-template-columns: 1fr; }
  .room--wide, .room--tall, .room--a, .room--b { grid-column: auto; margin-top: 0; }
  .tc { max-width: none; }
  .close { --eh: 70svh; }
  .book__facts > div { grid-template-columns: 7.5rem 1fr; }
  .fields { grid-template-columns: 1fr; }
  .field + .field { border-left: 0; border-top: 1px solid var(--hair-o2); }
  .when, .field, .tb__head, .tb__submit { padding-left: 1.1rem; padding-right: 1.1rem; }
  .when__dates button, .when__times button { min-height: 2.6rem; font-size: 0.86rem; }
  .plan-dlg__body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow: auto; }
  .plan-dlg__meta { border-right: 0; border-bottom: 1px solid var(--hair-o); }
  .plan-dlg__img { overflow: visible; }
  .th__copy { right: var(--gut); max-width: none; bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); }
  .th__copy::before { top: -6rem; bottom: calc(-1.5rem - env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 380px) {
  .ti__sec { display: none; }
  .ti { grid-template-columns: auto 1fr; }
  .ti__book { justify-self: end; }
  .then { grid-template-columns: minmax(0, 1fr); }
}

/* ========================================================= WITHOUT SCRIPT == */
.no-js [data-sc-in], .no-js [data-sc-stagger] > * { opacity: 1; transform: none; }
.no-js .ti, .no-js .filter, .no-js .avail__how { display: none !important; }
.no-js .th { height: auto; }
.no-js .th__sticky { position: relative; height: auto; }
.no-js .th__hall, .no-js .th__iris { position: relative; }
.no-js .th__hall img, .no-js .th__iris img { position: relative; width: 100%; height: auto; }
.no-js .th__iris { clip-path: none; }
.no-js .th__copy { position: relative; left: auto; bottom: auto; padding: 1.5rem var(--gut); }
.no-js .th__copy--b { opacity: 1; }
.no-js .th__ring { display: none; }
.no-js .eye__clip { clip-path: none; }
.nojs-note { margin-top: 1rem; }

/* ====================================================== REDUCED MOTION == */
@media (prefers-reduced-motion: reduce) {
  .hero__plane, .hero__name, .frame__move { transform: none !important; }
  .hero__copy > *, .hero__name { animation: none; }
  [data-wipe] { clip-path: none !important; }
  .th { height: auto; }
  .th__sticky { position: relative; height: auto; overflow: visible; background: var(--choc); }
  .th__hall, .th__iris { position: relative; inset: auto; transform: none !important; clip-path: none !important; }
  .th__hall img, .th__iris img { position: relative; width: 100% !important; height: auto !important; left: auto !important; top: auto !important; transform: none !important; opacity: 1 !important; }
  .th__ring { display: none; }
  .th__copy { position: relative; left: auto; bottom: auto; padding: 1.75rem var(--gut) 2.25rem; opacity: 1 !important; transform: none !important; max-width: 44rem; }
  .th__copy::before { display: none; }
  .th__copy--a { order: 1; }
  .th__sticky { display: flex; flex-direction: column; }
  .th__hall { order: 0; } .th__copy--a { order: 1; } .th__iris { order: 2; } .th__copy--b { order: 3; } .th__credit { position: static; align-self: flex-end; margin: 0 var(--gut) 1rem; order: 4; }
  .ti__ring { transition: none; }
}
.no-js .book { margin-top: 2rem; }
.no-js .book__spacer, .no-js .lv__tabs, .no-js .eye__ring { display: none; }
.close .credit, .close .small { color: var(--cham-soft); }
