/* ══════════════════════════════════════════════════════════════
   The Yards Plaza by Beyond · the-yards-plaza.sales-inquiries.com
   DNA from the project brochure: cream paper, terracotta, olive,
   navy and powder-blue panels, Montserrat Thin in tracked caps,
   and the façade's aluminium louvres.
   ══════════════════════════════════════════════════════════════ */

:root {
  --paper: #f6f4e6;
  --paper-2: #fdfaf2;
  --wheat: #f7edcd;
  --clay: #b06e3e;
  --clay-d: #985a2f;
  --olive: #4b523b;
  --olive-d: #3d4330;
  --navy: #133163;
  --navy-d: #0d2449;
  --sky: #92b2cc;
  --ink: #23261b;
  --err: #a4442a;
  --wa: #25d366;

  --line: rgba(75, 82, 59, .22);
  --line-dk: rgba(246, 244, 230, .24);

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);

  --font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --gut: clamp(20px, 5vw, 56px);
  --max: 1240px;
  --bar: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar) + 8px);
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  color: var(--olive);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
svg { display: block; }

.sr, .hp {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hp { left: 0; top: 0; }
.hp input { width: 1px; height: 1px; }
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--paper); padding: 10px 16px;
  font-size: 13px; text-decoration: none; transition: top 200ms var(--ease-out);
}
.skip:focus { top: 12px; }

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

.wrap { width: 100%; max-width: calc(var(--max) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }

/* ── Type ─────────────────────────────────────────────────── */
.kick {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 22px;
}
.hd {
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.06;
  color: inherit;
  text-wrap: balance;
}
.hd--xl { font-size: clamp(2.2rem, 1.35rem + 3.3vw, 4.4rem); }
.hd--lg { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3.1rem); }
.hd--md { font-size: 1.7rem; }
.lede { font-size: clamp(1.05rem, .98rem + .3vw, 1.2rem); line-height: 1.65; }
p + p { margin-top: 1em; }
.cap {
  font-size: 11px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase;
  color: inherit; opacity: .75;
}
.fine { font-size: 12.5px; line-height: 1.6; opacity: .75; margin-top: 28px; }
.muted { opacity: .6; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 30px;
  border: 1px solid transparent; border-radius: 0;
  font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn--sm { height: 40px; padding: 0 20px; font-size: 11px; }
.btn--block { width: 100%; }
.btn--paper { background: var(--paper); color: var(--navy); }
.btn--ghost { border-color: rgba(246, 244, 230, .7); color: var(--paper); }
.btn--clay  { background: var(--clay); color: var(--paper); }
.btn[disabled] { cursor: progress; opacity: .8; }
.btn__label { display: inline-block; transition: filter 160ms ease, opacity 160ms ease; }
.btn__label.is-swap { filter: blur(3px); opacity: 0; }

@media (hover: hover) and (pointer: fine) {
  .btn--paper:hover { background: #fff; }
  .btn--ghost:hover { background: rgba(246, 244, 230, .12); border-color: var(--paper); }
  .btn--clay:hover  { background: var(--clay-d); }
}

.link-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--clay); text-decoration: none; white-space: nowrap;
  padding: 10px 0;
  transition: transform 160ms var(--ease-out);
}
.link-cta svg { width: 18px; height: 18px; transition: transform 200ms var(--ease-out); }
.link-cta:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .link-cta:hover svg { transform: translateX(4px); }
}

/* ── Reveal ───────────────────────────────────────────────── */
.js .rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 800ms var(--ease-out) var(--d, 0ms), transform 800ms var(--ease-out) var(--d, 0ms);
}
.js .rv.is-in { opacity: 1; transform: none; }
/* Images: the clip sits on the child, the observer watches the figure. */
.js .rv--img { transform: none; }
.js .rv--img img {
  clip-path: inset(7% 0 7% 0);
  transform: scale(1.04);
  transition: clip-path 1100ms var(--ease-out) var(--d, 0ms), transform 1400ms var(--ease-out) var(--d, 0ms);
}
.js .rv--img.is-in img { clip-path: inset(0 0 0 0); transform: none; }

/* ── Top bar ──────────────────────────────────────────────── */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--bar);
  color: var(--paper);
  transition: background-color 240ms ease, color 240ms ease, box-shadow 240ms ease;
}
.topbar__in {
  height: 100%; max-width: calc(1440px + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut);
  display: flex; align-items: center; gap: 28px;
}
.topbar__brand { display: flex; align-items: center; gap: 14px; text-decoration: none; margin-right: auto; }
.topbar__logo, .topbar__beyond { position: relative; display: block; }
.topbar__logo { width: 62px; height: 41px; }
.topbar__beyond { width: 66px; height: 9px; }
.topbar__logo img, .topbar__beyond img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 240ms ease; }
.topbar__by { display: flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; opacity: .9; padding-top: 2px; }
.on-light { opacity: 0; }
.topbar.is-stuck .on-light { opacity: 1; }
.topbar.is-stuck .on-dark { opacity: 0; }
.topbar__nav { display: flex; gap: 28px; }
.topbar__nav a {
  font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; opacity: .85; transition: opacity 200ms ease;
}
@media (hover: hover) and (pointer: fine) { .topbar__nav a:hover { opacity: 1; } }
.topbar.is-stuck {
  background: rgba(246, 244, 230, .94);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  color: var(--navy);
  box-shadow: 0 1px 0 var(--line);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
  background: var(--olive-d);
}
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 50% 58%; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 22, 14, .5) 0%, rgba(20, 22, 14, .08) 22%, rgba(20, 22, 14, .1) 50%, rgba(20, 22, 14, .72) 100%),
    radial-gradient(55% 46% at 50% 52%, rgba(20, 22, 14, .42), transparent 72%);
}

/* Louvres turn open on first load: each slat narrows to nothing,
   from the middle out, like fins rotating to let the light in. */
.louvre { position: absolute; inset: 0; z-index: 2; display: flex; pointer-events: none; }
.louvre i {
  flex: 1;
  background: var(--paper);
  transform-origin: 0 50%;
  animation: louvre 1150ms var(--ease-io) both;
  animation-delay: calc(120ms + var(--k, 0) * 38ms);
}
.louvre i:nth-child(1), .louvre i:nth-child(14) { --k: 6; }
.louvre i:nth-child(2), .louvre i:nth-child(13) { --k: 5; }
.louvre i:nth-child(3), .louvre i:nth-child(12) { --k: 4; }
.louvre i:nth-child(4), .louvre i:nth-child(11) { --k: 3; }
.louvre i:nth-child(5), .louvre i:nth-child(10) { --k: 2; }
.louvre i:nth-child(6), .louvre i:nth-child(9)  { --k: 1; }
@keyframes louvre { to { transform: scaleX(0); } }

.hero__body {
  position: relative; z-index: 3;
  align-self: center;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: calc(var(--bar) + 36px) var(--gut) 28px;
}
.hero__body > * { animation: rise 900ms var(--ease-out) both; }
.hero__tile          { animation-delay: 620ms; }
.hero__line          { animation-delay: 760ms; }
.hero__sub           { animation-delay: 840ms; }
.hero__ctas          { animation-delay: 920ms; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.hero__tile {
  background: var(--paper);
  padding: 22px 34px 26px;
  display: flex; flex-direction: column; align-items: center;
  box-shadow: 0 30px 60px -30px rgba(10, 12, 6, .45);
}
.hero__tile .kick { font-size: 8.5px; letter-spacing: .34em; color: var(--navy); margin: 0 0 14px; font-weight: 500; }
.hero__tile img { width: clamp(132px, 10.5vw, 170px); }
.hero__line {
  margin-top: clamp(26px, 4vh, 40px);
  font-weight: 300; text-transform: uppercase; letter-spacing: .08em; line-height: 1.08;
  font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3.3rem);
  text-shadow: 0 2px 30px rgba(10, 12, 6, .35);
}
.hero__sub { max-width: 34em; margin-top: 16px; font-size: 15px; line-height: 1.6; opacity: .92; text-shadow: 0 1px 16px rgba(10, 12, 6, .5); }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

.hero__facts {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: calc(var(--max) + var(--gut) * 2); width: 100%; margin: 0 auto;
  padding: 0 var(--gut) clamp(22px, 4vh, 36px);
  animation: rise 900ms var(--ease-out) 1050ms both;
}
.hero__facts li {
  border-top: 1px solid var(--line-dk);
  padding: 16px 16px 0 0;
  display: flex; flex-direction: column; gap: 2px;
}
.hero__facts b { font-weight: 300; font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); letter-spacing: .04em; line-height: 1.2; }
.hero__facts span { font-size: 10.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; opacity: .8; }

/* ── Sections ─────────────────────────────────────────────── */
.sec { padding: clamp(84px, 10vw, 150px) 0; }
.sec--paper { background: var(--paper); }
.sec--wheat { background: var(--wheat); }
.sec--navy  { background: var(--navy); color: var(--paper); }
.sec--olive { background: var(--olive); color: var(--paper); }
.sec--sky   { background: var(--sky); color: var(--navy); }
.sec--navy .kick, .sec--olive .kick { color: var(--sky); }
.sec--sky .kick { color: var(--navy); opacity: .8; }

.sec__head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.sec__head .lede { margin-top: 26px; }
.sec__head--split { max-width: none; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px 72px; align-items: end; }

/* Intro */
.intro { padding-bottom: 0; }
.intro__grid { display: grid; grid-template-columns: 7fr 5fr; gap: 40px 80px; align-items: start; }
.intro__head .hd { color: var(--navy); }
.intro__copy { padding-top: 40px; }
.intro__copy .lede { color: var(--ink); margin-bottom: 1.2em; }
.wide { margin-top: clamp(56px, 8vw, 110px); overflow: hidden; }
.wide img { width: 100%; aspect-ratio: 2400 / 1139; object-fit: cover; }
.wide figcaption {
  display: flex; justify-content: space-between; gap: 20px;
  padding-top: 16px; padding-bottom: 48px;
  font-size: 11px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase;
}

/* Core components */
.core__grid { display: grid; grid-template-columns: 4fr 7fr; gap: 56px clamp(48px, 7vw, 110px); align-items: center; }
.core__plan .cap { margin-top: 18px; text-align: center; }
.keyplan { width: 100%; max-width: 380px; margin: 0 auto; }
.kp-site { fill: #ece2bd; }
.kp-court rect { fill: #e1dcbc; }
.kp-court circle { fill: var(--olive); opacity: .28; }
.kp-blocks rect { fill: var(--olive); }
.kp-blocks text { fill: var(--paper); font: 500 13px var(--font); text-anchor: middle; letter-spacing: .1em; }
.kp-blocks g {
  transform-box: fill-box; transform-origin: center;
}
.js .kp-blocks g {
  opacity: 0; transform: scale(.92);
  transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: calc(240ms + var(--i) * 110ms);
}
.js .core__plan.is-in .kp-blocks g { opacity: 1; transform: none; }
.core__body .hd { color: var(--navy); }
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0 32px; margin-top: 44px;
}
.stats div { border-top: 1px solid var(--line); padding: 18px 0 26px; }
.stats dt { font-size: 10.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; order: 2; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dd { font-weight: 200; font-size: clamp(2rem, 1.5rem + 1.8vw, 3.2rem); line-height: 1.1; color: var(--olive); letter-spacing: .01em; }
.specs { margin-top: 18px; display: grid; gap: 10px; }
.specs li { padding-left: 22px; position: relative; color: var(--ink); }
.specs li::before { content: ""; position: absolute; left: 0; top: .78em; width: 12px; height: 1px; background: var(--clay); }
.specs b { font-weight: 600; color: var(--olive); }

/* Façade */
.facade { display: grid; grid-template-columns: 7fr 5fr; background: var(--olive); color: var(--paper); }
.facade__img { position: relative; min-height: 560px; overflow: hidden; }
.facade__img picture, .facade__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.facade__panel {
  padding: clamp(56px, 8vw, 120px) clamp(28px, 5vw, 80px);
  display: flex; flex-direction: column; justify-content: center;
  /* The louvre rhythm, barely there */
  background:
    repeating-linear-gradient(90deg, rgba(246, 244, 230, .045) 0 1px, transparent 1px 18px),
    var(--olive);
}
.facade__panel .kick { color: var(--wheat); }
.facade__panel .hd { margin-bottom: 30px; }
.facade__panel p:not(.kick) { opacity: .9; max-width: 30em; }

/* Offices */
.offices .hd { color: var(--navy); }
.offices .lede { color: var(--ink); }
.units { border-top: 1px solid var(--olive); }
.units__row {
  display: grid; grid-template-columns: 1.25fr 1fr 1.3fr 170px;
  gap: 24px; align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.units__row--head {
  padding: 14px 0;
  font-size: 10.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; opacity: .7;
}
.units__name { font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--navy); }
.units__name small { display: block; margin-top: 4px; font-size: 12px; letter-spacing: .02em; text-transform: none; font-weight: 400; color: var(--olive); opacity: .8; }
.units__area { color: var(--ink); }
.units__area b { font-weight: 300; font-size: 1.55rem; letter-spacing: .01em; color: var(--olive); margin-right: 4px; }
.units__terr { font-size: 14px; line-height: 1.5; }
.units__row > :last-child { justify-self: end; }
.units__row--retail .units__name { color: var(--clay); }
@media (hover: hover) and (pointer: fine) {
  .units__row:not(.units__row--head) { transition: background-color 200ms ease; }
  .units__row:not(.units__row--head):hover { background: rgba(247, 237, 205, .55); }
}

/* Payment plan */
.plan__head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 72px; align-items: end; margin-bottom: 56px; }
.plan__head .hd { font-size: clamp(3.4rem, 2rem + 6vw, 7.5rem); letter-spacing: .02em; line-height: 1; }
.plan__head .lede { max-width: 26em; opacity: .9; }
.plan__bar { display: flex; gap: 3px; height: 14px; }
.plan__bar span {
  flex: var(--w) 1 0;
  background: var(--sky);
  transform-origin: 0 50%;
}
.plan__bar .is-final { background: var(--clay); }
.plan__legend { display: flex; gap: 3px; margin-top: 12px; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.plan__legend span { flex: 40 1 0; color: var(--sky); }
.plan__legend span + span { flex-grow: 60; color: #e3a77c; }
.js .plan__bar span {
  transform: scaleX(0);
  transition: transform 900ms var(--ease-io);
  transition-delay: calc(var(--i) * 90ms);
}
.js .plan__bar.is-in span { transform: none; }
.plan__steps { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0 14px; margin-top: 44px; }
.plan__steps li { border-top: 1px solid var(--line-dk); padding-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.plan__steps b { font-weight: 200; font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.5rem); line-height: 1.1; }
.plan__steps span { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; opacity: .82; line-height: 1.5; }
.plan__steps .is-final b { color: var(--wheat); }
.plan__steps .is-final { border-top-color: var(--clay); }
.plan__cta { margin-top: 52px; }

/* Interiors */
.interiors .hd { color: var(--navy); }
.gallery {
  display: grid; grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(150px, 16.5vw, 240px);
  gap: 14px;
}
.g { position: relative; overflow: hidden; grid-column: span 2; background: #e7e1cb; }
.g--lobby { grid-column: span 4; grid-row: span 2; }
.g:nth-child(4), .g:nth-child(5) { grid-column: span 3; grid-row: span 1; }
.g img { width: 100%; height: 100%; object-fit: cover; }
.g figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 18px 14px;
  font-size: 10.5px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--paper);
  background: linear-gradient(180deg, transparent, rgba(20, 22, 14, .55));
}

/* Courtyard */
.court { position: relative; background: var(--olive-d); }
.court__media { position: relative; height: clamp(520px, 78vh, 860px); overflow: hidden; }
.court__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.court__img--night {
  opacity: 0; filter: blur(4px);
  transition: opacity 520ms ease, filter 520ms ease;
}
.court__media[data-time="night"] .court__img--night { opacity: 1; filter: blur(0); }
.court__panel {
  position: absolute; left: var(--gut); bottom: clamp(28px, 6vw, 72px);
  width: min(460px, calc(100% - var(--gut) * 2));
  background: var(--clay); color: var(--paper);
  padding: clamp(32px, 4vw, 52px);
}
.court__panel .kick { color: var(--wheat); }
.court__panel .hd { margin-bottom: 22px; font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); }
.court__panel p:not(.kick) { opacity: .95; }

.seg {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr;
  margin-top: 28px; padding: 3px;
  border: 1px solid rgba(246, 244, 230, .55);
}
.seg__btn {
  position: relative; z-index: 1;
  height: 38px; min-width: 96px; padding: 0 18px;
  background: none; border: 0; cursor: pointer;
  font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--paper);
  transition: color 240ms ease, transform 160ms var(--ease-out);
}
.seg__btn:active { transform: scale(.97); }
.seg__btn[aria-pressed="true"] { color: var(--clay-d); }
.seg__pill {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px);
  background: var(--paper);
  transition: transform 300ms var(--ease-io);
}
.seg.is-night .seg__pill { transform: translateX(100%); }

/* The working day */
.day .hd { color: var(--navy); }
.day__side { display: flex; flex-direction: column; gap: 28px; }
.rail-ctrl { display: flex; gap: 10px; }
.rail-btn {
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 1px solid var(--olive); background: none; cursor: pointer; color: var(--olive);
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, opacity 200ms ease;
}
.rail-btn svg { width: 20px; height: 20px; }
.rail-btn[data-dir="-1"] svg { transform: scaleX(-1); }
.rail-btn:active { transform: scale(.95); }
.rail-btn:disabled { opacity: .3; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .rail-btn:not(:disabled):hover { background: var(--olive); color: var(--paper); }
}
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(260px, 26vw, 340px);
  gap: 18px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 0 var(--gut) 8px;
  padding-left: max(var(--gut), calc((100vw - var(--max)) / 2));
  scroll-padding-left: max(var(--gut), calc((100vw - var(--max)) / 2));
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.card { scroll-snap-align: start; }
.card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #e7e1cb; }
.card h3 { margin-top: 18px; font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--navy); }
.card p { margin-top: 8px; font-size: 14.5px; line-height: 1.6; }

/* Location */
.loc__grid { display: grid; grid-template-columns: 5fr 6fr; gap: 56px clamp(48px, 6vw, 96px); align-items: start; }
.loc__copy > p:not(.kick) { opacity: .9; max-width: 32em; }
.loc .hd { margin-bottom: 26px; }
.drive { margin-top: 40px; }
.drive li {
  display: grid; grid-template-columns: 4.8rem 1fr; align-items: baseline;
  padding: 11px 0 0;
}
.drive__t { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.drive__t b { font-weight: 300; font-size: 1.4rem; letter-spacing: 0; opacity: 1; margin-right: 2px; }
.drive__n { font-size: 14.5px; }
.drive i {
  grid-column: 2; display: block; height: 2px; margin-top: 9px;
  width: calc(var(--m) / 35 * 100%);
  background: var(--sky);
  transform-origin: 0 50%;
}
.js .drive i { transform: scaleX(0); transition: transform 900ms var(--ease-out) 200ms; }
.js .drive .is-in i { transform: none; }
.loc__img { position: sticky; top: calc(var(--bar) + 24px); overflow: hidden; }
.loc__img img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.loc__img .cap { margin-top: 14px; }

/* Register */
.register {
  position: relative; isolation: isolate;
  padding: clamp(90px, 11vw, 160px) 0;
  color: var(--paper);
  background: var(--navy-d);
}
.register__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.register::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(13, 36, 73, .94) 0%, rgba(19, 49, 99, .86) 45%, rgba(19, 49, 99, .62) 100%);
}
.register__grid { display: grid; grid-template-columns: 1fr minmax(0, 500px); gap: 56px clamp(48px, 7vw, 120px); align-items: center; }
.register .kick { color: var(--sky); }
.register .lede { margin-top: 26px; max-width: 30em; opacity: .92; }

.wa-inline {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 36px; padding: 12px 20px 12px 14px;
  border: 1px solid rgba(246, 244, 230, .35);
  text-decoration: none; font-size: 14px;
  transition: transform 160ms var(--ease-out), border-color 200ms ease, background-color 200ms ease;
}
.wa-inline svg { width: 26px; height: 26px; color: var(--wa); }
.wa-inline b { font-weight: 500; letter-spacing: .04em; }
.wa-inline:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .wa-inline:hover { border-color: rgba(246, 244, 230, .8); background: rgba(246, 244, 230, .06); }
}

.form {
  background: var(--paper); color: var(--olive);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 40px 80px -40px rgba(5, 14, 30, .6);
}
.form__head { display: flex; align-items: center; gap: 18px; padding-bottom: 22px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.form__mark { width: 58px; }
.form__title { font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--navy); }
.form__body { transition: opacity 180ms ease, filter 180ms ease; }
.form.is-leaving .form__body, .form.is-leaving .form__head { opacity: 0; filter: blur(2px); }

.field { position: relative; padding-top: 20px; border: 0; }
.field label, .field legend {
  display: block; font-size: 10.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--olive); margin-bottom: 4px;
}
.field input, .field select {
  width: 100%; height: 44px;
  background: transparent;
  border: 0; border-bottom: 1px solid rgba(75, 82, 59, .4); border-radius: 0;
  font-size: 16px; color: var(--ink);
  transition: border-color 200ms ease, background-color 900ms ease;
  -webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: rgba(35, 38, 27, .35); }
.field input:focus, .field select:focus { outline: none; border-bottom-color: var(--clay); box-shadow: 0 1px 0 var(--clay); }
.select { position: relative; }
.select::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 1px solid var(--olive); border-bottom: 1px solid var(--olive); transform: rotate(45deg);
  pointer-events: none;
}
.field select { padding-right: 28px; cursor: pointer; }
.field select:invalid { color: rgba(35, 38, 27, .45); }
.field.is-picked select { background-color: var(--wheat); transition: none; }
.field.has-error input, .field.has-error select { border-bottom-color: var(--err); }
.err { font-size: 12px; color: var(--err); min-height: 0; line-height: 1.4; margin-top: 4px; }
.err:empty { display: none; }

.field--pills { padding-top: 0; margin-top: 24px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pills label { margin: 0; cursor: pointer; }
.field .pills input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pills span {
  display: inline-flex; align-items: center; height: 38px; padding: 0 18px;
  border: 1px solid rgba(75, 82, 59, .4);
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 160ms var(--ease-out);
}
.pills label:active span { transform: scale(.97); }
.pills input:checked + span { background: var(--olive); border-color: var(--olive); color: var(--paper); }
.pills input:focus-visible + span { outline: 2px solid var(--clay); outline-offset: 2px; }

.consent { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; margin-top: 24px; font-size: 12.5px; line-height: 1.55; }
.consent input {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; margin-top: 1px;
  border: 1px solid rgba(75, 82, 59, .55); background: transparent; cursor: pointer;
  display: grid; place-items: center;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.consent input::after {
  content: ""; width: 9px; height: 5px; margin-top: -3px;
  border-left: 1.5px solid var(--paper); border-bottom: 1.5px solid var(--paper);
  transform: rotate(-45deg) scale(.6); opacity: 0;
  transition: transform 160ms var(--ease-out), opacity 120ms ease;
}
.consent input:checked { background: var(--olive); border-color: var(--olive); }
.consent input:checked::after { opacity: 1; transform: rotate(-45deg) scale(1); }
.cnt-off .consent { display: none; }

#f-submit { margin-top: 28px; }
.status { font-size: 13px; line-height: 1.5; margin-top: 12px; min-height: 0; }
.status:empty { display: none; }
.status.is-err { color: var(--err); }
.status a { color: inherit; font-weight: 600; }
.form__fine { font-size: 11.5px; opacity: .7; margin-top: 14px; }

.sent { text-align: center; padding: 20px 0 8px; outline: none; animation: rise 500ms var(--ease-out) both; }
.sent__mark { width: 96px; margin: 0 auto 24px; }
.sent .hd { color: var(--navy); margin-bottom: 16px; }
.sent p { color: var(--ink); }
.sent .link-cta { margin-top: 18px; }

/* Developer */
.dev__grid { display: grid; grid-template-columns: 5fr 6fr; gap: 56px clamp(48px, 7vw, 110px); align-items: center; }
.dev__logo { margin-bottom: 30px; }
.dev__logo img { width: clamp(180px, 18vw, 240px); }
.dev__copy p:not(.kick) { color: var(--navy-d); max-width: 32em; }
.dev__img { overflow: hidden; }
.dev__img img { width: 100%; aspect-ratio: 1600 / 1101; object-fit: cover; }

/* Footer */
.foot { background: var(--navy-d); color: rgba(246, 244, 230, .82); padding: 72px 0 120px; }
.foot__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid var(--line-dk); }
.foot__logo { width: 110px; }
.foot__agency { text-align: right; }
.foot__agency .cap { margin-bottom: 10px; }
.foot__nova { width: 150px; margin-left: auto; }
.foot__fine { margin-top: 32px; font-size: 11.5px; line-height: 1.7; max-width: 980px; opacity: .72; }
.foot__copy { margin-top: 18px; font-size: 11.5px; letter-spacing: .1em; opacity: .6; }

/* ── Floating actions ─────────────────────────────────────── */
.wa {
  position: fixed; z-index: 60;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: #fff;
  box-shadow: 0 10px 28px -8px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .12);
  text-decoration: none;
  transition: transform 160ms var(--ease-out);
  animation: pop 500ms var(--ease-out) 1400ms both;
  -webkit-tap-highlight-color: transparent;
}
.wa svg { width: 31px; height: 31px; }
.wa:active { transform: scale(.94); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.9); } }
.wa__tip {
  position: absolute; right: calc(100% + 12px); top: 50%;
  padding: 8px 14px; white-space: nowrap;
  background: var(--paper); color: var(--navy);
  font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .3);
  opacity: 0; transform: translate(6px, -50%);
  transform-origin: right center;
  transition: opacity 160ms ease, transform 200ms var(--ease-out);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .wa:hover .wa__tip { opacity: 1; transform: translate(0, -50%); }
}

.fab {
  position: fixed; z-index: 55;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(22px, calc(env(safe-area-inset-bottom) + 4px));
  height: 50px; padding: 0 24px;
  display: none; align-items: center;
  background: var(--clay); color: var(--paper);
  font-size: 11.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .4);
  opacity: 0; transform: translateY(14px);
  pointer-events: none;
  transition: opacity 240ms ease, transform 300ms var(--ease-drawer);
}
.fab.is-on { opacity: 1; transform: none; pointer-events: auto; }
.fab.is-on:active { transform: scale(.97); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .topbar__nav { display: none; }
  .plan__steps { grid-template-columns: repeat(4, 1fr); gap: 24px 14px; }
  .plan__steps .is-final { grid-column: span 2; }
  .units__row { grid-template-columns: 1.2fr 1fr 1.2fr; }
  .units__row > :last-child { grid-column: 1 / -1; justify-self: start; margin-top: -10px; }
  .units__row--head > :last-child { display: none; }
}

@media (max-width: 900px) {
  .intro__grid, .core__grid, .loc__grid, .dev__grid, .register__grid, .sec__head--split, .plan__head { grid-template-columns: 1fr; }
  .intro__copy { padding-top: 0; }
  .core__plan { order: 2; }
  .keyplan { max-width: 300px; }
  .facade { grid-template-columns: 1fr; }
  .facade__img { min-height: 0; aspect-ratio: 4 / 5; max-height: 80vh; }
  .court__media { height: auto; aspect-ratio: 4 / 5; }
  .court__img { object-position: 50% 50%; }
  .court__panel { position: relative; left: auto; bottom: auto; width: 100%; }
  .loc__img { position: relative; top: 0; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: clamp(150px, 34vw, 260px); }
  .g, .g:nth-child(4), .g:nth-child(5) { grid-column: span 1; }
  .g--lobby { grid-column: 1 / -1; grid-row: span 2; }
  .register__copy { text-align: left; }
}

@media (max-width: 760px) {
  :root { --bar: 62px; }
  body { font-size: 15.5px; }
  .topbar .btn--sm { display: none; }
  .topbar__logo { width: 54px; height: 36px; }
  .hero__media img { object-position: 50% 40%; }
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(20, 22, 14, .5) 0%, rgba(20, 22, 14, .28) 24%, rgba(20, 22, 14, .5) 52%, rgba(20, 22, 14, .82) 100%);
  }
  .hero__body { padding-top: calc(var(--bar) + 28px); }
  .hero__tile { padding: 18px 26px 22px; }
  .hero__tile img { width: 118px; }
  .hero__sub { font-size: 14px; }
  .hero__ctas { flex-direction: column; align-self: stretch; padding: 0 6px; }
  .hero__ctas .btn { width: 100%; }
  .hero__facts { grid-template-columns: 1fr 1fr; gap: 0 18px; }
  .hero__facts li { padding-top: 12px; padding-bottom: 10px; }
  .louvre i:nth-child(n+8) { display: none; }
  .louvre i:nth-child(1), .louvre i:nth-child(7) { --k: 3; }
  .louvre i:nth-child(2), .louvre i:nth-child(6) { --k: 2; }
  .louvre i:nth-child(3), .louvre i:nth-child(5) { --k: 1; }
  .louvre i:nth-child(4) { --k: 0; }
  .stats { grid-template-columns: 1fr 1fr; gap: 0 22px; }
  .wide figcaption { flex-direction: column; gap: 4px; padding-bottom: 8px; }
  .wide img { aspect-ratio: 4 / 3; }
  .units__row--head { display: none; }
  .units__row { grid-template-columns: 1fr; gap: 6px; padding: 22px 0 14px; }
  .units__row > :last-child { margin-top: 0; }
  .units__area b { font-size: 1.45rem; }
  .plan__steps { grid-template-columns: 1fr 1fr; }
  .plan__steps .is-final { grid-column: 1 / -1; }
  .plan__cta .btn { width: 100%; }
  .rail { grid-auto-columns: 78vw; }
  .drive li { grid-template-columns: 4.4rem 1fr; }
  .foot__top { flex-direction: column; align-items: flex-start; }
  .foot__agency { text-align: left; }
  .foot__nova { margin-left: 0; }
  .fab { display: inline-flex; }
  .wa { width: 54px; height: 54px; }
  .wa-inline { width: 100%; }
}

/* ── Reduced motion: keep fades that aid comprehension, drop movement ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .louvre { display: none; }
  .hero__body > *, .hero__facts, .wa, .sent { animation: fade 300ms ease both; animation-delay: 0ms; }
  .js .rv, .js .rv--img img, .js .kp-blocks g { transform: none; clip-path: none; transition: opacity 300ms ease; transition-delay: 0ms; }
  .js .plan__bar span, .js .drive i { transform: none; transition: none; }
  .court__img--night { filter: none; transition: opacity 200ms ease; }
  .seg__pill, .fab { transition-duration: 0ms; }
}
@keyframes fade { from { opacity: 0; } }
