/* =====================================================================
   CENTURY 21 MASTERS — Kenn Jan Ali · Private Residential, California
   A single shared stylesheet for all pages.
   Design language: black + champagne gold, ivory interludes (C21 palette).
   Type: Cormorant Garamond (display) + Jost (utility/body).
   ===================================================================== */

/* ---- Design tokens ------------------------------------------------- */
:root {
  /* surfaces */
  --obsidian:   #0B0A08;
  --ink:        #14120E;   /* primary dark surface (warm espresso-black) */
  --ink-2:      #1B1813;   /* raised dark surface */
  --ink-3:      #221E18;
  --ivory:      #F4F0E7;   /* warm paper for light interludes */
  --ivory-2:    #EBE5D8;

  /* accent + text */
  --champagne:      #C7A763;
  --champagne-soft: #DCC495;
  --brass:          #997A3D;   /* deeper gold for accents on ivory */
  --stone:          #A39B8C;   /* muted text on dark */
  --stone-dim:      #756D60;   /* faint text on dark */
  --stone-dark:     #6A6256;   /* muted text on ivory */

  /* lines */
  --line-gold:  rgba(199,167,99,0.30);
  --line-light: rgba(244,240,231,0.12);
  --line-dark:  rgba(20,18,14,0.16);

  /* type */
  --display: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* fluid scale */
  --fs-hero:    clamp(3.2rem, 1.4rem + 7.6vw, 9.5rem);
  --fs-display: clamp(2.6rem, 1.4rem + 4.6vw, 6rem);
  --fs-h2:      clamp(2rem, 1.3rem + 2.6vw, 3.6rem);
  --fs-h3:      clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem);
  --fs-lead:    clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
  --fs-body:    clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --fs-label:   0.72rem;

  /* layout */
  --rail: 56px;                  /* width of the architectural margin rail */
  --pad-x: clamp(1.4rem, 5vw, 7rem);
  --maxw: 1320px;
  --nav-h: 88px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-slow: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.7;
  color: var(--ivory);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; }

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

:focus-visible {
  outline: 1px solid var(--champagne);
  outline-offset: 4px;
}

/* ---- Typography helpers ------------------------------------------- */
.display { font-family: var(--display); font-weight: 300; line-height: 1; letter-spacing: -0.01em; }
.display em { font-style: italic; font-weight: 400; }

.eyebrow {
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--champagne);
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
.eyebrow::before {
  content: "";
  width: 38px;
  height: 1px;
  background: var(--champagne);
  opacity: 0.7;
}
.eyebrow.is-centered { justify-content: center; }

.lead {
  font-size: var(--fs-lead);
  color: var(--stone);
  font-weight: 300;
  max-width: 46ch;
}

/* ---- Layout primitives -------------------------------------------- */
.shell { padding-left: var(--rail); }       /* leaves room for the margin rail */
.wrap  { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad-x); }

.block { padding-block: clamp(5rem, 10vw, 9.5rem); }
.block--tight { padding-block: clamp(3.5rem, 7vw, 6rem); }

.section-ivory { background: var(--ivory); color: var(--ink); }
.section-ivory .lead { color: var(--stone-dark); }
.section-ivory .eyebrow { color: var(--brass); }
.section-ivory .eyebrow::before { background: var(--brass); }

/* ---- Architectural margin rail (signature) ------------------------ */
.rail {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--rail);
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.6rem;
  border-right: 1px solid var(--line-light);
  mix-blend-mode: difference;       /* keeps it legible over any section */
  pointer-events: none;
}
.rail__mark {
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: #fff;
  pointer-events: auto;
}
.rail__meta {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.8;
}
.rail__line {
  flex: 1;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.5), transparent);
  margin-block: 1.4rem;
}

/* ---- Navigation ---------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: var(--rail); right: 0;
  height: var(--nav-h);
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--pad-x);
  transition: background 0.5s var(--ease), height 0.5s var(--ease),
              border-color 0.5s var(--ease), backdrop-filter 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  height: 68px;
  background: rgba(11,10,8,0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-light);
}
.brand { display: flex; align-items: baseline; gap: 0.6rem; }
.brand__word {
  font-family: var(--display);
  font-size: 1.7rem;
  letter-spacing: 0.12em;
  line-height: 1;
}
.brand__tag {
  font-size: 0.56rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ---- Brand logo lockup (CENTURY 21® Masters) --------------------- */
.logo {
  --ls: 1rem;
  display: inline-flex; flex-direction: column; align-items: center;
  line-height: 1; color: var(--champagne);
}
.logo__word {
  font-family: var(--sans); font-weight: 400;
  font-size: var(--ls); letter-spacing: 0.1em; text-transform: uppercase;
  white-space: nowrap;
}
.logo__masters { font-weight: 600; }
.logo__sub {
  font-family: "Allura", cursive; font-weight: 400;
  font-size: calc(var(--ls) * 2.05); line-height: 0.62;
  letter-spacing: 0; text-transform: none;
  margin-top: calc(var(--ls) * 0.16); color: var(--champagne);
}
.logo--nav { --ls: 0.74rem; }
.nav__cta { padding: 0.85rem 1.4rem; }
.logo--footer { display: flex; width: max-content; --ls: clamp(1.2rem, 2.6vw, 1.8rem); margin-bottom: 0.2rem; }
.logo--pre { --ls: clamp(1.3rem, 4.5vw, 2.4rem); }

.nav__menu { display: flex; align-items: center; gap: clamp(1rem, 1.9vw, 2.2rem); }
.nav__link {
  position: relative;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
  padding-block: 0.4rem;
  transition: color 0.4s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--champagne);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.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__cta { display: inline-flex; }
.nav__toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  align-items: flex-end;
}
.nav__toggle span {
  display: block; height: 1px; width: 26px;
  background: var(--ivory);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease), width 0.4s var(--ease);
}

/* ---- Buttons ------------------------------------------------------- */
.btn {
  --c: var(--ivory);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c);
  padding: 1rem 1.9rem;
  border: 1px solid var(--line-gold);
  overflow: hidden;
  isolation: isolate;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--champagne);
  transform: translateY(101%);
  transition: transform 0.55s var(--ease);
  z-index: -1;
}
.btn:hover { color: var(--ink); border-color: var(--champagne); }
.btn:hover::before { transform: translateY(0); }
.btn .btn__icon { width: 15px; height: 15px; transition: transform 0.5s var(--ease); }
.btn:hover .btn__icon { transform: translate(3px, -3px); }

.btn--solid { color: var(--ink); border-color: var(--champagne); }
.btn--solid::before { transform: translateY(0); }
.btn--solid:hover::before { transform: translateY(-101%); }
.btn--solid:hover { color: var(--champagne); }

.btn--ghost { color: var(--ink); border-color: var(--line-dark); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--ivory); border-color: var(--ink); }

/* text link with sliding underline */
.tlink {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--champagne);
  padding-bottom: 4px;
  position: relative;
}
.tlink::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.tlink:hover::after { transform: scaleX(1); }
.tlink svg { width: 14px; height: 14px; transition: transform 0.5s var(--ease); }
.tlink:hover svg { transform: translateX(4px); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img {
  width: 100%; height: 116%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(11,10,8,0.92) 0%, rgba(11,10,8,0.25) 45%, rgba(11,10,8,0.45) 100%);
  z-index: 1;
}
.hero__inner {
  width: 100%;
  padding-bottom: clamp(3rem, 8vh, 7rem);
  padding-top: calc(var(--nav-h) + 2rem);
}
.hero__title {
  font-size: var(--fs-hero);
  max-width: 16ch;
  margin-block: 1.6rem 2.2rem;
}
.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}
.hero__sub { max-width: 40ch; }
.hero__scroll {
  display: flex; align-items: center; gap: 0.8rem;
  font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--stone);
}
.hero__scroll i {
  display: block; width: 1px; height: 46px;
  background: linear-gradient(var(--champagne), transparent);
  animation: drop 2.4s var(--ease) infinite;
}
@keyframes drop {
  0% { transform: scaleY(0); transform-origin: top; }
  40% { transform: scaleY(1); transform-origin: top; }
  60% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* page header (interior pages, no full-bleed hero) */
.phead { position: relative; padding-top: calc(var(--nav-h) + clamp(3rem, 9vw, 7rem)); }
.phead__index { display: none; }
.phead__title { font-size: var(--fs-display); max-width: 18ch; position: relative; z-index: 1; }

/* =====================================================================
   STATS  (agent highlight)
   ===================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-gold);
}
.stat {
  padding: clamp(2rem, 4vw, 3.4rem) clamp(1rem, 2.4vw, 2.4rem);
  border-bottom: 1px solid var(--line-gold);
  border-left: 1px solid var(--line-gold);
}
.stat:first-child { border-left: none; }
.stat__num {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  line-height: 1;
  color: var(--champagne);
}
.stat__num sup { font-size: 0.45em; vertical-align: super; }
.stat__label {
  margin-top: 0.9rem;
  font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--stone);
}

/* =====================================================================
   INTRO SPLIT
   ===================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: center;
}
.split--portrait { grid-template-columns: 0.85fr 1fr; }
.split__media { position: relative; overflow: hidden; }
.split__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transition: transform 1.4s var(--ease-slow); }
.split__media:hover img { transform: scale(1.04); }
.split__media--tall img { aspect-ratio: 3/4; }
.split__title { font-size: var(--fs-h2); margin-block: 1.4rem 1.6rem; max-width: 18ch; }
.split__body p + p { margin-top: 1.2rem; }
.split__body { color: var(--stone); }
.section-ivory .split__body { color: var(--stone-dark); }
.split__cta { margin-top: 2.4rem; }

/* signature corner mark on media */
.framed { position: relative; }
.framed::before, .framed::after {
  content: ""; position: absolute; width: 26px; height: 26px; z-index: 2;
  border-color: var(--champagne); border-style: solid; border-width: 0;
}
.framed::before { top: 18px; left: 18px; border-top-width: 1px; border-left-width: 1px; }
.framed::after  { bottom: 18px; right: 18px; border-bottom-width: 1px; border-right-width: 1px; }

/* =====================================================================
   FEATURED COLLECTION  (asymmetric editorial)
   ===================================================================== */
.collection-head {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.collection-head h2 { font-size: var(--fs-h2); max-width: 14ch; margin-top: 1.2rem; }

.estates { display: grid; gap: clamp(3rem, 6vw, 6rem); }
.estate {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.6rem, 4vw, 4rem);
  align-items: center;
}
.estate:nth-child(even) .estate__media { order: 2; }
.estate__media { position: relative; overflow: hidden; }
.estate__media img {
  width: 100%; aspect-ratio: 16/11; object-fit: cover;
  transition: transform 1.5s var(--ease-slow), filter 1.5s var(--ease-slow);
}
.estate:hover .estate__media img { transform: scale(1.05); }
.estate__no {
  position: absolute; top: 1.2rem; left: 1.2rem; z-index: 2;
  font-family: var(--display); font-size: 1.4rem; color: var(--ivory);
  mix-blend-mode: difference;
}
.estate__loc { font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--champagne); }
.estate__name { font-family: var(--display); font-size: var(--fs-h3); line-height: 1.05; margin-block: 0.9rem 1.3rem; }
.estate__desc { color: var(--stone); max-width: 42ch; }
.estate__spec {
  display: flex; flex-wrap: wrap; gap: 1.8rem;
  margin-block: 1.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-light);
}
.estate__spec li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.82rem; color: var(--stone); letter-spacing: 0.04em; }
.estate__spec svg { width: 17px; height: 17px; color: var(--champagne); stroke-width: 1.4; }
.estate__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.estate__price { font-family: var(--display); font-size: 1.6rem; color: var(--ivory); }

/* =====================================================================
   CTA banner
   ===================================================================== */
.cta-banner { text-align: center; position: relative; overflow: hidden; }
.cta-banner__big { font-size: var(--fs-display); max-width: 20ch; margin: 1.6rem auto 2.6rem; }
.cta-banner .lead { margin-inline: auto; margin-bottom: 0; }

/* =====================================================================
   TESTIMONIALS
   ===================================================================== */
.quotes { display: grid; gap: clamp(2rem, 4vw, 3rem); }
.quotes--row { grid-template-columns: repeat(3, 1fr); }
.quote {
  padding: clamp(2rem, 3vw, 2.8rem);
  border: 1px solid var(--line-light);
  display: flex; flex-direction: column; gap: 1.6rem;
  transition: border-color 0.6s var(--ease), transform 0.6s var(--ease);
}
.quote:hover { border-color: var(--line-gold); transform: translateY(-4px); }
.quote__mark { font-family: var(--display); font-size: 3.4rem; line-height: 0.4; color: var(--champagne); height: 1.4rem; }
.quote__text { font-family: var(--display); font-size: 1.35rem; line-height: 1.45; font-weight: 300; }
.quote__by { margin-top: auto; font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--stone); }

/* =====================================================================
   SERVICES
   ===================================================================== */
.services-list { border-top: 1px solid var(--line-gold); }
.service {
  position: relative;
  display: grid;
  grid-template-columns: clamp(3rem, 6vw, 6.5rem) 1fr auto;
  gap: clamp(1.6rem, 4vw, 4rem);
  align-items: start;
  padding-block: clamp(2.6rem, 4.5vw, 4rem);
  border-bottom: 1px solid var(--line-light);
  transition: padding-left 0.6s var(--ease), background 0.6s var(--ease);
}
/* gold accent that draws down the left edge on hover */
.service::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: -1px; width: 1px;
  background: var(--champagne); transform: scaleY(0); transform-origin: top;
  transition: transform 0.6s var(--ease);
}
.service:hover {
  padding-left: clamp(1rem, 2vw, 2rem);
  background: linear-gradient(90deg, rgba(199,167,99,0.05), transparent 55%);
}
.service:hover::after { transform: scaleY(1); }
.service__no {
  font-family: var(--display); font-style: italic;
  font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1.15;
  color: var(--stone-dim);
  transition: color 0.6s var(--ease);
}
.service:hover .service__no { color: var(--champagne); }
.service__sub { display: block; font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--champagne); margin-bottom: 0.8rem; }
.service__name { font-family: var(--display); font-size: var(--fs-h3); line-height: 1.04; max-width: 16ch; }
.service__desc { color: var(--stone); max-width: 58ch; margin-top: 1.2rem; }
.service__link {
  align-self: center; justify-self: end; flex: none;
  width: 54px; height: 54px; display: grid; place-items: center;
  border: 1px solid var(--line-gold); border-radius: 50%;
  color: var(--champagne);
  transition: background 0.55s var(--ease), color 0.55s var(--ease), transform 0.55s var(--ease);
}
.service:hover .service__link { background: var(--champagne); color: var(--ink); transform: translate(4px, -4px); }
.service__link svg { width: 19px; height: 19px; stroke-width: 1.4; }

/* feature cards (services secondary) */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.feature {
  background: var(--ivory);
  padding: clamp(2rem, 3vw, 2.8rem);
  display: flex; flex-direction: column; gap: 1rem;
  transition: background 0.5s var(--ease);
}
.feature:hover { background: var(--ivory-2); }
.feature__icon svg { width: 26px; height: 26px; color: var(--brass); stroke-width: 1.2; }
.feature h4 { font-family: var(--display); font-size: 1.45rem; font-weight: 400; }
.feature p { color: var(--stone-dark); font-size: 0.96rem; }

/* =====================================================================
   TIMELINE
   ===================================================================== */
.timeline { border-top: 1px solid var(--line-gold); }
.section-ivory .timeline { border-top-color: var(--line-dark); }
.tl-item {
  --tl-dot: 11px;
  display: grid;
  grid-template-columns: clamp(4rem, 6vw, 5.5rem) 30px minmax(0, 1fr);
  column-gap: clamp(1.4rem, 2.6vw, 2.4rem);
  align-items: stretch;
  padding-block: clamp(1.7rem, 2.8vw, 2.4rem);
  border-bottom: 1px solid var(--line-light);
}
.section-ivory .tl-item { border-bottom-color: var(--line-dark); }
.tl-year {
  font-family: var(--display); font-style: italic;
  font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.15;
  color: var(--champagne); padding-top: 1px;
}
.section-ivory .tl-year { color: var(--brass); }
.tl-node { position: relative; }
.tl-node::before {
  content: ""; position: absolute; z-index: 1; top: 7px; left: 50%;
  transform: translateX(-50%);
  width: var(--tl-dot); height: var(--tl-dot); border-radius: 50%;
  background: var(--champagne); box-shadow: 0 0 0 4px rgba(199,167,99,0.14);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.section-ivory .tl-node::before { background: var(--brass); box-shadow: 0 0 0 4px rgba(153,122,61,0.12); }
.tl-node::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  top: 0; bottom: 0; width: 1px; background: var(--line-gold);
}
.section-ivory .tl-node::after { background: var(--line-dark); }
.tl-item:first-child .tl-node::after { top: calc(7px + var(--tl-dot) / 2); }
.tl-item:last-child .tl-node::after { bottom: auto; height: calc(7px + var(--tl-dot) / 2); }
.tl-item:hover .tl-node::before { transform: translateX(-50%) scale(1.3); box-shadow: 0 0 0 6px rgba(199,167,99,0.12); }
.tl-title { font-family: var(--display); font-size: clamp(1.35rem, 1.8vw, 1.65rem); line-height: 1.12; margin-bottom: 0.55rem; }
.tl-body { color: var(--stone); max-width: 60ch; line-height: 1.65; }
.section-ivory .tl-body { color: var(--stone-dark); }

/* affiliations marquee-ish row */
.affil { display: flex; flex-wrap: wrap; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.affil span {
  font-family: var(--display); font-size: clamp(1.2rem, 2.4vw, 1.9rem);
  color: var(--stone-dim); letter-spacing: 0.02em;
  transition: color 0.5s var(--ease);
}
.affil span:hover { color: var(--champagne); }

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(2.5rem, 6vw, 6rem); }
.field { position: relative; margin-bottom: 2.4rem; }
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-light);
  color: var(--ivory);
  font-family: var(--sans); font-weight: 300; font-size: 1.05rem;
  padding: 0.7rem 0;
  transition: border-color 0.5s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field label {
  position: absolute; left: 0; top: 0.7rem;
  font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone-dim);
  pointer-events: none;
  transition: transform 0.45s var(--ease), color 0.45s var(--ease), font-size 0.45s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--champagne); }
.field input:focus + label,
.field textarea:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-2rem);
  font-size: 0.62rem;
  color: var(--champagne);
}
.field input::placeholder, .field textarea::placeholder { color: transparent; }

.form-note { font-size: 0.78rem; color: var(--stone-dim); margin-top: -0.8rem; margin-bottom: 1.8rem; }
.form-status {
  margin-top: 1.4rem; font-size: 0.8rem; letter-spacing: 0.12em;
  color: var(--champagne); opacity: 0; transform: translateY(6px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.form-status.is-shown { opacity: 1; transform: translateY(0); }

.contact-detail { display: flex; flex-direction: column; gap: 2.2rem; }
.cd-item { display: flex; flex-direction: column; gap: 0.4rem; }
.cd-item .label { font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--champagne); }
.cd-item a, .cd-item p { font-family: var(--display); font-size: 1.4rem; }
.cd-item small { color: var(--stone); }

.map-frame {
  position: relative; overflow: hidden;
  border: 1px solid var(--line-light);
  margin-top: clamp(3rem, 6vw, 5rem);
}
.map-frame iframe {
  width: 100%; height: clamp(300px, 42vw, 460px);
  border: 0; display: block;
  filter: grayscale(1) contrast(1.05) brightness(0.62) sepia(0.34) hue-rotate(2deg);
  transition: filter 0.8s var(--ease);
}
.map-frame:hover iframe { filter: grayscale(0.6) contrast(1.05) brightness(0.8) sepia(0.1); }
.map-frame__tag {
  position: absolute; left: 1.4rem; bottom: 1.4rem; z-index: 2;
  background: var(--ink); border: 1px solid var(--line-gold);
  padding: 0.7rem 1.2rem; font-size: 0.64rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--champagne);
  pointer-events: none;
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { background: var(--obsidian); border-top: 1px solid var(--line-gold); }
.footer__top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
.footer__word { font-family: var(--display); font-size: clamp(3rem, 9vw, 7rem); line-height: 0.9; letter-spacing: 0.02em; }
.footer__word span { color: var(--champagne); }
.footer__blurb { color: var(--stone); max-width: 34ch; margin-top: 1.4rem; }

/* Agent identity + DRE — required licensing detail, shown with intent. */
.footer__agent { display: flex; flex-direction: column; gap: 0.3rem; margin-top: 2rem; }
.footer__agent-name { font-family: var(--display); font-size: 1.5rem; line-height: 1; letter-spacing: 0.02em; color: var(--ivory); }
.footer__agent-role { font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--stone); }
.footer__dre {
  align-self: flex-start; margin-top: 0.7rem;
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--champagne);
  border: 1px solid var(--line-gold); border-radius: 2px;
  padding: 0.42rem 0.8rem;
}

/* =====================================================================
   BUYER / SELLER GUIDE — two columns
   ===================================================================== */
.guide { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 3vw, 2.2rem); }
.guide__col {
  display: flex; flex-direction: column;
  padding: clamp(2rem, 4vw, 3.2rem);
  border: 1px solid var(--line-light); border-radius: 3px;
  background: var(--ink-2);
  transition: border-color 0.6s var(--ease), transform 0.6s var(--ease), background 0.6s var(--ease);
}
.guide__col:hover { border-color: var(--line-gold); transform: translateY(-6px); background: var(--ink-3); }
.guide__no { font-size: 0.7rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--champagne); }
.guide__title { font-family: var(--display); font-size: var(--fs-h3); margin-top: 0.7rem; }
.guide__lead { color: var(--stone); margin-top: 1rem; max-width: 38ch; }
.guide__list {
  counter-reset: g; margin-top: 1.8rem; padding-top: 1.8rem;
  border-top: 1px solid var(--line-light);
  display: flex; flex-direction: column; gap: 1.1rem;
}
.guide__list li { display: flex; gap: 1rem; align-items: baseline; color: var(--ivory); font-size: 0.98rem; line-height: 1.5; }
.guide__list li::before {
  counter-increment: g; content: counter(g, decimal-leading-zero);
  font-family: var(--display); font-size: 1rem; color: var(--champagne);
  min-width: 1.8em; flex: none;
}
.guide__cta { margin-top: auto; padding-top: 2.2rem; }

/* =====================================================================
   TRUST / CREDIBILITY RIBBON — auto-scrolling logo marquee
   ===================================================================== */
.trust-section { text-align: center; }
.trust {
  position: relative; margin-top: clamp(2rem, 4vw, 3.2rem); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.trust__track { display: flex; width: max-content; animation: trust-scroll 36s linear infinite; }
.trust:hover .trust__track { animation-play-state: paused; }
.trust__set { display: flex; align-items: center; flex: none; }
.trust__logo {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  height: 30px; margin-right: clamp(2.6rem, 6vw, 5rem);
  color: var(--stone); opacity: 0.72;
  transition: color 0.55s var(--ease), opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.trust__logo svg { height: 26px; width: auto; display: block; fill: currentColor; }
.trust__logo--stroke svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.trust__word { font-family: var(--sans); font-weight: 500; font-size: 1.3rem; letter-spacing: 0.03em; white-space: nowrap; }
.trust__word--wide { letter-spacing: 0.18em; font-size: 1.05rem; }
.trust__logo:hover { color: var(--champagne); opacity: 1; transform: translateY(-5px) scale(1.05); }
@keyframes trust-scroll { from { transform: translateX(0); } to { transform: translateX(-33.3333%); } }
@media (prefers-reduced-motion: reduce) {
  .trust { -webkit-mask-image: none; mask-image: none; }
  .trust__track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; row-gap: 1.6rem; }
  .trust__set:not(:first-child) { display: none; }
}

/* Agent credential line (About bio) — name, role, and DRE together. */
.agent-id { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem 1.1rem; margin-top: 1.5rem; }
.agent-id__name { font-family: var(--display); font-size: 1.55rem; line-height: 1; letter-spacing: 0.02em; color: var(--champagne-soft); }
.agent-id__role { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--stone); }
.agent-id__dre {
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--champagne);
  border: 1px solid var(--line-gold); border-radius: 2px;
  padding: 0.34rem 0.7rem;
}
.footer h5 { font-size: 0.68rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--champagne); margin-bottom: 1.4rem; }
.footer__col ul { display: flex; flex-direction: column; gap: 0.9rem; }
.footer__col a, .footer__col p { color: var(--stone); font-size: 0.95rem; transition: color 0.4s var(--ease); }
.footer__col a:hover { color: var(--ivory); }
.footer__socials { display: flex; gap: 1rem; margin-top: 1.6rem; }
.footer__socials a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line-light); border-radius: 50%;
  color: var(--stone);
  transition: border-color 0.5s var(--ease), background 0.5s var(--ease),
              color 0.5s var(--ease), transform 0.5s var(--ease);
}
.footer__socials a:hover { border-color: var(--champagne); background: var(--champagne); color: var(--ink); transform: translateY(-4px); }
.footer__socials svg { width: 17px; height: 17px; fill: currentColor; transition: transform 0.5s var(--ease); }
.footer__socials a:hover svg { transform: scale(1.14); }
.footer__bar {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  padding-block: 1.8rem;
  border-top: 1px solid var(--line-light);
  font-size: 0.72rem; letter-spacing: 0.1em; color: var(--stone-dim);
}

/* =====================================================================
   SCROLL REVEAL
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

/* hairline that draws itself in */
.draw { transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease-slow); }
.draw.is-in { transform: scaleX(1); }

/* clip-reveal for media */
.clip { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease-slow); }
.clip.is-in { clip-path: inset(0 0 0% 0); }

/* staggered cascade — children of a [data-stagger] container ease in one
   after another once the container scrolls into view */
[data-stagger].reveal { opacity: 1; transform: none; }
[data-stagger] > * {
  opacity: 0; transform: translateY(10px) scale(0.985);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-stagger].is-in > * { opacity: 1; transform: none; }
[data-stagger].is-in > *:nth-child(1) { transition-delay: 0.05s; }
[data-stagger].is-in > *:nth-child(2) { transition-delay: 0.12s; }
[data-stagger].is-in > *:nth-child(3) { transition-delay: 0.19s; }
[data-stagger].is-in > *:nth-child(4) { transition-delay: 0.26s; }
[data-stagger].is-in > *:nth-child(5) { transition-delay: 0.33s; }
[data-stagger].is-in > *:nth-child(6) { transition-delay: 0.40s; }

/* eyebrow hairline draws itself in when its label reveals */
.eyebrow.reveal::before { transform: scaleX(0); transform-origin: left; transition: transform 0.8s var(--ease-slow) 0.15s; }
.eyebrow.reveal.is-in::before { transform: scaleX(1); }

/* Fail-safe: if JavaScript never runs (disabled, blocked, or a failed
   script load), the scroll-reveal classes can never resolve. Without JS
   we must never hide content, so show everything and skip the preloader. */
html:not(.js) .reveal,
html:not(.js) .draw,
html:not(.js) .clip,
html:not(.js) [data-stagger] > * { opacity: 1 !important; transform: none !important; clip-path: none !important; }
html:not(.js) .eyebrow::before { transform: none !important; }
html:not(.js) .preloader { display: none !important; }

/* =====================================================================
   PRELOADER
   ===================================================================== */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink);
  display: grid; place-items: center;
  transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__mark { text-align: center; }
.preloader__mark .w { font-family: var(--display); font-size: clamp(2.5rem, 8vw, 5rem); letter-spacing: 0.18em; overflow: hidden; }
.preloader__mark .w span { display: inline-block; transform: translateY(110%); animation: rise 0.9s var(--ease) forwards; }
.preloader__mark .w span:nth-child(2){ animation-delay: 0.07s; }
.preloader__mark .w span:nth-child(3){ animation-delay: 0.14s; }
.preloader__mark .w span:nth-child(4){ animation-delay: 0.21s; }
@keyframes rise { to { transform: translateY(0); } }
.preloader__mark .logo { animation: logo-in 1s var(--ease) both; }
@keyframes logo-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.preloader__line { height: 1px; background: var(--champagne); margin: 1.4rem auto 0; width: 0; animation: grow 1.1s 0.3s var(--ease) forwards; }
@keyframes grow { to { width: 100%; } }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
/* Tablet & below: collapse the architectural rail and switch the primary
   nav to a full-screen overlay menu (the desktop nav needs real room). */
@media (max-width: 1024px) {
  :root { --rail: 0px; }
  .rail { display: none; }
  .nav { left: 0; }

  .nav__menu {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100svh;
    flex-direction: column;
    justify-content: center;
    gap: 2.2rem;
    background: var(--obsidian);
    transform: translateY(-100%);
    transition: transform 0.7s var(--ease);
    z-index: 65;
  }
  .nav__menu.is-open { transform: translateY(0); }
  .nav__menu .nav__link { font-size: 1rem; }
  .nav__menu .btn { margin-top: 1rem; }
  .nav__toggle { display: flex; z-index: 70; }
  .nav.is-nav-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-nav-open .nav__toggle span:nth-child(2) { opacity: 0; width: 0; }
  .nav.is-nav-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
}

@media (max-width: 880px) {
  .split, .split--portrait { grid-template-columns: 1fr; gap: 2.5rem; }
  .split__media { order: -1; }
  .estate, .estate:nth-child(even) .estate__media { grid-template-columns: 1fr; }
  .estate:nth-child(even) .estate__media { order: -1; }
  .estate__media { order: -1; }

  .quotes--row { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .guide { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; }

  .service { grid-template-columns: auto 1fr; column-gap: 1.2rem; row-gap: 1.3rem; align-items: center; }
  .service:hover { padding-left: 0; }
  .service__no { grid-column: 1; grid-row: 1; font-size: 1.5rem; }
  .service__link { grid-column: 2; grid-row: 1; justify-self: end; width: 46px; height: 46px; }
  .service__body { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 540px) {
  .stats { grid-template-columns: 1fr; }
  .stat, .stat:nth-child(3) { border-left: none; }
  .nav__cta.btn { display: none; }
  .tl-item { grid-template-columns: 1fr; row-gap: 0.5rem; padding-block: 1.8rem; }
  .tl-node { display: none; }
  .tl-year { font-size: 1.5rem; }
}

/* ---- Reduced motion ----------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal, .clip, .draw,
  [data-stagger] > * { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .eyebrow::before { transform: none !important; }
  .hero__media img { height: 100%; }
}
