/* ==========================================================================
   Serina Homes — Serina Elite
   Direction taken from the client's references (Kionera, Unhid):
   small, very widely tracked display type; a quiet humanist text face;
   narrow measure; rounded image cards; warm dark grounds; gold used sparingly.
   ========================================================================== */

@font-face {
  font-family: "Saira";
  src: url("../fonts/saira-latin-wdth-normal.woff2") format("woff2-variations"), url("../fonts/saira-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 50% 125%; 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: "Saira";
  src: url("../fonts/saira-latin-ext-wdth-normal.woff2") format("woff2-variations"), url("../fonts/saira-latin-ext-wdth-normal.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 50% 125%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cabin";
  src: url("../fonts/cabin-latin-wdth-normal.woff2") format("woff2-variations"), url("../fonts/cabin-latin-wdth-normal.woff2") format("woff2");
  font-weight: 400 700; font-stretch: 75% 100%; 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: "Cabin";
  src: url("../fonts/cabin-latin-ext-wdth-normal.woff2") format("woff2-variations"), url("../fonts/cabin-latin-ext-wdth-normal.woff2") format("woff2");
  font-weight: 400 700; font-stretch: 75% 100%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --black: #000;
  --ink: #0B0906;
  --gold: #BAA360;                     /* logo gold */
  --line: rgba(239, 231, 216, .14);
  --line-gold: rgba(186, 163, 96, .38);
  --cream: #F1EADC;
  --text: rgba(241, 234, 220, .7);
  --dim: rgba(241, 234, 220, .5);
  --error: #F0A98F;

  --wide: "Saira", ui-sans-serif, system-ui, sans-serif;
  --sans: "Cabin", "Gill Sans", "Gill Sans MT", ui-sans-serif, system-ui, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --maxw: 1180px;
  --space: clamp(6rem, 13vw, 11rem);
  --radius: 12px;
  --header-h: 72px;
  --ease: cubic-bezier(.22, .7, .12, 1);
}
@media (min-width: 1024px) { :root { --header-h: 88px; } }
@media (min-width: 1920px) { html { font-size: 112.5%; } :root { --maxw: 1280px; } }
@media (min-width: 2400px) { html { font-size: 125%; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--black); color-scheme: dark; }
html.is-locked { overflow: hidden; }
body {
  margin: 0; background: var(--black); color: var(--text);
  font-family: var(--sans); font-size: .9375rem; line-height: 1.7; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1.15em; }
h1, h2, h3 { margin: 0; font-weight: inherit; font-size: inherit; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--gold); color: #000; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 200; background: var(--gold); color: #000; padding: .7rem 1.1rem; text-decoration: none; }
.skip:focus { top: 12px; }
[id] { scroll-margin-top: var(--header-h); }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.section { padding-block: var(--space); position: relative; }
.glow { background:
  radial-gradient(55% 35% at 10% 0%, rgba(186, 163, 96, .1) 0%, rgba(0,0,0,0) 70%),
  radial-gradient(40% 30% at 90% 20%, rgba(120, 92, 48, .12) 0%, rgba(0,0,0,0) 72%),
  linear-gradient(180deg, #000 0%, var(--ink) 100%); }

/* ---------- Type ---------- */
.lbl {
  font-family: var(--wide); font-stretch: 125%; font-weight: 420; text-transform: uppercase;
  font-size: .75rem; letter-spacing: .42em; line-height: 1.6; color: var(--gold);
}
.tt {                                   /* widely tracked display title */
  font-family: var(--wide); font-stretch: 125%; font-weight: 250; text-transform: uppercase;
  font-size: clamp(1.35rem, 1rem + 1.3vw, 2.05rem); letter-spacing: .62em; line-height: 1.5;
  color: var(--cream);
}
.tt .w { display: inline-block; white-space: nowrap; }
.statement { font-family: var(--sans); font-weight: 400; font-size: clamp(1.45rem, 1.05rem + 1.5vw, 2.2rem); line-height: 1.42; color: var(--cream); letter-spacing: .002em; text-wrap: balance; }
.statement--lg { font-size: clamp(1.8rem, 1.1rem + 2.6vw, 3rem); line-height: 1.2; }
.copy { font-size: .9375rem; line-height: 1.75; color: var(--text); max-width: 46ch; }
.small { font-size: .8125rem; line-height: 1.6; color: var(--dim); }
.center { text-align: center; }
.center .copy, .center .statement { margin-inline: auto; }

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .8rem; min-height: 52px; padding: .9rem 1.9rem;
  font-family: var(--wide); font-stretch: 125%; font-weight: 420; font-size: .6875rem; letter-spacing: .34em; text-transform: uppercase; line-height: 1.2;
  text-decoration: none; color: var(--cream); background: transparent; border: 1px solid rgba(241, 234, 220, .38); border-radius: 0; cursor: pointer;
  transition: border-color .3s, color .3s, background-color .3s;
}
.btn:hover { border-color: var(--gold); color: var(--gold); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: #000; }
.btn--gold:hover { background: #CDB677; border-color: #CDB677; color: #000; }
.btn[disabled] { opacity: .55; cursor: progress; }
.more {
  display: inline-flex; align-items: center; gap: .9rem; text-decoration: none;
  font-family: var(--wide); font-stretch: 125%; font-weight: 420; font-size: .6875rem; letter-spacing: .34em; text-transform: uppercase; color: var(--gold);
}
.more::after { content: ""; width: 34px; height: 1px; background: currentColor; transition: width .35s var(--ease); }
.more:hover::after { width: 52px; }
.arrow {
  width: 54px; height: 36px; display: inline-grid; place-items: center; background: none; border: 0; padding: 0; cursor: pointer; color: var(--cream);
  transition: color .2s, opacity .2s;
}
.arrow svg { width: 40px; height: 12px; }
.arrow:hover { color: var(--gold); }
.arrow[disabled] { opacity: .3; cursor: default; }

/* ---------- Header ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); transition: background-color .45s, border-color .45s; border-bottom: 1px solid transparent; }
.hdr.is-solid { background: rgba(0, 0, 0, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.hdr__in { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; }
.hdr__logo { justify-self: start; opacity: 0; transform: translateY(-6px); transition: opacity .45s var(--ease), transform .45s var(--ease); pointer-events: none; }
.hdr.is-solid .hdr__logo, html:not([data-page="home"]) .hdr__logo, .menu-open .hdr__logo { opacity: 1; transform: none; pointer-events: auto; }
.hdr__logo img { height: clamp(36px, 3vw, 46px); width: auto; }
.nav { display: flex; gap: clamp(1.6rem, 2.8vw, 3rem); justify-self: center; }
.nav a, .hdr__cta {
  font-family: var(--wide); font-stretch: 118%; font-weight: 440; font-size: .6875rem; letter-spacing: .26em; text-transform: uppercase;
  text-decoration: none; color: var(--cream); padding-block: .6rem; transition: color .2s;
}
.nav a:hover, .nav a[aria-current="page"], .hdr__cta:hover { color: var(--gold); }
.hdr__cta { justify-self: end; color: var(--gold); }
.menu-btn { display: none; justify-self: end; align-items: center; gap: .8rem; min-height: 48px; background: none; border: 0; cursor: pointer; font-family: var(--wide); font-stretch: 118%; font-size: .6875rem; letter-spacing: .28em; text-transform: uppercase; color: var(--cream); }
.menu-btn i { position: relative; width: 24px; height: 9px; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--cream); transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-btn i::before { top: 0; } .menu-btn i::after { top: 8px; }
.menu-open .menu-btn i::before { top: 4px; transform: rotate(20deg); }
.menu-open .menu-btn i::after { top: 4px; transform: rotate(-20deg); }
@media (max-width: 1023.98px) {
  .hdr__in { grid-template-columns: 1fr auto; }
  .nav, .hdr__cta { display: none; }
  .menu-btn { display: inline-flex; }
}
.menu {
  position: fixed; inset: 0; z-index: 45; background: #000; display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 2rem) var(--gutter) calc(2rem + env(safe-area-inset-bottom)); overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s linear .4s;
}
.menu-open .menu { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
.menu-open .hdr { background: #000; }
.menu ul { list-style: none; display: grid; gap: 1.4rem; text-align: center; }
.menu ul a { font-family: var(--wide); font-stretch: 125%; font-weight: 260; font-size: clamp(1rem, 4.6vw, 1.4rem); letter-spacing: .5em; padding-left: .5em; text-transform: uppercase; text-decoration: none; color: var(--cream); }
.menu ul a:hover, .menu ul a[aria-current="page"] { color: var(--gold); }
.menu__foot { margin-top: 3.5rem; text-align: center; display: grid; gap: .3rem; }
.menu__foot a { text-decoration: none; }
@media (min-width: 1024px) { .menu { display: none; } }

/* ---------- Hero: the logo, nothing else ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; display: grid; place-items: center; background: #000; }
.hero__img { position: absolute; inset: 0; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero__img::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 55% at 50% 48%, rgba(0,0,0,.42), rgba(0,0,0,.66)), linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,.55)); }
.hero__mark { position: relative; z-index: 2; display: grid; justify-items: center; gap: clamp(1.4rem, 3.5vh, 2.2rem); padding: var(--header-h) var(--gutter) 0; text-align: center; }
.hero__logo { display: block; width: clamp(170px, 19vw, 290px); height: auto; overflow: visible; color: #BAA360; filter: drop-shadow(0 6px 26px rgba(0,0,0,.55)); }
.hero__logo .lg-sheen { color: #FFF1CC; }
.hero__mark h1 .l { display: block; }
.hero__mark h1 .l + .l { margin-top: .5em; color: var(--dim); }
.hero__mark h1 { font-family: var(--wide); font-stretch: 125%; font-weight: 340; font-size: clamp(.6875rem, .62rem + .25vw, .8125rem); letter-spacing: .5em; padding-left: .5em; text-transform: uppercase; color: var(--cream); }
.hero__cue { position: absolute; z-index: 2; left: 50%; bottom: clamp(1.4rem, 4vh, 2.4rem); width: 1px; height: clamp(34px, 6vh, 60px); background: rgba(241,234,220,.25); overflow: hidden; }
.hero__cue::after { content: ""; position: absolute; left: 0; top: -100%; width: 1px; height: 100%; background: var(--gold); animation: cue 2.6s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* ---------- Opening statement ---------- */
.open { padding-block: clamp(6rem, 14vw, 11rem) clamp(5rem, 10vw, 8rem); }
.open .lbl { margin-bottom: 2.2rem; }
.open .statement { max-width: 31ch; }

/* ---------- Expanding image (one scroll moment) ---------- */
.grow { position: relative; }
.grow__stage { position: relative; height: 100vh; height: 100svh; min-height: 540px; overflow: hidden; display: grid; place-items: center; }
/* the opening is done with transforms only (window scales open, picture counter-scales), so it stays on the GPU */
.grow__img { position: absolute; inset: 0; overflow: hidden; transform-origin: 50% 50%; }
.grow__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; }
.grow__img img, .grow__img video { transform-origin: 50% 50%; }
.grow__shade { position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 50%, rgba(0,0,0,.58), rgba(0,0,0,.42)), linear-gradient(rgba(0,0,0,.1), rgba(0,0,0,.5)); pointer-events: none; }
.grow__text { position: relative; z-index: 2; text-align: center; padding: 0 var(--gutter); max-width: 980px; }
.grow__text p { margin: 1.4rem auto 0; max-width: 44ch; font-size: clamp(1rem, .9rem + .45vw, 1.3rem); line-height: 1.55; color: var(--cream); }

/* ---------- Project (Kionera-like composition) ---------- */
.proj__grid { display: grid; grid-template-columns: 1fr 3fr; gap: 3rem var(--gutter); }
.proj__side { padding-top: .55rem; }
.proj__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(1.5rem, 4vw, 3.5rem); margin-top: clamp(2.5rem, 5vw, 3.5rem); }
@media (max-width: 899.98px) { .proj__grid { grid-template-columns: 1fr; gap: 1.6rem; } }
@media (max-width: 639.98px) { .proj__cols { grid-template-columns: 1fr; } }

/* Slider */
.slider { margin-top: clamp(4rem, 8vw, 6rem); }
.slider__track { display: flex; gap: clamp(.75rem, 1.6vw, 1.25rem); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.slider__track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 84%; scroll-snap-align: start; margin: 0; }
.slide .ph { aspect-ratio: 16 / 10.5; border-radius: var(--radius); overflow: hidden; background: #0d0b08; }
.slide img, .card img { width: 100%; height: 100%; object-fit: cover; }
.slide figcaption { margin-top: .9rem; }
.slider__ctrl { display: flex; align-items: center; justify-content: space-between; margin-top: 1.2rem; }
.slider__count { font-family: var(--wide); font-stretch: 118%; font-size: .6875rem; letter-spacing: .3em; color: var(--dim); }
@media (min-width: 900px) { .slide { flex-basis: min(62%, 740px); } }

/* ---------- Key features (icons) ---------- */
.feats { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2.5rem 1rem; text-align: center; }
.feats svg { width: 46px; height: 46px; margin: 0 auto 1.3rem; color: var(--gold); }
.feats li { color: var(--cream); font-size: .9375rem; line-height: 1.45; }
.feats li span { display: block; color: var(--dim); font-size: .8125rem; }
@media (max-width: 899.98px) { .feats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 519.98px) { .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .feats li:last-child { grid-column: 1 / -1; } }

/* ---------- Villa viewer ---------- */
.units__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.units__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3.3; background: #0d0b08; }
.units__img img { width: 100%; height: 100%; object-fit: cover; }
.unit-tabs { display: flex; gap: .4rem; margin: 2.2rem 0 2.6rem; }
.unit-tab {
  min-width: 56px; min-height: 44px; padding: 0 .9rem; background: none; border: 1px solid var(--line); cursor: pointer;
  font-family: var(--wide); font-stretch: 125%; font-weight: 400; font-size: .75rem; letter-spacing: .2em; color: var(--dim); transition: color .2s, border-color .2s;
}
.unit-tab:hover { color: var(--cream); }
.unit-tab[aria-selected="true"] { color: var(--gold); border-color: var(--line-gold); }
.unit__area { font-family: var(--wide); font-stretch: 125%; font-weight: 220; font-size: clamp(2.2rem, 1.6rem + 2vw, 3.3rem); letter-spacing: .08em; color: var(--cream); line-height: 1; }
.unit__area small { font-size: .38em; letter-spacing: .3em; color: var(--dim); margin-left: .6em; vertical-align: .4em; }
.unit__name { margin-top: .9rem; }
.unit__data { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; margin-top: 2.4rem; border-top: 1px solid var(--line); }
.unit__data div { padding: 1rem 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; }
.unit__data dt { color: var(--dim); font-size: .8125rem; }
.unit__data dd { color: var(--cream); }
.unit__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-top: 2.2rem; }
@media (max-width: 899.98px) { .units__grid { grid-template-columns: 1fr; } .units__img { order: -1; } }
@media (max-width: 419.98px) { .unit__data { grid-template-columns: 1fr; } }

/* ---------- Imagery (categories) ---------- */
.img__head { display: grid; grid-template-columns: 1fr 3fr; gap: 1.6rem var(--gutter); margin-bottom: clamp(3rem, 6vw, 4.5rem); }
@media (max-width: 899.98px) { .img__head { grid-template-columns: 1fr; } }
.img__grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.img__pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.75rem, 1.6vw, 1.25rem); }
.card { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; aspect-ratio: 3 / 4.2; border-radius: var(--radius); overflow: hidden; background: #0d0b08; }
.card img { transition: transform 1.2s var(--ease), opacity .45s; }
.card:hover img { transform: scale(1.03); }
.cats { list-style: none; border-top: 1px solid var(--line); }
.cats li { border-bottom: 1px solid var(--line); }
.cat {
  width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--wide); font-stretch: 125%; font-weight: 300; font-size: .8125rem; letter-spacing: .48em; text-transform: uppercase; color: var(--dim); transition: color .25s;
}
.cat b { font-weight: 300; letter-spacing: .2em; }
.cat:hover { color: var(--cream); }
.cat[aria-selected="true"] { color: var(--cream); }
.cat[aria-selected="true"] b { color: var(--gold); }
.img__ctrl { display: flex; align-items: center; gap: .5rem; margin-top: 1.4rem; }
.img__note { margin-top: 2.2rem; }
@media (max-width: 899.98px) { .img__grid { grid-template-columns: 1fr; } .img__side { order: -1; } }

/* Lightbox */
.lb { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0,0,0,.97); color: var(--cream); overflow: hidden; }
.lb::backdrop { background: rgba(0,0,0,.9); }
.lb[open] { display: block; }
.lb__stage { position: absolute; inset: 72px var(--gutter) 88px; display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.lb__img { max-width: 100%; max-height: 100%; min-width: 0; min-height: 0; object-fit: contain; border-radius: 8px; user-select: none; -webkit-user-drag: none; }
.lb__top, .lb__bar { position: absolute; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-inline: var(--gutter); }
.lb__top { top: 0; height: 72px; }
.lb__bar { bottom: 0; height: 88px; padding-bottom: env(safe-area-inset-bottom); }
.lb__caption { margin: 0; color: var(--text); }
.lb__close { background: none; border: 0; cursor: pointer; font-family: var(--wide); font-stretch: 118%; font-size: .6875rem; letter-spacing: .3em; text-transform: uppercase; color: var(--cream); padding: .8rem 0; }
.lb__close:hover { color: var(--gold); }

/* ---------- Specification ---------- */
.spec__head { display: grid; grid-template-columns: 1fr 3fr; gap: 1.6rem var(--gutter); margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.spec__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem clamp(1.5rem, 4vw, 3.5rem); margin-left: calc(25% + var(--gutter) * .75); }
.spec__cols h3 { font-family: var(--wide); font-stretch: 125%; font-weight: 400; font-size: .6875rem; letter-spacing: .34em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.spec__cols ul { list-style: none; }
.spec__cols li { padding: .7rem 0; border-top: 1px solid var(--line); line-height: 1.5; color: var(--cream); text-wrap: pretty; }
@media (max-width: 1099.98px) { .spec__cols { margin-left: 0; } }
@media (max-width: 899.98px) { .spec__head { grid-template-columns: 1fr; } }
@media (max-width: 719.98px) { .spec__cols { grid-template-columns: 1fr; } }

/* ---------- Location ---------- */
.loc__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.dist { margin-top: 2.6rem; border-top: 1px solid var(--line); }
.dist div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.05rem 0; border-bottom: 1px solid var(--line); }
.dist dt { color: var(--cream); }
.dist dd { font-family: var(--wide); font-stretch: 125%; font-weight: 300; font-size: .8125rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3.3; background: #0d0b08; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.9) sepia(.35) brightness(.78) contrast(1.05); }
.map-cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; margin-top: 1rem; }
.map-cap p { margin: 0; }
@media (max-width: 899.98px) { .loc__grid { grid-template-columns: 1fr; } }

/* ---------- About (Unhid-like statement) ---------- */
.about .lbl { margin-bottom: 2.2rem; }
.about .statement { max-width: 30ch; }
.about .copy { margin-top: 2rem; }
.about .more { margin-top: 1rem; }

/* ---------- Contact ---------- */
.contact__head { display: grid; grid-template-columns: 1fr 3fr; gap: 1.6rem var(--gutter); }
.contact__acts { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.contact__info { margin-top: 2rem; display: grid; gap: .2rem; }
.contact__info a { text-decoration: none; color: var(--cream); }
.contact__info a:hover { color: var(--gold); }
.form { margin-top: clamp(4rem, 8vw, 6rem); margin-left: calc(25% + var(--gutter) * .75); max-width: 760px; }
.form h3 { font-family: var(--wide); font-stretch: 125%; font-weight: 300; font-size: .8125rem; letter-spacing: .48em; text-transform: uppercase; color: var(--cream); margin-bottom: 2rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
.field { display: grid; gap: .3rem; margin-bottom: 1.5rem; min-width: 0; }
.field label { font-size: .8125rem; color: var(--dim); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .6rem 0; font: inherit; font-size: 1rem; color: var(--cream);
  background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; -webkit-appearance: none; appearance: none; transition: border-color .25s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field select { padding-right: 2rem; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23BAA360' stroke-width='1.1'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .2rem center; }
.field select option { background: #000; }
.field input:hover, .field select:hover, .field textarea:hover { border-bottom-color: rgba(241,234,220,.3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
.field [aria-invalid="true"] { border-bottom-color: var(--error); }
.field__error { font-size: .8125rem; color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: .6rem; }
.form__foot p { margin: 0; }
.form-status { margin-top: 1.2rem; min-height: 1.6em; }
.form-status.is-ok { color: var(--gold); }
.form-status.is-error { color: var(--error); }
@media (max-width: 1099.98px) { .form { margin-left: 0; } }
@media (max-width: 899.98px) { .contact__head { grid-template-columns: 1fr; } }
@media (max-width: 599.98px) { .form__row { grid-template-columns: 1fr; } .contact__acts .btn { flex: 1 1 100%; } }

/* ---------- Footer (Unhid-like single band) ---------- */
.ftr { border-top: 1px solid var(--line); padding-block: 2.6rem 2.2rem; }
.ftr__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem 2rem; }
.ftr__links { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.8rem; }
.ftr__links a, .ftr__copy, .ftr__legal a, .ftr__legal button {
  font-family: var(--wide); font-stretch: 118%; font-weight: 400; font-size: .625rem; letter-spacing: .26em; text-transform: uppercase; text-decoration: none; color: var(--dim);
  background: none; border: 0; padding: 0; cursor: pointer; transition: color .2s;
}
.ftr__links a:hover, .ftr__legal a:hover, .ftr__legal button:hover { color: var(--gold); }
.ftr__logo img { width: 92px; height: auto; }
.ftr__copy { justify-self: end; }
.ftr__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.8rem; margin-top: 2rem; }
@media (max-width: 899.98px) {
  .ftr__row { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .ftr__logo { order: -1; }
  .ftr__links { justify-content: center; }
  .ftr__copy { justify-self: center; }
}

/* ---------- Consent ---------- */
.consent { position: fixed; z-index: 80; left: var(--gutter); bottom: calc(var(--gutter) * .6 + env(safe-area-inset-bottom)); width: min(380px, calc(100% - 2 * var(--gutter))); background: #12100C; border: 1px solid var(--line); padding: 1.2rem 1.3rem 1.3rem; }
.consent p { margin: 0 0 1rem; font-size: .875rem; line-height: 1.55; color: var(--text); }
.consent .lbl { display: block; margin-bottom: .6rem; font-size: .625rem; }
.consent__acts { display: flex; gap: .6rem; }
.consent .btn { min-height: 42px; padding: .6rem 1.1rem; flex: 1; }
@media (max-width: 599.98px), (max-height: 520px) {
  .consent { left: 0; right: 0; bottom: 0; width: auto; border-width: 1px 0 0; padding: 1rem var(--gutter) calc(1rem + env(safe-area-inset-bottom)); }
  .consent .btn { max-width: 220px; }
}

/* ---------- Projects page ---------- */
.page-top { padding: calc(var(--header-h) + clamp(5rem, 12vw, 9rem)) 0 clamp(4rem, 8vw, 6rem); }
.page-top .lbl { margin-bottom: 2rem; }
.pp { padding-block: clamp(3.5rem, 7vw, 6rem); border-top: 1px solid var(--line); }
.pp__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.pp:nth-of-type(even) .pp__media { order: 2; }
.pp__ph { aspect-ratio: 4 / 3; border-radius: var(--radius); border: 1px dashed var(--line-gold); display: grid; place-content: center; justify-items: center; gap: 1rem; text-align: center; padding: 2rem; }
.pp__ph img { width: 48px; opacity: .5; }
.pp .tt { font-size: clamp(1.1rem, .9rem + .9vw, 1.6rem); margin-bottom: 1.2rem; }
@media (max-width: 899.98px) { .pp__grid { grid-template-columns: 1fr; } .pp:nth-of-type(even) .pp__media { order: 0; } }
.notfound { min-height: 100svh; display: grid; place-items: center; padding: var(--header-h) var(--gutter); text-align: center; }
.notfound .statement { margin: 1.8rem auto 2.4rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Hero starts dark and is brought up by main.js (failsafe if the script never runs) */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__img img, .js .hero__mark > * { opacity: 0; animation: reveal-failsafe .01s linear 4s forwards; }
}
@keyframes reveal-failsafe { to { opacity: 1; } }

/* Background videos: sit over the still and fade in once playing */
.bgvid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; opacity: 0; transition: opacity 1.2s var(--ease); pointer-events: none; }
.bgvid.is-playing { opacity: 1; }
.hero__img .bgvid { height: 100%; }

/* ---------- Lighter balance: brighter images + warm ivory sections ---------- */
.hero__img::after {
  background:
    radial-gradient(42% 38% at 50% 50%, rgba(0,0,0,.5) 0%, rgba(0,0,0,.18) 70%, rgba(0,0,0,0) 100%),
    linear-gradient(rgba(0,0,0,.32), rgba(0,0,0,0) 26%, rgba(0,0,0,0) 74%, rgba(0,0,0,.4));
}
.grow__shade { background: radial-gradient(55% 45% at 50% 50%, rgba(0,0,0,.5), rgba(0,0,0,.12)); }
.grow__text { text-shadow: 0 2px 24px rgba(0,0,0,.35); }

.light {
  --cream: #1B1712;
  --text: rgba(27, 23, 18, .74);
  --dim: rgba(27, 23, 18, .58);
  --line: rgba(27, 23, 18, .14);
  --line-gold: rgba(122, 101, 43, .5);
  --gold: #7A652B;                 /* logo gold, deepened for contrast on ivory */
  background: #F2ECE1; color: var(--text);
}
.light ::selection { background: #BAA360; color: #000; }
.light .btn { color: #1B1712; border-color: rgba(27, 23, 18, .35); }
.light .btn:hover { color: #7A652B; border-color: #7A652B; }
.light .btn--gold { background: #BAA360; border-color: #BAA360; color: #000; }
.light .unit-tab[aria-selected="true"] { color: #7A652B; border-color: #7A652B; }
.light .units__img { background: #E6DED0; }
.hero__img::after {
  z-index: 1;
  background:
    radial-gradient(closest-side, rgba(6, 5, 3, .8) 0%, rgba(6, 5, 3, .62) 45%, rgba(6, 5, 3, .24) 78%, rgba(6, 5, 3, 0) 100%) 50% 54% / min(1100px, 140vw) min(760px, 90vh) no-repeat,
    linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 24%, rgba(0, 0, 0, 0) 68%, rgba(0, 0, 0, .5)),
    rgba(8, 6, 4, .24);
}
.hero__mark h1 { text-shadow: 0 1px 16px rgba(0,0,0,.6); }
.hero__mark h1 .l + .l { color: rgba(241, 234, 220, .82); }

/* ---------- Motion details ---------- */
.tt .ch { display: inline-block; }
.hdr { transition: background-color .45s, border-color .45s, transform .55s var(--ease); }
.hdr.is-hidden { transform: translateY(-100%); }
.menu-open .hdr.is-hidden { transform: none; }
/* outline buttons fill with gold from the left on hover */
.btn:not(.btn--gold) { background-image: linear-gradient(var(--gold), var(--gold)); background-repeat: no-repeat; background-position: 0 0; background-size: 0% 100%; transition: background-size .5s var(--ease), border-color .3s, color .3s; }
.light .btn:not(.btn--gold) { background-image: linear-gradient(#BAA360, #BAA360); }
@media (hover: hover) {
  .btn:not(.btn--gold):hover { background-size: 100% 100%; color: #000; border-color: var(--gold); }
  .light .btn:not(.btn--gold):hover { color: #000; border-color: #BAA360; }
}

/* ---------- Slider driven by page scroll ---------- */
.slider__bar { position: relative; width: clamp(96px, 18vw, 200px); height: 1px; background: var(--line); overflow: hidden; }
.slider__bar i { position: absolute; inset: 0; background: var(--gold); transform-origin: 0 50%; transform: scaleX(.08); }
.slider.is-driven { overflow: hidden; }
.slider.is-driven .slider__track { position: relative; overflow: visible; scroll-snap-type: none; will-change: transform; }
.slider.is-driven .slide { scroll-snap-align: none; }

/* ---------- Past projects: real projects with photo sets ---------- */
.pp__grid { align-items: start; }
.pp__media { display: grid; gap: clamp(.5rem, 1vw, .75rem); }
@media (min-width: 900px) { .pp__media { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.pp__cover, .pp__thumbs button { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #0d0b08; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.pp__cover { aspect-ratio: 16 / 10; }
.pp__thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.5rem, 1vw, .75rem); }
.pp__thumbs button { aspect-ratio: 1 / 1; border-radius: 8px; }
.pp__cover img, .pp__thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
@media (hover: hover) { .pp__cover:hover img, .pp__thumbs button:hover img { transform: scale(1.03); } }
.pp__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: var(--cream); font-family: var(--wide); font-stretch: 118%; font-size: .75rem; letter-spacing: .3em; padding-left: .3em; }
.pp__info .lbl { margin-bottom: 1.2rem; }
.pp__sub { margin: 0 0 1.8rem; max-width: 32ch; font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); line-height: 1.5; color: var(--cream); }
.pp__facts { grid-template-columns: 1fr; margin: 0 0 1.8rem; }
.pp__copy p + p { margin-top: 1em; }

/* ---------- Villa viewer: sold state + floor plans ---------- */
.unit-tab { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; }
.unit-tab.is-sold { color: var(--dim); }
.unit-tab__sold { font-size: .5rem; letter-spacing: .24em; padding-left: .24em; color: #A2503A; line-height: 1; }
.unit__sold { display: inline-block; margin-left: .9em; padding: .25em .7em .25em .95em; border: 1px solid currentColor; color: #A2503A; font-size: .85em; letter-spacing: .3em; vertical-align: .05em; }
.unit__soldnote { margin: 0; }
.units__grid { align-items: start; }
.plans__lbl { margin-bottom: 1.4rem; }
.plans__villa { color: var(--cream); margin-left: .9em; }
.plans__set { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.6rem, 1.4vw, 1.1rem); align-items: end; }
.plan { display: grid; gap: .8rem; width: 100%; padding: 0; border: 0; background: none; color: inherit; cursor: zoom-in; text-align: center; }
.plan__img { display: grid; place-items: center; aspect-ratio: 1 / 1.95; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.plan__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .9s var(--ease); }
.plan__cap { font-family: var(--wide); font-stretch: 118%; font-size: .625rem; letter-spacing: .24em; padding-left: .24em; text-transform: uppercase; color: var(--dim); transition: color .3s; }
@media (hover: hover) { .plan:hover .plan__img img { transform: scale(1.04); } .plan:hover .plan__cap { color: var(--gold); } }
.plan:focus-visible .plan__img { outline: 2px solid var(--gold); outline-offset: 3px; }
.plans__note { margin-top: 1.4rem; }
@media (min-width: 900px) { .plans { padding-top: .4rem; } }
@media (max-width: 899.98px) { .plans { margin-top: 1rem; } }
@media (max-width: 419.98px) { .plan__cap { font-size: .5625rem; letter-spacing: .16em; } }

/* ---------- Footer credit ---------- */
.ftr__credit { margin: 1.6rem 0 0; text-align: center; font-size: .75rem; letter-spacing: .02em; color: var(--dim); }
.ftr__credit a { color: var(--cream); text-decoration: underline; text-decoration-color: rgba(186, 163, 96, .5); text-underline-offset: .25em; transition: color .2s, text-decoration-color .2s; }
.ftr__credit a:hover { color: var(--gold); text-decoration-color: var(--gold); }
