/* Alanya 3 demo, v3: 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: #0A1322; --navy: #0F1C33; --dusk: #1D3358; --steel: #3C567A; --haze: #9DB0C9;
  --ember: #E8946A; --amber: #F2B56B; --amber-hot: #FFD49A;
  --sand: #F2ECE3; --stone: #E6DCCB; --taupe: #6C574A; --ink: #121A27; --paper: #F4EADB;

  --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(157, 176, 201, .16);
  --line-ink: rgba(18, 26, 39, .14);
  --pad: clamp(96px, 13vh, 150px);
  --glow: 0 0 12px rgba(242, 181, 107, .75), 0 0 2px rgba(255, 212, 154, .9);
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--night); color: var(--paper);
  font-family: 'Alexandria', '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); }

.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(242, 181, 107, 0);
  transition: transform .15s var(--ease), background-color .15s, color .15s, box-shadow .2s var(--ease);
}
.btn--quiet {
  background: rgba(10, 19, 34, .32); color: var(--paper);
  box-shadow: inset 0 0 0 1px rgba(244, 234, 219, .34);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.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(242, 181, 107, .75); }
  .btn--quiet:hover { background: rgba(242, 181, 107, .1); color: var(--amber-hot); box-shadow: inset 0 0 0 1px var(--amber); }
}
.btn:active { transform: translateY(0) scale(.97); transition-duration: .09s; }

/* ---------------------------------------------------------------- fixed layers: the sky, the maquette, its still */
.backdrop {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  --sun: 1; --veil: 0;
  background: linear-gradient(180deg, var(--night) 0%, #10203b 24%, #172b4c 42%, var(--dusk) 55%, #2a3f63 66%, #3d4865 73%, #2c3554 80%, #172540 90%, var(--navy) 100%);
}
.backdrop > i { position: absolute; display: block; will-change: opacity; }
.backdrop__glow {
  inset: 0; opacity: var(--sun);
  background:
    radial-gradient(34% 26% at 34% 80%, rgba(255, 212, 154, .22), rgba(232, 148, 106, .1) 45%, rgba(232, 148, 106, 0) 75%),
    radial-gradient(90% 34% at 40% 82%, rgba(232, 148, 106, .2), rgba(232, 148, 106, .07) 50%, rgba(232, 148, 106, 0) 80%);
}
.backdrop__stars {
  top: 0; left: 0; width: 1.6px; height: 1.6px; border-radius: 50%;
  opacity: calc(.35 + (1 - var(--sun)) * .65);
}
.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");
}
#maq { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; display: block; touch-action: pan-y; }
.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; inset: 0; 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;
}
/* near-opaque, no blur: a blur over sand turned slate, and over the live canvas it re-blurred every model frame */
.bar.is-solid { background: rgba(10, 19, 34, .96); border-bottom-color: rgba(157, 176, 201, .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: 56px; width: auto; filter: drop-shadow(0 1px 10px rgba(10, 19, 34, .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(244, 234, 219, .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(244, 234, 219, .06); box-shadow: inset 0 0 0 1px rgba(244, 234, 219, .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(232, 148, 106, .16), rgba(232, 148, 106, 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(157, 176, 201, .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(244, 234, 219, .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: #1a2438;
  box-shadow: inset 0 0 0 1.5px var(--amber), 0 0 18px rgba(242, 181, 107, .5), inset 0 0 10px rgba(242, 181, 107, .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(10, 19, 34, .8); box-shadow: inset 0 0 0 1px rgba(157, 176, 201, .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(242, 181, 107, .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: #1a2740; }
.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) */
.hero { 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: min(50%, 700px); pointer-events: auto; }
.hero__h { font-weight: 800; }
/* Arabic display type needs a line-height above 1: at .95 the hamza of «ألانيا» ran into «عمارة» above it. */
.hero__name { display: block; font-size: clamp(72px, min(11vw, 15vh), 200px); font-weight: 800; line-height: 1.16; text-shadow: 0 2px 40px rgba(10, 19, 34, .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; }
.hero__line { display: block; margin-top: .3em; font-size: clamp(30px, min(4.4vw, 7vh), 76px); text-wrap: balance; font-weight: 500; line-height: 1.3; color: var(--paper); }
.hero__lead { margin-top: 22px; max-width: 30em; text-wrap: balance; font-size: var(--fs-lead); line-height: 1.6; color: rgba(244, 234, 219, .86); }
.hero__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__facts { position: relative; display: flex; margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(157, 176, 201, .2); max-width: 600px; }
.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(242, 181, 107, .5) 40%, rgba(242, 181, 107, 0));
  box-shadow: 0 0 10px rgba(242, 181, 107, .45); transform-origin: right; animation: drawline 1.6s var(--ease) 1.1s both;
}
@keyframes drawline { from { transform: scaleX(0); } }
.hero__facts li { flex: 1 1 0; display: flex; flex-direction: column; gap: 2px; padding-inline-end: 16px; }
.hero__facts li + li { padding-inline-start: 18px; border-inline-start: 1px solid rgba(157, 176, 201, .16); }
.hero__facts b { font-size: clamp(24px, 2.3vw, 34px); font-weight: 800; line-height: 1.15; white-space: nowrap; }
.hero__facts span { font-size: 14px; line-height: 1.4; color: var(--haze); }
.cue {
  position: absolute; bottom: clamp(28px, 5vh, 48px); inset-inline-end: var(--gut); pointer-events: auto;
  display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--haze); transition: color .2s;
}
.cue:hover { color: var(--paper); }
.cue i { position: relative; width: 1px; height: 54px; overflow: hidden; background: rgba(157, 176, 201, .25); }
.cue i::after {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 18px; background: var(--amber-hot); box-shadow: var(--glow);
  animation: cue 2.4s var(--ease-io) infinite;
}
@keyframes cue { 0% { transform: translateY(-20px); } 70%, 100% { transform: translateY(58px); } }

/* ---------------------------------------------------------------- 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(244, 234, 219, .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(242, 181, 107, .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(157, 176, 201, .22); }
.ride__index li {
  position: relative; height: 44px; display: grid; place-items: center; font-size: 15px; font-weight: 500;
  color: rgba(157, 176, 201, .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(242, 181, 107, .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(242, 181, 107, .4); background: rgba(10, 19, 34, .55);
  will-change: transform;
}
.ride__list { display: none; }
:is(.ride__h, .ride__intro, .ride__now, .ride__list) { pointer-events: auto; }

/* ---------------------------------------------------------------- 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(244, 234, 219, .86); max-width: 28em; }
.picklist { margin: 26px 0 0; padding: 0; list-style: none; }
@media (min-width: 760px) {
  /* 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; }
  .picklist { margin-top: 10px; }
}

/* 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(10, 19, 34, .6), rgba(10, 19, 34, .28) 50%, rgba(10, 19, 34, 0) 78%); }
.ride__stick::before, .pick::before { background: linear-gradient(270deg, rgba(10, 19, 34, .66) 0%, rgba(10, 19, 34, .4) 30%, rgba(10, 19, 34, 0) 52%); }
:is(.hero, .ride, .pick) :is(h1, h2, p, li, .cue) { text-shadow: 0 1px 24px rgba(10, 19, 34, .5); }

/* ---------------------------------------------------------------- 4. the light moment: dusk turns to night */
.light { position: relative; height: 200vh; background: var(--navy); }
@media (min-width: 760px) { /* 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(15, 28, 51, 0), rgba(15, 28, 51, .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(255, 212, 154, 0), rgba(255, 212, 154, .2) 50%, rgba(255, 212, 154, 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(244, 234, 219, .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(232, 148, 106, .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(244, 234, 219, .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(10, 19, 34, 0), rgba(10, 19, 34, .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(244, 234, 219, .45);
  background: rgba(10, 19, 34, .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(232, 148, 106, .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(244, 234, 219, .8);
  box-shadow: inset 0 0 0 1px rgba(157, 176, 201, .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(242, 181, 107, .7); }
.filters button[aria-pressed="true"] { background: var(--amber); color: var(--ink); box-shadow: 0 8px 26px -12px rgba(242, 181, 107, .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(244, 234, 219, .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(242, 181, 107, .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(157, 176, 201, .06); box-shadow: inset 0 0 0 1px rgba(157, 176, 201, .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(157, 176, 201, .38); outline-offset: -1px; }
.chip--up .chip__u { color: var(--haze); }
.chip--up .chip__r { white-space: normal; margin-top: auto; color: rgba(244, 234, 219, .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(242, 181, 107, .09); box-shadow: inset 0 0 0 1px rgba(242, 181, 107, .55); }
.chip:is(:hover, :focus-visible) .chip__u { color: var(--amber-hot); text-shadow: 0 0 18px rgba(242, 181, 107, .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(15, 28, 51, .6) 45%, rgba(15, 28, 51, 0)); }
.close::after { inset: 0; background: linear-gradient(270deg, rgba(10, 19, 34, .62) 0%, rgba(10, 19, 34, .32) 34%, rgba(10, 19, 34, 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(10, 19, 34, .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 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); }
.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) { /* 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(10, 19, 34, 0), rgba(10, 19, 34, .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(242, 181, 107, .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(10, 19, 34, .9) 0%, rgba(10, 19, 34, .6) 38%, rgba(10, 19, 34, 0) 62%), linear-gradient(0deg, rgba(10, 19, 34, .7), rgba(10, 19, 34, 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(10, 19, 34, .94) 0%, rgba(10, 19, 34, .8) 36%, rgba(10, 19, 34, 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(10, 19, 34, .9) 0%, rgba(10, 19, 34, .66) 36%, rgba(10, 19, 34, 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"] .cue i::after { animation: none; transform: translateY(18px); }
@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__text { width: min(56%, 640px); }
  .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: 46px; }
  .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; }

  /* 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%; }
  .hero__name { font-size: min(17vw, 7.6svh); }
  .hero__line { font-size: clamp(22px, min(7.2vw, 3.4svh), 32px); margin-top: .22em; }
  .hero__lead { margin-top: 10px; font-size: 15px; line-height: 1.55; max-width: 24em; }
  .hero__acts { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero__acts .btn { height: 50px; padding: 0 12px; font-size: 16px; }
  .hero__facts { margin-top: 16px; padding-top: 12px; }
  .hero__facts li { flex: 1 1 auto; padding-inline-end: 6px; }
  .hero__facts li + li { padding-inline-start: 8px; }
  .hero__facts span { white-space: nowrap; }
  .hero__facts b { font-size: 20px; }
  .hero__facts span { font-size: 12px; }
  .cue { display: none; }
  .hero::before { background: linear-gradient(0deg, rgba(10, 19, 34, .88) 0%, rgba(10, 19, 34, .72) 34%, rgba(10, 19, 34, .3) 47%, rgba(10, 19, 34, 0) 56%); }
  .ride__stick::before { background: linear-gradient(0deg, rgba(10, 19, 34, .82) 0%, rgba(10, 19, 34, .52) 32%, rgba(10, 19, 34, 0) 52%); }
  .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(15, 28, 51, 0) 44svh, rgba(15, 28, 51, .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(10, 19, 34, .94) 0%, rgba(10, 19, 34, .8) 42%, rgba(10, 19, 34, 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(15, 28, 51, 0), rgba(15, 28, 51, .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; }

  .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; }

  /* 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(10, 19, 34, .9) 0%, rgba(10, 19, 34, .7) 34%, rgba(10, 19, 34, 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: auto auto; gap: 14px 28px; margin-top: 22px; }
  .close__rows li { font-size: 17px; }
  .close__rows li:last-child { grid-column: 1 / -1; }
  .no-gl .close { padding-block: 120px 72px; }
  .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; }
}
