:root {
  --dark: #20221f;
  --ink: #fbf6ea;
  --accent: #d9b982;
  --paper: #f8f3e9;
  --text: #262823;
  --muted: #59594e;
  --rule: #dcd2bd;
  --button-text: #201e17;
  --accent-text: #79592b;
  --heading: "Playfair Display", Georgia, serif;
}

.skip-link { position: fixed; inset: 10px auto auto 10px; z-index: 50; padding: 12px; background: white; color: #1c1c19; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid #a4712d; outline-offset: 4px; }
.demo-shell { padding-inline: max(20px, 5%); }
.eyebrow { margin: 0; color: inherit; font-size: .72rem; letter-spacing: .19em; font-weight: 700; text-transform: uppercase; }
.concept-note { color: var(--muted); margin: 0; font-size: .84rem; line-height: 1.5; }
.section-space { padding-block: clamp(54px, 8vw, 105px); }
h2 { margin: 0; font: 500 clamp(2.2rem, 4.5vw, 3.85rem)/1.06 var(--heading); letter-spacing: -.04em; }
h3 { font: 600 clamp(1.2rem, 2.2vw, 1.55rem)/1.2 var(--heading); letter-spacing: -.026em; }

.agent-header { background: var(--dark); color: var(--ink); border-bottom: 1px solid #d9b98233; }
.agent-header .demo-nav { min-height: 74px; gap: 12px; }
.agent-header .demo-links { top: 100%; gap: 12px; z-index: 4; }
.agent-header .demo-links a:not(.demo-book):hover { color: var(--accent); }
.agent-brand { display: grid; gap: 1px; }
.agent-name { font: 600 clamp(1.35rem, 3vw, 1.88rem)/1.1 var(--heading); letter-spacing: -.035em; }
.agent-office { color: var(--accent); text-transform: uppercase; font-size: .63rem; letter-spacing: .17em; font-weight: 700; }
.agent-header .mobile-trigger { min-width: 44px; min-height: 44px; font-size: 1.05rem; }
.agent-header .demo-book { padding: 10px 14px; }
.agent-hero { position: relative; isolation: isolate; display: flex; align-items: end; color: var(--ink); background: #272823; }
.hero-house, .agent-hero::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-house { object-fit: cover; object-position: 52% 44%; }
.agent-hero::after { content: ""; background: linear-gradient(180deg, #171915d6, #17191584 83%, #171915aa); }
.hero-layout { display: grid; gap: 28px; width: 100%; align-items: end; padding-block: clamp(50px, 8vw, 115px); }
.hero-message { min-width: 0; }
.hero-message .eyebrow { color: #f0cf98; }
.hero-message h1 { max-width: 780px; margin: 14px 0 20px; font: 500 clamp(2.7rem, 7.1vw, 6.35rem)/.99 var(--heading); letter-spacing: -.049em; text-wrap: balance; }
.hero-message > p:not(.eyebrow) { max-width: 36rem; font-size: clamp(.99rem, 1.6vw, 1.15rem); color: #f7eee0; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 25px; }
.action { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 11px 18px; border: 1px solid transparent; border-radius: 2px; font-size: .86rem; font-weight: 700; line-height: 1.28; cursor: pointer; }
.action-gold { background: var(--accent); color: var(--button-text); }
.action-gold:hover { background: #efd09b; }
.action-outline { color: var(--ink); border-color: #f0d8acaa; background: #16171365; }
.action-outline:hover { background: #20221f; }
.action-ink { border-color: #65573e; color: var(--text); }
.action-ink:hover { background: #e9dfc9; }
.hero-profile { margin: 0; width: min(54%, 205px); border: 1px solid #d9b982bf; }
.hero-profile img, .meet-profile img { display: block; width: 100%; object-fit: cover; object-position: 50% 34%; }
.hero-profile img { height: auto; aspect-ratio: 5 / 6; }

.agent-stats { padding-block: 24px; background: #252721; color: var(--ink); border-bottom: 1px solid #d9b98226; }
.stat-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; }
.stat-list li { display: grid; padding: 13px 6px; text-align: center; }
.stat-list li:nth-child(odd) { border-right: 1px solid #d9b98244; }
.stat-list strong { color: #e6c68f; font: 500 clamp(1.65rem, 3.3vw, 2.5rem)/1.1 var(--heading); }
.stat-list span { margin-top: 4px; font-size: .85rem; }
.agent-stats .concept-note { margin-top: 15px; color: #d9cebc; text-align: center; }

.featured { background: var(--paper); }
.section-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px 20px; margin-bottom: clamp(22px, 3vw, 38px); }
.listing-grid, .sale-grid, .guidance-grid, .quote-grid { display: grid; gap: clamp(16px, 2.4vw, 27px); }
.listing { overflow: hidden; border: 1px solid var(--rule); background: #fffcf6; }
.listing > img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; background: #e3ddcf; }
.listing-body { padding: clamp(16px, 2.6vw, 30px); }
.listing-location { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; column-gap: 10px; }
.listing-location .eyebrow { color: var(--accent-text); }
.listing-price { margin: 0; font-weight: 700; font-size: 1rem; }
.listing h3 { margin: 11px 0 8px; }
.listing-specs { display: flex; flex-wrap: wrap; gap: 5px 14px; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: .87rem; }
.detail-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 8px; color: #583d15; font-weight: 700; font-size: .86rem; text-decoration: underline; text-underline-offset: 4px; }

.sold { background: #eae1d0; }
.sale { border-bottom: 1px solid #cbbda4; }
.sale-photo { position: relative; }
.sale-photo img { display: block; width: 100%; height: auto; aspect-ratio: 12 / 7; object-fit: cover; background: #d8cdb8; }
.sale-status { position: absolute; top: 12px; left: 12px; padding: 5px 10px; color: var(--ink); background: var(--dark); font-size: .69rem; letter-spacing: .13em; font-weight: 700; }
.sale-meta { display: grid; gap: 4px; padding: 15px 0; }
.sale-meta h3, .sale-meta p { margin: 0; }
.sale-meta p { color: #614a2a; font-size: .88rem; }

.meet { background: #272923; color: var(--ink); }
.meet-layout, .valuation-layout { display: grid; gap: clamp(24px, 6vw, 84px); align-items: center; }
.meet-profile { margin: 0; max-width: 440px; border: 1px solid #d9b98277; }
.meet-profile img { height: auto; aspect-ratio: 4 / 4.35; }
.meet-copy p { color: #e5ddce; margin: 18px 0 0; max-width: 37rem; }
.guidance { background: var(--paper); }
.guidance-card { padding: clamp(20px, 3.8vw, 44px); border: 1px solid #cebd9d; background: #fefaf0; }
.guidance-card h2 { font-size: clamp(1.95rem, 4vw, 2.9rem); }
.guidance-card ul { padding-left: 1.2rem; margin: 21px 0; color: #4e4c42; }
.guidance-card li + li { margin-top: 7px; }

.testimonials { background: #f0e8d8; }
.quote-grid figure { margin: 0; padding: clamp(16px, 2.4vw, 27px) 0; border-top: 1px solid #b79d71; }
.quote-grid blockquote { margin: 0 0 15px; font: 500 clamp(1.17rem, 2.25vw, 1.55rem)/1.42 var(--heading); }
.quote-grid figcaption { color: #3f3525; font-size: .87rem; font-weight: 700; }
.quote-grid figcaption span { color: var(--muted); font-weight: 500; }

.valuation { background: #252721; color: var(--ink); }
.valuation-layout { align-items: start; }
.valuation-layout > div > p { max-width: 31rem; color: #e7dcc8; }
.valuation form { display: grid; gap: 8px; padding: clamp(17px, 2.7vw, 32px); background: #303128; border: 1px solid #d9b98258; }
.valuation form label { color: #fff6e5; font-size: .9rem; font-weight: 650; }
.valuation form input { width: 100%; min-height: 46px; padding: 9px 10px; margin-bottom: 7px; background: #fbf8ef; color: #28271e; border: 1px solid #c6b99d; border-radius: 2px; font: inherit; }
.valuation .action { justify-self: start; }
.valuation .action:disabled { opacity: .55; cursor: not-allowed; }
.valuation form .concept-note { margin-top: 5px; color: #ddd1b9; }
.agent-footer { padding-block: 41px 25px; background: #191a17; color: #f5ecd9; }
.footer-grid { display: grid; gap: 17px; }
.footer-grid h2 { font-size: clamp(1.95rem, 4.3vw, 2.85rem); }
.footer-grid p { margin: 7px 0; }
.footer-grid a { color: #e6c68f; text-decoration: underline; text-underline-offset: 4px; }
.placeholder-phone { color: #e6c68f; font-weight: 700; }
.disclosure { color: #d7cbb4; max-width: 70ch; font-size: .83rem; padding-top: 20px; margin: 24px 0 0; border-top: 1px solid #d9b98240; }
.demo-popover { width: min(420px, calc(100% - 36px)); color: var(--text); background: #fff9ed; border: 1px solid #b99b6d; }
.demo-popover button { color: var(--ink); background: var(--dark); min-height: 44px; }

@media (min-width: 650px) {
  .listing-grid, .guidance-grid, .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat-list li + li { border-left: 1px solid #d9b98244; }
  .stat-list li:nth-child(odd) { border-right: 0; }
}
@media (min-width: 801px) {
  .agent-header .demo-nav { min-height: 86px; }
  .agent-header .demo-links { gap: 22px; }
  .agent-hero { min-height: min(680px, 75vh); }
  .agent-hero::after { background: linear-gradient(90deg, #141511ed 0%, #171913bf 44%, #1c1d14aa 72%, #191b1463 100%); }
  .hero-layout { grid-template-columns: minmax(0, 1fr) minmax(220px, 27%); gap: 45px; }
  .hero-profile { width: 100%; max-width: 315px; justify-self: end; }
  .sale-grid, .quote-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .meet-layout, .valuation-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .meet-profile { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
