/* =========================================================
   THE OQ RESIDENCES QETAIFAN — Qetaifan Island North
   Identity: "Sculpted by sea & sky".

   Type system
   - Boska (display serif) is used ONLY at large sizes (≥ 40px),
     where its fine hairlines stay crisp.
   - Jost carries everything people read: statements (uppercase),
     body copy, data, labels and UI — the same family as the
     FGREALTY landing pages.

   Colour: every text colour is paired with its backgrounds to meet
   WCAG 2.2 AA — 4.5:1 for body text, 3:1 for large text and UI.
   ========================================================= */

:root {
  /* Surfaces */
  --ivory: #F5F1EA;
  --paper: #ECE6DB;
  --stone: #E3DACB;
  --deep: #0B242B;
  --deep-2: #12323B;

  /* Text on light — contrast on ivory / paper */
  --ink: #1A1E1D;          /* 14.9 / 13.6 */
  --ink-2: #3F4441;        /*  8.8 /  8.0 */
  --ink-3: #595C56;        /*  6.0 /  5.5 */
  --accent: #74522F;       /*  6.2 /  5.7  bronze for text */

  /* Text on dark — contrast on deep */
  --on-dark: #F2EBDF;      /* 13.6 */
  --on-dark-2: #CFC8BC;    /*  9.7 */
  --on-dark-3: #A9A397;    /*  6.4 */
  --sand: #D9C3A0;         /*  9.4  accent on dark */

  /* Decorative only (never body text) */
  --bronze: #94714C;
  --sage: #7E8872;
  --hair: rgba(26, 30, 29, .16);
  --hair-d: rgba(242, 235, 223, .2);
  /* UI component borders (≥ 3:1, WCAG 1.4.11) */
  --ui: #7A766D;           /* 4.0 on ivory, 3.6 on paper */
  --ui-d: #8C877C;         /* 4.9 on deep */
  --err: #9A3B24;

  --f-display: 'Boska', 'Iowan Old Style', 'Times New Roman', serif;
  --f-sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(20px, 4.4vw, 72px);
  --max: 1680px;
  --nav-h: 76px;
  --sect: clamp(96px, 15vh, 180px);
  --sail-l: 58% 0 0 0 / 30% 0 0 0;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .1  0 0 0 0 .1  0 0 0 0 .1  0 0 0 .06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink-2);
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: lining-nums tabular-nums; /* Boska: lnum + tnum give the clean, undotted zero */
  font-kerning: normal;
  overflow-x: clip;
}
@media (min-width: 1100px) { body { font-size: 1.125rem; } }
[hidden]:not(.res__panel) { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; text-underline-offset: .2em; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--sand); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
/* After a tap or click, focus moved by script (dialogs, menus) shows no ring; it returns with the keyboard. */
html[data-input="pointer"] :focus-visible, html[data-input="pointer"] .chips .chip input:focus-visible + span { outline: none !important; }
[data-theme="dark"] :focus-visible, .foot :focus-visible, .lightbox :focus-visible, .menu :focus-visible { outline-color: var(--sand); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

.skip {
  position: fixed; left: 12px; top: -80px; z-index: 100;
  background: var(--ink); color: var(--ivory);
  padding: 14px 20px; border-radius: 999px; text-decoration: none;
  font-size: .8125rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Architectural drafting grid + limestone grain for light chapters */
.drafting {
  background-color: var(--paper);
  background-image: linear-gradient(90deg, rgba(26, 30, 29, .05) 1px, transparent 1px), var(--grain);
  background-size: calc((min(100vw, var(--max)) - 2 * var(--gutter)) / 4) 100%, 180px 180px;
  background-position: calc(max(0px, (100vw - var(--max)) / 2) + var(--gutter)) 0, 0 0;
}

/* ---------- Type ---------- */
.h-xxl, .h-xl, .h-l, .hero__word, .res__name, .pull, .foot__project, .dusk__type {
  font-family: var(--f-display);
  font-weight: 300;
  color: var(--ink);
  font-feature-settings: "lnum" 1, "tnum" 1, "kern" 1;
}
.h-xxl { font-size: clamp(3.4rem, 9vw, 10.6rem); line-height: .88; letter-spacing: -.032em; }
.h-xl  { font-size: clamp(2.9rem, 6.2vw, 7.2rem); line-height: .94; letter-spacing: -.028em; }
.h-l   { font-size: clamp(2.5rem, 3.9vw, 4.4rem); line-height: 1; letter-spacing: -.02em; }
.h-xxl em, .h-xl em, .h-l em { font-style: italic; color: var(--accent); }

/* Statements: short, uppercase, set in Jost — readable at every size */
.statement {
  font-family: var(--f-sans); font-weight: 500; text-transform: uppercase;
  font-size: clamp(1.0625rem, 1.3vw, 1.35rem); line-height: 1.38; letter-spacing: .02em;
  color: var(--ink); max-width: 44ch;
}
.statement--l { font-size: clamp(1.25rem, 1.85vw, 1.95rem); line-height: 1.26; letter-spacing: .012em; max-width: 34ch; }

.label {
  font-family: var(--f-sans); font-weight: 500; font-size: .75rem;
  letter-spacing: .16em; text-transform: uppercase; line-height: 1.5; color: var(--ink);
}
.kicker { display: inline-flex; align-items: center; gap: 14px; }
.kicker span { color: var(--accent); }
.kicker span::after { content: ""; display: inline-block; width: 28px; height: 1px; margin-left: 14px; vertical-align: middle; background: currentColor; }
.caption { display: block; margin-top: 12px; font-size: .8125rem; line-height: 1.5; color: var(--ink-3); }
.fine { font-size: .8125rem; line-height: 1.6; color: var(--ink-3); }
.small { font-size: .9375rem; color: var(--ink-3); }

.ln { display: block; overflow: hidden; padding: 0 .08em .14em; margin: 0 -.08em -.14em; }
.ln > * { display: inline-block; }
.ln--indent { padding-left: .9em; }

/* Image badge (render / precedent labelling) */
.badge {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  max-width: calc(100% - 24px); padding: 6px 11px; border-radius: 3px;
  background: rgba(11, 36, 43, .9); color: var(--on-dark);
  font-family: var(--f-sans); font-size: .75rem; font-weight: 500; letter-spacing: .06em; line-height: 1.35;
}

/* Collage tiles: hard-edged images that drift at their own speed */
.tile { position: relative; overflow: hidden; background: var(--stone); }
.tile picture, .tile img { width: 100%; height: 100%; object-fit: cover; }
[data-theme="dark"] .tile { background: var(--deep-2); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 1.8em;
  border: 1px solid transparent; border-radius: 999px;
  font-family: var(--f-sans); font-weight: 500; font-size: .8125rem;
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease);
}
.btn--solid { background: var(--ink); color: var(--ivory); }
@media (hover: hover) { .btn--solid:hover { background: #3A2A1C; } }
.btn--light { background: var(--ivory); color: var(--ink); }
@media (hover: hover) { .btn--light:hover { background: #fff; } }
.btn--line { border-color: var(--ui); color: var(--ink); }
@media (hover: hover) { .btn--line:hover { background: var(--ink); border-color: var(--ink); color: var(--ivory); } }
.btn--line-light { border-color: rgba(242, 235, 223, .75); color: var(--on-dark); }
@media (hover: hover) { .btn--line-light:hover { background: var(--on-dark); color: var(--ink); } }
.btn--ghost { border-color: currentColor; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .9em; min-height: 44px;
  font-weight: 500; font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
}
.link-arrow::after { content: ""; width: 2.4em; height: 1px; background: currentColor; transition: width .6s var(--ease-out); }
@media (hover: hover) { .link-arrow:hover::after { width: 4em; } }
.link-arrow--light { color: var(--on-dark); }

.frame { overflow: hidden; }
.frame picture, .frame img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   HEADER
   ========================================================= */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h); color: var(--on-dark); transition: color .5s var(--ease); }
.nav::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(245, 241, 234, .94);
  -webkit-backdrop-filter: saturate(1.2) blur(14px); backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid var(--hair);
  opacity: 0; transition: opacity .5s var(--ease), background-color .5s var(--ease);
}
.nav::after { /* keeps the header legible over the hero render */
  content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 24, 30, .6), rgba(8, 24, 30, 0));
  transition: opacity .5s var(--ease);
}
.nav.is-solid { color: var(--ink); }
.nav.is-solid::before { opacity: 1; }
@media (hover: none), (pointer: coarse) { .nav::before { -webkit-backdrop-filter: none; backdrop-filter: none; } }
.nav.is-dark { color: var(--on-dark); }
.nav.is-dark::before { opacity: 1; background: rgba(11, 36, 43, .94); border-bottom-color: var(--hair-d); }
.nav.is-solid::after, .nav.is-dark::after, .nav.is-menu::after { opacity: 0; }
.nav.is-menu { color: var(--on-dark); }
.nav.is-menu::before { opacity: 0; }

.nav__inner { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--gutter); }
.nav__brand { display: flex; align-items: center; gap: 16px; min-height: 44px; text-decoration: none; }
.nav__logo { width: 107px; height: auto; filter: brightness(0) invert(.94); transition: filter .5s var(--ease); }
.nav.is-solid .nav__logo { filter: none; }
.nav.is-menu .nav__logo, .nav.is-dark .nav__logo { filter: brightness(0) invert(.94); }
.nav__project {
  font-family: var(--f-sans); font-weight: 500; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase;
  padding-left: 16px; border-left: 1px solid currentColor; line-height: 1.3;
  opacity: 0; transform: translateX(-6px); transition: opacity .5s var(--ease), transform .6s var(--ease-out);
}
.nav.is-solid .nav__project, .nav.is-dark .nav__project { opacity: 1; transform: none; }
.nav.is-menu .nav__project { opacity: 0; }
.nav__links { display: none; gap: clamp(22px, 2.4vw, 40px); }
.nav__links a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-size: .8125rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .55s var(--ease-out);
}
.nav__links a.is-current::after { transform: scaleX(1); transform-origin: left; }
@media (hover: hover) { .nav__links a:hover::after { transform: scaleX(1); transform-origin: left; } }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__cta { min-height: 44px; padding: 0 1.4em; }
.nav.is-solid .nav__cta { border-color: var(--ui); }
@media (hover: hover) { .nav.is-solid .nav__cta:hover { background: var(--ink); color: var(--ivory); } }
@media (hover: hover) { .nav.is-dark .nav__cta:hover { background: var(--on-dark); color: var(--ink); } }
.burger { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 7px; width: 48px; height: 48px; padding: 0; border: 0; background: none; cursor: pointer; }
.burger span { display: block; width: 24px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease-out); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
@media (min-width: 1100px) { .nav__links { display: flex; } .burger { display: none; } }
@media (max-width: 520px) { .nav__cta, .nav__project { display: none; } }

.menu { position: fixed; inset: 0; z-index: 45; background: var(--deep); color: var(--on-dark); opacity: 0; transition: opacity .5s var(--ease); }
.menu.is-open { opacity: 1; }
.menu__inner { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--nav-h) + 24px) var(--gutter) calc(32px + env(safe-area-inset-bottom)); overflow-y: auto; }
.menu__links a {
  display: flex; align-items: baseline; gap: 16px;
  font-family: var(--f-display); font-weight: 300; font-size: clamp(2.5rem, 10vw, 4rem); line-height: 1.14; text-decoration: none;
  opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .8s var(--ease-out);
}
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: .04s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: .08s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: .12s; }
.menu.is-open .menu__links a:nth-child(5) { transition-delay: .16s; }
.menu.is-open .menu__links a:nth-child(6) { transition-delay: .2s; }
.menu.is-open .menu__links a:nth-child(7) { transition-delay: .24s; }
.menu__links em { font-family: var(--f-sans); font-style: normal; font-size: .8125rem; font-weight: 500; letter-spacing: .14em; color: var(--sand); }
.menu__foot { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--hair-d); }
.menu__foot a { display: inline-flex; align-items: center; min-height: 44px; font-size: .8125rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }

/* =========================================================
   HERO — a deep panel, a render, and the name across both
   ========================================================= */
.hero {
  position: relative; overflow: hidden; background: var(--deep); color: var(--on-dark);
  display: grid; grid-template-columns: 100%; grid-template-rows: minmax(440px, 66svh) auto;
}
.hero__media { grid-area: 1 / 1; position: relative; overflow: hidden; }
.hero__img { position: absolute; inset: 0; will-change: transform; }
.hero__img picture, .hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 46% 40%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(11, 36, 43, .96) 0%, rgba(11, 36, 43, .55) 24%, rgba(11, 36, 43, 0) 50%);
}
.hero__word {
  grid-area: 1 / 1; align-self: end; position: relative; z-index: 3;
  display: flex; flex-direction: column; padding: 0 var(--gutter) 14px;
  color: var(--sand); font-size: clamp(4rem, 19vw, 9rem); line-height: .82; letter-spacing: -.04em;
  pointer-events: none; will-change: transform;
}
.hero__word em { font-style: italic; padding-left: .5em; }
.hero__panel { grid-area: 2 / 1; position: relative; z-index: 2; display: flex; flex-direction: column; gap: 22px; padding: 26px var(--gutter) 44px; }
.hero__loc { color: var(--sand); }
.hero__statement { color: var(--on-dark); font-size: clamp(1.15rem, 4.6vw, 1.5rem); max-width: 24ch; }
.hero__cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero__down {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(242, 235, 223, .7); color: var(--on-dark); text-decoration: none; font-size: 1.2rem;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
@media (hover: hover) { .hero__down:hover { background: var(--on-dark); color: var(--ink); } }
/* Phone and tablet reveals: main.js adds .rv and an IntersectionObserver adds .is-in. */
@media (prefers-reduced-motion: no-preference) {
  .rv--lines .ln > * { transform: translateY(108%); transition: transform 1.2s var(--ease-out); transition-delay: calc(var(--rv-delay, 0s) + var(--i, 0) * .09s); }
  .rv--up { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform 1.1s var(--ease-out); transition-delay: var(--rv-delay, 0s); }
  .rv--img { opacity: 0; transition: opacity .9s var(--ease); }
  .rv--img picture { transform: scale(1.06); transition: transform 1.6s var(--ease-out); }
  .rv.is-in .ln > *, .rv--up.is-in, .rv--img.is-in picture { transform: none; }
  .rv--up.is-in, .rv--img.is-in { opacity: 1; }
}

/* Hero arrival: CSS animations on transform and opacity, so they stay smooth while the page is still loading. */
@keyframes eh-settle { from { transform: scale(1.08); } to { transform: none; } }
@keyframes eh-rise { from { transform: translateY(110%); } to { transform: none; } }
@keyframes eh-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .js [data-hero-media] picture { animation: eh-settle 2.6s cubic-bezier(.33, 1, .68, 1) both; }
  .js [data-hero-line] { animation: eh-rise 1.5s var(--ease-out) both; animation-delay: calc(.15s + var(--i, 0) * .12s); }
  .js [data-hero-in] { animation: eh-in 1.2s var(--ease-out) both; animation-delay: calc(.55s + var(--i, 0) * .1s); }
}
/* Phones: the name fades as it reaches the header. */
.hero__word.is-gone { opacity: 0; transform: translateY(-14px); }
@media (hover: none), (pointer: coarse) { .hero__word { transition: opacity .5s var(--ease), transform .8s var(--ease-out); } }

@media (min-width: 900px) {
  .hero { height: 100vh; height: 100svh; min-height: 620px; grid-template-columns: minmax(320px, 31vw) 1fr; grid-template-rows: 100%; }
  .hero__panel { grid-area: 1 / 1; padding: calc(var(--nav-h) + 9vh) var(--gutter) 0; gap: 30px; }
  .hero__statement { font-size: clamp(1.2rem, 1.55vw, 1.6rem); max-width: 20ch; }
  .hero__media { grid-area: 1 / 2; }
  .hero__media::after { background: linear-gradient(0deg, rgba(11, 36, 43, .9) 0%, rgba(11, 36, 43, .35) 26%, rgba(11, 36, 43, 0) 48%); }
  .hero__word {
    position: absolute; grid-area: auto; left: 0; right: 0; bottom: clamp(18px, 3.4vh, 40px);
    flex-direction: row; flex-wrap: wrap; gap: 0 .22em; white-space: nowrap; padding: 0 var(--gutter);
    font-size: min(11.2vw, 22vh); line-height: .8;
  }
  /* "The OQ Residences" on one line, "Qetaifan" below it. */
  .hero__word .ln:last-child { flex-basis: 100%; }
  .hero__word em { padding-left: .5em; }
}

/* =========================================================
   01 OVERVIEW
   ========================================================= */
.intro { position: relative; background: var(--ivory); padding: var(--sect) 0 0; }
.intro__grid { display: grid; gap: 0; }
.intro__a { aspect-ratio: 4 / 5; }
.intro__a img { object-position: 28% 50%; }
.intro__b { width: 52%; aspect-ratio: 760 / 880; margin: -24% 0 0 auto; z-index: 2; outline: 10px solid var(--ivory); }
.intro__text { margin-top: 48px; }
.intro__text .statement { margin: 18px 0 22px; }
.intro__body { max-width: 52ch; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; margin-top: 36px; }
.quick__card {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; min-height: 64px;
  border-top: 1px solid var(--hair); text-decoration: none; color: var(--ink);
  transition: color .3s var(--ease);
}
.quick__card:nth-last-child(-n+2) { border-bottom: 1px solid var(--hair); }
.quick__n { font-size: .75rem; font-weight: 500; letter-spacing: .12em; color: var(--accent); }
.quick__t { font-size: .875rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.quick__go { font-size: 1.1rem; transition: transform .5s var(--ease-out); }
@media (hover: hover) { .quick__card:hover .quick__go { transform: translateX(6px); } }
.quick__card--cta .quick__t { color: var(--accent); }
@media (min-width: 900px) {
  .intro__grid { grid-template-columns: repeat(12, 1fr); column-gap: 2vw; align-items: center; }
  .intro__a { grid-column: 1 / 7; grid-row: 1 / 3; }
  .intro__b { grid-column: 6 / 9; grid-row: 2; width: auto; margin: 0 0 -10vh; align-self: end; }
  .intro__text { grid-column: 9 / 13; grid-row: 1 / 3; margin: 0; }
}

.spec > div { display: grid; grid-template-columns: minmax(8.5rem, 32%) 1fr; gap: 6px 20px; padding: 15px 0; border-top: 1px solid var(--hair); }
.spec > div:last-child { border-bottom: 1px solid var(--hair); }
.spec dt { font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding-top: .3em; }
.spec dd { font-size: 1.0625rem; line-height: 1.5; color: var(--ink); }

/* At a glance */
.glance { padding-top: clamp(88px, 13vh, 160px); padding-bottom: var(--sect); }
.glance__grid { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 20px; border-top: 1px solid var(--hair); }
.glance__item { padding: 22px 0 24px; border-bottom: 1px solid var(--hair); }
.glance__item dt { font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.glance__big {
  display: block; margin: 12px 0 10px; font-family: var(--f-display); font-weight: 300; color: var(--ink);
  font-size: clamp(2.6rem, 4.4vw, 4.4rem); line-height: 1; letter-spacing: -.02em; font-feature-settings: "lnum" 1, "tnum" 1;
}
.glance__big small { margin-left: .25em; font-family: var(--f-sans); font-size: .9375rem; font-weight: 500; letter-spacing: .04em; }
.glance__item dd { font-size: .9375rem; line-height: 1.45; color: var(--ink-2); }
.glance__mix { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-top: 32px; font-size: 1.125rem; color: var(--ink); }
.glance__mix .label { color: var(--accent); }
@media (min-width: 900px) {
  .glance__grid { grid-template-columns: repeat(6, 1fr); column-gap: 0; }
  .glance__item { padding-right: 1.6vw; }
  .glance__item + .glance__item { padding-left: 1.6vw; border-left: 1px solid var(--hair); }
}
@media (max-width: 480px) { .spec > div { grid-template-columns: 1fr; } }

/* =========================================================
   02 THE CONCEPT
   ========================================================= */
.concept { position: relative; padding-top: var(--sect); }
.concept__head .h-xxl { margin-top: 24px; }

.collage { position: relative; display: grid; gap: 0; margin-top: clamp(48px, 8vh, 90px); }
.collage--concept .c1 { aspect-ratio: 16 / 11; }
.collage--concept .c2 { width: 56%; aspect-ratio: 4 / 5; margin: -18% 0 0 auto; z-index: 2; outline: 10px solid var(--paper); }
.collage--concept .c3 { width: 42%; aspect-ratio: 736 / 852; margin: -30% 0 0 4%; z-index: 1; }
.collage__words { margin-top: 44px; }
.collage__src { margin-top: 16px; color: var(--ink-3); }
.collage__body { margin-top: 26px; max-width: 46ch; }
.credit { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.credit span { display: inline-flex; align-items: center; gap: 14px; color: var(--ink-3); }
.credit span::after { content: ""; width: 32px; height: 1px; background: var(--ink-3); }
@media (min-width: 900px) {
  .collage { grid-template-columns: repeat(12, 1fr); column-gap: 2vw; }
  .collage--concept .c1 { grid-column: 1 / 8; grid-row: 1; }
  .collage--concept .c3 { grid-column: 9 / 12; grid-row: 1; width: auto; margin: 16vh 0 0; align-self: start; }
  .collage--concept .c2 { grid-column: 4 / 8; grid-row: 2; width: auto; margin: -16vh 0 0; }
  .collage__words { grid-column: 9 / 13; grid-row: 2; margin: 0; padding-top: 6vh; }
}

/* Six moves (in a layer) */
.moves__grid { display: grid; gap: 52px 3vw; }
@media (min-width: 700px) { .moves__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .moves__grid { grid-template-columns: repeat(3, 1fr); } }
.move { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-content: start; }
.move__fig { position: relative; grid-column: 1 / -1; margin-bottom: 18px; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.move__fig::before, .move__fig::after { content: ""; position: absolute; top: -1px; width: 10px; height: 10px; border-top: 1px solid var(--ink-3); }
.move__fig::before { left: 0; border-left: 1px solid var(--ink-3); }
.move__fig::after { right: 0; border-right: 1px solid var(--ink-3); }
.move__fig img { width: 100%; transition: transform 1.2s var(--ease-out); }
@media (hover: hover) { .move:hover .move__fig img { transform: scale(1.03); } }
.move__n { grid-row: span 2; font-family: var(--f-display); font-weight: 300; font-size: 2.75rem; line-height: .9; color: var(--accent); }
.move__t { font-size: 1.0625rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3; color: var(--ink); }
.move__tags { font-size: .9375rem; line-height: 1.5; color: var(--ink-3); }

/* Design generation */
.evo { position: relative; padding: var(--sect) 0 clamp(60px, 9vh, 110px); }
.evo__head { display: grid; gap: 18px; margin-bottom: clamp(48px, 8vh, 90px); }
.evo__head .label { color: var(--ink-3); }
@media (min-width: 900px) { .evo__head { grid-template-columns: 3fr 6fr 3fr; align-items: end; column-gap: 3vw; } }
.evo__stage { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.evo__steps { display: grid; gap: clamp(56px, 9vh, 110px); }
.evo__step { display: grid; gap: 22px; }
.evo__img { position: relative; }
.evo__img picture, .evo__img img { width: 100%; height: 100%; object-fit: cover; }
.evo__step--render .evo__img { margin-bottom: 18px; }
.is-cine .evo__step--render .evo__img { margin-bottom: 0; }
.evo__num { display: block; font-family: var(--f-display); font-weight: 300; font-size: 3.4rem; line-height: 1; color: var(--accent); margin-bottom: 14px; }
.evo__title { font-size: 1.25rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; line-height: 1.25; margin-bottom: 12px; color: var(--ink); }
.evo__text p { max-width: 40ch; }
.evo__sub { margin-top: 18px; border-top: 1px solid var(--hair); }
.evo__sub li { padding: 8px 0; border-bottom: 1px solid var(--hair); font-size: .875rem; font-weight: 500; letter-spacing: .04em; color: var(--ink-3); }
.evo__meter { display: none; }
@media (min-width: 700px) { .evo__step { grid-template-columns: 7fr 5fr; align-items: center; gap: 5vw; } }

.is-cine .evo { padding-bottom: 0; }
.is-cine .evo__scroller { height: 300vh; }
.is-cine .evo__stage { position: sticky; top: 0; height: 100vh; max-width: none; padding: 0; overflow: hidden; }
.is-cine .evo__steps, .is-cine .evo__step { display: block; }
.is-cine .evo__img {
  position: absolute; right: var(--gutter); top: calc(50% + var(--nav-h) / 2);
  width: min(58vw, calc((100vh - var(--nav-h) - 140px) * 16 / 9), 1180px); aspect-ratio: 16 / 9;
  transform: translateY(-50%); opacity: 0; transition: opacity 1s var(--ease);
}
.is-cine .evo__step.is-past .evo__img, .is-cine .evo__step.is-active .evo__img { opacity: 1; }
.is-cine .evo__step--render .evo__img { opacity: 1; clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease-out); }
.is-cine .evo__step--render.is-active .evo__img { clip-path: inset(0 0 0 0); }
.is-cine .evo__step--render .evo__img picture { transform: scale(1.12); transition: transform 1.8s var(--ease-out); }
.is-cine .evo__step--render.is-active .evo__img picture { transform: none; }
.is-cine .evo__step--render figcaption { position: absolute; left: 0; top: 100%; }
.is-cine .evo__text {
  position: absolute; left: var(--gutter); top: calc(50% + var(--nav-h) / 2); width: min(27vw, 430px);
  opacity: 0; visibility: hidden; transform: translateY(calc(-50% + 26px));
  transition: opacity .5s var(--ease), transform .9s var(--ease-out), visibility 0s linear .5s;
}
.is-cine .evo__step.is-active .evo__text {
  opacity: 1; visibility: visible; transform: translateY(-50%);
  transition: opacity .7s var(--ease) .2s, transform 1s var(--ease-out) .2s, visibility 0s;
}
.is-cine .evo__num { font-size: clamp(4rem, 6vw, 6.6rem); }
.is-cine .evo__meter {
  display: flex; align-items: center; gap: 18px; position: absolute; left: var(--gutter); bottom: 7vh;
  font-size: .8125rem; font-weight: 500; letter-spacing: .14em; color: var(--ink-3);
}
.evo__count b { font-weight: 600; color: var(--ink); }
.evo__bar { position: relative; width: 160px; height: 1px; background: var(--hair); }
.evo__bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }

/* Climate & light (in a layer) */
.facts { margin-top: 30px; border-top: 1px solid var(--hair); }
.facts li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hair); font-size: 1rem; }
.facts b { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); padding-top: .3em; }
.compare { position: relative; }
.compare__frame { position: relative; overflow: hidden; aspect-ratio: 928 / 545; background: var(--stone); --pos: 50%; }
.compare__frame img { width: 100%; height: 100%; object-fit: cover; }
.compare__top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__top picture { width: 100%; height: 100%; }
.compare__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; background: var(--ink); pointer-events: none; }
.compare__line::after { content: ""; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--ivory); border: 1px solid var(--ink); box-shadow: 0 6px 24px rgba(26, 30, 29, .18); }
.compare__line::before { content: "‹ ›"; position: absolute; top: 50%; left: 50%; z-index: 1; transform: translate(-50%, -52%); font-size: 1.1rem; letter-spacing: .1em; color: var(--ink); white-space: nowrap; }
.compare__tag { position: absolute; top: 14px; padding: 7px 12px; border-radius: 3px; background: rgba(245, 241, 234, .95); font-size: .75rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.compare__tag--a { left: 14px; }
.compare__tag--b { right: 14px; }
@media (max-width: 599px) { .compare__tag { top: 10px; padding: 6px 10px; } .compare__tag--a { left: 10px; } .compare__tag--b { right: 10px; } .compare__time { display: none; } }
.compare__ctl { display: block; margin-top: 14px; }
.compare__ctl input { width: 100%; height: 44px; margin: 0; accent-color: var(--accent); cursor: ew-resize; background: transparent; }

/* Materials (in a layer) */
.board { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.board__tile { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--stone); }
.board__tile picture, .board__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
@media (hover: hover) { .board__tile:hover img { transform: scale(1.05); } }
.board__tile span { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 6px 10px; border-radius: 3px; background: rgba(245, 241, 234, .95); color: var(--ink); font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.board__tile--bronze img { object-fit: contain; padding: 12%; }
@media (min-width: 900px) {
  .board { grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(150px, 15vw, 250px); }
  .board__tile { aspect-ratio: auto; }
  .board__tile--teak { grid-column: span 2; grid-row: span 2; }
  .board__tile--travertine, .board__tile--limestone, .board__tile--screen { grid-column: span 2; }
}
.motifs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 16px; margin-top: clamp(56px, 9vh, 100px); align-items: end; }
.motifs__label { grid-column: 1 / -1; color: var(--ink-3); }
.motif picture, .motif img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.motif figcaption { margin-top: 12px; font-size: .8125rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.motif--wide { grid-column: 1 / -1; }
.motif--wide picture, .motif--wide img { aspect-ratio: 16 / 9; }
@media (min-width: 900px) {
  .motifs { grid-template-columns: 2fr 2fr 5fr; gap: 0 3vw; }
  .motif--wide { grid-column: auto; }
  .motif--wide picture, .motif--wide img { aspect-ratio: 16 / 11; }
}

/* =========================================================
   LAYER CARDS & LAYERS — detail that opens on demand
   ========================================================= */
.deeper { padding-top: clamp(64px, 10vh, 120px); padding-bottom: var(--sect); }
.deeper__label { color: var(--ink-3); margin-bottom: 18px; }
.deeper__grid { display: grid; gap: 12px; }
@media (min-width: 900px) { .deeper__grid { grid-template-columns: repeat(3, 1fr); gap: 1.6vw; } }

.lcard {
  display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 18px;
  width: 100%; padding: 12px 16px 12px 12px; text-align: left; cursor: pointer;
  background: rgba(255, 255, 255, .5); border: 1px solid var(--hair); color: var(--ink);
  transition: border-color .4s var(--ease), background-color .4s var(--ease);
}
@media (hover: hover) { .lcard:hover { border-color: var(--ui); background: rgba(255, 255, 255, .8); } }
.lcard__img { width: 92px; aspect-ratio: 1; overflow: hidden; background: var(--stone); }
.lcard__img img, .lcard__img picture { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
@media (hover: hover) { .lcard:hover .lcard__img img { transform: scale(1.08); } }
.lcard__t { display: block; font-size: 1rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3; }
.lcard__d { display: block; margin-top: 4px; font-size: .9375rem; line-height: 1.45; color: var(--ink-3); }
.lcard__plus { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ui); transition: background-color .4s var(--ease), border-color .4s var(--ease), transform .6s var(--ease-out); }
.lcard__plus::before, .lcard__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.lcard__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
@media (hover: hover) { .lcard:hover .lcard__plus { background: var(--ink); border-color: var(--ink); color: var(--ivory); transform: rotate(90deg); } }
.lcard--dark { background: rgba(242, 235, 223, .05); border-color: var(--hair-d); color: var(--on-dark); }
@media (hover: hover) { .lcard--dark:hover { background: rgba(242, 235, 223, .1); border-color: var(--ui-d); } }
.lcard--dark .lcard__img { background: var(--deep-2); }
.lcard--dark .lcard__d { color: var(--on-dark-3); }
.lcard--dark .lcard__plus { border-color: var(--ui-d); }
@media (hover: hover) { .lcard--dark:hover .lcard__plus { background: var(--sand); border-color: var(--sand); color: var(--deep); } }
.chapter--dark > .lcard { margin-top: clamp(32px, 5vh, 56px); max-width: 640px; }
@media (max-width: 420px) { .lcard { grid-template-columns: 72px 1fr auto; gap: 14px; } .lcard__img { width: 72px; } }

/* The layer: a native modal <dialog>, a panel sliding in from the right (from below on phones) */
.layer {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--ink-2);
  overflow: hidden; overflow: clip; /* the panel scrolls; the dialog itself must never scroll */
}
.layer::backdrop { background: transparent; }
.layer::before { content: ""; position: absolute; inset: 0; background: rgba(8, 24, 30, .62); opacity: 0; transition: opacity .5s var(--ease); }
.layer.is-open::before { opacity: 1; }
.layer__panel:focus { outline: none; }
.layer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(1120px, 92vw);
  background: var(--ivory); overflow-y: auto; overscroll-behavior: contain;
  box-shadow: -30px 0 90px rgba(8, 24, 30, .28);
  transform: translateX(104%); transition: transform .7s var(--ease-out);
}
.layer--wide .layer__panel { width: min(1320px, 96vw); }
.layer.is-open .layer__panel { transform: none; }
.layer__head {
  position: sticky; top: 0; z-index: 3; display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; align-items: end;
  padding: 26px clamp(20px, 4vw, 56px) 18px; background: rgba(245, 241, 234, .97); border-bottom: 1px solid var(--hair);
}
.layer__head .label { grid-column: 1; color: var(--accent); }
.layer__title { grid-column: 1; font-family: var(--f-display); font-weight: 300; font-size: clamp(2.5rem, 3.8vw, 3.9rem); line-height: 1; letter-spacing: -.02em; color: var(--ink); }
.layer__title em { font-style: italic; color: var(--accent); }
.layer__close {
  grid-column: 2; grid-row: 1 / 3; align-self: start; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--ui); background: var(--ivory); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
@media (hover: hover) { .layer__close:hover { background: var(--ink); color: var(--ivory); } }
.layer__body { padding: clamp(24px, 4vh, 40px) clamp(20px, 4vw, 56px) 72px; }
.layer__intro { font-size: 1.0625rem; max-width: 62ch; margin-bottom: 32px; }
.layer__split { display: grid; gap: 32px; margin-bottom: 40px; }
@media (min-width: 900px) { .layer__split { grid-template-columns: 5fr 7fr; align-items: center; } .layer__split--text { grid-template-columns: 1fr 1fr; align-items: start; } }
.layer__fig { max-width: 480px; }
.layer__fig img { width: 100%; }
.layer__quote { margin: 36px 0 44px; padding-left: 20px; border-left: 2px solid var(--bronze); }
.layer__quote p { font-size: 1.125rem; line-height: 1.6; color: var(--ink); max-width: 64ch; }
.layer__tree { margin-top: 28px; font-size: 1.0625rem; color: var(--ink); max-width: 62ch; }
.layer .plan-fig { margin: 0 0 40px; }
.layer .inside { margin-top: 40px; }
.layer .mist { margin: 48px 0; }
.layer .flora { margin-top: 48px; }
.layer .sky__collage { margin-top: 8px; }
.layer .sky__plan { background: var(--paper); }
.layer .sky__t3 { outline-color: var(--ivory); }
.layer .tile { background: var(--stone); }
.layer .zones { margin-top: 0; }
@media (max-width: 699px) {
  .layer__panel { width: 100%; top: 0; transform: translateY(104%); box-shadow: none; }
  .layer--wide .layer__panel { width: 100%; }
  .layer__head { padding-top: 18px; }
}
html:not(.js) .layer { display: block; position: static; background: none; overflow: visible; }
html:not(.js) .layer__panel { position: static; width: auto; transform: none; box-shadow: none; }
html:not(.js) .layer__close { display: none; }

/* =========================================================
   03 THE ASCENT
   ========================================================= */
.ascent { position: relative; overflow-x: clip; background: var(--ivory) var(--grain); padding-top: var(--sect); } /* clip keeps full-bleed backdrops in without breaking the sticky gauge */
.ascent__head { margin-bottom: clamp(40px, 6vh, 80px); }
.ascent__head .h-xxl { margin: 24px 0 32px; }
.ascent__lede { margin-left: auto; }
@media (min-width: 900px) { .ascent__lede { margin-right: 6vw; } }
.ascent__body { position: relative; }
.ascent__chapters { min-width: 0; }
@media (min-width: 1100px) {
  .ascent__body { display: grid; grid-template-columns: 11.5rem minmax(0, 1fr); }
  .ascent__chapters { padding-right: var(--gutter); }
}

/* Level gauge */
.gauge { display: none; }
@media (min-width: 1100px) {
  .gauge { display: block; position: relative; z-index: 2; }
  .gauge__in {
    position: sticky; top: calc(var(--nav-h) + 5vh); height: calc(100vh - var(--nav-h) - 10vh); max-height: 760px;
    display: flex; flex-direction: column; padding: 0 0 0 max(24px, calc(var(--gutter) - 8px));
    color: var(--ink); transition: color .6s var(--ease);
  }
  .gauge.is-dark .gauge__in { color: var(--on-dark); }
  .gauge__now { display: flex; flex-direction: column; gap: 4px; margin-bottom: 26px; }
  .gauge__lv { font-family: var(--f-display); font-weight: 300; font-size: 3.4rem; line-height: .9; font-feature-settings: "lnum" 1, "tnum" 1; }
  .gauge__name { font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
  .gauge__scale { position: relative; flex: 1; margin-left: 2px; border-left: 1px solid currentColor; }
  .gauge__ticks li { position: absolute; left: 0; bottom: var(--y); width: 7px; height: 1px; background: currentColor; opacity: .45; }
  .gauge__ticks li.is-major { width: 14px; opacity: 1; }
  .gauge__ticks span { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); font-size: .75rem; font-weight: 500; letter-spacing: .06em; }
  .gauge__zone {
    position: absolute; left: 58px; bottom: var(--a); height: calc(var(--b) - var(--a));
    display: flex; align-items: center; padding-left: 10px; border-left: 1px solid currentColor;
    writing-mode: vertical-rl; transform: rotate(180deg);
    font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  }
  .gauge__marker { position: absolute; left: -6px; bottom: 0; width: 22px; height: 2px; background: var(--bronze); will-change: transform; }
  .gauge.is-dark .gauge__marker { background: var(--sand); }
  .gauge__marker i { position: absolute; left: 0; top: 50%; width: 11px; height: 11px; border-radius: 50%; transform: translate(0, -50%); background: inherit; }
}

/* Chapters */
.chapter { position: relative; padding: clamp(80px, 12vh, 150px) var(--gutter) clamp(80px, 12vh, 140px); }
@media (min-width: 1100px) { .chapter { padding-left: 4vw; padding-right: 0; } }
.chapter + .chapter { border-top: 1px solid var(--hair); }
.chapter__head { display: grid; gap: 20px; margin-bottom: clamp(44px, 7vh, 80px); }
.chapter__lv { display: inline-flex; align-items: center; gap: 14px; font-size: .8125rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.chapter__lv span {
  display: inline-grid; place-items: center; min-width: 3.2rem; height: 2.1rem; padding: 0 .75rem;
  border: 1px solid currentColor; border-radius: 999px; font-size: .875rem; font-weight: 600; letter-spacing: .04em;
}
@media (min-width: 900px) {
  .chapter__head { grid-template-columns: 7fr 5fr; column-gap: 4vw; align-items: end; }
  .chapter__head .chapter__lv, .chapter__head .h-xl, .chapter__head .h-l { grid-column: 1; }
  .chapter__head .statement { grid-column: 2; grid-row: 1 / 3; }
}

/* Dark chapters paint a full-bleed backdrop (clipped by .ascent) */
.chapter--dark { z-index: 0; color: var(--on-dark-2); }
.chapter--dark::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -100vw; right: -100vw; background: var(--deep); }
.chapter + .chapter--dark, .chapter--dark + .chapter, .dusk + .chapter--dark { border-top: 0; }
.chapter--dark + .chapter--dark::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--hair-d); }
.chapter--dark .chapter__lv, .chapter--dark .h-xl, .chapter--dark .h-l, .chapter--dark .statement, .chapter--dark .res__name { color: var(--on-dark); }
.chapter--dark .h-xl em, .chapter--dark .h-l em, .chapter--dark .res__name em { color: var(--sand); }
.chapter--dark .caption, .chapter--dark .fine { color: var(--on-dark-3); }
.chapter--dark .label { color: var(--on-dark); }

.chapter__wide { position: relative; }
.chapter__wide .frame { aspect-ratio: 2200 / 638; }
@media (max-width: 699px) { .chapter__wide .frame { aspect-ratio: 4 / 3; } }
.split { display: grid; gap: 24px; margin: clamp(48px, 8vh, 90px) 0; }
.split__body { max-width: 56ch; }
@media (min-width: 900px) { .split { grid-template-columns: 7fr 4fr; gap: 6vw; align-items: end; } }

.plan-fig { margin: clamp(48px, 8vh, 90px) 0; }
.plan-fig picture, .plan-fig img { width: 100%; }
.legend { counter-reset: lg; display: grid; gap: 0 4vw; margin-top: 26px; border-top: 1px solid var(--hair); }
.legend li { counter-increment: lg; display: grid; grid-template-columns: 2.4rem 1fr; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--hair); font-size: 1rem; line-height: 1.5; }
.legend li::before { content: counter(lg); grid-row: span 2; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border: 1px solid var(--ink-3); border-radius: 50%; font-size: .8125rem; font-weight: 600; color: var(--ink); }
.legend--cols li::before { content: ""; width: 9px; height: 9px; margin-top: .55em; border: 0; background: var(--bronze); }
.legend b { display: block; font-weight: 600; color: var(--ink); }
@media (min-width: 700px) { .legend { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1300px) { .legend--cols { grid-template-columns: repeat(3, 1fr); } }

.inside { display: grid; gap: 36px; margin-top: clamp(56px, 9vh, 100px); }
.inside__fig { aspect-ratio: 4 / 5; }
.inside__text .label { color: var(--ink-3); margin-bottom: 14px; }
.rows > div { display: grid; gap: 6px; padding: 18px 0; border-top: 1px solid var(--hair); }
.rows > div:last-child { border-bottom: 1px solid var(--hair); }
.rows dt { font-size: 1.0625rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink); }
.rows dd { font-size: 1rem; max-width: 52ch; }
@media (min-width: 900px) { .inside { grid-template-columns: 5fr 7fr; gap: 5vw; align-items: center; } }

/* Podium */
.zones > .label { color: var(--ink-3); }
.zones__curve { display: block; width: 100%; height: clamp(70px, 9vw, 120px); margin: 18px 0 8px; fill: none; stroke: var(--bronze); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.zones__curve path { vector-effect: non-scaling-stroke; }
.zones__list { display: grid; gap: 28px; }
.zones__n { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.zones__list h4 { font-size: 1.25rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; line-height: 1.25; color: var(--ink); margin-bottom: 8px; }
.zones__list p { max-width: 30ch; }
@media (min-width: 700px) { .zones__list { grid-template-columns: repeat(3, 1fr); gap: 3vw; } .zones__list li:nth-child(2) { padding-top: 3vw; } .zones__list li:nth-child(3) { padding-top: 6vw; } }

.mist { display: grid; gap: 28px; align-items: center; margin: clamp(56px, 9vh, 100px) 0; }
.mist__img { aspect-ratio: 564 / 451; max-width: 520px; }
.pull { font-size: clamp(2.5rem, 4.6vw, 5rem); line-height: 1.02; letter-spacing: -.022em; max-width: 16ch; }
.pull em { color: var(--accent); font-style: italic; }
@media (min-width: 900px) { .mist { grid-template-columns: 5fr 7fr; gap: 5vw; } }

.flora { display: grid; gap: 28px; margin-top: clamp(64px, 10vh, 120px); }
.flora__text .label { color: var(--ink-3); margin-bottom: 10px; }
.flora__text p:not(.label) { max-width: 34ch; }
.flora__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.flora__list picture, .flora__list img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.flora__list span { display: block; margin-top: 10px; font-size: .8125rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
@media (min-width: 900px) { .flora { grid-template-columns: 4fr 8fr; gap: 5vw; align-items: end; } .flora__list { grid-template-columns: repeat(4, 1fr); } .flora__list li:nth-child(even) { margin-top: 10vh; } }

/* Amenities — a one-screen selector; on small screens each opens with its image */
.amen { display: grid; gap: 28px; }
.amen__list { border-top: 1px solid var(--hair-d); }
.amen__item { border-bottom: 1px solid var(--hair-d); }
.amen__btn {
  display: flex; align-items: center; gap: 16px; width: 100%; min-height: 64px; padding: 12px 0;
  background: none; border: 0; text-align: left; cursor: pointer; color: var(--on-dark-2);
}
.amen__n { flex: none; min-width: 2.4em; font-size: .8125rem; font-weight: 600; letter-spacing: .12em; color: var(--sand); }
.amen__t { font-size: clamp(1.0625rem, 1.35vw, 1.3rem); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; line-height: 1.25; color: var(--on-dark-2); transition: color .35s var(--ease); }
.amen__btn::after { content: "+"; margin-left: auto; font-size: 1.5rem; font-weight: 300; line-height: 1; color: var(--sand); transition: transform .5s var(--ease-out); }
.amen__item.is-on .amen__btn::after { transform: rotate(45deg); }
.amen__item.is-on .amen__t { color: var(--on-dark); }
@media (hover: hover) { .amen__btn:hover .amen__t { color: var(--on-dark); } }
.amen__d { padding: 0 0 22px calc(2.4em + 16px); }
.amen__d p { font-size: 1rem; max-width: 46ch; color: var(--on-dark-2); }
.amen__d.is-in { animation: panelIn .7s var(--ease-out) both; }
.amen__inline { position: relative; margin-top: 16px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--deep-2); }
.amen__inline img, .amen__inline picture { width: 100%; height: 100%; object-fit: cover; }
.amen__media { display: none; }
@media (min-width: 900px) {
  .amen { grid-template-columns: 5fr 7fr; gap: 4vw; align-items: center; }
  .amen__inline { display: none; }
  .amen__media { display: block; position: relative; height: min(68vh, 640px); overflow: hidden; background: var(--deep-2); }
  .amen__img { position: absolute; inset: 0; opacity: 0; transition: opacity .8s var(--ease); }
  .amen__img img, .amen__img picture { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease-out); }
  .amen__img.is-on { opacity: 1; z-index: 1; }
  .amen__img.is-on img { transform: none; }
}

/* Residences — compact cards that open the floor-plan layer */
.rcards { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; }
.rcards::-webkit-scrollbar { display: none; }
.rcards > li { flex: none; width: min(64vw, 300px); scroll-snap-align: start; }
@media (min-width: 1000px) {
  .rcards { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; }
  .rcards > li { width: auto; }
}
.rcard {
  display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; text-align: left; cursor: pointer;
  background: rgba(242, 235, 223, .04); border: 1px solid var(--hair-d); color: var(--on-dark);
  transition: border-color .4s var(--ease), background-color .4s var(--ease);
}
@media (hover: hover) { .rcard:hover { border-color: var(--ui-d); background: rgba(242, 235, 223, .08); } }
.rcard__img { display: grid; place-items: center; aspect-ratio: 4 / 5; padding: 9%; background: var(--ivory); overflow: hidden; }
.rcard__img img { width: 100%; height: 100%; object-fit: contain; transition: transform 1.2s var(--ease-out); }
@media (hover: hover) { .rcard:hover .rcard__img img { transform: scale(1.05); } }
.rcard__img--villa { background: var(--deep-2); }
.rcard__img--villa span { font-family: var(--f-display); font-weight: 300; font-size: 9rem; line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--sand); }
.rcard__type { padding: 16px 16px 0; font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-3); }
.rcard__name { padding: 6px 16px 0; font-size: 1.0625rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3; }
.rcard__area { padding: 10px 16px 18px; font-size: .9375rem; color: var(--on-dark-2); }
.rcard__area b { font-family: var(--f-display); font-weight: 300; font-size: 2.5rem; line-height: 1; letter-spacing: -.01em; color: var(--sand); font-feature-settings: "lnum" 1, "tnum" 1; }
.rcard__go {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding: 16px; border-top: 1px solid var(--hair-d);
  font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.rcard__go::after { content: "+"; font-size: 1.3rem; font-weight: 300; color: var(--sand); }
.res__note { margin-top: clamp(28px, 4vh, 44px); max-width: 76ch; }

/* Residences inside the floor-plan layer (light) */
.res__tabs { position: relative; display: flex; gap: clamp(20px, 3vw, 44px); border-bottom: 1px solid var(--hair); margin-bottom: clamp(28px, 5vh, 52px); overflow-x: auto; scrollbar-width: none; }
.res__tabs::-webkit-scrollbar { display: none; }
.res__tab {
  flex: none; min-height: 52px; background: none; border: 0; padding: 12px 0; cursor: pointer; white-space: nowrap;
  font-size: .875rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
  transition: color .4s var(--ease);
}
.res__tab[aria-selected="true"] { color: var(--ink); }
@media (hover: hover) { .res__tab:hover { color: var(--ink); } }
.res__ink { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--ink); transition: transform .7s var(--ease-out), width .7s var(--ease-out); }
.res__panels { display: grid; }
.res__panel { grid-area: 1 / 1; display: grid; gap: 32px; align-content: start; outline-offset: 8px; }
.res__panel[hidden] { display: grid; visibility: hidden; opacity: 0; pointer-events: none; }
.res__panel.is-in { animation: panelIn .9s var(--ease-out) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (min-width: 900px) { .res__panel { grid-template-columns: 5fr 7fr; gap: 4vw; align-items: center; } .res__panel--wide { grid-template-columns: 4fr 8fr; } }
.res__info > .label { color: var(--ink-3); }
.res__name { font-size: clamp(2.6rem, 4.4vw, 4.6rem); line-height: .95; letter-spacing: -.025em; margin: 12px 0 22px; }
.res__name em { font-style: italic; color: var(--accent); }
.res__area { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 10px; font-size: 1.25rem; color: var(--ink); padding: 14px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); margin-bottom: 18px; }
.res__area span { font-family: var(--f-display); font-weight: 300; font-size: clamp(2.6rem, 3.8vw, 3.8rem); line-height: 1; color: var(--accent); }
.res__area small { margin-left: auto; color: var(--ink-3); }
.res__feat li { position: relative; padding: 10px 0 10px 30px; border-bottom: 1px solid var(--hair); font-size: 1rem; line-height: 1.55; }
.res__feat li::before { content: ""; position: absolute; left: 0; top: 1.4em; width: 16px; height: 1px; background: var(--bronze); }
.res__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.res__villa-copy { font-size: 1.125rem; line-height: 1.6; max-width: 40ch; color: var(--ink); }
.plan__toggle { display: inline-flex; padding: 4px; margin-bottom: 16px; border: 1px solid var(--ui); border-radius: 999px; }
.plan__toggle button {
  min-height: 40px; border: 0; background: none; cursor: pointer; padding: 0 18px; border-radius: 999px;
  font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.plan__toggle button[aria-pressed="true"] { background: var(--ink); color: var(--ivory); }
.plan__views { display: grid; grid-template: 100% / 100%; height: clamp(360px, 112vw, 560px); }
.plan__view { grid-area: 1 / 1; height: 100%; min-height: 0; opacity: 0; transition: opacity .6s var(--ease); }
.plan__view.is-on { opacity: 1; }
.plan__view img { width: 100%; height: 100%; object-fit: contain; }
.res__panel--wide .plan__views { height: auto; aspect-ratio: 2 / 1; }
@media (min-width: 900px) { .plan__views { height: min(62vh, 620px); } }
.villa { position: relative; display: flex; align-items: center; justify-content: center; min-height: min(52vh, 480px); overflow: hidden; }
.villa__one { font-family: var(--f-display); font-weight: 300; font-size: clamp(14rem, 30vw, 26rem); line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--bronze); }
.villa__of { position: absolute; right: 12%; top: 58%; font-size: 1rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.villa__strata { position: absolute; left: 0; right: 0; bottom: 6%; width: 100%; height: 34%; fill: none; stroke: var(--sand); stroke-width: 1; }
.villa__strata path { vector-effect: non-scaling-stroke; }

/* Dusk: the light changes as you rise */
.dusk { position: relative; z-index: 0; min-height: 76vh; display: flex; align-items: flex-end; padding: 0 var(--gutter) 14vh; }
@media (min-width: 1100px) { .dusk { padding: 0 0 14vh 4vw; } }
.dusk::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -100vw; right: -100vw; background: linear-gradient(180deg, var(--deep) 0%, #2E4855 12%, #6F7581 24%, #B79A93 34%, #6F7581 46%, #2E4855 58%, #15323D 70%, var(--deep) 84%); }
.dusk__type { width: 100%; color: var(--on-dark); font-size: clamp(3rem, 7.4vw, 9.4rem); line-height: .94; letter-spacing: -.03em; white-space: nowrap; }
.dusk__line { display: block; will-change: transform; }
.dusk__line--b { padding-left: 6vw; color: var(--sand); }
.dusk__line em { font-style: italic; }
@media (max-width: 699px) {
  /* Phones: the glow starts straight away instead of after a dark lead-in, so the line sits closer to the content above. */
  .chapter--res { padding-bottom: 56px; }
  .dusk { min-height: 0; padding: 22vh var(--gutter) 7vh; }
  .dusk::before { background: linear-gradient(180deg, var(--deep) 0%, #2E4855 8%, #6F7581 18%, #B79A93 28%, #6F7581 40%, #2E4855 52%, #15323D 62%, var(--deep) 80%); }
  .dusk__type { white-space: normal; font-size: clamp(2.8rem, 13vw, 4.2rem); }
  .dusk__line--b { padding-left: 0; }
}

/* Sky */
.chapter--sky { padding-top: clamp(40px, 6vh, 80px); }
.sky__grid { display: grid; gap: 48px; }
.sky__crown { aspect-ratio: 760 / 880; border-radius: var(--sail-l); }
.sky__list li { display: grid; grid-template-columns: 3em 1fr; gap: 4px 16px; padding: 24px 0; border-top: 1px solid var(--hair-d); }
.sky__list li:last-child { border-bottom: 1px solid var(--hair-d); }
.sky__n { grid-row: span 2; padding-top: .3em; font-size: .8125rem; font-weight: 600; letter-spacing: .12em; color: var(--sand); }
.sky__list h4 { font-size: clamp(1.25rem, 1.7vw, 1.6rem); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; line-height: 1.2; color: var(--on-dark); }
.sky__list p { font-size: 1rem; max-width: 50ch; margin-top: 8px; }
.sky__side .lcard { margin-top: 32px; }
@media (min-width: 900px) { .sky__grid { grid-template-columns: 5fr 6fr; gap: 6vw; align-items: center; } }
.sky__collage { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: clamp(64px, 10vh, 120px); }
.sky__plan { grid-column: 1 / -1; background: var(--ivory); padding: clamp(12px, 2vw, 26px); }
.sky__plan img { width: 100%; }
.sky__t1 { aspect-ratio: 2 / 3; }
.sky__t2 { aspect-ratio: 2 / 3; margin-top: 18%; }
.sky__t3 { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
@media (min-width: 900px) {
  .sky__collage { grid-template-columns: repeat(12, 1fr); gap: 0 1.6vw; align-items: start; }
  .sky__plan { grid-column: 1 / 7; grid-row: 1; margin-top: 8vh; }
  .sky__t1 { grid-column: 7 / 10; grid-row: 1; }
  .sky__t2 { grid-column: 10 / 13; grid-row: 1; margin-top: 16vh; }
  .sky__t3 { grid-column: 4 / 9; grid-row: 2; margin-top: -4vh; z-index: 2; outline: 10px solid var(--deep); }
}

/* =========================================================
   04 GALLERY
   ========================================================= */
.gallery { position: relative; background: var(--deep); color: var(--on-dark-2); padding: var(--sect) 0; overflow: hidden; }
.gallery__center { padding: 0 var(--gutter); }
.gallery__center .kicker { color: var(--on-dark); }
.gallery__center .kicker span { color: var(--sand); }
.gallery__center .h-xl { color: var(--on-dark); margin: 20px 0 16px; }
.gallery__center .h-xl em { color: var(--sand); }
.gallery__text { font-size: 1.0625rem; line-height: 1.6; color: var(--on-dark-2); max-width: 44ch; margin: 0 0 18px; }
@media (min-width: 900px) { .gallery__text { margin: 0 auto 18px; } }
.gallery__count { font-size: .875rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 28px; }
.gallery__wall { position: relative; }
.gtile { position: relative; display: block; padding: 0; border: 0; background: var(--deep-2); cursor: zoom-in; overflow: hidden; }
.gtile img, .gtile picture { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
@media (hover: hover) { .gtile:hover img { transform: scale(1.05); } }
.gtile::after { content: "+"; position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(11, 36, 43, .85); color: var(--on-dark); font-size: 1.2rem; }
.gtile:focus-visible { outline: 2px solid var(--sand); outline-offset: 4px; }
@media (max-width: 899px) {
  .gallery__wall { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 var(--gutter); }
  .gallery__center { grid-column: 1 / -1; padding: 0 0 28px; }
  .gtile { aspect-ratio: 4 / 3; }
  .g1, .g6 { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .g2 { aspect-ratio: auto; grid-row: span 2; }
}
@media (min-width: 900px) {
  /* The wall grows with the text. The two centre tiles get reserved bands above and below it,
     and the side tiles stop short of the text column, so nothing overlaps the copy at any width. */
  .gallery { padding: 0; }
  .gallery__wall { --edge: 48px; --clear: 88px; --g2h: 14vw; --g5h: 12.5vw;
    display: flex; align-items: center; justify-content: center; min-height: max(116vh, 880px);
    padding: calc(var(--edge) + var(--g2h) + var(--clear)) 0 calc(var(--edge) + var(--g5h) + var(--clear)); }
  .gallery__center { position: relative; z-index: 3; width: min(34vw, 520px); padding: 0; text-align: center; }
  .gallery__center .kicker { justify-content: center; }
  .gtile { position: absolute; }
  .g1 { left: 3%; top: 7%; width: 25vw; aspect-ratio: 16 / 10; }
  .g2 { left: 39%; top: var(--edge); width: 10.5vw; aspect-ratio: 3 / 4; }
  .g3 { right: 4%; top: 10%; width: 24vw; aspect-ratio: 16 / 10; }
  .g4 { left: 6%; bottom: 8%; width: 20vw; aspect-ratio: 4 / 3; }
  .g5 { left: 38%; bottom: var(--edge); width: 20vw; aspect-ratio: 16 / 10; }
  .g6 { right: 5%; bottom: 10%; width: 20vw; aspect-ratio: 16 / 10; }
}

/* Lightbox */
.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--deep); color: var(--on-dark); overflow: hidden; }
.lightbox::backdrop { background: var(--deep); }
.lightbox__fig { position: absolute; inset: 64px 76px 96px; display: flex; flex-direction: column; }
.lightbox__frame { flex: 1; min-height: 0; display: grid; place-items: center; }
.lightbox__frame img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox__cap { position: absolute; left: 0; right: 0; bottom: -68px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.lightbox__cap .label { color: var(--sand); }
.lightbox__t { font-size: 1rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.lightbox__btn, .lightbox__close {
  position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--ui-d);
  background: rgba(11, 36, 43, .8); color: var(--on-dark); font-size: 1.2rem; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
@media (hover: hover) { .lightbox__btn:hover, .lightbox__close:hover { background: var(--on-dark); color: var(--ink); } }
.lightbox__btn--prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__btn--next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__close { right: 12px; top: 8px; font-size: 1.5rem; }
@media (max-width: 699px) {
  .lightbox__fig { inset: 64px 12px 140px; }
  .lightbox__btn { top: auto; bottom: 20px; transform: none; }
  .lightbox__btn--prev { left: auto; right: 76px; }
}

/* =========================================================
   05 LOCATION
   ========================================================= */
.loc { background: var(--ivory); padding: var(--sect) 0; }
.loc__head { margin-bottom: clamp(48px, 8vh, 90px); }
.loc__head .h-xl { margin-top: 24px; }
.loc__grid { display: grid; gap: 44px; }
.map__canvas { position: relative; overflow: hidden; background: var(--stone); }
.map__canvas img { width: 100%; filter: saturate(.8) sepia(.06); }
.pin { position: absolute; left: var(--x); top: var(--y); display: flex; align-items: center; gap: 10px; transform: translate(-7px, -50%); }
.pin i { position: relative; flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--bronze); box-shadow: 0 0 0 5px rgba(148, 113, 76, .25); }
.pin b { font-weight: 500; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; background: var(--ivory); color: var(--ink); padding: 7px 12px; border-radius: 3px; box-shadow: 0 6px 20px rgba(11, 36, 43, .16); }
.pin--eh b { background: var(--ink); color: var(--ivory); }
.pin--eh i::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid var(--bronze); animation: ping 2.8s var(--ease) infinite; animation-play-state: paused; }
.map.is-inview .pin--eh i::after { animation-play-state: running; }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
.pin--grove i { background: var(--sage); box-shadow: 0 0 0 5px rgba(126, 136, 114, .28); }
.pin--plain b { background: rgba(11, 36, 43, .85); color: var(--on-dark); box-shadow: none; }
.loc__info .statement { margin-bottom: 20px; }
.loc__body { margin-bottom: 28px; max-width: 46ch; }
.spec--compact dd { font-size: 1rem; }
.loc__times { margin-top: 26px; }
.loc__times li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--hair); }
.loc__times li span:last-child { font-weight: 600; color: var(--ink); }
.loc__info .link-arrow { margin-top: 26px; }
@media (min-width: 900px) { .loc__grid { grid-template-columns: 8fr 4fr; gap: 4vw; align-items: start; } }
@media (max-width: 599px) { .pin b { padding: 5px 9px; letter-spacing: .06em; } .pin i { width: 10px; height: 10px; } }
@media (max-width: 359px) { .pin b { letter-spacing: .02em; padding: 5px 7px; } }

/* =========================================================
   PROJECT DETAILS
   ========================================================= */
.explore { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: min(100vh, 980px); background: var(--deep); color: var(--on-dark); }
.explore__media { position: absolute; inset: 0; overflow: hidden; }
.explore__media picture, .explore__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.explore::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 26, 32, .3) 0%, rgba(8, 26, 32, .72) 42%, rgba(8, 26, 32, .94) 100%); }
.explore__inner { position: relative; z-index: 2; padding-top: 28vh; padding-bottom: clamp(56px, 9vh, 110px); }
.explore .kicker, .explore__inner > .label { color: var(--on-dark); }
.explore .kicker span { color: var(--sand); }
.explore .h-xl { margin-top: 20px; color: var(--on-dark); }
.explore .h-xl em { color: var(--sand); }
.explore__lede { color: var(--on-dark); margin: 26px 0 36px; }
.explore__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.explore__extras { display: grid; gap: 12px; margin-top: 40px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 980px; }
@media (max-width: 699px) {
  .explore { min-height: 0; }
  .explore::after { background: linear-gradient(180deg, rgba(8, 26, 32, .4) 0%, rgba(8, 26, 32, .76) 22%, rgba(8, 26, 32, .94) 100%); }
  .explore__inner { padding-top: clamp(120px, 18vh, 170px); }
}
.extra { position: relative; display: grid; gap: 6px; padding: 22px 56px 22px 24px; text-decoration: none; border: 1px solid var(--hair-d); background: rgba(8, 26, 32, .7); transition: background-color .4s var(--ease); }
@media (hover: hover) { .extra:hover { background: rgba(8, 26, 32, .9); } }
.extra .label { color: var(--sand); }
.extra__t { font-size: 1.125rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.extra__go { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.2rem; }

/* =========================================================
   ENQUIRY
   ========================================================= */
.enq { display: grid; background: var(--ivory); }
.enq__media { position: relative; }
.enq__sticky { height: 58vh; overflow: hidden; }
.enq__sticky picture, .enq__sticky img { width: 100%; height: 100%; object-fit: cover; object-position: 64% 50%; }
.enq__panel { padding: clamp(64px, 11vh, 130px) var(--gutter); max-width: 800px; }
.enq__title { margin: 18px 0 22px; }
.enq__title em { color: var(--accent); }
.enq__intro { max-width: 46ch; margin-bottom: 40px; }
@media (min-width: 900px) { .enq { grid-template-columns: 46fr 54fr; } .enq__sticky { position: sticky; top: 0; height: 100vh; } }

.form__intents { border: 0; padding: 0; margin: 0 0 30px; min-width: 0; }
.form__intents legend { padding: 0; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .chip { position: relative; cursor: pointer; }
.chips .chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chips .chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--ui); border-radius: 999px; font-size: .9375rem; color: var(--ink); transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
@media (hover: hover) { .chips .chip:hover span { border-color: var(--ink); } }
.chips .chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.chips .chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.form__row { display: grid; gap: 0 28px; }
@media (min-width: 600px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 24px; }
.field > label { display: block; margin-bottom: 4px; font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.field abbr { text-decoration: none; color: var(--accent); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--ui); border-radius: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1.0625rem; font-weight: 400; -webkit-appearance: none; appearance: none; outline: none; transition: border-color .3s var(--ease); }
.field input::placeholder { color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { box-shadow: 0 2px 0 0 var(--accent); }
.field textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.field.is-bad input, .field.is-bad select, .field.is-bad .phone__prefix { border-bottom-color: var(--err); }
.field__err { margin-top: 6px; font-size: .875rem; color: var(--err); }
.field__err:empty { display: none; }
.select { position: relative; }
.select::after, .phone__prefix::after { content: ""; position: absolute; right: 4px; top: 50%; width: 7px; height: 7px; pointer-events: none; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-75%) rotate(45deg); }
.select select { padding-right: 24px; cursor: pointer; }
.phone { display: flex; gap: 16px; }
.phone__prefix { position: relative; flex: none; display: flex; align-items: center; min-width: 90px; min-height: 48px; padding: 0 22px 0 0; border-bottom: 1px solid var(--ui); color: var(--ink); }
.phone__prefix:focus-within { border-bottom-color: var(--ink); box-shadow: 0 2px 0 0 var(--accent); }
.phone__prefix select { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; opacity: 0; cursor: pointer; border: 0; }
.phone input { flex: 1; min-width: 0; }
.form__note { margin-top: 14px; font-size: .875rem; color: var(--ink-3); }
.form__note a { color: var(--ink); }
.form__done { margin-top: 24px; padding: 26px; border: 1px solid var(--hair); background: var(--paper); }
.form__done h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3; margin-bottom: 8px; color: var(--ink); }
.form__done p { margin-bottom: 18px; }
.form__done .btn { margin: 4px 8px 0 0; }
.enq__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--hair); }

/* ---------- Team ---------- */
.team { background: var(--paper); padding: clamp(80px, 12vh, 140px) 0; }
.team__h { margin-bottom: 36px; }
.team__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
@media (min-width: 700px) { .team__list { grid-template-columns: repeat(3, 1fr); gap: 40px 24px; } }
@media (min-width: 1200px) { .team__list { grid-template-columns: repeat(6, 1fr); } }
.team__card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1); background: var(--stone); }
.team__name { margin-top: 14px; font-size: 1.0625rem; font-weight: 500; line-height: 1.3; color: var(--ink); }
.team__role { margin-top: 4px; color: var(--ink-3); }
.team__act { display: flex; gap: 18px; margin-top: 6px; }
.team__act a { display: inline-flex; align-items: center; min-height: 36px; border-bottom: 1px solid var(--ui); font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
@media (hover: hover) { .team__act a:hover { border-color: var(--ink); } }

/* =========================================================
   FOOTER
   ========================================================= */
.foot { background: var(--deep); color: var(--on-dark-2); padding: clamp(72px, 11vh, 120px) 0 calc(40px + env(safe-area-inset-bottom)); overflow: hidden; }
.foot .label { color: var(--on-dark-3); }
.foot__band { padding: 32px 0; border-top: 1px solid var(--hair-d); }
.foot__band:first-child { padding-top: 0; border-top: 0; }
.foot__masthead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 36px; }
.foot__project { font-size: clamp(2.5rem, 4vw, 3.5rem); line-height: 1; letter-spacing: -.02em; color: var(--on-dark); }
.foot__project em { font-style: italic; color: var(--sand); }
.foot__place { margin-top: 16px; font-size: 1rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; line-height: 1.5; color: var(--on-dark); }
.foot__contact .label { color: var(--sand); }
.foot__tel { display: inline-flex; align-items: center; min-height: 44px; margin: 6px 0 2px; font-size: clamp(1.75rem, 2.8vw, 2.6rem); font-weight: 400; letter-spacing: .02em; line-height: 1.1; text-decoration: none; color: var(--on-dark); }
.foot__reach { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: .9375rem; }
.foot__reach a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; border-bottom: 1px solid var(--hair-d); color: var(--on-dark); }
.foot__credits { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 36px; }
.foot__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; margin-top: 22px; }
.foot__logos img { height: 40px; width: auto; }
.foot__logos li:first-child img { height: 64px; }
.foot__logos li:nth-child(2) img { height: 38px; }
.foot__logos li:nth-child(3) img, .foot__logos li:nth-child(4) img { height: 46px; }
.foot__logos li:nth-child(5) img { height: 34px; }
.foot__brand { display: block; width: 128px; height: auto; margin-top: 14px; filter: brightness(0) invert(.94); }
.foot__nav { display: flex; flex-wrap: wrap; gap: 4px 30px; }
.foot__nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .8125rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--on-dark-2); }
@media (hover: hover) { .foot__nav a:hover { color: var(--on-dark); } }
.foot__base { display: grid; gap: 24px; align-items: start; }
.foot__agency { display: inline-flex; }
.foot__agency img { width: 98px; filter: brightness(0) invert(.92); }
.foot__fine p { max-width: 116ch; font-size: .8125rem; line-height: 1.7; color: var(--on-dark-3); }
.foot__fine p + p { margin-top: 10px; }
.foot__privacy { justify-self: start; display: inline-flex; align-items: center; min-height: 36px; border-bottom: 1px solid var(--hair-d); font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--on-dark); }
@media (min-width: 900px) { .foot__base { grid-template-columns: auto 1fr auto; gap: 40px; } .foot__contact { text-align: right; } .foot__reach { justify-content: flex-end; } }

/* ---------- Mobile quick actions ---------- */
.dock { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; display: flex; gap: 8px; transform: translateY(150%); transition: transform .6s var(--ease-out); }
.dock.is-on { transform: none; }
.dock a { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 999px; font-size: .8125rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.dock__wa { background: var(--ivory); color: var(--ink); border: 1px solid var(--ui); }
.dock__cta { background: var(--ink); color: var(--ivory); transition: background-color .4s var(--ease), color .4s var(--ease); }
.dock.is-dark .dock__cta { background: var(--sand); color: var(--deep); }
@media (min-width: 900px) { .dock { display: none; } }

/* ---------- Privacy dialog ---------- */
.modal { width: min(760px, calc(100% - 32px)); max-height: min(86vh, 900px); padding: 0; overflow: auto; border: 0; border-radius: 4px; background: var(--ivory); color: var(--ink-2); box-shadow: 0 30px 80px rgba(11, 36, 43, .35); }
.modal::backdrop { background: rgba(11, 36, 43, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal__head { position: sticky; top: 0; z-index: 1; display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 26px 30px 18px; background: var(--ivory); border-bottom: 1px solid var(--hair); }
.modal__head .label { color: var(--ink-3); }
.modal__title { font-family: var(--f-display); font-weight: 300; font-size: 2.6rem; line-height: 1.05; color: var(--ink); }
.modal__close { grid-row: 1 / 3; grid-column: 2; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--ui); background: none; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink); }
.modal__body { padding: 22px 30px 36px; font-size: 1rem; }
.modal__body h3 { margin: 26px 0 8px; font-size: 1.0625rem; font-weight: 600; color: var(--ink); }
.modal__body p + p { margin-top: 12px; }
.modal__body ul { list-style: disc; padding-left: 1.2em; margin: 10px 0; }
.modal__body li + li { margin-top: 4px; }
.modal__addr { margin-top: 28px !important; font-size: .875rem; color: var(--ink-3); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
}

/* =========================================================
   HEADING FONT — Unbounded ExtraLight (trial, 2 Nov 2026)
   Unbounded has no italic, so accent words stay upright and
   keep their colour. Remove this block to return to Boska.
   ========================================================= */
:root { --f-display: 'Unbounded', 'Jost', 'Helvetica Neue', Arial, sans-serif; }
.h-xxl, .h-xl, .h-l, .hero__word, .res__name, .pull, .foot__project, .dusk__type,
.menu__links a, .move__n, .evo__num, .layer__title, .gauge__lv, .rcard__img--villa span,
.rcard__area b, .res__area span, .villa__one, .modal__title, .glance__big { font-weight: 200; }
.h-xxl em, .h-xl em, .h-l em, .hero__word em, .layer__title em, .pull em,
.res__name em, .dusk__line em, .foot__project em { font-style: normal; }
/* Unbounded is wide with a tall x-height: looser lines than Boska.
   Base sizes serve tablets; phones get bigger type, desktop smaller and airier. */
.h-xxl { font-size: clamp(2.9rem, 7.4vw, 8.6rem); line-height: 1; }
.h-xl  { font-size: clamp(2.4rem, 5.2vw, 6rem); line-height: 1.04; }
.h-l   { font-size: clamp(2.1rem, 3.4vw, 3.8rem); line-height: 1.06; }
.res__name, .layer__title, .pull, .foot__project, .modal__title { line-height: 1.06; }
.res__name { font-size: clamp(2.2rem, 3.8vw, 3.9rem); }
.layer__title { font-size: clamp(2.1rem, 3.2vw, 3.3rem); }
.pull { font-size: clamp(2.1rem, 3.9vw, 4.2rem); }
.foot__project { font-size: clamp(2.1rem, 3.3vw, 3rem); }
.modal__title { font-size: 2.1rem; }
.glance__big { font-size: clamp(2.2rem, 3.4vw, 3.6rem); }
.dusk__type { font-size: clamp(2.6rem, 5.1vw, 6.6rem); line-height: 1.04; }
.menu__links a { font-size: clamp(2.3rem, 9.4vw, 3.4rem); }
.hero__word { font-size: clamp(3rem, 14.2vw, 6.6rem); line-height: .94; letter-spacing: -.035em; }

@media (max-width: 699px) {
  .h-xxl { font-size: 12.6vw; }
  .h-xl  { font-size: 11.4vw; }
  .h-l   { font-size: 10.4vw; }
  .res__name, .layer__title, .pull { font-size: 10vw; }
  .foot__project { font-size: 9.6vw; }
  .glance__big { font-size: min(2.5rem, 10.3vw); }
  .dusk__type { font-size: 12vw; }
}

@media (min-width: 900px) {
  .hero__word { font-size: min(7.2vw, 14.5vh); line-height: .94; letter-spacing: -.02em; }
  .h-xxl { font-size: clamp(3rem, 6.2vw, 7.2rem); letter-spacing: -.012em; }
  .h-xl  { font-size: clamp(2.4rem, 4.4vw, 5rem); letter-spacing: -.01em; }
  .h-l   { font-size: clamp(2.1rem, 2.9vw, 3.3rem); letter-spacing: -.005em; }
  .res__name { font-size: clamp(2.2rem, 3.2vw, 3.4rem); letter-spacing: -.005em; }
  .layer__title { font-size: clamp(2.1rem, 2.7vw, 2.9rem); letter-spacing: 0; }
  .pull { font-size: clamp(2.1rem, 3.3vw, 3.6rem); letter-spacing: -.005em; }
  .foot__project { font-size: clamp(2.1rem, 2.8vw, 2.6rem); letter-spacing: 0; }
  .glance__big { font-size: clamp(2.2rem, 3vw, 3.2rem); letter-spacing: 0; }
  .dusk__type { font-size: clamp(2.6rem, 4.5vw, 5.8rem); letter-spacing: -.01em; }
}

/* =========================================================
   RESIDENCES — three types (3 Nov 2026)
   ========================================================= */
@media (min-width: 900px) {
  .rcard__img { position: relative; aspect-ratio: 1 / 1; padding: 0; }
  .rcard__img img { position: absolute; inset: 7%; width: 86%; height: 86%; }
  .rcards > li:last-child .rcard__img img { inset: 4%; width: 92%; height: 92%; }   /* the wide 2-bedroom plan */
}
@media (max-width: 479px) {
  .res__tabs { gap: 16px; }
  .res__tab { font-size: .75rem; letter-spacing: .07em; }
}
@media (max-width: 379px) { .res__tabs { gap: 11px; } .res__tab { letter-spacing: .05em; } }
