/* ==========================================================================
   ASTERA by Nova Elite — design system
   ========================================================================== */
:root {
  --ink: #06080d;
  --night: #0a0e17;
  --navy: #0f1624;
  --pearl: #f4efe6;
  --sand: #e8dfd0;
  --stone: #cfc3ae;
  --text-d: #14161b;
  --gold: #c8a46a;
  --gold-2: #ecd6a6;
  --gold-3: #8f7142;
  --teal: #6fd0c9;
  --coral: #e98a6b;
  --muted-d: rgba(244, 239, 230, .64);
  --muted-l: rgba(20, 22, 27, .62);
  --line-d: rgba(244, 239, 230, .12);
  --line-l: rgba(20, 22, 27, .12);
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --pad: clamp(20px, 5vw, 80px);
  --maxw: 1440px;
  --r: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--ink); color: var(--pearl);
  font: 400 16px/1.65 var(--sans); letter-spacing: .005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--ink); }
.sr, .skip:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 1000; top: 12px; left: 12px; background: var(--gold); color: var(--ink); padding: 10px 16px; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.dark { background: var(--ink); color: var(--pearl); }
.light { background: var(--pearl); color: var(--text-d); }
section { position: relative; }

/* ---------- type ---------- */
.eyebrow {
  font: 600 11px/1.4 var(--sans); letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 22px; display: flex; align-items: center; gap: 12px;
}
.light .eyebrow { color: var(--gold-3); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(200,164,106,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(200,164,106,0); } 100% { box-shadow: 0 0 0 0 rgba(200,164,106,0); } }
.h2 {
  font: 300 clamp(40px, 5.6vw, 92px)/1.0 var(--serif); letter-spacing: -.015em; margin: 0 0 28px; max-width: 16ch;
}
.h2 em, .chapter__title em, .statement em, h3 em {
  font-style: italic; font-weight: 300;
  background: linear-gradient(100deg, var(--gold-2) 0%, var(--gold) 45%, #b48a4e 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.light .h2 em, .light .statement em, .light h3 em { background-image: linear-gradient(100deg, #a8844b, #7a5c2f); }
.lead { font-size: clamp(17px, 1.35vw, 20px); color: var(--muted-d); max-width: 62ch; }
.lead strong { color: var(--pearl); font-weight: 500; }
.fine { font-size: 12px; line-height: 1.6; color: var(--muted-d); letter-spacing: .02em; }
.light .fine { color: var(--muted-l); }
p { margin: 0 0 1.1em; }

/* ---------- buttons ---------- */
.btn {
  --h: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  height: var(--h); padding: 0 30px; border: 1px solid transparent; border-radius: 100px; cursor: pointer;
  font: 600 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
  transition: background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease);
  position: relative; overflow: hidden; isolation: isolate;
}
.btn svg { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.btn:hover svg { transform: translateX(5px); }
.btn--gold { background: linear-gradient(110deg, #e9d3a2, #c8a46a 55%, #a98549); color: var(--ink); }
.btn--gold::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .9s var(--ease); }
.btn--gold:hover::after { transform: translateX(120%); }
.btn--ghost { border-color: rgba(244,239,230,.35); color: var(--pearl); backdrop-filter: blur(8px); background: rgba(6,8,13,.15); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn--sm { --h: 42px; padding: 0 20px; font-size: 11px; }
.btn--block { width: 100%; }
.light .btn--ghost { color: var(--text-d); border-color: var(--line-l); }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 200; background: var(--ink); display: grid; place-items: center; transition: opacity 1.2s var(--ease), visibility 1.2s; }
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner { text-align: center; }
.loader__star { width: 34px; height: 34px; margin: 0 auto 26px; fill: var(--gold); animation: spin 6s linear infinite; filter: drop-shadow(0 0 18px rgba(236,214,166,.6)); }
@keyframes spin { to { transform: rotate(360deg); } }
.loader__word { font: 300 46px/1 var(--serif); letter-spacing: .55em; padding-left: .55em; color: var(--pearl); }
.loader__bar { width: 220px; height: 1px; margin: 28px auto 18px; background: var(--line-d); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .4s var(--ease); }
.loader__note { font: 500 10px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--muted-d); }

/* ---------- nav ---------- */
.nav {
  position: fixed; z-index: 100; top: 0; left: 0; right: 0; height: 84px; padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  transition: background .6s var(--ease), height .6s var(--ease), border-color .6s; border-bottom: 1px solid transparent;
}
.nav.is-scrolled { height: 68px; background: rgba(6,8,13,.72); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-bottom-color: var(--line-d); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--pearl); }
.brand__mark { width: 20px; height: 20px; fill: var(--gold); transition: transform 1s var(--ease); }
.brand:hover .brand__mark { transform: rotate(90deg); }
.brand__word { font: 500 14px/1 var(--sans); letter-spacing: .38em; }
.brand__word em { font-style: normal; color: var(--gold); }
.brand--lg .brand__mark { width: 28px; height: 28px; }
.brand--lg .brand__word { font-size: 18px; }
.nav__links { display: flex; gap: clamp(18px, 2.2vw, 38px); }
.nav__links a { font: 500 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: rgba(244,239,230,.78); position: relative; padding: 8px 0; transition: color .4s; }
.nav__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.nav__links a:hover, .nav__links a.is-current { color: var(--pearl); }
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-d); border-radius: 50%; background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1px; background: var(--pearl); transition: transform .5s var(--ease); }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 90; background: rgba(6,8,13,.96); backdrop-filter: blur(20px); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s; }
.menu.is-open { opacity: 1; visibility: visible; }
.menu nav { display: flex; flex-direction: column; gap: 10px; text-align: center; }
.menu a { font: 300 40px/1.25 var(--serif); }
.menu a:last-child { color: var(--gold); font-style: italic; }

/* ---------- 3D experience ---------- */
.experience { height: 520vh; background: var(--ink); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage__poster { position: absolute; inset: 0; background: url(../img/poster.jpg) 50% 50% / cover no-repeat, radial-gradient(120% 80% at 70% 78%, #f3b87a 0%, #c9735a 18%, #4a3b55 45%, #101626 75%); transition: opacity 1.4s; }
.has-webgl .stage__poster { opacity: 0; }
.stage__grade { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light; background: radial-gradient(70% 60% at 30% 62%, rgba(255,170,90,.95), rgba(255,140,80,.35) 45%, rgba(80,60,120,.25) 100%); transition: opacity .3s; }
.is-shot .stage__grade { display: block !important; }
.stage__vignette { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,8,13,.55) 0%, rgba(6,8,13,0) 22%, rgba(6,8,13,0) 55%, rgba(6,8,13,.78) 100%),
              radial-gradient(130% 90% at 50% 50%, transparent 55%, rgba(6,8,13,.55) 100%); }
.chapters { position: absolute; inset: 0; pointer-events: none; }
.chapter {
  position: absolute; left: var(--pad); bottom: clamp(90px, 14vh, 160px); max-width: 560px;
  opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.chapter.is-active { opacity: 1; transform: none; pointer-events: auto; }
.chapter--right { left: auto; right: var(--pad); text-align: right; }
.chapter--right .eyebrow { justify-content: flex-end; }
.chapter p:not(.eyebrow) { font-size: clamp(16px, 1.3vw, 19px); color: rgba(244,239,230,.84); max-width: 46ch; }
.chapter .eyebrow { text-shadow: 0 1px 2px rgba(0,0,0,.6), 0 0 16px rgba(0,0,0,.45); }
.chapter--right p:not(.eyebrow) { margin-left: auto; }
.chapter__title { font: 300 clamp(44px, 5.4vw, 90px)/.98 var(--serif); margin: 0 0 22px; letter-spacing: -.01em; }
.chapter--hero { max-width: min(860px, 92vw); bottom: clamp(70px, 11vh, 130px); }
.hero__title { margin: 0; line-height: .8; }
.hero__word {
  display: block; font: 300 clamp(76px, 11.5vw, 200px)/.82 var(--serif); letter-spacing: .1em; margin-left: -.05em;
  background: linear-gradient(180deg, #fff8ea 0%, #f0dcb2 45%, #c8a46a 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 10px 40px rgba(0,0,0,.25));
}
.glint { position: relative; }
.hero__lead { margin: 26px 0 34px !important; font-size: clamp(17px, 1.5vw, 22px) !important; max-width: 40ch !important; color: rgba(244,239,230,.9) !important; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hud {
  position: absolute; right: var(--pad); top: 110px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
  font: 500 10px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: rgba(244,239,230,.7);
}
.hud__clock { font: 300 44px/1 var(--serif); letter-spacing: .04em; color: var(--pearl); font-variant-numeric: tabular-nums; }
.hud__coords { opacity: .55; }
.scrollcue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 12px; font: 500 10px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: rgba(244,239,230,.65); transition: opacity .6s; }
.scrollcue i { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.progress { position: absolute; right: calc(var(--pad) - 24px); top: 50%; width: 1px; height: 140px; transform: translateY(-50%); background: var(--line-d); }
.progress span { position: absolute; left: 0; top: 0; width: 1px; height: 0; background: var(--gold); box-shadow: 0 0 8px var(--gold); }

/* ---------- figures ---------- */
.figures { padding: clamp(100px, 14vw, 200px) 0 clamp(80px, 9vw, 140px); }
.statement { font: 300 clamp(28px, 3.3vw, 54px)/1.18 var(--serif); max-width: 26ch; margin: 0 0 clamp(60px, 8vw, 120px); letter-spacing: -.005em; }
.figures__grid { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; border-top: 1px solid var(--line-l); }
.fig { padding: 28px 20px 0 0; border-right: 1px solid var(--line-l); margin-right: 20px; }
.fig:last-child { border-right: 0; }
.fig dt { font: 600 10px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--muted-l); margin-bottom: 18px; }
.fig dd { margin: 0; font: 300 clamp(40px, 4.6vw, 76px)/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.fig dd small { font-size: .38em; margin-left: 6px; color: var(--gold-3); }
.fig dd > span:first-child + span { }

/* ---------- island / constellation ---------- */
.island { padding: clamp(100px, 12vw, 180px) 0; overflow: hidden; }
.island::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 50% at 70% 40%, rgba(111,208,201,.07), transparent 70%), radial-gradient(50% 40% at 20% 70%, rgba(200,164,106,.08), transparent 70%); pointer-events: none; }
.sechead { margin-bottom: clamp(50px, 6vw, 90px); position: relative; }
.sechead--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.sechead--row .h2 { margin-bottom: 0; }
.constellation { border: 1px solid var(--line-d); border-radius: 4px; background: linear-gradient(180deg, rgba(15,22,36,.8), rgba(6,8,13,.8)); position: relative; }
.constellation__filters { display: flex; gap: 8px; flex-wrap: wrap; padding: 18px; border-bottom: 1px solid var(--line-d); }
.chip { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 18px; border: 1px solid var(--line-d); border-radius: 100px; background: transparent; cursor: pointer; font: 500 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-d); transition: all .4s var(--ease); }
.chip:hover { color: var(--pearl); border-color: rgba(244,239,230,.3); }
.chip.is-on { background: var(--pearl); color: var(--ink); border-color: var(--pearl); }
.light .chip { border-color: var(--line-l); color: var(--muted-l); }
.k { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.k--live { background: var(--gold); } .k--next { background: var(--teal); box-shadow: 0 0 10px var(--teal); } .k--link { background: #9fb3ff; }
.constellation__body { display: grid; grid-template-columns: 1.55fr 1fr; }
.constellation__map { padding: 20px; border-right: 1px solid var(--line-d); }
.constellation__map .fine { text-align: center; margin: 8px 0 0; }
#constellation { width: 100%; height: auto; max-height: 78vh; margin: 0 auto; overflow: visible; }
#constellation .ring { fill: none; stroke: rgba(244,239,230,.22); stroke-dasharray: 2 7; }
#constellation .ring-label { fill: rgba(236,214,166,.55); font: 600 12px var(--sans); letter-spacing: .2em; }
#constellation .ray { stroke: rgba(200,164,106,.25); stroke-width: 1; transition: stroke .4s, opacity .5s; }
#constellation .poi { cursor: pointer; transition: opacity .5s; }
#constellation .poi circle.core { transition: r .4s var(--ease); }
#constellation .poi text { fill: rgba(244,239,230,.82); font: 500 16px var(--sans); letter-spacing: .04em; pointer-events: none; transition: fill .3s; }
#constellation .poi:hover text, #constellation .poi.is-sel text { fill: #fff; }
#constellation .poi.is-dim { opacity: .12; }
#constellation .poi--next .core { fill: var(--teal); }
#constellation .poi--live .core { fill: var(--gold); }
#constellation .poi--link .core { fill: #9fb3ff; }
#constellation .halo { fill: none; stroke-width: 1; opacity: .5; }
#constellation .poi--next .halo { stroke: var(--teal); animation: halo 2.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes halo { from { transform: scale(.6); opacity: .8; } to { transform: scale(2.4); opacity: 0; } }
#constellation .center-label { fill: var(--pearl); font: 300 34px var(--serif); letter-spacing: .3em; }
#constellation .center-sub { fill: var(--gold); font: 600 10px var(--sans); letter-spacing: .32em; }
.constellation__panel { padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; }
.constellation__panel h3 { font: 300 clamp(30px, 2.8vw, 46px)/1.05 var(--serif); margin: 0 0 16px; }
.constellation__panel > p:not(.eyebrow) { color: var(--muted-d); min-height: 5.2em; }
.poi__meta { display: flex; gap: 12px; align-items: center; margin-bottom: 26px; font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
#poiMins { color: var(--gold-2); font: 300 32px/1 var(--serif); letter-spacing: 0; text-transform: none; }
#poiStatus:not(:empty) { padding: 7px 12px; border-radius: 100px; border: 1px solid currentColor; }
#poiStatus.s-next { color: var(--teal); } #poiStatus.s-live { color: var(--gold); } #poiStatus.s-link { color: #9fb3ff; }
.poi__list { list-style: none; margin: auto 0 0; padding: 0; border-top: 1px solid var(--line-d); max-height: 320px; overflow: auto; scrollbar-width: thin; }
.poi__list li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line-d); cursor: pointer; font-size: 14px; color: var(--muted-d); transition: color .3s, padding .4s var(--ease); }
.poi__list li:hover, .poi__list li.is-sel { color: var(--pearl); padding-left: 8px; }
.poi__list li b { font-weight: 500; color: var(--gold-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.poi__list li.is-hidden { display: none; }
.poi__list li i { margin-right: 10px; vertical-align: middle; }

.timeline { margin-top: clamp(80px, 9vw, 140px); }
.timeline__track { list-style: none; padding: 0; margin: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); overflow-x: auto; scrollbar-width: none; position: relative; padding-top: 30px; }
.timeline__track::-webkit-scrollbar { display: none; }
.timeline__track::before { content: ''; position: absolute; left: 0; right: 0; top: 34px; height: 1px; background: linear-gradient(90deg, var(--gold), var(--teal) 60%, rgba(111,208,201,.2)); }
.tl { padding: 0 22px 0 0; position: relative; }
@media (min-width: 1100px) { .timeline__track { grid-auto-columns: minmax(0, 1fr); } .tl { padding-right: 14px; } .tl__y { font-size: 32px !important; } .tl__t { font-size: 12.5px !important; } }
.tl::before { content: ''; position: absolute; top: -1px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.tl--next::before { background: var(--ink); border: 1px solid var(--teal); }
.tl--astera::before { width: 15px; height: 15px; top: -4px; left: -3px; background: var(--gold-2); box-shadow: 0 0 0 6px rgba(200,164,106,.18), 0 0 30px var(--gold); }
.tl__y { display: block; margin: 26px 0 10px; font: 300 40px/1 var(--serif); }
.tl--next .tl__y { color: var(--teal); }
.tl--astera .tl__y { color: var(--gold-2); font-style: italic; }
.tl__t { font-size: 13.5px; color: var(--muted-d); line-height: 1.5; }
.tl--astera .tl__t { color: var(--pearl); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; }

/* ---------- architecture ---------- */
.architecture { padding: clamp(100px, 12vw, 180px) 0; }
.arch { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.arch__copy > p:not(.eyebrow) { color: var(--muted-l); font-size: 17px; max-width: 54ch; }
.arch__copy strong { color: var(--text-d); font-weight: 600; }
.specs { margin: 44px 0 0; border-top: 1px solid var(--line-l); }
.specs div { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line-l); }
.specs dt { font: 600 10.5px/1.6 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--muted-l); }
.specs dd { margin: 0; font: 400 21px/1.3 var(--serif); text-align: right; }
.arch__drawing { margin: 0; background: #ebe4d8; border: 1px solid var(--line-l); padding: clamp(20px, 3vw, 44px); position: relative; }
.arch__drawing svg { width: 100%; height: auto; }
.arch__drawing figcaption { display: grid; gap: 8px; margin-top: 22px; font-size: 13px; color: var(--muted-l); }
.arch__drawing figcaption b { display: inline-block; min-width: 64px; font: 600 10px/1 var(--sans); letter-spacing: .2em; color: var(--gold-3); }
#elevation .fl { transition: fill .5s, opacity .5s; }
#elevation .fl:hover { fill: rgba(200,164,106,.35); }
#elevation text { font: 500 9px var(--sans); letter-spacing: .2em; fill: rgba(20,22,27,.55); }

/* ---------- gallery ---------- */
.gallery { padding: clamp(100px, 12vw, 180px) 0 clamp(80px, 8vw, 120px); overflow: hidden; }
.gallery__rail { display: flex; gap: 18px; padding: 0 var(--pad); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; }
.gallery__rail::-webkit-scrollbar { display: none; }
.shot { margin: 0; flex: 0 0 min(62vw, 820px); scroll-snap-align: center; position: relative; overflow: hidden; background: var(--navy); aspect-ratio: 4 / 5; }
.shot--wide { flex-basis: min(86vw, 1240px); aspect-ratio: 16 / 9; }
.shot img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.8s var(--ease); }
.shot:hover img { transform: scale(1.0); }
.shot figcaption { position: absolute; left: 24px; bottom: 22px; font: 300 26px/1 var(--serif); color: var(--pearl); text-shadow: 0 2px 20px rgba(0,0,0,.5); }
.shot figcaption::before { content: ''; display: block; width: 28px; height: 1px; background: var(--gold); margin-bottom: 14px; }

/* ---------- residences ---------- */
.residences { padding: clamp(100px, 12vw, 180px) 0; }
.res__tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line-l); overflow-x: auto; scrollbar-width: none; }
.res__tab { flex: 1 0 auto; padding: 20px 22px; background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; text-align: left; color: var(--muted-l); transition: color .4s, border-color .4s; margin-bottom: -1px; }
.res__tab b { display: block; font: 300 28px/1 var(--serif); color: inherit; margin-bottom: 6px; }
.res__tab span { font: 600 10px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.res__tab.is-on, .res__tab:hover { color: var(--text-d); border-bottom-color: var(--gold); }
.res__body { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(30px, 5vw, 90px); padding-top: clamp(40px, 5vw, 70px); align-items: start; }
.res__plan { background: #fbf8f2; border: 1px solid var(--line-l); padding: clamp(16px, 2.5vw, 36px); }
#plan { width: 100%; height: auto; }
#plan .room { fill: #fff; stroke: #2a2b2f; stroke-width: 2.2; }
#plan .terrace { fill: rgba(200,164,106,.14); stroke: #a8844b; stroke-width: 1.2; stroke-dasharray: 4 4; }
#plan .label { font: 600 10px var(--sans); letter-spacing: .18em; fill: #2a2b2f; text-anchor: middle; }
#plan .dim { font: 500 9px var(--sans); fill: #8a8378; text-anchor: middle; letter-spacing: .06em; }
#plan .glazing { stroke: #6fb6c9; stroke-width: 4; }
#plan .compass { font: 600 9px var(--sans); fill: #a8844b; letter-spacing: .2em; }
.res__info h3 { font: 300 clamp(36px, 3.6vw, 58px)/1 var(--serif); margin: 0 0 18px; }
.res__info > p { color: var(--muted-l); }
.res__facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 30px 0; border-top: 1px solid var(--line-l); }
.res__facts div { padding: 16px 0; border-bottom: 1px solid var(--line-l); }
.res__facts dt { font: 600 10px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted-l); margin-bottom: 8px; }
.res__facts dd { margin: 0; font: 400 24px/1.1 var(--serif); }
.res__price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 26px; }
.res__price span { font: 600 10px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted-l); }
.res__price strong { font: 300 44px/1 var(--serif); }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 100px; background: rgba(200,164,106,.16); color: #7a5c2f; font: 600 10px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; margin-bottom: 18px; }
.finishes { list-style: none; padding: 0; margin: clamp(60px, 7vw, 100px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.finishes li { border-top: 1px solid var(--text-d); padding-top: 18px; font-size: 14px; color: var(--muted-l); }
.finishes b { display: block; font: 400 21px/1.2 var(--serif); color: var(--text-d); margin-bottom: 6px; }

/* ---------- availability ---------- */
.availability { padding: clamp(100px, 12vw, 180px) 0; background: radial-gradient(70% 60% at 80% 20%, rgba(200,164,106,.08), transparent 70%), var(--ink); }
.av__filters { display: flex; gap: 8px; flex-wrap: wrap; }
.av { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(24px, 4vw, 60px); align-items: start; }
.av__grid { display: flex; flex-direction: column; gap: 5px; }
.av__floor { display: grid; grid-template-columns: 56px repeat(11, 1fr); gap: 5px; align-items: stretch; }
.av__floor--ph { grid-template-columns: 56px repeat(4, 1fr); }
.av__floor--amen { grid-template-columns: 56px 1fr; }
.av__lvl { font: 600 10px/1 var(--sans); letter-spacing: .18em; color: var(--muted-d); display: flex; align-items: center; }
.unit {
  height: 40px; border: 1px solid var(--line-d); background: rgba(244,239,230,.03); cursor: pointer; border-radius: 2px;
  font: 600 9.5px/1 var(--sans); letter-spacing: .08em; color: var(--muted-d); transition: all .35s var(--ease); position: relative;
}
.unit[data-t="studio"] { --c: #8fa6b8; } .unit[data-t="one"] { --c: #9fb3ff; } .unit[data-t="two"] { --c: #6fd0c9; } .unit[data-t="three"] { --c: #e9a77d; } .unit[data-t="ph"] { --c: #ecd6a6; }
.unit::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--c); opacity: .75; }
.unit:hover, .unit.is-sel { background: var(--c); color: var(--ink); border-color: var(--c); transform: translateY(-2px); box-shadow: 0 8px 24px -8px var(--c); }
.unit.is-dim { opacity: .14; pointer-events: none; }
.amen-bar { height: 40px; display: flex; align-items: center; justify-content: center; border: 1px dashed rgba(200,164,106,.4); font: 600 10px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.av__legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; font: 500 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted-d); }
.av__legend i { width: 14px; height: 2px; display: inline-block; vertical-align: middle; margin-right: 8px; }
.av__panel { border: 1px solid var(--line-d); padding: clamp(24px, 3vw, 40px); position: sticky; top: 100px; background: linear-gradient(180deg, rgba(15,22,36,.85), rgba(6,8,13,.6)); }
.av__panel h3 { font: 300 clamp(30px, 2.6vw, 42px)/1.1 var(--serif); margin: 0 0 18px; }
.av__panel dl { margin: 24px 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-d); }
.av__panel dl div { padding: 14px 0; border-bottom: 1px solid var(--line-d); }
.av__panel dt { font: 600 10px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted-d); margin-bottom: 8px; }
.av__panel dd { margin: 0; font: 400 22px/1.1 var(--serif); }
.av__price { font: 300 46px/1 var(--serif); color: var(--gold-2); margin: 4px 0 6px; }
.status-pill { display: inline-flex; gap: 8px; align-items: center; font: 600 10px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--teal); margin-bottom: 16px; }
.status-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }

/* ---------- amenities ---------- */
.amenities { padding: clamp(100px, 12vw, 180px) 0; }
.am { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.am__feature { position: sticky; top: 110px; }
.am__feature h3 { font: 300 clamp(32px, 3vw, 48px)/1.05 var(--serif); margin: 0 0 16px; }
.am__feature p:not(.eyebrow) { color: var(--muted-l); }
.am__art { aspect-ratio: 16 / 10; margin-bottom: 30px; overflow: hidden; position: relative; background: linear-gradient(180deg, #2a3756 0%, #8a5e6b 38%, #f0a36d 62%, #ffd9a0 70%, #1d4a55 71%, #0d2a33 100%); }
.sunset i { position: absolute; left: 50%; top: 52%; width: 22%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, #fff3d6 0%, #ffd08a 45%, rgba(255,170,100,0) 70%); filter: blur(1px); animation: sunbob 9s ease-in-out infinite alternate; }
.sunset::before { content: ''; position: absolute; left: 0; right: 0; top: 71%; bottom: 0; background: repeating-linear-gradient(180deg, rgba(255,215,160,.18) 0 2px, transparent 2px 9px); mask: radial-gradient(40% 100% at 50% 0%, #000, transparent); -webkit-mask: radial-gradient(40% 100% at 50% 0%, #000, transparent); animation: shimmer 4s linear infinite; }
.sunset::after { content: ''; position: absolute; left: 8%; right: 8%; top: 70.5%; height: 3px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); }
@keyframes sunbob { to { top: 60%; } }
@keyframes shimmer { to { background-position: 0 18px; } }
.am__grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-l); }
.am__grid li { padding: 30px 26px 30px 0; border-bottom: 1px solid var(--line-l); }
.am__grid li:nth-child(odd) { border-right: 1px solid var(--line-l); }
.am__grid li:nth-child(even) { padding-left: 26px; }
.am__grid svg { width: 38px; height: 38px; color: var(--gold-3); margin-bottom: 18px; }
.am__grid h4 { font: 400 23px/1.15 var(--serif); margin: 0 0 8px; }
.am__grid p { font-size: 14px; color: var(--muted-l); margin: 0; }

/* ---------- invest ---------- */
.invest { padding: clamp(100px, 12vw, 180px) 0; }
.reasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-d); margin-bottom: clamp(70px, 8vw, 120px); }
.reason { padding: 32px 28px 10px 0; border-right: 1px solid var(--line-d); margin-right: 28px; }
.reason:last-child { border-right: 0; margin-right: 0; }
.reason__n { font: 600 10px/1 var(--sans); letter-spacing: .3em; color: var(--gold); }
.reason h3 { font: 300 30px/1.08 var(--serif); margin: 20px 0 14px; }
.reason p { color: var(--muted-d); font-size: 15px; }
.calc { display: grid; grid-template-columns: 1fr 1.2fr; border: 1px solid var(--line-d); background: linear-gradient(160deg, rgba(200,164,106,.07), rgba(6,8,13,0) 50%); }
.calc__inputs { padding: clamp(26px, 3.4vw, 50px); border-right: 1px solid var(--line-d); display: flex; flex-direction: column; gap: 26px; }
.calc__inputs h3 { font: 300 38px/1 var(--serif); margin: 0 0 6px; }
.calc label { display: flex; flex-direction: column; gap: 12px; font: 600 10.5px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted-d); position: relative; }
.calc output { position: absolute; right: 0; top: 0; color: var(--gold-2); letter-spacing: .1em; }
.calc select, .field input, .field select, .field textarea { width: 100%; height: 50px; padding: 0 16px; background: rgba(244,239,230,.04); border: 1px solid var(--line-d); border-radius: 2px; font: 400 15px/1 var(--sans); letter-spacing: .01em; text-transform: none; color: var(--pearl); outline: none; transition: border-color .3s; appearance: none; -webkit-appearance: none; }
.calc select, .field select { background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.calc select option, .field select option { background: var(--navy); color: var(--pearl); }
.calc select:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 1px; background: linear-gradient(90deg, var(--gold) var(--fill, 50%), var(--line-d) var(--fill, 50%)); }
input[type="range"]::-moz-range-track { height: 1px; background: var(--line-d); }
input[type="range"]::-moz-range-progress { height: 1px; background: var(--gold); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); border: 1px solid var(--gold); margin-top: -9px; box-shadow: 0 0 0 4px rgba(200,164,106,.15); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 1px solid var(--gold); }
.calc__out { padding: clamp(26px, 3.4vw, 50px); }
.calc__big { margin-bottom: 26px; }
.calc__big span { display: block; font: 600 10.5px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted-d); margin-bottom: 12px; }
.calc__big strong { font: 300 clamp(48px, 5vw, 76px)/1 var(--serif); color: var(--gold-2); font-variant-numeric: lining-nums; }
.calc__row { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line-d); font-size: 14px; color: var(--muted-d); }
.calc__row b { font: 400 20px/1 var(--serif); color: var(--pearl); }
.calc__row--hl b { color: var(--teal); }
#calcChart { width: 100%; height: 150px; margin: 22px 0 14px; }
.plan { margin-top: clamp(70px, 8vw, 120px); }
.plan h3 { font: 300 clamp(32px, 3vw, 46px)/1 var(--serif); margin: 0 0 30px; }
.plan__bar { list-style: none; padding: 0; margin: 0 0 18px; display: flex; gap: 4px; }
.plan__bar li { flex: var(--w) 1 0; min-width: 0; padding: 18px 16px 18px; border-top: 2px solid var(--gold); background: rgba(244,239,230,.035); position: relative; }
.plan__bar li:last-child { border-top-color: var(--teal); background: rgba(111,208,201,.06); }
.plan__bar b { display: block; font: 300 40px/1 var(--serif); color: var(--pearl); }
.plan__bar span { display: block; margin-top: 10px; font: 600 10px/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); }
.plan__bar small { display: block; margin-top: 6px; font-size: 12px; color: var(--muted-d); }

/* ---------- developer ---------- */
.developer { padding: clamp(100px, 12vw, 180px) 0; background: var(--sand); }
.dev { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(30px, 6vw, 100px); align-items: center; }
.dev__mark svg { width: 100%; max-width: 360px; aspect-ratio: 1; fill: none; stroke: var(--gold-3); stroke-width: .15; margin: 0 auto; animation: spin 60s linear infinite; }
.dev > div > p:not(.eyebrow) { color: var(--muted-l); font-size: 18px; max-width: 58ch; }
.pillars { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillars li { border-top: 1px solid var(--text-d); padding-top: 16px; }
.pillars b { display: block; font: 400 22px/1.2 var(--serif); margin-bottom: 6px; }
.pillars span { font-size: 14px; color: var(--muted-l); }

/* ---------- faq ---------- */
.faq { padding: clamp(80px, 10vw, 150px) 0; border-top: 1px solid var(--line-l); }
.faq__wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 100px); }
.faq__list details { border-bottom: 1px solid var(--line-l); }
.faq__list details:first-child { border-top: 1px solid var(--line-l); }
.faq__list summary { list-style: none; cursor: pointer; padding: 24px 50px 24px 0; font: 400 clamp(21px, 1.8vw, 27px)/1.25 var(--serif); position: relative; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 200 30px/1 var(--sans); color: var(--gold-3); transition: transform .5s var(--ease); }
.faq__list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__list details p { color: var(--muted-l); padding: 0 50px 24px 0; margin: 0; }

/* ---------- register ---------- */
.register { padding: clamp(100px, 12vw, 180px) 0; overflow: hidden; }
.register__glow { position: absolute; width: 900px; height: 900px; right: -300px; top: -200px; background: radial-gradient(circle, rgba(200,164,106,.16), transparent 60%); pointer-events: none; }
.reg { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: start; position: relative; }
.reg__copy > p:not(.eyebrow) { color: var(--muted-d); font-size: 18px; max-width: 48ch; }
.reg__perks { list-style: none; padding: 0; margin: 34px 0; }
.reg__perks li { padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line-d); position: relative; font: 400 21px/1.3 var(--serif); }
.reg__perks li::before { content: ''; position: absolute; left: 4px; top: 50%; width: 12px; height: 12px; transform: translateY(-50%); background: var(--gold); clip-path: path('M6 0C6.4 3.2 8.5 5.3 12 6 8.5 6.7 6.4 8.8 6 12 5.6 8.8 3.5 6.7 0 6 3.5 5.3 5.6 3.2 6 0Z'); }
.reg__direct { display: flex; gap: 12px; flex-wrap: wrap; }
.form { border: 1px solid var(--line-d); padding: clamp(24px, 3.5vw, 50px); background: rgba(15,22,36,.55); backdrop-filter: blur(10px); display: flex; flex-direction: column; gap: 18px; }
.form__row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field > span { font: 600 10px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted-d); }
.field textarea { height: auto; padding: 14px 16px; line-height: 1.5; resize: vertical; }
.field.is-invalid input, .field.is-invalid select { border-color: var(--coral); }
.phone { display: grid; grid-template-columns: 96px 1fr; gap: 6px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 12.5px; color: var(--muted-d); line-height: 1.5; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--gold); flex: none; }
.check.is-invalid { color: var(--coral); }
.form__status { margin: 0; min-height: 1.4em; font-size: 14px; color: var(--teal); }
.form__status.is-err { color: var(--coral); }

/* ---------- footer ---------- */
.footer { background: #030407; padding: 70px 0 50px; border-top: 1px solid var(--line-d); }
.footer__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px 60px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: flex-end; font: 500 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted-d); }
.footer nav a:hover { color: var(--gold); }
.footer__legal { grid-column: 1 / -1; border-top: 1px solid var(--line-d); padding-top: 30px; max-width: 120ch; opacity: .8; }

/* ---------- floating whatsapp ---------- */
.wa[hidden] { display: none !important; }
.wa { position: fixed; z-index: 80; right: 22px; bottom: 22px; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #e9d3a2, #c8a46a); color: var(--ink); box-shadow: 0 14px 40px -10px rgba(200,164,106,.6); transition: transform .5s var(--ease); }
.wa:hover { transform: scale(1.08) rotate(-6deg); }
.wa svg { width: 26px; height: 26px; }

/* ---------- grain ---------- */
.grain { position: fixed; inset: -50%; z-index: 150; pointer-events: none; opacity: .045; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1.2s var(--ease), transform 1.4s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal, .is-shot .reveal { opacity: 1; transform: none; }

/* ---------- shot mode (render export) ---------- */
.is-shot .nav, .is-shot .chapters, .is-shot .hud, .is-shot .scrollcue, .is-shot .progress, .is-shot .grain, .is-shot .loader, .is-shot .wa { display: none !important; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav__links { display: none; }
  .burger { display: block; }
  .reasons { grid-template-columns: repeat(2, 1fr); }
  .reason:nth-child(2) { border-right: 0; margin-right: 0; }
  .finishes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .constellation__body, .arch, .res__body, .av, .am, .calc, .reg, .dev, .faq__wrap, .footer__grid { grid-template-columns: 1fr; }
  .constellation__map { border-right: 0; border-bottom: 1px solid var(--line-d); }
  .calc__inputs { border-right: 0; border-bottom: 1px solid var(--line-d); }
  .figures__grid { grid-template-columns: repeat(2, 1fr); }
  .fig { padding-bottom: 26px; border-bottom: 1px solid var(--line-l); }
  .fig:nth-child(2n) { border-right: 0; }
  .am__feature, .av__panel { position: relative; top: 0; }
  .footer nav { justify-content: flex-start; }
  .dev__mark svg { max-width: 160px; margin: 0; }
  .hud { top: 92px; }
  .hud__clock { font-size: 32px; }
  .hud__coords { display: none; }
}
@media (max-width: 640px) {
  .nav { height: 70px; }
  .nav__cta .btn { display: none; }
  .chapter, .chapter--right { left: var(--pad); right: var(--pad); text-align: left; }
  .chapter--right .eyebrow { justify-content: flex-start; }
  .chapter--right p:not(.eyebrow) { margin-left: 0; }
  .hero__word { font-size: 16vw; letter-spacing: .05em; }
  .stage__poster { background-position: 66% 50%, 0 0; }
  #constellation .poi text { display: none; }
  #constellation .poi.is-sel text { display: block; font-size: 30px; fill: #fff; }
  #constellation .poi .core { r: 9; }
  #constellation .ring-label { font-size: 22px; }
  #constellation .center-label { font-size: 46px; }
  #constellation .center-sub { font-size: 16px; }
  .chapter__title { font-size: 40px; }
  .form__row--2 { grid-template-columns: 1fr; }
  .reasons { grid-template-columns: 1fr; }
  .reason { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line-d); }
  .pillars, .finishes { grid-template-columns: 1fr; }
  .am__grid { grid-template-columns: 1fr; }
  .am__grid li:nth-child(odd) { border-right: 0; }
  .am__grid li:nth-child(even) { padding-left: 0; }
  .av__floor { grid-template-columns: 34px repeat(11, 1fr); gap: 3px; }
  .av__floor--ph { grid-template-columns: 34px repeat(4, 1fr); }
  .av__floor--amen { grid-template-columns: 34px 1fr; }
  .unit { font-size: 0; height: 30px; }
  .plan__bar { flex-wrap: wrap; }
  .plan__bar li { flex: 1 1 45%; }
  .shot { flex-basis: 84vw; }
  .shot--wide { flex-basis: 92vw; }
  .progress { display: none; }
  .experience { height: 460vh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Language switch
   ========================================================================== */
.lang { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--line-d); border-radius: 100px; font: 500 13px/1 var(--sans); color: rgba(244,239,230,.85); transition: border-color .4s, color .4s; }
.lang:hover { border-color: var(--gold); color: var(--gold-2); }
.lang[lang="ar"] { font-family: 'IBM Plex Sans Arabic', var(--sans); font-size: 14px; }
.menu__lang { font-size: 22px !important; color: var(--muted-d); margin-top: 18px; }
.hero__ar { display: none; }

/* ==========================================================================
   Arabic / RTL
   Latin glyphs keep Cormorant & Manrope; Arabic glyphs fall back to Amiri & IBM Plex Sans Arabic.
   ========================================================================== */
html[lang="ar"] {
  --serif: 'Cormorant Garamond', 'Amiri', serif;
  --sans: 'Manrope', 'IBM Plex Sans Arabic', system-ui, sans-serif;
}
/* Arabic letters must join: no tracking, no forced caps (brand/Latin elements opt out with .latin) */
html[lang="ar"] body *:not(.latin):not(.latin *) { letter-spacing: 0 !important; text-transform: none !important; }
html[lang="ar"] body { line-height: 1.85; }
html[lang="ar"] .h2 { line-height: 1.3; font-weight: 400; max-width: 18ch; }
html[lang="ar"] .chapter__title { line-height: 1.3; font-weight: 400; }
html[lang="ar"] .statement { line-height: 1.55; font-weight: 400; max-width: 30ch; }
html[lang="ar"] .h2 em, html[lang="ar"] .chapter__title em, html[lang="ar"] .statement em, html[lang="ar"] h3 em { font-style: normal; font-weight: 400; }
html[lang="ar"] .eyebrow { font-size: 13px; font-weight: 600; }
html[lang="ar"] .btn { font-size: 14px; font-weight: 600; }
html[lang="ar"] .btn--sm { font-size: 13px; }
html[lang="ar"] .nav__links a { font-size: 14px; font-weight: 500; }
html[lang="ar"] .fig dt, html[lang="ar"] .specs dt, html[lang="ar"] .res__facts dt, html[lang="ar"] .av__panel dt,
html[lang="ar"] .calc label, html[lang="ar"] .calc__big span, html[lang="ar"] .field > span, html[lang="ar"] .res__price span { font-size: 12.5px; }
html[lang="ar"] .hud { font-size: 12px; }
html[lang="ar"] .scrollcue { font-size: 12px; }
html[lang="ar"] .loader__note { font-size: 12px; }
html[lang="ar"] .res__tab span, html[lang="ar"] .chip, html[lang="ar"] .plan__bar span, html[lang="ar"] .status-pill, html[lang="ar"] .badge,
html[lang="ar"] .amen-bar, html[lang="ar"] .av__legend, html[lang="ar"] .poi__meta, html[lang="ar"] .footer nav { font-size: 12.5px; }
html[lang="ar"] .av__lvl { font-size: 11px; }
html[lang="ar"] .arch__drawing figcaption b { font-size: 12px; min-width: 70px; }
html[lang="ar"] .hero__lead { line-height: 1.75; }
html[lang="ar"] .fig dd small { font-size: .3em; margin-right: 8px; margin-left: 0; }
html[lang="ar"] #constellation .poi text { font-size: 17px; }
html[lang="ar"] #constellation .center-label { font-size: 40px; font-weight: 700; }
html[lang="ar"] #constellation .center-sub { font-size: 15px; }
html[lang="ar"] #constellation .ring-label { font-size: 14px; }
html[lang="ar"] #elevation text { font-size: 11px; }
html[lang="ar"] #plan .label { font-size: 12px; }
html[lang="ar"] #plan .compass { font-size: 12px; }
html[lang="ar"] .hero__ar { display: block; font: 700 clamp(26px, 3vw, 44px)/1.2 'Amiri', serif; color: var(--gold-2); margin-top: 10px; }
html[lang="ar"] .reg__perks li { font-family: 'Amiri', serif; }

/* mirrored layout */
[dir="rtl"] .btn svg { transform: scaleX(-1); }
[dir="rtl"] .btn:hover svg { transform: scaleX(-1) translateX(5px); }
[dir="rtl"] .chapter { left: auto; right: var(--pad); }
[dir="rtl"] .chapter--right { right: auto; left: var(--pad); text-align: right; }
[dir="rtl"] .chapter--right .eyebrow { justify-content: flex-start; }
[dir="rtl"] .chapter--right p:not(.eyebrow) { margin-left: 0; }
[dir="rtl"] .hero__word { margin-left: 0; text-align: right; }
[dir="rtl"] .hud { right: auto; left: var(--pad); align-items: flex-start; }
[dir="rtl"] .progress { right: auto; left: calc(var(--pad) - 24px); }
[dir="rtl"] .stage__grade { background: radial-gradient(70% 60% at 70% 62%, rgba(255,170,90,.95), rgba(255,140,80,.35) 45%, rgba(80,60,120,.25) 100%); }
[dir="rtl"] .fig { border-right: 0; border-left: 1px solid var(--line-l); margin-right: 0; margin-left: 20px; padding: 28px 0 0 20px; }
[dir="rtl"] .fig:last-child { border-left: 0; }
[dir="rtl"] .poi__list li:hover, [dir="rtl"] .poi__list li.is-sel { padding-left: 0; padding-right: 8px; }
[dir="rtl"] .poi__list li i { margin-right: 0; margin-left: 10px; }
[dir="rtl"] .timeline__track::before { background: linear-gradient(270deg, var(--gold), var(--teal) 60%, rgba(111,208,201,.2)); }
[dir="rtl"] .tl { padding: 0 0 0 22px; }
[dir="rtl"] .tl::before { left: auto; right: 0; }
[dir="rtl"] .tl--astera::before { left: auto; right: -3px; }
[dir="rtl"] .specs dd { text-align: left; }
[dir="rtl"] .res__tab { text-align: right; }
[dir="rtl"] .reason { border-right: 0; border-left: 1px solid var(--line-d); margin-right: 0; margin-left: 28px; padding: 32px 0 10px 28px; }
[dir="rtl"] .reason:last-child { border-left: 0; margin-left: 0; }
[dir="rtl"] .calc__inputs { border-right: 0; border-left: 1px solid var(--line-d); }
[dir="rtl"] .calc output { right: auto; left: 0; }
[dir="rtl"] .calc select, [dir="rtl"] .field select { background-position: 15px 22px, 20px 22px; padding-right: 16px; padding-left: 40px; }
[dir="rtl"] .constellation__map { border-right: 0; border-left: 1px solid var(--line-d); }
[dir="rtl"] .am__grid li { padding: 30px 0 30px 26px; }
[dir="rtl"] .am__grid li:nth-child(odd) { border-right: 0; border-left: 1px solid var(--line-l); }
[dir="rtl"] .am__grid li:nth-child(even) { padding-left: 0; padding-right: 26px; }
[dir="rtl"] .reg__perks li { padding: 14px 34px 14px 0; }
[dir="rtl"] .reg__perks li::before { left: auto; right: 4px; }
[dir="rtl"] .faq__list summary { padding: 24px 0 24px 50px; }
[dir="rtl"] .faq__list summary::after { right: auto; left: 6px; }
[dir="rtl"] .faq__list details p { padding: 0 0 24px 50px; }
[dir="rtl"] .wa { right: auto; left: 22px; }
[dir="rtl"] .register__glow { right: auto; left: -300px; }
[dir="rtl"] .footer nav { justify-content: flex-start; }
[dir="rtl"] input[type="range"] { direction: ltr; }
[dir="rtl"] input[type="email"], [dir="rtl"] input[type="tel"] { text-align: left; }
[dir="rtl"] .shot figcaption { left: auto; right: 24px; }

@media (max-width: 980px) {
  [dir="rtl"] .constellation__map { border-left: 0; }
  [dir="rtl"] .calc__inputs { border-left: 0; }
  [dir="rtl"] .fig:nth-child(2n) { border-left: 0; }
  [dir="rtl"] .footer nav { justify-content: flex-start; }
}
@media (max-width: 1180px) {
  [dir="rtl"] .reason:nth-child(2) { border-left: 0; margin-left: 0; }
}
@media (max-width: 640px) {
  [dir="rtl"] .chapter, [dir="rtl"] .chapter--right { left: var(--pad); right: var(--pad); text-align: right; }
  [dir="rtl"] .reason { border-left: 0; margin-left: 0; }
  [dir="rtl"] .am__grid li:nth-child(odd) { border-left: 0; }
  [dir="rtl"] .am__grid li:nth-child(even) { padding-right: 0; }
  html[lang="ar"] .hero__ar { font-size: 26px; }
  html[lang="ar"] .chapter__title { font-size: 34px; }
}
