/* ==========================================================================
   Trans Am Realty — Hanadee Ali, eXp Realty
   ========================================================================== */

/* --- Fonts: self-hosted, latin + latin-ext only ------------------------- */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 300 600;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 300 600;
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/playfair-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/playfair-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/playfair-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/playfair-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Design tokens ------------------------------------------------------ */
:root {
  --ink: #3a3d2f;
  --ink-deep: #2a2c20;
  --ink-soft: #5e6250;
  --ink-mute: #8b8d78;
  --ink-faint: #999b85;
  --ink-ghost: #a9ab95;

  --gold: #b08a3c;
  --gold-light: #c9a961;
  --gold-dark: #96742f;

  --paper: #faf8f3;
  --paper-warm: #f6f2e7;
  --paper-sand: #f4efe2;
  --paper-deep: #f2ecdc;
  --surface: #fff;

  --line: #ded5bc;
  --line-soft: #e6e0cb;
  --line-gold: #d8cba6;

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --nav-h: 104px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

img { max-width: 100%; }

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

[id] { scroll-margin-top: var(--nav-h); }

input, textarea, button, select { font: inherit; color: inherit; }
input::placeholder, textarea::placeholder { color: var(--ink-ghost); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 400;
  background: var(--ink);
  color: var(--paper-warm);
  padding: 14px 22px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.skip-link:focus { left: 0; color: var(--paper-warm); }

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

/* Shared bits ------------------------------------------------------------ */
.eyebrow {
  font-size: clamp(9.5px, 1.1vw, 11.5px);
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold);
}

.btn {
  display: inline-block;
  padding: 17px 34px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s ease,
    background .3s ease, color .3s ease, border-color .3s ease;
}
.btn--solid { background: var(--ink); color: var(--paper-warm); }
.btn--solid:hover {
  color: var(--paper-warm);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(58, 61, 47, .3);
}
.btn--outline {
  border: 1.5px solid var(--gold);
  color: var(--ink);
  background: rgba(255, 255, 255, .5);
}
.btn--outline:hover {
  background: var(--gold);
  color: #fdfbf5;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(176, 138, 60, .34);
}
.btn--gold { background: var(--gold); color: var(--paper); padding: 15px 30px; font-size: 11.5px; }
.btn--gold:hover { background: var(--gold-dark); color: var(--paper); transform: translateY(-2px); }
.btn--ghost {
  border: 1px solid var(--line-gold);
  color: var(--ink);
  background: none;
  padding: 15px 30px;
  font-size: 11.5px;
}
.btn--ghost:hover { background: var(--paper-sand); color: var(--ink); transform: translateY(-2px); }

/* --- Motion ------------------------------------------------------------- */
@keyframes driftA {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, calc(-50% - clamp(5px, .6vw, 9px)), 0); }
}
@keyframes driftB {
  from { transform: translate3d(0, calc(-50% - clamp(5px, .6vw, 9px)), 0); }
  to { transform: translate3d(0, 0, 0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* Motion is decorative here — respect the OS setting completely. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 120;
  color: var(--ink);
}
.site-header__bg {
  position: absolute;
  inset: 0;
  background: rgba(250, 248, 243, .93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(58, 61, 47, .12);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.site-header.is-scrolled .site-header__bg,
.site-header.is-open .site-header__bg { opacity: 1; }

.site-header__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(14px, 2vw, 20px) var(--gutter);
}

.brand { display: flex; flex-direction: column; gap: 3px; color: inherit; }
.brand:hover { color: inherit; }
.brand__name {
  font-family: var(--serif);
  font-size: clamp(18px, 2.2vw, 23px);
  font-weight: 600;
  letter-spacing: .09em;
  line-height: 1;
}
.brand__sub {
  font-size: 9.5px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 36px);
  font-size: 13px;
  letter-spacing: .1em;
}
.nav a { color: var(--ink); }
.nav a:hover { color: var(--gold-dark); }
.nav__phone {
  border: 1px solid rgba(58, 61, 47, .32);
  padding: 11px 24px;
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: background .3s ease, border-color .3s ease;
}
.nav__phone:hover { background: rgba(58, 61, 47, .07); border-color: rgba(58, 61, 47, .62); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid rgba(58, 61, 47, .32);
  color: var(--ink);
  padding: 10px 16px;
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
}

.mobile-menu {
  position: relative;
  background: rgba(250, 248, 243, .98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(58, 61, 47, .14);
  display: none;
  flex-direction: column;
  padding: 8px var(--gutter) 22px;
  animation: fadeIn .25s ease;
}
.site-header.is-open .mobile-menu { display: flex; }
.mobile-menu a {
  color: var(--ink);
  padding: 15px 0;
  border-bottom: 1px solid rgba(58, 61, 47, .1);
  font-size: 15px;
  letter-spacing: .06em;
}
.mobile-menu a:last-of-type { border-bottom: 0; }
.mobile-menu__actions { display: flex; gap: 10px; margin-top: 16px; }
.mobile-menu__actions a {
  flex: 1 1 0;
  text-align: center;
  padding: 14px;
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  border-bottom: 0;
}
.mobile-menu__call { background: var(--ink); color: var(--paper-warm); }
.mobile-menu__call:hover { color: var(--paper-warm); }
.mobile-menu__email { border: 1px solid rgba(58, 61, 47, .3); color: var(--ink); }

@media (max-width: 899px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--paper-warm);
  color: var(--ink);
  overflow: hidden;
}

.hero__mosaic {
  position: absolute;
  inset: 0;
  display: flex;
  gap: clamp(10px, 1.2vw, 18px);
  padding: 0 clamp(10px, 1.2vw, 18px);
  overflow: hidden;
}
.hero__col { flex: 1 1 0; min-width: 0; overflow: hidden; }
.hero__track {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.2vw, 18px);
  will-change: transform;
}
.hero__track--a { animation: driftA 118s linear 0s infinite; }
.hero__track--b { animation: driftB 142s linear -20s infinite; }
.hero__track--c { animation: driftA 130s linear -48s infinite; }
/* The mosaic is decorative, so its photos are CSS backgrounds declared only
   inside the desktop media query below. That is the one reliable way to stop
   phones downloading them: a lazy <img> inside a display:none parent is still
   fetched by Chrome, but an image referenced from a non-matching media query
   never is. */
.hero__tile {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #e8e3d3 center / cover no-repeat;
  filter: saturate(1.16) contrast(1.08);
}

/* Mosaic photo sources — desktop only, by design.
   One declaration each, deliberately: pairing a url() fallback with an
   image-set() made Chrome fetch BOTH, doubling the desktop payload to 18
   files. A single url() is also what every browser understands, whereas
   image-set() alone would leave Safari 14-16 with blank tiles. Columns are
   ~33vw and sit behind a scrim, so 800w is ample. */
@media (min-width: 768px) {
  .hero__tile--britmass { background-image: url('../img/britmass-800.webp'); }
  .hero__tile--honeycutt { background-image: url('../img/honeycutt-800.webp'); }
  .hero__tile--russell { background-image: url('../img/russell-800.webp'); }
  .hero__tile--sweetbay { background-image: url('../img/sweetbay-800.webp'); }
  .hero__tile--parkave { background-image: url('../img/parkave-800.webp'); }
  .hero__tile--obsidian { background-image: url('../img/obsidian-800.webp'); }
  .hero__tile--allie { background-image: url('../img/allie-800.webp'); }
  .hero__tile--atterbury { background-image: url('../img/atterbury-800.webp'); }
  .hero__tile--rhum { background-image: url('../img/rhum-800.webp'); }
}

.hero__scrim-x {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(246, 242, 231, .98) 0%, rgba(246, 242, 231, .9) 21%,
    rgba(246, 242, 231, .52) 33%, rgba(246, 242, 231, .1) 47%,
    rgba(246, 242, 231, 0) 60%, rgba(246, 242, 231, 0) 100%);
}
.hero__scrim-y {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(246, 242, 231, .84) 0%, rgba(246, 242, 231, .02) 18%,
    rgba(246, 242, 231, 0) 54%, rgba(246, 242, 231, .74) 100%);
}

.hero__body {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  padding: clamp(112px, 15vh, 168px) var(--gutter) clamp(72px, 9vh, 104px);
}
.hero__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(15px, 2.2vw, 26px);
  max-width: 660px;
  animation: fadeUp 1s var(--ease) .05s both;
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--gold-dark);
}
.hero__rule {
  width: clamp(24px, 4vw, 48px);
  height: 1px;
  background: var(--gold);
  display: inline-block;
}
.hero h1 {
  font-size: clamp(38px, 6.6vw, 86px);
  line-height: 1;
  max-width: 13ch;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--gold-dark); }
.hero__lede {
  margin: 0;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 44ch;
  text-wrap: pretty;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }

/* Desktop shows the drifting mosaic; the single photo is phones only. */
.hero__single { display: none; }

.hero__ticker {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px clamp(16px, 3vw, 40px);
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px var(--gutter);
  border-top: 1px solid rgba(58, 61, 47, .16);
  background: rgba(252, 250, 244, .62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink-soft);
  font-size: clamp(9.5px, 1vw, 11px);
  letter-spacing: .2em;
  text-transform: uppercase;
}
.hero__ticker .dot { color: rgba(58, 61, 47, .32); }

/* Phone hero: the three drifting columns collapse to ~110px wide here, which
   reads as noise rather than photography. Swap to a stacked layout — copy on
   the warm paper, then one full-bleed photo filling whatever height is left.
   The mosaic's images are lazy, so hiding it means phones never fetch them. */
@media (max-width: 767px) {
  .hero {
    min-height: 100svh;
    justify-content: flex-start;
    background: var(--paper-warm);
  }
  .hero__mosaic,
  .hero__scrim-x,
  .hero__scrim-y { display: none; }

  .hero__body {
    flex: 0 0 auto;
    align-items: flex-start;
    padding: clamp(78px, 12vh, 96px) var(--gutter) clamp(20px, 3.4vh, 28px);
  }
  .hero__inner { max-width: none; width: 100%; gap: 14px; }
  .hero__eyebrow { gap: 11px; letter-spacing: .28em; }
  .hero h1 { font-size: clamp(33px, 9.2vw, 44px); max-width: 15ch; }
  .hero__lede { font-size: 15.5px; line-height: 1.65; max-width: 40ch; }

  .hero__actions { gap: 8px; margin-top: 4px; width: 100%; }
  .hero__actions .btn {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    padding: 15px 8px;
    font-size: 10px;
    letter-spacing: .08em;
  }

  /* Fills whatever height the copy leaves. The gradient is layered over the
     photo in the same property so the top edge melts into the paper and the
     block reads as one composition, not a photo pasted underneath. */
  .hero__single {
    display: block;
    flex: 1 1 auto;
    min-height: 30vh;
    overflow: hidden;
    background: #e8e3d3 center / cover no-repeat;
    background-image:
      linear-gradient(to bottom, var(--paper-warm), rgba(246, 242, 231, 0) 76px),
      url('../img/britmass-1200.webp');
    background-size: 100% 100%, cover;
  }

  /* Inline separators strand the last city on its own line; stack the three
     claims instead and drop the dots. */
  .hero__ticker {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 4px;
    padding: 12px var(--gutter);
    font-size: 9.5px;
    letter-spacing: .12em;
  }
  .hero__ticker .dot { display: none; }
  /* The city list is the one line long enough to wrap and orphan a trailing
     separator; a touch smaller keeps it on one line. */
  .hero__ticker span:last-child { font-size: 8.8px; letter-spacing: .07em; }

  /* The fixed bar is ~62px on phones, not the 104px desktop reserves. */
  [id] { scroll-margin-top: 72px; }
}

/* Narrow phones: the brand lockup is the first thing to overflow. */
@media (max-width: 380px) {
  .brand__name { font-size: 17px; }
  .brand__sub { font-size: 9px; letter-spacing: .2em; }
  .nav-toggle { padding: 10px 13px; letter-spacing: .14em; }
}

/* --- Statement ---------------------------------------------------------- */
.statement {
  padding: clamp(72px, 11vw, 130px) var(--gutter);
  display: flex;
  justify-content: center;
}
.statement__inner {
  max-width: 940px;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 32px);
}
.statement h2 {
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 1.12;
  text-wrap: balance;
}
.statement p {
  margin: 0;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 62ch;
  text-wrap: pretty;
}

/* --- Portfolio ---------------------------------------------------------- */
.portfolio { padding: 0 var(--gutter) clamp(72px, 10vw, 120px); }
.portfolio__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}
.portfolio__title { display: flex; flex-direction: column; gap: 10px; }
.portfolio__title h2 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.05; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter {
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 11px 20px;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  border-radius: 0;
  transition: background .3s ease, border-color .3s ease, color .3s ease;
}
.filter:hover { border-color: var(--gold); color: var(--gold); }
.filter[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.filter[aria-pressed='true']:hover { background: #282a1e; border-color: #282a1e; color: var(--paper); }

.portfolio__note {
  font-size: 14px;
  color: var(--ink-mute);
  margin: 16px 0 clamp(28px, 4vw, 44px);
  letter-spacing: .03em;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: clamp(18px, 2.4vw, 32px);
}

.card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  cursor: pointer;
  border-radius: 0;
  font: inherit;
  color: inherit;
  transition: transform .4s var(--ease), box-shadow .4s ease, border-color .4s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px rgba(69, 61, 47, .17);
  border-color: var(--line-gold);
}
.card[hidden] { display: none; }
.card__media {
  display: block;
  height: clamp(210px, 24vw, 268px);
  position: relative;
  overflow: hidden;
  background: #e8e3d3;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.1) contrast(1.06) brightness(1.02);
  transition: transform .8s var(--ease), filter .8s ease;
}
.card:hover .card__media img {
  transform: scale(1.07);
  filter: saturate(1.16) contrast(1.09) brightness(1.05);
}
.card__body {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 20px 22px 24px;
}
.card__addr {
  display: block;
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 500;
  color: var(--ink);
}
.card__city {
  display: block;
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 4px;
  letter-spacing: .06em;
}
.card__cta {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  flex: none;
}

.badge {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 7px 15px;
  display: inline-block;
  font-weight: 500;
}
.card .badge { position: absolute; top: 15px; left: 15px; }
.badge--active { background: var(--gold); color: var(--paper); }
.badge--pending { background: var(--gold-light); color: var(--ink-deep); }
.badge--sold {
  background: rgba(250, 248, 243, .94);
  color: var(--ink-soft);
  border: 1px solid rgba(69, 61, 47, .14);
}

.portfolio__empty {
  padding: 48px 0;
  color: var(--ink-mute);
  font-size: 15px;
}

/* --- Map ---------------------------------------------------------------- */
.map-section {
  background: var(--paper-sand);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(64px, 9vw, 110px) var(--gutter);
}
.map-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.map-section__intro { display: flex; flex-direction: column; gap: 12px; max-width: 56ch; }
.map-section__intro h2 {
  font-size: clamp(28px, 4.2vw, 50px);
  line-height: 1.08;
  text-wrap: balance;
}
.map-section__intro p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
  padding: 0;
  list-style: none;
}
.legend li { display: flex; align-items: center; gap: 8px; }
.legend .swatch { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.swatch--active { background: var(--gold); }
.swatch--pending { background: var(--gold-light); }
.swatch--sold { background: var(--ink-soft); }

.map-frame {
  height: clamp(420px, 58vh, 620px);
  border: 1px solid var(--line);
  background: #efe9d8;
}
triangle-map {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  background: #efe9d8;
}

/* --- About -------------------------------------------------------------- */
.about { padding: clamp(72px, 10vw, 120px) var(--gutter); }
.about__inner {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  justify-content: center;
}
.about__portrait {
  position: relative;
  flex: 0 1 300px;
  max-width: 300px;
  margin: 14px 0 0 14px;
}
.about__portrait::before {
  content: '';
  position: absolute;
  top: -14px; left: -14px; right: 14px; bottom: 14px;
  border: 1px solid var(--line-gold);
  pointer-events: none;
}
.about__portrait img {
  position: relative;
  width: 100%;
  display: block;
  filter: saturate(1.06) contrast(1.05);
}
.about__text {
  flex: 1 1 440px;
  max-width: 64ch;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.2vw, 24px);
}
.about__text h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.05; }
.about__text > p {
  margin: 0;
  font-size: clamp(15px, 1.5vw, 16.5px);
  line-height: 1.8;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.about blockquote {
  margin: 6px 0 0;
  border-left: 1px solid var(--line-gold);
  padding-left: clamp(18px, 2.4vw, 28px);
}
.about blockquote p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.5;
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  max-width: 42ch;
  text-wrap: pretty;
}
.about__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* --- Services ----------------------------------------------------------- */
.services { padding: 0 var(--gutter) clamp(72px, 10vw, 120px); }
.services__inner {
  border-top: 1px solid var(--line);
  padding-top: clamp(40px, 6vw, 60px);
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4.5vw, 54px);
}
.services h2 { font-size: clamp(28px, 3.8vw, 44px); text-align: center; }
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(28px, 3.6vw, 48px);
}
.service { display: flex; flex-direction: column; gap: 12px; }
.service__num {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--gold-light);
  letter-spacing: .1em;
}
.service h3 { font-size: clamp(21px, 2.2vw, 26px); }
.service p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* --- Contact ------------------------------------------------------------ */
.contact {
  background: linear-gradient(to bottom, var(--paper-deep), #f7f3e9);
  border-top: 1px solid var(--line-soft);
  padding: clamp(64px, 9vw, 110px) var(--gutter);
}
.contact__inner {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(36px, 6vw, 80px);
  align-items: flex-start;
  justify-content: center;
}
.contact__intro {
  flex: 1 1 400px;
  max-width: 56ch;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.2vw, 24px);
}
.contact__intro h2 {
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.1;
  text-wrap: balance;
}
.contact__intro > p {
  margin: 0;
  font-size: clamp(15px, 1.5vw, 16px);
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 46ch;
  text-wrap: pretty;
}
.contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin-top: 6px;
  font-size: 15px;
  letter-spacing: .03em;
}
.contact__links a { display: flex; align-items: center; gap: 9px; }
.contact__links .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold-light);
  display: inline-block;
}

.contact__panel { flex: 1 1 400px; max-width: 480px; width: 100%; }

.form {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  padding: clamp(26px, 4vw, 42px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form__title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 27px);
  font-weight: 500;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field__label {
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.field__label .opt { text-transform: none; letter-spacing: normal; color: var(--ink-ghost); }
.field input {
  border: 0;
  border-bottom: 1px solid #dbd5bf;
  background: none;
  padding: 9px 2px;
  font-size: 15px;
  outline: none;
  border-radius: 0;
  transition: border-color .25s ease;
}
.field input:focus { border-bottom-color: var(--gold); }
.field textarea {
  border: 1px solid #e2dcc6;
  background: #fdfcf9;
  padding: 11px 12px;
  font-size: 14.5px;
  line-height: 1.6;
  outline: none;
  resize: vertical;
  border-radius: 0;
  transition: border-color .25s ease;
}
.field textarea:focus { border-color: var(--gold); }

.chips { display: flex; flex-direction: column; gap: 10px; }
.chips__row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-mute);
  padding: 9px 17px;
  font-size: 12px;
  letter-spacing: .08em;
  cursor: pointer;
  border-radius: 0;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.chip:hover { border-color: var(--gold); color: var(--gold); }
.chip[aria-pressed='true'] {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--paper);
}

.form__submit {
  background: var(--gold);
  color: var(--paper);
  border: 0;
  text-align: center;
  padding: 16px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .3s ease, transform .3s ease, box-shadow .3s ease;
}
.form__submit:hover:not(:disabled) {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(138, 109, 63, .32);
}
.form__submit:disabled { opacity: .6; cursor: progress; }

.form__fine { margin: 0; font-size: 11.5px; line-height: 1.6; color: var(--ink-faint); }
.form__error {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #9a3412;
  background: #fdf1e7;
  border: 1px solid #f0d3ba;
  padding: 11px 13px;
}
.form__error[hidden] { display: none; }

/* Honeypot — off-screen, never shown, ignored by assistive tech. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.thanks {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  padding: clamp(32px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  animation: fadeIn .4s ease;
}
.thanks[hidden] { display: none; }
.thanks__eyebrow {
  font-size: 10.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
}
.thanks__title {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 500;
}
.thanks p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--ink-soft); }
.thanks button {
  margin-top: 8px;
  background: none;
  border: 1px solid var(--line-gold);
  color: var(--ink);
  padding: 12px 26px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
}
.thanks button:hover { background: var(--paper-sand); }

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--ink-deep);
  color: #a3a58e;
  padding: clamp(44px, 6vw, 60px) var(--gutter) clamp(28px, 3vw, 36px);
}
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 6vw, 72px);
  justify-content: space-between;
  padding-bottom: clamp(28px, 4vw, 38px);
  border-bottom: 1px solid rgba(245, 242, 233, .14);
}
.site-footer__brand { flex: 1 1 260px; display: flex; flex-direction: column; gap: 10px; }
.site-footer__brand strong {
  font-family: var(--serif);
  font-size: 21px;
  color: #f5f2e9;
  letter-spacing: .09em;
  font-weight: 500;
}
.site-footer__brand span { font-size: 13px; line-height: 1.7; max-width: 36ch; }
.site-footer__col {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 13.5px;
}
.site-footer__col h2 {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 300;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #7c7e68;
}
.site-footer__col a { color: #d2d3c0; }
.site-footer__col a:hover { color: var(--gold-light); }
.site-footer__col address { font-style: normal; line-height: 1.65; }
.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  padding-top: 22px;
  font-size: 11.5px;
  letter-spacing: .05em;
  color: #7c7e68;
}

/* --- Property dialog ---------------------------------------------------- */
.detail {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.detail::backdrop {
  background: rgba(24, 21, 15, .72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn .28s ease;
}
.detail__shell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: clamp(12px, 4vw, 48px);
}
.detail__panel {
  background: var(--paper);
  max-width: 1040px;
  width: 100%;
  max-height: 92vh;
  overflow: auto;
  display: flex;
  flex-wrap: wrap;
  box-shadow: 0 40px 90px rgba(24, 21, 15, .5);
  animation: fadeUp .38s var(--ease);
  text-align: left;
}
.detail__media {
  flex: 1 1 420px;
  min-height: clamp(240px, 38vh, 420px);
  background: #e8e3d3;
}
.detail__media img {
  width: 100%;
  height: 100%;
  min-height: clamp(240px, 38vh, 420px);
  object-fit: cover;
  display: block;
  filter: saturate(1.1) contrast(1.06) brightness(1.02);
}
.detail__body {
  flex: 1 1 340px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(26px, 3.6vw, 44px);
}
.detail__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.detail__close {
  background: none;
  border: 0;
  font-size: 24px;
  line-height: 1;
  color: var(--ink-mute);
  cursor: pointer;
  padding: 0 2px;
}
.detail__close:hover { color: var(--ink); }
.detail h3 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.1; }
.detail__city {
  font-size: 14.5px;
  color: var(--ink-mute);
  margin-top: 6px;
  letter-spacing: .06em;
}
.detail__blurb {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.detail__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.detail__actions .btn { padding: 15px 28px; font-size: 11.5px; }
.detail__nav {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.detail__nav button {
  background: none;
  border: 0;
  color: var(--gold);
  cursor: pointer;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 11px;
  padding: 0;
}
.detail__nav button:hover { color: var(--gold-dark); }

body.is-locked { overflow: hidden; }

/* --- Print -------------------------------------------------------------- */
@media print {
  .site-header, .hero__mosaic, .map-section, .form, .nav-toggle { display: none !important; }
  body { background: #fff; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
