/* Fan Wang | Keller Williams Thrive. Brand kit: yellow #ffde59, navy #2f3975, black #000, red #ff3131 (sparingly). */
:root {
  --navy: #2f3975;
  --navy-deep: #1f2652;
  --ink: #1d2249;
  --ink-2: #4a5079;
  --ink-3: #626889;
  --yellow: #ffde59;
  --yellow-soft: #fff4c4;
  --red: #ff3131;
  --black: #000000;
  --line: #e1e3ee;
  --line-2: #c9ccdc;
  --bg: #ffffff;
  --bg-soft: #f4f5fa;
  --destructive: #c4161c;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-control: 10px;
  --gutter: 16px;
  --max: 1200px;
  --font: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { line-height: 1.08; margin: 0 0 .5em; letter-spacing: -0.02em; font-weight: 900; color: var(--navy); }
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.on-dark :focus-visible, .cta-band :focus-visible { outline-color: var(--yellow); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm); z-index: 100; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; }
.brand { text-decoration: none; display: flex; align-items: center; gap: 14px; }
.brand img { height: 42px; width: auto; }
.brand-sub { display: none; font-size: .78rem; line-height: 1.3; color: var(--ink-3); font-weight: 600; border-left: 1px solid var(--line-2); padding-left: 14px; }
@media (min-width: 560px) { .brand-sub { display: block; } }
.nav-toggle { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1.5px solid var(--navy); border-radius: var(--radius-control); padding: 8px 14px; font: inherit; font-size: .9rem; font-weight: 700; color: var(--navy); cursor: pointer; }
.nav-toggle-bars { width: 16px; height: 10px; position: relative; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 2px solid currentColor; }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(31,38,82,.08); max-height: calc(100vh - 70px); overflow-y: auto; }
.site-nav.open { display: block; }
.site-nav > ul { list-style: none; margin: 0; padding: 8px var(--gutter) 18px; }
.site-nav li { margin: 0; }
.site-nav a, .sub-toggle { display: block; width: 100%; text-align: left; padding: 11px 0; text-decoration: none; font: inherit; font-weight: 700; font-size: 1rem; color: var(--navy); background: none; border: 0; cursor: pointer; }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--yellow); }
.sub-toggle::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.sub { list-style: none; margin: 0; padding: 0 0 6px 14px; border-left: 3px solid var(--yellow); }
.sub a { font-weight: 600; padding: 8px 0; color: var(--ink-2); }
.site-nav .nav-contact { display: inline-block !important; width: auto !important; margin-top: 8px; background: var(--navy); color: #fff !important; border-radius: var(--radius-control); padding: 10px 20px !important; }
.site-nav .nav-contact[aria-current="page"] { box-shadow: none !important; background: var(--black); }
@media (min-width: 1200px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; background: none; border: 0; box-shadow: none; max-height: none; overflow: visible; }
  .site-nav > ul { display: flex; align-items: center; gap: 2px; padding: 0; }
  .site-nav a, .sub-toggle { padding: 8px 12px; font-size: .95rem; border-radius: var(--radius-sm); }
  .site-nav > ul > li > a:hover, .sub-toggle:hover { background: var(--yellow-soft); }
  .has-sub { position: relative; }
  .sub { display: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--yellow); border-radius: var(--radius-md); box-shadow: 0 16px 32px rgba(31,38,82,.12); padding: 8px; }
  .has-sub.open .sub { display: block; }
  .sub a { padding: 9px 12px; border-radius: var(--radius-sm); }
  .sub a:hover { background: var(--yellow-soft); color: var(--navy); }
  .site-nav .nav-contact { margin: 0 0 0 10px; padding: 9px 20px !important; }
  .site-nav .nav-contact:hover { background: var(--black) !important; }
}

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 24px; border-radius: var(--radius-control); font: inherit; font-weight: 800; font-size: 1rem; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--black); }
.btn-primary[disabled], .btn-primary[aria-busy="true"] { opacity: .65; cursor: progress; }
.btn-secondary { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--yellow-soft); }
.btn-yellow { background: var(--yellow); color: var(--navy-deep); }
.btn-yellow:hover { background: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.text-link { color: var(--navy); font-weight: 800; text-decoration: none; box-shadow: inset 0 -4px 0 var(--yellow); }
.text-link:hover { box-shadow: inset 0 -1.2em 0 var(--yellow); }
.text-link::after { content: " \2192"; }
.lang-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 700; color: var(--navy); background: var(--yellow-soft); border: 1.5px solid var(--yellow); border-radius: 999px; padding: 4px 12px; }
.lang-badge [lang="zh"] { font-weight: 700; }

/* Page sections */
.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }
.section-soft { background: var(--bg-soft); }
.section-yellow { background: var(--yellow); }
.on-dark { background: var(--black); color: #e9eaf2; }
.on-dark h2, .on-dark h3 { color: #fff; }
.kicker { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); background: var(--yellow); padding: 5px 10px; border-radius: 4px; margin: 0 0 18px; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 48ch; }
@media (min-width: 768px) { .lede { font-size: 1.25rem; } }
.page-head { padding: 52px 0 32px; }
@media (min-width: 768px) { .page-head { padding: 76px 0 40px; } }
.page-head .lede { max-width: 62ch; }
.prose { max-width: 68ch; }
.prose p { color: var(--ink-2); }
.eyebrow-h { font-size: .82rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); margin: 0 0 24px; }

/* Home hero */
.hero { padding: 40px 0 64px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 22px 0 0; color: var(--ink-3); font-size: .95rem; }
.hero-meta a { color: var(--ink-2); font-weight: 600; }
.hero-photo { margin: 0; position: relative; padding: 0 18px 18px 0; }
.hero-photo::before { content: ""; position: absolute; right: 0; bottom: 0; width: 82%; height: 82%; background: var(--yellow); border-radius: var(--radius-lg); }
.hero-photo img { position: relative; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-lg); }
@media (min-width: 900px) {
  .hero { padding: 64px 0 96px; }
  .hero-grid { grid-template-columns: 1.2fr .8fr; gap: 72px; }
  .hero-photo { padding: 0 28px 28px 0; }
}
@media (max-width: 899px) { .hero-photo { max-width: 400px; } }

/* Recognition (yellow band) */
.rec-grid { list-style: none; margin: 0; padding: 0; display: grid; border-top: 2px solid var(--navy); }
.rec-grid li { padding: 22px 0; border-bottom: 1px solid rgba(47,57,117,.3); display: grid; grid-template-columns: 7.4rem 1fr; gap: 16px; align-items: baseline; }
.rec-figure { font-size: 2rem; font-weight: 900; letter-spacing: -0.03em; color: var(--navy); line-height: 1; }
.rec-label { color: var(--navy-deep); font-size: .98rem; font-weight: 500; }
.rec-label a { color: var(--navy-deep); font-weight: 700; }
@media (min-width: 900px) {
  .rec-grid { grid-template-columns: repeat(3, 1fr); border-top: 0; }
  .rec-grid li { display: block; padding: 0 28px; border-bottom: 0; border-left: 2px solid var(--navy); }
  .rec-grid li:first-child { padding-left: 0; border-left: 0; }
  .rec-figure { display: block; font-size: 2.9rem; margin-bottom: 12px; }
}

/* Sales teaser */
.teaser { display: grid; gap: 28px; align-items: end; }
.teaser h2 { margin: 0; font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.big-number { display: block; font-size: clamp(5.5rem, 17vw, 10rem); font-weight: 900; line-height: .88; letter-spacing: -0.05em; color: var(--red); margin-bottom: 10px; }
.teaser p { color: var(--ink-2); max-width: 48ch; }
@media (min-width: 900px) { .teaser { grid-template-columns: 1fr 1fr; gap: 72px; } }

/* Split layouts */
.split { display: grid; gap: 40px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; } .split-wide { grid-template-columns: 5fr 7fr; } .split-center { align-items: center; } }

/* Dark story section with full-body photo */
.story { display: grid; gap: 36px; align-items: end; }
.story-photo { margin: 0; max-width: 360px; }
.story-photo img { width: 100%; height: auto; }
.story .prose p { color: #c9cbd9; }
.story .text-link { color: #fff; box-shadow: inset 0 -4px 0 var(--yellow); }
.story .text-link:hover { color: var(--navy-deep); }
@media (min-width: 900px) { .story { grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; } .story-photo { justify-self: center; max-width: 420px; } }

/* Stats */
.stats { list-style: none; margin: 32px 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-lg); overflow: hidden; }
.stats li { background: var(--black); padding: 20px 18px; }
.stat-figure { display: block; font-size: 2rem; font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 6px; color: var(--yellow); }
.stat-label { color: #c9cbd9; font-size: .92rem; line-height: 1.45; display: block; }

/* CTA band */
.cta-band { background: var(--navy); color: #fff; }
.cta-band .wrap { display: grid; gap: 22px; align-items: center; }
.cta-band h2 { margin: 0 0 8px; color: #fff; }
.cta-band p { margin: 0; color: #d7daea; }
@media (min-width: 900px) { .cta-band .wrap { grid-template-columns: 1fr auto; } }

/* About */
.about-photo { margin: 0; }
.about-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-lg); }
@media (min-width: 900px) { .about-photo { position: sticky; top: 100px; } }
.about-intro { font-size: 1.2rem; color: var(--ink) !important; font-weight: 500; }
.rec-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.rec-list li { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.rec-list strong { color: var(--navy); display: block; font-size: 1.04rem; font-weight: 800; }
.rec-list a { color: var(--navy); }

/* Contact facts */
.contact-card { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.contact-card img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }
.contact-card strong { display: block; font-size: 1.2rem; color: var(--navy); font-weight: 900; }
.contact-card span { color: var(--ink-3); font-size: .92rem; }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.fact-label { display: block; font-size: .76rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px; }
.facts a { color: var(--navy); font-weight: 700; }

/* Cards and panels */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
@media (min-width: 768px) { .panel { padding: 36px; } }
.panel-yellow { background: var(--yellow); border-color: var(--yellow); }
.panel-yellow h2 { color: var(--navy-deep); }
.panel-yellow p, .panel-yellow a { color: var(--navy-deep); }

/* Forms */
.form-fields { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 600px) { .form-fields { grid-template-columns: 1fr 1fr; } .field { grid-column: 1 / -1; } .field.half { grid-column: auto; } }
.field label, .field legend { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; color: var(--navy); }
.field .req { color: var(--destructive); margin-left: 2px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field input[type="number"], .field input[type="date"], .field input[type="time"], .field input[type="datetime-local"], .field input[type="password"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1.5px solid var(--line-2); border-radius: var(--radius-md); padding: 12px 14px; min-height: 50px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(255,222,89,.75); }
.field [aria-invalid="true"] { border-color: var(--destructive); }
.field input[type="checkbox"], .field input[type="radio"] { width: 18px; height: 18px; accent-color: var(--navy); margin: 0 8px 0 0; vertical-align: -3px; }
.field .choice { display: block; padding: 4px 0; font-weight: 500; }
.field-help { font-size: .85rem; color: var(--ink-3); margin: 6px 0 0; }
.field-error { font-size: .88rem; color: var(--destructive); margin: 6px 0 0; font-weight: 700; }
.form-error { color: var(--destructive); font-weight: 700; margin: 16px 0 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.form-status { color: var(--ink-3); margin: 0; }
.form-thanks { padding: 8px 0; }
.form-thanks h3 { font-size: 1.5rem; }
.form-thanks p { color: var(--ink-2); }
.form-closed { color: var(--ink-2); }

/* Booking */
.booking-frame { width: 100%; height: 760px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; display: block; }
@media (max-width: 600px) { .booking-frame { height: 820px; } }

/* Sales map + table */
.map-wrap { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-soft); }
#sales-map { height: 440px; width: 100%; }
@media (min-width: 768px) { #sales-map { height: 560px; } }
.map-note { font-size: .88rem; color: var(--ink-3); margin: 12px 0 0; }
.leaflet-popup-content { font-family: var(--font); font-size: 14px; line-height: 1.45; color: var(--ink); }
.leaflet-popup-content b { font-size: 15px; color: var(--navy); }
.filters { display: flex; flex-wrap: wrap; gap: 14px 28px; margin: 0 0 20px; }
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; border: 0; padding: 0; margin: 0; }
.filter-group legend { float: left; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-right: 6px; padding: 0; }
.chip { font: inherit; font-size: .9rem; font-weight: 700; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff; color: var(--navy); cursor: pointer; }
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.sales-count { color: var(--ink-3); font-size: .95rem; margin: 0 0 12px; }
.sales-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.sales-table th { text-align: left; font-size: .76rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--navy); padding: 10px 12px; border-bottom: 2px solid var(--navy); }
.sales-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.sales-table td.num, .sales-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.sales-table td.when { color: var(--ink-2); white-space: nowrap; }
.sales-table td.addr { font-weight: 700; color: var(--ink); }
.side-tag { display: inline-block; font-size: .8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--navy); }
.side-tag.seller { background: var(--yellow); color: var(--navy-deep); }
.side-tag.both { background: var(--navy); color: #fff; }
@media (max-width: 680px) {
  .sales-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sales-table, .sales-table tbody { display: block; }
  .sales-table tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .sales-table tr[hidden] { display: none; }
  .sales-table td { border: 0; padding: 0; }
  .sales-table td.addr { grid-column: 1 / 2; grid-row: 1; }
  .sales-table td.num { grid-column: 2; grid-row: 1; }
  .sales-table td.when { grid-column: 1; grid-row: 2; font-size: .88rem; }
  .sales-table td.side { grid-column: 2; grid-row: 2; text-align: right; }
}

/* Resource lists */
.link-groups { display: grid; gap: 40px; }
@media (min-width: 900px) { .link-groups { grid-template-columns: 1fr 1fr; gap: 48px 72px; } }
.link-group h2 { font-size: 1.3rem; margin-bottom: 12px; }
.link-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.link-list li { border-bottom: 1px solid var(--line); padding: 12px 0; }
.link-list a { font-weight: 700; text-decoration: none; color: var(--navy); }
.link-list a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.link-list .note { display: block; font-size: .87rem; color: var(--ink-3); margin-top: 2px; }
.ext::after { content: " \2197"; font-size: .85em; color: var(--ink-3); }

.cards { display: grid; gap: 28px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.card { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 4px; flex: 1; border-top: 4px solid var(--yellow); }
.card-body h2 { font-size: 1.3rem; margin: 0 0 4px; }
.card-meta { color: var(--ink-2); margin: 0; }
.card-link { margin-top: auto; padding-top: 14px; }

.store-list { list-style: none; margin: 0; padding: 0; display: grid; border-top: 2px solid var(--navy); }
@media (min-width: 800px) { .store-list { grid-template-columns: 1fr 1fr; column-gap: 56px; } }
.store-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.store-list h2 { font-size: 1.15rem; margin: 0 0 4px; }
.store-list p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.store-list a { color: var(--navy); font-weight: 600; }

.book-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 800px) { .book-list { grid-template-columns: 1fr 1fr; } }
.book-list li { border: 1px solid var(--line); border-left: 6px solid var(--yellow); border-radius: var(--radius-md); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.book-list h2 { font-size: 1.3rem; margin: 0; }
.book-sub { color: var(--ink-2); margin: 0; }
.book-author { color: var(--ink-3); font-size: .92rem; margin: 0 0 10px; }
.book-list .text-link { margin-top: auto; align-self: flex-start; }

/* Mortgage calculator */
.calc { display: grid; gap: 28px; }
@media (min-width: 900px) { .calc { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; } }
.calc-inputs { display: grid; gap: 18px; }
.input-adorn { position: relative; }
.input-adorn span { position: absolute; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-weight: 700; pointer-events: none; }
.input-adorn .pre { left: 14px; }
.input-adorn .post { right: 14px; }
.input-adorn input { padding-left: 30px !important; }
.input-adorn.post-only input { padding-left: 14px !important; padding-right: 36px !important; }
.result { background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 28px; }
.result-label { font-size: .8rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--yellow); margin: 0 0 6px; }
.result-figure { font-size: clamp(2.6rem, 7vw, 3.8rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1; margin: 0 0 22px; }
.result dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; border-top: 1px solid rgba(255,255,255,.25); padding-top: 18px; }
.result dt { color: #d7daea; }
.result dd { margin: 0; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.fine-print { font-size: .87rem; color: var(--ink-3); margin-top: 16px; }

/* Social links (icons bare on the surface, each with a visible label) */
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.social li { margin: 0; }
.social a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--navy); font-weight: 700; font-size: .95rem; }
.social a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
.social svg { width: 22px; height: 22px; flex: none; }
.social-stack { flex-direction: column; gap: 12px; }
.wechat { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.wechat img { width: 112px; height: 112px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.wechat p { margin: 0; font-size: .92rem; color: var(--ink-2); }
.wechat strong { display: block; color: var(--navy); }

/* Footer */
.site-footer { border-top: 6px solid var(--yellow); background: var(--bg-soft); padding: 56px 0 40px; font-size: .95rem; color: var(--ink-2); }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.1fr; } }
.footer-logo { width: 170px; margin-bottom: 18px; }
.site-footer h2 { font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer a { color: var(--navy); text-decoration: none; font-weight: 600; }
.site-footer a:hover { text-decoration: underline; }
.footer-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-2); font-size: .82rem; color: var(--ink-3); }
.footer-legal p { margin: 0 0 4px; }

/* Story section: full-body photo stands on the bottom edge */
.section.on-dark { padding-bottom: 0; }
.story .prose { padding-bottom: 56px; }
.story-photo { justify-self: center; max-width: 300px; }
@media (min-width: 900px) { .story { align-items: end; } .story .prose { padding-bottom: 96px; align-self: center; padding-top: 0; } .story-photo { max-width: 400px; } }
.facts .social li { padding: 0; border: 0; }
.facts .wechat { margin-top: 14px; }
.store-list a[href^="tel"], .facts a[href^="tel"] { white-space: nowrap; }
@media (min-width: 1200px) {
  .has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
  .has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
}

/* Recent-sales map: numbered clusters (brand navy + yellow ring), white count */
.sales-cluster { background: transparent; }
.sales-cluster span {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; border-radius: 50%;
  background: #2f3975; color: #ffffff; font-weight: 800; font-size: 15px;
  box-shadow: 0 0 0 5px rgba(255, 222, 89, 0.85), 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Home: recognition footnote, About on dark, outline button, signature strip, contact band (11/11) */
.rec-note { margin: 22px 0 0; font-size: .92rem; color: var(--navy-deep); font-weight: 500; }
.on-dark .about-intro { color: #fff !important; }
.btn-outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy-deep); }
.strip-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.strip-head h2 { margin: 0; }
.strip-intro { color: var(--ink-2); margin: 10px 0 28px; max-width: 60ch; }
.sig-strip { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .sig-strip { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .sig-strip { grid-template-columns: repeat(4, 1fr); } }
.sig-strip a { display: block; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; height: 100%; }
.sig-strip a:hover { border-color: var(--navy); }
.sig-strip img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.sig-strip-title { display: block; padding: 14px 16px 2px; font-weight: 800; color: var(--navy); }
.sig-strip-meta { display: block; padding: 0 16px 16px; font-size: .9rem; color: var(--ink-2); }
.talk { display: grid; gap: 20px; align-items: center; }
.talk h2 { margin-bottom: 8px; }
.talk p { color: var(--ink-2); margin: 0 0 10px; }
@media (min-width: 900px) { .talk { grid-template-columns: 1fr auto; } .talk .actions { margin: 0; justify-content: flex-end; } }

/* My Development page */
.sig-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .sig-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .sig-grid { grid-template-columns: repeat(3, 1fr); } }
.sig-card { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; display: flex; flex-direction: column; scroll-margin-top: 90px; }
.sig-media { margin: 0; position: relative; }
.sig-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.sig-media figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(0,0,0,.72); color: #fff; font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.sig-placeholder { aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(135deg, var(--bg-soft) 0 14px, #eceef6 14px 28px); border-bottom: 4px solid var(--yellow); }
.sig-placeholder span { font-weight: 800; color: var(--navy); background: #fff; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line-2); }
.sig-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; border-top: 4px solid var(--yellow); }
.sig-media + .sig-body, .sig-placeholder + .sig-body { border-top: 0; }
.sig-body h2 { font-size: 1.3rem; margin: 6px 0 2px; }
.sig-scope { color: var(--ink-2); margin: 0; }
.sig-specs { color: var(--ink); font-weight: 700; margin: 0; }
.sig-sold { color: var(--navy); font-weight: 800; margin: 4px 0 0; }
.status { align-self: flex-start; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; }
.status-done { background: var(--navy); color: #fff; }
.status-soon { background: var(--yellow); color: var(--navy-deep); }
.status-wip { background: var(--bg-soft); color: var(--navy); border: 1.5px solid var(--line-2); }
.sig-disclosure { margin: 32px 0 0; font-size: .92rem; color: var(--ink-2); }

/* Core message: hero tagline, proof strip, why buyers/sellers, referral note (11/11) */
.tagline { font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 800; color: var(--navy); margin: -4px 0 14px; max-width: 46ch; line-height: 1.4; }
.proof-strip { background: var(--navy); color: #fff; }
.proof-strip ul { list-style: none; margin: 0; padding: 14px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; font-weight: 700; font-size: .92rem; }
.proof-strip li { padding: 2px 14px; }
.proof-strip li + li { border-left: 2px solid var(--yellow); }
.proof-strip a { color: #fff; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.proof-strip a:hover { color: var(--yellow); }
.proof-strip :focus-visible { outline-color: var(--yellow); }
@media (max-width: 600px) { .proof-strip ul { justify-content: flex-start; } .proof-strip li { padding: 2px 10px; } .proof-strip li + li { border-left: 0; } .proof-strip li::before { content: ""; } }
.map-section { margin-top: 28px; }
.why-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .why-grid { grid-template-columns: 1fr 1fr; } }
.why-card { border: 2px solid var(--navy); border-radius: var(--radius-lg); padding: 28px; background: #fff; }
.why-card h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 900; color: var(--navy); margin: 0 0 18px; }
.why-card dl { margin: 0; }
.why-card dt { font-weight: 800; color: var(--navy); font-size: 1.05rem; margin: 0 0 4px; padding-left: 14px; border-left: 4px solid var(--yellow); }
.why-card dd { margin: 0 0 18px; color: var(--ink-2); }
.why-card-navy { background: var(--navy); }
.why-card-navy h3, .why-card-navy dt { color: #fff; }
.why-card-navy dd { color: #d7daea; }
.why-card-navy .text-link { color: #fff; margin-right: 18px; }
.why-card-navy .text-link:hover { color: var(--navy-deep); }
.why-links { margin: 4px 0 0; }
.referral-note { color: var(--ink-2); margin: 0 0 18px; padding: 10px 14px; background: var(--yellow-soft); border-left: 4px solid var(--yellow); border-radius: 4px; }
.why-links .text-link { display: inline-block; white-space: nowrap; margin: 6px 18px 0 0; }

/* My Development: on-image labels (CA AB 723 AI-rendering disclosure) + Johnson gallery (11/11) */
.sig-media, .sig-slide { position: relative; margin: 0; }
.img-label { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); font-size: .74rem; font-weight: 700; line-height: 1.3; padding: 5px 10px; border-radius: 6px; color: #fff; }
.img-label-ai { background: rgba(0, 0, 0, .8); }
.img-label-real { background: var(--navy); }
.sig-gallery { position: relative; }
.sig-gallery + .sig-body { border-top: 0; }
.sig-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.sig-slides::-webkit-scrollbar { display: none; }
.sig-slides:focus-visible { outline: 3px solid var(--navy); outline-offset: -3px; }
.sig-slide { flex: 0 0 100%; scroll-snap-align: start; }
.sig-slide img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.gal-controls { display: flex; align-items: center; gap: 8px; padding: 10px 14px 4px; }
.gal-btn { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line-2); background: #fff; color: var(--navy); font: inherit; font-size: 1.4rem; font-weight: 800; line-height: 1; cursor: pointer; }
.gal-btn:hover { border-color: var(--navy); }
.gal-thumbs { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex: 1; justify-content: center; }
.gal-thumb { display: block; padding: 0; width: 60px; height: 40px; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: none; cursor: pointer; }
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-thumb[aria-current="true"] { border-color: var(--navy); }

/* Hero meta row: larger language badge + email (Fan 11/11: "looks small") */
.hero-meta { gap: 12px 22px; margin-top: 26px; font-size: 1.15rem; }
.hero-meta .lang-badge { font-size: 1.12rem; padding: 8px 18px; gap: 8px; border-width: 2px; }
.hero-meta a { font-size: 1.15rem; font-weight: 700; color: var(--navy); }
@media (max-width: 600px) {
  .hero-meta { font-size: 1.05rem; }
  .hero-meta .lang-badge { font-size: 1.02rem; padding: 7px 14px; }
  .hero-meta a { font-size: 1.05rem; }
}

/* Header "Book a meeting" button, visible at every width (Fan 11/11: booking was hard to find) */
.header-inner { justify-content: flex-start; gap: 12px; }
.brand { order: 0; flex: none; }
.header-book { order: 2; margin-left: auto; flex: none; min-height: 42px; padding: 8px 16px; font-size: .92rem; white-space: nowrap; }
.nav-toggle { order: 3; flex: none; }
.site-nav { order: 4; }
.book-top { padding-top: 40px; padding-bottom: 48px; }
.book-top h2 { margin-bottom: 6px; }
@media (min-width: 1200px) {
  .site-nav { order: 1; margin-left: auto; }
  .header-book { order: 2; margin-left: 0; }
}
@media (max-width: 400px) {
  .header-inner { gap: 8px; }
  .header-book { padding: 8px 12px; font-size: .88rem; }
  .nav-toggle { padding: 8px 10px; }
}

/* My Development: cards line up part by part across a row (11/11, Fan: "not aligned").
   Each card spans 7 rows of the list grid and adopts them as a subgrid: media, thumb strip,
   badge, title, scope, specs, sold. A card without a gallery keeps an empty thumb-strip slot. */
.sig-grid { grid-auto-rows: auto; }
.sig-card .sig-body { border-top: 0; }
.sig-card .status { justify-self: start; align-self: start; }
@supports (grid-template-rows: subgrid) {
  .sig-grid { row-gap: 0; }
  .sig-card { display: grid; grid-template-columns: 100%; grid-row: span 7; grid-template-rows: subgrid; row-gap: 0; margin-bottom: 28px; }
  .sig-card > .sig-gallery { grid-row: 1 / span 2; display: grid; grid-template-columns: 100%; grid-template-rows: subgrid; row-gap: 0; }
  .sig-card > .sig-gallery > .sig-slides { grid-row: 1; min-width: 0; }
  .sig-card > .sig-gallery > .gal-controls { grid-row: 2; align-self: start; }
  .sig-card > .sig-media, .sig-card > .sig-placeholder { grid-row: 1; }
  .sig-card > .sig-thumbs-slot { grid-row: 2; }
  .sig-card > .sig-body { grid-row: 3 / span 5; display: grid; grid-template-columns: 100%; grid-template-rows: subgrid; row-gap: 6px; }
  .sig-body > .status { grid-row: 1; }
  .sig-body > h2 { grid-row: 2; }
  .sig-body > .sig-scope { grid-row: 3; }
  .sig-body > .sig-specs { grid-row: 4; }
  .sig-body > .sig-sold { grid-row: 5; align-self: end; }
}
@supports not (grid-template-rows: subgrid) {
  .sig-thumbs-slot { height: 54px; flex: none; }
  .sig-sold { margin-top: auto; padding-top: 4px; }
}
@media (max-width: 699px) { .sig-thumbs-slot { height: 0; } }

/* Home "development" strip: all projects in page order, 4 across, rows aligned (11/11). */
.sig-strip-media { display: block; position: relative; }
.sig-strip-media.sig-placeholder { aspect-ratio: 3 / 2; display: flex; }
.sig-strip .sig-placeholder span { font-size: .9rem; padding: 6px 12px; }
.sig-strip .img-label { font-size: .68rem; left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 4px 8px; }
.sig-strip-meta .status { display: inline-block; }
@supports (grid-template-rows: subgrid) {
  .sig-strip { row-gap: 0; }
  .sig-strip > li { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; margin-bottom: 20px; }
  .sig-strip > li > a { grid-row: 1 / span 3; display: grid; grid-template-rows: subgrid; row-gap: 0; height: auto; }
  .sig-strip-title { align-self: start; }
  .sig-strip-meta { align-self: start; }
}

/* Website chat box (11/11): launcher on every page + panel. Approved answers only (see js/chat.js). */
:root { --chat-lift: 64px; }
.chat-launcher { position: fixed; right: 20px; bottom: 20px; z-index: 9000; display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 20px 0 16px; border: 2px solid #fff; border-radius: 999px; background: var(--navy); color: #fff; font: inherit; font-weight: 800; font-size: 1rem; cursor: pointer; box-shadow: 0 6px 20px rgba(31, 38, 82, .28); transform: translateY(calc(-1 * var(--chat-lift))); transition: transform .2s ease, opacity .15s ease, visibility .15s; }
.chat-launcher:hover { background: var(--navy-deep); }
.chat-launcher:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.chat-launcher-icon { flex: none; color: var(--yellow); }
.chat-launcher.is-tucked { opacity: 0; visibility: hidden; pointer-events: none; }
.chat-launcher[aria-busy="true"] { cursor: progress; }
@media (max-width: 599px) {
  .chat-launcher { width: 56px; height: 56px; min-height: 0; padding: 0; justify-content: center; right: 16px; }
  .chat-launcher-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .chat-launcher { transition: none; } }

.chat-panel { position: fixed; right: 20px; bottom: calc(20px + 52px + 12px + var(--chat-lift)); z-index: 10001; width: 380px; max-width: calc(100vw - 40px); height: min(620px, calc(100vh - 140px - var(--chat-lift))); display: flex; flex-direction: column; background: #fff; color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--radius-lg); box-shadow: 0 18px 50px rgba(31, 38, 82, .25); overflow: hidden; font-size: .97rem; line-height: 1.45; }
.chat-panel[hidden] { display: none; }
@media (max-width: 599px) {
  .chat-panel { left: 0; right: 0; bottom: 0; width: 100%; max-width: none; height: 88vh; height: 88dvh; border-radius: 16px 16px 0 0; border-bottom: 0; }
}
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; background: var(--navy); color: #fff; }
.chat-head-text { flex: 1; min-width: 0; }
.chat-head h2 { margin: 0; font-size: 1.08rem; line-height: 1.2; color: #fff; }
.chat-head h2:focus { outline: none; }
.chat-head h2:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.chat-sub { margin: 2px 0 0; font-size: .8rem; color: #e6e8f5; }
.chat-head-tools { display: flex; align-items: center; gap: 6px; flex: none; }
.chat-lang { min-height: 44px; max-width: 128px; padding: 6px 8px; border: 1.5px solid #fff; border-radius: var(--radius-sm); background: #fff; color: var(--ink); font: inherit; font-size: .88rem; font-weight: 600; }
.chat-close { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: var(--radius-sm); background: transparent; color: #fff; font: inherit; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.chat-close:hover { background: rgba(255, 255, 255, .14); }
.chat-lang:focus-visible, .chat-close:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.chat-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 14px 6px; display: flex; flex-direction: column; gap: 12px; }
.chat-log { display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; overflow-wrap: anywhere; }
.chat-msg p { margin: 0; }
.chat-bot { align-self: flex-start; background: var(--bg-soft); color: var(--ink); border-end-start-radius: 4px; }
.chat-user { align-self: flex-end; background: var(--navy); color: #fff; border-end-end-radius: 4px; }
.chat-note { margin-top: 6px !important; font-size: .78rem; color: var(--ink-3); }
.chat-cta { display: inline-flex; align-items: center; min-height: 44px; margin-top: 10px; padding: 8px 16px; border-radius: var(--radius-control); background: var(--yellow); color: var(--navy-deep); font-weight: 800; text-decoration: none; }
.chat-cta:hover { background: var(--navy); color: #fff; }
.chat-cta:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.chat-choose { margin: 4px 0 8px; font-size: .85rem; font-weight: 800; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-chip { min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--navy); border-radius: 999px; background: #fff; color: var(--navy); font: inherit; font-size: .92rem; font-weight: 700; line-height: 1.25; text-align: start; cursor: pointer; }
.chat-chip:hover { background: var(--yellow-soft); }
.chat-chip:focus-visible, .chat-back:focus-visible, .chat-submit:focus-visible, .chat-send:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.chat-lead { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.chat-field { display: flex; flex-direction: column; gap: 4px; }
.chat-field label { font-weight: 700; font-size: .92rem; color: var(--ink); }
.chat-req { font-weight: 600; color: var(--ink-2); font-size: .85rem; }
.chat-field input, .chat-field textarea, .chat-ask input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1.5px solid var(--line-2); border-radius: var(--radius-control); background: #fff; color: var(--ink); font: inherit; font-size: 1rem; }
.chat-field textarea { resize: vertical; min-height: 72px; }
.chat-field input:focus-visible, .chat-field textarea:focus-visible, .chat-ask input:focus-visible { outline: 3px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.chat-field [aria-invalid="true"] { border-color: var(--destructive); }
.chat-err, .chat-form-err { margin: 0; color: var(--destructive); font-size: .86rem; font-weight: 600; }
.chat-consent { margin: 0; font-size: .82rem; color: var(--ink-2); }
.chat-lead-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-submit, .chat-send { min-height: 44px; padding: 8px 18px; border: 0; border-radius: var(--radius-control); background: var(--navy); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.chat-submit:hover, .chat-send:hover { background: var(--black); }
.chat-submit[disabled] { opacity: .7; cursor: progress; }
.chat-back { min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--navy); border-radius: var(--radius-control); background: #fff; color: var(--navy); font: inherit; font-weight: 700; cursor: pointer; }
.chat-ask { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); background: #fff; }
.chat-ask input { flex: 1; min-width: 0; }
.chat-send { flex: none; }

/* Hero contact rows (Fan 11/11: "looks misaligned"): badge alone on top, then a 2-column grid of
   label | value, so the labels and the values each share one left edge and one baseline per row. */
.hero-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.hero-contact { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 6px; align-items: baseline; margin: 0; }
.hero-contact dt { margin: 0; font-size: 1.15rem; font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.hero-contact dd { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-width: 0; }
.hero-contact a, .copy-id { font-size: 1.15rem; font-weight: 700; color: var(--navy); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.copy-id { position: relative; display: inline-flex; align-items: baseline; gap: 6px; padding: 0; margin: 0; border: 0; background: none; font-family: inherit; line-height: inherit; cursor: pointer; }
.copy-id::after { content: ""; position: absolute; left: -6px; right: -6px; top: 50%; height: 44px; transform: translateY(-50%); }
.copy-id:hover { color: var(--black); }
.copy-id:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 2px; }
.copy-icon { flex: none; align-self: center; opacity: .8; }
.copy-status { font-size: .9rem; font-weight: 700; color: var(--navy); }
.copy-status:empty { display: none; }
@media (max-width: 600px) {
  .hero-contact dt, .hero-contact a, .copy-id { font-size: 1.05rem; }
}
.wechat-id { display: block; margin-top: 4px; font-weight: 700; color: var(--navy); }

/* Recent Sales map: bigger zoom buttons on touch screens (Fan 11/11: "This cannot zoom in") */
#sales-map .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; font-size: 24px; }
#sales-map .leaflet-control-zoom { border-width: 2px; }

/* Chat: AI replies (Worker), typing indicator, AI note under the input (11/11) */
.chat-ai p { white-space: pre-line; }
.chat-link { color: var(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.chat-typing { display: inline-flex; gap: 5px; align-items: center; padding: 14px 16px; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); opacity: .35; animation: chat-dot 1.2s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes chat-dot { 0%, 80%, 100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .chat-typing span { animation: none; opacity: .7; } }
.chat-send[disabled] { opacity: .6; cursor: progress; }
.chat-ai-note { margin: 0; padding: 0 12px 10px; font-size: .78rem; line-height: 1.35; color: var(--ink-3); background: #fff; }
.chat-ask { padding-bottom: 6px; }

/* About photo (Fan 11/11: the person "drowned" in the black background): the portrait sits in a light
   rounded card with the brand-yellow offset block behind it, like the hero. Section keeps its black. */
.section.on-dark { padding-bottom: 64px; }
@media (min-width: 768px) { .section.on-dark { padding-bottom: 96px; } }
.story .prose { padding-bottom: 0; }
.story-photo { position: relative; margin: 0; justify-self: center; width: 100%; max-width: 320px; padding: 0 16px 16px 0; }
.story-photo::before { content: ""; position: absolute; right: 0; bottom: 0; width: 82%; height: 82%; background: var(--yellow); border-radius: var(--radius-lg); }
.story-card { position: relative; background: #fbf8f1; padding: 10px; border-radius: var(--radius-lg); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.story-card img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: center bottom; border-radius: 12px; }
@media (min-width: 900px) {
  .story { align-items: center; }
  .story .prose { padding-bottom: 0; }
  .story-photo { max-width: 420px; padding: 0 24px 24px 0; }
}

/* Hero H1 on two deliberate lines (Fan 11/11): "Fan Wang," / "Top 1% Realtor" */
.hero-title .h1-line { display: block; white-space: nowrap; }

/* Hero value points (Fan 11/12) */
.hero-points { list-style: none; margin: -4px 0 10px; padding: 0; display: grid; gap: 6px; }
.hero-points li { position: relative; padding-left: 30px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 800; color: var(--navy); line-height: 1.35; }
.hero-points li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%232f3975' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 11-11-1.4-1.4z'/%3E%3C/svg%3E") center / 14px no-repeat; }
.hero-points + .tagline { font-weight: 700; font-size: clamp(.98rem, 1.3vw, 1.08rem); margin-top: 0; }
