/* Haute Roche, concept C: "Pine and chalk".
   Umbrella-pine green, chalk white, olive and sea glass, taken from the ridge itself.
   Motion idea: the sliding glass wall. Images open from the centre like the 22 m glazed wall,
   headings rise over a horizon line, and pages change behind a pine pane that slides across. */

:root {
  --chalk: #EEF0EB;
  --paper: #F8F9F6;
  --pine: #1C2A25;
  --pine-2: #26372F;
  --olive: #56604F;      /* muted text on chalk, 5.9:1 */
  --rule: #CBD1C6;
  --rule-dark: #3A4B43;
  --agave: #3B675C;      /* the one accent on light */
  --seaglass: #A9C6BF;   /* the one accent on dark */
  --mist: #C9D3CC;       /* muted text on pine */

  --display: "Italiana", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Jost", "Futura", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --track-display: .01em;

  --gutter: clamp(16px, 4.2vw, 64px);
  --max: 1320px;
  --bar-h: 64px;
  --ease: cubic-bezier(.77, 0, .18, 1);      /* glass wall: slow start, soft stop */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dir: 1;
  color-scheme: light;
}
[dir="rtl"] { --dir: -1; }
:root:lang(ar) {
  --display: "Reem Kufi", "Noto Kufi Arabic", system-ui, sans-serif;
  --sans: "IBM Plex Sans Arabic", "Noto Sans Arabic", system-ui, sans-serif;
  --track-display: 0;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 24px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--chalk);
  color: var(--pine);
  font: 400 1.0625rem/1.65 var(--sans);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
:lang(ar) body { line-height: 1.85; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--agave); outline-offset: 3px; border-radius: 2px; }
.dark :focus-visible, .foot :focus-visible, .menu :focus-visible { outline-color: var(--seaglass); }
::selection { background: var(--seaglass); color: var(--pine); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: fixed; inset-inline-start: 12px; top: 12px; z-index: 60; padding: 12px 18px;
  background: var(--pine); color: var(--chalk); text-decoration: none;
  transform: translateY(-200%); transition: transform .3s var(--ease-out);
}
.skip:focus { transform: none; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(88px, 12vw, 176px); }
.dark { background: var(--pine); color: var(--chalk); }

/* ---------- type */
.display {
  font-family: var(--display);
  font-size: clamp(3.25rem, 1.6rem + 7.4vw, 9rem);
  line-height: .94;
  letter-spacing: var(--track-display);
}
:lang(ar) .display { font-size: clamp(3rem, 1.6rem + 6.6vw, 7.5rem); line-height: 1.15; }
.h2 {
  font-family: var(--display);
  font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: var(--track-display);
}
:lang(ar) .h2 { line-height: 1.3; font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.4rem); }
.h3 { font-size: 1.3rem; font-weight: 500; line-height: 1.3; }
.lead { font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); line-height: 1.55; font-weight: 300; max-width: 34em; }
:lang(ar) .lead { font-weight: 400; line-height: 1.8; }
.muted { color: var(--olive); }
.dark .muted { color: var(--mist); }
.small { font-size: .9375rem; }
.measure { max-width: 36em; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* the horizon datum: a line with a level marker, used to open sections */
.datum {
  display: flex; align-items: center; gap: 14px;
  font-size: .875rem; color: var(--olive); margin-block-end: clamp(24px, 3vw, 40px);
}
.datum::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .45; transform: scaleX(var(--draw, 1)); transform-origin: left center; }
[dir="rtl"] .datum::after { transform-origin: right center; }
.dark .datum { color: var(--mist); }
.datum b { font-weight: 500; color: var(--pine); }
.dark .datum b { color: var(--chalk); }

/* ---------- buttons */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; gap: 14px;
  min-height: var(--h); padding-inline: 26px 8px; padding-block: 6px;
  border: 0; border-radius: 999px;
  background: var(--pine); color: var(--chalk);
  font-size: 1rem; font-weight: 500; text-decoration: none; letter-spacing: .01em;
  transition: transform .5s var(--ease-out), background-color .4s var(--ease-out), color .4s var(--ease-out);
}
.btn .knob {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(238, 240, 235, .14);
  transition: transform .5s var(--ease-out);
}
.btn .knob svg { width: 16px; height: 16px; transform: scaleX(var(--dir)); }
.btn:hover .knob { transform: translateX(calc(3px * var(--dir))); }
.btn:active { transform: scale(.98); }
.btn-light { background: var(--chalk); color: var(--pine); }
.btn-light .knob { background: rgba(28, 42, 37, .08); }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; padding-inline: 24px; }
.btn-ghost:hover { background: rgba(28, 42, 37, .06); }
.dark .btn-ghost:hover, .hero .btn-ghost:hover { background: rgba(238, 240, 235, .1); }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn-plain { padding-inline: 26px; }
.link {
  display: inline-flex; align-items: center; min-height: 44px; font-weight: 500;
  text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: text-decoration-color .3s;
}
.link:hover { text-decoration-color: currentColor; }

/* ---------- brand */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.mark { width: 30px; height: 30px; flex: none; }
.wordmark {
  font-family: "Italiana", Georgia, serif; font-size: 1.2rem; letter-spacing: .2em;
  text-transform: uppercase; white-space: nowrap; line-height: 1;
}
:lang(ar) .wordmark-ar { font-family: "Reem Kufi", system-ui, sans-serif; letter-spacing: 0; font-size: 1.25rem; }

/* ---------- bar */
.bar {
  position: fixed; z-index: 40; top: 12px; inset-inline: 12px;
  height: var(--bar-h); display: flex; align-items: center; gap: 16px;
  padding-inline: 18px 8px;
  background: rgba(248, 249, 246, .84);
  -webkit-backdrop-filter: saturate(1.2) blur(14px); backdrop-filter: saturate(1.2) blur(14px);
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(28, 42, 37, .06), 0 18px 40px -28px rgba(28, 42, 37, .45);
  transition: transform .6s var(--ease-out);
}
.bar.is-hidden { transform: translateY(calc(-100% - 20px)); }
.bar .links { display: none; gap: 2px; margin-inline-start: auto; }
.bar .links a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 12px;
  text-decoration: none; font-size: .9375rem; border-radius: 999px; color: var(--olive);
  transition: color .3s, background-color .3s;
}
.bar .links a:hover { color: var(--pine); background: rgba(28, 42, 37, .05); }
.bar .links a[aria-current="page"] { color: var(--pine); }
.bar .links a[aria-current="page"]::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--agave); margin-inline-start: 7px; }
.bar-end { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.bar .links + .bar-end { margin-inline-start: 8px; }
.bar .btn { --h: 46px; font-size: .9375rem; padding-inline: 20px; }
.bar .btn-book { display: none; }

.lang { display: inline-flex; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rule); }
.lang button {
  min-width: 44px; min-height: 44px; padding-inline: 11px; border: 0; border-radius: 999px;
  background: transparent; font-size: .875rem; color: var(--olive);
}
.lang button[lang="ar"] { font-family: "IBM Plex Sans Arabic", system-ui, sans-serif; }
.lang button[aria-pressed="true"] { background: var(--pine); color: var(--chalk); }

.menu-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--pine); color: var(--chalk);
  display: grid; place-items: center; position: relative;
}
.menu-btn i { position: absolute; width: 18px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease-out); }
.menu-btn i:first-child { transform: translateY(-3.5px); }
.menu-btn i:nth-child(2) { transform: translateY(3.5px); }
.menu-btn[aria-expanded="true"] i:first-child { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i:nth-child(2) { transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 35; background: var(--pine); color: var(--chalk);
  padding: calc(var(--bar-h) + 48px) var(--gutter) 32px;
  display: flex; flex-direction: column; gap: 32px; overflow-y: auto;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .8s var(--ease), visibility 0s .8s;
}
.menu.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .8s var(--ease), visibility 0s; }
.menu ol { display: grid; gap: 2px; }
.menu ol a {
  display: flex; align-items: baseline; gap: 16px; min-height: 52px; text-decoration: none;
  font-family: var(--display); font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem); line-height: 1.1;
  opacity: 0; transform: translateY(28px);
  transition: opacity .6s var(--ease-out), transform .8s var(--ease-out), color .3s;
}
.menu ol a:hover, .menu ol a[aria-current="page"] { color: var(--seaglass); }
.menu.is-open ol a { opacity: 1; transform: none; }
.menu.is-open li:nth-child(2) a { transition-delay: .04s; } .menu.is-open li:nth-child(3) a { transition-delay: .08s; }
.menu.is-open li:nth-child(4) a { transition-delay: .12s; } .menu.is-open li:nth-child(5) a { transition-delay: .16s; }
.menu.is-open li:nth-child(6) a { transition-delay: .2s; }  .menu.is-open li:nth-child(7) a { transition-delay: .24s; }
.menu.is-open li:nth-child(8) a { transition-delay: .28s; }
.menu-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px 24px; color: var(--mist); font-size: .9375rem; }

@media (min-width: 640px) { .bar .btn-book { display: inline-flex; } }
@media (min-width: 1180px) {
  .bar { inset-inline: 24px; }
  .bar .links { display: flex; }
  .menu-btn { display: none; }
}

/* ---------- page veil (the pine pane that slides across between pages) */
.veil {
  position: fixed; inset: 0; z-index: 80; background: var(--pine); color: var(--chalk);
  display: grid; place-items: center; pointer-events: none;
  transform: translateX(calc(-101% * var(--dir)));
}
.veil svg { width: 54px; height: 54px; opacity: .9; }
.js .veil { animation: veil-out .95s var(--ease) .05s both; }
.js .veil.leaving { animation: veil-in .6s var(--ease) both; pointer-events: auto; }
@keyframes veil-out { from { transform: none; } to { transform: translateX(calc(101% * var(--dir))); } }
@keyframes veil-in { from { transform: translateX(calc(-101% * var(--dir))); } to { transform: none; } }

/* first visit: the same pane holds while the house loads (the mark draws, a hairline fills), then slides away */
.veil-name, .veil-bar { display: none; }
.first .veil { gap: 22px; align-content: center; }
.first .veil-name { display: block; font-size: 1.05rem; letter-spacing: .32em; }
.first .veil-bar { display: block; width: min(180px, 44vw); height: 1px; background: rgba(238, 240, 235, .2); overflow: hidden; }
.veil-bar i { display: block; height: 100%; background: var(--chalk); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform .5s var(--ease-out); }
[dir="rtl"] .veil-bar i { transform-origin: right; }
.js.loading .veil { animation: none; transform: none; pointer-events: auto; }
.loading .veil svg path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: veil-draw 1.1s var(--ease) forwards; }
.loading .veil svg path:nth-child(2) { animation-delay: .18s; }
.loading .veil svg path:nth-child(3) { animation-delay: .36s; }
.loading .veil svg circle { opacity: 0; animation: veil-sun .7s var(--ease-out) .95s forwards; }
@keyframes veil-draw { to { stroke-dashoffset: 0; } }
@keyframes veil-sun { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- framed image: a slim steel frame, like the ribbon windows */
.frame { position: relative; overflow: hidden; background: var(--rule); margin: 0; }
.frame img, .frame picture { width: 100%; height: 100%; object-fit: cover; }
.frame[data-parallax] img { position: absolute; inset: -7% 0 auto; height: 114%; }
.frame::after {
  content: ""; position: absolute; inset: 10px; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(248, 249, 246, .55);
}
.frame.plain::after { display: none; }
figcaption { font-size: .875rem; color: var(--olive); padding-block-start: 12px; }

/* ---------- hero (home) */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; color: var(--chalk); overflow: hidden; background: var(--pine); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(18, 28, 24, .82) 0%, rgba(18, 28, 24, .4) 45%, rgba(18, 28, 24, 0) 68%),
    linear-gradient(to bottom, rgba(18, 28, 24, .35), rgba(18, 28, 24, 0) 26%);
}
.hero-rails { position: absolute; inset: 0; pointer-events: none; }
.hero-rails::before, .hero-rails::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(238, 240, 235, .22); }
.hero-rails::before { inset-inline-start: var(--gutter); }
.hero-rails::after { inset-inline-end: var(--gutter); }
.hero-inner { position: relative; padding-block: calc(var(--bar-h) + 80px) clamp(32px, 6vw, 72px); display: grid; gap: 28px; }
.hero h1 { font-family: "Italiana", Georgia, serif; text-transform: uppercase; letter-spacing: .06em; }
:lang(ar) .hero h1 { font-family: var(--display); text-transform: none; letter-spacing: 0; }
.hero-row { display: grid; gap: 28px; align-items: end; }
.hero-row .lead { color: rgba(238, 240, 235, .92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-note { font-size: .8125rem; color: rgba(238, 240, 235, .75); }
.level { display: flex; align-items: center; gap: 10px; font-size: .875rem; color: rgba(238, 240, 235, .82); }
.level::before { content: ""; width: 28px; height: 1px; background: currentColor; }
@media (min-width: 900px) { .hero-row { grid-template-columns: 1.2fr 1fr; } .hero-row .side { justify-self: end; display: grid; gap: 20px; } }

/* page head (inner pages) */
.page-head { padding-block: calc(var(--bar-h) + clamp(72px, 10vw, 140px)) clamp(40px, 6vw, 80px); }
.page-head .display { max-width: 11ch; }
:lang(ar) .page-head .display { max-width: 14ch; }
.page-head .lead { margin-block-start: 28px; }

/* ---------- facts row */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-block-start: 1px solid var(--rule); }
.facts li { padding: 22px 0 24px; border-block-end: 1px solid var(--rule); display: grid; gap: 4px; align-content: start; }
.facts li:nth-child(odd) { padding-inline-end: 16px; }
.facts li:nth-child(even) { padding-inline-start: 16px; border-inline-start: 1px solid var(--rule); }
.facts strong { font-family: "Italiana", Georgia, serif; font-weight: 400; font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); line-height: 1; font-variant-numeric: lining-nums; }
.facts span { color: var(--olive); font-size: .9375rem; }
.dark .facts, .dark .facts li { border-color: var(--rule-dark); }
.dark .facts span { color: var(--mist); }
@media (min-width: 900px) {
  .facts { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .facts li, .facts li:nth-child(odd), .facts li:nth-child(even) { padding: 26px 20px 28px; border-inline-start: 1px solid var(--rule); }
  .facts li:first-child { border-inline-start: 0; padding-inline-start: 0; }
}

/* ---------- home: intro split */
.intro { display: grid; gap: clamp(40px, 6vw, 96px); align-items: end; }
@media (min-width: 900px) { .intro { grid-template-columns: 1fr 1fr; } }
.intro .frame { aspect-ratio: 4 / 5; }

/* home: wide feature */
.wide { position: relative; }
.wide .frame { aspect-ratio: 16 / 9; }
@media (max-width: 699px) { .wide .frame { aspect-ratio: 4 / 5; } .wide .frame img { object-position: 30% 50%; } }

/* home: chapters, an asymmetric set of four doors into the site */
.doors { display: grid; gap: clamp(40px, 5vw, 72px) clamp(20px, 3vw, 40px); }
.door { display: grid; gap: 18px; text-decoration: none; }
.door .frame { aspect-ratio: 3 / 2; }
.door .frame img { transition: transform 1.4s var(--ease-out); }
.door:hover .frame img { transform: scale(1.04); }
.door-text { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.door h3 { font-family: var(--display); font-size: clamp(1.8rem, 1.3rem + 1.5vw, 2.6rem); line-height: 1.05; }
.door p { color: var(--olive); max-width: 30em; }
.dark .door p { color: var(--mist); }
@media (min-width: 900px) {
  .doors { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .door:nth-child(1) { grid-column: 1 / span 7; }
  .door:nth-child(2) { grid-column: 9 / span 4; margin-block-start: 22vh; }
  .door:nth-child(2) .frame, .door:nth-child(3) .frame { aspect-ratio: 4 / 5; }
  .door:nth-child(3) { grid-column: 2 / span 4; }
  .door:nth-child(4) { grid-column: 7 / span 6; margin-block-start: 12vh; }
}

/* home: evening band */
.evening { position: relative; min-height: 88svh; display: grid; align-items: end; color: var(--chalk); overflow: hidden; }
.evening .frame { position: absolute; inset: 0; }
.evening .frame img { object-position: 50% 60%; }
.evening .frame::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(10, 18, 24, .75), rgba(10, 18, 24, 0) 55%); }
.evening .wrap { position: relative; z-index: 2; padding-block: 56px; display: grid; gap: 18px; }

/* CTA band */
.cta { display: grid; gap: 32px; align-items: end; }
@media (min-width: 900px) { .cta { grid-template-columns: 1.3fr 1fr; } .cta .actions { justify-self: end; } }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- residence: sticky index with an image track */
.rooms { display: grid; gap: 0; }
.room { display: grid; gap: 28px; padding-block: clamp(56px, 8vw, 120px); border-block-start: 1px solid var(--rule); }
.room .frame { aspect-ratio: 16 / 10; }
.room-body { display: grid; gap: 18px; align-content: start; }
.room-body .h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.4rem); }
.spec { display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; font-size: .9375rem; margin-block-start: 8px; }
.spec dt { color: var(--olive); }
.spec dd { margin: 0; font-variant-numeric: tabular-nums; }
.index { display: none; }
@media (min-width: 1000px) {
  .rooms-layout { display: grid; grid-template-columns: 240px 1fr; gap: 64px; }
  .index { display: block; position: sticky; top: calc(var(--bar-h) + 48px); align-self: start; }
  .index ol { display: grid; gap: 2px; }
  .index a { display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; color: var(--olive); font-size: .9375rem; transition: color .3s; }
  .index a::before { content: ""; width: 14px; height: 1px; background: currentColor; transition: width .5s var(--ease-out); }
  .index a.is-active { color: var(--pine); }
  .index a.is-active::before { width: 36px; background: var(--agave); }
  .room { grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: start; }
  .room:nth-child(even) .frame { order: 2; }
}

/* ---------- plans */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-block-end: 28px; }
.tab {
  min-height: 46px; padding-inline: 20px; border: 0; border-radius: 999px;
  background: transparent; box-shadow: inset 0 0 0 1px var(--rule); color: var(--olive);
  transition: background-color .35s, color .35s;
}
.tab[aria-selected="true"] { background: var(--pine); color: var(--chalk); box-shadow: none; }
.sheet { background: #fff; padding: clamp(8px, 2vw, 24px); box-shadow: 0 0 0 1px var(--rule); }
.sheet img { width: 100%; aspect-ratio: 1200 / 860; object-fit: contain; }
.sheet-tools { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: center; margin-block-start: 16px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; font-variant-numeric: tabular-nums; }
caption { text-align: start; font-family: var(--display); font-size: 1.9rem; padding-block-end: 14px; }
th, td { text-align: start; padding: 11px 12px 11px 0; border-block-end: 1px solid var(--rule); vertical-align: top; }
[dir="rtl"] th, [dir="rtl"] td { padding: 11px 0 11px 12px; }
th { font-weight: 500; color: var(--olive); font-size: .875rem; }
td.n, th.n { text-align: end; white-space: nowrap; }
tr.total td { font-weight: 500; border-block-end-color: var(--pine); }
.tables { display: grid; gap: 64px; }
@media (min-width: 1000px) { .tables { grid-template-columns: 1fr 1fr; gap: 48px; } }
@media (max-width: 599px) { .hide-sm { display: none; } }

/* ---------- experience: the 3D stage */
.stage { position: relative; height: min(88svh, 860px); min-height: 520px; background: #cfd9dd; overflow: hidden; }
.stage-poster, .stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-poster { object-fit: cover; transition: opacity 1.2s var(--ease-out); }
.stage canvas { opacity: 0; transition: opacity 1.2s var(--ease-out); touch-action: pan-y; cursor: grab; outline: none; }
.stage canvas:active { cursor: grabbing; }
.stage.is-live canvas { opacity: 1; }
.stage.is-live .stage-poster { opacity: 0; }
.stage-ui {
  position: absolute; inset-inline: 12px 84px; bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: space-between; align-items: center; pointer-events: none;
}
.stage-ui > * { pointer-events: auto; }
.pill-group { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: rgba(248, 249, 246, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 30px -18px rgba(28, 42, 37, .5); }
.pill-group button { min-height: 44px; min-width: 44px; padding-inline: 16px; border: 0; border-radius: 999px; background: transparent; color: var(--pine); font-size: .9375rem; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.pill-group button[aria-pressed="true"] { background: var(--pine); color: var(--chalk); }
.pill-group button svg { width: 18px; height: 18px; }
.stage-status {
  position: absolute; top: calc(var(--bar-h) + 28px); inset-inline-start: 50%; transform: translateX(calc(-50% * var(--dir)));
  padding: 10px 18px; border-radius: 999px; background: rgba(248, 249, 246, .9); font-size: .875rem;
  transition: opacity .6s var(--ease-out);
}
.stage-status[hidden] { display: block !important; opacity: 0; pointer-events: none; }
.stage-start { position: absolute; inset: 0; display: grid; place-items: center; }
.stage-start[hidden] { display: none; }
.stage-hint { font-size: .875rem; padding: 10px 16px; border-radius: 999px; background: rgba(28, 42, 37, .72); color: var(--chalk); transition: opacity .8s; }
.stage-hint.is-gone { opacity: 0; }
@media (max-width: 599px) { .stage { height: 78svh; } .stage-hint { display: none; } }

.tour-card { display: grid; gap: 32px; align-items: center; }
.tour-card .frame { aspect-ratio: 16 / 9; }
@media (min-width: 900px) { .tour-card { grid-template-columns: 1.4fr 1fr; gap: 64px; } }
.sun { display: grid; gap: 1px; background: var(--rule-dark); grid-template-columns: 1fr; margin-block-start: 48px; }
.sun > div { background: var(--pine); padding: 28px 0; display: grid; gap: 6px; }
.sun strong { font-family: "Italiana", Georgia, serif; font-weight: 400; font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); line-height: 1; }
@media (min-width: 800px) { .sun { grid-template-columns: repeat(3, 1fr); } .sun > div { padding: 32px 28px; } .sun > div:first-child { padding-inline-start: 0; } }

/* ---------- location */
.place { display: grid; gap: clamp(40px, 6vw, 80px); }
@media (min-width: 1000px) { .place { grid-template-columns: 1fr 1.2fr; align-items: start; } }
.compass { display: grid; gap: 0; border-block-start: 1px solid var(--rule); }
.compass li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 16px; padding-block: 16px; border-block-end: 1px solid var(--rule); }
.compass b { font-weight: 500; }
.compass span { color: var(--olive); }

/* ---------- gallery */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-block-end: 32px; }
.grid-gal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid-gal li { grid-column: span 2; }
.grid-gal li[hidden] { display: none; }
.grid-gal button { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: start; }
.grid-gal .frame { aspect-ratio: 16 / 10; }
.grid-gal .frame img { transition: transform 1.2s var(--ease-out); }
.grid-gal button:hover .frame img { transform: scale(1.035); }
.grid-gal .cap { display: block; padding-block: 10px 6px; font-size: .9375rem; }
@media (min-width: 700px) {
  .grid-gal { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
  .grid-gal li { grid-column: span 3; }
  .grid-gal li.w { grid-column: span 6; }
  .grid-gal li.w .frame { aspect-ratio: 21 / 9; }
}
@media (min-width: 1100px) {
  .grid-gal li { grid-column: span 2; }
  .grid-gal li.m { grid-column: span 4; }
  .grid-gal li.m .frame { aspect-ratio: auto; height: 100%; min-height: 0; }
}

.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(14, 22, 19, .96); color: var(--chalk); display: grid; grid-template-rows: auto 1fr auto; }
.lightbox[hidden] { display: none; }
.lb-top, .lb-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px var(--gutter); }
.lb-stage { position: relative; display: grid; place-items: center; overflow: hidden; touch-action: pan-y; padding-inline: var(--gutter); }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; transition: opacity .35s; }
.icon-btn { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(238, 240, 235, .1); color: inherit; display: grid; place-items: center; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: rgba(238, 240, 235, .18); }
.lb-nav { display: flex; gap: 8px; }
.lb-nav .icon-btn svg { transform: scaleX(var(--dir)); }
.lightbox .pill-group { background: rgba(238, 240, 235, .1); box-shadow: none; }
.lightbox .pill-group button { color: var(--chalk); }
.lightbox .pill-group button[aria-pressed="true"] { background: var(--chalk); color: var(--pine); }
.lightbox .pill-group button[disabled] { opacity: .35; cursor: not-allowed; }

/* ---------- forms, booking, portal */
.demo-flag {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px;
  background: #E3ECE6; color: var(--agave); font-size: .875rem; font-weight: 500;
}
.demo-flag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.flow { display: grid; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 1000px) { .flow { grid-template-columns: 1fr 360px; align-items: start; } .summary { position: sticky; top: calc(var(--bar-h) + 40px); } }
.steps { display: flex; gap: 6px; margin-block-end: 32px; counter-reset: s; flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 10px; font-size: .875rem; color: var(--olive); padding-inline-end: 14px; }
.steps li::before {
  counter-increment: s; content: counter(s); width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--rule); font-variant-numeric: tabular-nums;
}
.steps li[aria-current="step"] { color: var(--pine); font-weight: 500; }
.steps li[aria-current="step"]::before { background: var(--pine); color: var(--chalk); box-shadow: none; }
.steps li.done::before { background: var(--agave); color: var(--chalk); box-shadow: none; }
.panel { background: var(--paper); padding: clamp(20px, 4vw, 44px); box-shadow: 0 0 0 1px rgba(28, 42, 37, .06), 0 30px 60px -48px rgba(28, 42, 37, .5); }
.panel + .panel { margin-block-start: 16px; }
.panel h2 { font-family: var(--display); font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); line-height: 1.1; margin-block-end: 8px; }
.step[hidden] { display: none; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-block: 24px 12px; }
.cal-head strong { font-weight: 500; font-size: 1.05rem; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal .dow { font-size: .75rem; color: var(--olive); text-align: center; padding-block: 6px; }
.cal button {
  aspect-ratio: 1; min-height: 44px; width: 100%; max-width: 52px; justify-self: center; border: 0; border-radius: 50%; background: transparent;
  font-variant-numeric: tabular-nums; font-size: .9375rem; transition: background-color .25s, color .25s;
}
.cal button:hover:not([disabled]) { background: rgba(28, 42, 37, .07); }
.cal button[disabled] { color: #A3AA9F; cursor: not-allowed; text-decoration: line-through; text-decoration-color: rgba(163, 170, 159, .6); }
.cal button[aria-pressed="true"] { background: var(--pine); color: var(--chalk); }
.times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-block-start: 20px; }
@media (min-width: 600px) { .times { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.times button { min-height: 50px; border: 0; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1px var(--rule); font-variant-numeric: tabular-nums; }
.times button[aria-pressed="true"] { background: var(--pine); color: var(--chalk); box-shadow: none; }
.field { display: grid; gap: 8px; margin-block-start: 18px; }
.field label, .field .label { font-size: .9375rem; font-weight: 500; }
.field .hint { font-size: .8125rem; color: var(--olive); }
.input, select.input, textarea.input {
  width: 100%; min-height: 52px; padding: 12px 16px; border: 0; border-radius: 12px;
  background: #fff; box-shadow: inset 0 0 0 1px var(--rule); font-size: 1rem;
  transition: box-shadow .25s;
}
textarea.input { min-height: 110px; resize: vertical; }
.input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--agave); }
.input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #A34A3B; }
.err { color: #9B3F31; font-size: .875rem; min-height: 0; }
.err:empty { display: none; }
.row2 { display: grid; gap: 0 12px; }
@media (min-width: 600px) { .row2 { grid-template-columns: 1fr 1fr; } }
.phone { display: grid; grid-template-columns: 112px 1fr; gap: 8px; direction: ltr; }
.step-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-block-start: 28px; }
.pay-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-block: 20px 4px; }
.pay-tabs button { min-height: 54px; border: 0; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--rule); display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 500; }
.pay-tabs button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--pine); }
.pay-tabs svg { width: 22px; height: 22px; }
.wallet-btn { width: 100%; min-height: 54px; border: 0; border-radius: 14px; background: #000; color: #fff; font-weight: 500; font-size: 1.05rem; display: flex; align-items: center; justify-content: center; gap: 10px; margin-block-start: 18px; }
.wallet-btn svg { width: 20px; height: 20px; }
.card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.summary dl { display: grid; gap: 14px; margin-block-start: 20px; }
.summary dl div { display: grid; gap: 2px; padding-block-end: 14px; border-block-end: 1px solid var(--rule); }
.summary dt { font-size: .8125rem; color: var(--olive); }
.summary dd { margin: 0; font-weight: 500; }
.done-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--agave); color: var(--chalk); display: grid; place-items: center; margin-block-end: 24px; }
.done-mark svg { width: 28px; height: 28px; }
.contact-list { display: grid; gap: 4px; margin-block-start: 16px; }
.contact-list a { display: flex; align-items: center; gap: 12px; min-height: 48px; text-decoration: none; }
.contact-list svg { width: 20px; height: 20px; flex: none; color: var(--agave); }

/* portal */
.login { display: grid; gap: clamp(32px, 6vw, 80px); align-items: center; min-height: calc(100svh - 120px); padding-block: calc(var(--bar-h) + 48px) 64px; }
@media (min-width: 1000px) { .login { grid-template-columns: 1fr 440px; } }
.login .frame { aspect-ratio: 4 / 3; }
.dash { padding-block: calc(var(--bar-h) + 56px) clamp(64px, 8vw, 120px); }
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-block-end: 40px; }
.dash-grid { display: grid; gap: 16px; }
@media (min-width: 1000px) {
  .dash-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .dash-grid .viewing { grid-column: span 7; } .dash-grid .docs { grid-column: span 5; }
  .dash-grid .saved { grid-column: span 7; } .dash-grid .msgs { grid-column: span 5; }
}
.dash-grid .panel { margin: 0; }
.dash-grid h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.saved-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-block-start: 20px; }
.saved-list li { display: grid; gap: 8px; }
.saved-list .frame { aspect-ratio: 4 / 3; }
.saved-list .frame::after { inset: 6px; }
.saved-list .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .9375rem; }
.saved-list .icon-btn { width: 44px; height: 44px; background: rgba(28, 42, 37, .06); color: var(--pine); }
.doc-list { display: grid; margin-block-start: 16px; }
.doc-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; border-block-end: 1px solid var(--rule); text-decoration: none; }
.doc-list small { color: var(--olive); }
.doc-list svg { width: 18px; height: 18px; color: var(--agave); flex: none; }
.msg { padding-block: 16px; border-block-end: 1px solid var(--rule); display: grid; gap: 4px; }
.msg b { font-weight: 500; }
.msg time { font-size: .8125rem; color: var(--olive); }
.empty { color: var(--olive); margin-block-start: 12px; }

/* ---------- footer */
.foot { background: var(--pine); color: var(--chalk); padding-block: clamp(72px, 9vw, 128px) 32px; }
.foot-top { display: grid; gap: 48px; }
.foot .wordmark { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.foot .mark { width: 44px; height: 44px; }
.foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
.foot h2 { font-size: .875rem; font-weight: 500; color: var(--mist); margin-block-end: 10px; }
.foot-cols a { display: flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--chalk); }
.foot-cols a:hover { color: var(--seaglass); }
.foot-legal { margin-block-start: 64px; padding-block-start: 24px; border-block-start: 1px solid var(--rule-dark); display: grid; gap: 10px; font-size: .8125rem; color: var(--mist); }
.foot-legal a { color: var(--chalk); display: inline-flex; align-items: center; min-height: 44px; vertical-align: middle; }
.foot .muted { color: var(--mist); }
@media (min-width: 900px) {
  .foot-top { grid-template-columns: 1fr 1.4fr; }
  .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-legal { grid-template-columns: 1fr auto; }
}

/* WhatsApp button */
.wa {
  position: fixed; z-index: 30; bottom: 16px; inset-inline-end: 16px; width: 56px; height: 56px; border-radius: 50%;
  background: var(--pine); color: var(--chalk); display: grid; place-items: center;
  box-shadow: 0 16px 34px -16px rgba(28, 42, 37, .7); transition: transform .5s var(--ease-out);
}
.wa:hover { transform: translateY(-2px); }
.wa svg { width: 26px; height: 26px; }

/* swatches on the brand strip (footer of home) */
.swatches { display: flex; gap: 6px; }
.swatches i { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(238, 240, 235, .25); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; scroll-behavior: auto !important; }
}
.tab[aria-pressed="true"] { background: var(--pine); color: var(--chalk); box-shadow: none; }

@media (max-width: 899px) { .foot-cols > div:nth-child(2) { grid-column: 1 / -1; } }
@media (max-width: 420px) {
  .bar { padding-inline: 14px 6px; gap: 8px; inset-inline: 10px; }
  .bar-end { gap: 6px; }
  .wordmark { font-size: 1rem; letter-spacing: .14em; }
  .brand { gap: 9px; }
  .bar .mark { width: 26px; height: 26px; }
  .lang button { padding-inline: 8px; }
}
@media (max-width: 359px) { .bar .wordmark { display: none; } }
@media (max-width: 420px) { .panel { padding: 22px 14px; } .cal { gap: 0; } }
.hero .level, .hero .lead, .hero-note { text-shadow: 0 1px 14px rgba(10, 18, 15, .55); }
