/* ==========================================================================
   Nyla LePine — Personal Real Estate Corporation
   Design tokens carried over from the original site:
   cream #F9F6F1 · sand #F0ECE4 · ink #1A1205 · gold #C58A13 · maroon #7D2C2C
   ========================================================================== */

:root {
  --cream: #f9f6f1;
  --sand: #f0ece4;
  --sand-deep: #e6e0d4;
  --ink: #1a1205;
  --ink-soft: #4a4336;
  --gold: #c58a13;
  --gold-text: #a06f0c;   /* darker gold for small text on cream (contrast) */
  --maroon: #7d2c2c;
  --black: #000;
  --white: #fff;
  --line: rgba(26, 18, 5, .14);

  --serif: "Cormorant Garamond", "Minion Pro", "EB Garamond", Georgia, serif;
  --sans: "Libre Franklin", "Acumin Pro", "Helvetica Neue", Arial, sans-serif;
  --cond: "Oswald", "Arial Narrow", sans-serif;
  --script: "Hurricane", "Turbinado Pro", "Brush Script MT", cursive;

  --wrap: 1240px;
  --gutter: clamp(20px, 4.5vw, 56px);
  --section: clamp(64px, 9vw, 128px);
  --header-h: 100px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.65; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--black); color: var(--white); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
h1, h2, h3, h4, .listing-price, .ld-price, .ld-specs b, .stat b, .step-num, .service .n, .contact-list a, .f-big { font-variant-numeric: lining-nums; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; margin: 0 0 .5em; letter-spacing: -.015em; line-height: 1.04; text-wrap: balance; }
.display { font-size: clamp(2.5rem, 1.5rem + 4.2vw, 4.75rem); }
.h1 { font-size: clamp(2.3rem, 1.5rem + 3.2vw, 4rem); }
.h2 { font-size: clamp(1.75rem, 1.3rem + 1.7vw, 2.6rem); line-height: 1.14; }
.h3 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.85rem); line-height: 1.2; }
.caps { text-transform: uppercase; letter-spacing: .005em; }
.script { font-family: var(--script); font-style: normal; font-weight: 400; text-transform: none; letter-spacing: .005em; font-size: 1.3em; line-height: .7; padding: 0 .08em 0 .04em; display: inline-block; transform: rotate(-4deg) translateY(.06em); }
.eyebrow { font-family: var(--cond); font-weight: 500; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 1.1rem; display: block; }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.center { text-align: center; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(860px + var(--gutter) * 2); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.bg-sand { background: var(--sand); }
.bg-cream { background: var(--cream); }
.bg-black { background: var(--black); color: var(--white); }
.split { display: grid; gap: clamp(32px, 6vw, 88px); align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } .split--flip > :first-child { order: 2; } }
.stack > * + * { margin-top: 1.4rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(28px, 4vw, 52px); }
.section-head h2 { margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 54px; padding: 14px 32px; border: 1px solid var(--black); border-radius: 0;
  background: var(--black); color: var(--white); text-decoration: none; cursor: pointer;
  font-family: var(--sans); font-size: .9rem; font-weight: 500; letter-spacing: .02em; text-transform: capitalize; line-height: 1.2; text-align: center;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--black); border-color: var(--black); color: var(--white); }
.btn--light { background: var(--white); border-color: var(--white); color: var(--black); }
.btn--light:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }
.btn--sm { min-height: 46px; padding: 10px 24px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { font-family: var(--cond); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; transition: color .2s; white-space: nowrap; }
.link-arrow:hover { color: var(--gold-text); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--sand); transition: box-shadow .3s; }
.site-header.is-stuck { box-shadow: 0 1px 0 var(--line), 0 8px 28px rgba(26, 18, 5, .06); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: block; justify-self: center; }
.brand img { height: 76px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(14px, 1.7vw, 26px); list-style: none; }
.nav a, .nav button {
  font-family: var(--cond); font-size: .82rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  background: none; border: 0; padding: 10px 0; cursor: pointer; position: relative; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px;
}
.nav a::after, .nav button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after, .nav button:hover::after, .nav [aria-current="page"]::after, .nav .is-active::after { transform: scaleX(1); }
.has-drop { position: relative; }
.has-drop svg { width: 9px; height: 9px; transition: transform .25s; }
.has-drop:hover svg, .has-drop:focus-within svg { transform: rotate(180deg); }
.drop { position: absolute; top: 100%; left: -22px; min-width: 190px; list-style: none; background: var(--cream); border: 1px solid var(--line); padding: 10px 22px; box-shadow: 0 18px 40px rgba(26, 18, 5, .1); opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .22s var(--ease); }
.has-drop:hover .drop, .has-drop:focus-within .drop, .has-drop.is-open .drop { opacity: 1; visibility: visible; transform: none; }
.drop a { display: flex; padding: 9px 0; }
.header-cta { justify-self: end; display: flex; align-items: center; gap: 14px; }
.header-phone { font-family: var(--cond); font-size: .82rem; letter-spacing: .1em; text-decoration: none; white-space: nowrap; }
.header-phone:hover { color: var(--gold-text); }
.burger { display: none; width: 48px; height: 48px; border: 0; background: none; cursor: pointer; position: relative; justify-self: end; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 18px; } .burger span:nth-child(2) { top: 24px; } .burger span:nth-child(3) { top: 30px; }
.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) { .header-phone { display: none; } }
@media (max-width: 1020px) {
  :root { --header-h: 72px; }
  .header-inner { grid-template-columns: auto 1fr; }
  .brand { justify-self: start; } .brand img { height: 56px; }
  .primary-nav, .header-cta { display: none; }
  .burger { display: block; }
}

/* Mobile menu */
.mobile-menu { position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; background: var(--sand); padding: 24px var(--gutter) 40px; overflow-y: auto; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all .3s var(--ease); }
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
.menu-open { overflow: hidden; }
.mobile-menu ul { list-style: none; }
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mobile-menu a.m-link { display: flex; justify-content: space-between; align-items: center; min-height: 60px; font-family: var(--serif); font-size: 1.7rem; text-decoration: none; }
.mobile-menu a.m-link.sub { font-size: 1.25rem; min-height: 50px; padding-left: 18px; color: var(--ink-soft); }
.mobile-menu .m-foot { margin-top: auto; padding-top: 28px; display: grid; gap: 12px; }
.mobile-menu .m-foot .btn { width: 100%; }
@media (min-width: 1021px) { .mobile-menu { display: none; } }

/* ---------- Media frames ---------- */
.frame { position: relative; overflow: hidden; background: var(--sand-deep); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.r-portrait { aspect-ratio: 4 / 5; } .r-tall { aspect-ratio: 3 / 4; } .r-square { aspect-ratio: 1; } .r-land { aspect-ratio: 4 / 3; } .r-wide { aspect-ratio: 16 / 9; } .r-photo { aspect-ratio: 3 / 2; }
.zoom img { transition: transform 1.1s var(--ease); }
a:hover .zoom img, .zoom:hover img { transform: scale(1.045); }

/* ---------- Home hero ---------- */
.hero { position: relative; background: var(--cream); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); min-height: min(820px, calc(100svh - var(--header-h))); }
.hero-photo { position: relative; min-height: 560px; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.hero-sign { position: absolute; left: clamp(16px, 3vw, 40px); bottom: clamp(16px, 3vw, 36px); color: var(--white); text-shadow: 0 2px 18px rgba(0, 0, 0, .45); line-height: 1; }
.hero-sign .script { font-size: clamp(3.2rem, 6vw, 5.2rem); display: block; line-height: 1; }
.hero-sign small { font-family: var(--cond); letter-spacing: .16em; text-transform: uppercase; font-size: .74rem; display: block; margin-top: 10px; }
.hero-side { position: relative; display: flex; align-items: center; padding: clamp(40px, 6vw, 88px) var(--gutter) clamp(40px, 6vw, 88px) 0; }
.hero-aerial { position: absolute; top: 0; right: 0; width: 46%; height: 62%; }
.hero-aerial img { width: 100%; height: 100%; object-fit: cover; }
.hero-card { position: relative; z-index: 2; background: var(--sand); padding: clamp(28px, 4vw, 56px); margin-left: clamp(-120px, -8vw, -48px); max-width: 600px; box-shadow: 0 30px 80px rgba(26, 18, 5, .08); }
.hero-card h1 { font-size: clamp(2.2rem, 1.2rem + 2.9vw, 3.5rem); margin-bottom: .45em; }
.hero-card p { max-width: 34em; }
.hero-card .btn { margin-top: 1.6rem; }
.badge { position: absolute; z-index: 3; width: clamp(112px, 12vw, 164px); aspect-ratio: 1; color: var(--maroon); pointer-events: none; }
.badge svg { width: 100%; height: 100%; animation: spin 22s linear infinite; overflow: visible; }
.badge text { font-family: var(--sans); font-weight: 700; font-size: 19px; letter-spacing: .12em; fill: currentColor; text-transform: uppercase; }
.hero .badge { right: clamp(16px, 4vw, 64px); bottom: clamp(16px, 3vw, 48px); }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { min-height: 0; aspect-ratio: 4 / 4.4; }
  .hero-side { padding: 0 var(--gutter) 72px; display: block; }
  .hero-aerial, .hero-sign { display: none; }
  .hero-card { margin: -72px 0 0; max-width: none; }
  .hero .badge { right: var(--gutter); bottom: auto; top: -128px; color: var(--white); filter: drop-shadow(0 1px 8px rgba(0,0,0,.4)); }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--sand); position: relative; overflow: hidden; }
.page-hero .split { align-items: stretch; gap: 0; }
.page-hero-copy { padding: clamp(48px, 8vw, 120px) clamp(24px, 5vw, 80px) clamp(48px, 8vw, 120px) max(var(--gutter), calc(50vw - var(--wrap) / 2)); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; width: 100%; }
.page-hero-media { position: relative; min-height: clamp(320px, 46vw, 640px); }
.page-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero .badge { left: auto; right: calc(50% + 28px); bottom: 28px; width: clamp(96px, 9vw, 132px); }
@media (max-width: 859px) { .page-hero .badge { left: auto; right: var(--gutter); bottom: auto; top: clamp(250px, 70vw, 420px); transform: none; color: var(--white); } .page-hero-media { order: -1; } .page-hero-copy { padding-inline: var(--gutter); } }
.page-hero--simple { text-align: center; padding-block: clamp(56px, 8vw, 112px); }
.page-hero--simple p { max-width: 40em; margin-inline: auto; }

/* ---------- Statement band ---------- */
.statement { text-align: center; }
.statement h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.9rem); line-height: 1.16; max-width: 22em; margin-inline: auto; }
.prose-cols { display: grid; gap: clamp(24px, 4vw, 64px); }
@media (min-width: 860px) { .prose-cols { grid-template-columns: 1.1fr 1fr; align-items: start; } .prose-cols h2 { position: sticky; top: calc(var(--header-h) + 32px); } }

/* ---------- Slideshow ---------- */
.slideshow { position: relative; }
.slideshow .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.slideshow .slide.is-on { opacity: 1; }
.slideshow .dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; gap: 8px; justify-content: center; z-index: 2; }
.slideshow .dots button { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.slideshow .dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.55); transition: all .3s; }
.slideshow .dots button[aria-current="true"]::before { background: var(--white); transform: scale(1.3); }
.duo { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(12px, 2vw, 28px); align-items: end; }
.duo > :first-child { margin-bottom: clamp(24px, 5vw, 72px); }

/* ---------- Check list ---------- */
.ticks { list-style: none; display: grid; gap: 0; margin-top: 1.6rem; }
@media (min-width: 520px) { .ticks { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.ticks li { padding: 14px 0 14px 30px; border-bottom: 1px solid var(--line); position: relative; font-weight: 500; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 1.35em; width: 14px; height: 7px; border-left: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(-45deg); }

/* ---------- Guide band ---------- */
.guide { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (min-width: 760px) { .guide { grid-template-columns: minmax(220px, 380px) 1fr; } }
.guide-cover { display: block; max-width: 380px; width: 100%; margin-inline: auto; box-shadow: 0 30px 70px rgba(26,18,5,.18); transition: transform .5s var(--ease); }
.guide-cover:hover { transform: translateY(-6px) rotate(-1deg); }
.guide small { display: block; margin-top: 14px; color: var(--ink-soft); font-size: .85rem; }

/* ---------- Cards: listings ---------- */
.grid-3 { display: grid; gap: clamp(28px, 3vw, 44px) clamp(20px, 2.4vw, 36px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.listing-card { display: flex; flex-direction: column; text-decoration: none; height: 100%; }
.listing-card .frame { aspect-ratio: 4 / 3; }
.tag { position: absolute; left: 14px; top: 14px; z-index: 2; background: var(--cream); color: var(--ink); font-family: var(--cond); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; padding: 7px 12px; }
.tag--dark { background: var(--black); color: var(--white); left: auto; right: 14px; }
.listing-body { padding-top: 18px; display: flex; flex-direction: column; flex: 1; }
.listing-price { font-family: var(--serif); font-size: 1.7rem; line-height: 1; margin-bottom: 8px; }
.listing-title { font-family: var(--sans); font-size: 1.02rem; font-weight: 500; letter-spacing: 0; line-height: 1.35; margin: 0; }
.listing-area { color: var(--ink-soft); font-size: .92rem; margin: 2px 0 0; }
.specs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--ink-soft); }
.specs li { padding-right: 14px; margin-right: 14px; border-right: 1px solid var(--line); white-space: nowrap; }
.specs li:last-child { border: 0; margin: 0; padding: 0; }
.specs b { color: var(--ink); font-weight: 600; }
.listing-card .more { margin-top: auto; padding-top: 16px; font-family: var(--cond); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.listing-card .more span { border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.listing-card:hover .more { color: var(--gold-text); }

/* Filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 40px); }
.chip { min-height: 44px; padding: 8px 20px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-family: var(--cond); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; transition: all .2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--black); border-color: var(--black); color: var(--white); }
.is-hidden { display: none !important; }

/* ---------- Video ---------- */
.video-grid { display: grid; gap: clamp(20px, 2.4vw, 36px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.yt { position: relative; aspect-ratio: 16 / 9; background: #000; cursor: pointer; border: 0; padding: 0; width: 100%; display: block; overflow: hidden; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .88; transition: opacity .3s, transform 1s var(--ease); }
.yt:hover img { opacity: 1; transform: scale(1.03); }
.yt::after { content: ""; position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: rgba(249,246,241,.95) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%231a1205'/%3E%3C/svg%3E") center / 30px no-repeat; transition: transform .3s var(--ease); }
.yt:hover::after { transform: scale(1.1); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-title { font-family: var(--sans); font-size: .95rem; font-weight: 500; letter-spacing: 0; line-height: 1.4; margin: 14px 0 0; }

/* ---------- Testimonials ---------- */
.quote-feature { text-align: center; max-width: 900px; margin-inline: auto; }
.quote-feature blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.35rem); line-height: 1.25; letter-spacing: -.01em; }
.quote-feature cite, .t-card cite { display: block; margin-top: 1.4rem; font-style: normal; font-family: var(--cond); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.t-grid { display: grid; gap: clamp(16px, 2vw, 28px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.t-card { background: var(--cream); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; border: 1px solid var(--line); margin: 0; }
.bg-cream .t-card { background: var(--sand); border-color: transparent; }
.t-card blockquote { margin: 0; flex: 1; font-size: 1rem; }
.stars { color: var(--gold); letter-spacing: .18em; font-size: .95rem; margin-bottom: 14px; }
.t-card::before { content: "“"; font-family: var(--serif); font-size: 4rem; line-height: .7; color: var(--gold); display: block; margin-bottom: 4px; }
.t-card.has-stars::before { display: none; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: clamp(40px, 6vw, 96px); counter-reset: s; }
.step { display: grid; gap: clamp(24px, 4vw, 72px); align-items: center; }
@media (min-width: 800px) { .step { grid-template-columns: 1fr 1fr; } .step:nth-child(even) .step-media { order: 2; } }
.step-num { font-family: var(--serif); font-size: clamp(3rem, 6vw, 5rem); line-height: 1; color: var(--gold); display: block; margin-bottom: 8px; }
.step .btn { margin-top: 1.4rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); text-align: center; gap: 36px 24px; }
.stat b { font-family: var(--serif); font-weight: 500; font-size: clamp(3rem, 2rem + 4vw, 5.2rem); line-height: 1; display: block; }
.stat span { font-family: var(--cond); letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; margin-top: 12px; display: block; color: var(--gold-text); }
.stats-band { background: var(--sand); border-block: 1px solid var(--line); }
@media (min-width: 700px) { .stat + .stat { border-left: 1px solid var(--line); } }
.sub-head { display: flex; align-items: center; gap: 20px; margin-bottom: clamp(24px, 3vw, 40px); }
.sub-head h2 { margin: 0; white-space: nowrap; }
.sub-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--sand-deep); color: var(--ink); padding: 18px 0; white-space: nowrap; border-block: 1px solid var(--line); }
.marquee-track { display: inline-flex; gap: 56px; animation: marquee 32s linear infinite; padding-right: 56px; }
.marquee span { font-family: var(--serif); font-size: 1.35rem; letter-spacing: .06em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- CTA banner ---------- */
.cta { position: relative; color: var(--white); text-align: center; isolation: isolate; padding-block: clamp(96px, 14vw, 200px); }
.cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(10, 7, 2, .38), rgba(10, 7, 2, .58)); z-index: -1; }
.cta h2 { max-width: 15em; margin-inline: auto; margin-bottom: 2rem; }
.cta .lead { color: rgba(255,255,255,.9); max-width: 38em; margin: 0 auto 2rem; }
.expert { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .expert { grid-template-columns: 1.1fr 1fr; } }
.expert-media { position: relative; padding: 0 0 12% 0; }
.expert-media .a { width: 74%; } .expert-media .b { position: absolute; right: 0; bottom: 0; width: 48%; border: 8px solid var(--cream); }
.expert-media .badge { right: 0; top: 0; width: clamp(96px, 22%, 150px); }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; text-decoration: none; height: 100%; }
.post-card .frame { aspect-ratio: 3 / 2; }
.post-card time, .post-meta { font-family: var(--cond); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); }
.post-card time { margin: 18px 0 8px; display: block; }
.post-card h3 { font-size: 1.5rem; line-height: 1.16; margin-bottom: 10px; transition: color .2s; }
.post-card:hover h3 { color: var(--gold-text); }
.post-card p { font-size: .95rem; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .more { margin-top: auto; padding-top: 16px; font-family: var(--cond); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.post-feature { display: grid; gap: clamp(24px, 4vw, 64px); align-items: center; text-decoration: none; margin-bottom: clamp(48px, 6vw, 88px); }
@media (min-width: 860px) { .post-feature { grid-template-columns: 1.2fr 1fr; } }
.post-feature h2 { transition: color .2s; } .post-feature:hover h2 { color: var(--gold-text); }

.article-head { text-align: center; padding-block: clamp(48px, 7vw, 96px) clamp(28px, 4vw, 48px); }
.article-head h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.5rem); line-height: 1.08; max-width: 19em; margin: 14px auto 0; }
.article-cover { aspect-ratio: 16 / 8; max-height: 620px; width: 100%; }
@media (max-width: 640px) { .article-cover { aspect-ratio: 4 / 3; } }
.prose { font-size: 1.08rem; line-height: 1.75; }
.prose > * { margin-block: 0; }
.prose > * + * { margin-top: 1.25em; }
.prose > h2 { font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem); margin-top: 2em; line-height: 1.15; }
.prose > h3 { font-size: clamp(1.35rem, 1.2rem + .6vw, 1.65rem); margin-top: 1.9em; line-height: 1.2; }
.prose ul, .prose ol { padding-left: 1.3em; } .prose li + li { margin-top: .5em; } .prose li::marker { color: var(--gold); }
.prose a { color: var(--gold-text); text-underline-offset: 3px; }
.author { display: flex; gap: 20px; align-items: center; padding: 28px; background: var(--sand); margin-top: 56px; }
.author img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; flex: none; }
.author p { font-size: .95rem; margin: 4px 0 0; color: var(--ink-soft); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border-top: 1px solid var(--line); margin-top: 56px; padding-top: 28px; }
.pager a { text-decoration: none; display: block; } .pager a:last-child { text-align: right; grid-column: 2; }
.pager small { font-family: var(--cond); letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; color: var(--gold-text); display: block; margin-bottom: 6px; }
.pager span { font-family: var(--serif); font-size: 1.25rem; line-height: 1.2; } .pager a:hover span { color: var(--gold-text); }
.crumbs { font-family: var(--cond); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); padding-top: 28px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--gold-text); } .crumbs span { margin: 0 8px; opacity: .5; }

/* ---------- Listing detail ---------- */
.ld-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; padding-block: 20px clamp(24px, 3vw, 40px); }
.ld-head h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); margin: 0; }
.ld-price { font-family: var(--serif); font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); line-height: 1; }
.gallery { display: grid; gap: 8px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 16 / 7.6; }
.gallery button { border: 0; padding: 0; cursor: zoom-in; position: relative; overflow: hidden; background: var(--sand-deep); }
.gallery button:first-child { grid-row: span 2; }
.gallery button:nth-child(n+6) { display: none; }
.gallery img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .8s var(--ease); }
.gallery button:hover img { transform: scale(1.04); }
.gallery .count { position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.72); color: #fff; font-family: var(--cond); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; padding: 8px 12px; }
.gallery--single { display: block; aspect-ratio: 16 / 8; } .gallery--single button { width: 100%; height: 100%; display: block; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; aspect-ratio: auto; } .gallery button { aspect-ratio: 4 / 3; } .gallery button:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 3 / 2; } .gallery--single { aspect-ratio: 4 / 3; } .gallery--single button { aspect-ratio: auto; } }
.ld-specs { display: flex; flex-wrap: wrap; gap: 0; border-block: 1px solid var(--line); margin-block: clamp(24px, 3vw, 40px); list-style: none; }
.ld-specs li { flex: 1 1 120px; padding: 20px 12px; text-align: center; border-right: 1px solid var(--line); }
.ld-specs li:last-child { border-right: 0; }
.ld-specs b { font-family: var(--serif); font-weight: 500; font-size: 1.8rem; display: block; line-height: 1.1; }
.ld-specs span { font-family: var(--cond); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
@media (max-width: 560px) { .ld-specs li { flex-basis: 50%; border-bottom: 1px solid var(--line); } .ld-specs li:nth-child(2n) { border-right: 0; } .ld-specs li:nth-last-child(-n+2):nth-child(odd), .ld-specs li:last-child { border-bottom: 0; } }
.ld-body { display: grid; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (min-width: 940px) { .ld-body { grid-template-columns: 1fr 380px; } .agent-card { position: sticky; top: calc(var(--header-h) + 24px); } }
.facts { width: 100%; border-collapse: collapse; margin-top: 2.4rem; font-size: .96rem; }
.facts th, .facts td { text-align: left; padding: 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { font-weight: 500; color: var(--ink-soft); width: 42%; padding-right: 16px; }
.agent-card { background: var(--sand); padding: clamp(24px, 3vw, 36px); }
.agent-top { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.agent-top img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; }
.agent-top b { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; display: block; line-height: 1.1; }
.agent-top span { font-size: .84rem; color: var(--ink-soft); }
.agent-card .btn { width: 100%; margin-top: 10px; }
.agent-card .fine { font-size: .8rem; color: var(--ink-soft); margin-top: 16px; }
.mls-note { font-size: .8rem; color: var(--ink-soft); margin-top: 40px; max-width: 70em; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(8, 6, 2, .96); display: none; align-items: center; justify-content: center; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(94vw, 1600px); max-height: 86svh; object-fit: contain; }
.lightbox button { position: absolute; border: 0; background: none; color: #fff; cursor: pointer; width: 56px; height: 56px; font-size: 2rem; line-height: 1; display: grid; place-items: center; }
.lightbox .lb-close { top: 10px; right: 10px; } .lightbox .lb-prev { left: 6px; top: 50%; margin-top: -28px; } .lightbox .lb-next { right: 6px; top: 50%; margin-top: -28px; }
.lightbox .lb-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font-family: var(--cond); letter-spacing: .14em; font-size: .78rem; }

/* ---------- Service rows ---------- */
.service { display: grid; gap: clamp(24px, 4vw, 72px); align-items: center; padding-block: clamp(28px, 4vw, 56px); border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 800px) { .service { grid-template-columns: 110px 1fr 1fr; } }
.service .n { font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.6rem); color: var(--gold); line-height: 1; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; } @media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-family: var(--cond); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
.field input, .field textarea, .field select { width: 100%; min-height: 54px; padding: 14px 16px; border: 1px solid rgba(26,18,5,.3); background: var(--white); color: var(--ink); font: inherit; font-size: 16px; border-radius: 0; appearance: none; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(197,138,19,.2); }
.form .fine { font-size: .82rem; color: var(--ink-soft); margin: 0; }
.hp { position: absolute; left: -9999px; }
.subscribe { display: flex; gap: 0; max-width: 460px; }
.subscribe input { flex: 1; min-width: 0; min-height: 54px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.35); border-right: 0; background: transparent; color: var(--white); font: inherit; font-size: 16px; border-radius: 0; }
.subscribe input::placeholder { color: rgba(255,255,255,.6); }
.subscribe input:focus { outline: 0; border-color: var(--gold); }
.contact-grid { display: grid; gap: clamp(36px, 6vw, 96px); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.15fr; } }
.contact-list { list-style: none; display: grid; gap: 22px; margin-top: 2rem; }
.contact-list small { font-family: var(--cond); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); display: block; margin-bottom: 2px; }
.contact-list a { text-decoration: none; font-family: var(--serif); font-size: 1.55rem; line-height: 1.2; } .contact-list a:hover { color: var(--gold-text); }
.contact-list address { font-style: normal; font-family: var(--serif); font-size: 1.35rem; line-height: 1.3; }
.map { width: 100%; aspect-ratio: 16 / 7; border: 0; filter: grayscale(.35) sepia(.12); min-height: 300px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--white); }
.footer-grid { display: grid; gap: 44px 32px; padding-block: clamp(56px, 7vw, 96px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.site-footer h2 { font-family: var(--cond); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--gold); margin-bottom: 1.3rem; }
.site-footer ul { list-style: none; display: grid; gap: 4px; }
.site-footer a { text-decoration: none; color: rgba(255,255,255,.88); transition: color .2s; }
.site-footer a:hover { color: var(--gold); }
.site-footer li a { display: inline-block; padding: 5px 0; }
.site-footer p { color: rgba(255,255,255,.75); font-size: .95rem; }
.f-big { font-family: var(--serif); font-size: 1.5rem; line-height: 1.25; display: block; }
.f-name .script { font-size: 3.4rem; line-height: 1; display: block; margin-bottom: 6px; transform: rotate(-3deg); transform-origin: left; }
.social { display: flex; gap: 10px; margin-top: 22px; }
.social a { width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.3); display: grid; place-items: center; transition: all .2s; }
.social a:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }
.social svg { width: 19px; height: 19px; fill: currentColor; }
.social--dark a { border-color: var(--line); color: var(--ink); }
.f-logos { display: flex; align-items: center; gap: 22px; margin-top: 26px; }
.f-logos img { height: 64px; width: auto; background: var(--white); padding: 7px; }
.insta-strip { display: grid; grid-template-columns: repeat(6, 1fr); }
.insta-strip .frame { aspect-ratio: 1; }
@media (max-width: 640px) { .insta-strip { grid-template-columns: repeat(3, 1fr); } }
.footer-bar { border-top: 1px solid rgba(255,255,255,.14); padding-block: 22px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .8rem; color: rgba(255,255,255,.6); }
.footer-bar a { color: inherit; }
.footer-legal { font-size: .74rem; color: rgba(255,255,255,.45); padding-bottom: 28px; max-width: 80em; }

/* Mobile action bar */
.action-bar { display: none; }
@media (max-width: 760px) {
  .action-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--black); padding-bottom: env(safe-area-inset-bottom); transform: translateY(100%); transition: transform .35s var(--ease); }
  .action-bar.is-on { transform: none; }
  .action-bar a { min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--white); text-decoration: none; font-family: var(--cond); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
  .action-bar a + a { background: var(--gold); }
  .action-bar svg { width: 16px; height: 16px; fill: currentColor; }
  body { padding-bottom: 54px; }
}

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .badge svg, .marquee-track { animation: none; }
  .zoom img, .gallery img, .yt img { transition: none; }
}
@media print { .site-header, .site-footer, .action-bar, .cta { display: none; } }
