/* ==========================================================================
   Coastal Glades · Landing page
   Palette: #FBF6EE shell · #E3D1BC sand · #CFE0EA mist · #6E99B5 sea · #2B3F4D navy
   ========================================================================== */

:root {
  --shell: #FBF6EE;
  --sand: #E3D1BC;
  --sand-soft: #F3EADD;
  --mist: #CFE0EA;
  --sea: #6E99B5;
  --sea-deep: #4A7593;   /* AA-contrast variant of sea for text & buttons */
  --navy: #2B3F4D;
  --navy-ink: #22333F;
  --ink: #2B3F4D;
  --ink-soft: #52636F;
  --line: rgba(43, 63, 77, .16);

  --display: "Marcellus", "Optima", "Candara", serif;              /* tracked caps: labels, nav, buttons */
  --serif: "Cormorant Garamond", "Times New Roman", serif;        /* headings & italic accents */
  --sans: "Proza Libre", "Gill Sans", "Segoe UI", sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(80px, 11vw, 150px);
  --radius: 999px;       /* buttons: pill */
  --radius-md: 14px;     /* images & blocks */
  --radius-lg: 22px;     /* large panels */
  --header-h: 84px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) - 8px); overflow-x: clip; }
body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--shell);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  font-variant-numeric: lining-nums;
}

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

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--navy); color: var(--shell); padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 16px; }

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

/* ---------- Type ---------- */

.eyebrow {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--sea-deep);
  margin-bottom: 22px;
  display: flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.eyebrow-light { color: var(--mist); }
.eyebrow-navy { color: var(--navy); }

.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.1vw, 44px);
  line-height: 1.14;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy);
}
.display em {
  font-style: italic; font-weight: 500;
  color: var(--sea-deep);
}

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

.lead {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.6;
  color: var(--ink);
}
.lead em { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.18em; line-height: 1; color: var(--sea-deep); }
p + p { margin-top: 1.1em; }
.muted { color: var(--ink-soft); font-size: 14px; letter-spacing: .02em; }

.link-arrow {
  font-family: var(--display);
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 32px;
  font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; color: var(--navy);
  padding-bottom: 6px; border-bottom: 1px solid var(--sea);
}
.link-arrow::after { content: "→"; transition: transform .3s var(--ease); }
.link-arrow:hover::after { transform: translateX(5px); }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px;
  font-family: var(--display); font-size: 12px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; border-radius: var(--radius); cursor: pointer; white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn-sm { min-height: 44px; padding: 0 22px; font-size: 12px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--sea-deep); color: #fff; }
.btn-primary:hover { background: var(--navy); }
.btn-ghost { border-color: rgba(251, 246, 238, .7); color: var(--shell); }
.btn-ghost:hover { background: var(--shell); color: var(--navy); }
.btn-light { background: var(--shell); color: var(--navy); }
.btn-light:hover { background: var(--mist); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  color: var(--shell);
  transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header::before { /* soft scrim over the hero for legibility */
  content: ""; position: absolute; inset: 0 0 -40px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(34, 51, 63, .55), rgba(34, 51, 63, 0));
  transition: opacity .4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(74, 117, 147, .96);   /* --sea-deep */
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  backdrop-filter: saturate(1.2) blur(12px);
  color: var(--shell);
  box-shadow: 0 10px 30px -18px rgba(34, 51, 63, .6);
}
.site-header.is-scrolled::before { opacity: 0; }

.nav-bar {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  transition: height .4s var(--ease);
}
.site-header.is-scrolled .nav-bar { height: 70px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 40px; height: 40px; object-fit: contain; }
.brand-name { display: block; width: auto; height: 14px; }

.primary-nav ul { display: flex; gap: clamp(18px, 2.2vw, 34px); }
.primary-nav a {
  position: relative; display: block; padding: 8px 0;
  font-family: var(--display); font-size: 11.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.primary-nav a:hover::after, .primary-nav a.is-active::after { transform: scaleX(1); }
.site-header.is-scrolled .primary-nav a.is-active { color: #fff; }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.site-header .nav-cta { background: var(--shell); color: var(--navy); }
.site-header .nav-cta:hover { background: var(--mist); }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor;
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 26px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: -1;
  background: var(--navy); color: var(--shell);
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.mobile-menu nav { display: flex; flex-direction: column; flex: 1; }
.mobile-menu ul { border-top: 1px solid rgba(251, 246, 238, .15); }
.mobile-menu li { border-bottom: 1px solid rgba(251, 246, 238, .15); }
.mobile-menu li a {
  display: flex; align-items: baseline; gap: 18px; padding: 18px 0;
  font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: .16em; text-transform: uppercase; line-height: 1.2; text-decoration: none;
}
.mobile-menu .btn { margin-top: 32px; }
.mobile-menu-foot { margin-top: auto; padding-top: 32px; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; opacity: .6; }

body.menu-open { overflow: hidden; }
body.menu-open .site-header { color: var(--shell); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.menu-open .site-header::before { opacity: 0; }
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
body.menu-open .nav-cta { opacity: 0; pointer-events: none; }

@media (max-width: 1180px) {
  .primary-nav { display: none; }
  .nav-toggle { display: block; }
}
@media (max-width: 520px) {
  .nav-cta { display: none; }
  .brand-name { height: 10px; }
  .brand-mark { width: 34px; height: 34px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  color: var(--shell); overflow: hidden; background: var(--navy);
}
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 50% 60%; animation: heroZoom 18s var(--ease) both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(34, 51, 63, .82) 0%, rgba(34, 51, 63, .35) 45%, rgba(34, 51, 63, 0) 70%),
    radial-gradient(ellipse at 50% 50%, rgba(43, 63, 77, .38), rgba(43, 63, 77, 0) 65%);
}
.hero-content { position: relative; padding-block: var(--header-h); text-align: center; }
.hero h1 { font-weight: 500; line-height: 1; }
.h1-pre {
  display: block; margin-bottom: .7em;
  font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none;
  font-size: clamp(22px, 2.4vw, 32px); letter-spacing: .01em; color: var(--mist);
}
.hero-wordmark { display: block; width: min(100%, 820px); height: auto; margin-inline: auto; }

.hero-content > * { animation: rise 1.1s var(--ease) both; }
.hero-content > *:nth-child(2) { animation-delay: .12s; }
.hero-content > *:nth-child(3) { animation-delay: .24s; }
.hero-content > *:nth-child(4) { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.scroll-cue {
  position: absolute; right: var(--gutter); bottom: 44px;
  width: 1px; height: 72px; background: rgba(251, 246, 238, .3); overflow: hidden;
}
.scroll-cue span { position: absolute; left: 0; top: 0; width: 1px; height: 24px; background: var(--shell); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-24px); } 100% { transform: translateY(72px); } }
@media (max-width: 700px) { .scroll-cue { display: none; } }

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding-block: var(--section-y); }
.section-sand { background: var(--sand-soft); }
.section-mist { background: var(--mist); }
.section-navy { background: var(--navy); color: var(--shell); }
.section-navy .display { color: var(--shell); }
.section-navy .lead { color: rgba(251, 246, 238, .9); }
.section-blue { background: var(--sea); }

.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head .lead { margin-top: 24px; color: var(--ink-soft); }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* ---------- Intro ---------- */

.intro-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.intro-body { padding-top: 46px; color: var(--ink-soft); }
.intro-body .lead { color: var(--ink); margin-bottom: 1.1em; }

/* ---------- Development ---------- */

.split { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split-media { position: relative; }
.split-media::after {
  content: ""; position: absolute; z-index: 0; inset: 28px -28px -28px 28px;
  border: 1px solid var(--sea); border-radius: var(--radius-lg); pointer-events: none;
}
.split-media picture { position: relative; z-index: 1; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); }
.split-copy p:not(.eyebrow) { margin-top: 28px; color: var(--ink-soft); }


/* ---------- Homes ---------- */

.homes-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: end; }
.homes-feature img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; border-radius: var(--radius-md); }
.homes-feature figcaption, .location-media figcaption {
  margin-top: 14px; font-size: 13px; letter-spacing: .04em; color: var(--ink-soft);
}

.typologies { border-top: 1px solid var(--navy); }
.typologies li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.t-name { font-family: var(--display); font-weight: 500; font-size: clamp(15px, 1.35vw, 18px); letter-spacing: .14em; text-transform: uppercase; color: var(--navy); line-height: 1.4; }
.t-beds { font-family: var(--sans); flex-shrink: 0; font-size: 11.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--sea-deep); }


/* Feature explorer: list + swapping image */
.explorer {
  margin-top: clamp(80px, 10vw, 140px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start;
}
.explorer-list { border-top: 1px solid var(--navy); }
.explorer-item { border-bottom: 1px solid var(--line); }
.explorer-btn {
  display: flex; align-items: baseline; gap: 24px; width: 100%;
  padding: 22px 0; background: none; border: 0; cursor: pointer; text-align: left; color: var(--navy);
}
.explorer-mark { flex-shrink: 0; align-self: center; width: 14px; height: 1px; background: var(--sea); transition: width .5s var(--ease), background-color .5s var(--ease); }
.explorer-item.is-active .explorer-mark { width: 36px; background: var(--sea-deep); }
.explorer-title {
  flex: 1; font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.1;
  transition: color .4s var(--ease), transform .5s var(--ease);
}
.explorer-btn::after { content: "→"; font-size: 18px; color: var(--sea-deep); opacity: 0; transform: translateX(-8px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.explorer-item:not(.is-active) .explorer-title { color: rgba(43, 63, 77, .45); }
.explorer-item.is-active .explorer-btn::after { opacity: 1; transform: none; }
.explorer-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.explorer-panel > div { overflow: hidden; }
.explorer-panel p { padding: 0 0 26px 60px; max-width: 46ch; color: var(--ink-soft); }
.explorer-item.is-active .explorer-panel { grid-template-rows: 1fr; }
.explorer-media {
  position: sticky; top: calc(var(--header-h) + 24px);
  aspect-ratio: 4 / 5; border-radius: var(--radius-md); overflow: hidden; background: var(--sand);
}
.explorer-img { position: absolute; inset: 0; opacity: 0; transition: opacity .8s var(--ease); }
.explorer-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease); }
.explorer-img.is-active { opacity: 1; }
.explorer-img.is-active img { transform: scale(1); }

/* Topographic contour texture */
.has-topo { position: relative; overflow: clip; isolation: isolate; }
.topo {
  position: absolute; z-index: -1; pointer-events: none;
  width: clamp(520px, 62vw, 980px); height: auto; aspect-ratio: 1;
  fill: none; stroke: currentColor; stroke-width: 1;
}
.topo-development { top: -22%; left: -18%; color: var(--sand); opacity: .9; transform: rotate(-20deg); }
.topo-location { right: -24%; bottom: -38%; color: var(--mist); opacity: .09; transform: rotate(60deg); }
.topo-register { top: -30%; left: -20%; color: var(--shell); opacity: .16; transform: rotate(160deg); }
.topo-footer { right: -12%; top: -60%; width: clamp(420px, 44vw, 720px); color: var(--shell); opacity: .06; }

/* Character areas carousel */
.areas { margin-top: clamp(72px, 9vw, 120px); }
.areas-title { text-align: center; margin-bottom: 32px; font-family: var(--display); font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--navy); }
.areas-controls { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 28px; }
.areas-dots { display: flex; align-items: center; gap: 6px; padding-inline: 6px; }
.areas-dots button { width: 14px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; transition: width .4s var(--ease); }
.areas-dots button::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; border-radius: 1px; background: rgba(43, 63, 77, .25); transition: background-color .4s var(--ease); }
.areas-dots button:hover::before { background: rgba(43, 63, 77, .5); }
.areas-dots button[aria-current="true"] { width: 32px; }
.areas-dots button[aria-current="true"]::before { background: var(--navy); }
.areas-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(43, 63, 77, .35); background: transparent;
  color: var(--navy); font-size: 16px; cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.areas-btn:hover { background: var(--navy); border-color: var(--navy); color: var(--shell); }
.areas-viewport { --per-view: 3; --gap: 24px; overflow: hidden; touch-action: pan-y; }
.areas-track { display: flex; gap: var(--gap); transition: transform .8s var(--ease); }
.area-slide {
  flex: 0 0 calc((100% - var(--gap) * (var(--per-view) - 1)) / var(--per-view));
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px;
  padding: clamp(28px, 3vw, 40px); background: var(--mist); border-radius: var(--radius-md);
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
.area-slide.is-current { background: var(--navy); }
.area-slide.is-current .area-name { color: var(--shell); }
.area-slide.is-current .area-type { color: rgba(251, 246, 238, .75); }
.area-contour {
  position: absolute; top: -34%; right: -26%; width: 88%; height: auto; pointer-events: none;
  fill: none; stroke: currentColor; stroke-width: .8; color: var(--sea-deep); opacity: .4;
  transition: color .5s var(--ease), opacity .5s var(--ease);
}
.area-slide.is-current .area-contour { color: var(--mist); opacity: .45; }
.area-slide:nth-child(2n) .area-contour { top: -40%; right: auto; left: -30%; transform: rotate(140deg); }
.area-slide:nth-child(3n) .area-contour { top: -28%; transform: rotate(-70deg) scale(1.15); }
.area-slide:nth-child(5) .area-contour { transform: rotate(210deg) scale(.9); }
.area-slide:nth-child(7) .area-contour { transform: rotate(35deg) scale(1.25); }
.area-name { position: relative; font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; color: var(--navy); }
.area-type { position: relative; margin-top: 8px; font-size: 15px; color: var(--ink-soft); }
.areas-progress { margin-top: 28px; height: 1px; background: rgba(43, 63, 77, .2); }
.areas-progress span { display: block; height: 100%; width: 100%; background: var(--navy); transform: scaleX(0); transform-origin: left; }
.areas-progress span.is-running { transform: scaleX(1); transition: transform var(--dur, 6s) linear; }

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

.location-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.location-copy .lead { margin-top: 28px; }
.amenities { margin-top: 44px; border-top: 1px solid rgba(251, 246, 238, .18); }
.amenities li { display: grid; grid-template-columns: 92px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid rgba(251, 246, 238, .18); }
.a-dist { font-family: var(--serif); font-size: 22px; font-style: italic; color: var(--mist); line-height: 1.3; }
.a-name { font-size: 16px; color: rgba(251, 246, 238, .85); line-height: 1.55; }
.location-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 72% 50%; border-radius: var(--radius-md); }
.location-media figcaption { color: rgba(251, 246, 238, .65); }

/* ---------- Specification ---------- */

.spec-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.spec-images { position: sticky; top: calc(var(--header-h) + 24px); padding-bottom: 18%; }
.spec-img img { width: 100%; object-fit: cover; border-radius: var(--radius-md); }
.spec-img-tall { width: 78%; }
.spec-img-tall img { aspect-ratio: 3 / 4; }
.spec-img-offset { position: absolute; right: 0; bottom: 0; width: 52%; border: 10px solid var(--shell); border-radius: calc(var(--radius-md) + 10px); }
.spec-img-offset img { aspect-ratio: 1; }
.spec-img-offset .ph-tag { right: 14px; bottom: 12px; }

.spec-group + .spec-group { margin-top: 48px; }
.spec-group h3 {
  font-family: var(--display); font-size: 15px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--navy);
  padding-bottom: 16px; border-bottom: 1px solid var(--navy); margin-bottom: 6px;
}
.spec-group li { position: relative; padding: 14px 0 14px 28px; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 16px; }
.spec-group li::before { content: ""; position: absolute; left: 2px; top: 25px; width: 12px; height: 1px; background: var(--sea); }

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(200px, 22vw, 300px); gap: 16px;
}
.g-item { position: relative; padding: 0; border: 0; background: var(--navy); overflow: hidden; cursor: zoom-in; border-radius: var(--radius-md); isolation: isolate; }
.g-item picture, .g-item img { width: 100%; height: 100%; }
.g-item img { object-fit: cover; transition: transform 1.2s var(--ease), opacity .5s var(--ease); }
.g-item:hover img { transform: scale(1.05); opacity: .9; }
.g-wide { grid-column: span 2; grid-row: span 2; }
.g-tall { grid-row: span 2; }
.g-span2 { grid-column: span 2; }
.g-span2 img { object-position: 50% 25%; }
/* Interiors */
.interiors-feature { position: relative; }
.interiors-feature img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 60%; border-radius: var(--radius-md); }
.interiors-feature .ph-tag { right: 16px; bottom: 12px; }
.interiors-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 16px 32px; flex-wrap: wrap; margin-top: 24px; }
.interiors-rooms { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 1.8vw, 24px); color: var(--navy); }
.interiors-rooms span { color: var(--sea); padding-inline: .3em; }
.interiors-foot .link-arrow { margin-top: 0; }

/* Full-bleed interior band between sections */
.image-band { position: relative; margin: 0; height: clamp(320px, 56vh, 620px); overflow: hidden; background: var(--navy); }
.image-band picture, .image-band img { width: 100%; height: 100%; }
.image-band img { object-fit: cover; object-position: 50% 55%; }
.image-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(34, 51, 63, .45), rgba(34, 51, 63, 0) 40%); pointer-events: none; }
.band-cap {
  position: absolute; left: var(--gutter); bottom: 22px; z-index: 1;
  font-family: var(--display); font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--shell);
}
.image-band .ph-tag { right: var(--gutter); bottom: 24px; }
.footer-hero { height: clamp(280px, 44vh, 460px); display: grid; place-items: center; text-align: center; }
.footer-hero picture { position: absolute; inset: 0; }
.footer-hero::after { background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(34, 51, 63, .62), rgba(34, 51, 63, .3)); }
.footer-hero-copy { text-shadow: 0 1px 18px rgba(22, 33, 41, .35); }
.footer-hero-copy { position: relative; z-index: 1; padding-inline: var(--gutter); }
.footer-hero .eyebrow { justify-content: center; margin-bottom: 16px; }
.footer-hero .eyebrow::after { content: ""; width: 32px; height: 1px; background: currentColor; }
.footer-hero-title {
  font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3.6vw, 50px); line-height: 1.1;
  letter-spacing: .04em; text-transform: uppercase; color: var(--shell);
}
.footer-hero-title em { font-style: italic; color: var(--mist); }

/* Gallery filter */
.gallery-filters { display: flex; gap: 10px; margin: -24px 0 32px; }
.gallery-filters button {
  min-height: 40px; padding: 0 20px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(43, 63, 77, .3); background: transparent; color: var(--navy);
  font-family: var(--display); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.gallery-filters button:hover { border-color: var(--navy); }
.gallery-filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--shell); }
.gallery-grid { grid-auto-flow: dense; }
.g-item[hidden] { display: none; }

/* Tiny marker for generated stand-in imagery */
.ph-tag {
  position: absolute; right: 10px; bottom: 8px; z-index: 2; pointer-events: none;
  font-family: var(--sans); font-size: 9px; letter-spacing: .06em; line-height: 1;
  color: rgba(251, 246, 238, .45);
}
.g-cap { font-family: var(--display);
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; text-align: left;
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--shell);
  background: linear-gradient(to top, rgba(34, 51, 63, .75), rgba(34, 51, 63, 0));
}

/* ---------- Register ---------- */

.register-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.register-copy { position: sticky; top: calc(var(--header-h) + 24px); }
.register-copy > p:not(.eyebrow) { margin-top: 28px; color: var(--navy-ink); font-weight: 400; font-size: 18px; }
.register .display em { color: var(--shell); }

.contact-card { margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(43, 63, 77, .35); }
.contact-label { font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--navy); }
.contact-name { margin-top: 10px !important; font-family: var(--display); font-size: 16px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); }
.contact-card a { display: inline-block; margin-top: 4px; font-weight: 500; color: var(--navy); text-underline-offset: 4px; }

.register-form { background: var(--shell); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 52px); box-shadow: 0 30px 60px -30px rgba(34, 51, 63, .45); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.field label, .field legend {
  font-family: var(--display);
  display: block; margin-bottom: 8px; padding: 0;
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--navy);
}
.opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid rgba(43, 63, 77, .35);
  background: transparent; border-radius: 0;
  font: 400 17px/1.4 var(--sans); color: var(--navy);
  transition: border-color .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 80px; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--sea-deep); box-shadow: 0 1px 0 var(--sea-deep); }
.field.has-error input { border-bottom-color: #A3473A; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: 9px 16px; border: 1px solid rgba(43, 63, 77, .3); border-radius: 40px;
  font-size: 14px; color: var(--navy); transition: all .25s var(--ease);
}
.chip:hover span { border-color: var(--sea-deep); }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--shell); }
.chip input:focus-visible + span { outline: 2px solid var(--sea-deep); outline-offset: 2px; }

.consent { display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 28px; font-size: 14px; line-height: 1.5; color: var(--ink-soft); cursor: pointer; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--navy); flex-shrink: 0; }
.consent.has-error span { color: #A3473A; }

.form-status { margin-top: 16px !important; font-size: 15px; color: var(--navy); min-height: 1.5em; }
.form-status.is-error { color: #A3473A; }
.register-form.is-sent .field, .register-form.is-sent .form-row, .register-form.is-sent .consent, .register-form.is-sent button { display: none; }
.register-form.is-sent .form-status { margin-top: 0 !important; font-family: var(--serif); font-size: 30px; line-height: 1.3; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--navy-ink); color: rgba(251, 246, 238, .78); font-size: 15px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; padding-block: 88px 64px; }
.brand-footer { color: var(--shell); margin-bottom: 20px; }
.footer-label { font-family: var(--display); font-size: 11px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--sea); margin-bottom: 18px; }
.footer-nav li + li { margin-top: 8px; }
.footer-nav a { text-decoration: none; transition: color .3s; }
.footer-nav a:hover { color: var(--shell); }
.footer-bottom { display: flex; justify-content: space-between; gap: 40px; padding-block: 28px 40px; border-top: 1px solid rgba(251, 246, 238, .12); font-size: 12.5px; line-height: 1.6; color: rgba(251, 246, 238, .55); }
.disclaimer { max-width: 820px; }
.copyright { flex-shrink: 0; }

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(22, 33, 41, .95);
  display: flex; align-items: center; justify-content: center; padding: 64px 72px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 160px); object-fit: contain; border-radius: var(--radius-md); }
.lightbox figcaption { font-family: var(--display); margin-top: 16px; color: var(--shell); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--shell); cursor: pointer; font-family: var(--serif); line-height: 1; padding: 8px 14px; opacity: .8; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: 16px; right: 16px; font-size: 44px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 64px; }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }

/* ==========================================================================
   Back to top
   ========================================================================== */

.to-top {
  position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: 90;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sea-deep); color: #fff;
  box-shadow: 0 12px 28px -12px rgba(34, 51, 63, .6);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s, background-color .3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--navy); transform: translateY(-3px); }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body.menu-open .to-top { opacity: 0; visibility: hidden; }

/* ==========================================================================
   Motion & details
   ========================================================================== */

::selection { background: var(--sea); color: #fff; }
html { scrollbar-color: var(--sea) var(--shell); }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--shell); }
::-webkit-scrollbar-thumb { background: var(--sea); border-radius: 10px; border: 3px solid var(--shell); }

/* Scroll progress along the bottom of the header */
.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--mist), #fff);
  transform-origin: left; transform: scaleX(var(--progress, 0));
  opacity: 0; transition: opacity .4s var(--ease);
}
.site-header.is-scrolled .scroll-progress { opacity: 1; }
body.menu-open .scroll-progress { opacity: 0; }

/* Hero: parallax layer + drifting waves */
.hero-media { will-change: transform; }
.hero-content { will-change: transform, opacity; }
.hero-waves { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(40px, 6vw, 90px); pointer-events: none; overflow: hidden; }
.hero-waves .wave { position: absolute; bottom: 0; left: 0; width: 200%; height: 100%; }
.wave-back { fill: var(--mist); opacity: .45; animation: drift 22s linear infinite; }
.wave-front { fill: var(--shell); animation: drift 14s linear infinite reverse; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.scroll-cue { bottom: clamp(70px, 9vw, 120px); }

/* Heading word-by-word rise (words wrapped by JS) */
.js .display .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.js .display .w > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 45ms + 120ms); }
.js .is-visible .display .w > span { transform: none; }

/* Eyebrow rule draws in */
.js .reveal .eyebrow::before { width: 0; transition: width .9s var(--ease) .15s; }
.js .reveal.is-visible .eyebrow::before { width: 32px; }

/* Image wipe reveal */
.js .reveal.reveal-img { opacity: 1; transform: none; }
.js .reveal-img picture { display: block; overflow: hidden; clip-path: inset(100% 0 0 0 round var(--radius-md)); transition: clip-path 1.3s var(--ease); }
.js .reveal-img img { transform: scale(1.18); transition: transform 1.8s var(--ease); }
.js .reveal-img.is-visible picture { clip-path: inset(0 0 0 0 round var(--radius-md)); }
.js .reveal-img.is-visible img { transform: scale(1); }
.js .spec-images.reveal-img .spec-img-offset { transition-delay: .25s; }
.js .reveal-img figcaption { opacity: 0; transition: opacity .8s var(--ease) .6s; }
.js .reveal-img.is-visible figcaption { opacity: 1; }
.js .reveal-img.is-visible:hover img { transform: scale(1.03); }
.split-media::after { transition: transform .8s var(--ease); }
.split-media:hover::after { transform: translate(-10px, -10px); }

/* Buttons: light sweep */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: scale(.98); }


/* Typology & area rows */
.typologies li { position: relative; transition: padding-left .5s var(--ease); }
.typologies li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 0; height: 1px; background: var(--sea-deep);
  transition: width .5s var(--ease);
}
.typologies li:hover { padding-left: 34px; }
.typologies li:hover::before { width: 20px; }

/* Amenities on navy */
.amenities li { transition: background-color .4s var(--ease), padding .4s var(--ease); border-radius: 8px; }
.amenities li:hover { background: rgba(207, 224, 234, .07); padding-inline: 14px; }

/* Gallery: caption slide + zoom badge */
@media (hover: hover) {
  .g-cap { transform: translateY(12px); opacity: 0; transition: transform .6s var(--ease), opacity .6s var(--ease); }
  .g-item:hover .g-cap, .g-item:focus-visible .g-cap { transform: none; opacity: 1; }
}
.g-item::after {
  content: "+"; position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(251, 246, 238, .92); color: var(--navy);
  font: 400 24px/1 var(--display);
  transform: scale(.6) rotate(-90deg); opacity: 0; transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.g-item:hover::after, .g-item:focus-visible::after { transform: none; opacity: 1; }
.lightbox { animation: lbIn .4s var(--ease); }
.lightbox img { animation: lbImg .6s var(--ease); }
@keyframes lbIn { from { opacity: 0; } }
@keyframes lbImg { from { opacity: 0; transform: scale(.96); } }

/* Form fields: animated underline */
.field input, .field textarea {
  background: linear-gradient(var(--sea-deep), var(--sea-deep)) left bottom / 0 2px no-repeat;
  transition: background-size .5s var(--ease), border-color .3s var(--ease);
}
.field input:focus, .field textarea:focus { background-size: 100% 2px; box-shadow: none; }
.register-form { transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.register-form:focus-within { transform: translateY(-4px); box-shadow: 0 40px 70px -30px rgba(34, 51, 63, .55); }

/* Back-to-top ring shows scroll progress */
.to-top::before {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  background: conic-gradient(var(--sea) calc(var(--progress, 0) * 360deg), transparent 0);
  -webkit-mask: radial-gradient(circle, transparent 27px, #000 28px);
          mask: radial-gradient(circle, transparent 27px, #000 28px);
}
.to-top:hover svg { animation: nudge .8s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateY(-3px); } }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .intro-grid, .split, .homes-grid, .location-grid, .spec-layout, .register-grid { grid-template-columns: 1fr; }
  .intro-body { padding-top: 0; }
  .split-media::after { inset: 16px -16px -16px 16px; }
  .split-media { margin-right: 16px; }
  .location-media img { aspect-ratio: 4 / 3; }
  .spec-images { max-width: 560px; position: relative; top: auto; }
  .register-copy { position: static; }
  .explorer { grid-template-columns: 1fr; }
  .explorer-media { position: relative; top: auto; order: -1; aspect-ratio: 4 / 3; }
  .areas-viewport { --per-view: 2; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; }
  .interiors-feature img { aspect-ratio: 16 / 10; }
  .g-wide { grid-column: span 2; grid-row: span 1; }
  .g-tall { grid-row: span 2; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .areas-viewport { --per-view: 1.15; --gap: 16px; }
    .explorer-btn { gap: 16px; }
  .explorer-panel p { padding-left: 52px; }
  .amenities li { grid-template-columns: 1fr; gap: 4px; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 64vw; gap: 12px; }
  .g-wide, .g-tall, .g-span2 { grid-column: auto; grid-row: auto; }
  .footer-top { grid-template-columns: 1fr; padding-block: 64px 40px; }
  .lightbox { padding: 56px 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; font-size: 48px; }
}
