/* ==========================================================================
   Diamond Inya Palace — design system & site styles
   --------------------------------------------------------------------------
   IDEA     The building directory. A 33-storey tower is read like the brass
            directory in its own lobby: every page is organised by level,
            and a lift-style storey indicator travels with you.
   COLOUR   Inya night (deep ink from the brand navy), limestone paper,
            brand steel blue as support, one jade accent for state.
   TYPE     Zodiak (primary) for display and reading; Switzer (secondary)
            for levels, numerals, navigation and specifications — signage,
            not decoration. Both self-hosted variable fonts (Fontshare FFL).
   LAYOUT   12-column grid, left-aligned, hanging level numbers in the first
            columns. Photography edge to edge; text never centred by default.
   ========================================================================== */

/* ---------- 0. Typefaces (self-hosted, variable 100–900) ---------- */
@font-face { font-family: "Zodiak"; src: url("../fonts/Zodiak-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Zodiak"; src: url("../fonts/Zodiak-VariableItalic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("../fonts/Switzer-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("../fonts/Switzer-VariableItalic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand palette */
  --c-ink: #121a26;        /* Inya night: dominant dark ground */
  --c-navy: #2b3a56;       /* existing brand navy */
  --c-steel: #7d94ae;      /* existing brand steel blue */
  --c-paper: #f5f4f1;      /* limestone paper: light ground */
  --c-stone: #e4e1da;      /* deeper stone band */
  --c-jade: #2f6b5f;       /* state accent: active level, focus, success */
  --c-white: #ffffff;
  --c-error: #9e2f2f;

  /* Semantic tokens (light context) */
  --bg: var(--c-paper);
  --bg-alt: var(--c-stone);
  --fg: var(--c-ink);
  --fg-muted: #4c5566;
  --fg-faint: #7a8291;
  --line: rgba(18, 26, 38, .16);
  --line-strong: rgba(18, 26, 38, .42);
  --focus: var(--c-jade);

  /* Type */
  --f-serif: "Zodiak", "Iowan Old Style", "Palatino Linotype", Georgia, serif;   /* primary */
  --f-sans: "Switzer", "Helvetica Neue", Arial, sans-serif;                       /* secondary */
  --t-xs: .8125rem;   /* 13 */
  --t-sm: .9375rem;   /* 15 */
  --t-md: 1.0625rem;  /* 17 body */
  --t-lg: 1.3125rem;  /* 21 */
  --t-xl: clamp(1.5rem, 1.1rem + 1.2vw, 1.875rem);    /* 24–30 */
  --t-2xl: clamp(2rem, 1.3rem + 2.4vw, 3rem);         /* 32–48 */
  --t-3xl: clamp(2.5rem, 1.4rem + 4vw, 4.75rem);      /* 40–76 */
  --t-4xl: clamp(3rem, 1.2rem + 7vw, 8.5rem);         /* 48–136 display */

  /* Space (8pt base) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 144px;
  --section: clamp(72px, 9vw, 160px);

  /* Layout */
  --max: 1440px;
  --gutter: clamp(16px, 2vw, 32px);
  --margin: clamp(20px, 5vw, 80px);
  --header-h: 76px;
  --sticky-top: var(--header-h);

  /* Shape */
  --r-0: 0;          /* photography, panels */
  --r-1: 2px;        /* buttons, inputs */
  --r-pill: 999px;   /* inline statement images, chips */

  /* Motion */
  --ease-out: cubic-bezier(.2, .7, .1, 1);
  --ease-lift: cubic-bezier(.65, 0, .25, 1);  /* a lift: smooth start, settles gently */
  --d-lift: 420ms;
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --d-fast: 180ms;
  --d-base: 420ms;
  --d-slow: 900ms;
  --d-hero: 1600ms;

  color-scheme: light;
}

/* Dark context: any element with .is-dark flips the semantic tokens */
.is-dark {
  --bg: var(--c-ink);
  --bg-alt: #1a2433;
  --fg: #eef0f2;
  --fg-muted: #b3bcc8;
  --fg-faint: #8691a1;
  --line: rgba(238, 240, 242, .16);
  --line-strong: rgba(238, 240, 242, .45);
  --focus: #7fc2b2;
  background: var(--bg);
  color: var(--fg);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { min-width: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 var(--t-md)/1.6 var(--f-serif);
  font-feature-settings: "kern", "liga", "onum";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-weight: 400; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--c-steel); color: var(--c-white); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--s-4); top: -60px; z-index: 200; background: var(--c-white); color: var(--c-ink); padding: var(--s-3) var(--s-4); font: 500 var(--t-sm)/1 var(--f-sans); }
.skip:focus { top: var(--s-4); }

/* ---------- 3. Type helpers ---------- */
.display { font-size: var(--t-4xl); line-height: .96; letter-spacing: -.025em; }
.h1 { font-size: var(--t-3xl); line-height: 1.02; letter-spacing: -.02em; }
.h2 { font-size: var(--t-2xl); line-height: 1.08; }
.h3 { font-size: var(--t-xl); line-height: 1.2; }
.lede { font-size: var(--t-lg); line-height: 1.5; color: var(--fg-muted); max-width: 34em; }
.prose { max-width: 36em; }
.prose p { font-size: var(--t-md); line-height: 1.7; }
.muted { color: var(--fg-muted); }
/* Signage voice: Switzer for levels, numbers, specs and UI */
.sign { font-family: var(--f-sans); font-weight: 500; letter-spacing: .01em; }
.label { font: 500 var(--t-xs)/1.3 var(--f-sans); color: var(--fg-muted); }
.num { font-family: var(--f-sans); font-weight: 300; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.02em; }

/* ---------- 4. Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.band { background: var(--bg-alt); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.stack > * + * { margin-top: var(--s-5); }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* ---------- 5. Buttons & links ---------- */
.btn {
  --btn-bg: var(--fg); --btn-fg: var(--bg); --btn-line: var(--btn-bg);
  --fill: var(--c-jade); --fill-fg: var(--c-white);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-3);
  min-height: 48px; padding: 0 var(--s-5);
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-line); border-radius: var(--r-1);
  font: 500 var(--t-sm)/1 var(--f-sans); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: color var(--d-lift) var(--ease-lift), border-color var(--d-lift) var(--ease-lift);
}
.btn--line { --btn-bg: transparent; --btn-fg: var(--fg); --btn-line: var(--line-strong); --fill: var(--fg); --fill-fg: var(--bg); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; cursor: progress; }

/* One hover for every button — "the lift doors".
   Two brushed panels slide shut from either side and meet at a hairline seam, the label rolls up
   one storey like the floor display, and a soft halo lights up around it like a pressed call button.
   On leave the doors part again. */
.btn::before, .btn::after, .lift-fx::before, .lift-fx::after {
  content: ""; position: absolute; top: -1px; bottom: -1px; width: calc(50% + 1px); z-index: -1; pointer-events: none;
  transition: transform var(--d-lift) var(--ease-lift);
}
.btn::before, .lift-fx::before {
  left: -1px; transform: translateX(-101%);
  background: linear-gradient(90deg, var(--fill) 0%, var(--fill) 55%, color-mix(in srgb, var(--fill) 91%, #fff) 100%);
}
.btn::after, .lift-fx::after {
  right: -1px; transform: translateX(101%);
  background: linear-gradient(270deg, var(--fill) 0%, var(--fill) 55%, color-mix(in srgb, var(--fill) 91%, #fff) 100%);
  box-shadow: inset 1px 0 0 color-mix(in srgb, var(--fill-fg) 34%, transparent);   /* the door seam: visible while the doors move */
  transition: transform var(--d-lift) var(--ease-lift), box-shadow .25s ease;
}
.btn:hover::after, .btn:focus-visible::after, .lift-fx:hover::after, .lift-fx:focus-visible::after { box-shadow: inset 1px 0 0 transparent; transition: transform var(--d-lift) var(--ease-lift), box-shadow .3s ease calc(var(--d-lift) - 60ms); }
.btn:hover::before, .btn:hover::after, .btn:focus-visible::before, .btn:focus-visible::after,
.lift-fx:hover::before, .lift-fx:hover::after, .lift-fx:focus-visible::before, .lift-fx:focus-visible::after { transform: none; }
.btn:hover, .btn:focus-visible {
  color: var(--fill-fg); border-color: var(--fill);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--fill) 16%, transparent), 0 10px 24px -14px color-mix(in srgb, var(--fill) 80%, transparent);
}
.btn { transition: color var(--d-lift) var(--ease-lift), border-color var(--d-lift) var(--ease-lift), box-shadow var(--d-lift) var(--ease-lift), translate .4s var(--ease-out); }
.btn svg { transition: transform var(--d-lift) var(--ease-lift); }
.btn:hover svg { transform: translate(2px, -2px); }
/* Rolling label (wrapped by site.js; plain text still works without JS) */
.btn__t { position: relative; display: inline-block; overflow: hidden; line-height: 1.35; vertical-align: middle; }
.btn__t > span, .btn__t::after { display: block; transition: transform var(--d-lift) var(--ease-lift); }
.btn:hover .btn__t > span, .btn:hover .btn__t::after { transition-delay: 70ms; }
.btn__t::after { content: attr(data-t); position: absolute; left: 0; right: 0; top: 100%; white-space: nowrap; }
.btn:hover .btn__t > span, .btn:hover .btn__t::after, .btn:focus-visible .btn__t > span, .btn:focus-visible .btn__t::after { transform: translateY(-100%); }

/* Smaller controls share the same rising fill (no label roll) */
.lift-fx { position: relative; isolation: isolate; overflow: hidden; --fill: var(--fg); --fill-fg: var(--bg); transition: color var(--d-lift) var(--ease-lift), border-color var(--d-lift) var(--ease-lift); }
.lift-fx:hover, .lift-fx:focus-visible { color: var(--fill-fg); border-color: var(--fill); }
@media (prefers-reduced-motion: reduce) {
  .btn::before, .btn::after, .lift-fx::before, .lift-fx::after { transition-duration: 1ms; }
  .btn__t > span, .btn__t::after { transition: none; }
  .btn:hover .btn__t > span, .btn:hover .btn__t::after { transform: none; }
}
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.link {
  display: inline-flex; align-items: baseline; gap: .5em;
  font: 500 var(--t-sm)/1.2 var(--f-sans);
  text-decoration: none; padding-block: 6px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size var(--d-base) var(--ease-out);
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; }
.link svg { width: 14px; height: 14px; transition: transform var(--d-fast) var(--ease-out); align-self: center; }
.link:hover svg { transform: translateX(3px); }

/* ---------- 6. Header & menu ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  color: var(--c-white);
  transition: background var(--d-base) var(--ease-out), transform var(--d-base) var(--ease-out);
}
.header::before { /* legibility scrim over photography */
  content: ""; position: absolute; inset: 0 0 -40px; pointer-events: none;
  background: linear-gradient(rgba(10, 15, 23, .55), rgba(10, 15, 23, 0));
  transition: opacity var(--d-base);
}
.header.is-solid { background: var(--c-ink); }
.header.is-solid::before { opacity: 0; }
.header.is-hidden { transform: translateY(-100%); }
.header__in { position: relative; height: 100%; display: flex; align-items: center; gap: var(--s-6); }
.header__logo { flex: none; display: block; width: 132px; }
.header__logo img { width: 100%; height: auto; }
.header__nav { display: flex; gap: var(--s-6); margin-left: auto; }
.header__nav a { font: 500 var(--t-sm)/1 var(--f-sans); text-decoration: none; padding: 10px 0; opacity: .86; position: relative; }
.header__nav a:hover, .header__nav a[aria-current="page"] { opacity: 1; }
.header__nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; }
.header__actions { display: flex; align-items: center; gap: var(--s-3); }
.header .btn { --btn-bg: var(--c-white); --btn-fg: var(--c-ink); --btn-line: var(--c-white); min-height: 42px; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 var(--s-4);
  background: transparent; border: 1px solid rgba(255,255,255,.45); border-radius: var(--r-1); color: inherit; cursor: pointer;
  font: 500 var(--t-sm)/1 var(--f-sans);
}
.menu-btn { --fill: #fff; --fill-fg: var(--c-ink); }
.menu-btn__bars { width: 18px; height: 8px; position: relative; }
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform var(--d-base) var(--ease-out); }
.menu-btn__bars::before { top: 0; } .menu-btn__bars::after { bottom: 0; }
[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(3.5px) rotate(45deg); }
[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-3.5px) rotate(-45deg); }
@media (max-width: 1080px) { .header__nav { display: none; } .header__actions { margin-left: auto; } }
@media (max-width: 520px) { .header .btn--book { display: none; } .header__logo { width: 112px; } }

.menu {
  position: fixed; inset: 0; z-index: 90; display: grid; grid-template-columns: 1fr minmax(0, 42%);
  background: var(--c-ink); color: #eef0f2;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path var(--d-slow) var(--ease-io), visibility 0s linear var(--d-slow);
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path var(--d-slow) var(--ease-io); }
.menu__list { padding: calc(var(--header-h) + var(--s-7)) var(--margin) var(--s-7); overflow-y: auto; display: flex; flex-direction: column; justify-content: center; }
.menu__list li { overflow: hidden; }
.menu__list a {
  display: grid; grid-template-columns: 8.5em minmax(0, 1fr); align-items: baseline; gap: var(--s-4); text-decoration: none;
  font-size: clamp(1.75rem, 1rem + 2.6vw, 3.25rem); line-height: 1.18;
  transform: translateY(105%); transition: transform var(--d-slow) var(--ease-out), color var(--d-fast);
}
.menu.is-open .menu__list a { transform: none; }
.menu__list a:hover, .menu__list a[aria-current="page"] { color: var(--c-steel); }
.menu__list small { font: 500 var(--t-xs)/1 var(--f-sans); color: #8691a1; text-align: right; }
@media (max-width: 600px) { .menu__list a { grid-template-columns: minmax(0, 1fr); } .menu__list small { display: none; } }
.menu__aside { position: relative; overflow: hidden; }
.menu__aside img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity var(--d-base), transform 1.6s var(--ease-out); }
.menu__aside img.is-on { opacity: .85; transform: none; }
.menu__contact { position: absolute; left: var(--s-6); right: var(--s-6); bottom: var(--s-6); z-index: 1; color: #fff; font: 400 var(--t-sm)/1.5 var(--f-sans); text-shadow: 0 1px 12px rgba(0,0,0,.5); }
@media (max-width: 860px) { .menu { grid-template-columns: 1fr; } .menu__aside { display: none; } }

/* ---------- 7. Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--c-ink); isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,18,27,.1) 30%, rgba(12,18,27,.78) 100%), linear-gradient(90deg, rgba(12,18,27,.45), rgba(12,18,27,0) 60%); }
.hero__in { width: 100%; padding-bottom: clamp(40px, 7vh, 96px); padding-top: calc(var(--header-h) + 40px); }
.hero__title { max-width: 11ch; }
.hero__foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-6); margin-top: var(--s-6); }
.hero__foot p { max-width: 30em; font-size: var(--t-lg); line-height: 1.45; color: rgba(255,255,255,.86); margin: 0; }
.hero .btn { --btn-bg: #fff; --btn-fg: var(--c-ink); --btn-line: #fff; }
.hero .btn--line { --btn-bg: transparent; --btn-fg: #fff; --btn-line: rgba(255,255,255,.55); --fill: #fff; --fill-fg: var(--c-ink); }

/* Page hero for internal pages */
.phero { position: relative; color: #fff; background: var(--c-ink); min-height: min(78svh, 820px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.phero--short { min-height: auto; padding-top: calc(var(--header-h) + 72px); }
.phero__media { position: absolute; inset: 0; z-index: -1; }
.phero__media img { width: 100%; height: 100%; object-fit: cover; }
.phero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,18,27,.25), rgba(12,18,27,.75)); }
.phero__in { width: 100%; padding-top: calc(var(--header-h) + 64px); padding-bottom: clamp(40px, 6vw, 88px); }
.phero--short .phero__in { padding-top: 0; }
.phero .lede { color: rgba(255,255,255,.82); margin-top: var(--s-5); }
.crumbs { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-5); font: 500 var(--t-xs)/1.3 var(--f-sans); color: rgba(255,255,255,.7); }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: #fff; }
.crumbs li + li::before { content: "/"; margin-right: var(--s-2); opacity: .5; }

/* Line-mask reveal used for display headings */
/* Reveal masks: padded so Zodiak's deep descenders (g, y, p) and tall ascenders are never clipped */
.mask-line { display: block; overflow: hidden; padding-block: .14em .3em; margin-block: -.14em -.3em; }
.mask-line > span { display: block; }
.js .reveal-lines .mask-line > span { transform: translateY(145%); }
.js .reveal-lines.is-in .mask-line > span { transform: none; transition: transform 1.2s var(--ease-out); }
.js .reveal-lines.is-in .mask-line:nth-child(2) > span { transition-delay: .1s; }
.js .reveal-lines.is-in .mask-line:nth-child(3) > span { transition-delay: .2s; }
.js .hero__media img { transform: scale(1.08); }
.js .hero.is-in .hero__media img { transform: scale(1); transition: transform 2.8s var(--ease-out); }
.js .hero .fade-up { opacity: 0; transform: translateY(16px); }
.js .hero.is-in .fade-up { opacity: 1; transform: none; transition: opacity 1s var(--ease-out) .6s, transform 1s var(--ease-out) .6s; }

/* ---------- 8. Lift indicator (storey rail) ---------- */
.lift {
  position: fixed; right: clamp(12px, 2vw, 28px); top: 50%; z-index: 40; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: #fff; mix-blend-mode: difference; pointer-events: none;
}
.lift__num { font: 300 var(--t-lg)/1 var(--f-sans); font-variant-numeric: tabular-nums; min-width: 2.2ch; text-align: center; }
.lift__track { width: 1px; height: 160px; background: rgba(255,255,255,.35); position: relative; }
.lift__car { position: absolute; left: -2px; width: 5px; height: 18px; background: #fff; bottom: 0; transform: translateY(calc(var(--p, 0) * -142px)); }
.lift__cap { font: 500 10px/1 var(--f-sans); writing-mode: vertical-rl; transform: rotate(180deg); opacity: .75; }
@media (max-width: 1279px) { .lift { display: none; } }

/* ---------- 9. Statement (scroll-scrubbed words) ---------- */
.statement { font-size: clamp(1.75rem, 1rem + 3.1vw, 3.6rem); line-height: 1.16; letter-spacing: -.015em; max-width: 22ch; }
.statement .w { transition: opacity .25s linear; }
.js .statement .w { opacity: .16; }
.js .statement .w.on { opacity: 1; }
.statement .pill { display: inline-block; width: 2.1em; height: .82em; border-radius: var(--r-pill); overflow: hidden; vertical-align: -.06em; margin: 0 .08em; background: var(--bg-alt); }
.statement .pill img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 10. Directory (signature) ---------- */
.dir { border-top: 1px solid var(--line-strong); }
.dir__row { display: grid; grid-template-columns: minmax(120px, 2fr) minmax(0, 4fr) minmax(0, 5fr) 40px; gap: var(--gutter); align-items: center; padding: var(--s-5) 0; border-bottom: 1px solid var(--line); text-decoration: none; position: relative; }
.dir__row { transition: color .2s var(--ease-out); }
.dir__row::before { content: ""; position: absolute; inset: 0 calc(var(--margin) * -1); background: var(--fg); transform: scaleY(0); transform-origin: bottom; transition: transform .24s var(--ease-out); z-index: -1; will-change: transform; }
.dir__note { transition: color .2s var(--ease-out), opacity .2s var(--ease-out); }
.dir__row:hover::before { transform: scaleY(1); }
.dir__row:hover { color: var(--bg); }
.dir__row:hover .dir__note { color: var(--bg); opacity: .8; }
.dir { position: relative; isolation: isolate; }
.dir__lvl { font: 300 clamp(2.25rem, 1.4rem + 2.6vw, 4.5rem)/1 var(--f-sans); letter-spacing: -.02em; white-space: nowrap; }
.dir__lvl--none { display: flex; align-items: center; height: 1em; }
.dir__lvl--none::before { content: ""; width: 1px; height: 100%; border-left: 1px dashed currentColor; opacity: .5; margin-left: .3em; }
.dir__name { font-size: var(--t-xl); line-height: 1.15; }
.dir__note { color: var(--fg-muted); font-size: var(--t-md); line-height: 1.45; }
.dir__go { width: 40px; height: 40px; display: grid; place-items: center; }
.dir__go svg { width: 18px; transition: transform var(--d-fast) var(--ease-out); }
.dir__row:hover .dir__go svg { transform: translateX(4px); }
@media (max-width: 700px) {
  .dir__row { grid-template-columns: 72px minmax(0, 1fr) 28px; row-gap: 4px; }
  .dir__lvl { grid-row: span 2; font-size: 2rem; white-space: nowrap; }
  .dir__note { grid-column: 2; font-size: var(--t-sm); }
  .dir__go { grid-row: 1 / span 2; grid-column: 3; width: 28px; }
}

/* ---------- 11. Residence index (home) ---------- */
.rindex { border-top: 1px solid var(--line); }
.rindex__row { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: var(--gutter); align-items: baseline; padding: clamp(20px, 2.4vw, 34px) 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .26s var(--ease-out), color .18s var(--ease-out); }
.rindex__name { font-size: clamp(1.9rem, 1rem + 3.2vw, 4.25rem); line-height: 1; letter-spacing: -.02em; transition: transform .26s var(--ease-out); }
.rindex__meta { font: 400 var(--t-sm)/1.4 var(--f-sans); color: var(--fg-muted); }
.rindex__row:hover .rindex__name { transform: translateX(var(--s-4)); }
.rindex__thumb { display: none; }
.rindex__float { position: fixed; z-index: 30; left: 0; top: 0; width: min(34vw, 460px); aspect-ratio: 4 / 3; pointer-events: none; overflow: hidden; opacity: 0; background: var(--c-ink); will-change: transform, opacity; contain: layout paint; transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(.94); transition: opacity .16s var(--ease-out), scale .22s var(--ease-out); }
.rindex__float.is-on { opacity: 1; transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(1); }
/* The incoming photo fades in on top; the outgoing one stays put underneath until it is covered, so there is never a blank frame */
.rindex__float img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; z-index: 0; transition: opacity 0s linear .2s; }
.rindex__float img.is-on { opacity: 1; z-index: 1; transition: opacity .18s var(--ease-out); }
@media (hover: none), (max-width: 860px) {
  .rindex__float { display: none; }
  .rindex__row { grid-template-columns: 96px minmax(0, 1fr); row-gap: 6px; }
  .rindex__thumb { display: block; grid-row: span 3; aspect-ratio: 1; overflow: hidden; align-self: start; }
  .rindex__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .rindex__name { font-size: 1.9rem; }
}

/* ---------- 12. Media & figures ---------- */
.fig { margin: 0; position: relative; overflow: hidden; background: var(--bg-alt); }
.fig img { width: 100%; height: 100%; object-fit: cover; }
.fig figcaption { font: 400 var(--t-xs)/1.4 var(--f-sans); color: var(--fg-muted); padding-top: var(--s-3); background: var(--bg); }
.fig--plan { background: #fff; }
.fig--contain img { object-fit: contain; }
.fig--plan img { object-fit: contain; padding: 6%; }
.ratio-3-2 { aspect-ratio: 3 / 2; } .ratio-4-5 { aspect-ratio: 4 / 5; } .ratio-16-9 { aspect-ratio: 16 / 9; } .ratio-1 { aspect-ratio: 1; } .ratio-21-9 { aspect-ratio: 21 / 9; }
.parallax { will-change: transform; }
.js .reveal-img { clip-path: inset(12% 0 0 0); }
.js .reveal-img img { transform: scale(1.12); }
.js .reveal-img.is-in { clip-path: inset(0 0 0 0); transition: clip-path 1.3s var(--ease-out); }
.js .reveal-img.is-in img { transform: scale(1); transition: transform 1.8s var(--ease-out); }

/* ---------- 13. Split / editorial compositions ---------- */
.intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: start; }
.intro__a { grid-column: 1 / span 7; }
.intro__b { grid-column: 9 / span 4; padding-top: var(--s-4); }
.intro__img1 { grid-column: 1 / span 5; margin-top: var(--s-9); }
.intro__img2 { grid-column: 7 / span 6; margin-top: calc(var(--s-10) * -1); }
@media (max-width: 860px) { .intro__a, .intro__b, .intro__img1, .intro__img2 { grid-column: 1 / -1; margin-top: var(--s-6); } .intro__img2 { margin-top: var(--s-4); } }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); border-top: 1px solid var(--line-strong); }
.facts div { padding-top: var(--s-5); }
.facts dt { font: 300 clamp(2.25rem, 1.4rem + 2.4vw, 3.75rem)/1 var(--f-sans); letter-spacing: -.02em; white-space: nowrap; }
.facts dt small { font-size: .42em; font-weight: 400; letter-spacing: 0; color: var(--fg-muted); }
.facts dd { margin: var(--s-3) 0 0; color: var(--fg-muted); font-size: var(--t-sm); line-height: 1.45; max-width: 18em; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-6); } }

.head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: end; margin-bottom: clamp(32px, 4vw, 64px); }
.head__t { grid-column: 1 / span 7; }
.head__s { grid-column: 9 / span 4; color: var(--fg-muted); }
.head__s .link { margin-top: var(--s-4); color: var(--fg); }
@media (max-width: 860px) { .head__t, .head__s { grid-column: 1 / -1; } .head__s { margin-top: var(--s-4); } }

/* ---------- 14. Floors / facilities lift story (home) ---------- */
.floors { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter); }
.floors__list { padding-block: 10vh; }
.floors__item { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding-block: var(--s-7); opacity: .32; transition: opacity var(--d-base); }
.floors__item.is-on { opacity: 1; }
.floors__lvl { font: 300 clamp(4rem, 2rem + 7vw, 9rem)/.9 var(--f-sans); letter-spacing: -.03em; color: var(--c-steel); }
.floors__item h3 { margin-top: var(--s-4); }
.floors__item p { color: var(--fg-muted); margin-top: var(--s-4); max-width: 28em; }
.floors__item .fig { display: none; }
.floors__stage { position: sticky; top: calc(var(--header-h) + 4vh); height: calc(100vh - var(--header-h) - 8vh); align-self: start; overflow: hidden; background: var(--bg-alt); }
.floors__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.05); transition: opacity .9s var(--ease-out), transform 1.6s var(--ease-out); }
.floors__stage img.is-on { opacity: 1; transform: none; }
@media (max-width: 860px) {
  .floors { grid-template-columns: 1fr; }
  .floors__stage { display: none; }
  .floors__list { padding-block: 0; }
  .floors__item { min-height: 0; opacity: 1; padding-block: var(--s-6); border-top: 1px solid var(--line); }
  .floors__item .fig { display: block; margin-top: var(--s-5); }
}

/* ---------- 15. Location ruler ---------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.chip { min-height: 40px; padding: 0 var(--s-4); border: 1px solid var(--line-strong); background: transparent; border-radius: var(--r-pill); cursor: pointer; font: 500 var(--t-sm)/1 var(--f-sans); }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.ruler { position: relative; }
.ruler__axis { position: relative; height: 96px; border-bottom: 1px solid var(--line-strong); margin-bottom: var(--s-6); margin-top: var(--s-4); }
.ruler__tick { position: absolute; bottom: -1px; width: 1px; height: 10px; background: var(--line-strong); }
.ruler__tick span { position: absolute; top: 12px; left: 0; transform: translateX(-50%); font: 500 var(--t-xs)/1 var(--f-sans); color: var(--fg-faint); white-space: nowrap; }
.ruler__home { position: absolute; left: 0; bottom: -6px; width: 11px; height: 11px; background: var(--c-jade); transform: translateX(-50%) rotate(45deg); }
.ruler__home-l { position: absolute; left: 0; top: 0; font: 500 var(--t-xs)/1 var(--f-sans); white-space: nowrap; color: var(--c-jade); }
.ruler__dot { position: absolute; bottom: 0; width: 1px; height: calc(var(--h) * 4px); background: var(--fg); transform-origin: bottom; transition: opacity var(--d-base), background var(--d-fast); }
.ruler__dot::after { content: ""; position: absolute; top: -3px; left: -3px; width: 7px; height: 7px; border-radius: 50%; background: inherit; transition: transform var(--d-fast) var(--ease-out); }
.ruler__dot.is-off { opacity: .12; }
.ruler__dot.is-hot { background: var(--c-jade); width: 2px; }
.ruler__dot.is-hot::after { transform: scale(1.6); }
.places { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); }
.place { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-1) var(--s-4); padding: var(--s-4) 0; border-top: 1px solid var(--line); transition: opacity var(--d-base); cursor: default; }
.place.is-off { opacity: .25; }
.place__n { font-size: var(--t-md); line-height: 1.3; }
.place__c { font: 400 var(--t-xs)/1.3 var(--f-sans); color: var(--fg-faint); }
.place__d { grid-row: span 2; text-align: right; font: 400 var(--t-sm)/1.3 var(--f-sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.place__d b { display: block; font-weight: 500; font-size: var(--t-md); }
.place:hover, .place:focus-within { background: linear-gradient(var(--bg-alt), var(--bg-alt)) 0 0 / 100% 100% no-repeat; }
@media (max-width: 980px) { .places { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .places { grid-template-columns: 1fr; } .ruler__tick.is-odd span { display: none; } }

/* ---------- 16. Timeline ---------- */
.tl { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: var(--gutter); position: relative; }
.tl::before { content: ""; position: absolute; left: 0; right: 0; top: calc(clamp(2.6rem, 1.6rem + 3vw, 4.5rem) + 18px); height: 1px; background: var(--line-strong); }
.tl__item { position: relative; padding-right: var(--s-4); }
.tl__yr { font: 300 clamp(2.6rem, 1.6rem + 3vw, 4.5rem)/1 var(--f-sans); letter-spacing: -.02em; }
.tl__dot { width: 9px; height: 9px; background: var(--fg); border-radius: 50%; margin: 14px 0 var(--s-5); position: relative; }
.tl__item:last-child .tl__dot { background: var(--c-jade); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c-jade) 22%, transparent); }
.tl__item h3 { font-size: var(--t-lg); line-height: 1.25; }
.tl__item p { color: var(--fg-muted); font-size: var(--t-sm); margin-top: var(--s-3); }
@media (max-width: 860px) {
  .tl { grid-template-columns: 1fr; gap: 0; }
  .tl::before { left: 4px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .tl__item { padding: 0 0 var(--s-6) var(--s-6); }
  .tl__dot { position: absolute; left: 0; top: 14px; margin: 0; }
}

/* ---------- 17. Cards: news, projects ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-7) var(--gutter); }
.card { text-decoration: none; display: flex; flex-direction: column; gap: var(--s-4); }
.card .fig { aspect-ratio: 4 / 3; }
.card .fig img { transition: transform 1.2s var(--ease-out); }
.card:hover .fig img { transform: scale(1.04); }
.card__meta { font: 500 var(--t-xs)/1.3 var(--f-sans); color: var(--fg-muted); display: flex; gap: var(--s-4); }
.card__t { font-size: var(--t-xl); line-height: 1.15; }
.card:hover .card__t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.card__x { color: var(--fg-muted); font-size: var(--t-sm); line-height: 1.5; }
.cards--feature .card:first-child { grid-column: span 2; }
.cards--feature .card:first-child .fig { aspect-ratio: 16 / 10; }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cards--feature .card:first-child { grid-column: 1 / -1; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* ---------- 18. Full-bleed band (virtual tour, viewing) ---------- */
.bleed { position: relative; color: #fff; overflow: hidden; isolation: isolate; min-height: 86svh; display: flex; align-items: center; }
.bleed__media { position: absolute; inset: -8% 0; z-index: -1; }
.bleed__media img { width: 100%; height: 100%; object-fit: cover; }
.bleed__media::after { content: ""; position: absolute; inset: 0; background: rgba(12, 18, 27, .5); }
.bleed .btn { --btn-bg: #fff; --btn-fg: var(--c-ink); --btn-line: #fff; }
.bleed .lede { color: rgba(255,255,255,.85); }

/* ---------- 19. Residences explorer ---------- */
.rtypes { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-8) var(--gutter); }
.rtype { text-decoration: none; display: block; }
.rtype .fig { aspect-ratio: 4 / 3; }
.rtype .fig img { transition: transform 1.4s var(--ease-out); }
.rtype:hover .fig img { transform: scale(1.035); }
.rtype__b { display: flex; justify-content: space-between; gap: var(--s-4); align-items: baseline; padding-top: var(--s-4); border-bottom: 1px solid var(--line); padding-bottom: var(--s-4); }
.rtype__n { font-size: var(--t-2xl); line-height: 1.05; }
.rtype__m { font: 400 var(--t-sm)/1.35 var(--f-sans); color: var(--fg-muted); text-align: right; white-space: nowrap; }
.rtype:nth-child(1) { grid-column: 1 / span 12; } .rtype:nth-child(1) .fig { aspect-ratio: 21 / 9; }
.rtype:nth-child(2) { grid-column: 1 / span 7; }
.rtype:nth-child(3) { grid-column: 8 / span 5; margin-top: var(--s-10); } .rtype:nth-child(3) .fig { aspect-ratio: 4 / 5; }
.rtype:nth-child(4) { grid-column: 2 / span 5; } .rtype:nth-child(4) .fig { aspect-ratio: 4 / 5; }
.rtype:nth-child(5) { grid-column: 7 / span 6; margin-top: var(--s-9); }
@media (max-width: 860px) { .rtype:nth-child(n) { grid-column: 1 / -1; margin-top: 0; } .rtype:nth-child(n) .fig { aspect-ratio: 4 / 3; } }

.explorer__bar { display: flex; flex-wrap: wrap; gap: var(--s-5) var(--s-7); align-items: flex-end; padding: var(--s-5) 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); position: sticky; top: var(--sticky-top); transition: top var(--d-base) var(--ease-out); background: var(--bg); z-index: 20; }
.explorer__bar fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.explorer__bar legend { padding: 0; margin-bottom: var(--s-2); }
.seg { display: flex; flex-wrap: wrap; gap: 4px; }
.seg button { min-height: 38px; padding: 0 14px; border: 1px solid var(--line); background: transparent; border-radius: var(--r-1); cursor: pointer; font: 500 var(--t-sm)/1 var(--f-sans); }
.seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.select { min-height: 38px; padding: 0 34px 0 12px; border: 1px solid var(--line); border-radius: var(--r-1); background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23121a26'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; font: 500 var(--t-sm)/1 var(--f-sans); cursor: pointer; }
.explorer__count { margin-left: auto; font: 400 var(--t-sm)/1.2 var(--f-sans); color: var(--fg-muted); }
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--s-6) var(--gutter); margin-top: var(--s-7); }
.plan { display: flex; flex-direction: column; text-align: left; background: none; border: 0; padding: 0; cursor: zoom-in; }
.plan[hidden] { display: none; }
.plan .fig { aspect-ratio: 4 / 3; border: 1px solid var(--line); transition: border-color var(--d-fast); }
.plan:hover .fig { border-color: var(--fg); }
.plan__b { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); padding-top: var(--s-3); }
.plan__code { font: 500 var(--t-md)/1.2 var(--f-sans); }
.plan__size { font: 400 var(--t-sm)/1.2 var(--f-sans); color: var(--fg-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan__type { font-size: var(--t-sm); color: var(--fg-muted); }
.band .explorer__bar { background: var(--bg-alt); }
.empty { padding: var(--s-8) 0; text-align: left; }
.empty[hidden] { display: none; }

/* Residence detail */
.spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.spec div { padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.spec div:nth-child(odd) { padding-right: var(--s-4); }
.spec div.wide { grid-column: 1 / -1; }
.spec dd { overflow-wrap: anywhere; }
@media (max-width: 600px) { .spec { grid-template-columns: 1fr; } .spec div:nth-child(odd) { padding-right: 0; } }
.spec dd small { font-size: var(--t-sm); color: var(--fg-muted); margin-left: .4em; }
.spec dt { font: 500 var(--t-xs)/1.3 var(--f-sans); color: var(--fg-muted); }
.spec dd { margin: 6px 0 0; font: 400 var(--t-lg)/1.2 var(--f-sans); font-variant-numeric: tabular-nums; }
.ticks li { padding: var(--s-3) 0 var(--s-3) var(--s-6); border-bottom: 1px solid var(--line); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 14px; height: 1px; background: var(--c-jade); }
.vtable { width: 100%; border-collapse: collapse; font: 400 var(--t-sm)/1.3 var(--f-sans); }
.vtable th { text-align: left; font-weight: 500; color: var(--fg-muted); padding: var(--s-3) var(--s-3) var(--s-3) 0; border-bottom: 1px solid var(--line-strong); }
.vtable td { padding: var(--s-3) var(--s-3) var(--s-3) 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.vtable td:not(:first-child), .vtable th:not(:first-child) { text-align: right; }
.vtable button { background: none; border: 0; padding: 4px 0; cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: .2em; }
.sticky-cta { position: sticky; top: calc(var(--sticky-top) + var(--s-5)); transition: top var(--d-base) var(--ease-out); }
.aside-card { padding-top: 0; }
.next-res { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); text-decoration: none; }
.next-res .fig { aspect-ratio: 16 / 10; }
.next-res__t { padding: var(--s-7) var(--margin); display: flex; flex-direction: column; justify-content: center; gap: var(--s-3); }
@media (max-width: 860px) { .next-res { grid-template-columns: 1fr; } }

/* ---------- 20. Gallery (native scroller) & lightbox ---------- */
.gallery { position: relative; }
.gallery__track { display: flex; gap: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--margin); padding: 0 var(--margin) var(--s-4); scrollbar-width: thin; }
.gallery__track > * { flex: none; scroll-snap-align: start; width: min(78vw, 720px); }
.gallery__track .fig { aspect-ratio: 3 / 2; cursor: zoom-in; }
.gallery__track button.fig { border: 0; padding: 0; display: block; width: 100%; }
.gallery__ctrl { display: flex; gap: var(--s-2); }
.icon-btn { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line-strong); background: transparent; border-radius: var(--r-1); cursor: pointer; color: inherit; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:disabled { opacity: .3; cursor: default; color: inherit; border-color: var(--line-strong); }
.icon-btn:disabled::before, .icon-btn:disabled::after { display: none; }

.lb { position: fixed; inset: 0; margin: 0; width: 100%; height: 100%; max-width: none; max-height: none; border: 0; padding: 0; background: rgba(9, 13, 20, .96); color: #fff; }
.lb::backdrop { background: rgba(9, 13, 20, .9); }
.lb[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: lbIn var(--d-base) var(--ease-out); }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb__top, .lb__bottom { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-4) var(--margin); font: 400 var(--t-sm)/1.3 var(--f-sans); }
.lb__stage { position: relative; display: grid; place-items: center; padding: 0 var(--margin); }
.lb__stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb__stage img.is-plan { background: #fff; padding: 2%; }
.lb .icon-btn { border-color: rgba(255,255,255,.35); color: #fff; --fill: #fff; --fill-fg: var(--c-ink); }

/* ---------- 21. Forms ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--gutter); }
.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field--full { grid-column: 1 / -1; }
.field label { font: 500 var(--t-sm)/1.3 var(--f-sans); }
.field label .req { color: var(--fg-muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 0; font: 400 1.0625rem/1.4 var(--f-serif);
  background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  transition: border-color var(--d-fast);
}
.field select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237d94ae' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 4px center; padding-right: 28px; cursor: pointer; }
.is-dark .field select option { color: var(--c-ink); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-bottom-color: var(--fg); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom: 2px solid var(--focus); padding-bottom: 11px; }
.field .hint { font: 400 var(--t-xs)/1.4 var(--f-sans); color: var(--fg-faint); }
.field .err { font: 500 var(--t-xs)/1.4 var(--f-sans); color: var(--c-error); display: none; }
.is-dark .field .err { color: #f0a6a6; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-bottom-color: var(--c-error); }
.is-dark .field.is-invalid input, .is-dark .field.is-invalid select { border-bottom-color: #f0a6a6; }
.field.is-invalid .err { display: block; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--s-5); align-items: center; justify-content: space-between; }
.form__note { font: 400 var(--t-xs)/1.5 var(--f-sans); color: var(--fg-faint); max-width: 40em; }
.status { grid-column: 1 / -1; padding: var(--s-5); border-left: 2px solid var(--focus); background: var(--bg-alt); }
.status[hidden] { display: none; }
.status--error { border-left-color: var(--c-error); }
.status h3 { font-size: var(--t-lg); margin-bottom: var(--s-3); }
.status p, .status li { font-size: var(--t-sm); }
.status pre { white-space: pre-wrap; font: 400 var(--t-xs)/1.5 var(--f-sans); background: var(--bg); padding: var(--s-4); margin: var(--s-4) 0; border: 1px solid var(--line); max-height: 220px; overflow: auto; }
.spinner { width: 14px; height: 14px; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 700px) { .form { grid-template-columns: 1fr; } }

/* ---------- 22. Facilities page ---------- */
.fac-nav { position: sticky; top: var(--sticky-top); transition: top var(--d-base) var(--ease-out); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.fac-nav ol { display: flex; gap: 0; overflow-x: auto; }
.fac-nav a { display: flex; align-items: baseline; gap: var(--s-3); padding: var(--s-4) var(--s-6) var(--s-4) 0; text-decoration: none; white-space: nowrap; font: 500 var(--t-sm)/1 var(--f-sans); color: var(--fg-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.fac-nav a b { font: 300 1.75rem/1 var(--f-sans); color: var(--fg); }
.fac-nav a.is-on { color: var(--fg); border-bottom-color: var(--c-jade); }
.floor { padding-block: var(--section); border-bottom: 1px solid var(--line); }
.floor__head { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 4fr); gap: var(--gutter); align-items: end; margin-bottom: var(--s-8); }
.floor__lvl { font: 200 clamp(6rem, 3rem + 10vw, 14rem)/.8 var(--f-sans); letter-spacing: -.04em; color: var(--c-steel); }
.floor__lead { margin-bottom: var(--s-6); }
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); align-items: start; }
.mosaic > :nth-child(6n+1) { grid-column: span 7; aspect-ratio: 4 / 3; }
.mosaic > :nth-child(6n+2) { grid-column: span 5; aspect-ratio: 4 / 5; margin-top: var(--s-9); }
.mosaic > :nth-child(6n+3) { grid-column: 2 / span 4; aspect-ratio: 1; }
.mosaic > :nth-child(6n+4) { grid-column: 7 / span 6; aspect-ratio: 3 / 2; margin-top: var(--s-8); }
.mosaic > :nth-child(6n+5) { grid-column: span 6; aspect-ratio: 3 / 2; }
.mosaic > :nth-child(6n) { grid-column: span 6; aspect-ratio: 3 / 2; margin-top: var(--s-8); }
.mosaic button { border: 0; padding: 0; cursor: zoom-in; display: block; width: 100%; }
@media (max-width: 860px) { .mosaic > :nth-child(n) { grid-column: 1 / -1; aspect-ratio: 3 / 2; margin-top: 0; } .floor__head { grid-template-columns: 1fr; } }
.amen { columns: 3 14em; column-gap: var(--gutter); margin-top: var(--s-8); }
.amen li { break-inside: avoid; padding: var(--s-3) 0; border-top: 1px solid var(--line); font-size: var(--t-md); }
.plan-toggle { margin-top: var(--s-6); }
.plan-toggle summary { cursor: pointer; list-style: none; display: inline-flex; }
.plan-toggle summary::-webkit-details-marker { display: none; }
.plan-toggle[open] summary { margin-bottom: var(--s-5); }

/* ---------- 23. Tour ---------- */
.tour-frame { position: relative; aspect-ratio: 16 / 9; background: var(--c-ink); overflow: hidden; }
.tour-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tour-frame__cover { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.tour-frame__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .6; }
.tour-frame__cover div { position: relative; text-align: center; padding: var(--s-5); }
@media (max-width: 600px) { .tour-frame { aspect-ratio: 3 / 4; } }

/* ---------- 24. Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: calc(var(--gutter) * 3); }
@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr; } }
.addr { border-top: 1px solid var(--line-strong); padding-top: var(--s-5); margin-bottom: var(--s-7); }
.addr h3 { font-size: var(--t-lg); margin-bottom: var(--s-3); }
.addr p, .addr li { color: var(--fg-muted); font-size: var(--t-md); line-height: 1.55; }
.addr a { color: var(--fg); }
.map { aspect-ratio: 4 / 3; background: var(--bg-alt); position: relative; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.85) contrast(1.05); }

/* ---------- 25. Article ---------- */
.article { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); }
.article__body { grid-column: 3 / span 7; }
.article__body p { font-size: 1.1875rem; line-height: 1.7; }
.article__fig { grid-column: 1 / -1; margin-bottom: var(--s-8); }
.article__fig .fig { max-height: 80vh; }
.article__fig .fig img { object-fit: contain; background: var(--bg-alt); max-height: 80vh; }
@media (max-width: 860px) { .article__body { grid-column: 1 / -1; } }

/* ---------- 26. Footer & viewing CTA ---------- */
.viewing { padding-block: var(--section); }
.viewing__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: calc(var(--gutter) * 3); }
@media (max-width: 980px) { .viewing__grid { grid-template-columns: 1fr; } }
.footer { padding-block: var(--s-9) var(--s-6); border-top: 1px solid var(--line); }
.footer__top { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.5fr)); gap: var(--gutter); }
.footer__top h2 { font: 500 var(--t-xs)/1.3 var(--f-sans); color: var(--fg-faint); margin-bottom: var(--s-4); }
.footer__top li, .footer__top p { font: 400 var(--t-sm)/1.7 var(--f-sans); color: var(--fg-muted); }
.footer__top a { text-decoration: none; color: var(--fg-muted); }
.footer__top a:hover { color: var(--fg); text-decoration: underline; }
.footer__logo { width: 150px; margin-bottom: var(--s-5); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: var(--s-4); justify-content: space-between; margin-top: var(--s-9); padding-top: var(--s-5); border-top: 1px solid var(--line); font: 400 var(--t-xs)/1.5 var(--f-sans); color: var(--fg-faint); }
@media (max-width: 980px) { .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-7); } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } }

/* Mobile enquiry bar */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; grid-template-columns: 1fr 1fr; background: var(--c-ink); border-top: 1px solid rgba(255,255,255,.12); transform: translateY(100%); transition: transform var(--d-base) var(--ease-out); padding-bottom: env(safe-area-inset-bottom); }
.mbar.is-on { transform: none; }
.mbar a { min-height: 56px; display: grid; place-items: center; color: #fff; text-decoration: none; font: 500 var(--t-sm)/1 var(--f-sans); }
.mbar a + a { background: #fff; color: var(--c-ink); }
@media (max-width: 700px) { .mbar { display: grid; } .footer { padding-bottom: calc(var(--s-6) + 56px + env(safe-area-inset-bottom)); } }

/* ---------- 27. Utilities ---------- */
.mt-3 { margin-top: var(--s-3); } .mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); } .mt-6 { margin-top: var(--s-6); } .mt-7 { margin-top: var(--s-7); } .mt-8 { margin-top: var(--s-8); }
.col-1-7 { grid-column: 1 / span 7; } .col-8-12 { grid-column: 9 / span 4; } .col-1-6 { grid-column: 1 / span 6; } .col-7-12 { grid-column: 7 / span 6; } .col-full { grid-column: 1 / -1; }
@media (max-width: 860px) { .col-1-7, .col-8-12, .col-1-6, .col-7-12 { grid-column: 1 / -1; } }

/* ---------- 28. View transitions & reduced motion ---------- */
/* Page transitions: see the curtain in section 29 (replaces cross-document view transitions). */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal-lines .mask-line > span, .js .hero__media img, .js .reveal-img, .js .reveal-img img, .js .hero .fade-up { transform: none !important; clip-path: none !important; opacity: 1 !important; }
  .js .statement .w { opacity: 1; }
  .parallax { transform: none !important; }
  .rindex__float { display: none; }
}

/* ==========================================================================
   29. Motion layer v2 — signature interactions
   ========================================================================== */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Curtain: intro counter on first home visit, wipe between pages */
.curtain { position: fixed; inset: 0; z-index: 400; background: var(--c-ink); color: #eef0f2; display: none; pointer-events: none; }
.js .curtain { display: flex; flex-direction: column; justify-content: flex-end; padding: var(--margin); transform: translateY(0); }
.curtain.is-up { transform: translateY(-101%); transition: transform 1s var(--ease-io); }
.curtain.is-down { transform: translateY(101%); }
.curtain.is-cover { transform: translateY(0); transition: transform .6s var(--ease-io); }
.curtain__count { font: 200 clamp(7rem, 4rem + 18vw, 22rem)/.8 var(--f-sans); letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--c-steel); }
.curtain__label { font: 400 var(--t-xl)/1.2 var(--f-serif); margin-top: var(--s-5); opacity: .8; }
.curtain__count:empty { display: none; }

/* Giant 33 filled with photography, scaled by scroll */
.bigtype { height: 220vh; position: relative; }
.bigtype__stick { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-5); overflow: hidden; padding-inline: var(--margin); }
.bigtype__num {
  font: 700 min(60vw, 78vh)/.78 var(--f-sans); letter-spacing: -.05em;
  background-size: cover; background-position: 50% calc(var(--b, 0) * 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: scale(calc(.55 + var(--b, 0) * .55)); will-change: transform;
}
.bigtype__cap { max-width: 26em; text-align: center; font-size: var(--t-lg); color: var(--fg-muted); opacity: calc(var(--b, 0) * 2 - .6); margin: 0; }

/* Marquee of facilities, nudged by scroll velocity */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: var(--s-5); background: var(--bg); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__track span { display: flex; align-items: center; }
.marquee em { font: italic 400 clamp(1.75rem, 1rem + 2.4vw, 3rem)/1 var(--f-serif); white-space: nowrap; padding-inline: var(--s-6); }
.marquee i { width: 10px; height: 10px; border: 1px solid var(--c-steel); transform: rotate(45deg); flex: none; }

/* Elevator doors on the floors story */
.door { position: absolute; top: 0; bottom: 0; width: 50.5%; background: linear-gradient(90deg, #1a2433, #243146); z-index: 2; transform: scaleX(0); transition: transform .45s var(--ease-io); }
.door--l { left: 0; transform-origin: left; box-shadow: inset -1px 0 0 rgba(255,255,255,.18); }
.door--r { right: 0; transform-origin: right; box-shadow: inset 1px 0 0 rgba(255,255,255,.18); }
.floors__stage.is-closing .door { transform: scaleX(1); }
.floors__display { position: absolute; top: var(--s-5); left: 50%; transform: translateX(-50%); z-index: 3; min-width: 72px; padding: 10px 16px; background: rgba(12,18,27,.72); border: 1px solid rgba(255,255,255,.2); text-align: center; font: 300 2rem/1 var(--f-sans); color: #fff; backdrop-filter: blur(6px); }
.floors__display span { display: inline-block; transition: transform .4s var(--ease-out), opacity .3s; }
.floors__display.is-moving span { transform: translateY(-60%); opacity: 0; }

/* Cursor label for things that open */
.cursor { position: fixed; left: 0; top: 0; z-index: 350; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: var(--c-paper); color: var(--c-ink); display: grid; place-items: center; font: 500 var(--t-xs)/1 var(--f-sans); pointer-events: none; transform: translate3d(var(--cx, -200px), var(--cy, -200px), 0) scale(0); transition: transform .35s var(--ease-out); mix-blend-mode: normal; box-shadow: 0 8px 30px rgba(0,0,0,.18); }
.cursor.is-on { transform: translate3d(var(--cx), var(--cy), 0) scale(1); }
@media (hover: none) { .cursor { display: none; } }

/* Magnetic buttons */

@media (prefers-reduced-motion: reduce) {
  .js .curtain { display: none; }
  .bigtype { height: auto; } .bigtype__stick { position: relative; height: 80vh; } .bigtype__num { transform: none; } .bigtype__cap { opacity: 1; }
  .marquee__track { transform: none !important; }
  .cursor { display: none; }
}

/* ==========================================================================
   30. Fixes + parallax v2
   ========================================================================== */
html.hdr-off { --sticky-top: 0px; }
/* Photos that move inside their frames */
.px { overflow: hidden; }
.px > img, .px > picture > img { position: relative; height: 118% !important; top: -9%; will-change: translate; }
.phero__media.px > img { height: 116% !important; top: -8%; }
/* Phones: the filter bar scrolls with the page and its button rows swipe sideways */
@media (max-width: 700px) {
  .explorer__bar { position: static; gap: var(--s-4); }
  .explorer__bar fieldset { min-width: 0; max-width: 100%; }
  .explorer__bar fieldset:first-child { flex: 1 1 100%; }
  .seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .seg::-webkit-scrollbar { display: none; }
  .seg button { flex: none; }
  .explorer__count { margin-left: 0; flex: 1 1 100%; }
}
/* Drift elements: keep them above neighbouring blocks' backgrounds */
[data-drift] { will-change: translate; }
@media (prefers-reduced-motion: reduce) { .px > img { height: 100% !important; top: 0; } }

/* ==========================================================================
   31. Interaction layer v3
   ========================================================================== */
/* Reading progress */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--c-jade); transform-origin: left; transform: scaleX(0); }

/* Floating photo that follows the cursor (directory + residence index) */
.rindex__float { transform: translate3d(var(--x, 0), var(--y, 0), 0) rotate(var(--r, 0deg)); scale: .94; }
.rindex__float.is-on { transform: translate3d(var(--x, 0), var(--y, 0), 0) rotate(var(--r, 0deg)); scale: 1; }
.band .rindex__float, .dir ~ .rindex__float { aspect-ratio: 4 / 5; width: min(24vw, 340px); }

/* Headings rise word by word */
.split .sw { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .14em .3em; margin-block: -.14em -.3em; }
.split .sw > span { display: inline-block; transform: translateY(145%); transition: transform .9s var(--ease-out); }
.split.is-in .sw > span { transform: none; }

/* Pinned horizontal walk */
.hwalk { position: relative; }
.hwalk__stick { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: clamp(24px, 4vh, 48px); overflow: hidden; }
.hwalk__head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-6); flex-wrap: wrap; }
.hwalk__head .h1 { max-width: 20ch; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.75rem); }
.hwalk__head p { max-width: 24em; }
.hwalk__hint { display: block; margin-top: var(--s-2); font: 500 var(--t-xs)/1 var(--f-sans); color: var(--c-steel); }
.hwalk__track { display: flex; gap: clamp(16px, 2.4vw, 40px); padding-left: var(--margin); padding-right: var(--margin); will-change: transform; }
.hwalk__panel { flex: none; width: calc(min(48vh, 560px) * .8); margin: 0; display: flex; flex-direction: column; gap: var(--s-4); text-decoration: none; }
.hwalk__panel:nth-child(even) { margin-top: 5vh; }
.hwalk__img { aspect-ratio: 4 / 5; overflow: hidden; height: min(48vh, 560px); max-height: none; background: var(--bg-alt); }
.hwalk__panel { width: auto; } .hwalk__img { width: auto; }
.hwalk__img img { width: 120%; max-width: none; height: 100%; object-fit: cover; margin-left: -10%; will-change: translate; }
.hwalk__panel figcaption { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-4); align-items: start; font-size: var(--t-sm); color: var(--fg-muted); line-height: 1.45; }
.hwalk__panel figcaption b { display: block; font: 400 var(--t-lg)/1.2 var(--f-serif); color: var(--fg); margin-bottom: 4px; }
.hwalk__lvl { font: 300 2.25rem/1 var(--f-sans); color: var(--c-steel); min-width: 2.4ch; }
.hwalk__end { justify-content: center; align-self: center; padding: var(--s-7); border: 1px solid var(--line); height: min(48vh, 560px); }
.hwalk__end:hover { background: var(--bg-alt); }
.hwalk__bar { height: 1px; background: var(--line); }
.hwalk__bar span { display: block; height: 1px; background: var(--fg); transform-origin: left; transform: scaleX(0); }
@media (max-width: 860px) {
  .hwalk__stick { position: relative; height: auto; padding-block: var(--section); }
  .hwalk__track { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s-4); scrollbar-width: none; }
  .hwalk__track::-webkit-scrollbar { display: none; }
  .hwalk__panel { width: 78vw; scroll-snap-align: start; }
  .hwalk__img { height: auto; aspect-ratio: 4 / 5; }
  .hwalk__end { height: auto; aspect-ratio: 4 / 5; }
  .hwalk__panel:nth-child(even) { margin-top: 0; }
  .hwalk__img img { width: 100%; margin-left: 0; }
  .hwalk__bar, .hwalk__hint { display: none; }
}

/* Tour band that opens out */
.expand { height: 200vh; position: relative; background: var(--c-paper); }
.expand__stick { position: sticky; top: 0; height: 100vh; min-height: 0; }
.expand__media { inset: 0; clip-path: inset(16% 24% round 24px); will-change: clip-path; }
.expand__media img { will-change: scale; }
.expand__copy { opacity: 0; }
.expand.is-static { height: auto; } .expand.is-static .expand__stick { position: relative; height: 86vh; } .expand.is-static .expand__media { clip-path: none; } .expand.is-static .expand__copy { opacity: 1; }

/* Penthouse stacked levels */
.stackx { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: calc(var(--gutter) * 2); align-items: center; }
.stackx__tabs { display: flex; flex-direction: column; margin-top: var(--s-6); border-top: 1px solid var(--line); }
.stackx__tabs button { display: flex; align-items: baseline; gap: var(--s-4); padding: var(--s-4) 0; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; font: 400 var(--t-xl)/1.2 var(--f-serif); color: var(--fg-muted); transition: color var(--d-fast), padding var(--d-base) var(--ease-out); }
.stackx__tabs button .num { font-size: var(--t-sm); color: var(--c-steel); min-width: 2em; }
.stackx__tabs button[aria-selected="true"] { color: var(--fg); padding-left: var(--s-4); }
.stackx__tabs button:hover { color: var(--fg); }
.stackx__panel { margin-top: var(--s-5); }
.stackx__panel .ticks li { color: var(--fg-muted); }
.stackx__model { position: relative; height: clamp(380px, 52vw, 620px); perspective: 1600px; }
.slab { position: absolute; left: 50%; top: 50%; width: min(78%, 460px); aspect-ratio: 16 / 10; transform-style: preserve-3d; cursor: pointer;
  transform: translate(-50%, -50%) translateY(calc((var(--i) - 1) * 26%)) rotateX(58deg) rotateZ(-38deg); transition: transform .8s var(--ease-out), filter .5s; filter: brightness(.55) saturate(.6); }
.slab__top { position: absolute; inset: 0; overflow: hidden; outline: 1px solid rgba(255,255,255,.25); box-shadow: 0 40px 60px -20px rgba(0,0,0,.6); }
.slab__top img { width: 100%; height: 100%; object-fit: cover; }
.slab__label { position: absolute; left: 100%; top: 50%; margin-left: 16px; white-space: nowrap; font: 500 var(--t-xs)/1 var(--f-sans); color: #fff; transform: rotateZ(38deg) rotateX(-58deg); transform-origin: left; opacity: 0; transition: opacity .4s; }
.slab.is-on { filter: none; transform: translate(-50%, -50%) translateY(calc((var(--i) - 1) * 26% - 4%)) rotateX(58deg) rotateZ(-38deg) translateZ(60px); }
.slab.is-on .slab__label { opacity: 1; }
.stackx__lift { position: absolute; left: 50%; top: 14%; bottom: 14%; width: 2px; background: linear-gradient(var(--c-jade), transparent); opacity: .7; }
@media (max-width: 860px) { .stackx { grid-template-columns: 1fr; } .stackx__model { order: -1; height: 360px; } }

/* Drag galleries */
.gallery__track { cursor: grab; user-select: none; }
.gallery__track.is-drag { cursor: grabbing; }
.gallery__track img { -webkit-user-drag: none; pointer-events: none; }

/* Scroll-speed lean + cursor tilt */
.rtype .fig, .mosaic > .fig, .card .fig, .hwalk__img { transform: skewY(var(--skew, 0deg)); transition: transform .1s linear; }
.tilt { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease-out); transform-style: preserve-3d; }
.tilt .fig::after, .tilt .hwalk__img::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.18), transparent 55%); opacity: 0; transition: opacity .4s; }
.tilt:hover .fig::after, .tilt:hover .hwalk__img::after { opacity: 1; }
.hwalk__img { position: relative; }

@media (prefers-reduced-motion: reduce) {
  .split .sw > span { transform: none; }
  .rtype .fig, .mosaic > .fig, .card .fig, .hwalk__img, .tilt { transform: none !important; }
  .slab { transition: none; }
}

.lift { transition: opacity .3s; } html.in-hwalk .lift { opacity: 0; }

/* Floating gallery: photos at different depths around one line of text (replaces the giant 33) */
.drift { position: relative; min-height: 150vh; display: grid; place-items: center; overflow: hidden; padding-block: 20vh; isolation: isolate; }
.drift__img { position: absolute; left: var(--x); top: var(--y); width: var(--w); aspect-ratio: 4 / 5; margin: 0; overflow: hidden; will-change: transform; z-index: 0; }
.drift__img:nth-child(odd) { aspect-ratio: 3 / 4; }
.drift__img--5 { aspect-ratio: 1; }
.drift__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.drift__img[data-depth^="-"] { filter: brightness(.7) saturate(.85); z-index: -1; }
.drift__copy { position: relative; z-index: 2; text-align: center; width: min(100%, 980px); padding-inline: var(--margin); }
.drift__t { max-width: 15ch; margin-inline: auto; font-size: clamp(2.25rem, 1.2rem + 4vw, 5.5rem); line-height: 1.02; letter-spacing: -.02em; text-shadow: 0 2px 30px rgba(12,18,27,.6); }
.drift__s { margin-top: var(--s-5); font: 500 var(--t-sm)/1 var(--f-sans); color: var(--c-steel); }
@media (max-width: 860px) {
  .drift { min-height: 110vh; }
  .drift__img { width: calc(var(--w) * 1.9); }
  .drift__img--4, .drift__img--5 { display: none; }
  .drift__img--1 { left: 58%; } .drift__img--3 { left: 60%; top: 66%; }
}
@media (prefers-reduced-motion: reduce) { .drift__img { transform: none !important; } }

/* Split intro: pinned photo that opens up, copy and figures scroll past (replaces the statement) */
.intro2 { padding-block: var(--section); }
.intro2__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: calc(var(--gutter) * 3); align-items: start; }
.intro2__media { position: sticky; top: calc(var(--header-h) + 4vh); height: calc(100vh - var(--header-h) - 8vh); min-height: 460px; }
.intro2__frame { position: absolute; inset: 0 12% 10% 0; overflow: hidden; clip-path: inset(var(--c, 12%) var(--c, 12%) var(--c, 12%) var(--c, 12%)); will-change: clip-path; background: var(--bg-alt); }
.intro2__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--z, 1.3)); will-change: transform; }
.intro2__inset { position: absolute; right: 0; bottom: 0; width: 34%; aspect-ratio: 3 / 4; overflow: hidden; outline: 10px solid var(--bg); box-shadow: 0 30px 60px -30px rgba(18,26,38,.35); will-change: transform; }
.intro2__inset img { width: 100%; height: 100%; object-fit: cover; }
.intro2__copy { padding-top: 12vh; padding-bottom: 8vh; }
.intro2__copy .h1 { max-width: 13ch; }
.intro2__facts { margin-top: var(--s-9); border-top: 1px solid var(--line-strong); }
.intro2__fact { display: flex; flex-wrap: wrap; column-gap: var(--s-6); row-gap: var(--s-2); align-items: baseline; padding: var(--s-6) 0; border-bottom: 1px solid var(--line); opacity: .25; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.intro2__fact.is-in { opacity: 1; transform: none; }
.intro2__fact dt { font: 300 clamp(3rem, 2rem + 3vw, 5.5rem)/.9 var(--f-sans); letter-spacing: -.03em; white-space: nowrap; }
.intro2__fact dt small { font-size: .32em; font-weight: 400; letter-spacing: 0; color: var(--fg-muted); }
.intro2__fact dd { margin: 0; flex: 1 1 16ch; max-width: 30ch; color: var(--fg-muted); font-size: var(--t-sm); line-height: 1.45; }
@media (max-width: 860px) {
  .intro2__grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .intro2__media { position: relative; top: 0; height: 120vw; max-height: 640px; min-height: 0; }
  .intro2__copy { padding-top: 0; }
  .intro2__fact { flex-direction: column; align-items: flex-start; padding: var(--s-5) 0; }
}
@media (prefers-reduced-motion: reduce) { .intro2__frame { clip-path: none; } .intro2__frame img { transform: none; } .intro2__fact { opacity: 1; transform: none; } }
@media (max-width: 860px) { .stackx { overflow-x: clip; } }
