/* Zone pitch demo: the page (builder B). Tokens, the fixed sky, the header, the phone's lift-panel menu and dock,
   the 3D sections (transparent over the maquette) and the editorial sections that follow (sand and navy). */

:root {
  --night: #071A20; --navy: #0E2C35; --dusk: #1A4552; --steel: #2E6372; --haze: #A3C1C8;
  --ember: #B8875F; --amber: #D2A275; --amber-hot: #F0D6B8;
  --sand: #F3EBE1; --stone: #E8DACB; --taupe: #7C5A42; --ink: #0B232A; --paper: #F5ECE2;

  --fs-display: clamp(72px, 12vw, 210px);
  --fs-h2: clamp(40px, 5.4vw, 88px);
  --fs-h2s: clamp(34px, 3.6vw, 52px);   /* h2 in a narrow column beside photographs: two lines, never a word per line */
  --fs-lead: clamp(20px, 1.55vw, 24px);
  --fs-body: 18px;
  --fs-small: 15px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --gut: clamp(24px, 5.6vw, 80px);
  --bar-h: 84px;
  --line: rgba(163, 193, 200, .16);
  --line-ink: rgba(11, 35, 42, .14);
  --pad: clamp(96px, 13vh, 150px);
  --glow: 0 0 12px rgba(210, 162, 117, .75), 0 0 2px rgba(240, 214, 184, .9);
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--night); color: var(--paper);
  font-family: 'Poppins', 'Readex Pro', 'Segoe UI', Tahoma, sans-serif; letter-spacing: normal;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scrollbar-gutter: stable; -webkit-tap-highlight-color: transparent;
  color-scheme: dark; scrollbar-color: var(--steel) var(--night);
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped, html.is-locked { overflow: hidden; }
body { margin: 0; font-size: var(--fs-body); line-height: 1.75; font-weight: 400; background: var(--night); overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
b, strong { font-weight: 700; }
bdi { unicode-bidi: isolate; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--amber); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--gut), 1280px); margin-inline: auto; }
/* 1.32: below that the dots, hamza and tanwin of a wrapped Arabic line touch the line under it */
h2 { font-size: var(--fs-h2); font-weight: 700; line-height: 1.32; text-wrap: balance; }
.lead { font-size: var(--fs-lead); line-height: 1.65; font-weight: 400; text-wrap: pretty; }
.small { font-size: var(--fs-small); }
[data-count] { font-variant-numeric: tabular-nums; }

.skip {
  position: fixed; z-index: 60; inset-inline-start: 16px; top: 12px; padding: 10px 18px; border-radius: 999px;
  background: var(--amber); color: var(--ink); font-weight: 500; transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip:focus { transform: none; }

/* a short warm light line: the facade's balcony lines, the page's signature */
.lightline {
  display: inline-block; flex: none; width: 34px; height: 2px; border-radius: 2px; vertical-align: middle;
  background: var(--amber-hot); box-shadow: var(--glow); margin-inline-end: 14px;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 30px; border-radius: 999px; white-space: nowrap;
  background: var(--amber); color: var(--ink); font-size: 17px; font-weight: 500; line-height: 1;
  box-shadow: 0 0 0 0 rgba(210, 162, 117, 0);
  transition: transform .15s var(--ease), background-color .15s, color .15s, box-shadow .2s var(--ease);
}
.btn--sm { height: 44px; padding: 0 22px; font-size: 15px; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--amber-hot); transform: translateY(-1px); box-shadow: 0 12px 34px -12px rgba(210, 162, 117, .75); }
}
.btn:active { transform: translateY(0) scale(.97); transition-duration: .09s; }

/* ---------------------------------------------------------------- fixed layers: the sky, the maquette, its still */
/* The sky is two layers. The night (below) is what is left once the sun is down, at the close: navy down to a horizon
   (--hz, just behind the plinth's back edge, so the model stands on the floor under it) and a darker floor below.
   The dusk (__glow, faded by page.js's --sun as the camera rides down) lies over it, above the horizon only: steel-blue
   rising to the horizon and the sunset's warm light low behind the building, on the key light's side (--sx). Warm stays
   thin and close to the horizon, so it never greys into a purple band over the blue. */
.backdrop {
  position: fixed; top: 0; bottom: 0; left: 0; width: 100vw; z-index: 0; pointer-events: none; overflow: hidden;
  --sun: 1; --veil: 0; --hz: 69%; --sx: 16%;
  background: linear-gradient(180deg, var(--night) 0%, var(--navy) calc(var(--hz) * .5), #1a3e48 calc(var(--hz) - 5%), #1e4550 calc(var(--hz) - 1%),
    #17333b calc(var(--hz) + 2.5%), #112a31 calc(var(--hz) + 12%), #0c2026 100%);
}
.backdrop > i { position: absolute; display: block; will-change: opacity; }
/* the dusk is brightest behind the model and fades before the words' column (a horizon line under the words read as a
   table edge); on the phone the model is centred and the same ellipse spans the width */
.backdrop__glow {
  inset: 0; opacity: var(--sun);
  background:
    radial-gradient(26% 10% at var(--sx) var(--hz), rgba(242, 222, 198, .7), rgba(240, 214, 184, .28) 36%, rgba(210, 162, 117, 0) 100%),
    radial-gradient(52% 5% at calc(var(--sx) + 6%) var(--hz), rgba(210, 162, 117, .36), rgba(210, 162, 117, 0) 100%),
    radial-gradient(55% 62% at calc(var(--sx) + 10%) var(--hz), rgba(46, 99, 114, .95), rgba(46, 99, 114, .5) 45%, rgba(46, 99, 114, 0) 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 calc(var(--hz) - .3%), transparent calc(var(--hz) + 1.3%));
  mask-image: linear-gradient(180deg, #000 calc(var(--hz) - .3%), transparent calc(var(--hz) + 1.3%));
}
/* the sky's detail (tools/backdrop.py): thin dusk clouds over the glow, and Dubai on the water at the horizon, its
   waterline on --hz (the image's lower 100/480 is the reflection). Clouds follow the glow's --sun; the city stays lit. */
.backdrop__clouds {
  --cw: 61vh; /* the cloud band's height: the tile is 6.4 of it wide, and the strip holds two tiles to drift through */
  left: 0; top: 0; height: var(--cw); width: calc(var(--cw) * 12.8); opacity: calc(.3 + var(--sun) * .55);
  background: url("../assets/img/clouds.webp") left top / auto 100% repeat-x;
  -webkit-mask-image: linear-gradient(180deg, transparent 6%, #000 28%); mask-image: linear-gradient(180deg, transparent 6%, #000 28%);
  animation: sky-drift 480s linear infinite;
}
.backdrop__city {
  --ch: 34vh; --off: 0px; left: 0; right: 0; height: var(--ch); bottom: calc(100% - var(--hz) - var(--ch) * .2083);
  background: url("../assets/img/city.webp") calc(50% + var(--off)) bottom / auto 100% repeat-x;
}
/* the water shimmers: two breakups of the reflections cross-fade */
.backdrop__city::before, .backdrop__city::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("../assets/img/water-a.webp") calc(50% + var(--off)) bottom / auto 100% repeat-x; animation: sky-shimmer 2.8s ease-in-out infinite alternate;
}
.backdrop__city::after { background-image: url("../assets/img/water-b.webp"); animation-delay: -2.8s; }

/* the sky's motion (js/sky.js places them): aviation lights on the towers and cranes, the Burj's white strobe, a few
   windows that switch on and off, and now and then a plane on its way down to DXB. Small, slow, never in the way. */
.sky-l {
  position: absolute; left: calc(50% + var(--off) + var(--x) * var(--ch)); top: calc(var(--y) * var(--ch));
  width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px; border-radius: 50%; opacity: 0;
}
.sky-l--red { background: #ff5442; box-shadow: 0 0 5px 2px rgba(255, 70, 50, .55); animation: sky-blink 2.4s infinite; }
.sky-l--strobe { background: #fff; box-shadow: 0 0 9px 3px rgba(255, 255, 255, .7); animation: sky-strobe 1.6s infinite; }
.sky-l--win {
  width: calc(var(--w) * var(--ch)); height: calc(var(--h) * var(--ch)); margin: 0; border-radius: 0;
  background: #f3d9b4; box-shadow: 0 0 3px rgba(243, 217, 180, .7); animation: sky-twinkle 14s steps(1) infinite;
}
.sky-plane { top: 11%; left: 0; width: 2px; height: 2px; border-radius: 50%; background: #ff5442; box-shadow: 9px 0 0 #52f08a; animation: sky-fly 70s linear infinite; animation-delay: -12s; }
.sky-plane b { position: absolute; left: 3px; top: -1px; width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px 2px rgba(255, 255, 255, .7); animation: sky-strobe 1.3s infinite; }
@keyframes sky-drift { to { transform: translateX(calc(var(--cw) * -6.4)); } }
@keyframes sky-shimmer { from { opacity: 1; } to { opacity: .15; } }
@keyframes sky-blink { 0%, 52%, 100% { opacity: 0; } 8%, 34% { opacity: 1; } }
@keyframes sky-strobe { 0%, 14%, 100% { opacity: 0; } 4% { opacity: 1; } }
@keyframes sky-twinkle { 0% { opacity: 0; } 58% { opacity: 1; } 92% { opacity: 0; } }
@keyframes sky-fly { 0% { transform: translate(104vw, 0); opacity: 1; } 58% { transform: translate(-4vw, 6vh); opacity: 1; } 58.1%, 100% { transform: translate(-4vw, 6vh); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .backdrop__clouds, .backdrop__city::before, .backdrop__city::after, .sky-l, .sky-plane, .sky-plane b { animation: none; }
  .backdrop__city::after, .sky-plane, .sky-l--win { display: none; }
  .sky-l--red { opacity: .8; }
}
@media (min-aspect-ratio: 801/1000) { /* quieter under the words' column, so their lines never sit on a busy street of lights */
  .backdrop__city {
    -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, .5) 6%, #000 50%); mask-image: linear-gradient(to left, rgba(0, 0, 0, .5) 6%, #000 50%);
  }
}
.backdrop__vig { inset: 0; background: radial-gradient(130% 100% at 40% 46%, rgba(6, 16, 19, 0) 52%, rgba(6, 16, 19, .55) 100%); }
.backdrop__stars {
  top: 0; left: 0; width: 1.6px; height: 1.6px; border-radius: 50%;
  opacity: calc(.3 + (1 - var(--sun)) * .7);
}
.backdrop__veil { inset: 0; background: var(--navy); opacity: var(--veil); }
.backdrop::after { /* grain against banding in the long dark gradient */
  content: ""; position: absolute; inset: 0; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* 100vw: html.is-locked keeps the scrollbar's gutter; 100lvh: a phone's toolbar never resizes the canvas */
#maq { position: fixed; top: 0; left: 0; width: 100vw; max-width: none; height: 100%; height: 100lvh; z-index: 1; display: block; touch-action: pan-y pinch-zoom; }
.maq-still {
  display: none; position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: 58% 50%; transform: scale(var(--still-s, 1)); transform-origin: 58% 60%;
}
.no-gl .maq-still { display: block; }
.no-gl #maq { display: none; }
/* the pointer reaches the canvas under the 3D sections (hero, ride, pick: pointer-events none, their text and controls
   auto); main itself must let it through too, and the opaque sections that follow take it back */
main { position: relative; z-index: 2; pointer-events: none; }
main > section:not([data-scene]) { pointer-events: auto; }
#explore { position: fixed; top: 0; bottom: 0; left: 0; width: 100vw; z-index: 42; }

/* ---------------------------------------------------------------- header */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 30; height: var(--bar-h);
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease), border-color .4s, -webkit-backdrop-filter .4s, backdrop-filter .4s;
}
/* opaque, no blur: a blur over sand turned slate, and over the live canvas it re-blurred every model frame */
.bar.is-solid { background: var(--night); border-bottom-color: rgba(163, 193, 200, .12); }
.bar__in { height: 100%; display: flex; align-items: center; gap: 32px; width: min(100% - 2 * var(--gut), 1280px); margin-inline: auto; }
.bar__logo { flex: none; display: block; border-radius: 6px; }
.bar__logo img { height: 40px; width: auto; filter: drop-shadow(0 1px 10px rgba(7, 26, 32, .55)); }
.bar__nav { display: flex; gap: 6px; margin-inline: auto; }
.bar__nav a {
  position: relative; padding: 10px 16px; font-size: 16px; font-weight: 500; color: rgba(245, 236, 226, .82);
  transition: color .15s;
}
.bar__nav a::after {
  content: ""; position: absolute; inset-inline: 16px; bottom: 4px; height: 1.5px; border-radius: 2px;
  background: var(--amber-hot); box-shadow: var(--glow); transform: scaleX(0); transform-origin: right;
  transition: transform .3s var(--ease);
}
.bar__nav a:hover, .bar__nav a[aria-current="true"] { color: var(--paper); }
.bar__nav a:hover::after, .bar__nav a[aria-current="true"]::after { transform: none; }
.bar__menu {
  display: none; flex: none; width: 48px; height: 48px; border-radius: 50%; margin-inline-start: auto;
  place-items: center; align-content: center; gap: 6px;
  background: rgba(245, 236, 226, .06); box-shadow: inset 0 0 0 1px rgba(245, 236, 226, .26);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color .2s, box-shadow .2s;
}
.bar__menu i { display: block; width: 18px; height: 1.5px; border-radius: 2px; background: var(--paper); transition: transform .45s var(--ease), background-color .2s; }
.bar__menu[aria-expanded="true"] { box-shadow: inset 0 0 0 1px var(--amber); }
.bar__menu[aria-expanded="true"] i { background: var(--amber-hot); }
.bar__menu[aria-expanded="true"] i:first-child { transform: translateY(3.75px) rotate(45deg); }
.bar__menu[aria-expanded="true"] i:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.menu-open .bar { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ---------------------------------------------------------------- the phone menu: a lift's call panel */
.menu {
  position: fixed; inset: 0; z-index: 29; display: none; overflow-y: auto; overscroll-behavior: contain;
  background:
    radial-gradient(120% 50% at 50% 108%, rgba(184, 135, 95, .16), rgba(184, 135, 95, 0) 60%),
    linear-gradient(180deg, var(--night), var(--navy));
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .5s var(--ease-io), visibility 0s .5s;
}
.menu.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .6s var(--ease); }
.menu__in {
  min-height: 100%; display: flex; flex-direction: column;
  padding: calc(84px + env(safe-area-inset-top)) var(--gut) calc(24px + env(safe-area-inset-bottom));
}
.menu__h { font-size: 13px; color: var(--haze); margin-bottom: 8px; }
.menu__lift { position: relative; }
.menu__lift::before { content: ""; position: absolute; inset-inline-start: 22px; top: 26px; bottom: 26px; width: 1px; background: rgba(163, 193, 200, .22); }
.menu__lift li + li { margin-top: 4px; }
.lift {
  position: relative; display: flex; align-items: center; gap: 16px; width: 100%; min-height: 48px; padding: 2px 0;
  text-align: start;
}
.lift__b {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); box-shadow: inset 0 0 0 1.5px rgba(245, 236, 226, .28);
  font-size: 15px; font-weight: 500; transition: box-shadow .2s, color .2s, background-color .2s;
}
.lift__n { font-size: 18px; font-weight: 500; line-height: 1.3; }
.lift__m { margin-inline-start: auto; font-size: 13px; color: var(--haze); }
.lift:is(:hover, .is-pressed) .lift__b, .lift:focus-visible .lift__b {
  color: var(--amber-hot); background: #1b3137;
  box-shadow: inset 0 0 0 1.5px var(--amber), 0 0 18px rgba(210, 162, 117, .5), inset 0 0 10px rgba(210, 162, 117, .25);
}
.lift:focus-visible { outline: none; }
.menu__links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--line); }
.menu__links a { display: flex; align-items: center; min-height: 46px; font-size: 18px; font-weight: 500; }
.menu__wa { width: 100%; margin-top: 18px; }
.menu__in > *, .menu__lift li { opacity: 0; transform: translateY(14px); transition: opacity .2s, transform .2s; }
.menu.is-open .menu__in > *, .menu.is-open .menu__lift li {
  opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .6s var(--ease);
  transition-delay: calc(var(--i, 0) * 35ms + 140ms);
}
.menu.is-open .menu__links { transition-delay: 460ms; }
.menu.is-open .menu__wa { transition-delay: 520ms; }

/* ---------------------------------------------------------------- the phone dock */
.dock {
  position: fixed; z-index: 30; inset-inline: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
  height: 64px; border-radius: 22px; display: none; grid-template-columns: repeat(4, 1fr);
  background: rgba(7, 26, 32, .8); box-shadow: inset 0 0 0 1px rgba(163, 193, 200, .14), 0 18px 40px -16px rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  transform: translateY(calc(100% + 30px)); transition: transform .45s var(--ease);
}
.dock.is-on { transform: none; }
.dock a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12px; color: var(--haze); transition: color .2s; }
.dock svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.dock a[aria-current="true"] { color: var(--paper); }
.dock a[aria-current="true"] svg { color: var(--amber-hot); filter: drop-shadow(0 0 6px rgba(210, 162, 117, .6)); }
.dock a:last-child { color: var(--amber); }
.dock a:active { transform: scale(.94); }
.is-exploring .dock, .menu-open .dock { transform: translateY(calc(100% + 30px)); }

/* ---------------------------------------------------------------- reveals (page.js adds .pg; nothing hides without it) */
/* Arabic marks (hamza above and below, shadda, dots) reach far outside the line box: the mask gets wide margins, and it
   opens as soon as the word starts to rise, so nothing is ever cut. */
.pg [data-words] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .5em .08em .45em; margin: -.5em -.08em -.45em; }
.pg [data-words].in .w { overflow: visible; }
.pg [data-words] .w > span { display: inline-block; transition: transform .7s var(--ease), opacity .6s var(--ease); transition-delay: calc(min(var(--i), 6) * 70ms); }
html.pg:not([data-motion="none"]) [data-words]:not(.in) .w > span { transform: translateY(.6em); opacity: 0; }
html.pg:not([data-motion="none"]) [data-rise] { transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
html.pg:not([data-motion="none"]) [data-rise]:not(.in) { opacity: 0; transform: translateY(24px); }
.pre .hero [data-enter] { opacity: 0; }

/* photographs zoom a little under a fine pointer (transform only) */
.ph { position: relative; overflow: hidden; display: block; background: #1c373e; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .ph:hover img, button:hover > .ph img { transform: scale(1.03); }
}

/* ---------------------------------------------------------------- 1. hero (transparent: the maquette stands in the sky) */
/* --hcol: the words keep to the right 43% of the screen (measured from the wrap's edge), so they never meet the building
   in the left half; the display sizes follow it, so a very wide screen cannot push the name into the model either */
.hero { --hcol: calc(43vw - max(var(--gut), (100vw - 1280px) / 2)); --fp: clamp(14px, 1.6vw, 24px); position: relative; height: 100svh; min-height: 600px; pointer-events: none; }
.hero__in { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(44px, 8vh, 84px); }
.hero__text { width: var(--hcol); pointer-events: auto; }
.hero__h { font-weight: 800; }
/* Arabic display type needs a line-height above 1: at .95 the hamza of a tall letter ran into the line above it. */
.hero__name { display: block; font-size: clamp(72px, min(11vw, 15vh, var(--hcol) / 3.3), 200px); font-weight: 800; line-height: 1.16; text-shadow: 0 2px 40px rgba(7, 26, 32, .35); }
.hero__name .hw { display: inline-block; overflow: hidden; vertical-align: top; padding: .55em .08em .45em; margin: -.55em -.08em -.45em; } /* word masks for the entrance, wide enough for the hamza */
.hero__name.is-in .hw { overflow: visible; }
.hero__name .hw > span { display: inline-block; }
/* one line under the name: about 9.6em wide, hence the --hcol / 10 cap */
.hero__line { display: block; margin-top: .3em; font-size: clamp(26px, min(3.3vw, 5.6vh, var(--hcol) / 10), 58px); text-wrap: balance; font-weight: 500; line-height: 1.3; color: var(--paper); }
.hero__acts { display: flex; align-items: center; gap: 26px; margin-top: clamp(22px, 3.6vh, 34px); }
/* the scroll cue stands beside the one action: a lift shaft, its light going down */
.hero__cue { display: inline-flex; align-items: center; gap: 14px; height: 56px; font-size: 15px; line-height: 1.4; color: var(--haze); transition: color .25s var(--ease); }
.hero__cue i { position: relative; flex: none; width: 1px; height: 40px; overflow: hidden; background: rgba(163, 193, 200, .24); transition: background-color .25s var(--ease); }
.hero__cue i::after {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 16px; background: linear-gradient(rgba(240, 214, 184, 0), var(--amber-hot));
  animation: cue 2.8s var(--ease-io) 1.8s infinite both;
}
@keyframes cue { 0% { transform: translateY(-16px); } 64%, 100% { transform: translateY(40px); } }
@media (hover: hover) and (pointer: fine) {
  .hero__cue:hover { color: var(--paper); }
  .hero__cue:hover i { background: rgba(210, 162, 117, .45); }
}
.hero__facts { position: relative; display: flex; margin-top: clamp(24px, 4vh, 36px); padding-top: 16px; border-top: 1px solid rgba(163, 193, 200, .2); }
.hero__facts::before { /* a light line runs along the facts as the hero arrives */
  content: ""; position: absolute; top: -1px; inset-inline: 0; height: 1.5px; border-radius: 2px; background: linear-gradient(270deg, var(--amber-hot), rgba(210, 162, 117, .5) 40%, rgba(210, 162, 117, 0));
  box-shadow: 0 0 10px rgba(210, 162, 117, .45); transform-origin: right; animation: drawline 1.6s var(--ease) 1.1s both;
}
@keyframes drawline { from { transform: scaleX(0); } }
/* each figure takes its own width (the range is the widest), with a short tick halfway between two figures instead of a
   full-height rule; align-items: page.js pins each counting figure to its own width, so it must not stretch */
.hero__facts li { position: relative; flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding-inline-end: var(--fp); }
.hero__facts li + li { padding-inline-start: var(--fp); }
.hero__facts li:last-child { padding-inline-end: 0; }
.hero__facts li + li::before { content: ""; position: absolute; inset-inline-start: 0; top: calc(50% - 13px); width: 1px; height: 26px; background: rgba(163, 193, 200, .16); }
.hero__facts b { font-size: clamp(22px, 2vw, 30px); font-weight: 800; line-height: 1.1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hero__facts b small { font-size: .46em; font-weight: 500; color: var(--haze); }
.hero__facts span { font-size: 14px; line-height: 1.4; color: var(--haze); white-space: nowrap; }

/* ---------------------------------------------------------------- 2. the ride (sticky text over the model riding down) */
.ride { position: relative; height: 400vh; pointer-events: none; }
.ride__stick { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.ride__still { display: none; }
.ride__in { position: relative; height: 100%; display: flex; }
.ride__col {
  position: relative; width: min(42%, 560px); height: 100%;
  display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto 1fr; column-gap: 32px;
  padding-top: calc(var(--bar-h) + 6vh); padding-bottom: 7vh;
}
.ride__h { grid-column: 2; font-size: 15px; font-weight: 500; line-height: 1.5; color: var(--haze); display: flex; align-items: center; }
.ride__intro {
  grid-column: 2; margin-top: 18px; max-width: 26em; font-size: var(--fs-lead); line-height: 1.6; color: rgba(245, 236, 226, .88);
  transition: opacity .6s var(--ease), transform .7s var(--ease);
}
.ride__intro.is-gone { opacity: 0; transform: translateY(-14px); }
.ride__now { grid-column: 2; grid-row: 3; align-self: center; position: relative; }
.ride__slot { --sp: 6px; position: relative; overflow: hidden; padding-block: var(--sp); margin-block: calc(-1 * var(--sp)); }
.ride__slot[data-k="name"] { --sp: clamp(30px, 3.4vw, 56px); } /* room for the hamza and the big words' tails; the meta line needs little */
.ride__layer { will-change: transform; }
.ride__layer.is-leaving { position: absolute; inset: var(--sp) 0 auto; }
.ride__name { display: flex; flex-direction: column; }
.ride__pre { font-size: clamp(22px, 2.1vw, 34px); font-weight: 500; line-height: 1.3; color: var(--haze); }
.ride__big { font-size: clamp(64px, 7.4vw, 136px); font-weight: 800; line-height: 1.12; }
.ride__meta { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: 18px; line-height: 1.5; }
.ride__meta b { font-size: clamp(26px, 2.3vw, 34px); font-weight: 800; color: var(--amber-hot); text-shadow: 0 0 18px rgba(210, 162, 117, .45); }
.ride__note { flex-basis: 100%; color: var(--haze); font-size: 16px; }
.ride__index { grid-column: 1; grid-row: 1 / -1; align-self: center; position: relative; display: grid; gap: 0; }
.ride__index::before { content: ""; position: absolute; inset-inline-start: 50%; top: 22px; bottom: 22px; width: 1px; background: rgba(163, 193, 200, .22); }
.ride__index li {
  position: relative; height: 44px; display: grid; place-items: center; font-size: 15px; font-weight: 500;
  color: rgba(163, 193, 200, .9); transition: color .3s;
}
.ride__index li span { position: relative; z-index: 1; min-width: 30px; text-align: center; background: transparent; }
.ride__index li.is-on { color: var(--amber-hot); text-shadow: 0 0 12px rgba(210, 162, 117, .8); }
.ride__car {
  position: absolute; inset-inline-start: calc(50% - 20px); top: 2px; width: 40px; height: 40px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--amber), 0 0 22px rgba(210, 162, 117, .4); background: rgba(7, 26, 32, .55);
  will-change: transform; pointer-events: none;
}
.ride__list { display: none; }
:is(.ride__h, .ride__intro, .ride__now, .ride__index, .ride__list) { pointer-events: auto; }
.ride__index button { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; }
@media (hover: hover) { .ride__index button:hover { color: var(--amber-hot); } }
/* a long header jump passes every floor: the floor display waits it out instead of flickering through them */
html.is-jumping .ride__now, html.is-jumping .ride__intro { opacity: 0; transition: opacity .2s; }

/* ---------------------------------------------------------------- 3. pick (the whole stack open; C fills #pickList) */
.pick { position: relative; min-height: 100svh; pointer-events: none; }
.pick__in { position: relative; min-height: 100svh; display: flex; align-items: center; padding-block: calc(var(--bar-h) + 24px) 40px; }
.pick__panel { width: min(40%, 520px); pointer-events: auto; }
.pick__lead { margin-top: 18px; color: rgba(245, 236, 226, .86); max-width: 28em; }
.picklist { margin: 26px 0 0; padding: 0; list-style: none; }
@media (min-width: 760px) and (min-aspect-ratio: 801/1000) {
  /* 40vh of open sky under the panel: the light section's fade (.light::before) rises through it, never over the resting pick */
  .pick { min-height: calc(100svh + 40vh); }
}
@media (max-height: 820px) and (min-width: 760px) { /* the whole floor list above the fold on short screens */
  .pick__in { padding-block: calc(var(--bar-h) + 6px) 12px; }
  .pick h2 { font-size: 52px; }
  .pick__lead { font-size: 17px; line-height: 1.45; margin-top: 6px; }
  .pick .picklist { margin-top: 12px; } /* .pick: explore.css's later .picklist { margin: 0 } beat the bare selector */
}

/* scrims: the words in the 3D sections stay readable whatever the model and its ground show behind them */
:is(.hero, .ride__stick, .pick)::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
.hero::before { background: radial-gradient(64% 82% at 100% 100%, rgba(7, 26, 32, .6), rgba(7, 26, 32, .28) 50%, rgba(7, 26, 32, 0) 78%); }
.ride__stick::before, .pick::before { background: linear-gradient(270deg, rgba(7, 26, 32, .66) 0%, rgba(7, 26, 32, .4) 30%, rgba(7, 26, 32, 0) 52%); }
:is(.hero, .ride, .pick) :is(h1, h2, p, li, .hero__cue) { text-shadow: 0 1px 24px rgba(7, 26, 32, .5); }

/* ---------------------------------------------------------------- 4. the light moment: dusk turns to night */
.light { position: relative; height: 200vh; background: var(--navy); }
@media (min-width: 760px) and (min-aspect-ratio: 801/1000) { /* the model sinks into navy instead of being cut by the section's edge (the phone's pick panel already ends on navy) */
  .light::before {
    content: ""; position: absolute; inset-inline: 0; bottom: 100%; height: 40vh; pointer-events: none;
    background: linear-gradient(to bottom, rgba(14, 44, 53, 0), rgba(14, 44, 53, .55) 55%, var(--navy));
  }
}
.light__stick { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.light__pic {
  position: absolute; top: var(--bar-h); bottom: 0; left: 0; width: min(74vw, 116vh); overflow: hidden; --w: 0; --push: 1;
  -webkit-mask-image: linear-gradient(to right, #000 76%, transparent 99%); mask-image: linear-gradient(to right, #000 76%, transparent 99%);
}
.light__pic img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 30%;
  transform: scale(var(--push)); transform-origin: 56% 46%; will-change: transform;
}
.light__night {
  -webkit-mask-image: linear-gradient(to top, #000 calc(var(--w) * 130% - 30%), transparent calc(var(--w) * 130%));
  mask-image: linear-gradient(to top, #000 calc(var(--w) * 130% - 30%), transparent calc(var(--w) * 130%));
}
.light__beam {
  position: absolute; left: 0; right: 0; top: 0; height: 22%; pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background: linear-gradient(180deg, rgba(240, 214, 184, 0), rgba(240, 214, 184, .2) 50%, rgba(240, 214, 184, 0));
  will-change: transform, opacity;
}
.light__in { position: relative; height: 100%; display: flex; align-items: center; }
.light__text { width: min(40%, 520px); padding-top: var(--bar-h); }
.light__text .lead { margin-top: 22px; color: rgba(245, 236, 226, .86); }
.arrival__text h2, .light__text h2, .loc__text h2 { font-size: var(--fs-h2s); }

/* ---------------------------------------------------------------- shared section grounds */
.sand { background: var(--sand); color: var(--ink); }
.sand ::selection { background: var(--ink); color: var(--sand); }
.sand .lead { color: #3a3430; }
.sand .lightline { background: var(--amber); box-shadow: 0 0 10px rgba(184, 135, 95, .55); }
.sand :focus-visible { outline-color: var(--taupe); }

/* ---------------------------------------------------------------- 5. arrival (sand: three photographs) */
.arrival { padding-block: var(--pad); }
.arrival__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto; gap: 24px; }
.arrival__text { grid-column: 1 / span 4; grid-row: 1 / span 2; display: flex; flex-direction: column; padding-top: 8px; }
.arrival__text .lead { margin-top: 24px; }
.arrival__a { grid-column: 5 / span 5; grid-row: 1 / span 2; border-radius: 22px; min-height: 560px; }
.arrival__b { grid-column: 10 / span 3; grid-row: 1; border-radius: 18px; aspect-ratio: 1; margin-top: 72px; }
.arrival__c { grid-column: 10 / span 3; grid-row: 2; border-radius: 18px; aspect-ratio: 1; }

/* ---------------------------------------------------------------- 6. inside (navy: four rooms as linked cards) */
.inside { background: var(--navy); padding-block: var(--pad); }
.inside__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end; margin-bottom: 48px; }
.inside__head h2 { grid-column: 1 / span 5; }
.inside__head .lead { grid-column: 7 / span 6; color: rgba(245, 236, 226, .82); }
.inside__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.room {
  position: relative; display: block; overflow: hidden; border-radius: 20px; isolation: isolate; text-align: start;
  height: clamp(320px, 34vw, 500px);
}
.room--living { grid-column: 1 / span 7; }
.room--salon { grid-column: 8 / span 5; }
.room--lounge { grid-column: 1 / span 5; height: clamp(300px, 29vw, 430px); }
.room--bedroom { grid-column: 6 / span 7; height: clamp(300px, 29vw, 430px); }
.room .ph { position: absolute; inset: 0; }
.room .ph img { transition-duration: .9s; }
.room__t {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 90px 28px 24px; font-size: clamp(21px, 1.9vw, 30px); font-weight: 700; line-height: 1.25; color: var(--paper);
  background: linear-gradient(180deg, rgba(7, 26, 32, 0), rgba(7, 26, 32, .78) 78%);
}
.room__t::after { /* the balcony line lights along the card's foot */
  content: ""; position: absolute; inset-inline: 28px; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--amber-hot); box-shadow: var(--glow); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.room__t i {
  flex: none; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(245, 236, 226, .45);
  background: rgba(7, 26, 32, .25) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 12H5m6-6-6 6 6 6' fill='none' stroke='%23F4EADB' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
  transition: background-color .2s, box-shadow .2s, transform .3s var(--ease);
}
.room:is(:hover, :focus-visible) .room__t::after { transform: none; }
.room:is(:hover, :focus-visible) .room__t i { background-color: var(--amber); box-shadow: none; transform: translateX(-3px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 12H5m6-6-6 6 6 6' fill='none' stroke='%23121A27' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.room:focus-visible { outline-offset: 4px; border-radius: 20px; }
.room:active { transform: scale(.985); transition: transform .09s; }
.inside__note { margin-top: 20px; color: var(--haze); }

/* ---------------------------------------------------------------- 7. facts (sand: six numbers that carry the heading) */
.facts { padding-block: var(--pad); }
.facts__nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 52px 24px; margin-top: 56px; }
.facts__nums li { position: relative; padding-top: 26px; border-top: 1px solid var(--line-ink); }
.facts__nums li::before {
  content: ""; position: absolute; top: -1px; inset-inline-start: 0; width: 56px; height: 2px; border-radius: 2px;
  background: var(--amber); box-shadow: 0 0 10px rgba(184, 135, 95, .6);
}
.facts__nums b { display: block; font-size: clamp(56px, 7vw, 120px); font-weight: 800; line-height: .95; color: var(--ink); white-space: nowrap; }
.facts__nums li > span { display: block; margin-top: 12px; font-size: 17px; line-height: 1.5; color: var(--taupe); }
.facts__nums small { font-size: .3em; font-weight: 500; color: var(--taupe); }

/* ---------------------------------------------------------------- 8. units (navy: the building drawn by its flats) */
.units { background: var(--navy); padding-block: var(--pad); }
.units__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px 40px; margin-bottom: 44px; }
.units__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  height: 44px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 500; color: rgba(245, 236, 226, .8);
  box-shadow: inset 0 0 0 1px rgba(163, 193, 200, .28); transition: background-color .15s, color .15s, box-shadow .15s, transform .15s var(--ease);
}
.filters button:hover { color: var(--paper); box-shadow: inset 0 0 0 1px rgba(210, 162, 117, .7); }
.filters button[aria-pressed="true"] { background: var(--amber); color: var(--ink); box-shadow: 0 8px 26px -12px rgba(210, 162, 117, .8); }
.filters button:active { transform: scale(.97); }
.units__count { font-size: 15px; color: var(--haze); white-space: nowrap; }
.units__count b { font-size: 28px; font-weight: 800; color: var(--paper); margin-inline-end: 4px; vertical-align: -2px; font-variant-numeric: tabular-nums; }

.ut { border-top: 1px solid var(--line); }
.ut__row { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; align-items: center; padding-block: 12px; border-bottom: 1px solid var(--line); transition: opacity .3s; }
.ut__floor { display: flex; align-items: center; gap: 14px; transition: opacity .3s; }
.ut__row.is-dim .ut__floor { opacity: .35; }
.ut__lift {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 500;
  box-shadow: inset 0 0 0 1.5px rgba(245, 236, 226, .25); transition: box-shadow .2s, color .2s;
}
.ut__row:hover .ut__lift { color: var(--amber-hot); box-shadow: inset 0 0 0 1.5px var(--amber), 0 0 16px rgba(210, 162, 117, .35); }
.ut__name { display: block; font-size: 17px; font-weight: 500; line-height: 1.35; }
.ut__meta { display: block; font-size: 13px; color: var(--haze); line-height: 1.4; }
.ut__units { display: flex; gap: 8px; width: 100%; }
.chip {
  position: relative; flex: var(--a, 150) 1 0; min-width: 0; min-height: 100px; padding: 12px 14px 14px; border-radius: 14px;
  display: flex; flex-direction: column; align-items: flex-start; text-align: start;
  background: rgba(163, 193, 200, .06); box-shadow: inset 0 0 0 1px rgba(163, 193, 200, .14);
  transition: opacity .3s var(--ease), background-color .2s, box-shadow .2s, transform .15s var(--ease);
}
.chip__u { font-size: 30px; font-weight: 800; line-height: 1.05; transition: color .2s, text-shadow .2s; }
.chip__a { margin-top: auto; font-size: 17px; font-weight: 500; line-height: 1.4; white-space: nowrap; }
.chip__r { font-size: 13px; line-height: 1.4; color: var(--haze); max-width: 100%; } /* wraps: an ellipsis cut Arabic words */
.chip__tag {
  position: absolute; top: 12px; inset-inline-end: 12px; padding: 3px 9px; border-radius: 999px;
  font-size: 11px; line-height: 1.4; color: var(--ink); background: var(--amber);
}
.chip--up { flex: 100 1 0; background: transparent; box-shadow: none; outline: 1px dashed rgba(163, 193, 200, .38); outline-offset: -1px; }
.chip--up .chip__u { color: var(--haze); }
.chip--up .chip__r { white-space: normal; margin-top: auto; color: rgba(245, 236, 226, .7); }
.chip::after {
  content: ""; position: absolute; inset-inline: 14px; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--amber-hot); box-shadow: var(--glow); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.chip:is(:hover, :focus-visible) { background: rgba(210, 162, 117, .09); box-shadow: inset 0 0 0 1px rgba(210, 162, 117, .55); }
.chip:is(:hover, :focus-visible) .chip__u { color: var(--amber-hot); text-shadow: 0 0 18px rgba(210, 162, 117, .55); }
.chip:is(:hover, :focus-visible)::after { transform: none; }
.chip:active { transform: scale(.97); }
.chip.is-dim { opacity: .25; }

/* ---------------------------------------------------------------- 9. location (sand: the map) */
.loc { padding-block: var(--pad); }
.loc__in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
.loc__text { grid-column: 1 / span 5; }
.loc__text .lead { margin-top: 24px; }
.loc__map { grid-column: 6 / span 7; aspect-ratio: 1; max-height: min(80vh, 760px); border-radius: 24px; }
.loc__map img { transition: transform 2.6s var(--ease); }
@media (hover: hover) and (pointer: fine) { .loc__map:hover img { transform: scale(1.07); } }

/* ---------------------------------------------------------------- 10. the close: the lit model comes back at night for the last word
   (data-scene="close": maquette.js stands the model in the left half, lit; page.js clears the sky to night). The top 30vh is
   the hand-off: the sand above meets navy, and the night opens out of it. The footer under it stays opaque. */
.close {
  position: relative; min-height: calc(100svh + 30vh); display: flex; flex-direction: column; justify-content: center;
  padding-block: calc(30vh + var(--bar-h)) clamp(72px, 14vh, 140px); overflow: hidden; pointer-events: none;
}
.close::before, .close::after { content: ""; position: absolute; pointer-events: none; }
.close::before { inset: 0 0 auto; height: 30vh; background: linear-gradient(to bottom, var(--navy), rgba(14, 44, 53, .6) 45%, rgba(14, 44, 53, 0)); }
.close::after { inset: 0; background: linear-gradient(270deg, rgba(7, 26, 32, .62) 0%, rgba(7, 26, 32, .32) 34%, rgba(7, 26, 32, 0) 56%); }
.close__in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); pointer-events: auto; }
.close__in > * { grid-column: 1; }
.close__h { font-size: inherit; line-height: 1; }
.close__go {
  position: relative; display: inline-flex; align-items: center; gap: .22em; padding-bottom: .12em;
  font-size: clamp(56px, 6.4vw, 116px); font-weight: 800; line-height: 1.25; color: var(--paper); transition: color .25s;
  text-shadow: 0 2px 40px rgba(7, 26, 32, .45);
}
.close__go::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3px; border-radius: 3px;
  background: var(--amber-hot); box-shadow: var(--glow); opacity: .35; transition: opacity .4s var(--ease);
}
.close__arrow { flex: none; display: grid; place-items: center; width: .62em; height: .62em; border-radius: 50%; box-shadow: inset 0 0 0 2px currentColor; transition: background-color .25s, color .25s, transform .4s var(--ease); }
.close__arrow svg { width: 50%; height: 50%; }
@media (hover: hover) and (pointer: fine) {
  .close__go:hover { color: var(--amber-hot); }
  .close__go:hover::after { opacity: 1; }
  .close__go:hover .close__arrow { background: var(--amber); color: var(--ink); box-shadow: none; transform: translateX(-.08em); }
}
.close__go:focus-visible::after { opacity: 1; }
.close__via { margin-top: 14px; color: var(--haze); }
.close__via bdi { color: var(--paper); font-weight: 500; }
.close__rows { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 24px 56px; margin-top: 44px; }
.close__rows li { display: flex; flex-direction: column; font-size: 19px; font-weight: 500; line-height: 1.5; }
.close__rows .small { font-weight: 400; color: var(--haze); }
.close__rows bdi { white-space: nowrap; } /* the e-mail broke at its hyphen */.close__rows a { display: inline-flex; align-items: center; min-height: 44px; width: fit-content; transition: color .15s; }
.close__rows li > span:last-child:not(.small) { padding-block: 9px; }
.close__rows a:hover { color: var(--amber-hot); }
@media (min-width: 1200px) { .close__rows { grid-template-columns: repeat(3, auto); column-gap: 40px; } }
.no-gl .close { min-height: 0; padding-block: clamp(120px, 20vh, 220px) clamp(80px, 12vh, 140px); background: var(--navy); }
.no-gl .close::before, .no-gl .close::after { display: none; }

.foot { position: relative; z-index: 2; background: var(--night); overflow-x: clip; padding-top: 40px; color: var(--haze); }
@media (min-width: 760px) and (min-aspect-ratio: 801/1000) { /* the model's foot sinks into the night as the footer rises, instead of being cut by its edge */
  .foot::before {
    content: ""; position: absolute; inset-inline: 0; bottom: 100%; height: 22vh; pointer-events: none;
    background: linear-gradient(to bottom, rgba(7, 26, 32, 0), rgba(7, 26, 32, .6) 60%, var(--night));
  }
}
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; font-size: 15px; line-height: 1.5; padding-bottom: 8px; border-bottom: 1px solid var(--line); padding-block-end: 32px; }
.foot__logo { height: 104px; width: auto; }
.foot__demo { margin-inline-start: auto; }
.foot__name {
  margin: .36em 0 0; text-align: center; white-space: nowrap; /* room for the hamza, which rises above a .82 line */ user-select: none; pointer-events: none;
  font-size: 27vw; font-weight: 800; line-height: .82; padding-bottom: .24em; /* and for the dots under the ya at the page's end */
  /* outlined: a 3px stroke painted under a fill of the ground, so only the outer 1.5px shows and the joins inside stay clean */
  color: var(--night); -webkit-text-stroke: 3px rgba(210, 162, 117, .42); paint-order: stroke fill;
}

/* ---------------------------------------------------------------- without WebGL, and without motion */
.no-gl .hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(270deg, rgba(7, 26, 32, .9) 0%, rgba(7, 26, 32, .6) 38%, rgba(7, 26, 32, 0) 62%), linear-gradient(0deg, rgba(7, 26, 32, .7), rgba(7, 26, 32, 0) 45%);
}
.no-gl .ride, [data-motion="none"] .ride { height: auto; }
.no-gl .ride__stick, [data-motion="none"] .ride__stick { position: relative; height: auto; min-height: 100svh; overflow: visible; }
.no-gl .ride__stick { background: var(--navy); }
.no-gl .ride__still { display: block; position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 30% 50%; }
.no-gl .ride__stick::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(270deg, rgba(7, 26, 32, .94) 0%, rgba(7, 26, 32, .8) 36%, rgba(7, 26, 32, 0) 62%);
}
.no-gl .ride__in, [data-motion="none"] .ride__in { position: relative; z-index: 2; height: auto; min-height: 100svh; }
.no-gl .ride__col, [data-motion="none"] .ride__col { height: auto; grid-template-rows: auto auto auto; padding-bottom: 10vh; }
.no-gl :is(.ride__now, .ride__index), [data-motion="none"] :is(.ride__now, .ride__index) { display: none; }
.no-gl .ride__intro.is-gone, [data-motion="none"] .ride__intro.is-gone { opacity: 1; transform: none; }
.no-gl .ride__list, [data-motion="none"] .ride__list { display: block; grid-column: 2; margin-top: 34px; border-top: 1px solid var(--line); }
.ride__list li { display: flex; align-items: center; gap: 16px; padding-block: 11px; border-bottom: 1px solid var(--line); }
.ride__list .ut__lift { width: 36px; height: 36px; font-size: 13px; }
.ride__list .rl__n { font-size: 17px; font-weight: 500; line-height: 1.35; }
.ride__list .rl__m { font-size: 13px; color: var(--haze); line-height: 1.4; display: block; }
.no-gl .pick::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(270deg, rgba(7, 26, 32, .9) 0%, rgba(7, 26, 32, .66) 36%, rgba(7, 26, 32, 0) 62%);
}
[data-motion="none"] .light { height: auto; }
[data-motion="none"] .light__stick { position: relative; }
[data-motion="none"] .light__pic { --w: 1.2; }
[data-motion="none"] .hero__cue i::after { animation: none; transform: translateY(12px); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .menu, .menu__in > *, .menu__lift li { transition: opacity .2s !important; transform: none !important; clip-path: none !important; }
}

/* ---------------------------------------------------------------- tablet */
@media (max-width: 1023px) and (min-width: 760px) {
  .hero { --hcol: calc(46vw - var(--gut)); --fp: 10px; }
  .hero__facts span { font-size: 12.5px; }
  .ride__col, .pick__panel { width: min(48%, 520px); }
  .light__text { width: 40%; }
  .arrival__text { grid-column: 1 / span 5; }
  .arrival__a { grid-column: 6 / span 7; }
  .arrival__b { grid-column: 6 / span 3; grid-row: 3; margin-top: 0; }
  .arrival__c { grid-column: 9 / span 4; grid-row: 3; aspect-ratio: auto; }
  .ut__row { grid-template-columns: 190px minmax(0, 1fr); }
}

/* ---------------------------------------------------------------- phone */
@media (max-width: 859px) {
  :root { --bar-h: 72px; }
  .bar__nav, .bar__cta { display: none; }
  .bar__menu { display: grid; }
  .bar__logo img { height: 32px; }
  .menu, .dock { display: block; }
  .dock { display: grid; }
}
@media (max-width: 759px) {
  :root { --pad: 88px; --fs-lead: 18px; --fs-h2: 36px; --fs-h2s: 36px; }
  body { font-size: 17px; }

  .arrival__in { grid-template-columns: 1fr 1fr; gap: 12px; }
  .arrival__text { grid-column: 1 / -1; grid-row: auto; padding-top: 0; }
  .arrival__a { grid-column: 1 / -1; grid-row: auto; min-height: 0; aspect-ratio: 4 / 5; margin-top: 28px; border-radius: 18px; }
  .arrival__b { grid-column: 1; grid-row: auto; margin-top: 0; border-radius: 14px; }
  .arrival__c { grid-column: 2; grid-row: auto; border-radius: 14px; }

  .inside__head { grid-template-columns: 1fr; margin-bottom: 28px; }
  .inside__head h2, .inside__head .lead { grid-column: 1; }
  .inside__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .room { height: auto; aspect-ratio: 4 / 5; border-radius: 16px; }
  .room--living { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .room--salon, .room--lounge { grid-column: auto; height: auto; }
  .room--bedroom { grid-column: 1 / -1; height: auto; aspect-ratio: 16 / 10; }
  .room__t { padding: 56px 16px 14px; font-size: 18px; }
  .room__t i { width: 36px; height: 36px; background-size: 16px; }
  .room--salon .room__t i, .room--lounge .room__t i { display: none; }

  .facts__nums { grid-template-columns: 1fr 1fr; gap: 32px 16px; margin-top: 36px; }
  .facts__nums b { font-size: clamp(48px, 15vw, 64px); }
  .facts__nums li > span { font-size: 15px; margin-top: 8px; }

  .units__head { margin-bottom: 28px; }
  .units__bar { gap: 14px; }
  .filters { gap: 6px; }
  .filters button { height: 44px; padding: 0 14px; font-size: 14px; }
  .ut__row { grid-template-columns: 1fr; gap: 10px; padding-block: 16px; }
  .ut__units { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; width: 100%; }
  .chip { min-height: 92px; padding: 10px 10px 11px; border-radius: 12px; }
  .chip__u { font-size: 24px; }
  .chip__a { font-size: 15px; }
  .chip__r { font-size: 12.5px; }
  .chip__tag { top: 9px; inset-inline-end: 8px; font-size: 11px; padding: 2px 7px; }

  .loc__in { grid-template-columns: 1fr; gap: 36px; }
  .loc__text, .loc__map { grid-column: 1; }
  .loc__map { border-radius: 18px; }

  .foot__in { flex-direction: column; align-items: flex-start; gap: 10px; }
  .foot__demo { margin-inline-start: 0; }
  .foot__name { font-size: 25vw; padding-bottom: calc(80px + env(safe-area-inset-bottom)); margin-bottom: 0; }
}

/* maquette.js poses the model for the phone whenever W/H < 0.8: in the upper half, the plinth at about 35% down */
@media (max-aspect-ratio: 4/5) { .backdrop { --hz: 37%; --sx: 40%; } .backdrop__city { --ch: 21vh; --off: 36vw; } /* the Burj beside the building, not behind it */ .backdrop__clouds { --cw: 29vh; } }

/* the phone layout also on portrait tablets */
@media (max-width: 759px), (max-aspect-ratio: 4/5) {
  /* a poster: the model stands in the upper half (maquette.js frames it there), the words hold the lower half; sizes
     follow the screen's height so the block never climbs into the building */
  .hero { height: 100svh; min-height: 640px; }
  .hero__in { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .hero__text { width: 100%; max-width: 600px; }
  .hero__name { font-size: min(17vw, 7.6svh); }
  .hero__line { font-size: clamp(22px, min(7.2vw, 3.4svh), 32px); margin-top: .22em; }
  .hero__acts { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .hero__acts .btn { height: 50px; padding: 0 12px; font-size: 16px; }
  .hero__cue { height: 50px; gap: 12px; font-size: 14px; }
  .hero__cue i { height: 32px; }
  .hero__facts { --fp: clamp(6px, 2.4vw, 12px); margin-top: 18px; padding-top: 12px; }
  .hero__facts b { font-size: 20px; }
  .hero__facts span { font-size: 12px; }
  .hero::before { background: linear-gradient(0deg, rgba(7, 26, 32, .88) 0%, rgba(7, 26, 32, .72) 34%, rgba(7, 26, 32, .3) 47%, rgba(7, 26, 32, 0) 56%); }
  .ride__stick::before { background: linear-gradient(0deg, rgba(7, 26, 32, .82) 0%, rgba(7, 26, 32, .52) 32%, rgba(7, 26, 32, 0) 52%); }
  .pick::before { background: linear-gradient(180deg, rgba(7, 26, 32, .82), rgba(7, 26, 32, 0) 110px); }
  .no-gl .pick::before { display: none; }

  .ride__col {
    width: 100%; grid-template-columns: 1fr; grid-template-rows: 1fr auto auto auto; column-gap: 0;
    padding-top: var(--bar-h); padding-bottom: calc(22px + env(safe-area-inset-bottom));
  }
  .ride__h { grid-column: 1; grid-row: 2; font-size: 14px; }
  /* the phone shows the opening line first, then the floor display in the same place */
  .ride__intro { grid-column: 1; grid-row: 3; align-self: end; font-size: 16px; margin-top: 10px; }
  .ride__now { grid-column: 1; grid-row: 3; align-self: end; margin-top: 10px; transition: opacity .5s var(--ease), transform .6s var(--ease); }
  .ride__col.is-intro .ride__now { opacity: 0; transform: translateY(18px); }
  .ride__pre { font-size: 20px; }
  .ride__big { font-size: clamp(52px, 15vw, 64px); }
  .ride__meta { margin-top: 6px; font-size: 16px; }
  .ride__meta b { font-size: 24px; }
  .ride__note { font-size: 14px; }
  .ride__index { grid-column: 1; grid-row: 4; align-self: auto; display: flex; justify-content: space-between; margin-top: 18px; }
  .ride__index::before { inset-inline: 18px; top: 50%; bottom: auto; width: auto; height: 1px; }
  .ride__index li { height: 36px; width: 36px; font-size: 12.5px; }
  .ride__car { width: 36px; height: 36px; top: 0; inset-inline-start: 0; }
  .no-gl .ride__list, [data-motion="none"] .ride__list { grid-column: 1; }
  .no-gl .ride__col, [data-motion="none"] .ride__col { padding-top: calc(var(--bar-h) + 32px); grid-template-rows: auto; }
  .no-gl :is(.ride__h, .ride__intro), [data-motion="none"] :is(.ride__h, .ride__intro) { grid-row: auto; }
  .no-gl .ride__intro, [data-motion="none"] .ride__intro { min-height: 0; }
  /* reduced motion with the model: it keeps the upper half (its ride pose), the static list starts under it on navy */
  html[data-motion="none"]:not(.no-gl) .ride__col { padding-top: 54svh; }
  html[data-motion="none"]:not(.no-gl) .ride__stick::before { background: linear-gradient(180deg, rgba(14, 44, 53, 0) 44svh, rgba(14, 44, 53, .86) calc(44svh + 90px), var(--navy) calc(44svh + 220px)); }
  .no-gl .ride__still { object-position: 22% 50%; opacity: .4; }
  .no-gl .hero::before { background: linear-gradient(0deg, rgba(7, 26, 32, .94) 0%, rgba(7, 26, 32, .8) 42%, rgba(7, 26, 32, 0) 68%); }

  .pick { height: auto; min-height: 100svh; }
  .pick__in { height: auto; min-height: 0; display: block; padding-block: 50svh 0; } /* the panel ends on navy and meets the light section: no strip of model between */
  .pick__panel {
    width: auto; margin-inline: calc(-1 * var(--gut)); padding: 36px var(--gut) 40px;
    background: linear-gradient(180deg, rgba(14, 44, 53, 0), rgba(14, 44, 53, .82) 90px, var(--navy) 220px);
  }
  .no-gl .pick__in { padding-top: 40svh; }

  .light { height: 200svh; }
  .light__pic { width: 100%; height: 60svh; bottom: auto; -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 99%); mask-image: linear-gradient(to bottom, #000 78%, transparent 99%); }
  .light__pic img { object-position: 57% 40%; }
  .light__in { align-items: flex-end; padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
  .light__text { width: 100%; padding-top: 0; }
  .light__text .lead { margin-top: 12px; }

  /* the close on the phone: the model in the upper half (maquette.js), the words under it on a dark foot */
  .close { justify-content: flex-end; padding-block: calc(30vh + 44svh) calc(96px + env(safe-area-inset-bottom)); }
  .close::after { background: linear-gradient(0deg, rgba(7, 26, 32, .9) 0%, rgba(7, 26, 32, .7) 34%, rgba(7, 26, 32, 0) 54%); }
  .close__in { grid-template-columns: minmax(0, 1fr); }
  .close__go { font-size: clamp(44px, 12.5vw, 60px); }
  .close__via { margin-top: 6px; }
  .close__rows { grid-template-columns: 1fr; gap: 14px 28px; margin-top: 22px; } /* one column: the unbroken e-mail pushed Instagram off the phone */
  .close__rows li { font-size: 17px; }
  .close__rows li:last-child { grid-column: 1 / -1; }
  .no-gl .close { padding-block: 120px 72px; }
}
