/* ===============================================================
   Ardenwood — site layer
   style.css owns the interactive hero. This file owns the page the
   hero opens onto, and overrides the few hero rules that assumed a
   single non-scrolling screen.
================================================================*/

:root {
  --paper:    #f5f2ec;
  --paper-2:  #ebe6dd;
  --ink:      #14171c;
  --ink-soft: #4a4f57;
  --muted:    #8b8579;
  --gold:     #a97f45;
  --gold-lt:  #d9b36c;
  --dark:     #070a12;
  --dark-2:   #0d1220;
  --line:     rgba(20, 23, 28, 0.13);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;
  --ease:  cubic-bezier(0.16, 1, 0.3, 1);
  --gut:   clamp(20px, 5vw, 90px);
}

/* The hero stylesheet locks the page; unlock it.
   `clip` rather than `hidden` matters: `hidden` turns the element
   into a scroll container, which silently kills position:sticky on
   the pinned hero. `clip` contains the overflow without doing that. */
html {
  overflow-x: clip;
  overflow-y: visible;
  height: auto;
}

body {
  overflow: visible;
  height: auto;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html, body { scroll-behavior: auto; }
}

img { max-width: 100%; display: block; }

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

/* ---------------------------------------------------------------
   Scroll progress
----------------------------------------------------------------*/

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 200;
  background: transparent;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-lt), var(--gold));
  transform-origin: 0 50%;
}

/* ---------------------------------------------------------------
   Nav — dark over the hero, paper once you're in the editorial
----------------------------------------------------------------*/

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--gut);
  color: #fff;
  transition: transform 0.55s var(--ease), background 0.5s ease,
              color 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

.nav.is-solid {
  background: rgba(245, 242, 236, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink);
  padding-top: 14px;
  padding-bottom: 14px;
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-hidden { transform: translateY(-105%); }

.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }

.nav__mark {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 0.9rem;
  opacity: 0.85;
}
.nav__name { font-size: 0.8rem; letter-spacing: 0.34em; }

.nav__links { display: flex; gap: clamp(18px, 2.2vw, 38px); }
.nav__links a {
  color: inherit;
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.72;
  transition: opacity 0.3s ease;
}
.nav__links a:hover { opacity: 1; }

.nav__cta {
  padding: 10px 20px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: background 0.35s ease, color 0.35s ease, opacity 0.35s ease;
}
.nav__cta:hover { background: currentColor; opacity: 1; }
.nav__cta:hover span { color: var(--paper); }
.nav:not(.is-solid) .nav__cta:hover { color: var(--dark); }
.nav.is-solid .nav__cta:hover { color: var(--paper); }

/* ---------------------------------------------------------------
   ACT I — the hero, now pinned inside a taller scroll stage
----------------------------------------------------------------*/

.herostage { position: relative; height: 300vh; background: var(--dark); }

.hero {
  position: sticky;
  top: 0;
  height: 100svh;
  /* style.css uses 100vw, which is wider than the content box once a
     scrollbar exists and would push the page sideways */
  width: 100%;
}

/* Title card */
.opener {
  position: absolute;
  z-index: 12;
  left: var(--gut);
  top: 50%;
  transform: translateY(-50%);
  max-width: min(620px, 52vw);
  color: #fff;
  pointer-events: none;
}

.opener__eyebrow {
  margin: 0 0 22px;
  overflow: hidden;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-lt);
}
.opener__eyebrow span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1s var(--ease) 0.35s forwards;
}

.opener__title {
  margin: 0 0 26px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.55);
}
.opener__title .line { display: block; overflow: hidden; }
.opener__title .line span {
  display: block;
  transform: translateY(110%);
  animation: rise 1.15s var(--ease) forwards;
}
.opener__title .line:nth-child(1) span { animation-delay: 0.50s; }
.opener__title .line:nth-child(2) span { animation-delay: 0.62s; }
.opener__title .line:nth-child(3) span { animation-delay: 0.74s; }

@keyframes rise { to { transform: translateY(0); } }

.opener__sub {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  opacity: 0;
  animation: fade 1.2s ease 1.35s forwards;
}
@keyframes fade { to { opacity: 1; } }

/* Scroll cue */
.cue {
  position: absolute;
  z-index: 12;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 62px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  transition: opacity 0.6s ease;
}
.cue__line {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, var(--gold-lt));
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(100%);  }
  100% { transform: translateY(100%);  }
}

/* House name tags */
.tags { position: absolute; inset: 0; z-index: 11; pointer-events: none; }
.tag {
  position: absolute;
  left: var(--x);
  bottom: 21%;
  transform: translate(-50%, 8px);
  font-size: 0.64rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 236, 208, 0.92);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s var(--ease);
}
.tag.is-on { opacity: 1; transform: translate(-50%, 0); }

/* The hero's brightness is written every frame from scroll position,
   so it must NOT carry a transition — that would restart on each
   write and lag behind the scroll. */

/* ---------------------------------------------------------------
   ACT II — editorial shell
----------------------------------------------------------------*/

.page { position: relative; z-index: 20; background: var(--paper); }

.kicker {
  margin: 0 0 20px;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.kicker--light { color: var(--gold-lt); }

.sec-head { padding: 0 var(--gut); margin: 0 auto clamp(48px, 7vw, 96px); max-width: 1500px; }
.sec-head--split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
}
.sec-title {
  margin: 0;
  max-width: 20ch;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.012em;
}
.sec-note {
  margin: 0;
  max-width: 42ch;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* reveal primitives */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

.word { display: inline-block; overflow: hidden; vertical-align: top; }
.word > i {
  display: inline-block;
  font-style: inherit;
  transform: translateY(105%);
  transition: transform 0.95s var(--ease);
}
[data-split].is-in .word > i { transform: translateY(0); }

/* ---------------------------------------------------------------
   Statement
----------------------------------------------------------------*/

.statement {
  padding: clamp(90px, 15vw, 200px) var(--gut) clamp(70px, 10vw, 130px);
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.statement__text {
  margin: 0 auto clamp(36px, 5vw, 64px);
  max-width: 22ch;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.9rem, 4.2vw, 3.7rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.statement__by {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.rule { width: 54px; height: 1px; background: var(--gold); opacity: 0.6; }

/* ---------------------------------------------------------------
   Ticker
----------------------------------------------------------------*/

.ticker {
  overflow: hidden;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  user-select: none;
}
.ticker__row {
  display: flex;
  align-items: center;
  gap: 30px;
  width: max-content;
  animation: marquee 38s linear infinite;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.7rem);
  color: var(--muted);
  white-space: nowrap;
}
.ticker__row i { color: var(--gold); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------
   The three residences
----------------------------------------------------------------*/

.collection { padding: clamp(90px, 13vw, 180px) 0; }

.res {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(30px, 5vw, 90px);
  align-items: center;
  max-width: 1500px;
  margin: 0 auto clamp(90px, 12vw, 170px);
  padding: 0 var(--gut);
}
.res:last-child { margin-bottom: 0; }
.res--flip .res__media { order: 2; }

.res__media { position: relative; }

.res__plate {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  aspect-ratio: 4 / 3.1;
  background: var(--dark);
  box-shadow: 0 40px 90px -40px rgba(10, 14, 24, 0.6);
}
.res__plate img {
  width: 100%;
  height: 118%;
  object-fit: cover;
  will-change: transform;
}

.res__inset {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 30px 60px -26px rgba(10, 14, 24, 0.55);
  border: 5px solid var(--paper);
  will-change: transform;
}
.res__inset img { width: 100%; height: 100%; object-fit: cover; }

.res__inset--a { width: 30%; aspect-ratio: 3/4;  right: -5%;  bottom: -9%;  }
.res__inset--b { width: 24%; aspect-ratio: 1/1;  left: -6%;   top: -8%;     }
.res--flip .res__inset--a { right: auto; left: -5%; }
.res--flip .res__inset--b { left: auto;  right: -6%; }

.res__index {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.res__name {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.05;
}
.res__style {
  margin: 0 0 26px;
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}
.res__copy {
  margin: 0 0 34px;
  max-width: 46ch;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink-soft);
}

.res__specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 30px;
  margin: 0 0 38px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.res__specs dt {
  margin-bottom: 5px;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.res__specs dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.3rem;
}

/* underline that draws on hover */
.link {
  position: relative;
  display: inline-block;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-bottom: 7px;
}
.link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0.34);
  transform-origin: 0 50%;
  transition: transform 0.6s var(--ease);
}
.link:hover::after { transform: scaleX(1); }


/* ---------------------------------------------------------------
   Seal — slowly turning monogram, drawn not photographed
----------------------------------------------------------------*/

.statement { position: relative; }

.seal {
  position: absolute;
  top: 5%;
  right: 3%;
  width: clamp(84px, 11vw, 170px);
  color: var(--gold);
  opacity: 0.42;
  pointer-events: none;
}
.seal svg {
  width: 100%;
  height: auto;
  transform-origin: 50% 50%;
  animation: spin 52s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.seal__ring { fill: none; stroke: currentColor; stroke-width: 0.9; opacity: 0.55; }
.seal__ring--in { stroke-dasharray: 2 7; opacity: 0.8; }
.seal__text {
  font-family: var(--sans);
  font-size: 9.6px;
  letter-spacing: 2.7px;
  fill: currentColor;
}
.seal__mark { fill: currentColor; opacity: 0.7; }

/* ---------------------------------------------------------------
   Day / night comparison
----------------------------------------------------------------*/

.compare-sec { padding: clamp(80px, 11vw, 150px) var(--gut) clamp(40px, 6vw, 80px); }
.compare-sec .sec-head { padding: 0; }

.compare {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 3px;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  background: var(--dark);
  box-shadow: 0 46px 100px -50px rgba(10, 14, 24, 0.6);
}
.compare:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.compare__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* the daylight plate is clipped back to reveal the night one beneath */
.compare__clip {
  position: absolute;
  inset: 0;
  clip-path: inset(0 50% 0 0);
  will-change: clip-path;
}

.compare__bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 22px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  will-change: left;
}

.compare__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #14171c;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s var(--ease);
}
.compare:hover .compare__handle { transform: translate(-50%, -50%) scale(1.08); }
.compare__handle svg { width: 22px; height: 22px; }

.compare__tag {
  position: absolute;
  bottom: 20px;
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
  pointer-events: none;
}
.compare__tag--l { left: 24px; }
.compare__tag--r { right: 24px; }

/* ---------------------------------------------------------------
   Drawn elevations
   Each stroke is dashed to its own length, then the offset is
   released on entry, so the building draws itself line by line.
----------------------------------------------------------------*/

.elev {
  display: block;
  width: 100%;
  max-width: 430px;
  height: auto;
  margin: 4px 0 30px;
  color: var(--gold);
  opacity: 0.9;
}
.elev path, .elev rect {
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  transition: stroke-dashoffset 1.5s var(--ease);
  transition-delay: var(--d, 0ms);
}
.elev.is-drawn path, .elev.is-drawn rect { stroke-dashoffset: 0; }

/* ---------------------------------------------------------------
   Pinned horizontal interiors gallery
----------------------------------------------------------------*/

/* Stage height sets how much vertical scroll the horizontal travel
   costs. The track is only ~2300px wide, so 420vh was spending far
   more scroll than there was gallery to move. */
.gallery { position: relative; height: 210vh; background: var(--dark); }

.gallery__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 30% 20%, rgba(169,127,69,0.10), transparent 60%), var(--dark);
  color: #fff;
}

.gallery__track {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 36px);
  padding: 0 var(--gut);
  will-change: transform;
}

.gal {
  position: relative;
  flex: 0 0 auto;
  width: clamp(230px, 26vw, 420px);
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  background: #12151d;
}
.gal--tall { aspect-ratio: 3 / 4.2; width: clamp(200px, 21vw, 340px); }
.gal--wide { aspect-ratio: 16 / 9;  width: clamp(320px, 40vw, 660px); }

.gal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter 1.1s var(--ease);
  filter: saturate(0.92) brightness(0.94);
}
.gal:hover img { transform: scale(1.06); filter: saturate(1.05) brightness(1); }

.gal figcaption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  right: 16px;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}
.gal figcaption b { color: var(--gold-lt); font-weight: 400; }

.gal-intro, .gal-end {
  flex: 0 0 auto;
  width: clamp(240px, 28vw, 440px);
  padding-right: clamp(10px, 2vw, 40px);
}
.gal-intro__title {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1.04;
}
.gal-intro__note, .gal-end__text {
  margin: 0 0 22px;
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.55);
}
.gal-end__text {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}
.link--light { color: rgba(255, 255, 255, 0.9); }

.gallery__rail {
  position: absolute;
  left: var(--gut);
  right: var(--gut);
  bottom: 38px;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}
.gallery__rail span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold-lt);
}

/* ---------------------------------------------------------------
   Contour art behind the process steps
----------------------------------------------------------------*/

.process { position: relative; overflow: hidden; }
.contours {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.55;
}
.process .sec-head, .process .steps { position: relative; z-index: 1; }

/* ---------------------------------------------------------------
   Portfolio carousel
----------------------------------------------------------------*/

.listings {
  padding: clamp(80px, 11vw, 150px) 0 clamp(90px, 13vw, 180px);
  background: var(--paper-2);
}

.carousel__nav { display: flex; gap: 12px; justify-content: flex-end; }
.cbtn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}
.cbtn svg { width: 18px; height: 18px; }
.cbtn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: scale(1.05); }
.cbtn[disabled] { opacity: 0.28; pointer-events: none; }

.carousel {
  overflow: hidden;
  padding: 0 var(--gut);
  cursor: grab;
}
.carousel.is-drag { cursor: grabbing; }
.carousel:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }

.carousel__track {
  display: flex;
  gap: clamp(16px, 2vw, 32px);
  will-change: transform;
}

.card {
  flex: 0 0 clamp(250px, 29vw, 400px);
  text-decoration: none;
  color: inherit;
  display: block;
}

.carousel__bar {
  position: relative;
  width: calc(100% - 2 * var(--gut));
  max-width: 1500px;
  height: 2px;
  margin: clamp(34px, 4vw, 52px) auto 0;
  background: rgba(20, 23, 28, 0.1);
}
.carousel__bar span {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 25%;
  background: var(--gold);
}

.card__img {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 4/3;
  margin-bottom: 18px;
  background: #ddd7cd;
}

.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 1.2s var(--ease), filter 1.2s var(--ease);
}
.card:hover .card__img img { transform: scale(1.07); filter: saturate(1.08); }

.card__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 11, 18, 0.4), transparent 45%);
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}
.card:hover .card__img::after { opacity: 1; }

.card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.card__meta h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
}
.card__price { font-family: var(--serif); font-size: 1.15rem; color: var(--gold); }
.card__sub { margin: 7px 0 0; font-size: 0.82rem; color: var(--muted); }

.card__status {
  display: inline-block;
  margin-top: 12px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.card__status--sold { color: var(--muted); opacity: 0.65; }

/* ---------------------------------------------------------------
   Agent
----------------------------------------------------------------*/

.agent {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(34px, 6vw, 100px);
  align-items: center;
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(90px, 13vw, 180px) var(--gut);
}

.agent__portrait {
  margin: 0;
  overflow: hidden;
  border-radius: 3px;
  aspect-ratio: 4/5;
  background: var(--paper-2);
  box-shadow: 0 40px 90px -44px rgba(10, 14, 24, 0.55);
}
.agent__portrait img { width: 100%; height: 116%; object-fit: cover; will-change: transform; }

.agent__name {
  margin: 0 0 26px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 1.02;
}
.agent__lead {
  margin: 0 0 22px;
  max-width: 46ch;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.7vw, 1.55rem);
  line-height: 1.55;
  color: var(--ink);
}
.agent__copy {
  margin: 0 0 44px;
  max-width: 50ch;
  font-size: 0.97rem;
  line-height: 1.85;
  color: var(--ink-soft);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.stat__num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  display: block;
  margin-top: 10px;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------------------------------------------------------------
   Process
----------------------------------------------------------------*/

.process {
  padding: clamp(80px, 11vw, 150px) 0 clamp(90px, 13vw, 170px);
  background: var(--paper-2);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(22px, 3vw, 50px);
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 var(--gut);
  list-style: none;
}
.step { padding-top: 26px; border-top: 1px solid var(--line); }
.step__n {
  display: block;
  margin-bottom: 22px;
  font-family: var(--serif);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.step h3 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
}
.step p { margin: 0; font-size: 0.92rem; line-height: 1.8; color: var(--ink-soft); }

/* ---------------------------------------------------------------
   Quotes
----------------------------------------------------------------*/

.quotes { padding: clamp(90px, 13vw, 170px) var(--gut); }

.quotes__viewport {
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
  cursor: grab;
}
.quotes__viewport.is-drag { cursor: grabbing; }
.quotes__viewport:focus-visible { outline: 2px solid var(--gold); outline-offset: 8px; }

.quotes__track { display: flex; will-change: transform; }

.quote {
  flex: 0 0 100%;
  margin: 0;
  padding: 0 clamp(8px, 4vw, 56px);
  text-align: center;
  opacity: 0.25;
  transition: opacity 0.7s var(--ease);
}
.quote.is-active { opacity: 1; }

.quote__mark {
  display: block;
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: 4.4rem;
  line-height: 0.5;
  color: var(--gold);
  opacity: 0.45;
}

.quote p {
  margin: 0 0 28px;
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.5rem, 3.1vw, 2.6rem);
  line-height: 1.35;
  text-wrap: balance;
}
.quote cite {
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.quotes__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 44px;
}
.quotes__dots button {
  width: 7px; height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: background 0.4s ease, transform 0.4s ease;
}
.quotes__dots button.is-on { background: var(--gold); transform: scale(1.3); }

/* ---------------------------------------------------------------
   Contact — back to night
----------------------------------------------------------------*/

.contact {
  padding: clamp(90px, 13vw, 170px) var(--gut);
  background:
    radial-gradient(ellipse 90% 70% at 20% 0%, rgba(169, 127, 69, 0.13), transparent 60%),
    linear-gradient(to bottom, var(--dark-2), var(--dark));
  color: #fff;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 110px);
  max-width: 1400px;
  margin: 0 auto;
}
.contact__title {
  margin: 0 0 26px;
  max-width: 14ch;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.06;
}
.contact__copy {
  margin: 0 0 44px;
  max-width: 44ch;
  font-size: 0.97rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.62);
}
.contact__list { list-style: none; margin: 0; padding: 0; }
.contact__list li {
  display: flex;
  gap: 26px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}
.contact__list span {
  min-width: 74px;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-lt);
  padding-top: 4px;
}
.contact__list a { color: rgba(255,255,255,0.86); text-decoration: none; transition: color 0.3s ease; }
.contact__list a:hover { color: var(--gold-lt); }

/* form */
.field { position: relative; margin-bottom: 26px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 18px 0 12px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 300;
  border-radius: 0;
  transition: border-color 0.4s ease;
}
.field textarea { resize: vertical; }
.field select { appearance: none; cursor: pointer; }
.field select option { background: var(--dark-2); color: #fff; }

.field label {
  position: absolute;
  left: 0;
  top: 18px;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.42);
  pointer-events: none;
  transition: transform 0.4s var(--ease), font-size 0.4s var(--ease), color 0.4s ease;
  transform-origin: 0 0;
}
.field input:focus + label,
.field textarea:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label,
.field select:focus + label,
.field select:valid + label {
  transform: translateY(-19px) scale(0.62);
  color: var(--gold-lt);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.field select + label { transform: translateY(-19px) scale(0.62); letter-spacing: 0.16em; text-transform: uppercase; }

.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-bottom-color: var(--gold-lt);
}
.field.is-bad input, .field.is-bad textarea { border-bottom-color: #c4644f; }

.btn {
  position: relative;
  overflow: hidden;
  margin-top: 10px;
  padding: 16px 38px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease);
}
.btn span { position: relative; z-index: 2; }
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--gold-lt), var(--gold));
  transform: translateY(101%);
  transition: transform 0.55s var(--ease);
}
.btn:hover { color: #20160a; border-color: transparent; }
.btn:hover::before { transform: translateY(0); }

.form__note {
  margin: 18px 0 0;
  min-height: 20px;
  font-size: 0.8rem;
  color: var(--gold-lt);
}

/* ---------------------------------------------------------------
   Footer
----------------------------------------------------------------*/

.foot {
  padding: clamp(50px, 6vw, 80px) var(--gut) 34px;
  background: var(--dark);
  color: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.foot__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 34px;
  margin-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.foot__brand {
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.34em;
  color: #fff;
  text-decoration: none;
}
.foot__links { display: flex; gap: clamp(16px, 2.4vw, 36px); flex-wrap: wrap; }
.foot__links a {
  color: inherit;
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}
.foot__links a:hover { color: var(--gold-lt); }

.foot__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.34);
}
.foot__bottom p { margin: 0; }

/* ---------------------------------------------------------------
   Responsive
----------------------------------------------------------------*/

@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 30px 24px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 30px; }
}

@media (max-width: 900px) {
  .gallery { height: 170vh; }
  .nav__links { display: none; }
  .herostage { height: 260vh; }

  .opener { max-width: none; right: var(--gut); top: auto; bottom: 30%; transform: none; }

  .res, .agent, .contact__grid, .sec-head--split { grid-template-columns: 1fr; }
  .res--flip .res__media { order: 0; }
  .res__media { margin-bottom: 46px; }
  .res__inset--a { width: 34%; right: 2%; bottom: -7%; }
  .res__inset--b { width: 26%; left: 2%; top: -6%; }
  .res--flip .res__inset--a { left: auto; right: 2%; }
  .res--flip .res__inset--b { right: auto; left: 2%; }
  .agent__portrait { max-width: 460px; }
  .tag { font-size: 0.55rem; letter-spacing: 0.18em; }
}

@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; }
  .seal { width: 78px; top: 2%; right: 2%; }
  .compare__handle { width: 44px; height: 44px; }
  .res__specs { grid-template-columns: 1fr 1fr; }
  .nav__name { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .seal svg { animation: none; }
  .elev path, .elev rect { stroke-dashoffset: 0; transition: none; }
  .word > i { transform: none; }
  .ticker__row, .cue__line { animation: none; }
  .opener__eyebrow span, .opener__title .line span { transform: none; animation: none; }
  .opener__sub { opacity: 1; animation: none; }
}
