/* ============================================================
   ALEXANDRA VOSS — COASTAL ESTATES
   Demo site by Novas Edge
   ------------------------------------------------------------
   01. Tokens
   02. Base / Reset
   03. Utilities
   04. Buttons & Links
   05. Preloader / Transition / Cursor
   06. Navigation & Menu
   07. Hero
   08. Sections (intro, marquee, stats, featured, services,
       about-teaser, neighborhoods, testimonials, press, cta)
   09. Footer
   10. Inner pages (page-hero, listings grid, listing detail,
       about, contact, lightbox)
   11. Motion preferences / Responsive
   ============================================================ */

/* ---------- 00. SELF-HOSTED FONTS (Fontsource woff2) ---------- */
@font-face {
  font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("../assets/fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500;
  font-display: swap; src: url("../assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600;
  font-display: swap; src: url("../assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400;
  font-display: swap; src: url("../assets/fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500;
  font-display: swap; src: url("../assets/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Jost"; font-style: normal; font-weight: 300;
  font-display: swap; src: url("../assets/fonts/jost-latin-300-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Jost"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("../assets/fonts/jost-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Jost"; font-style: normal; font-weight: 500;
  font-display: swap; src: url("../assets/fonts/jost-latin-500-normal.woff2") format("woff2");
}

/* ---------- 01. TOKENS ---------- */
:root {
  /* color */
  --ink: #0B0A08;
  --ink-2: #12100C;
  --ink-3: #191612;
  --ivory: #F2EDE3;
  --ivory-dim: #B9B0A2;
  --ivory-faint: #837B6F;
  --gold: #C6A15B;
  --gold-bright: #DFBE7E;
  --gold-deep: #8F7134;
  --hairline: rgba(242, 237, 227, 0.14);
  --hairline-soft: rgba(242, 237, 227, 0.08);
  --scrim: rgba(11, 10, 8, 0.55);

  /* type */
  --font-serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --font-sans: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --fs-display: clamp(3.4rem, 9.5vw, 8.2rem);
  --fs-h2: clamp(2.4rem, 5.4vw, 4.6rem);
  --fs-h3: clamp(1.7rem, 3.2vw, 2.6rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.72rem;
  --track-label: 0.28em;

  /* space (spacious density) */
  --space-section: clamp(7rem, 13vw, 12rem);
  --space-block: clamp(3rem, 6vw, 5.5rem);
  --gutter: clamp(1.5rem, 4.5vw, 4rem);
  --container: 90rem;

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-fast: 0.35s;
  --dur-med: 0.65s;

  /* z */
  --z-nav: 100;
  --z-menu: 90;
  --z-lightbox: 200;
  --z-transition: 900;
  --z-preloader: 950;
  --z-cursor: 1000;
}

/* ---------- 02. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  overflow-x: clip;
}

::selection { background: var(--gold); color: var(--ink); }

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

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

em, .serif-i { font-family: var(--font-serif); font-style: italic; font-weight: 500; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 1px;
}

.skip-link {
  position: fixed; top: 0.75rem; left: 0.75rem; z-index: calc(var(--z-cursor) + 1);
  background: var(--gold); color: var(--ink);
  padding: 0.7rem 1.2rem; font-size: var(--fs-label);
  letter-spacing: var(--track-label); text-transform: uppercase;
  transform: translateY(-300%); transition: transform 0.3s var(--ease-out);
}
.skip-link:focus-visible { transform: none; }

/* ---------- 03. UTILITIES ---------- */
.container {
  width: 100%; max-width: var(--container);
  margin-inline: auto; padding-inline: var(--gutter);
}
.container--narrow { max-width: 64rem; }

.label {
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}
.label::before {
  content: ""; width: 2.6rem; height: 1px;
  background: var(--gold); opacity: 0.7; flex: none;
}
.label--bare::before { display: none; }

.muted { color: var(--ivory-dim); }
.tac { text-align: center; }

.section { padding-block: var(--space-section); position: relative; }
.section--flush-top { padding-top: 0; }

.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 1.5rem 3rem;
  margin-bottom: var(--space-block);
}
.section-head h2 { font-size: var(--fs-h2); max-width: 18ch; }
.section-head .label { margin-bottom: 1.4rem; }

.hairline-top { border-top: 1px solid var(--hairline-soft); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* media reveal frames */
.media {
  position: relative; overflow: hidden;
  background: var(--ink-3);
}
.media > img, .media > video {
  width: 100%; height: 100%; object-fit: cover;
}
.media-reveal > img, .media-reveal > video { will-change: transform; }

[data-parallax] { will-change: transform; }

/* ---------- 04. BUTTONS & LINKS ---------- */
.btn {
  --btn-fg: var(--ivory);
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.8rem;
  padding: 1.15rem 2.6rem;
  border: 1px solid var(--hairline);
  color: var(--btn-fg);
  font-size: var(--fs-label); font-weight: 400;
  letter-spacing: var(--track-label); text-transform: uppercase;
  cursor: pointer; overflow: hidden;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--gold);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.45s var(--ease-io);
}
.btn:hover, .btn:focus-visible { color: var(--ink); border-color: var(--gold); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); transform-origin: top; }

.btn--solid { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn--solid::before { background: var(--ivory); }
.btn--solid:hover, .btn--solid:focus-visible { color: var(--ink); }

.btn .btn__arrow { width: 1em; height: 1em; flex: none; }

.link-line {
  position: relative; display: inline-flex; align-items: center; gap: 0.7rem;
  font-size: var(--fs-label); letter-spacing: var(--track-label);
  text-transform: uppercase; color: var(--ivory); padding-bottom: 0.45rem;
}
.link-line::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0.35); transform-origin: left;
  transition: transform 0.5s var(--ease-io);
}
.link-line:hover::after, .link-line:focus-visible::after { transform: scaleX(1); }
.link-line svg { width: 0.95em; height: 0.95em; transition: transform 0.4s var(--ease-out); }
.link-line:hover svg { transform: translateX(4px); }

/* ---------- 05. PRELOADER / TRANSITION / CURSOR ---------- */
.preloader {
  position: fixed; inset: 0; z-index: var(--z-preloader);
  background: var(--ink);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2.2rem;
}
.preloader__mark { width: clamp(64px, 9vw, 96px); }
.preloader__count {
  font-family: var(--font-serif); font-size: 1.15rem;
  letter-spacing: 0.35em; color: var(--ivory-dim);
  font-variant-numeric: tabular-nums;
}
.preloader__bar {
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--hairline-soft);
}
.preloader__bar i {
  position: absolute; inset: 0; background: var(--gold);
  transform: scaleX(0); transform-origin: left; display: block;
}
.preloader.is-done { pointer-events: none; }

.transition {
  position: fixed; inset: -2% 0; z-index: var(--z-transition);
  background: var(--ink-2);
  transform: translateY(103%);
  pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
.transition__mark { width: 72px; opacity: 0; }

.cursor, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: var(--z-cursor);
  pointer-events: none; border-radius: 50%;
  display: none;
}
.cursor {
  width: 6px; height: 6px; background: var(--gold);
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 42px; height: 42px;
  border: 1px solid rgba(198, 161, 91, 0.55);
  transform: translate(-50%, -50%);
  display: none; align-items: center; justify-content: center;
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
              background-color 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}
.cursor-ring span {
  font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink); opacity: 0; transition: opacity 0.25s var(--ease-out);
  font-weight: 500;
}
.cursor-ring.is-hover { width: 64px; height: 64px; border-color: var(--gold); }
.cursor-ring.is-media {
  width: 92px; height: 92px;
  background: var(--gold); border-color: var(--gold);
}
.cursor-ring.is-media span { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
  .cursor-ring { display: flex; }
}

/* ---------- 06. NAVIGATION & MENU ---------- */
/* Novas Edge demo strip — sits inside the fixed header so it shares the glass */
.demobar { border-bottom: 1px solid var(--hairline-soft); }
.demobar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 0.55rem;
  font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ivory-faint);
}
.demobar b { font-weight: 500; color: var(--gold); }
.demobar a { color: var(--ivory-dim); transition: color var(--dur-fast) var(--ease-out); white-space: nowrap; }
.demobar a:hover { color: var(--gold); }

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  transition: background-color 0.5s var(--ease-out), backdrop-filter 0.5s var(--ease-out),
              border-color 0.5s var(--ease-out), transform 0.55s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11, 10, 8, 0.72);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-color: var(--hairline-soft);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; padding-block: 1.35rem;
}
.nav.is-scrolled .nav__inner { padding-block: 1rem; }

.brand { display: inline-flex; align-items: center; gap: 1rem; }
.brand__mark { width: 44px; height: 44px; flex: none; color: var(--gold); }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__name {
  font-family: var(--font-serif); font-size: 1.18rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ivory);
}
.brand__tag {
  font-size: 0.6rem; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--gold);
}

.nav__links { display: flex; align-items: center; gap: 2.6rem; }
.nav__link {
  position: relative; font-size: var(--fs-label);
  letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--ivory-dim); padding-block: 0.4rem;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease-io);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--ivory); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__right { display: flex; align-items: center; gap: 2rem; }
.nav__phone {
  font-size: var(--fs-label); letter-spacing: 0.12em;
  color: var(--ivory-dim); transition: color var(--dur-fast) var(--ease-out);
  font-variant-numeric: tabular-nums;
}
.nav__phone:hover { color: var(--gold); }

.burger {
  position: relative; width: 48px; height: 48px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.burger i {
  position: absolute; left: 50%; width: 26px; height: 1.5px;
  background: var(--ivory); transform: translateX(-50%);
  transition: transform 0.45s var(--ease-io), background-color 0.3s;
}
.burger i:nth-child(1) { translate: 0 -4.5px; }
.burger i:nth-child(2) { translate: 0 4.5px; }
.burger:hover i { background: var(--gold); }
.burger.is-open i:nth-child(1) { translate: 0 0; transform: translateX(-50%) rotate(45deg); }
.burger.is-open i:nth-child(2) { translate: 0 0; transform: translateX(-50%) rotate(-45deg); }

/* full-screen menu */
.menu {
  position: fixed; inset: 0; z-index: var(--z-menu);
  background: var(--ink-2);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  display: flex; flex-direction: column; justify-content: center;
}
.menu.is-active { visibility: visible; }
.menu__grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  align-items: center; gap: 4rem;
  padding-top: 4rem;
}
.menu__list { display: flex; flex-direction: column; }
.menu__item { overflow: hidden; }
.menu__link {
  display: inline-flex; align-items: baseline; gap: 1.6rem;
  font-family: var(--font-serif); font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1.18; color: var(--ivory);
  transition: color var(--dur-fast) var(--ease-out);
  will-change: transform;
}
.menu__link sup {
  font-family: var(--font-sans); font-size: 0.7rem;
  letter-spacing: 0.25em; color: var(--gold);
}
.menu__link:hover, .menu__link[aria-current="page"] { color: var(--gold); }
.menu__media {
  position: relative; aspect-ratio: 3 / 4; max-height: 62vh;
  overflow: hidden; justify-self: end; width: min(100%, 26rem);
}
.menu__media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0;
  transition: opacity 0.6s var(--ease-out), transform 1.2s var(--ease-out);
  transform: scale(1.06);
}
.menu__media img.is-visible { opacity: 1; transform: scale(1); }
.menu__foot {
  position: absolute; left: 0; right: 0; bottom: 0;
  border-top: 1px solid var(--hairline-soft);
}
.menu__foot-inner {
  display: flex; flex-wrap: wrap; gap: 1rem 3rem;
  align-items: center; justify-content: space-between;
  padding-block: 1.6rem;
  font-size: var(--fs-label); letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ivory-dim);
}
.menu__foot a { transition: color var(--dur-fast); }
.menu__foot a:hover { color: var(--gold); }
.menu__socials { display: flex; gap: 2rem; }

/* ---------- 07. HERO ---------- */
.hero {
  position: relative; min-height: 100dvh;
  display: flex; align-items: flex-end;
  overflow: clip;
}
.hero__media {
  position: absolute; inset: 0; z-index: -2;
}
.hero__media video, .hero__media img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(11,10,8,0.92) 0%, rgba(11,10,8,0.35) 34%, rgba(11,10,8,0.15) 60%, rgba(11,10,8,0.55) 100%);
}
.hero__inner {
  width: 100%;
  padding-bottom: clamp(3rem, 7vh, 5.5rem);
}
.hero .label { margin-bottom: 2rem; }
.hero__title {
  font-size: var(--fs-display);
  font-weight: 500;
  color: var(--ivory);
  margin-bottom: 2.6rem;
  max-width: 12ch;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__row {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 2rem 4rem;
  border-top: 1px solid var(--hairline);
  padding-top: 2.2rem;
}
.hero__blurb { max-width: 34rem; color: var(--ivory-dim); font-size: var(--fs-small); }
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: clamp(3rem, 7vh, 5.5rem);
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  font-size: 0.62rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--ivory-dim); writing-mode: vertical-rl;
}
.hero__scroll i {
  width: 1px; height: 64px; background: var(--hairline);
  position: relative; overflow: hidden; display: block;
}
.hero__scroll i::after {
  content: ""; position: absolute; left: 0; top: -100%;
  width: 100%; height: 100%; background: var(--gold);
  animation: scrollHint 2.2s var(--ease-io) infinite;
}
@keyframes scrollHint { 0% { top: -100%; } 55% { top: 0; } 100% { top: 100%; } }

/* ---------- 08. HOME SECTIONS ---------- */
/* intro statement */
.intro__grid {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: var(--space-block); align-items: end;
}
.intro__statement {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.6vw, 3.3rem);
  line-height: 1.28; font-weight: 500;
  max-width: 24ch;
}
.intro__statement .accent { color: var(--gold); font-style: italic; }
.intro__aside { display: flex; flex-direction: column; gap: 1.6rem; }
.intro__aside p { color: var(--ivory-dim); font-size: var(--fs-small); max-width: 30rem; }
.intro__portrait { width: min(100%, 21rem); aspect-ratio: 3/4; margin-bottom: 0.6rem; }

/* marquee */
.marquee {
  border-block: 1px solid var(--hairline-soft);
  padding-block: 1.6rem; overflow: hidden;
  display: flex; user-select: none;
}
.marquee__track {
  display: flex; flex: none; align-items: center;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--font-serif); font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ivory-faint); white-space: nowrap; padding-inline: 1.8rem;
}
.marquee__track svg { width: 10px; height: 10px; color: var(--gold); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* stats */
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-inline: 1px solid var(--hairline-soft);
}
.stat {
  padding: clamp(2rem, 4vw, 3.4rem) clamp(1.2rem, 3vw, 3rem);
  border-left: 1px solid var(--hairline-soft);
  display: flex; flex-direction: column; gap: 0.9rem;
}
.stat:first-child { border-left: 0; }
.stat__num {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1;
  color: var(--ivory); display: flex; align-items: baseline;
  font-variant-numeric: tabular-nums;
}
.stat__num .suffix { color: var(--gold); margin-left: 0.15em; }
.stat__label {
  font-size: var(--fs-label); letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ivory-dim);
}

/* featured — pinned horizontal gallery */
.featured { background: var(--ink-2); }
/* The pinned block must fit ONE viewport — compact chrome, centered content;
   card width is height-derived on pinning screens (see media query below) so
   images are never clipped by the fold. */
.featured .featured__pin {
  min-height: 100svh;
  padding-block: clamp(1.25rem, 3vh, 2.5rem);
  display: flex; flex-direction: column; justify-content: center;
}
.featured .section-head { margin-bottom: clamp(1.25rem, 3.5vh, 2.75rem); }
.featured .section-head h2 { font-size: clamp(1.9rem, 3.4vw, 3.2rem); max-width: none; }
.featured__viewport { overflow: hidden; }
.featured__track {
  display: flex; gap: clamp(1.5rem, 3vw, 3rem);
  padding-inline: var(--gutter);
  width: max-content;
}
.f-card {
  position: relative; flex: none;
  width: min(78vw, 56rem);
  display: flex; flex-direction: column; gap: 1.4rem;
}
.f-card__media { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.f-card__media img {
  transition: transform 1.1s var(--ease-out);
  width: 100%; height: 100%; object-fit: cover;
}
.f-card:hover .f-card__media img { transform: scale(1.05); }
.f-card__status {
  position: absolute; top: 1.2rem; left: 1.2rem;
  background: rgba(11,10,8,0.65); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--ivory); font-size: 0.62rem; letter-spacing: 0.25em;
  text-transform: uppercase; padding: 0.55rem 0.95rem;
  border: 1px solid var(--hairline);
}
.f-card__status.is-gold { color: var(--gold); border-color: rgba(198,161,91,0.4); }
.f-card__meta {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; border-bottom: 1px solid var(--hairline-soft); padding-bottom: 1.3rem;
}
.f-card__name { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 500; }
.f-card__area { color: var(--ivory-dim); font-size: var(--fs-label); letter-spacing: 0.2em; text-transform: uppercase; margin-top: 0.5rem; }
.f-card__price {
  font-family: var(--font-serif); font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--gold); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.f-card__specs {
  display: flex; gap: 1.8rem; color: var(--ivory-faint);
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.featured__progress {
  margin-top: clamp(1.25rem, 3vh, 2.5rem);
  margin-inline: var(--gutter);
  height: 1px; background: var(--hairline-soft); position: relative;
}
.featured__progress i {
  position: absolute; inset: 0; background: var(--gold);
  transform: scaleX(0); transform-origin: left; display: block;
}

/* services */
.service {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
  padding-block: clamp(2.2rem, 4vw, 3.4rem);
  border-top: 1px solid var(--hairline-soft);
  position: relative;
}
.service:last-child { border-bottom: 1px solid var(--hairline-soft); }
.service__num {
  font-family: var(--font-serif); font-style: italic;
  color: var(--gold); font-size: 1.1rem; width: 3rem;
}
.service__body h3 { font-size: var(--fs-h3); margin-bottom: 0.7rem; transition: color var(--dur-fast) var(--ease-out); }
.service__body p { color: var(--ivory-dim); font-size: var(--fs-small); max-width: 46rem; }
.service__arrow {
  width: 3.2rem; height: 3.2rem; border: 1px solid var(--hairline);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.service__arrow svg { width: 1rem; height: 1rem; transition: color 0.4s; }
.service:hover .service__arrow { background: var(--gold); border-color: var(--gold); transform: rotate(45deg); }
.service:hover .service__arrow svg { color: var(--ink); }
.service:hover h3 { color: var(--gold); }

/* about teaser */
.about-teaser__grid {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--space-block); align-items: center;
}
.about-teaser__media { aspect-ratio: 3 / 4; max-width: 30rem; }
.about-teaser__body { display: flex; flex-direction: column; align-items: flex-start; gap: 1.8rem; }
.about-teaser__body h2 { font-size: var(--fs-h2); }
.about-teaser__body p { color: var(--ivory-dim); max-width: 34rem; }
.about-teaser__sig {
  font-family: var(--font-serif); font-style: italic;
  font-size: 1.5rem; color: var(--gold);
}

/* neighborhoods */
.hoods__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
}
.hood {
  position: relative; aspect-ratio: 3 / 4.2; overflow: hidden;
  display: flex; align-items: flex-end;
}
.hood img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform 1.2s var(--ease-out), filter 0.8s var(--ease-out);
  filter: brightness(0.82);
}
.hood:hover img { transform: scale(1.07); filter: brightness(1); }
.hood::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,10,8,0.85), transparent 55%);
}
.hood__body { position: relative; z-index: 1; padding: 1.6rem; width: 100%; }
.hood__body h3 { font-size: 1.55rem; margin-bottom: 0.3rem; }
.hood__body span {
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ivory-dim);
  display: block;
}
.hood__line {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s var(--ease-io); z-index: 2;
}
.hood:hover .hood__line { transform: scaleX(1); }

/* testimonials */
.testimonials { background: var(--ink-2); overflow: clip; }
.quote-mark { width: 3rem; height: 3rem; color: var(--gold); margin-inline: auto; margin-bottom: 2.4rem; opacity: 0.85; }
.t-slider { position: relative; max-width: 56rem; margin-inline: auto; text-align: center; }
.t-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.t-slide.is-active { position: relative; opacity: 1; visibility: visible; }
.t-slide blockquote {
  font-family: var(--font-serif); font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.42; font-weight: 500; margin-bottom: 2.4rem;
}
.t-slide cite {
  font-style: normal; font-size: var(--fs-label);
  letter-spacing: var(--track-label); text-transform: uppercase; color: var(--gold);
}
.t-slide cite span { display: block; color: var(--ivory-faint); margin-top: 0.4rem; letter-spacing: 0.18em; }
.t-nav {
  display: flex; align-items: center; justify-content: center;
  gap: 2rem; margin-top: 3rem;
}
.t-nav__count {
  font-family: var(--font-serif); font-size: 0.95rem; letter-spacing: 0.3em;
  color: var(--ivory-dim); font-variant-numeric: tabular-nums;
}
.t-nav__btn {
  width: 3.4rem; height: 3.4rem; border: 1px solid var(--hairline);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: background-color 0.35s, border-color 0.35s;
}
.t-nav__btn svg { width: 1rem; height: 1rem; transition: color 0.35s; }
.t-nav__btn:hover { background: var(--gold); border-color: var(--gold); }
.t-nav__btn:hover svg { color: var(--ink); }

/* press */
.press { padding-block: calc(var(--space-section) * 0.55); }
.press__row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 2.5rem 5rem; margin-top: 3rem;
}
.press__row span {
  font-family: var(--font-serif); font-size: clamp(1.1rem, 2vw, 1.55rem);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ivory-faint);
  transition: color 0.4s var(--ease-out);
}
.press__row span:hover { color: var(--ivory); }

/* cta band */
.cta {
  position: relative; overflow: clip;
  padding-block: calc(var(--space-section) * 1.15);
  text-align: center;
}
.cta__bg { position: absolute; inset: 0; z-index: -2; }
.cta__bg img, .cta__bg video { width: 100%; height: 118%; object-fit: cover; }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(11,10,8,0.35) 0%, rgba(11,10,8,0.88) 100%);
}
.cta h2 {
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  max-width: 16ch; margin-inline: auto; margin-bottom: 1.6rem;
}
.cta p { color: var(--ivory-dim); max-width: 36rem; margin-inline: auto; margin-bottom: 3rem; }
.cta__note { margin-top: 1.6rem; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ivory-faint); }
.cta--plain { background: var(--ink-2); padding-block: var(--space-section); }
.cta--plain::before { display: none; }

/* ---------- 09. FOOTER ---------- */
.footer {
  position: relative; background: var(--ink-2);
  border-top: 1px solid var(--hairline-soft);
  overflow: clip;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 3rem; padding-block: var(--space-block) 4rem;
}
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 1.6rem; }
.footer__brand p { color: var(--ivory-dim); font-size: var(--fs-small); max-width: 22rem; }
.footer h4 {
  font-family: var(--font-sans); font-weight: 400;
  font-size: var(--fs-label); letter-spacing: var(--track-label);
  text-transform: uppercase; color: var(--gold); margin-bottom: 1.6rem;
}
.footer__col li { margin-bottom: 0.85rem; }
.footer__col a, .footer__col span {
  color: var(--ivory-dim); font-size: var(--fs-small);
  transition: color var(--dur-fast);
}
.footer__col a:hover { color: var(--ivory); }
.footer__watermark {
  display: block; text-align: center;
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(6rem, 22vw, 21rem); line-height: 0.8;
  letter-spacing: 0.08em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 237, 227, 0.07);
  user-select: none; pointer-events: none;
  transform: translateY(0.18em);
}
.footer__bottom {
  border-top: 1px solid var(--hairline-soft);
  padding-block: 1.6rem;
  display: flex; flex-wrap: wrap; gap: 0.8rem 2.5rem;
  align-items: center; justify-content: space-between;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ivory-faint);
}
.footer__bottom a { transition: color var(--dur-fast); }
.footer__bottom a:hover { color: var(--gold); }
.footer__credit b { font-weight: 500; color: var(--gold); }

/* ---------- 10. INNER PAGES ---------- */
/* page hero (shared) */
.page-hero {
  padding-top: clamp(9rem, 18vh, 13rem);
  padding-bottom: var(--space-block);
}
.page-hero h1 { font-size: clamp(3rem, 7.5vw, 6.6rem); max-width: 14ch; }
.page-hero .label { margin-bottom: 1.8rem; }
.page-hero__sub { color: var(--ivory-dim); max-width: 38rem; margin-top: 1.8rem; }

/* filters */
.filters {
  display: flex; flex-wrap: wrap; gap: 0.8rem;
  margin-top: 2.6rem;
}
.chip {
  padding: 0.75rem 1.5rem; border: 1px solid var(--hairline);
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ivory-dim);
  transition: color 0.3s, border-color 0.3s, background-color 0.3s;
}
.chip:hover { color: var(--ivory); border-color: var(--hairline-strong, var(--hairline)); }
.chip.is-active { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* listings grid */
.grid-listings {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 4rem) clamp(1.5rem, 3vw, 3rem);
}
.l-card { display: flex; flex-direction: column; gap: 1.3rem; }
.l-card__media { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.l-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.l-card:hover .l-card__media img { transform: scale(1.05); }
.l-card.is-sold .l-card__media img { filter: saturate(0.35) brightness(0.75); }

/* listing detail */
.d-hero { position: relative; min-height: 92dvh; display: flex; align-items: flex-end; overflow: clip; }
.d-hero__media { position: absolute; inset: 0; z-index: -2; }
.d-hero__media img { width: 100%; height: 115%; object-fit: cover; }
.d-hero__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(11,10,8,0.95), rgba(11,10,8,0.15) 55%, rgba(11,10,8,0.45)); }
.d-hero__inner { width: 100%; padding-bottom: 3.4rem; }
.d-hero h1 { font-size: clamp(2.8rem, 7vw, 6.4rem); }
.d-hero__row {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1.5rem 4rem;
  justify-content: space-between; margin-top: 2rem;
  border-top: 1px solid var(--hairline); padding-top: 2rem;
}
.d-hero__price { font-family: var(--font-serif); font-size: clamp(1.8rem, 3.4vw, 2.8rem); color: var(--gold); font-variant-numeric: tabular-nums; }
.spec-row { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; }
.spec { display: flex; flex-direction: column; gap: 0.3rem; }
.spec b { font-family: var(--font-serif); font-weight: 500; font-size: 1.4rem; }
.spec span { font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ivory-dim); }

.d-body__grid { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: var(--space-block); align-items: start; }
.d-body__copy p { color: var(--ivory-dim); margin-bottom: 1.4rem; }
.d-body__copy .lede { font-family: var(--font-serif); font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.45; color: var(--ivory); margin-bottom: 2rem; }
.d-facts { border: 1px solid var(--hairline-soft); padding: 2.2rem; position: sticky; top: 7rem; }
.d-facts h3 { font-size: 1.3rem; margin-bottom: 1.5rem; }
.d-facts li {
  display: flex; justify-content: space-between; gap: 1.5rem;
  padding-block: 0.85rem; border-top: 1px solid var(--hairline-soft);
  font-size: var(--fs-small); color: var(--ivory-dim);
}
.d-facts li b { color: var(--ivory); font-weight: 400; }
.d-facts .btn { width: 100%; margin-top: 1.8rem; }

.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(0.8rem, 1.6vw, 1.6rem); }
.gallery .media { cursor: pointer; }
.g-a { grid-column: span 4; aspect-ratio: 16/10; }
.g-b { grid-column: span 2; aspect-ratio: 4/5; }
.g-c { grid-column: span 2; aspect-ratio: 4/5; }
.g-d { grid-column: span 4; aspect-ratio: 16/10; }
.gallery .media img { transition: transform 1s var(--ease-out); }
.gallery .media:hover img { transform: scale(1.04); }

.amenities { columns: 2; gap: 3rem; }
.amenities li {
  break-inside: avoid; display: flex; gap: 1rem; align-items: baseline;
  padding-block: 0.8rem; border-bottom: 1px solid var(--hairline-soft);
  color: var(--ivory-dim); font-size: var(--fs-small);
}
.amenities li::before { content: "—"; color: var(--gold); flex: none; }

.next-listing { display: block; text-align: center; padding-block: var(--space-section); }
.next-listing .label { justify-content: center; margin-bottom: 1.4rem; }
.next-listing h2 {
  font-size: clamp(2.6rem, 7vw, 6rem);
  transition: color 0.5s var(--ease-out);
}
.next-listing:hover h2 { color: var(--gold); }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: var(--z-lightbox);
  background: rgba(11, 10, 8, 0.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.45s var(--ease-out), visibility 0s 0.45s;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.lightbox img {
  max-width: min(92vw, 110rem); max-height: 84vh;
  object-fit: contain;
}
.lightbox__close {
  position: absolute; top: 1.6rem; right: 1.6rem;
  width: 3.4rem; height: 3.4rem; border: 1px solid var(--hairline);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: background-color 0.3s, border-color 0.3s;
}
.lightbox__close:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.lightbox__close svg { width: 1rem; height: 1rem; }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 3.4rem; height: 3.4rem; border: 1px solid var(--hairline); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.3s, border-color 0.3s;
}
.lightbox__nav:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.lightbox__nav svg { width: 1rem; height: 1rem; }
.lightbox__nav--prev { left: 1.6rem; }
.lightbox__nav--next { right: 1.6rem; }
.lightbox__count {
  position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%);
  font-family: var(--font-serif); letter-spacing: 0.3em; color: var(--ivory-dim);
  font-variant-numeric: tabular-nums;
}

/* about page */
.a-hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-block); align-items: center;
}
.a-hero__media { aspect-ratio: 3 / 4; max-width: 34rem; justify-self: end; }
.timeline { max-width: 56rem; }
.timeline li {
  display: grid; grid-template-columns: 7rem 1fr;
  gap: 2.5rem; padding-block: 2rem;
  border-top: 1px solid var(--hairline-soft);
}
.timeline li:last-child { border-bottom: 1px solid var(--hairline-soft); }
.timeline .yr { font-family: var(--font-serif); font-style: italic; color: var(--gold); font-size: 1.3rem; }
.timeline h3 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.timeline p { color: var(--ivory-dim); font-size: var(--fs-small); }
.pull-quote {
  font-family: var(--font-serif); font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.4; max-width: 30ch; margin-inline: auto; text-align: center;
}
.pull-quote footer { margin-top: 2rem; font-family: var(--font-sans); font-size: var(--fs-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--gold); }

/* contact page */
.c-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-block); align-items: start;
}
.c-info { display: flex; flex-direction: column; gap: 2.6rem; }
.c-info__row { border-top: 1px solid var(--hairline-soft); padding-top: 1.6rem; }
.c-info__row h4 {
  font-family: var(--font-sans); font-size: var(--fs-label);
  letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--gold); font-weight: 400; margin-bottom: 0.9rem;
}
.c-info__row a, .c-info__row p { color: var(--ivory-dim); font-size: var(--fs-body); transition: color 0.3s; }
.c-info__row a:hover { color: var(--ivory); }
.c-info__big { font-family: var(--font-serif); font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--ivory) !important; }
.c-media { aspect-ratio: 16 / 10; margin-top: 1rem; }

.form { border: 1px solid var(--hairline-soft); padding: clamp(1.8rem, 4vw, 3.4rem); background: var(--ink-2); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 2.5rem; }
.field { display: flex; flex-direction: column; gap: 0.7rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: var(--fs-label); letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ivory-dim);
}
.field label b { color: var(--gold); font-weight: 400; }
.field input, .field select, .field textarea {
  background: transparent; border: 0; border-bottom: 1px solid var(--hairline);
  color: var(--ivory); font: inherit; font-weight: 300;
  padding: 0.7rem 0.1rem; border-radius: 0;
  transition: border-color 0.35s var(--ease-out);
  width: 100%;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%23C6A15B' stroke-width='1.2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.2rem center; background-size: 12px; cursor: pointer; }
.field select option { background: var(--ink-2); color: var(--ivory); }
.field textarea { resize: vertical; min-height: 7.5rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field input::placeholder, .field textarea::placeholder { color: var(--ivory-faint); }
.form__actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; margin-top: 0.6rem; }
.form__note { font-size: 0.78rem; color: var(--ivory-faint); letter-spacing: 0.06em; }
.form__success { display: none; text-align: center; padding: 3rem 1rem; }
.form__success.is-visible { display: block; }
.form__success svg { width: 3rem; height: 3rem; color: var(--gold); margin-inline: auto; margin-bottom: 1.6rem; }
.form__success h3 { font-size: 1.8rem; margin-bottom: 0.8rem; }
.form__success p { color: var(--ivory-dim); }
.form.is-done .form__grid { display: none; }

/* ---------- 11. MOTION & RESPONSIVE ---------- */
.reveal-line { overflow: hidden; }
.split-parent { overflow: hidden; }

/* arrival via internal navigation: curtain starts covering, no preloader */
html.nav-arrive .preloader { display: none; }
html.nav-arrive .transition { transform: translateY(0); }

.hero__title .line > span { display: inline-block; will-change: transform; }
.media--parallax > img, .media--parallax > video { height: 118%; }
.form__success:focus { outline: none; }

@media (max-width: 1100px) {
  .hoods__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .menu__grid { grid-template-columns: 1fr; }
  .menu__media { display: none; }
}

@media (max-width: 900px) {
  .nav__links, .nav__phone { display: none; }
  .intro__grid, .about-teaser__grid, .a-hero__grid, .c-grid { grid-template-columns: 1fr; }
  .a-hero__media { justify-self: start; }
  .stats__grid { grid-template-columns: 1fr 1fr; border-inline: 0; }
  .stat { border-left: 0; border-top: 1px solid var(--hairline-soft); }
  .d-body__grid { grid-template-columns: 1fr; }
  .d-facts { position: static; }
  .grid-listings { grid-template-columns: 1fr; }
  .amenities { columns: 1; }
  .g-a, .g-b, .g-c, .g-d { grid-column: 1 / -1; aspect-ratio: 16/10; }
  .featured__track { padding-inline: 0; }
}

@media (max-width: 600px) {
  :root { --fs-body: 1rem; }
  .hoods__grid { grid-template-columns: 1fr; }
  .hood { aspect-ratio: 4 / 3.2; }
  .footer__grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .form__grid { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; gap: 1rem; }
  .service__arrow { display: none; }
  .service__num { width: auto; }
  .hero__scroll { display: none; }
  .f-card { width: 84vw; }
  .lightbox__nav { display: none; }
}

/* pinning screens: derive card width from the viewport-height budget
   (~24rem of chrome above/below the image) so the full photo stays visible */
@media (min-width: 901px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  .f-card { width: clamp(20rem, calc((100svh - 24rem) * 4 / 3), min(78vw, 56rem)); }
}

/* touch, small screens, or reduced motion (no pin): native horizontal scroll */
@media (hover: none), (max-width: 900px), (prefers-reduced-motion: reduce) {
  .featured__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .featured__viewport::-webkit-scrollbar { display: none; }
  .featured__track { padding-inline: var(--gutter); }
  .f-card { scroll-snap-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .marquee__track { animation: none !important; transform: none !important; }
  .hero__scroll i::after { animation: none !important; }
}
