/* ==========================================================================
   Al Yalayis by Ellington — alyalayisellington.com
   Design-led landing page. No external assets beyond Google Fonts, so the
   page renders complete before any official renders are dropped in.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Teodor (Displaay Type Foundry) — headings.
   Commercial licence required; the files are NOT in this repo. Buy at
   displaay.net/typeface/teodor, export woff2 + woff, and drop them at the
   paths below. Until then every heading falls back to Cormorant Garamond,
   which is already tuned to the layout, so nothing breaks in the meantime.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Teodor";
  src: url("../assets/fonts/Teodor-Light.woff2") format("woff2"),
       url("../assets/fonts/Teodor-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Teodor";
  src: url("../assets/fonts/Teodor-Regular.woff2") format("woff2"),
       url("../assets/fonts/Teodor-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Teodor";
  src: url("../assets/fonts/Teodor-Italic.woff2") format("woff2"),
       url("../assets/fonts/Teodor-Italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Teodor";
  src: url("../assets/fonts/Teodor-Medium.woff2") format("woff2"),
       url("../assets/fonts/Teodor-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Teodor";
  src: url("../assets/fonts/Teodor-Semibold.woff2") format("woff2"),
       url("../assets/fonts/Teodor-Semibold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #14161a;
  --ink-soft: #22262c;
  --ink-line: rgba(20, 22, 26, 0.12);
  --sand: #f7f4ef;
  --sand-deep: #ece6dc;
  --bronze: #a8865f;
  --bronze-light: #c9ab84;
  --sage: #5f6f5c;
  --sage-light: #8fa088;
  --paper: #ffffff;
  --body: #4a4f56;

  --display: "Teodor", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1560px;
  --gutter: clamp(20px, 4.5vw, 72px);
  --sec-y: clamp(64px, 9vw, 132px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--body);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.005em;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.012em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.9rem, 7.2vw, 5.6rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--sec-y); }
.bg-alt { background: var(--sand-deep); }
.bg-paper { background: var(--paper); }

.bg-dark {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
}
.bg-dark h2,
.bg-dark h3,
.bg-dark h4 { color: #fff; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bronze);
  margin: 0 0 1.4rem;
  display: block;
}
.bg-dark .eyebrow { color: var(--bronze-light); }

.lede {
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
  line-height: 1.72;
  color: var(--ink-soft);
  font-weight: 300;
}
.bg-dark .lede { color: rgba(255, 255, 255, 0.85); }

.sec-head { max-width: 820px; margin-bottom: clamp(40px, 5vw, 72px); }

/* The container is wide; body copy is not. Cap the measure so lines stay
   readable instead of running the full width of the section. */
.split p,
.split .lede { max-width: 64ch; }
.sec-head.centre { margin-inline: auto; text-align: center; }

.rule {
  width: 56px;
  height: 1px;
  background: var(--bronze);
  border: 0;
  margin: 0 0 1.6rem;
}
.sec-head.centre .rule { margin-inline: auto; }

/* ---------- Buttons ---------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.12em 2.3em;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn:hover { background: var(--bronze); border-color: var(--bronze); transform: translateY(-2px); }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.btn-light { background: #fff; border-color: #fff; color: var(--ink); }
.btn-light:hover { background: var(--bronze); border-color: var(--bronze); color: #fff; }

.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn-block { width: 100%; }

/* ---------- Header ----------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 20px;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease),
              box-shadow 0.4s var(--ease);
}
.site-header.scrolled {
  background: rgba(247, 244, 239, 0.96);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  padding-block: 12px;
  box-shadow: 0 1px 0 var(--ink-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { text-decoration: none; line-height: 1.05; }
.brand-name {
  display: block;
  font-family: var(--display);
  font-size: 1.42rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  transition: color 0.4s var(--ease);
}
.brand-sub {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
  margin-top: 3px;
  transition: color 0.4s var(--ease);
}
.scrolled .brand-name { color: var(--ink); }
.scrolled .brand-sub { color: var(--bronze); }

.nav-desktop { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.nav-desktop a {
  font-size: 0.74rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.3s var(--ease);
}
.nav-desktop a:hover { color: var(--bronze-light); }
.scrolled .nav-desktop a { color: var(--ink-soft); }
.scrolled .nav-desktop a:hover { color: var(--bronze); }

.nav-desktop .btn {
  padding: 0.85em 1.6em;
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
  color: #fff;
}
.nav-desktop .btn:hover { background: #fff; color: var(--ink); border-color: #fff; }
.scrolled .nav-desktop .btn { border-color: var(--ink); background: var(--ink); color: #fff; }
.scrolled .nav-desktop .btn:hover { background: var(--bronze); border-color: var(--bronze); color: #fff; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: transparent; cursor: pointer;
  padding: 0; position: relative;
}
.nav-toggle span {
  position: absolute; left: 9px; right: 9px; height: 1px;
  background: #fff; transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.scrolled .nav-toggle span { background: var(--ink); }
.nav-open .nav-toggle span { background: #fff; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 96px var(--gutter) 48px;
  transform: translateY(-100%);
  transition: transform 0.55s var(--ease);
  z-index: 99;
  overflow-y: auto;
}
.nav-open .nav-mobile { transform: translateY(0); }
.nav-mobile a:not(.btn) {
  font-family: var(--display);
  font-size: 1.9rem;
  color: #fff;
  text-decoration: none;
  padding: 0.28em 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.nav-mobile .btn { margin-top: 26px; border: 0; }

/* ---------- Hero ------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(56px, 8vw, 104px);
  padding-top: 140px;
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}

/* Background stack, back to front:
   .hero-scene (dusk sky)  →  .hero-sun  →  .hero-skyline  →  .hero-photo
   →  .hero-scrim (legibility)  →  .hero-grain.
   The first three are a self-contained fallback: if the photograph is absent
   the hero still reads as a designed dusk scene rather than a flat colour. */

.hero-scene {
  position: absolute;
  inset: 0;
  z-index: -6;
  background:
    linear-gradient(to bottom,
      #10131a 0%,
      #1a1f27 26%,
      #2e3230 46%,
      #4e4636 56%,
      #7d6544 60%,
      #b98d55 62.4%,
      #7a5f3e 64%,
      #3c3a30 68%,
      #23262528 78%,
      #16181b 100%);
}
/* Warm bloom sitting on the horizon line */
.hero-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(58% 30% at 72% 62%, rgba(240, 196, 138, 0.55) 0%, rgba(200, 150, 96, 0.16) 45%, rgba(0, 0, 0, 0) 72%);
}

/* A crisp sun disc rather than a blurred blob */
.hero-sun {
  position: absolute;
  z-index: -5;
  top: 55.5%; left: 71%;
  width: clamp(56px, 6.4vw, 92px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #fdf1dc 0%, #f6dcae 52%, #e8bd80 78%, rgba(232, 189, 128, 0) 100%);
  box-shadow: 0 0 clamp(40px, 7vw, 110px) clamp(14px, 2.4vw, 34px) rgba(238, 190, 132, 0.4);
}

.hero-skyline {
  position: absolute;
  z-index: -4;
  left: 0; right: 0;
  bottom: 0;
  width: 100%;
  height: 38%;
}

.hero-photo {
  position: absolute;
  z-index: -3;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Holds the lagoon and the horizon skyline in frame as the viewport narrows */
  object-position: 58% 46%;
  animation: heroPhoto 1.4s var(--ease) both, heroDrift 26s ease-out 1.4s both;
}
@keyframes heroPhoto {
  from { opacity: 0; }
  to   { opacity: 1; }
}
/* Barely-there push in — reads as depth, not as motion */
@keyframes heroDrift {
  from { transform: scale(1.07); }
  to   { transform: scale(1); }
}

/* Tuned to this render: it is bright and busy, so the bottom two-thirds carry a
   heavy wash for the headline, while the horizon band around 60–80% stays clear
   enough to keep the Dubai skyline readable. */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(to top,
      rgba(9, 11, 14, 0.96) 0%,
      rgba(9, 11, 14, 0.9) 16%,
      rgba(9, 11, 14, 0.72) 32%,
      rgba(9, 11, 14, 0.4) 50%,
      rgba(9, 11, 14, 0.14) 66%,
      rgba(9, 11, 14, 0.16) 78%,
      rgba(9, 11, 14, 0.34) 89%,
      rgba(9, 11, 14, 0.58) 100%),
    linear-gradient(to right,
      rgba(9, 11, 14, 0.74) 0%,
      rgba(9, 11, 14, 0.46) 28%,
      rgba(9, 11, 14, 0.1) 56%,
      rgba(9, 11, 14, 0) 74%);
}

.hero-credit {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  bottom: 14px;
  margin: 0;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.34);
}

.hero-grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.hero-inner { position: relative; z-index: 2; width: 100%; }

/* Staggered entrance — each block settles a beat after the one above it. */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
.hero-inner > * { animation: heroIn 1s var(--ease) both; }
.hero-eyebrow { animation-delay: 0.15s; }
.hero h1      { animation-delay: 0.28s; }
.hero-sub     { animation-delay: 0.44s; }
.hero-cta     { animation-delay: 0.58s; }
.hero-meta    { animation-delay: 0.72s; }

.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--bronze-light);
  margin: 0 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 14px;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.7);
}
.hero-eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--bronze);
  flex: none;
}

.hero h1 {
  color: #fff;
  max-width: 15ch;
  margin-bottom: 0.3em;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
}
.hero h1 em {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--bronze-light);
}
.hero-sub {
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  margin-bottom: 2.4rem;
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.45);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
/* Hairline dividers between items rather than raw gap */
.hero-meta div {
  min-width: 118px;
  padding-right: clamp(20px, 3.4vw, 42px);
  margin-right: clamp(20px, 3.4vw, 42px);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}
.hero-meta div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-meta dt {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
  margin-bottom: 0.55em;
}
.hero-meta dd {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  color: #fff;
  line-height: 1.2;
}

.scroll-hint {
  position: absolute;
  bottom: 26px; right: var(--gutter);
  z-index: 2;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
  writing-mode: vertical-rl;
  display: flex; align-items: center; gap: 12px;
  animation: heroIn 1s var(--ease) 0.9s both;
}
/* Static hairline track with a highlight travelling down it */
.scroll-hint::after {
  content: "";
  width: 1px; height: 56px;
  background-color: rgba(255, 255, 255, 0.22);
  background-image: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #fff 50%, rgba(255,255,255,0) 100%);
  background-size: 100% 30px;
  background-repeat: no-repeat;
  animation: scrollCue 2.4s linear infinite;
}
@keyframes scrollCue {
  0%   { background-position: 0 -30px; }
  100% { background-position: 0 56px; }
}

/* ---------- Split layout ----------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}
.split.narrow-left { grid-template-columns: 0.85fr 1.15fr; }

.stat-stack { display: grid; gap: 26px; }
.stat-stack .stat {
  padding-left: 22px;
  border-left: 2px solid var(--bronze);
}
.stat-stack .stat b {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.1;
}
.stat-stack .stat span {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

/* ---------- Cards ------------------------------------------------------ */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(18px, 2.4vw, 30px);
}

.card {
  background: var(--paper);
  border: 1px solid var(--ink-line);
  padding: clamp(28px, 3.4vw, 42px);
  display: flex;
  flex-direction: column;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px -26px rgba(20, 22, 26, 0.4);
}
.bg-paper .card { background: var(--sand); }

.card-tag {
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 1.1rem;
}
.card h3 { margin-bottom: 1.2rem; }
.card p { font-size: 0.98rem; }

/* Image sits directly under the heading. If the file is missing the <img>
   removes itself and the label underneath shows through — no broken icon. */
.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sand-deep);
  margin-bottom: 1.5rem;
}
.bg-paper .card-media,
.card:hover .card-media { background: var(--sand-deep); }
.card-media picture { display: contents; }
.card-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.card:hover .card-media img { transform: scale(1.04); }

.media-pending {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  padding: 1em;
  text-align: center;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9aa0a8;
  background-image:
    repeating-linear-gradient(45deg, rgba(20, 22, 26, 0.045) 0 10px, rgba(0, 0, 0, 0) 10px 20px);
}

/* auto top margin pins the specs + CTA block to the card's base, so the three
   cards line up regardless of how long each paragraph runs */
.card-specs {
  list-style: none;
  margin: auto 0 0;
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--ink-line);
  display: grid;
  gap: 0.65rem;
  font-size: 0.9rem;
}
.card-specs li { display: flex; justify-content: space-between; gap: 16px; }
.card-specs li span:first-child { color: #7a8089; }
.card-specs li span:last-child { color: var(--ink); font-weight: 400; text-align: right; }

.card-cta { margin-top: 1.5rem; padding-block: 0.95em; }

/* ---------- Image diptych ---------------------------------------------- */

.diptych {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(48px, 6vw, 84px);
}
.diptych figure { margin: 0; }

/* Second panel drops a touch so the pair reads as composed, not tiled */
.diptych figure:nth-child(2) { transform: translateY(clamp(16px, 3vw, 44px)); }

.diptych .frame {
  overflow: hidden;
  background: var(--sand-deep);
  aspect-ratio: 16 / 10;
}
.diptych img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.diptych figure:hover img { transform: scale(1.035); }

.diptych figcaption {
  margin-top: 1.05rem;
  font-size: 0.9rem;
  line-height: 1.62;
  color: #7a8089;
  padding-left: 16px;
  border-left: 2px solid var(--bronze);
}
.diptych figcaption b {
  display: block;
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

@media (max-width: 900px) {
  .diptych { grid-template-columns: 1fr; gap: clamp(28px, 6vw, 40px); }
  .diptych figure:nth-child(2) { transform: none; }
  .diptych .frame { aspect-ratio: 16 / 9; }
}

/* ---------- Unit / pricing table --------------------------------------- */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--ink-line);
  background: var(--paper);
}
.bg-alt .table-scroll { background: var(--sand); }

.unit-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.96rem;
}
.unit-table th,
.unit-table td {
  text-align: left;
  padding: 1.05em clamp(14px, 2vw, 26px);
  border-bottom: 1px solid var(--ink-line);
  font-weight: 300;
}
.unit-table thead th {
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bronze);
  background: var(--sand-deep);
  border-bottom-color: rgba(20, 22, 26, 0.2);
}
.bg-alt .unit-table thead th { background: var(--sand); }
.unit-table tbody th {
  color: var(--ink);
  font-weight: 400;
  font-family: var(--display);
  font-size: 1.14rem;
}
.unit-table tbody tr:last-child th,
.unit-table tbody tr:last-child td { border-bottom: 0; }
.unit-table tbody tr:hover th,
.unit-table tbody tr:hover td { background: var(--sand-deep); }
.bg-alt .unit-table tbody tr:hover th,
.bg-alt .unit-table tbody tr:hover td { background: var(--paper); }
.unit-table td:last-child {
  font-family: var(--display);
  font-size: 1.14rem;
  color: var(--bronze);
  white-space: nowrap;
}

.fineprint {
  margin-top: 1.6rem;
  font-size: 0.84rem;
  line-height: 1.7;
  color: #7a8089;
  max-width: 86ch;
}
.fineprint strong { color: var(--ink); font-weight: 400; }

/* ---------- Payment milestone steps ------------------------------------ */

.pay-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--ink-line);
  border: 1px solid var(--ink-line);
  margin-bottom: 34px;
}
.pay-steps > div {
  background: var(--sand-deep);
  padding: clamp(22px, 2.8vw, 32px);
}
.bg-alt .pay-steps > div { background: var(--sand); }
.pay-steps b {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.35em;
}
.pay-steps span {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 0.9em;
}
.pay-steps p { margin: 0; font-size: 0.92rem; line-height: 1.62; }

/* Amenity tiles */
/* Four amenity renders, square, above the list */
.amenity-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.6vw, 24px);
  margin-bottom: clamp(48px, 6vw, 86px);
}
.amenity-showcase figure { margin: 0; }
.amenity-showcase picture {
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--sand);
}
.amenity-showcase img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.amenity-showcase figure:hover img { transform: scale(1.04); }
.amenity-showcase figcaption {
  margin-top: 0.9rem;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Borderless list: icon left, text right. No tiles, no dividers — the grid
   gap does the separating. */
.amenity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: clamp(28px, 4vw, 72px);
  row-gap: clamp(28px, 3.4vw, 46px);
}
.amenity {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 18px;
  align-items: start;
}
.amenity svg {
  width: 30px;
  height: 30px;
  stroke: var(--ink-soft);
  fill: none;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 2px;
}
.amenity h4 {
  grid-column: 2;
  margin-bottom: 0.25rem;
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
}
.amenity p {
  grid-column: 2;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  color: #7a8089;
}

@media (max-width: 1100px) {
  .amenity-showcase { grid-template-columns: repeat(2, 1fr); }
  .amenity-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .amenity-grid { grid-template-columns: 1fr; }
}

/* ---------- Masterplan SVG --------------------------------------------- */

.plan-frame {
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: clamp(16px, 2.4vw, 30px);
}
.plan-frame svg { width: 100%; height: auto; display: block; }

.plan-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  margin-top: 22px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.plan-legend span { display: inline-flex; align-items: center; gap: 9px; }
.plan-legend i {
  width: 11px; height: 11px; border-radius: 2px; display: inline-block;
}

/* ---------- Location --------------------------------------------------- */

.times {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  counter-reset: t;
  /* stops place and time drifting far apart in the wide container */
  max-width: 620px;
}
.times li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--ink-line);
}
.times li:first-child { border-top: 1px solid var(--ink-line); }
.times .place { color: var(--ink); font-size: 1.02rem; }
.times .mins {
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--bronze);
  white-space: nowrap;
}
.times .mins small {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8b9098;
  margin-left: 6px;
}

.map-wrap {
  position: relative;
  border: 1px solid var(--ink-line);
  background: var(--sand-deep);
}
.map-embed {
  display: block;
  border: 0;
  width: 100%;
  height: clamp(340px, 38vw, 520px);
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.5s var(--ease);
  /* inert until activated — page scroll is never swallowed as a map zoom */
  pointer-events: none;
}
.map-wrap.active .map-embed {
  pointer-events: auto;
  filter: grayscale(0);
}

.map-activate {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(20, 22, 26, 0.06);
  display: grid;
  place-items: center;
  transition: background 0.4s var(--ease), opacity 0.3s var(--ease);
}
.map-activate:hover { background: rgba(20, 22, 26, 0.14); }
.map-activate span {
  background: var(--ink);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.95em 1.9em;
}
.map-wrap.active .map-activate { display: none; }

/* ---------- Payment plan ----------------------------------------------- */

.pay-track {
  display: grid;
  grid-template-columns: 70fr 30fr;
  gap: 4px;
  margin-bottom: 34px;
}
.pay-track > div {
  padding: clamp(24px, 3vw, 36px);
  color: #fff;
}
.pay-a { background: var(--sage); }
.pay-b { background: var(--bronze); }
.pay-track b {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 500;
  line-height: 1;
  margin-bottom: 0.3em;
}
.pay-track span {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.86;
}
.pay-track p { margin: 0.9em 0 0; font-size: 0.94rem; color: rgba(255,255,255,0.88); }

.pay-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 34px;
  position: relative;
  padding-left: 20px;
}
.pay-timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 31px;
  width: 1px;
  background: var(--ink-line);
  z-index: 0;
}
.pay-time-item {
  display: flex;
  gap: 30px;
  position: relative;
  z-index: 1;
}
.pay-time-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sand);
  border: 4px solid var(--bronze);
  flex-shrink: 0;
  margin-top: 24px;
  box-shadow: 0 0 0 6px var(--sand-deep);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.bg-alt .pay-time-dot {
  background: var(--sand-deep);
  box-shadow: 0 0 0 6px var(--sand);
}
.pay-time-content {
  background: var(--sand-deep);
  padding: 24px 32px;
  border: 1px solid var(--ink-line);
  flex-grow: 1;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.bg-alt .pay-time-content {
  background: var(--sand);
}
.pay-time-item:hover .pay-time-content {
  transform: translateX(4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  border-color: var(--bronze);
}
.pay-time-item:hover .pay-time-dot {
  background: var(--bronze);
  transform: scale(1.1);
}
.pay-time-content b {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.35em;
  transition: color 0.3s var(--ease);
}
.pay-time-item:hover .pay-time-content b {
  color: var(--bronze);
}
.pay-time-content span {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 0.9em;
}
.pay-time-content p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.62;
}

@media (max-width: 640px) {
  .pay-timeline::before { left: 23px; }
  .pay-time-dot { width: 20px; height: 20px; margin-top: 18px; }
  .pay-time-item { gap: 20px; }
  .pay-time-content { padding: 20px; }
}

.pay-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin-top: 30px;
}
.pay-note-card {
  background: var(--sand-deep);
  border: 1px solid var(--ink-line);
  padding: 24px;
  border-radius: 8px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.bg-alt .pay-note-card {
  background: var(--sand);
}
.pay-note-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.05);
  border-color: var(--bronze);
}
.pay-note-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(168, 134, 95, 0.1);
  color: var(--bronze);
  margin-bottom: 16px;
  transition: transform 0.3s var(--ease);
}
.pay-note-card:hover .pay-note-icon {
  transform: scale(1.1);
}
.pay-note-icon svg {
  width: 18px;
  height: 18px;
}
.pay-note-card h4 {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.pay-note-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #7a8089;
  margin: 0;
}

/* ---------- FAQ -------------------------------------------------------- */

.faq { max-width: 900px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--ink-line); }
.faq-item:first-child { border-top: 1px solid var(--ink-line); }
.faq-q {
  width: 100%;
  background: none;
  border: 0;
  padding: 1.5rem 44px 1.5rem 0;
  text-align: left;
  cursor: pointer;
  position: relative;
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: var(--ink);
  line-height: 1.35;
}
.faq-q::after,
.faq-q::before {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  background: var(--bronze);
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.faq-q::before { width: 16px; height: 1px; transform: translateY(-50%); }
.faq-q::after { width: 1px; height: 16px; right: 15px; transform: translateY(-50%); }
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(90deg); opacity: 0; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease);
}
.faq-a > div { padding: 0 44px 1.7rem 0; font-size: 1rem; }

/* ---------- Lead form -------------------------------------------------- */

.lead-section {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  position: relative;
  overflow: hidden;
}
.lead-section::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto auto;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(168, 134, 95, 0.28) 0%, rgba(168, 134, 95, 0) 66%);
  pointer-events: none;
}
.lead-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(38px, 6vw, 84px);
  align-items: start;
}
.lead-section h2 { color: #fff; }
.lead-section .lede { color: rgba(255, 255, 255, 0.85); }

.lead-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.lead-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.98rem; }
.lead-list li::before {
  content: "";
  flex: none;
  width: 7px; height: 7px;
  margin-top: 0.6em;
  background: var(--bronze);
  transform: rotate(45deg);
}

.form-card {
  max-width: 620px;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: clamp(26px, 3.6vw, 44px);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: 0.55rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  padding: 0.92em 1em;
  border-radius: 0;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(255, 255, 255, 0.36); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--bronze-light);
  background: rgba(255, 255, 255, 0.1);
}
.field select option { background: var(--ink); color: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* intl-tel-input dark theme overrides */
.iti { width: 100%; display: block; }
.iti__country-list {
  background-color: var(--ink) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #fff !important;
  border-radius: 4px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
}
.iti__country-name { color: #fff !important; }
.iti__dial-code { color: rgba(255, 255, 255, 0.6) !important; }
.iti__country.iti__highlight { background-color: rgba(255, 255, 255, 0.1) !important; }
.iti__selected-flag { background: transparent !important; }
.iti--allow-dropdown input, .iti--allow-dropdown input[type=text], .iti--allow-dropdown input[type=tel], .iti--allow-dropdown input[type=password] {
  padding-right: 1em !important;
}

.form-note {
  font-size: 0.76rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 16px;
}
.form-msg {
  margin-top: 16px;
  font-size: 0.9rem;
  padding: 0.9em 1em;
  display: none;
}
.form-msg.ok { display: block; background: rgba(95, 111, 92, 0.3); border: 1px solid var(--sage-light); color: #dcecd8; }
.form-msg.err { display: block; background: rgba(160, 60, 50, 0.22); border: 1px solid rgba(220, 130, 120, 0.6); color: #f3d2ce; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ----------------------------------------------------- */

.site-footer {
  background: #0f1114;
  color: rgba(255, 255, 255, 0.5);
  padding-block: clamp(48px, 6vw, 76px) 34px;
  font-size: 0.9rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 38px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.site-footer h4 {
  color: #fff;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.footer-brand {
  font-family: var(--display);
  font-size: 1.65rem;
  color: #fff;
  margin-bottom: 0.7rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.site-footer a { text-decoration: none; transition: color 0.3s var(--ease); }
.site-footer a:hover { color: var(--bronze-light); }
.footer-bottom {
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.38);
}
.disclaimer {
  margin-top: 22px;
  font-size: 0.74rem;
  line-height: 1.66;
  color: rgba(255, 255, 255, 0.32);
  max-width: 100%;
}

/* ---------- Sticky mobile CTA ------------------------------------------ */

.sticky-cta {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 90;
  display: none;
  gap: 1px;
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(110%);
  transition: transform 0.45s var(--ease);
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta a {
  flex: 1;
  padding: 1.05em 0.6em;
  text-align: center;
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--ink);
  color: #fff;
}
.sticky-cta a.primary { background: var(--bronze); }

/* ---------- Reveal animation ------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- Responsive -------------------------------------------------- */

@media (max-width: 980px) {
  .split,
  .split.narrow-left,
  .lead-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: block; }
  .scroll-hint { display: none; }
  .sticky-cta { display: flex; }
  /* Leave room so the sticky bar never covers the footer's last line. */
  body { padding-bottom: 52px; }
  .hero { min-height: 92svh; padding-top: 112px; }
  .hero-cta .btn { width: 100%; }
  /* Vertical dividers fall apart once items wrap — switch to a 2-up grid with
     hairline rows, and let the long "Homes" value span the full width. */
  .hero-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 22px;
    margin-top: 30px;
    padding-top: 12px;
  }
  .hero-meta div {
    min-width: 0;
    margin: 0;
    padding: 13px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  }
  .hero-meta div:nth-child(3) { grid-column: 1 / -1; }
  .hero-meta div:nth-child(4),
  .hero-meta div:nth-child(5) { border-bottom: 0; }
  .hero-meta dd { font-size: 1.08rem; }
  .hero-credit { bottom: 10px; font-size: 0.54rem; }
  .pay-track { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  html { scroll-padding-top: 72px; }
}

/* ---------- Modals ----------------------------------------------------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 22, 26, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-dialog {
  background: #fbfaf8;
  color: var(--ink);
  border: none;
  border-radius: 8px;
  width: 100%;
  max-width: 560px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.4s var(--ease);
  max-height: 90vh;
  overflow-y: auto;
  display: none;
}
.modal-overlay.open .modal-dialog.active {
  display: block;
  transform: translateY(0);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.modal-close:hover {
  opacity: 1;
}
.modal-content {
  padding: clamp(24px, 4vw, 40px);
}
.modal-content h2 {
  margin-bottom: 0.5em;
  color: var(--ink);
}
/* Override form card styles for light modal */
.modal-content .form-card {
  background: transparent;
  border: none;
  padding: 0;
  max-width: none;
}
.modal-content .field label {
  color: rgba(20, 22, 26, 0.6);
}
.modal-content .field input,
.modal-content .field select,
.modal-content .field textarea {
  background: #fff;
  border: 1px solid rgba(20, 22, 26, 0.2);
  color: var(--ink);
}
.modal-content .field input::placeholder {
  color: rgba(20, 22, 26, 0.4);
}
.modal-content .field input:focus,
.modal-content .field select:focus,
.modal-content .field textarea:focus {
  border-color: var(--bronze);
  background: #fff;
}
.modal-content .field select option {
  background: #fff;
  color: var(--ink);
}
/* intl-tel-input light theme overrides for modal */
.modal-content .iti__country-list {
  background-color: #fff !important;
  border: 1px solid rgba(20, 22, 26, 0.2) !important;
  color: var(--ink) !important;
}
.modal-content .iti__country-name { color: var(--ink) !important; }
.modal-content .iti__dial-code { color: rgba(20, 22, 26, 0.6) !important; }
.modal-content .iti__country.iti__highlight { background-color: rgba(20, 22, 26, 0.05) !important; }

/* modal buttons */
.modal-content .btn-light {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.modal-content .btn-light:hover {
  background: var(--bronze);
  border-color: var(--bronze);
}
