/* ══════════════════════════════════════════════════════════════════════════
   Talay by Aldar — Marsa Al Saadiyat
   Brand DNA: the timber screen. Deep Talay green, terracotta light, and a
   vertical slat rhythm that every reveal on this page borrows from.
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  /* Sampled from the Talay cover artwork and the Aldar project page */
  --green:        #2C4033;
  --green-deep:   #22322A;
  --green-ink:    #16211B;
  --green-line:   #3D5145;

  --terracotta:   #C67558;
  --terracotta-2: #DC9071;

  --cream:        #F3EEE5;
  --cream-2:      #E8E0D3;
  --sand:         #D6C7B1;

  --on-green:     #DEE4DB;
  --on-green-dim: #A3B1A5;
  --on-cream:     #29382E;
  --on-cream-dim: #5F6F60;

  --display: "Italiana", "Didot", "Times New Roman", serif;
  --sans: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --wrap: 1180px;
  --gut: clamp(20px, 5vw, 48px);
  --sect: clamp(76px, 10vw, 148px);
}

/* Paper grain — one tiny tile, reused by every dark surface */
@supports (background-image: url("data:image/svg+xml,%3Csvg%3E%3C/svg%3E")) {
  .grain::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E");
  }
}

/* ── Base ─────────────────────────────────────────────────────────────── */

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

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

body {
  margin: 0;
  background: var(--green);
  color: var(--on-green);
  font: 300 clamp(1rem, .96rem + .2vw, 1.075rem)/1.65 var(--sans);
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--terracotta); color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--terracotta-2);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* ── Type ─────────────────────────────────────────────────────────────── */

.display {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: .005em;
}
.display--xl { font-size: clamp(2.7rem, 7.4vw, 5.6rem); }
.display--lg { font-size: clamp(2.2rem, 5.2vw, 4.1rem); }

.eyebrow {
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--terracotta-2);
  margin-bottom: clamp(18px, 2.4vw, 28px);
}
.section--cream .eyebrow { color: #A6572F; }

.lead {
  max-width: 54ch;
  font-size: clamp(1.05rem, 1rem + .35vw, 1.28rem);
  line-height: 1.62;
  color: var(--on-green-dim);
}
.section--cream .lead { color: var(--on-cream-dim); }

.subhead {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  margin-bottom: 22px;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */

.btn {
  --btn-fg: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform 160ms var(--ease-out),
              background-color 200ms ease,
              border-color 200ms ease,
              color 200ms ease;
}
.btn:active { transform: scale(.975); }

.btn--solid {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #241A14;
}
.btn--ghost {
  background: transparent;
  border-color: rgba(222, 228, 219, .38);
  color: var(--on-green);
}
.section--cream .btn--ghost { border-color: rgba(41, 56, 46, .3); color: var(--on-cream); }
.btn--wide { width: 100%; }

@media (hover: hover) and (pointer: fine) {
  .btn--solid:hover { background: var(--terracotta-2); border-color: var(--terracotta-2); }
  .btn--ghost:hover { border-color: var(--terracotta-2); color: var(--terracotta-2); }
}

/* ── Topbar ───────────────────────────────────────────────────────────── */

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: clamp(16px, 4vw, 48px);
  padding: 14px var(--gut);
  transition: background-color 320ms ease, backdrop-filter 320ms ease, padding 320ms ease;
}
.topbar::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(222, 228, 219, .14);
  opacity: 0;
  transition: opacity 320ms ease;
}
.topbar.is-stuck {
  background: rgba(34, 50, 42, .72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  padding-block: 9px;
}
.topbar.is-stuck::after { opacity: 1; }

.topbar__brand { display: flex; align-items: center; }
.topbar__brand img {
  width: auto;
  height: 34px;
  transition: height 320ms var(--ease-out);
}
.topbar.is-stuck .topbar__brand img { height: 28px; }

.topbar__nav {
  display: flex;
  gap: clamp(14px, 2.2vw, 30px);
  margin-inline: auto;
}
.topbar__nav a {
  position: relative;
  font-size: .76rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--on-green);
  opacity: .82;
  padding-block: 4px;
  transition: opacity 200ms ease, color 200ms ease;
}
.topbar__nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--terracotta-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .topbar__nav a:hover { opacity: 1; color: var(--terracotta-2); }
  .topbar__nav a:hover::after { transform: scaleX(1); }
}
.topbar__cta { min-height: 40px; padding: 0 20px; font-size: .72rem; }

@media (max-width: 1040px) { .topbar__nav { display: none; } }
@media (max-width: 560px) {
  .topbar__cta { display: none; }
  .topbar__brand { margin-inline: auto; }
}

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  background: var(--green-ink);
}

.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  transform: scale(1.07);
  animation: heroPush 3.4s var(--ease-out) .25s forwards;
}
@keyframes heroPush { to { transform: scale(1); } }

/* The screen: green slats that lift away to reveal the villa behind them */
.hero__slats {
  position: absolute;
  inset: -2% 0 -2%;
  display: flex;
  z-index: 2;
  pointer-events: none;
}
.hero__slats i {
  flex: 1 1 0;
  background: var(--green);
  transform: translate3d(0, 0, 0);
  animation: slatLift 1.15s var(--ease-in-out) forwards;
  will-change: transform;
}
.hero__slats i:nth-child(odd)  { background: var(--green-deep); }
.hero__slats i:nth-child(3n)   { flex-grow: 1.45; }
.hero__slats i:nth-child(4n)   { flex-grow: .7; }
.hero__slats i:nth-child(5n)   { flex-grow: 1.2; }
.hero__slats i:nth-child(1)  { animation-delay: .06s; }
.hero__slats i:nth-child(2)  { animation-delay: .30s; }
.hero__slats i:nth-child(3)  { animation-delay: .12s; }
.hero__slats i:nth-child(4)  { animation-delay: .38s; }
.hero__slats i:nth-child(5)  { animation-delay: .18s; }
.hero__slats i:nth-child(6)  { animation-delay: .46s; }
.hero__slats i:nth-child(7)  { animation-delay: .24s; }
.hero__slats i:nth-child(8)  { animation-delay: .42s; }
.hero__slats i:nth-child(9)  { animation-delay: .16s; }
.hero__slats i:nth-child(10) { animation-delay: .34s; }
.hero__slats i:nth-child(11) { animation-delay: .10s; }
.hero__slats i:nth-child(12) { animation-delay: .28s; }
.hero__slats i:nth-child(13) { animation-delay: .20s; }
.hero__slats i:nth-child(14) { animation-delay: .44s; }
@keyframes slatLift { to { transform: translate3d(0, -101%, 0); } }

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    radial-gradient(ellipse 62% 46% at 50% 46%, rgba(22,33,27,.58), rgba(22,33,27,0) 72%),
    linear-gradient(to bottom, rgba(22,33,27,.62) 0%, rgba(22,33,27,.18) 30%, rgba(22,33,27,.34) 62%, rgba(22,33,27,.9) 100%),
    linear-gradient(to right, rgba(22,33,27,.42), transparent 62%);
}

.hero__inner {
  position: relative;
  z-index: 4;
  align-self: center;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 120px var(--gut) 40px;
  text-align: center;
}
.hero__eyebrow {
  font-size: .7rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: rgba(222, 228, 219, .8);
}
.hero__logo {
  width: auto;
  height: clamp(94px, 13vw, 138px);
  margin: clamp(22px, 3vw, 34px) auto clamp(20px, 2.6vw, 30px);
}
.hero__title {
  font-family: var(--display);
  font-size: clamp(2.05rem, 5.2vw, 4rem);
  line-height: 1.08;
  letter-spacing: .01em;
  color: #FFF8F1;
  text-shadow: 0 2px 30px rgba(22, 33, 27, .35);
}
.hero__lead {
  max-width: 46ch;
  margin: clamp(18px, 2.4vw, 26px) auto 0;
  color: rgba(222, 228, 219, .88);
  font-size: clamp(1rem, .95rem + .3vw, 1.16rem);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(28px, 3.4vw, 40px);
}

.hero__facts {
  position: relative;
  z-index: 4;
  display: grid;
  /* the price leads, so it gets the widest column and the largest numerals */
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 1px;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gut) clamp(26px, 4vw, 44px);
}
.hero__facts li {
  padding: 18px 10px 0;
  border-top: 1px solid rgba(222, 228, 219, .22);
  text-align: center;
}
.hero__facts b {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.25rem, 2.3vw, 1.85rem);
  color: var(--terracotta-2);
  line-height: 1.1;
}
.hero__facts span {
  display: block;
  margin-top: 5px;
  font-size: .74rem;
  letter-spacing: .06em;
  color: rgba(222, 228, 219, .66);
}

.hero__facts .fact--price { border-top-color: rgba(198, 117, 88, .62); }
.hero__facts .fact--price b {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  text-shadow: 0 2px 22px rgba(22, 33, 27, .45);
}
.hero__facts .fact--price span {
  font-size: .8rem;
  letter-spacing: .1em;
  color: rgba(222, 228, 219, .82);
}

@media (max-width: 720px) {
  /* six tracks so the price can take a full row and the rest sit three across */
  .hero__facts { grid-template-columns: repeat(6, 1fr); gap: 0 12px; }
  .hero__facts li { padding: 12px 0 0; margin-top: 12px; }
  .hero__facts li:not(.fact--price) { grid-column: span 2; }
  .hero__facts li:not(.fact--price) b { font-size: 1.1rem; }
  .hero__facts span { font-size: .66rem; line-height: 1.35; }
  .hero__facts .fact--price { grid-column: 1 / -1; }
  .hero__facts .fact--price b { font-size: clamp(1.9rem, 8.6vw, 2.5rem); }
  .hero__facts .fact--price span { font-size: .76rem; }
}

/* Load-in stagger */
.stagger {
  opacity: 0;
  transform: translateY(14px);
  animation: rise .9s var(--ease-out) forwards;
  animation-delay: calc(.55s + var(--d, 0s));
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ── Sections ─────────────────────────────────────────────────────────── */

.section {
  position: relative;
  padding-block: var(--sect);
  overflow: hidden;
}
.section--green {
  background: var(--green);
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.017) 0 1px, transparent 1px 38px);
}
.section--green::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E");
}
.section--green > * { position: relative; z-index: 1; }

.section--cream {
  background: var(--cream);
  color: var(--on-cream);
}
.section--cream .display { color: #223026; }

/* Slat rule — the screen motif, reduced to a line */
.slatrule {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 46px;
  margin-bottom: clamp(30px, 4vw, 48px);
}
.slatrule i {
  width: 2px;
  background: var(--terracotta);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .8s var(--ease-out);
}
.slatrule i:nth-child(1)  { height: 40%; transition-delay: 0ms; }
.slatrule i:nth-child(2)  { height: 72%; transition-delay: 40ms; }
.slatrule i:nth-child(3)  { height: 55%; transition-delay: 80ms; }
.slatrule i:nth-child(4)  { height: 100%; transition-delay: 120ms; }
.slatrule i:nth-child(5)  { height: 62%; transition-delay: 160ms; }
.slatrule i:nth-child(6)  { height: 34%; transition-delay: 200ms; }
.slatrule i:nth-child(7)  { height: 80%; transition-delay: 240ms; }
.slatrule i:nth-child(8)  { height: 48%; transition-delay: 280ms; }
.slatrule i:nth-child(9)  { height: 90%; transition-delay: 320ms; }
.slatrule i:nth-child(10) { height: 40%; transition-delay: 360ms; }
.slatrule i:nth-child(11) { height: 66%; transition-delay: 400ms; }
.slatrule i:nth-child(12) { height: 28%; transition-delay: 440ms; }
.slatrule.is-in i { transform: scaleY(1); }

/* Scroll reveals */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .85s var(--ease-out) var(--d, 0s),
              transform .85s var(--ease-out) var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

.reveal-img { overflow: hidden; }
.reveal-img img {
  clip-path: inset(0 0 100% 0);
  transform: scale(1.06);
  transition: clip-path 1.05s var(--ease-in-out), transform 1.4s var(--ease-out);
}
.reveal-img.is-in img { clip-path: inset(0 0 0 0); transform: none; }

/* ── Intro ────────────────────────────────────────────────────────────── */

.intro__grid { margin-top: clamp(34px, 4.6vw, 58px); }

.intro__pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 3vw, 34px);
  margin-top: clamp(40px, 5vw, 64px);
}
.community {
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid var(--green-line);
  background: linear-gradient(160deg, rgba(255,255,255,.035), rgba(255,255,255,0) 65%);
  transition: border-color 300ms ease, background-color 300ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .community:hover { border-color: rgba(198,117,88,.55); }
}
.community__name {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  color: #FFF8F1;
}
.community__meta {
  margin-top: 4px;
  font-size: .72rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--terracotta-2);
}
.community dl { margin-top: 24px; }
.community dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid rgba(222,228,219,.13);
  font-size: .92rem;
}
.community dt { color: var(--on-green-dim); }
.community dd { margin: 0; text-align: right; }

/* ── Full-bleed band ──────────────────────────────────────────────────── */

.band { position: relative; background: var(--green-ink); }
.band__fig { margin: 0; }
.band__fig img {
  width: 100%;
  height: clamp(340px, 62vh, 620px);
  object-fit: cover;
}
.band__caption {
  padding-block: clamp(40px, 6vw, 76px);
  text-align: center;
}
.quote {
  max-width: 24ch;
  margin-inline: auto;
  font-size: clamp(1.4rem, 3.1vw, 2.5rem);
  line-height: 1.24;
  color: #F5EFE6;
}

/* ── Residences picker ────────────────────────────────────────────────── */

.picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin: clamp(34px, 4vw, 52px) 0 clamp(28px, 3.4vw, 40px);
}

.seg {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border: 1px solid rgba(41,56,46,.22);
  border-radius: 2px;
  background: rgba(255,255,255,.4);
}
.seg__btn {
  position: relative;
  z-index: 1;
  background: none;
  border: 0;
  padding: 10px 22px;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-cream-dim);
  cursor: pointer;
  transition: color 240ms ease;
}
.seg__btn.is-active { color: #241A14; }
.seg__pill {
  position: absolute;
  z-index: 0;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: 0;
  border-radius: 1px;
  background: var(--terracotta);
}
/* The pill only animates once it has been placed — no 0→width slide on load */
.seg.is-ready .seg__pill {
  transition: transform 340ms var(--ease-out), width 340ms var(--ease-out);
}

.chips { display: flex; gap: 8px; }
.chip {
  background: none;
  border: 1px solid rgba(41,56,46,.22);
  border-radius: 2px;
  padding: 11px 20px;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-cream-dim);
  cursor: pointer;
  transition: border-color 220ms ease, color 220ms ease,
              background-color 220ms ease, transform 160ms var(--ease-out);
}
.chip:active { transform: scale(.97); }
.chip.is-active {
  border-color: #2B3A30;
  background: #2B3A30;
  color: var(--cream);
}
@media (hover: hover) and (pointer: fine) {
  .chip:not(.is-active):hover { border-color: rgba(41,56,46,.5); color: var(--on-cream); }
}

.unit {
  display: grid;
  grid-template-columns: minmax(280px, 400px) 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
@media (max-width: 900px) { .unit { grid-template-columns: 1fr; } }

.unit__name {
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
}
.unit__dl { margin: 22px 0 26px; }
.unit__dl > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid rgba(41,56,46,.14);
}
.unit__dl dt { color: var(--on-cream-dim); font-size: .92rem; }
.unit__dl dd { margin: 0; font-size: .86rem; color: var(--on-cream-dim); }
.unit__dl b {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.5rem;
  color: #A6572F;
  transition: opacity 220ms ease, filter 220ms ease;
}
.unit.is-swapping .unit__dl b,
.unit.is-swapping .unit__name { opacity: .35; filter: blur(2px); }
.unit__name { transition: opacity 220ms ease, filter 220ms ease; }

.unit__list { margin-bottom: 22px; }
.unit__list li {
  position: relative;
  padding: 7px 0 7px 22px;
  font-size: .95rem;
  color: var(--on-cream-dim);
}
.unit__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 8px;
  height: 1px;
  background: var(--terracotta);
}
.unit__note {
  margin-bottom: 24px;
  font-size: .8rem;
  line-height: 1.55;
  color: rgba(95,111,96,.85);
}

.unit__plan {
  margin: 0;
  padding: clamp(18px, 2.6vw, 34px);
  background: #fff;
  border: 1px solid rgba(41,56,46,.1);
}
.unit__plan img {
  width: 100%;
  transition: opacity 260ms ease;
}
.unit.is-swapping .unit__plan img { opacity: 0; }
.unit__plan figcaption {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(41,56,46,.1);
  font-size: .78rem;
  color: rgba(95,111,96,.9);
}

/* ── Gallery ──────────────────────────────────────────────────────────── */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(168px, 18.5vw, 252px);
  gap: clamp(10px, 1.4vw, 18px);
  margin: clamp(46px, 6vw, 80px) var(--gut) clamp(46px, 6vw, 76px);
}
.gallery__item { margin: 0; position: relative; }
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery__item figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 44px 18px 14px;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #F5EFE6;
  background: linear-gradient(to top, rgba(22,33,27,.78), transparent);
}
/* 4 columns × 3 rows: a tall 2×2 anchor, four 2×1 panels around it */
.gallery__item--tall { grid-row: span 2; grid-column: span 2; }
.gallery__item:nth-child(n+2) { grid-column: span 2; }
/* the two near-square renders get square cells rather than a cropped strip */
.gallery__item:nth-child(4),
.gallery__item:nth-child(5) { grid-row: span 2; }
@media (max-width: 820px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(150px, 30vw, 230px); }
  .gallery__item--tall, .gallery__item:nth-child(n+2) { grid-column: span 2; }
  .gallery__item--tall { grid-row: span 2; }
}

/* Eight entries, four across — the grid always fills exactly two rows */
.finishes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(222,228,219,.13);
  border: 1px solid rgba(222,228,219,.13);
}
.finishes li {
  padding: 20px 22px;
  background: var(--green);
}
.finishes span {
  display: block;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--on-green-dim);
}
.finishes b {
  display: block;
  margin-top: 6px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.16rem;
  color: #F5EFE6;
}
@media (max-width: 860px) { .finishes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .finishes { grid-template-columns: 1fr; } }

/* ── Lists & columns ──────────────────────────────────────────────────── */

.cols {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  margin-top: clamp(34px, 4.4vw, 54px);
  align-items: start;
}
.cols--tight { grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 820px) { .cols, .cols--tight { grid-template-columns: 1fr; } }

.ticks li {
  position: relative;
  padding: 13px 0 13px 30px;
  border-top: 1px solid rgba(41,56,46,.12);
  font-size: 1rem;
}
.section--green .ticks li { border-top-color: rgba(222,228,219,.13); color: var(--on-green); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 21px;
  width: 14px;
  height: 1px;
  background: var(--terracotta);
}
.ticks--two { columns: 2; column-gap: clamp(30px, 5vw, 70px); }
.ticks--two li { break-inside: avoid; }
@media (max-width: 720px) { .ticks--two { columns: 1; } }

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(10px, 1.4vw, 18px);
  margin: clamp(46px, 6vw, 78px) var(--gut);
}
.duo figure { margin: 0; }
.duo img { width: 100%; height: clamp(220px, 32vw, 420px); object-fit: cover; }
@media (max-width: 720px) { .duo { grid-template-columns: 1fr; } }

/* ── Stats ────────────────────────────────────────────────────────────── */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: clamp(22px, 3vw, 40px);
  margin-top: clamp(40px, 5vw, 64px);
}
.stats li { border-top: 1px solid rgba(222,228,219,.2); padding-top: 18px; }
.stats b {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.85rem);
  line-height: 1.05;
  color: var(--terracotta-2);
}
.stats span {
  display: block;
  margin-top: 8px;
  font-size: .86rem;
  color: var(--on-green-dim);
}

/* ── Mosaic ───────────────────────────────────────────────────────────── */

.mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(10px, 1.4vw, 18px);
  margin: clamp(46px, 6vw, 80px) var(--gut);
}
.mosaic figure { position: relative; margin: 0; }
.mosaic img { width: 100%; height: clamp(200px, 26vw, 330px); object-fit: cover; }
.mosaic figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 40px 18px 14px;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #F5EFE6;
  background: linear-gradient(to top, rgba(22,33,27,.82), transparent);
}
@media (max-width: 640px) { .mosaic { grid-template-columns: 1fr; } }

.masterplan { margin: 0 0 clamp(40px, 5vw, 66px); }
.masterplan img { width: 100%; border: 1px solid rgba(222,228,219,.14); }
.masterplan figcaption {
  margin-top: 16px;
  max-width: 78ch;
  font-size: .84rem;
  color: var(--on-green-dim);
}

/* ── Payment steps ────────────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: clamp(38px, 5vw, 58px) 0 26px;
  background: rgba(41,56,46,.14);
  border: 1px solid rgba(41,56,46,.14);
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: clamp(24px, 3vw, 38px) clamp(18px, 2vw, 28px) clamp(24px, 3vw, 34px);
  background: var(--cream);
}
.steps li::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 18px;
  font-size: .7rem;
  letter-spacing: .24em;
  color: #A6572F;
}
.steps b {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1;
  color: #223026;
}
.steps span {
  display: block;
  margin-top: 12px;
  font-size: .9rem;
  color: var(--on-cream-dim);
}
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .steps { grid-template-columns: 1fr; } }

.steps__note {
  max-width: 76ch;
  font-size: .86rem;
  line-height: 1.6;
  color: rgba(95,111,96,.92);
}

/* ── Form ─────────────────────────────────────────────────────────────── */

.section--form {
  background: var(--green-deep);
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.017) 0 1px, transparent 1px 38px);
}
.form__wrap {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  gap: clamp(34px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 900px) { .form__wrap { grid-template-columns: 1fr; } }

.form__fig { margin: clamp(30px, 4vw, 48px) 0 0; }
.form__fig img { width: 100%; }

.form__card {
  padding: clamp(24px, 3.2vw, 40px);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(222,228,219,.16);
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field--full { grid-column: 1 / -1; }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } }

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-green-dim);
}
.req { color: var(--terracotta-2); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  background: rgba(22,33,27,.42);
  border: 1px solid rgba(222,228,219,.18);
  border-radius: 2px;
  color: var(--cream);
  font: 300 .98rem/1.4 var(--sans);
  transition: border-color 200ms ease, background-color 200ms ease;
}
.field textarea { resize: vertical; min-height: 92px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23A3B1A5' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.field select option { background: var(--green-deep); color: var(--cream); }
.field input::placeholder,
.field textarea::placeholder { color: rgba(163,177,165,.55); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--terracotta-2);
  background: rgba(22,33,27,.6);
}
.field.invalid input,
.field.invalid textarea { border-color: #D2705C; }

.error {
  margin-top: 6px;
  font-size: .78rem;
  color: #E59280;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 200ms ease, max-height 200ms ease;
}
.error.visible { opacity: 1; max-height: 3em; }

/* Bot trap — kept out of the layout and out of AutoFill's reach */
.hp {
  position: absolute !important;
  left: 0; top: 0;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.hp input { width: 1px; height: 1px; }

.consent { margin: 20px 0 22px; }
.check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
}
.check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.check__box {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 1px solid rgba(222,228,219,.34);
  border-radius: 2px;
  position: relative;
  transition: background-color 180ms ease, border-color 180ms ease;
}
.check__box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #241A14;
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg) scale(.6);
  opacity: 0;
  transition: opacity 160ms ease, transform 160ms var(--ease-out);
}
.check input:checked + .check__box { background: var(--terracotta); border-color: var(--terracotta); }
.check input:checked + .check__box::after { opacity: 1; transform: rotate(45deg) scale(1); }
.check input:focus-visible + .check__box { outline: 2px solid var(--terracotta-2); outline-offset: 3px; }
.check__text { font-size: .86rem; line-height: 1.5; color: var(--on-green-dim); }

.form__status {
  margin-top: 14px;
  min-height: 1.2em;
  font-size: .86rem;
  color: #E59280;
}

.success { text-align: center; padding: clamp(16px, 3vw, 34px) 0; }
.success h3 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); color: #F5EFE6; }
.success p {
  max-width: 44ch;
  margin: 14px auto 26px;
  color: var(--on-green-dim);
}

/* ── Footer ───────────────────────────────────────────────────────────── */

.footer {
  background: var(--green-ink);
  padding-block: clamp(48px, 6vw, 80px);
  border-top: 1px solid rgba(222,228,219,.1);
}
.footer__inner {
  display: grid;
  grid-template-columns: minmax(200px, 300px) 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}
@media (max-width: 760px) { .footer__inner { grid-template-columns: 1fr; } }

.footer__logo { width: 190px; height: auto; }
.footer__line {
  margin-top: 18px;
  font-size: .88rem;
  color: var(--on-green-dim);
}
.footer__line b { font-weight: 400; color: var(--on-green); }
.footer__legal p {
  font-size: .82rem;
  line-height: 1.65;
  color: rgba(163,177,165,.78);
}
.footer__legal p + p { margin-top: 14px; }
.footer__legal b { font-weight: 400; color: rgba(222,228,219,.92); }
.footer__copy { margin-top: 22px !important; font-size: .78rem !important; }

/* ── Reduced motion / transparency ────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__slats { display: none; }
  .hero__media img { animation: none; transform: none; }
  .stagger { opacity: 1; transform: none; animation: none; }
  .reveal { opacity: 1; transform: none; transition: opacity .2s ease; }
  .reveal-img img { clip-path: none; transform: none; transition: opacity .2s ease; }
  .slatrule i { transform: scaleY(1); transition: none; }
  .seg__pill { transition: none; }
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (prefers-reduced-transparency: reduce) {
  .topbar.is-stuck { background: var(--green-deep); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .form__card { background: rgba(22,33,27,.7); }
}
