/* ══════════════════════════════════════════════════════════════
   Al Ghadeer Parks by Aldar · alghadeerproperties.ae
   DNA from the brochure + factsheet: golden-hour sunset gradients,
   sand-paper cream, plum spaced capitals in Poppins, and the
   four-point stars that join places into constellations.
   ══════════════════════════════════════════════════════════════ */

:root {
  --cream: #f5ebd9;
  --cream-2: #efe2cb;
  --plum: #632b52;
  --violet: #57396d;
  --ink: #30042f;
  --ink-2: rgba(48, 4, 47, .74);
  --ink-3: rgba(48, 4, 47, .5);
  --rule: rgba(87, 57, 109, .28);
  --star: #da8334;
  --star-2: #f0a050;
  --peach: #f4bda0;
  --rose: #c98c92;
  --dusk: #7f7095;
  --night: #151227;
  --aubergine: #2a1530;

  --sunset: linear-gradient(180deg, #6f6189 0%, #8b7096 38%, #a6758c 74%, #94607a 100%);

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);

  --pad: clamp(20px, 5vw, 72px);
  --max: 1280px;
  --bar: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 300 16px/1.75 Poppins, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--plum); color: var(--cream); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--plum); color: #fff; border-radius: 6px; transition: top .2s var(--ease-out); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.center { text-align: center; }

/* paper: the brochure's pale sand texture, kept faint */
.paper { position: relative; background: var(--cream); isolation: isolate; }
.paper::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url(/assets/img/sand.webp) center / cover no-repeat;
  opacity: .32; mix-blend-mode: multiply;
}

/* ── logos: SVG as a mask so they follow currentColor ─────── */
.logo { display: inline-block; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.logo--agp { --m: url(/assets/logo-agp.svg); aspect-ratio: 656 / 130; }
.logo--aldar { --m: url(/assets/logo-aldar.svg); aspect-ratio: 1; }

/* ── type ───────────────────────────────────────────────────── */
.kicker {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--plum);
}
.kicker svg { width: 14px; height: 14px; fill: var(--star); flex: none; filter: drop-shadow(0 0 4px rgba(240, 160, 80, .7)); }
.kicker--light { color: rgba(255, 255, 255, .92); }

.h2 {
  margin: 0 0 24px;
  font-size: clamp(22px, 2.6vw, 34px); line-height: 1.35; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--plum);
}
.h2--light { color: #fff; }
.h3 {
  margin: 0 0 20px;
  font-size: clamp(17px, 1.6vw, 21px); line-height: 1.4; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase; color: var(--violet);
}
.lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.65; font-weight: 400; color: var(--ink); }
.fine { font-size: 12px; line-height: 1.6; color: var(--ink-3); margin-top: 28px; }

/* ── buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--plum); color: #fff;
  font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  box-shadow: 0 10px 30px -12px rgba(99, 43, 82, .7);
  transition: transform 160ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: 2px solid var(--star); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: #77365f; box-shadow: 0 14px 34px -12px rgba(99, 43, 82, .85); }
}
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 12px; }
.btn--ghost { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
@media (hover: hover) and (pointer: fine) { .btn--ghost:hover { background: rgba(255, 255, 255, .24); box-shadow: inset 0 0 0 1px #fff; } }
.btn--block { width: 100%; }
.btn__label { display: inline-block; transition: filter 160ms ease, opacity 160ms ease; }
.btn__label.is-swap { filter: blur(3px); opacity: 0; }
.btn:disabled { cursor: progress; opacity: .85; }

/* ── top bar ────────────────────────────────────────────────── */
.topbar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--bar);
  display: flex; align-items: center; gap: 24px;
  padding: 0 var(--pad);
  color: #fff;
  transition: background-color 300ms ease, color 300ms ease, height 300ms var(--ease-out), box-shadow 300ms ease;
}
.topbar.is-stuck {
  --bar: 64px;
  background: rgba(245, 235, 217, .9);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  color: var(--plum);
  box-shadow: 0 1px 0 var(--rule);
}
.topbar__brand { display: block; opacity: 0; transform: translateY(-6px); transition: opacity 300ms ease, transform 300ms var(--ease-out); pointer-events: none; }
.topbar.is-stuck .topbar__brand { opacity: 1; transform: none; pointer-events: auto; }
.topbar__brand .logo { width: 180px; display: block; }
.topbar__nav { display: flex; gap: 28px; margin-left: auto; }
.topbar__nav a { font-size: 12px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; opacity: .85; transition: opacity 200ms ease; }
@media (hover: hover) and (pointer: fine) { .topbar__nav a:hover { opacity: 1; } }
.topbar__end { display: flex; align-items: center; gap: 18px; }
.topbar__end .logo--aldar { width: 40px; }
@media (max-width: 1080px) { .topbar__nav { display: none; } .topbar__end { margin-left: auto; } }
@media (max-width: 560px) {
  .topbar { gap: 12px; }
  .topbar__brand .logo { width: 140px; }
  .topbar__end .btn { display: none; }
  .topbar__end .logo--aldar { width: 36px; }
}

/* ── hero ───────────────────────────────────────────────────── */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; color: #fff; overflow: hidden;
  background: #9c6f7c;
}
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media { z-index: -2; }
.hero__media img { object-fit: cover; object-position: 50% 62%; animation: heroIn 1.8s var(--ease-out) both; }
@keyframes heroIn { from { transform: scale(1.06); opacity: .4; } }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(64, 30, 74, .55) 0%, rgba(64, 30, 74, .12) 30%, rgba(0, 0, 0, 0) 50%, rgba(48, 4, 47, .18) 70%, rgba(48, 4, 47, .62) 100%);
}
.hero__inner {
  width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto;
  padding: calc(var(--bar) + 4vh) var(--pad) clamp(24px, 4vh, 44px);
  display: flex; flex-direction: column;
}
.hero__mark { margin: 0; text-align: center; font-weight: 400; }
.hero__mark .logo { display: block; width: clamp(260px, 36vw, 560px); margin: 0 auto; filter: drop-shadow(0 2px 18px rgba(64, 30, 74, .35)); animation: rise 1.1s var(--ease-out) .15s both; }
.hero__by { display: block; margin-top: 16px; font-size: 12px; font-weight: 400; letter-spacing: .3em; text-transform: uppercase; opacity: .9; animation: rise 1.1s var(--ease-out) .3s both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* split headline, joined by a constellation line */
.split {
  position: relative;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0 18px;
  margin: auto 0 clamp(26px, 5vh, 56px);
  font-size: clamp(18px, 2.3vw, 30px); font-weight: 600; letter-spacing: .34em; text-transform: uppercase; line-height: 1.2;
  text-shadow: 0 2px 22px rgba(64, 30, 74, .45);
}
.split__a, .split__b { white-space: nowrap; animation: rise 1s var(--ease-out) .45s both; }
.split__b { animation-delay: .6s; margin-right: -.34em; }
.split__mid { position: relative; display: block; }
.split__line { display: block; width: 100%; height: 40px; overflow: visible; }
.split__line path { fill: none; stroke: rgba(255, 236, 214, .85); stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s var(--ease-io) .8s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.split__star { position: absolute; left: 50%; top: 20%; width: 30px; height: 30px; margin: -15px 0 0 -15px; fill: #fff6e8; filter: drop-shadow(0 0 6px #ffc98a) drop-shadow(0 0 16px rgba(240, 160, 80, .9)); animation: starIn .9s var(--ease-out) 1.5s both, twinkle 3.6s ease-in-out 2.4s infinite; }
@keyframes starIn { from { opacity: 0; transform: scale(.6) rotate(-45deg); } }
@keyframes twinkle { 50% { opacity: .72; transform: scale(.88); } }

.hero__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; animation: rise 1s var(--ease-out) .75s both; }
.facts { display: grid; grid-template-columns: repeat(4, auto); margin: 0; border-top: 1px solid rgba(255, 255, 255, .45); }
.facts > div { padding: 14px 28px 0 0; margin-right: 28px; border-right: 1px solid rgba(255, 255, 255, .28); }
.facts > div:last-child { border: 0; margin: 0; padding-right: 0; }
.facts dt { font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; opacity: .82; }
.facts dd { margin: 4px 0 0; font-size: 15px; line-height: 1.4; }
.facts strong { font-weight: 500; font-size: 20px; letter-spacing: .02em; }
.hero__cta { display: flex; gap: 12px; flex: none; }

@media (max-width: 1080px) {
  .hero__foot { flex-direction: column; align-items: stretch; }
  .facts { grid-template-columns: repeat(2, 1fr); border: 0; gap: 0 20px; }
  .facts > div { border: 0; border-top: 1px solid rgba(255, 255, 255, .4); margin: 0; padding: 10px 0 12px; }
  .hero__cta > * { flex: 1; }
}
@media (max-width: 700px) {
  .hero__media img { object-position: 50% 55%; }
  .hero__inner { padding-top: calc(var(--bar) + 2vh); }
  .hero__by { font-size: 11px; letter-spacing: .24em; line-height: 1.9; }
  .hero__by > span:not(.hero__sep) { display: block; }
  .hero__sep { display: none; }
  .split { grid-template-columns: 1fr auto; grid-template-rows: auto 30px auto; font-size: clamp(15px, 4.6vw, 20px); letter-spacing: .26em; gap: 0; }
  .split__a { grid-column: 1 / 3; }
  .split__mid { grid-column: 1 / 3; grid-row: 2; }
  .split__line { height: 30px; }
  .split__b { grid-column: 1 / 3; grid-row: 3; justify-self: end; margin-right: -.26em; }
  .split__star { width: 22px; height: 22px; margin: -11px 0 0 -11px; }
  .facts dd { font-size: 14px; }
  .facts strong { font-size: 17px; }
  .hero__cta { flex-direction: column; }
}

/* ── reveal ─────────────────────────────────────────────────── */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity 900ms var(--ease-out) var(--d, 0ms), transform 900ms var(--ease-out) var(--d, 0ms); }
.js .rv.is-in { opacity: 1; transform: none; }
/* images: the wrapper is observed, the inner clip does the wipe (a clipped
   element has an empty intersection rect and could never reveal itself) */
.js .rv--img { transform: none; opacity: 1; }
.js .rv--img .clip { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease-io) var(--d, 0ms); }
.js .rv--img .clip img { transform: scale(1.08); transition: transform 1.6s var(--ease-out) var(--d, 0ms); }
.js .rv--img.is-in .clip { clip-path: inset(0); }
.js .rv--img.is-in .clip img { transform: none; }
.js .rv--img figcaption { opacity: 0; transition: opacity .8s ease calc(var(--d, 0ms) + 500ms); }
.js .rv--img.is-in figcaption { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .js .rv { transform: none; transition: opacity 500ms ease; }
  .js .rv--img .clip { clip-path: none; transition: none; }
  .js .rv--img .clip img { transform: none; }
  .hero__media img, .hero__mark .logo, .hero__by, .split__a, .split__b, .hero__foot { animation: none; }
  .split__line path { animation: none; stroke-dashoffset: 0; }
  .split__star { animation: none; }
}
.clip { overflow: hidden; }

/* ── story ──────────────────────────────────────────────────── */
.story { padding: clamp(80px, 11vw, 150px) 0 clamp(70px, 9vw, 120px); }
.story__grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(36px, 6vw, 96px); align-items: center; margin-bottom: clamp(70px, 9vw, 120px); }
.story__copy p:not(.kicker):not(.lead) { color: var(--ink-2); max-width: 54ch; }
.story__fig { margin: 0; }
.story__fig img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 40% 50%; }
figcaption { margin-top: 12px; font-size: 12px; letter-spacing: .08em; color: var(--ink-3); }
@media (max-width: 900px) { .story__grid { grid-template-columns: 1fr; } .story__fig { order: -1; } }

/* property details: the factsheet's ruled table */
.details { display: grid; grid-template-columns: 1fr 1fr 1.15fr; border-top: 1px solid var(--violet); border-bottom: 1px solid var(--violet); }
.details__col { display: flex; flex-direction: column; }
.details__col + .details__col { border-left: 1px solid var(--violet); }
.cell { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 4px; padding: 24px 18px; }
.cell + .cell { border-top: 1px solid var(--violet); }
.cell__k { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); }
.cell__v { font-size: clamp(18px, 1.6vw, 22px); font-weight: 400; color: var(--ink); }
.cell__v--sm { font-size: 14px; line-height: 1.55; text-transform: uppercase; letter-spacing: .04em; }
.cell--prices { gap: 8px; }
.price { display: flex; flex-direction: column; align-items: center; padding: 8px 18px; border-radius: 10px; text-decoration: none; transition: background-color 200ms ease, transform 160ms var(--ease-out); }
.price span { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.price b { font-size: 19px; font-weight: 600; color: var(--plum); }
.price:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .price:hover { background: rgba(99, 43, 82, .07); } }
.price:focus-visible { outline: 2px solid var(--star); outline-offset: 2px; }
@media (max-width: 820px) {
  .details { grid-template-columns: 1fr 1fr; }
  .details__col:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--violet); }
  .details__col:nth-child(1) { border-left: 0; }
}
@media (max-width: 480px) {
  .cell { padding: 18px 10px; }
  .cell__k { font-size: 11px; }
}

/* ── location ───────────────────────────────────────────────── */
.world {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(80px, 10vw, 140px) 0 clamp(80px, 10vw, 130px);
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(127, 112, 149, .92) 0%, rgba(172, 142, 163, .7) 26%, rgba(229, 189, 168, .55) 62%, rgba(245, 235, 217, 1) 100%),
    url(/assets/img/sky-2000.webp) center top / cover no-repeat;
}
.world__head { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 6vw, 96px); align-items: end; }
.world__copy > p { color: #fff; font-size: clamp(16px, 1.3vw, 18px); max-width: 56ch; }
.mins { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mins li { border-top: 1px solid rgba(255, 255, 255, .55); padding-top: 14px; color: #fff; }
.mins b { display: block; font-size: clamp(40px, 4.6vw, 64px); font-weight: 300; line-height: 1; letter-spacing: -.01em; }
.mins small { font-size: .3em; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; margin-left: 6px; vertical-align: .4em; }
.mins span { display: block; margin-top: 10px; font-size: 12px; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
@media (max-width: 900px) { .world__head { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .mins { gap: 12px; } .mins span { font-size: 10px; letter-spacing: .08em; } }

.map { position: relative; margin: clamp(40px, 6vw, 80px) auto 0; max-width: 1500px; }
.map__scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 0 var(--pad); }
.map__scroll::-webkit-scrollbar { display: none; }
.map__scroll:focus-visible { outline: 2px solid var(--star); outline-offset: -2px; }
.map__svg { display: block; width: 100%; min-width: 860px; height: auto; overflow: visible; font-family: Poppins, sans-serif; }
.map__hint { display: none; margin: 10px 0 0; text-align: center; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 900px) { .map__hint { display: block; } }

.map__areas path { fill: rgba(255, 238, 222, .32); stroke: rgba(87, 57, 109, .38); stroke-width: 1.3; opacity: 0; transition: opacity 1s ease .9s; }
.map__areas .inner { fill: none; stroke-dasharray: 3 4; }
.map__areas .home { fill: var(--star); fill-opacity: .88; stroke: none; }
.map__routes path { stroke: rgba(87, 57, 109, .55); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-io) calc(var(--i) * 180ms + 200ms); }
.map__stars .s { opacity: 0; transform-box: fill-box; }
.map__stars .s use { fill: #fff2df; transform-box: fill-box; transform-origin: center; transform: scale(.5); transition: transform .9s var(--ease-out) calc(var(--i) * 70ms + 400ms); }
.map__stars .s { transition: opacity .7s ease calc(var(--i) * 70ms + 400ms); }
.map__stars circle { fill: url(#glow); }
.map__stars .s:not(.s--big) use { fill: var(--star-2); }
.map__roads text { font-size: 17px; fill: var(--ink); font-weight: 300; }
.map__labels text { font-size: 19px; fill: var(--ink); text-anchor: middle; font-weight: 300; }
.map__roads .b, .map__labels .b { font-weight: 600; }
.map__labels .home { fill: var(--ink); }
.map__air text { font-size: 18px; fill: var(--ink); font-weight: 300; }
.map__air .plane { fill: var(--violet); transform: rotate(0deg); }
.map__air { opacity: 0; transition: opacity 1s ease 1.4s; }
.map__labels, .map__roads { opacity: 0; transition: opacity 1s ease 1.1s; }

.map.is-in .map__areas path, .map.is-in .map__labels, .map.is-in .map__roads, .map.is-in .map__air { opacity: 1; }
.map.is-in .map__routes path { stroke-dashoffset: 0; }
.map.is-in .map__stars .s { opacity: 1; }
.map.is-in .map__stars .s use { transform: none; }
.map.is-in .map__stars .s--big circle { animation: glow 4.2s ease-in-out infinite; animation-delay: calc(var(--i) * -530ms); transform-box: fill-box; transform-origin: center; }
@keyframes glow { 50% { opacity: .55; transform: scale(.86); } }
.js .map.rv { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .map__routes path { transition: none; stroke-dashoffset: 0; }
  .map.is-in .map__stars .s--big circle { animation: none; }
}

.growth { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; margin-top: clamp(70px, 9vw, 120px); }
.growth__fig { margin: 0; }
.growth__fig img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.growth__copy p { color: var(--ink-2); }
@media (max-width: 900px) { .growth { grid-template-columns: 1fr; } }

/* ── residences ─────────────────────────────────────────────── */
.res { padding: clamp(80px, 10vw, 140px) 0; }
.res__head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.res__head p:last-child { color: var(--ink-2); }

.tabs { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--rule); }
.tab {
  position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 2px 16px; align-items: baseline;
  padding: 18px 20px 20px 0; border: 0; background: none; cursor: pointer; text-align: left;
  color: var(--ink-3); transition: color 250ms ease;
  -webkit-tap-highlight-color: transparent;
}
.tab__n { grid-row: 1 / 3; font-size: clamp(28px, 3vw, 44px); font-weight: 300; line-height: 1; letter-spacing: -.02em; }
.tab__t { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.tab__p { font-size: 14px; }
.tab[aria-selected="true"] { color: var(--plum); }
.tab:focus-visible { outline: 2px solid var(--star); outline-offset: -2px; border-radius: 6px; }
@media (hover: hover) and (pointer: fine) { .tab:hover { color: var(--violet); } }
.tabs__ink { position: absolute; left: 0; bottom: -1px; height: 2px; width: calc(100% / 3); background: var(--plum); transform: translateX(calc(var(--x, 0) * 100%)); transition: transform 420ms var(--ease-drawer); }
@media (max-width: 700px) {
  .tab { grid-template-columns: 1fr; padding: 14px 8px 16px 0; }
  .tab__n { grid-row: auto; font-size: 26px; }
  .tab__t { font-size: 10px; letter-spacing: .1em; }
  .tab__p { font-size: 12px; }
}

.panels { display: grid; margin-top: clamp(28px, 4vw, 48px); }
.panel { grid-area: 1 / 1; display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.panel.is-on { animation: panelIn 520ms var(--ease-out) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .panel.is-on { animation: fadeOnly 300ms ease both; } @keyframes fadeOnly { from { opacity: 0; } } }
.panel__fig { margin: 0; overflow: hidden; }
.panel__fig img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; }
.panel__t { margin: 0 0 18px; font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--plum); line-height: 1.3; }
.spec { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 28px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.spec > div { padding: 14px 12px 14px 0; }
.spec > div + div { padding-left: 14px; border-left: 1px solid var(--rule); }
.spec dt { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.spec dd { margin: 2px 0 0; font-size: 17px; font-weight: 400; color: var(--ink); }
.plans { display: flex; align-items: flex-end; justify-content: center; gap: clamp(20px, 4vw, 48px); padding: 24px; margin-bottom: 28px; background: rgba(255, 255, 255, .42); border-radius: 4px; }
.plans figure { margin: 0; display: flex; flex-direction: column; align-items: center; }
.plans img { height: auto; max-height: 340px; width: auto; }
.plans figure:first-child img { max-height: 340px; }
.plans figcaption { margin-top: 10px; font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 900px) { .panel { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .plans { padding: 16px 10px; } .plans img, .plans figure:first-child img { max-height: 280px; } .spec dd { font-size: 15px; } }

/* ── amenities ──────────────────────────────────────────────── */
.amen {
  position: relative; isolation: isolate; color: #fff;
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--sunset);
}
.amen::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(/assets/img/sky-2000.webp) center / cover; opacity: .35; mix-blend-mode: soft-light; }
.amen__head { max-width: 640px; margin: 0 auto clamp(44px, 6vw, 72px); text-align: center; }
.amen__head .kicker { justify-content: center; }
.amen__head p:last-child { font-size: clamp(16px, 1.3vw, 18px); }

.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 2vw, 24px); }
.tile { margin: 0; }
.tile .clip { border-radius: 2px; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile figcaption { color: #fff; font-size: 14px; font-weight: 400; letter-spacing: 0; line-height: 1.55; margin-top: 14px; max-width: 46ch; }
.tile figcaption b { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #fff; }
.tile--a { grid-column: 1 / 8; } .tile--a .clip { aspect-ratio: 16 / 10; }
.tile--b { grid-column: 8 / 13; align-self: end; } .tile--b .clip { aspect-ratio: 4 / 4.2; }
.tile--c { grid-column: 1 / 6; } .tile--c .clip { aspect-ratio: 4 / 4.2; }
.tile--d { grid-column: 6 / 13; align-self: end; } .tile--d .clip { aspect-ratio: 16 / 10; }
.tile--e { grid-column: 1 / 5; } .tile--f { grid-column: 5 / 9; } .tile--g { grid-column: 9 / 13; }
.tile--e .clip, .tile--f .clip, .tile--g .clip { aspect-ratio: 4 / 3; }
@media (hover: hover) and (pointer: fine) {
  .tile .clip img { transition: transform 900ms var(--ease-out); }
  .tile.is-in:hover .clip img { transform: scale(1.03); }
}
@media (max-width: 900px) {
  .tile--a, .tile--d { grid-column: 1 / -1; }
  .tile--b, .tile--c { grid-column: span 6; }
  .tile--b .clip, .tile--c .clip { aspect-ratio: 4 / 4.6; }
  .tile--e, .tile--f, .tile--g { grid-column: span 6; }
  .tile--g { grid-column: 1 / -1; } .tile--g .clip { aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) {
  .tile--b, .tile--c, .tile--e, .tile--f { grid-column: 1 / -1; }
  .tile--b .clip, .tile--c .clip, .tile--e .clip, .tile--f .clip { aspect-ratio: 4 / 3; }
}

.icons { list-style: none; margin: clamp(56px, 8vw, 96px) 0 0; padding: 36px 0 0; border-top: 1px solid rgba(255, 255, 255, .4); display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px 20px; }
.icons li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; font-size: 14px; font-weight: 400; line-height: 1.45; }
.icons i { width: 46px; height: 46px; background: #fff; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
@media (max-width: 900px) { .icons { grid-template-columns: repeat(2, 1fr); } .icons li { flex-direction: row; text-align: left; } .icons i { flex: none; width: 38px; height: 38px; } }

/* ── interiors: the whole section changes scheme ─────────────── */
.int { padding: clamp(80px, 10vw, 140px) 0; background: var(--cream-2); transition: background-color 600ms ease, color 600ms ease; }
.int .h2, .int .kicker { transition: color 600ms ease; }
.int[data-scheme="dark"] { background: var(--aubergine); color: #f3e6d6; }
.int[data-scheme="dark"] .h2, .int[data-scheme="dark"] .kicker { color: #f3e6d6; }
.int__head { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.int__side p { opacity: .82; max-width: 52ch; }

.seg { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: rgba(99, 43, 82, .1); transition: background-color 600ms ease; }
.int[data-scheme="dark"] .seg { background: rgba(255, 255, 255, .1); }
.seg button { position: relative; z-index: 1; min-height: 44px; padding: 0 22px; border: 0; background: none; cursor: pointer; border-radius: 999px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; transition: color 300ms ease; -webkit-tap-highlight-color: transparent; }
.seg button[aria-checked="true"] { color: #fff; }
.int[data-scheme="dark"] .seg button[aria-checked="true"] { color: var(--aubergine); }
.seg button:focus-visible { outline: 2px solid var(--star); outline-offset: 2px; }
.seg__thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--plum); transition: transform 380ms var(--ease-drawer), background-color 600ms ease; }
.int[data-scheme="dark"] .seg__thumb { transform: translateX(100%); background: #f3e6d6; }

.rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 20px); }
.room { margin: 0; }
.room--big { grid-column: 1 / -1; }
.room .clip { position: relative; display: grid; }
.room img { grid-area: 1 / 1; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.room--big img { aspect-ratio: 21 / 9; }
.room img.d { opacity: 0; transition: opacity 600ms ease; }
.int[data-scheme="dark"] .room img.d { opacity: 1; }
.room figcaption { transition: color 600ms ease; }
.int[data-scheme="dark"] .room figcaption { color: rgba(243, 230, 214, .6); }
@media (max-width: 900px) { .int__head { grid-template-columns: 1fr; } .room--big img { aspect-ratio: 16 / 10; } }
@media (max-width: 560px) { .rooms { grid-template-columns: 1fr 1fr; } .room:last-child { grid-column: 1 / -1; } .room:last-child img { aspect-ratio: 16 / 8; } }

/* ── payment plan ───────────────────────────────────────────── */
.pay { padding: clamp(80px, 10vw, 140px) 0; }
.pay__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.pay__big { margin: 0 0 12px; font-size: clamp(88px, 13vw, 190px); line-height: .95; font-weight: 300; letter-spacing: -.04em; color: var(--plum); }
.pay__big span { color: var(--star); font-weight: 200; margin: 0 .04em; }
.pay__grid > div > p:last-child { color: var(--ink-2); max-width: 44ch; }
.plan__bar { display: flex; height: 14px; gap: 4px; margin-bottom: 18px; }
.plan__bar span { display: block; height: 100%; border-radius: 2px; transform-origin: left center; }
.plan__bar .p1 { flex: 5; background: var(--star); }
.plan__bar .p2 { flex: 50; background: var(--rose); }
.plan__bar .p3 { flex: 45; background: var(--plum); }
.js .plan .plan__bar span { transform: scaleX(0); transition: transform 1.1s var(--ease-io); }
.js .plan .plan__bar .p2 { transition-delay: .25s; }
.js .plan .plan__bar .p3 { transition-delay: .5s; }
.js .plan.is-in .plan__bar span { transform: none; }
@media (prefers-reduced-motion: reduce) { .js .plan .plan__bar span { transform: none; transition: none; } }
.plan__steps { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: 5fr 50fr 45fr; gap: 4px; }
.plan__steps li { min-width: 0; }
.plan__steps li:first-child { min-width: 92px; }
.plan__steps b { display: block; font-size: clamp(26px, 3vw, 40px); font-weight: 300; color: var(--plum); line-height: 1.1; }
.plan__steps span { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; }
.plan__steps li:nth-child(2) { padding-left: 52px; }
@media (max-width: 900px) { .pay__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .plan__steps { grid-template-columns: 1fr; gap: 14px; }
  .plan__steps li:nth-child(2) { padding-left: 0; }
  .plan__steps li { display: flex; align-items: baseline; gap: 14px; border-bottom: 1px solid var(--rule); padding-bottom: 10px; }
  .plan__steps b { min-width: 64px; }
}

/* ── developer ──────────────────────────────────────────────── */
.dev { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding: clamp(100px, 13vw, 180px) 0 clamp(80px, 10vw, 130px); background: #6b4a63; }
.dev__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.dev::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(40, 20, 52, 0) 20%, rgba(40, 20, 52, .55) 55%, rgba(40, 20, 52, .78) 100%); }
.dev__inner { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.dev__inner > * { max-width: 560px; }
.dev__mark { width: 64px; margin-bottom: 28px; }
.dev__inner > p { opacity: .92; }
.dev__stats { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.dev__stats li { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: baseline; text-align: left; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .35); font-size: 14px; line-height: 1.5; }
.dev__stats b { font-size: 30px; font-weight: 300; line-height: 1; }
@media (max-width: 760px) {
  .dev { padding-top: 46vw; }
  .dev__bg { height: 70vw; object-position: 25% 50%; }
  .dev::after { background: linear-gradient(180deg, rgba(40, 20, 52, 0) 0, rgba(40, 20, 52, 0) 30vw, #3a2140 70vw, #3a2140 100%); }
  .dev__inner { align-items: flex-start; text-align: left; }
}

/* ── register ───────────────────────────────────────────────── */
.reg { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding: clamp(90px, 11vw, 150px) 0; }
.reg__sky { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(48, 22, 58, .5) 0%, rgba(48, 22, 58, .22) 45%, rgba(48, 22, 58, 0) 70%), linear-gradient(180deg, rgba(21, 18, 39, .82) 0%, rgba(80, 67, 86, .4) 40%, rgba(201, 140, 146, .1) 70%, rgba(242, 196, 162, 0) 100%), url(/assets/img/sky-2000.webp) center / cover; }
.reg__grid { display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: clamp(36px, 6vw, 96px); align-items: center; }
.reg__copy > p { max-width: 48ch; opacity: .94; }
.gets { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.gets li { display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 400; }
.gets svg { width: 16px; height: 16px; flex: none; fill: #fff3e2; filter: drop-shadow(0 0 5px rgba(255, 190, 120, .95)); }
@media (max-width: 900px) { .reg__grid { grid-template-columns: 1fr; } }

.form { position: relative; padding: clamp(26px, 3.4vw, 44px); border-radius: 6px; background: rgba(245, 235, 217, .97); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(48, 4, 47, .55); transition: opacity 190ms ease, transform 190ms ease, filter 190ms ease; }
.form.is-leaving { opacity: 0; transform: scale(.98); filter: blur(2px); }
.form__head h3 { margin: 0 0 4px; font-size: 15px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--plum); line-height: 1.45; }
.form__head p { margin: 0 0 22px; font-size: 13px; color: var(--ink-2); }
.field { position: relative; margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; margin-bottom: 6px; padding: 0; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--violet); }
.opt { text-transform: none; letter-spacing: 0; font-weight: 300; color: var(--ink-3); margin-left: 4px; }
.field input, .field select {
  width: 100%; height: 50px; padding: 0 16px;
  border: 1px solid rgba(87, 57, 109, .3); border-radius: 4px; background: #fffaf2;
  font-size: 16px; font-weight: 400; color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease;
  -webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: rgba(48, 4, 47, .34); }
.field input:focus, .field select:focus { outline: 0; border-color: var(--plum); box-shadow: 0 0 0 3px rgba(99, 43, 82, .14); }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 1.5px solid var(--plum); border-bottom: 1.5px solid var(--plum); transform: rotate(45deg); pointer-events: none; }
.field select { padding-right: 44px; cursor: pointer; }
.field select:invalid { color: rgba(48, 4, 47, .45); }
.field.has-error input, .field.has-error select { border-color: #b3261e; }
.err { margin: 4px 0 0; min-height: 0; font-size: 12px; color: #b3261e; font-weight: 400; }
.err:empty { display: none; }
#unit-field.is-picked select { border-color: var(--star); box-shadow: 0 0 0 3px rgba(218, 131, 52, .25); transition: border-color 0ms, box-shadow 0ms; }
#unit-field select { transition: border-color 900ms ease, box-shadow 900ms ease; }

.pills { display: flex; gap: 10px; }
.pills label { margin: 0; flex: 1; cursor: pointer; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span { display: flex; align-items: center; justify-content: center; height: 44px; border: 1px solid rgba(87, 57, 109, .3); border-radius: 999px; font-size: 13px; font-weight: 400; letter-spacing: .06em; text-transform: none; color: var(--ink); background: #fffaf2; transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 160ms var(--ease-out); }
.pills label:active span { transform: scale(.97); }
.pills input:checked + span { background: var(--plum); border-color: var(--plum); color: #fff; }
.pills input:focus-visible + span { outline: 2px solid var(--star); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 20px; font-size: 13px; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--plum); }
.cnt-off .consent { display: none; }
.status { margin: 12px 0 0; font-size: 13px; text-align: center; }
.status:empty { display: none; }
.status.is-err { color: #b3261e; }

.sent { text-align: center; padding: 30px 6px 20px; outline: 0; animation: rise 600ms var(--ease-out) both; }
.sent__star { width: 40px; height: 40px; fill: var(--star); filter: drop-shadow(0 0 10px rgba(240, 160, 80, .8)); margin-bottom: 14px; animation: starIn .9s var(--ease-out) .1s both; }
.sent h3 { margin: 0 0 10px; font-size: 20px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--plum); }
.sent p { margin: 0; color: var(--ink-2); }

/* ── footer ─────────────────────────────────────────────────── */
.foot { background: var(--night); color: rgba(255, 255, 255, .78); padding: 56px 0 40px; }
.foot__grid { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 28px; background: linear-gradient(rgba(255, 255, 255, .14), rgba(255, 255, 255, .14)) center bottom / calc(100% - 2 * var(--pad)) 1px no-repeat; }
.foot__mark { width: 220px; color: #f3e6d6; }
.foot__aldar { width: 52px; color: #f3e6d6; }
.foot__fine { padding-top: 24px; font-size: 12px; line-height: 1.7; }
.foot__fine p { max-width: 110ch; }

/* ── sticky CTA (phones) ────────────────────────────────────── */
.fab {
  position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 40;
  display: none; align-items: center; justify-content: center; height: 54px; border-radius: 999px;
  background: var(--plum); color: #fff; text-decoration: none;
  font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  box-shadow: 0 16px 36px -10px rgba(48, 4, 47, .6);
  transform: translateY(140%); transition: transform 380ms var(--ease-drawer);
}
.fab.is-on { transform: none; }
.fab:active { transform: scale(.97); }
@media (max-width: 760px) { .fab { display: flex; } }
