/* ==========================================================================
   UFUQ — Residences on the edge of the Red Sea
   A concept project designed and built by Codeino
   Layout idea: a cinematic, dark-first page where the horizon line and the
   arch are the only two shapes; light limestone sheets interrupt the night.
   ========================================================================== */

/* ---------- fonts (two families, both scripts) ---------- */
@font-face { font-family: 'Alexandria'; src: url('../fonts/alexandria-arabic-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Alexandria'; src: url('../fonts/alexandria-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plex Arabic'; src: url('../fonts/ibm-plex-sans-arabic-arabic-300-normal.woff2') format('woff2'); font-weight: 300; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Plex Arabic'; src: url('../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Plex Arabic'; src: url('../fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Plex Arabic'; src: url('../fonts/ibm-plex-sans-arabic-latin-300-normal.woff2') format('woff2'); font-weight: 300; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Plex Arabic'; src: url('../fonts/ibm-plex-sans-arabic-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Plex Arabic'; src: url('../fonts/ibm-plex-sans-arabic-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }

/* ---------- tokens ---------- */
:root {
  --deep: #071a1f;        /* the Red Sea after dark */
  --deep-2: #0d252b;
  --foam: #f2f0ea;        /* text on the deep */
  --foam-2: rgba(242, 240, 234, 0.7);
  --foam-3: rgba(242, 240, 234, 0.48);
  --line-d: rgba(242, 240, 234, 0.14);
  --paper: #eceae4;       /* limestone sheets */
  --paper-2: #e2dfd7;
  --ink: #0e1a1d;
  --ink-2: #3f4c4b;
  --muted: #5f6866;
  --line: rgba(14, 26, 29, 0.14);
  --sun: #e2794a;         /* the sun in the logo, and a few markers */
  --reef: #5fc9be;

  --f-display: 'Alexandria', 'Plex Arabic', system-ui, sans-serif;
  --f-text: 'Plex Arabic', 'Alexandria', system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 76px);
  --maxw: 1520px;
  --hdr-h: 84px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  --hy: 64.5vh;
  --wm-w: min(40vw, 560px, 62vh);
  color-scheme: dark;
}
html.is-night { --paper: #0c1f25; --paper-2: #10282f; --ink: #e8eef0; --ink-2: rgba(232, 238, 240, 0.78); --muted: rgba(232, 238, 240, 0.58); --line: rgba(232, 238, 240, 0.14); }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--deep); overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--deep); color: var(--foam);
  font-family: var(--f-text); font-weight: 300; font-size: 17px; line-height: 1.85;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
html[lang='en'] body { line-height: 1.65; }
body.is-loading { overflow: hidden; }
img, video { display: block; max-width: 100%; }
video { object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--sun); color: #fff; }
:focus-visible { outline: 1.5px solid var(--sun); outline-offset: 4px; border-radius: 2px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; inset-inline-start: 16px; top: -60px; z-index: 200; background: var(--foam); color: var(--ink); padding: 10px 16px; border-radius: 40px; font-size: 14px; }
.skip:focus { top: 16px; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 1.2 0'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -4%); } 75% { transform: translate(-4%, -2%); } 100% { transform: translate(0, 0); } }

/* cursor */
.cursor { position: fixed; inset: 0; z-index: 150; pointer-events: none; mix-blend-mode: difference; display: none; }
.has-cursor .cursor { display: block; }
.cursor__dot, .cursor__ring { position: absolute; top: 0; left: 0; border-radius: 50%; will-change: transform; transition: opacity 0.3s; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; }
.cursor__ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(255, 255, 255, 0.7); display: grid; place-items: center; transition: width 0.45s var(--ease-out), height 0.45s var(--ease-out), margin 0.45s var(--ease-out), background-color 0.3s, opacity 0.3s; }
.cursor__label { font: 500 12px/1 'Plex Arabic', sans-serif; color: #000; opacity: 0; transition: opacity 0.25s; white-space: nowrap; }
.cursor.is-label .cursor__ring { width: 88px; height: 88px; margin: -44px 0 0 -44px; background: #fff; }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-link .cursor__ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.cursor:not(.is-moved) span { opacity: 0; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor label { cursor: none; }

/* ---------- type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-text); font-weight: 500; font-size: 13px; line-height: 1.4; color: var(--foam-3); margin-bottom: 26px; }
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); flex: none; }
html[lang='en'] .eyebrow { font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; }
.eyebrow--sm { margin-bottom: 14px; }
.h2 { font-family: var(--f-display); font-weight: 250; font-size: clamp(36px, 5.4vw, 92px); line-height: 1.2; max-width: 14ch; text-wrap: balance; }
html[lang='en'] .h2 { font-weight: 200; line-height: 1.05; letter-spacing: -0.03em; max-width: 13ch; }
.h2--light { color: var(--foam); }
.lead { font-size: clamp(17px, 1.3vw, 20.5px); line-height: 1.95; max-width: 34em; font-weight: 300; text-wrap: pretty; }
html[lang='en'] .lead { line-height: 1.65; }
.lead--light { color: var(--foam-2); }
.note { font-size: 13px; opacity: 0.7; margin-top: 26px; }
.rl-line { display: block; overflow: hidden; padding-block: 0.12em 0.18em; margin-block: -0.12em -0.18em; }
.rl-inner { display: inline-block; will-change: transform; }

/* ---------- buttons & links ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 16px; padding: 17px 30px; border-radius: 100px; border: 1px solid currentColor;
  font-family: var(--f-text); font-weight: 400; font-size: 15px; line-height: 1; overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: color 0.5s var(--ease-out), border-color 0.5s var(--ease-out);
}
html[lang='en'] .btn { font-size: 14px; letter-spacing: 0.02em; }
.btn::before { content: ''; position: absolute; inset: -1px; z-index: -1; background: var(--fill, var(--foam)); border-radius: inherit; transform: translateY(101%); transition: transform 0.6s var(--ease-out); }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:hover, .btn:focus-visible { color: var(--on-fill, var(--deep)); }
.btn--sm { padding: 12px 20px; font-size: 14px; }
.btn--ink { color: var(--foam); --fill: var(--foam); --on-fill: var(--deep); }
.btn--copper { background: var(--sun); border-color: var(--sun); color: #fff; --fill: var(--foam); --on-fill: var(--deep); }
.btn__arrow { width: 22px; height: 1px; background: currentColor; position: relative; flex: none; transition: width 0.5s var(--ease-out); }
.btn__arrow::after { content: ''; position: absolute; inset-inline-end: 0; top: -3.5px; width: 8px; height: 8px; border-top: 1px solid currentColor; border-inline-end: 1px solid currentColor; transform: rotate(45deg); }
html[dir='rtl'] .btn__arrow::after { transform: rotate(-45deg); }
.btn:hover .btn__arrow { width: 32px; }
.link-arrow { display: inline-flex; align-items: center; gap: 12px; font-size: 14.5px; font-weight: 400; padding-block: 6px; border-bottom: 1px solid color-mix(in srgb, currentColor 30%, transparent); transition: border-color 0.4s; }
.link-arrow i { width: 18px; height: 1px; background: currentColor; position: relative; transition: width 0.4s var(--ease-out); }
.link-arrow i::after { content: ''; position: absolute; inset-inline-end: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-inline-end: 1px solid currentColor; transform: rotate(45deg); }
html[dir='rtl'] .link-arrow i::after { transform: rotate(-45deg); }
.link-arrow:hover { border-color: var(--sun); }
.link-arrow:hover i { width: 28px; }
.link-arrow--light { color: var(--foam); }

/* rolling nav links: the label slides up and a copy follows */
[data-roll] { position: relative; display: inline-block; overflow: hidden; height: 1.7em; line-height: 1.7em; vertical-align: top; }
[data-roll] > span { display: block; transition: transform 0.55s var(--ease-out); }
[data-roll]::after { content: attr(data-label); position: absolute; inset-inline-start: 0; top: 100%; transition: transform 0.55s var(--ease-out); white-space: nowrap; }
[data-roll]:hover > span, [data-roll]:hover::after { transform: translateY(-100%); }

.tool { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--hdr-rule, var(--line-d)); color: inherit; transition: border-color 0.4s, background-color 0.4s; font-family: var(--f-text); font-weight: 500; font-size: 13px; }
.tool:hover { border-color: currentColor; background: color-mix(in srgb, currentColor 10%, transparent); }
.tool svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; }
.tool--lang { letter-spacing: 0.06em; font-size: 12.5px; }
html[lang='en'] .tool--lang { font-size: 15px; letter-spacing: 0; }
.tod-sun { fill: var(--sun); stroke: none; transition: transform 0.8s var(--ease-io), opacity 0.6s; transform-origin: 12px 12px; }
.tod-moon { opacity: 0; transform: translateY(6px); transition: transform 0.8s var(--ease-io), opacity 0.6s; fill: currentColor; stroke: none; }
html.is-night .tod-sun { transform: translateY(9px) scale(0.6); opacity: 0; }
html.is-night .tod-moon { opacity: 1; transform: none; }
.bars { display: flex; align-items: center; gap: 2.5px; height: 14px; }
.bars i { width: 1.5px; height: 4px; background: currentColor; border-radius: 2px; }
.tool--sound.is-on .bars i { animation: bars 1.1s var(--ease) infinite alternate; }
.tool--sound.is-on .bars i:nth-child(2) { animation-delay: -0.4s; }
.tool--sound.is-on .bars i:nth-child(3) { animation-delay: -0.8s; }
.tool--sound.is-on .bars i:nth-child(4) { animation-delay: -0.2s; }
@keyframes bars { from { height: 3px; } to { height: 14px; } }

/* ---------- preloader ---------- */
.pre { position: fixed; inset: 0; z-index: 120; pointer-events: none; }
.pre__sky, .pre__sea { position: absolute; inset-inline: 0; background: var(--deep); will-change: transform; }
.pre__sky { top: 0; height: var(--hy); }
.pre__sea { top: var(--hy); bottom: 0; background: #06161a; }
.pre__line { position: absolute; inset-inline: 0; top: var(--hy); height: 1px; background: var(--foam); transform: scaleX(0); }
.pre__mark { position: absolute; left: 50%; top: var(--hy); width: var(--wm-w); transform: translate(-50%, -73.85%); color: var(--foam); clip-path: inset(0 0 26.15% 0); }
.pre__mark svg { width: 100%; height: auto; display: block; overflow: visible; }
.pre__meta { position: absolute; inset-inline: var(--gutter); top: calc(var(--hy) + 18px); display: flex; justify-content: space-between; font-size: 13px; color: var(--foam-3); font-weight: 400; opacity: 0; }
html[lang='en'] .pre__meta { letter-spacing: 0.16em; text-transform: uppercase; font-size: 11px; }
.pre__count { font-variant-numeric: tabular-nums; min-width: 3ch; text-align: end; }

.wm { display: block; width: 100%; height: auto; overflow: visible; }
.wm path { fill: currentColor; }
.wm .wm-sun { fill: var(--sun); }

/* ---------- header ---------- */
.hdr {
  --hdr-rule: rgba(242, 240, 234, 0.26);
  position: fixed; inset-inline: 0; top: 0; z-index: 70; height: var(--hdr-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding-inline: var(--gutter); color: var(--foam);
  transition: transform 0.9s var(--ease-out), opacity 0.9s var(--ease-out), color 0.6s var(--ease);
}
.hdr[data-theme='light'] { color: var(--ink); --hdr-rule: rgba(14, 26, 29, 0.2); }
html.is-night .hdr[data-theme='light'] { color: var(--foam); --hdr-rule: rgba(242, 240, 234, 0.26); }
.intro .hdr { opacity: 0; transform: translateY(-60%); }
.hdr.is-hidden { transform: translateY(-110%); }
.hdr__logo { display: inline-flex; align-items: center; gap: 14px; justify-self: start; }
.hdr__wm { width: 74px; display: block; }
.hdr__latin { width: 50px; display: block; opacity: 0.8; }
.hdr__latin svg { width: 100%; height: auto; display: block; fill: currentColor; }
.hdr__nav { display: flex; gap: clamp(18px, 2.1vw, 36px); font-size: 14.5px; font-weight: 400; }
html[lang='en'] .hdr__nav { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.hdr__tools { display: flex; align-items: center; gap: 10px; justify-self: end; }
.hdr__clock { font-size: 12.5px; opacity: 0.75; margin-inline-end: 6px; white-space: nowrap; }
.hdr__clock b { font-weight: 400; font-variant-numeric: tabular-nums; font-family: 'Alexandria', sans-serif; }
.hdr__cta { margin-inline-start: 6px; --fill: currentColor; --on-fill: var(--deep); }
.hdr[data-theme='light'] .hdr__cta { --on-fill: var(--paper); }
html.is-night .hdr .hdr__cta { --on-fill: var(--deep); }
.tool--menu { display: none; }
.burger { width: 18px; height: 8px; position: relative; display: block; }
.burger i { position: absolute; inset-inline: 0; height: 1.2px; background: currentColor; transition: transform 0.5s var(--ease-out), top 0.5s var(--ease-out); }
.burger i:first-child { top: 0; }
.burger i:last-child { top: 7px; }
.menu-open .burger i:first-child { top: 3.5px; transform: rotate(45deg); }
.menu-open .burger i:last-child { top: 3.5px; transform: rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 65; background: var(--deep); color: var(--foam); display: flex; flex-direction: column; justify-content: center; padding: calc(var(--hdr-h) + 20px) var(--gutter) 40px; clip-path: inset(0 0 100% 0); transition: clip-path 0.9s var(--ease-io); visibility: hidden; }
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-open .hdr { color: var(--foam); }
.menu__nav { display: flex; flex-direction: column; gap: 4px; }
.menu__nav a { font-family: var(--f-display); font-weight: 250; font-size: clamp(32px, 9vw, 60px); line-height: 1.35; opacity: 0; transform: translateY(30px); transition: opacity 0.6s, transform 0.8s var(--ease-out); }
.menu-open .menu__nav a { opacity: 1; transform: none; }
.menu-open .menu__nav a:nth-child(2) { transition-delay: 0.05s; }
.menu-open .menu__nav a:nth-child(3) { transition-delay: 0.1s; }
.menu-open .menu__nav a:nth-child(4) { transition-delay: 0.15s; }
.menu-open .menu__nav a:nth-child(5) { transition-delay: 0.2s; }
.menu-open .menu__nav a:nth-child(6) { transition-delay: 0.25s; color: var(--sun); }
.menu__foot { margin-top: auto; font-size: 13px; color: var(--foam-3); }

/* ---------- hero ---------- */
main { position: relative; }
.hero { position: relative; height: 380vh; background: var(--deep); }
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; }
.hero__frame { position: absolute; inset: 0; will-change: clip-path; background: #0b1a1e; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform, opacity; }
.hero__video--b, .hero__video--n { opacity: 0; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(7, 26, 31, 0.5), rgba(7, 26, 31, 0) 24%, rgba(7, 26, 31, 0) 60%, rgba(7, 26, 31, 0.6)); pointer-events: none; }
.hero__intro { position: absolute; inset: 0; pointer-events: none; }
.hero__title { position: absolute; left: 50%; top: var(--hy); width: var(--wm-w); transform: translate(-50%, -73.85%); color: var(--foam); filter: drop-shadow(0 2px 26px rgba(30, 8, 0, 0.35)); }
.hero__wm svg { width: 100%; height: auto; display: block; overflow: visible; }
.hero__tag { position: absolute; left: 50%; top: calc(var(--hy) + clamp(64px, 11vh, 110px)); transform: translateX(-50%); font-family: var(--f-display); font-weight: 300; font-size: clamp(16px, 1.45vw, 22px); color: var(--foam); white-space: nowrap; text-shadow: 0 1px 24px rgba(20, 10, 5, 0.65); }
.hero__meta { position: absolute; inset-inline: var(--gutter); bottom: clamp(24px, 4.5vh, 44px); display: flex; justify-content: space-between; align-items: flex-end; font-size: 12.5px; color: var(--foam-2); }
.hero__coords { font-family: 'Alexandria', sans-serif; letter-spacing: 0.14em; font-size: 11.5px; }
.hero__scroll { display: inline-flex; align-items: center; gap: 12px; }
.hero__scroll i { width: 1px; height: 38px; background: rgba(242, 240, 234, 0.35); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--foam); animation: drip 2.2s var(--ease-io) infinite; }
@keyframes drip { to { top: 110%; } }
.hero__flank { position: absolute; top: 50%; max-width: calc(50vw - var(--arch-half, 200px) - var(--gutter) - 2.5vw); font-family: var(--f-display); font-weight: 200; font-size: clamp(34px, 5.4vw, 100px); line-height: 1.1; color: var(--foam); text-wrap: balance; opacity: 0; pointer-events: none; }
html[lang='en'] .hero__flank { letter-spacing: -0.03em; font-size: clamp(30px, 4.3vw, 78px); line-height: 1.04; }
.hero__flank--a { inset-inline-start: var(--gutter); text-align: end; }
.hero__flank--b { inset-inline-end: var(--gutter); text-align: start; }
.hero__place { position: absolute; z-index: 1; isolation: isolate; inset-inline-start: var(--gutter); bottom: clamp(70px, 12vh, 130px); max-width: min(660px, 86vw); color: var(--foam); opacity: 0; visibility: hidden; }
.hero__place::before { content: ''; position: absolute; z-index: -1; inset: -45% -30% -60% -35%; background: radial-gradient(closest-side, rgba(4, 18, 22, 0.62), rgba(4, 18, 22, 0)); pointer-events: none; }
.hero__place .eyebrow { color: var(--foam-2); margin-bottom: 18px; }
.hero__placeText { font-family: var(--f-display); font-weight: 250; font-size: clamp(22px, 2.3vw, 38px); line-height: 1.5; text-shadow: 0 2px 30px rgba(0, 20, 25, 0.55); }
html[lang='en'] .hero__placeText { line-height: 1.22; font-weight: 200; letter-spacing: -0.01em; }
.hero__stats { display: flex; gap: clamp(22px, 4vw, 64px); margin-top: 30px; }
.hero__stats li { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid rgba(242, 240, 234, 0.3); padding-top: 14px; min-width: 120px; }
.hero__stats b { font-family: var(--f-display); font-weight: 200; font-size: clamp(34px, 3.6vw, 60px); line-height: 1; font-variant-numeric: tabular-nums; }
.hero__stats span { font-size: 13px; color: var(--foam-2); line-height: 1.5; max-width: 13em; }

/* ---------- panels ---------- */
.panel { position: relative; background: var(--paper); color: var(--ink); transition: background-color 0.9s var(--ease), color 0.9s var(--ease); }
.panel .eyebrow { color: var(--muted); }

/* ---------- idea ---------- */
.idea { padding-block: clamp(120px, 18vh, 220px) clamp(110px, 16vh, 200px); }
.idea__text { font-family: var(--f-display); font-weight: 250; font-size: clamp(30px, 4.3vw, 74px); line-height: 1.55; max-width: 22ch; }
html[lang='en'] .idea__text { font-weight: 200; line-height: 1.16; letter-spacing: -0.025em; max-width: 20ch; }
.idea__text .w { opacity: 0.14; }
.pill { display: inline-block; vertical-align: middle; width: 2.3em; height: 0.95em; border-radius: 1em; overflow: hidden; margin-inline: 0.06em; transform: translateY(-0.05em); background: var(--paper-2); }
.pill video, .pill img { width: 100%; height: 100%; object-fit: cover; }
.pill--arch { width: 0.82em; height: 1.08em; border-radius: 0.41em 0.41em 0 0; }
.idea__foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; margin-top: clamp(56px, 7vw, 100px); padding-top: 26px; border-top: 1px solid var(--line); }
.idea__sign { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.idea__note { max-width: 30em; font-size: 15.5px; color: var(--ink-2); }
.sun-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sun); position: relative; flex: none; }
.sun-dot::after { content: ''; position: absolute; top: 13px; inset-inline-start: -10px; width: 29px; height: 1px; background: currentColor; opacity: 0.6; }

/* ---------- residences (stacked cards) ---------- */
.res { background: var(--deep); color: var(--foam); padding-block: clamp(110px, 15vh, 190px) 14vh; }
.res .eyebrow { color: var(--foam-3); }
.res__head { margin-bottom: clamp(40px, 7vh, 80px); }
.res__stack { padding-inline: var(--gutter); max-width: calc(var(--maxw) + 40px); margin-inline: auto; display: flex; flex-direction: column; gap: 8vh; }
.rc { position: sticky; top: calc(var(--hdr-h) + 1vh); height: calc(100vh - var(--hdr-h) - 5vh); min-height: 540px; }
.rc__inner { height: 100%; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); background: var(--deep-2); border: 1px solid var(--line-d); overflow: hidden; transform-origin: 50% 0; will-change: transform; }
.rc__media { position: relative; overflow: hidden; }
.rc__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.6s var(--ease-out); }
.rc:hover .rc__media img { transform: scale(1.02); }
.rc__body { display: flex; flex-direction: column; padding: clamp(28px, 3.4vw, 60px); min-width: 0; }
.rc__idx { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--foam-3); font-variant-numeric: tabular-nums; font-family: 'Alexandria', sans-serif; }
.rc__idx i { width: 40px; height: 1px; background: var(--line-d); }
.rc__name { font-family: var(--f-display); font-weight: 250; font-size: clamp(38px, 4.2vw, 76px); line-height: 1.15; margin-top: auto; }
html[lang='en'] .rc__name { font-weight: 200; letter-spacing: -0.03em; line-height: 1; }
.rc__desc { margin-top: 16px; font-size: 16px; color: var(--foam-2); max-width: 28em; }
.rc__specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin-top: 28px; border-top: 1px solid var(--line-d); }
.rc__specs div { padding-block: 12px; border-bottom: 1px solid var(--line-d); }
.rc__specs dt { font-size: 12px; color: var(--foam-3); }
.rc__specs dd { font-size: 16px; font-weight: 400; font-variant-numeric: tabular-nums; }
.rc__cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 30px; }

/* ---------- residence detail ---------- */
.detail { position: fixed; inset: 0; z-index: 95; background: var(--deep); color: var(--foam); visibility: hidden; opacity: 0; }
.detail.is-open { visibility: visible; opacity: 1; }
.detail__scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; }
.detail__hero { position: relative; height: 78vh; overflow: hidden; }
.detail__hero img { width: 100%; height: 100%; object-fit: cover; }
.detail__hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, var(--deep), rgba(7, 26, 31, 0) 55%); }
.detail__close { position: fixed; top: 22px; inset-inline-end: var(--gutter); z-index: 3; background: rgba(7, 26, 31, 0.55); color: var(--foam); }
.detail__body { position: relative; margin-top: -24vh; padding-bottom: 120px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 64px; }
.dt__head { grid-column: 1 / -1; }
.dt__name { font-family: var(--f-display); font-weight: 200; font-size: clamp(48px, 8vw, 140px); line-height: 1.08; }
html[lang='en'] .dt__name { letter-spacing: -0.035em; line-height: 0.95; }
.dt__long { grid-column: 1 / 7; font-family: var(--f-display); font-weight: 250; font-size: clamp(20px, 1.9vw, 30px); line-height: 1.6; }
html[lang='en'] .dt__long { line-height: 1.35; font-weight: 200; }
.dt__specs { grid-column: 8 / 13; display: grid; grid-template-columns: 1fr 1fr; align-content: start; border-top: 1px solid var(--line-d); }
.dt__specs div { padding: 16px 0; border-bottom: 1px solid var(--line-d); }
.dt__specs dt { font-size: 12px; color: var(--foam-3); }
.dt__specs dd { font-family: var(--f-display); font-weight: 300; font-size: 26px; font-variant-numeric: tabular-nums; }
.dt__label { font-size: 12px; color: var(--foam-3); margin-bottom: 16px; }
.dt__feat { grid-column: 1 / 7; }
.dt__feat li { display: flex; gap: 18px; align-items: baseline; padding-block: 16px; border-top: 1px solid var(--line-d); font-size: 17px; }
.dt__feat li span { font-size: 12px; color: var(--sun); font-variant-numeric: tabular-nums; min-width: 2ch; }
.dt__plan { grid-column: 8 / 13; }
.dt__plan svg { width: 100%; height: auto; display: block; background: var(--deep-2); }
.dt__plan .fp-wall, .up__plan .fp-wall { fill: none; stroke: var(--foam); stroke-width: 2.2; }
.dt__plan .fp-int, .up__plan .fp-int { fill: none; stroke: var(--foam-2); stroke-width: 1; }
.dt__plan .fp-pool, .up__plan .fp-pool { fill: rgba(95, 201, 190, 0.35); stroke: var(--reef); stroke-width: 0.8; }
.dt__plan .fp-terr, .up__plan .fp-terr { fill: rgba(242, 240, 234, 0.06); }
.dt__plan .fp-txt, .up__plan .fp-txt { font-family: var(--f-text); font-size: 9px; fill: var(--foam-2); text-anchor: middle; }
.dt__gallery { grid-column: 1 / -1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.dt__gallery figure { overflow: hidden; aspect-ratio: 4 / 3; }
.dt__gallery img { width: 100%; height: 100%; object-fit: cover; }
.dt__price { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 30px; padding-top: 40px; border-top: 1px solid var(--line-d); }
.dt__price span { display: block; font-size: 13px; color: var(--foam-3); }
.dt__price b { font-family: var(--f-display); font-weight: 200; font-size: clamp(40px, 5vw, 84px); line-height: 1.15; font-variant-numeric: tabular-nums; }
.dt__price small { display: block; font-size: 15px; color: var(--foam-2); margin-top: 6px; }
.dt__actions { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.flip-ghost { position: fixed; z-index: 96; object-fit: cover; pointer-events: none; will-change: transform, width, height; }

/* ---------- a day at ufuq ---------- */
.day { position: relative; background: var(--day-bg, #f0d6bf); color: var(--day-fg, #0e1a1d); transition: color 0.7s var(--ease); }
.day__pin { height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; padding-top: calc(var(--hdr-h) + 2vh); }
.day .eyebrow { color: currentColor; opacity: 0.65; }
.day__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.day__title { font-family: var(--f-display); font-weight: 250; font-size: clamp(28px, 3.4vw, 56px); line-height: 1.2; max-width: 16ch; }
html[lang='en'] .day__title { font-weight: 200; letter-spacing: -0.025em; max-width: 20ch; text-wrap: balance; }
.day__clock { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.day__time { font-family: 'Alexandria', sans-serif; font-weight: 200; font-size: clamp(56px, 7vw, 120px); line-height: 0.9; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.day__arc { width: clamp(150px, 14vw, 220px); height: auto; overflow: visible; }
.day__arcPath { fill: none; stroke: currentColor; stroke-width: 1; stroke-dasharray: 2 5; opacity: 0.5; }
.day__sun { fill: var(--sun); transition: fill 0.6s; }
.day__sun.is-moon { fill: var(--foam); }
.day__track { display: flex; gap: clamp(30px, 5vw, 90px); padding-inline: var(--gutter); margin-top: auto; padding-bottom: clamp(30px, 6vh, 60px); width: max-content; will-change: transform; }
.slot { width: clamp(300px, 34vw, 560px); display: flex; flex-direction: column; gap: 22px; }
.slot__media { height: 50vh; border-radius: 999px 999px 0 0; overflow: hidden; background: rgba(0, 0, 0, 0.08); }
.slot__media video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); will-change: transform; }
.slot__text { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: baseline; }
.slot__time { font-family: 'Alexandria', sans-serif; font-weight: 300; font-size: 14px; opacity: 0.6; font-variant-numeric: tabular-nums; grid-row: 1 / 3; }
.slot h3 { font-family: var(--f-display); font-weight: 300; font-size: clamp(22px, 2vw, 32px); line-height: 1.25; }
.slot p { font-size: 15px; opacity: 0.8; line-height: 1.8; max-width: 26em; }

/* ---------- masterplan sheet ---------- */
.plan { padding-block: clamp(110px, 14vh, 180px) clamp(80px, 10vh, 120px); }
.plan__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.plan__lead { color: var(--ink-2); max-width: 26em; }
.plan__bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 46px; padding-block: 16px; border-top: 1px solid var(--line); }
.plan__filters { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 9px 16px; border-radius: 100px; font-size: 13.5px; color: var(--ink-2); border: 1px solid var(--line); transition: background-color 0.35s, color 0.35s, border-color 0.35s; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip--toggle input { appearance: none; -webkit-appearance: none; width: 26px; height: 15px; border-radius: 20px; background: var(--line); position: relative; margin: 0; transition: background-color 0.3s; cursor: pointer; }
.chip--toggle input::after { content: ''; position: absolute; top: 2px; inset-inline-start: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: transform 0.35s var(--ease-out); }
.chip--toggle input:checked { background: var(--sun); }
.chip--toggle input:checked::after { transform: translateX(11px); }
html[dir='rtl'] .chip--toggle input:checked::after { transform: translateX(-11px); }
.legend { display: flex; gap: 22px; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend b { font-weight: 500; font-variant-numeric: tabular-nums; }
.st { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.st--available { background: var(--sun); }
.st--reserved { background: #c9b998; }
.st--sold { background: #8a918f; }
.plan__sheet { position: relative; overflow-x: clip; }
.plan__drawing { position: relative; border: 1px solid var(--line); background: var(--paper); overflow: hidden; transition: background-color 0.9s; }
.plan__drawing svg { display: block; width: 100%; height: auto; }
.p-land { fill: var(--paper); transition: fill 0.9s; }
.p-sea--0 { fill: #d9ebe6; } .p-sea--1 { fill: #c4e1dc; } .p-sea--2 { fill: #9fc8cc; } .p-sea--3 { fill: #84b4bc; }
.p-sea { transition: fill 0.9s; }
.p-depth { fill: none; stroke: #4f8c92; stroke-width: 0.6; opacity: 0.45; }
.p-coast { fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linejoin: round; }
.p-reef { fill: none; stroke: #3f8088; stroke-width: 1; stroke-dasharray: 6 5; }
.p-contour { fill: none; stroke: var(--ink); stroke-width: 0.5; opacity: 0.22; }
.p-contour--major { stroke-width: 0.85; opacity: 0.38; }
.p-road-out { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; opacity: 0.5; }
.p-road-in { fill: none; stroke: var(--paper); stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.9s; }
.p-palm { fill: #4e6b4b; stroke: #4e6b4b; stroke-width: 0.8; stroke-linecap: round; }
.p-amen { fill: var(--paper-2); stroke: var(--ink); stroke-width: 0.9; transition: fill 0.9s; }
.p-water { fill: #c4e1dc; stroke: var(--ink); stroke-width: 0.7; }
.p-dome { fill: var(--paper); stroke: var(--ink); stroke-width: 0.8; }
.p-jetty { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: square; }
.p-label { font-family: var(--f-text); font-weight: 500; font-size: 12.5px; fill: var(--ink-2); paint-order: stroke; stroke: var(--paper); stroke-width: 3.5px; stroke-linejoin: round; }
html[lang='en'] .p-label { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; }
.p-sealabel { font-family: var(--f-display); font-weight: 200; font-size: 40px; fill: #3f8088; opacity: 0.75; letter-spacing: 0.06em; }
html[lang='en'] .p-sealabel { letter-spacing: 0.42em; font-size: 26px; text-transform: uppercase; }
.p-reeflabel { font-family: var(--f-text); font-size: 12px; fill: #3f8088; }
html[lang='en'] .p-reeflabel { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.p-small { font-family: var(--f-text); font-size: 12.5px; fill: var(--ink-2); }
.p-tiny { font-size: 11px; fill: var(--muted); }
html[lang='en'] .p-tiny { font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.p-ref { font-family: 'Alexandria', sans-serif; font-size: 8px; fill: var(--muted); letter-spacing: 0.1em; }
.p-frame { fill: none; stroke: var(--ink); stroke-width: 0.9; }
.p-block { fill: var(--paper); stroke: var(--ink); stroke-width: 0.9; transition: fill 0.9s; }
.p-blocktitle { font-family: var(--f-display); font-weight: 300; font-size: 18px; fill: var(--ink); }
html[lang='en'] .p-blocktitle { font-size: 15px; letter-spacing: 0.02em; }
.p-wm path { fill: var(--ink); } .p-wm .p-sun { fill: var(--sun); }
.p-key circle { fill: var(--ink); }
.p-keyn { font-family: 'Alexandria', sans-serif; font-size: 12px; font-weight: 400; fill: var(--paper); }
.p-keydot { fill: var(--ink); }
.p-keyn--sm { font-size: 9px; }
.p-scale0 { fill: var(--ink); } .p-scale1 { fill: var(--paper); stroke: var(--ink); stroke-width: 0.8; }
.p-north circle { fill: var(--paper); stroke: var(--ink); stroke-width: 0.8; } .p-north path { fill: var(--sun); }
.pl-scan { stroke: var(--sun); stroke-width: 1.4; }
.p-ink { fill: var(--ink); }
.p-inkline { stroke: var(--ink); fill: none; }
.unit { cursor: pointer; transition: opacity 0.5s; }
.unit .u-plot { fill: transparent; stroke: var(--ink); stroke-width: 0.6; stroke-dasharray: 2 2; opacity: 0.5; pointer-events: all; }
.unit .u-bldg { stroke: var(--ink); stroke-width: 0.7; transition: fill 0.3s; }
.unit .u-pool { fill: #8fd0c8; stroke: var(--ink); stroke-width: 0.4; }
.unit[data-s='available'] .u-bldg { fill: var(--sun); }
.unit[data-s='reserved'] .u-bldg { fill: #c9b998; }
.unit[data-s='sold'] .u-bldg { fill: #a3a9a7; }
.unit:hover .u-bldg, .unit.is-sel .u-bldg { fill: var(--ink); }
.unit.is-dim { opacity: 0.14; pointer-events: none; }
.unit.is-sel .u-plot { stroke: var(--sun); stroke-dasharray: none; stroke-width: 2; opacity: 1; }
html.is-night .p-sea--0 { fill: #0f3640; } html.is-night .p-sea--1 { fill: #0e3a45; } html.is-night .p-sea--2 { fill: #0a2c36; } html.is-night .p-sea--3 { fill: #08242d; }
html.is-night .p-water { fill: #12424d; }
html.is-night .p-palm { fill: #7fb3a7; stroke: #7fb3a7; }
html.is-night .p-reef, html.is-night .p-depth { stroke: #69b3b8; }
html.is-night .p-reeflabel, html.is-night .p-sealabel { fill: #69b3b8; }
html.is-night .unit .u-pool { fill: #2f8f88; }
.plan__tip { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; padding: 12px 16px; background: var(--deep); color: var(--foam); border-radius: 12px; font-size: 13px; line-height: 1.6; min-width: 170px; opacity: 0; transform: translate(-50%, calc(-100% - 14px)); transition: opacity 0.2s; }
.plan__tip.is-on { opacity: 1; }
.plan__tip b { display: block; font-family: var(--f-display); font-size: 18px; font-weight: 300; }
.plan__panel { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: min(400px, 100%); background: var(--deep); color: var(--foam); overflow-y: auto; transform: translateX(105%); transition: transform 0.8s var(--ease-io); z-index: 4; }
html[dir='rtl'] .plan__panel { transform: translateX(-105%); }
html .plan.has-sel .plan__panel { transform: none; }
.plan__pclose { position: absolute; top: 14px; inset-inline-end: 14px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(7, 26, 31, 0.6); color: var(--foam); z-index: 2; }
.plan__pclose svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.plan__foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 18px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.plan__foot .link-arrow { color: var(--ink); }

/* unit panel (shared by the sheet and the 3D tour) */
.up__img { aspect-ratio: 16 / 10; overflow: hidden; }
.up__img img { width: 100%; height: 100%; object-fit: cover; }
.up__head { padding: 24px 28px 0; }
.up__id { font-family: 'Alexandria', sans-serif; font-size: 12px; letter-spacing: 0.2em; opacity: 0.6; }
.up__name { font-family: var(--f-display); font-weight: 300; font-size: 30px; line-height: 1.25; margin-top: 6px; }
.up__status { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; opacity: 0.85; }
.up__specs { display: grid; grid-template-columns: 1fr 1fr; margin: 22px 28px 0; border-top: 1px solid var(--line-d); }
.up__specs div { padding: 12px 0; border-bottom: 1px solid var(--line-d); }
.up__specs dt { font-size: 12px; opacity: 0.6; }
.up__specs dd { font-size: 16px; font-weight: 400; font-variant-numeric: tabular-nums; }
.up__plan { margin: 24px 28px 0; }
.up__plan p { font-size: 12px; opacity: 0.6; margin-bottom: 10px; }
.up__plan svg { width: 100%; height: auto; display: block; background: var(--deep-2); }
.up__price { margin: 24px 28px 0; padding: 20px 22px; background: var(--deep-2); display: grid; gap: 4px; }
.up__price span { font-size: 12px; opacity: 0.6; }
.up__price b { font-family: var(--f-display); font-weight: 250; font-size: 30px; line-height: 1.25; font-variant-numeric: tabular-nums; }
.up__price small { font-size: 13px; opacity: 0.75; }
.up__cta { margin: 22px 28px 0; }
.up__cta .btn { width: 100%; justify-content: space-between; color: var(--foam); }
.up__nav { display: flex; justify-content: space-between; margin: 20px 28px 30px; font-size: 13px; opacity: 0.85; }
.up__nav button { padding: 6px 0; border-bottom: 1px solid var(--line-d); }
.up__lofts { margin: 22px 28px 0; }
.up__lofts p { font-size: 12px; opacity: 0.6; margin-bottom: 10px; }
.up__lofts button { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 4px; border-top: 1px solid var(--line-d); font-size: 13.5px; text-align: start; }
.up__lofts button.is-on { background: var(--deep-2); }

/* ---------- architecture ---------- */
.arch { padding-block: clamp(110px, 14vh, 180px) clamp(90px, 12vh, 150px); }
.arch__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; min-height: 80vh; }
.arch__copy { grid-column: 1 / 6; }
.arch__copy .lead { margin-top: 28px; color: var(--ink-2); }
.arch__dial { position: relative; display: flex; justify-content: space-between; margin-top: 50px; padding-top: 18px; border-top: 1px solid var(--line); font-family: 'Alexandria', sans-serif; font-size: 12px; color: var(--muted); max-width: 420px; }
.arch__hand { position: absolute; top: -5px; left: 0; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--sun); }
.arch__study { grid-column: 7 / 13; position: relative; aspect-ratio: 4 / 5; max-height: 82vh; overflow: hidden; border-radius: 999px 999px 0 0; justify-self: center; width: 100%; max-width: 620px; }
.arch__study img { width: 100%; height: 100%; object-fit: cover; }
.arch__shade { position: absolute; inset: -30%; background: linear-gradient(var(--ang, 70deg), rgba(28, 36, 38, 0) 40%, rgba(28, 36, 38, 0.48) 52%, rgba(28, 36, 38, 0.6)); mix-blend-mode: multiply; pointer-events: none; }
.arch__study::after { content: ''; position: absolute; inset: 0; background: var(--warm, rgba(255, 160, 90, 0)); mix-blend-mode: soft-light; pointer-events: none; }
.arch__study figcaption { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: 12.5px; color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5); }
.materials { margin-top: clamp(70px, 10vh, 130px); }
.materials ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--line); padding-top: 28px; }
.materials li { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center; }
.mat { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; grid-row: 1 / 3; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
.mat img { width: 100%; height: 100%; object-fit: cover; transform: scale(2.4); }
.mat--teak { background: repeating-linear-gradient(100deg, #8d6a4b 0 3px, #7b5a3d 3px 5px, #94704f 5px 9px); }
.mat--brass { background: radial-gradient(circle at 32% 28%, #e3c48b, #a77c3e 55%, #6d5532 100%); }
.materials b { font-weight: 400; font-size: 15px; }
.materials small { font-size: 13px; color: var(--muted); }

/* ---------- interiors ---------- */
.interiors { position: relative; min-height: 120vh; color: var(--foam); display: flex; align-items: flex-end; overflow: hidden; background: var(--deep); }
.interiors__bg { position: absolute; inset: 0; will-change: clip-path; }
.interiors__bg img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.interiors::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7, 26, 31, 0.86), rgba(7, 26, 31, 0.1) 55%, rgba(7, 26, 31, 0.3)); pointer-events: none; }
.interiors__copy { position: relative; z-index: 1; padding-bottom: clamp(80px, 14vh, 160px); }
.interiors__copy .eyebrow { color: var(--foam-2); }
.interiors__copy .lead { margin-top: 24px; }
.interiors__cap { position: absolute; z-index: 1; inset-inline-end: var(--gutter); bottom: 34px; font-size: 12.5px; color: var(--foam-2); }

/* ---------- location ---------- */
.location { padding-block: clamp(110px, 14vh, 190px); }
.location__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.location__copy { grid-column: 1 / 6; }
.location__copy .lead { margin-top: 26px; color: var(--ink-2); }
.dist { margin-top: 42px; }
.dist li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding-block: 15px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.dist li:last-child { border-bottom: 1px solid var(--line); }
.dist b { font-weight: 400; color: var(--ink); white-space: nowrap; }
.map { grid-column: 7 / 13; position: relative; aspect-ratio: 560 / 595; }
.map svg { width: 100%; height: 100%; display: block; overflow: visible; }
.map .m-sea { fill: #cfe3e1; transition: fill 0.9s; } html.is-night .map .m-sea { fill: #0f2c33; }
.map .m-land { fill: var(--paper); stroke: var(--ink); stroke-width: 0.7; stroke-linejoin: round; transition: fill 0.9s; }
.map .m-nile { fill: none; stroke: #5d9aa6; stroke-width: 1.4; opacity: 0.8; }
.map .m-grid { stroke: var(--line); stroke-width: 0.6; fill: none; }
.map .m-route { fill: none; stroke: var(--sun); stroke-width: 1.2; stroke-dasharray: 3 4; }
.map .m-dot { fill: var(--ink); }
.map .m-label { font-family: var(--f-text); font-size: 12px; fill: var(--ink-2); }
html[lang='en'] .map .m-label { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.map .m-sealabel { font-family: var(--f-display); font-size: 22px; fill: #5f9696; font-weight: 300; }
html[lang='en'] .map .m-sealabel { letter-spacing: 0.25em; font-size: 16px; text-transform: uppercase; }
.map .m-ufuq { fill: var(--sun); }
.map .m-pulse { fill: none; stroke: var(--sun); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: pulse 2.8s var(--ease-out) infinite; }
.map .m-ufuqlabel { font-family: var(--f-display); font-size: 20px; fill: var(--ink); }
@keyframes pulse { from { transform: scale(0.4); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }

/* ---------- payment ---------- */
.payment { padding-block: 0 clamp(110px, 14vh, 190px); }
.payment__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; padding-top: clamp(80px, 10vw, 130px); border-top: 1px solid var(--line); }
.payment__copy { grid-column: 1 / 6; }
.payment__copy .lead { margin-top: 26px; color: var(--ink-2); }
.calc { grid-column: 7 / 13; padding: clamp(26px, 3vw, 46px); border: 1px solid var(--line); background: var(--paper-2); transition: background-color 0.9s; }
.calc fieldset { border: 0; margin: 0; padding: 0; }
.calc legend, .calc label > span:first-child { font-size: 13px; color: var(--muted); }
.calc__types { display: flex; flex-wrap: wrap; gap: 8px; }
.calc__types legend { margin-bottom: 14px; }
.calc__types label, .chips label { position: relative; }
.calc__types input, .chips input { position: absolute; opacity: 0; pointer-events: none; }
.calc__types span, .chips span { display: inline-block; padding: 10px 18px; border-radius: 100px; border: 1px solid var(--line); font-size: 14px; transition: background-color 0.35s, color 0.35s, border-color 0.35s; cursor: pointer; }
.calc__types input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.calc__types input:focus-visible + span, .chips input:focus-visible + span { outline: 1.5px solid var(--sun); outline-offset: 3px; }
.calc__row { margin-top: 32px; }
.calc__row label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.calc__row output { font-family: var(--f-display); font-size: 22px; font-variant-numeric: tabular-nums; }
input[type='range'] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; }
input[type='range']::-webkit-slider-runnable-track { height: 1px; background: linear-gradient(to var(--range-dir, right), var(--sun) var(--p, 0%), var(--line) var(--p, 0%)); }
input[type='range']::-moz-range-track { height: 1px; background: var(--line); }
input[type='range']::-moz-range-progress { height: 1px; background: var(--sun); }
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 1px solid var(--ink); margin-top: -9px; }
input[type='range']::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 1px solid var(--ink); }
html[dir='rtl'] input[type='range'] { --range-dir: left; }
.calc__result { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 20px 30px; }
.calc__result span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.calc__result b { font-weight: 400; font-size: 18px; font-variant-numeric: tabular-nums; }
.calc__big { grid-column: 1 / -1; }
.calc__big b { font-family: var(--f-display); font-weight: 300; font-size: clamp(40px, 4.4vw, 72px); line-height: 1.15; }

/* ---------- inquire ---------- */
.inquire { position: relative; color: var(--foam); padding-block: clamp(120px, 16vh, 220px); overflow: hidden; background: var(--deep); }
.inquire__bg { position: absolute; inset: 0; opacity: 0.6; }
.inquire__bg video { width: 100%; height: 100%; object-fit: cover; }
.inquire::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, var(--deep), rgba(7, 26, 31, 0.35) 30%, rgba(7, 26, 31, 0.75)); }
.inquire__grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.inquire__copy { grid-column: 1 / 6; }
.inquire__copy .eyebrow { color: var(--foam-2); }
.inquire__copy .lead { margin-top: 26px; }
.form { grid-column: 7 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 26px; position: relative; }
.field { position: relative; grid-column: 1 / -1; }
.field--phone { grid-column: 1; }
.field--email { grid-column: 2; }
.field input, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-d); padding: 26px 0 12px; font-size: 18px; font-weight: 300; color: var(--foam); border-radius: 0; outline: none; resize: vertical; transition: border-color 0.4s; }
.field input:focus, .field textarea:focus { border-color: var(--foam); }
.field label { position: absolute; inset-inline-start: 0; top: 26px; font-size: 16px; color: var(--foam-3); pointer-events: none; transform-origin: 100% 0; transition: transform 0.45s var(--ease-out), color 0.3s; }
html[dir='ltr'] .field label { transform-origin: 0 0; }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-26px) scale(0.78); color: var(--foam-2); }
.field .err { position: absolute; inset-inline-start: 0; bottom: -22px; font-size: 12px; color: #f0a07a; opacity: 0; transition: opacity 0.3s; }
.field.is-err input { border-color: #f0a07a; }
.field.is-err .err { opacity: 1; }
.chips { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-size: 13px; color: var(--foam-3); margin-bottom: 14px; width: 100%; }
.chips span { border-color: var(--line-d); color: var(--foam-2); }
.chips input:checked + span { background: var(--foam); color: var(--deep); border-color: var(--foam); }
.consent { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--foam-2); cursor: pointer; }
.consent input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border: 1px solid rgba(242, 240, 234, 0.4); border-radius: 4px; display: grid; place-items: center; flex: none; margin: 0; cursor: pointer; }
.consent input:checked { background: var(--sun); border-color: var(--sun); }
.consent input:checked::after { content: ''; width: 8px; height: 4px; border-inline-start: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.consent.is-err input { border-color: #f0a07a; }
.form .btn { grid-column: 1 / -1; justify-self: start; }
.form__demo { grid-column: 1 / -1; font-size: 12px; color: var(--foam-3); margin-top: -10px; }
.form__ok { position: absolute; inset: -10px; background: var(--deep); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; opacity: 0; visibility: hidden; transition: opacity 0.8s var(--ease), visibility 0.8s; }
.form.is-sent .form__ok { opacity: 1; visibility: visible; }
.form__ok h3 { font-family: var(--f-display); font-weight: 200; font-size: clamp(34px, 4vw, 62px); line-height: 1.2; }
.form__ok p { color: var(--foam-2); font-size: 16px; }
.form__okmark svg { width: 64px; height: 64px; fill: none; stroke: var(--foam); stroke-width: 1.4; }
.form__okmark circle { fill: var(--sun); stroke: none; }
.form__okmark path { stroke-dasharray: 120; stroke-dashoffset: 120; }
.form.is-sent .form__okmark path { animation: draw 1.6s var(--ease-out) forwards 0.2s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- footer ---------- */
.foot { position: relative; background: #05141a; color: var(--foam); padding-top: clamp(90px, 10vw, 150px); overflow: hidden; }
.foot__top { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; align-items: start; }
.foot__tag { font-family: var(--f-display); font-weight: 250; font-size: clamp(24px, 2.4vw, 38px); line-height: 1.35; max-width: 12em; }
.foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; font-size: 14.5px; color: var(--foam-2); }
.foot__cols .eyebrow { color: var(--foam-3); }
.foot__ltr { text-align: end; } html[dir='ltr'] .foot__ltr { text-align: start; }
.foot__cols > div:last-child { justify-self: end; }
.foot__wm { margin-top: clamp(70px, 9vw, 130px); padding-inline: var(--gutter); }
.foot__wm svg { width: 100%; height: auto; display: block; overflow: visible; }
.foot__legal { display: grid; grid-template-columns: 1.4fr auto; gap: 14px 40px; padding-block: 40px 46px; margin-top: 46px; border-top: 1px solid var(--line-d); font-size: 12.5px; color: var(--foam-3); line-height: 1.8; }
.foot__credit { justify-self: end; color: var(--foam-2); }
.foot__credit a { color: var(--foam); border-bottom: 1px solid var(--sun); padding-bottom: 2px; font-family: 'Alexandria', sans-serif; letter-spacing: 0.04em; }
.foot__photos { grid-column: 1 / -1; }

/* ---------- optional 3D tour ---------- */
#world { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 79; display: none; touch-action: none; background: #0b1a1e; }
.is-exploring #world { display: block; cursor: grab; }
.is-exploring #world:active { cursor: grabbing; }
.explore { position: fixed; inset: 0; z-index: 80; pointer-events: none; visibility: hidden; color: var(--ink); overflow: hidden; }
.is-exploring .explore { visibility: visible; }
.is-exploring main, .is-exploring .foot, .is-exploring .hdr { visibility: hidden; }
.ex__loading { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 18px; background: var(--deep); color: var(--foam-2); font-size: 14px; pointer-events: auto; transition: opacity 0.8s var(--ease), visibility 0.8s; }
.ex__loading i { width: 160px; height: 1px; background: var(--line-d); position: relative; overflow: hidden; }
.ex__loading i::after { content: ''; position: absolute; inset: 0; background: var(--foam); transform-origin: 0 50%; animation: load 1.6s var(--ease-io) infinite; }
@keyframes load { 0% { transform: scaleX(0); } 60% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
.is-tour-ready .ex__loading { opacity: 0; visibility: hidden; pointer-events: none; }
.ex__top, .ex__bottom { position: absolute; inset-inline: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px var(--gutter); pointer-events: none; }
.ex__top { top: 0; align-items: flex-start; }
.ex__bottom { bottom: 0; align-items: flex-end; }
.ex__top > *, .ex__bottom > * { pointer-events: auto; }
.ex__titles h2 { font-family: var(--f-display); font-weight: 300; font-size: 30px; line-height: 1.2; color: var(--foam); text-shadow: 0 1px 18px rgba(0, 0, 0, 0.3); }
.ex__titles p { font-size: 13px; color: var(--foam-2); }
.ex__filters { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; background: rgba(236, 234, 228, 0.94); border-radius: 100px; box-shadow: 0 10px 40px rgba(10, 20, 22, 0.18); transition: opacity 0.5s; }
.ex__filters .chip { border-color: transparent; color: #3f4c4b; }
.ex__filters .chip.is-on { background: #0e1a1d; color: #eceae4; }
html.has-panel .ex__filters { opacity: 0; pointer-events: none; }
.ex__tools { display: flex; gap: 8px; }
.ex__tools .tool { background: rgba(236, 234, 228, 0.94); border-color: transparent; color: #0e1a1d; }
.legend--ex { padding: 12px 18px; background: rgba(236, 234, 228, 0.94); border-radius: 100px; color: #3f4c4b; }
.ex__hint { font-size: 12.5px; color: var(--foam); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5); padding-bottom: 12px; }
.ex__compass svg { width: 46px; height: 46px; }
.ex__compass circle { fill: rgba(236, 234, 228, 0.94); }
.ex__compass path { fill: var(--sun); }
.ex__compass text { font: 500 8px 'Alexandria', sans-serif; text-anchor: middle; fill: #0e1a1d; }
.ex__pins, .ex__labels { position: absolute; inset: 0; pointer-events: none; }
.pin { position: absolute; left: 0; top: 0; width: 22px; height: 22px; margin: -11px 0 0 -11px; pointer-events: auto; cursor: pointer; display: grid; place-items: center; will-change: transform; }
.pin::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--pc); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.8); transition: transform 0.35s var(--ease-out); }
.pin:hover::before, .pin.is-sel::before { transform: scale(1.6); }
.pin[data-s='available'] { --pc: var(--sun); } .pin[data-s='reserved'] { --pc: #c9b998; } .pin[data-s='sold'] { --pc: #8a918f; }
.pin.is-dim { opacity: 0.12; pointer-events: none; }
.alabel { position: absolute; left: 0; top: 0; white-space: nowrap; font-size: 12px; color: var(--foam); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6); display: flex; flex-direction: column; align-items: center; will-change: transform; }
.alabel::after { content: ''; width: 1px; height: 22px; background: rgba(242, 240, 234, 0.7); margin-top: 4px; }
.ex__tip { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; padding: 12px 16px; background: var(--deep); color: var(--foam); border-radius: 12px; font-size: 13px; line-height: 1.6; opacity: 0; transform: translate(-50%, calc(-100% - 18px)); transition: opacity 0.25s; }
.ex__tip.is-on { opacity: 1; }
.ex__tip b { display: block; font-family: var(--f-display); font-size: 18px; font-weight: 300; }
.ex__panel { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: min(420px, 92vw); background: var(--deep); color: var(--foam); pointer-events: auto; transform: translateX(105%); transition: transform 0.85s var(--ease-io); overflow-y: auto; }
html[dir='rtl'] .ex__panel { transform: translateX(-105%); }
html.has-panel .ex__panel { transform: none; }
.ex__pclose { position: absolute; top: 16px; inset-inline-end: 16px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(7, 26, 31, 0.6); color: var(--foam); z-index: 2; }
.ex__pclose svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.explore:focus, .detail:focus { outline: none; }

/* ---------- motion defaults ---------- */
[data-reveal='fade'] { opacity: 0; transform: translateY(24px); }
.reduced [data-reveal='fade'] { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .hdr__nav { display: none; }
  .hdr { grid-template-columns: 1fr auto; }
  .tool--menu { display: grid; }
}
@media (max-width: 1000px) {
  .rc__inner { grid-template-columns: 1fr; grid-template-rows: 44% 1fr; }
  .rc__name { margin-top: 18px; }
  .detail__body > * { grid-column: 1 / -1 !important; }
  .arch__grid, .location__grid, .payment__grid, .inquire__grid { grid-template-columns: 1fr; row-gap: 56px; }
  .arch__copy, .arch__study, .location__copy, .map, .payment__copy, .calc, .inquire__copy, .form { grid-column: 1 / -1; }
  .materials ul { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --hdr-h: 70px; --wm-w: 72vw; }
  body { font-size: 16px; }
  .hdr__cta, .tool--sound, .hdr__clock { display: none; }
  .hdr__wm { width: 62px; }
  .hero { height: 330vh; }
  .hero__flank, html[lang='en'] .hero__flank { font-size: 10vw; max-width: none; inset-inline: var(--gutter); text-align: center; }
  .hero__flank--a { top: 14vh; }
  .hero__flank--b { top: auto; bottom: 14vh; }
  .hero__stats { gap: 14px; }
  .hero__stats li { min-width: 0; flex: 1; }
  .hero__stats span { font-size: 12px; }
  .hero__meta .hero__coords { display: none; }
  .idea__foot { flex-direction: column; gap: 16px; }
  .rc { height: auto; min-height: 0; position: relative; top: 0; }
  .rc__inner { grid-template-rows: 38vh auto; }
  .day__pin { height: auto; padding-bottom: 60px; }
  .day__top { flex-direction: column; align-items: flex-start; }
  .day__clock { align-items: flex-start; }
  .day__track { flex-direction: column; width: auto; margin-top: 40px; gap: 60px; }
  .slot { width: 100%; }
  .slot__media { height: 58vh; }
  .plan__drawing { overflow-x: auto; }
  .plan__drawing svg { width: 980px; max-width: none; }
  .plan__panel { position: fixed; top: auto; bottom: 0; height: 78vh; width: 100%; transform: translateY(105%) !important; border-radius: 20px 20px 0 0; z-index: 85; }
  .plan.has-sel .plan__panel { transform: none !important; }
  .materials ul { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .field--phone, .field--email { grid-column: 1; }
  .calc__result { grid-template-columns: 1fr; }
  .foot__top { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .foot__cols > div:last-child { justify-self: start; }
  .foot__legal { grid-template-columns: 1fr; }
  .foot__credit { justify-self: start; }
  .detail__hero { height: 62vh; }
  .detail__body { margin-top: -12vh; row-gap: 40px; }
  .dt__gallery { grid-template-columns: 1fr; }
  .ex__filters, .ex__hint, .ex__compass { display: none; }
  .ex__panel { top: auto; height: 74vh; width: 100%; transform: translateY(105%) !important; border-radius: 22px 22px 0 0; }
  html.has-panel .ex__panel { transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .grain { display: none; }
}
