/* Lisa Ng — "Modern Clean" light theme
   Design language: near-black on white, oversized bold sans-serif,
   generous whitespace, one accent, alternating text/image rhythm.
   Legibility first — a large share of visitors are 45-65 on phones. */

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

:root {
    --ink:        #10131a;   /* headlines */
    --ink-soft:   #4a5261;   /* body */
    --ink-faint:  #8b93a3;   /* meta */
    --paper:      #ffffff;
    --paper-alt:  #f5f6f8;   /* section banding */
    --line:       #e4e7ec;
    --accent:     #111318;   /* near-black: monochrome, modern, timeless */
    --accent-dk:  #000000;
    --accent-tint:#f0f1f4;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(16,19,26,.04), 0 8px 28px rgba(16,19,26,.07);
    --shadow-lg: 0 2px 4px rgba(16,19,26,.04), 0 20px 50px rgba(16,19,26,.12);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font); font-size: 17px; line-height: 1.6;
    color: var(--ink-soft); background: var(--paper);
    overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
.hidden { display: none !important; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }

/* ---------- Type scale: big, tight, confident ---------- */
h1, h2, h3 { color: var(--ink); letter-spacing: -.025em; line-height: 1.08; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); letter-spacing: -.028em; }
h3 { font-size: 1.18rem; letter-spacing: -.015em; line-height: 1.3; }
.lede { font-size: clamp(1.06rem, 1.7vw, 1.32rem); color: var(--ink-soft); }
.eyebrow {
    display: inline-block; font-size: .76rem; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint);
    margin-bottom: 18px;
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.75,.25,1); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(18px); }
.reveal-stagger.in-view > * { animation: up .7s cubic-bezier(.2,.75,.25,1) both; animation-delay: calc(var(--i,0) * 90ms); }
@keyframes up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 15px 28px; border-radius: 100px; border: 0; cursor: pointer;
    font-family: var(--font); font-size: 1rem; font-weight: 600; text-decoration: none;
    transition: background .2s, transform .14s, box-shadow .2s, color .2s;
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(16,19,26,.22); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dk); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(17,19,24,.26); }
.btn-line { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-line:hover { border-color: var(--ink); }
.btn svg { width: 17px; height: 17px; }
.btn-full { width: 100%; justify-content: center; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 0; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand svg { width: 30px; height: 30px; color: var(--accent); flex: none; }
.brand b { display: block; color: var(--ink); font-size: 1.1rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.brand span { display: block; color: var(--ink-faint); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-phone { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
@media (max-width: 620px) { .nav-phone { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero h1 .rot { color: var(--accent); display: inline-block; }
.hero .lede { margin-bottom: 30px; max-width: 40ch; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-meta div { font-size: .9rem; color: var(--ink-soft); }
.hero-meta b { color: var(--ink); font-weight: 700; }
.hero-shot { position: relative; }
.hero-shot img { width: 100%; border-radius: 18px; box-shadow: var(--shadow-lg); }
.hero-shot::after {
    content: ""; position: absolute; inset: auto -18px -18px auto; width: 62%; height: 62%;
    background: var(--accent-tint); border-radius: 18px; z-index: -1;
}
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero .lede { max-width: none; }
    .hero-shot { order: -1; max-width: 460px; margin: 0 auto; }
}

/* ---------- Section rhythm ---------- */
section { padding: clamp(56px, 9vw, 116px) 0; }
.band { background: var(--paper-alt); }
.band-dark { background: var(--ink); color: rgba(255,255,255,.72); }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .eyebrow { color: rgba(255,255,255,.55); }
.head { max-width: 720px; margin-bottom: clamp(34px, 5vw, 60px); }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.head h2 { margin-bottom: 14px; }

/* ---------- Alternating feature rows ---------- */
.row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 76px); align-items: center; }
.row + .row { margin-top: clamp(52px, 8vw, 104px); }
.row.flip .row-media { order: -1; }
.row-media img { border-radius: 18px; box-shadow: var(--shadow); }
.row-text h2 { margin-bottom: 16px; }
.row-text p { margin-bottom: 14px; }
.checks { list-style: none; margin-top: 20px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .98rem; }
.checks li:last-child { border-bottom: 0; }
.checks svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: 2px; }
@media (max-width: 860px) { .row { grid-template-columns: 1fr; } .row.flip .row-media { order: 0; } }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 26px); }
.card {
    background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
    padding: 32px 28px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.card .ico {
    width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-tint); color: var(--accent);
}
.card .ico svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 9px; }
.card p { font-size: .96rem; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3.4vw, 44px); counter-reset: st; }
.st { position: relative; }
.st b {
    counter-increment: st; display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%; margin-bottom: 16px;
    background: var(--ink); color: #fff; font-size: .95rem; font-weight: 700;
}
.st b::before { content: counter(st); }
.st h3 { margin-bottom: 8px; }
.st p { font-size: .96rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* ---------- Form ---------- */
.formcard { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 3.4vw, 40px); box-shadow: var(--shadow-lg); }
.formcard h2 { font-size: 1.6rem; margin-bottom: 6px; }
.formcard .kick { color: var(--ink-faint); font-size: .9rem; margin-bottom: 24px; }
.hp { position: absolute; left: -9999px; }
.fg { margin-bottom: 16px; }
.fg label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.fg input, .fg select {
    width: 100%; padding: 13px 15px; min-height: 50px;
    font-family: var(--font); font-size: 1rem; color: var(--ink);
    background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius);
    transition: border-color .18s, box-shadow .18s;
}
.fg input:focus, .fg select:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.fg input::placeholder { color: #aeb5c1; }
.fr { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.consent { display: flex; gap: 11px; align-items: flex-start; font-size: .8rem; color: var(--ink-faint); margin: 6px 0 18px; cursor: pointer; line-height: 1.5; }
.consent input { width: 19px; height: 19px; min-height: 0; flex: none; margin-top: 2px; accent-color: var(--accent); }
.fine { font-size: .74rem; color: var(--ink-faint); text-align: center; margin-top: 15px; line-height: 1.55; }
.fine a { color: var(--accent); }
.err { margin-top: 12px; color: #c0392b; font-size: .9rem; text-align: center; }
.done { text-align: center; padding: 44px 16px; }
.done .tick { width: 60px; height: 60px; margin: 0 auto 20px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
.done h3 { font-size: 1.55rem; margin-bottom: 12px; }
.done .sig { color: var(--ink-faint); margin-top: 14px; }
@media (max-width: 380px) { .fr { grid-template-columns: 1fr; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; text-align: center; }
.stats .n { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 700; color: #fff; letter-spacing: -.03em; line-height: 1; margin-bottom: 8px; }
.stats .l { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); }
@media (max-width: 620px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- Reviews ---------- */
.revs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(16px, 2.2vw, 24px); }
.rev { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 28px 26px; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.rev:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.rev .stars { color: #e8a33d; font-size: .95rem; letter-spacing: 2px; margin-bottom: 14px; }
.rev p { font-size: .97rem; color: var(--ink-soft); flex: 1; margin-bottom: 18px; }
.rev .who { font-size: .82rem; color: var(--ink-faint); font-weight: 600; padding-top: 14px; border-top: 1px solid var(--line); }

/* ---------- Photo strip ---------- */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; padding: 0; }
.strip figure { position: relative; aspect-ratio: 1/1; overflow: hidden; }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.3,1); }
.strip figure:hover img { transform: scale(1.06); }
@media (max-width: 700px) { .strip { grid-auto-flow: row; grid-template-columns: 1fr 1fr; } .strip figure:nth-child(5) { display: none; } }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta .face { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: top center; margin: 0 auto 22px; border: 3px solid rgba(255,255,255,.16); }
.cta h2 { margin-bottom: 14px; }
.cta p { margin-bottom: 28px; }
.cta .alt { display: block; margin-top: 20px; font-size: .92rem; color: rgba(255,255,255,.6); }
.cta .alt a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.foot { background: var(--paper-alt); padding: 52px 0 40px; border-top: 1px solid var(--line); }
.foot-in { text-align: center; }
.foot svg { width: 30px; height: 30px; color: var(--accent); margin: 0 auto 18px; }
.foot p { font-size: .88rem; color: var(--ink-soft); margin-bottom: 5px; }
.foot p strong { color: var(--ink); }
.foot a { color: var(--ink-soft); }
.foot-links { margin: 20px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.foot-links a { font-size: .88rem; text-decoration: none; font-weight: 500; }
.foot-links a:hover { color: var(--accent); }
.foot-legal { font-size: .76rem; color: var(--ink-faint); line-height: 1.7; margin-top: 16px; }
.eho { border: 1px solid currentColor; border-radius: 2px; padding: 0 3px; font-size: .82em; }

/* ---------- Sound toggle ---------- */
.sound-toggle {
    position: fixed; right: 18px; bottom: 18px; z-index: 200;
    display: inline-flex; align-items: center; gap: 9px;
    padding: 10px 16px 10px 13px; border-radius: 100px; cursor: pointer;
    background: rgba(255,255,255,.94); border: 1px solid var(--line);
    color: var(--ink); font-family: var(--font);
    font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
    backdrop-filter: blur(10px); box-shadow: var(--shadow);
    transition: border-color .2s, transform .16s;
}
.sound-toggle:hover { border-color: var(--accent); transform: translateY(-2px); }
.sound-bars { display: flex; align-items: flex-end; gap: 2.5px; height: 13px; }
.sound-bars i { display: block; width: 2.5px; height: 3px; border-radius: 2px; background: var(--accent); transition: height .3s; }
.sound-toggle.playing .sound-bars i { animation: eq 1.15s ease-in-out infinite; }
.sound-toggle.playing .sound-bars i:nth-child(2) { animation-delay: .18s; }
.sound-toggle.playing .sound-bars i:nth-child(3) { animation-delay: .36s; }
.sound-toggle.playing .sound-bars i:nth-child(4) { animation-delay: .54s; }
@keyframes eq { 0%,100% { height: 3px; } 50% { height: 13px; } }
@media (max-width: 600px) { .sound-toggle { right: 12px; bottom: 12px; } .sound-label { display: none; } }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--accent); z-index: 999; transition: width .1s linear; }

/* ---------- A11y / motion ---------- */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   Headline: three fixed lines so the rotating city can never
   reflow the sentence, change the headline height, or shift the
   photo. The city sits OUT of layout flow inside a fixed-height
   line — its width is invisible to the layout.
   ============================================================ */
.hero h1 .hl { display: block; }
.rot-line { position: relative; height: 1.06em; overflow: visible; }
.rot-slot { position: absolute; left: 0; right: 0; top: 0; text-align: inherit; line-height: 1.06; }
.rot {
    display: inline-block; white-space: nowrap;
    color: var(--accent); letter-spacing: -.025em;
    transition: opacity .32s cubic-bezier(.3,.7,.3,1), transform .32s cubic-bezier(.3,.7,.3,1);
}
.rot.swap-out { opacity: 0; transform: translateY(-34%); }
.rot.swap-in  { opacity: 0; transform: translateY(34%); }

/* Photo can never move: the hero column reserves its own height */
@media (min-width: 901px) {
    .hero-shot img { aspect-ratio: 10 / 11; object-fit: cover; object-position: 50% 12%; }
}
@media (prefers-reduced-motion: reduce) { .rot { transition: none !important; } }
/* ---------- Motto band ---------- */
.motto-band { padding: clamp(52px, 8vw, 96px) 0; background: var(--paper); text-align: center; position: relative; }
.motto-band::before, .motto-band::after {
    content: ""; position: absolute; left: 50%; transform: translateX(-50%);
    width: min(420px, 60%); height: 1px; background: var(--line);
}
.motto-band::before { top: 0; }
.motto-band::after  { bottom: 0; }
.motto-quote {
    font-size: clamp(1.65rem, 4.2vw, 3rem); font-weight: 700; color: var(--ink);
    letter-spacing: -.03em; line-height: 1.14; margin: 8px 0 18px; text-wrap: balance;
}
.motto-em { color: var(--ink-faint); }
.motto-cite { font-style: normal; font-size: .92rem; color: var(--ink-faint); letter-spacing: .02em; }

/* ---------- Brand mark sizing (LN-in-house monogram) ---------- */
.brand svg { width: 34px; height: 34px; }
.foot svg  { width: 36px; height: 36px; }

/* ---------- Interior page head ---------- */
.page-head { padding: clamp(44px, 7vw, 84px) 0 clamp(28px, 4vw, 44px); }
.page-head h1 { margin-bottom: 16px; }
.page-head .lede { max-width: 56ch; }

/* ---------- Calculator ---------- */
.calc-wrap { padding-top: 0; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.calc-inputs h2 { font-size: 1.4rem; margin-bottom: 22px; }
.calc-inputs .fg { margin-bottom: 22px; }
.calc-inputs label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.calc-inputs output { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }
.hint { font-size: .78rem; color: var(--ink-faint); margin-top: 7px; line-height: 1.5; }

.money { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .18s, box-shadow .18s; }
.money:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.money span { display: flex; align-items: center; padding: 0 4px 0 15px; color: var(--ink-faint); font-weight: 600; }
.money input { flex: 1; border: 0; padding: 13px 15px 13px 4px; min-height: 50px; font-family: var(--font); font-size: 1.05rem; font-weight: 600; color: var(--ink); background: transparent; font-variant-numeric: tabular-nums; }
.money input:focus { outline: 0; }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 3px; background: var(--line); margin-top: 12px; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 1px 5px rgba(16,19,26,.3); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 1px 5px rgba(16,19,26,.3); cursor: pointer; }
input[type="range"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.calc-result { position: sticky; top: 96px; }
.result-card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-lg); }
.result-head { text-align: center; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.result-head > span { font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.result-big { font-size: clamp(2.1rem, 5.2vw, 3.1rem); font-weight: 700; color: var(--ink); letter-spacing: -.035em; line-height: 1.05; margin: 10px 0 6px; font-variant-numeric: tabular-nums; }
.result-big.negative { color: #c0392b; }
.result-sub { font-size: .88rem; color: var(--ink-faint); }

.ledger { list-style: none; margin-bottom: 24px; }
.ledger li { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 9px 0; font-size: .93rem; border-bottom: 1px solid var(--line); }
.ledger li:last-child { border-bottom: 0; }
.ledger li b { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); white-space: nowrap; }
.ledger li i { font-style: normal; color: var(--ink-faint); font-size: .84em; }
.ledger li.neg b { color: var(--ink-soft); }
.ledger li.rule { border-top: 1px solid var(--line); margin-top: 4px; font-weight: 600; }
.ledger li.rule span, .ledger li.rule b { color: var(--ink); }
.ledger li.total { border-top: 2px solid var(--ink); margin-top: 8px; padding-top: 14px; font-size: 1.06rem; font-weight: 700; }
.ledger li.total span, .ledger li.total b { color: var(--ink); }

@media (max-width: 900px) {
    .calc-grid { grid-template-columns: 1fr; }
    .calc-result { position: static; }
}

/* ---------- Market report subscribe ---------- */
.sub-band { background: var(--paper-alt); }
.sub-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
.sub-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.sub-form input[type="email"] { flex: 1 1 220px; padding: 14px 16px; min-height: 52px; font-family: var(--font); font-size: 1rem; border: 1.5px solid var(--line); border-radius: 100px; background: #fff; color: var(--ink); }
.sub-form input[type="email"]:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.sub-form .btn { flex: 0 0 auto; }
.sub-note { font-size: .78rem; color: var(--ink-faint); margin-top: 12px; }
.sub-ok { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); font-size: .93rem; color: var(--ink); }
.sub-list { list-style: none; }
.sub-list li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .96rem; }
.sub-list li:last-child { border-bottom: 0; }
.sub-list svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: 2px; }
@media (max-width: 860px) { .sub-grid { grid-template-columns: 1fr; } }

/* ---------- Nav links ---------- */
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a { display: block; padding: 9px 13px; border-radius: 8px; color: var(--ink-soft); text-decoration: none; font-size: .92rem; font-weight: 500; transition: background .18s, color .18s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--paper-alt); color: var(--ink); }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: 8px; padding: 9px 11px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 20px; height: 20px; display: block; }
@media (max-width: 940px) {
    .nav-toggle { display: block; }
    .nav-links {
        position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
        background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 16px; gap: 2px; display: none;
        box-shadow: var(--shadow);
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 13px 12px; font-size: 1rem; }
}

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

/* Turnstile widget spacing */
.cf-turnstile { margin: 4px 0 16px; min-height: 65px; }
.sub-form .cf-turnstile { flex: 1 1 100%; margin: 4px 0 0; }

/* Lisa's LN house logo (her approved artwork, watermark removed) */
.brand-mark { width: 40px; height: auto; flex: none; }
.foot .brand-mark { width: 46px; margin: 0 auto 18px; }
@media (max-width: 600px) { .brand-mark { width: 34px; } }

/* ---------- Recent closings marquee ---------- */
.sold-section { padding: clamp(56px, 8vw, 100px) 0; overflow: hidden; }
.sold-marquee { position: relative; overflow: hidden; padding: 4px 0 8px; }
.sold-marquee::before, .sold-marquee::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 3; pointer-events: none;
}
.sold-marquee::before { left: 0;  background: linear-gradient(90deg,  var(--paper), transparent); }
.sold-marquee::after  { right: 0; background: linear-gradient(270deg, var(--paper), transparent); }

.sold-track {
    display: flex; gap: 22px; width: max-content;
    animation: soldScroll 46s linear infinite;
}
.sold-marquee:hover .sold-track,
.sold-marquee:focus-within .sold-track { animation-play-state: paused; }
@keyframes soldScroll { to { transform: translateX(-50%); } }

.sold-card {
    flex: 0 0 auto; width: clamp(250px, 30vw, 320px);
    background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
    box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
}
.sold-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.sold-photo { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--paper-alt); }
.sold-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.3,1); }
.sold-card:hover .sold-photo img { transform: scale(1.06); }

/* Until Bill's own exterior photos land: a clean architectural placeholder,
   deliberately abstract so it never implies a specific property. */
.sold-photo.no-photo {
    background:
        linear-gradient(160deg, #1d2129 0%, #2c313c 55%, #3a4150 100%);
}
.sold-photo.no-photo::before {
    content: ""; position: absolute; inset: 0; opacity: .5;
    background-image:
        linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 26px 26px;
}
.sold-photo.no-photo::after {
    content: "SOLD"; position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.34); font-size: 1.15rem; font-weight: 700; letter-spacing: .3em;
}

.sold-badge {
    position: absolute; left: 12px; top: 12px; z-index: 2;
    background: rgba(255,255,255,.94); color: var(--ink);
    font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    padding: 6px 10px; border-radius: 100px; backdrop-filter: blur(6px);
}
.sold-body { padding: 18px 20px 20px; }
.sold-price { font-size: 1.45rem; font-weight: 700; color: var(--ink); letter-spacing: -.03em; line-height: 1; margin-bottom: 7px; }
.sold-city { font-size: .96rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 3px; }
.sold-specs { font-size: .85rem; color: var(--ink-faint); }
.sold-note { text-align: center; font-size: .8rem; color: var(--ink-faint); margin-top: 26px; max-width: 64ch; margin-left: auto; margin-right: auto; line-height: 1.6; }

@media (prefers-reduced-motion: reduce) {
    .sold-track { animation: none; overflow-x: auto; width: 100%; padding-bottom: 10px; }
    .sold-marquee::before, .sold-marquee::after { display: none; }
}

/* Legal / prose pages */
.legal-body { padding-top: 0; }
.legal-body h2 { font-size: 1.2rem; margin: 30px 0 10px; }
.legal-body p, .legal-body li { font-size: .97rem; margin-bottom: 11px; }
.legal-body ul { padding-left: 22px; margin-bottom: 8px; }
.legal-body strong { color: var(--ink); }
.back-link { margin-top: 34px; }
.back-link a { color: var(--accent); font-weight: 600; text-decoration: none; }
.back-link a:hover { text-decoration: underline; }

/* lease card variant */
.sold-price .per { font-size: .62em; font-weight: 600; color: var(--ink-faint); letter-spacing: 0; }
.sold-photo.no-photo.is-lease::after { content: 'LEASED'; }
.sold-photo.no-photo.is-lease { background: linear-gradient(160deg, #23282f 0%, #333a45 55%, #444c5a 100%); }

/* ============================================================
   Closings cards, v2 — typographic instead of a fake photo box.
   A dark empty rectangle reads as a broken image; a card that was
   never meant to hold a photo reads as design. Cards with a real
   photo get .has-photo and show it.
   ============================================================ */

.sold-card {
    flex: 0 0 auto; width: clamp(240px, 28vw, 300px);
    background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
    overflow: hidden; box-shadow: var(--shadow-sm);
    transition: transform .25s, box-shadow .25s, border-color .25s;
    display: flex; flex-direction: column;
}
.sold-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #d3d8e0; }

/* --- no-photo: a clean typographic panel --- */
.sold-photo.no-photo {
    position: relative; aspect-ratio: auto; min-height: 0;
    background: var(--paper-alt);
    border-bottom: 1px solid var(--line);
    padding: 18px 20px 16px;
    display: flex; align-items: flex-start;
}
.sold-photo.no-photo::before,
.sold-photo.no-photo::after { content: none; }     /* kill the grid + SOLD/LEASED ghost text */

/* thin status rule along the top of every card */
.sold-photo.no-photo { border-top: 3px solid var(--ink); }
.sold-photo.no-photo.is-lease { border-top-color: var(--ink-faint); background: var(--paper-alt); }

.sold-badge {
    position: static; background: transparent; backdrop-filter: none;
    padding: 0; border-radius: 0;
    color: var(--ink-faint); font-size: .64rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
}

.sold-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.sold-price { font-size: 1.72rem; font-weight: 700; color: var(--ink); letter-spacing: -.035em; line-height: 1; margin-bottom: 9px; }
.sold-city { font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.sold-specs { font-size: .85rem; color: var(--ink-faint); }

/* --- has-photo: real, owned photography --- */
.sold-card.has-photo .sold-photo {
    aspect-ratio: 4/3; padding: 0; border-top: 0; display: block; overflow: hidden;
}
.sold-card.has-photo .sold-photo img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .7s cubic-bezier(.2,.7,.3,1);
}
.sold-card.has-photo:hover .sold-photo img { transform: scale(1.06); }
.sold-card.has-photo .sold-badge {
    position: absolute; left: 12px; top: 12px; z-index: 2;
    background: rgba(255,255,255,.94); color: var(--ink);
    padding: 6px 10px; border-radius: 100px; backdrop-filter: blur(6px);
}
.sold-card.has-photo .sold-body { justify-content: flex-start; }

.sold-marquee::before, .sold-marquee::after { width: 70px; }
.sold-note strong { color: var(--ink); }
.photo-credit { text-align: center; font-size: .74rem; color: var(--ink-faint); margin-top: 8px; }

/* ============================================================
   Featured sale — full-bleed, her listing-side Covina sale.
   Real photography of a real closing: the strongest proof on
   the page, so it gets the most visual weight after the hero.
   ============================================================ */
.feature-sale {
    position: relative; overflow: hidden;
    min-height: min(82vh, 720px);
    display: flex; align-items: flex-end;
    padding: 0 0 clamp(36px, 6vw, 72px);
    background: var(--ink);
}
.feature-sale-media { position: absolute; inset: 0; z-index: 0; }
.feature-sale-media img {
    width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%;
    animation: featureZoom 30s ease-in-out infinite alternate;
    will-change: transform;
}
@keyframes featureZoom {
    0%   { transform: scale(1.02); }
    100% { transform: scale(1.11); }
}
/* readability wash — dark at the bottom where the text sits, clear over the sky */
.feature-sale::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        linear-gradient(180deg, rgba(10,12,16,.34) 0%, rgba(10,12,16,0) 34%, rgba(10,12,16,.62) 72%, rgba(10,12,16,.88) 100%);
}
.feature-sale-inner { position: relative; z-index: 2; color: #fff; }

.feature-tag {
    display: inline-block; margin-bottom: 16px;
    background: #fff; color: var(--ink);
    font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    padding: 8px 15px; border-radius: 100px;
}
.feature-price {
    color: #fff; font-size: clamp(2.6rem, 8vw, 5.6rem); font-weight: 700;
    letter-spacing: -.04em; line-height: .95; margin-bottom: 12px;
    text-shadow: 0 2px 24px rgba(0,0,0,.45);
}
.feature-place {
    font-size: clamp(1rem, 2vw, 1.28rem); font-weight: 600;
    color: rgba(255,255,255,.94); margin-bottom: 14px;
    text-shadow: 0 1px 12px rgba(0,0,0,.5);
}
.feature-line {
    font-size: clamp(.95rem, 1.6vw, 1.08rem); color: rgba(255,255,255,.82);
    max-width: 48ch; margin-bottom: 26px;
    text-shadow: 0 1px 12px rgba(0,0,0,.5);
}
.feature-cta { background: #fff; color: var(--ink); }
.feature-cta:hover { background: #f0f1f4; color: var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,.35); }

@media (max-width: 700px) {
    .feature-sale { min-height: min(74vh, 560px); padding-bottom: 30px; }
    .feature-sale-media img { object-position: 52% 48%; }
    .feature-line { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
    .feature-sale-media img { animation: none; transform: scale(1.04); }
}

/* ============================================================
   CJK typography — Chinese pages
   Negative letter-spacing and tight leading look wrong on Han
   characters, and the right font differs by script.
   ============================================================ */
body.cjk {
    line-height: 1.78;
    letter-spacing: 0;
    font-size: 17px;
}
body.cjk-tc {
    font-family: 'Inter', 'PingFang TC', 'Hiragino Sans CNS', 'Microsoft JhengHei',
                 'Noto Sans TC', -apple-system, sans-serif;
}
body.cjk-sc {
    font-family: 'Inter', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',
                 'Noto Sans SC', -apple-system, sans-serif;
}
body.cjk h1, body.cjk h2, body.cjk h3,
body.cjk .motto-quote, body.cjk .feature-price, body.cjk .sold-price, body.cjk .n {
    letter-spacing: 0;
    line-height: 1.28;
}
body.cjk h1 { line-height: 1.22; }
body.cjk .feature-price, body.cjk .n { line-height: 1.05; }
body.cjk .eyebrow { letter-spacing: .1em; }
body.cjk .lede, body.cjk p, body.cjk li { line-height: 1.85; }
/* Han characters read better slightly smaller than Latin at the same optical size */
body.cjk h1 { font-size: clamp(2.1rem, 5.4vw, 4rem); }
body.cjk .rot { font-size: min(0.94em, 6.4vw, 3rem) !important; }
body.cjk .btn { letter-spacing: .02em; }

/* Language picker */
.lang-pick { display: inline-flex; border: 1px solid var(--line); border-radius: 100px; overflow: hidden; margin-right: 4px; }
.lang-pick a {
    padding: 7px 11px; font-size: .78rem; font-weight: 600; color: var(--ink-faint);
    text-decoration: none; transition: background .18s, color .18s;
}
.lang-pick a:hover { background: var(--paper-alt); color: var(--ink); }
.lang-pick a[aria-current="true"] { background: var(--ink); color: #fff; }
@media (max-width: 620px) { .lang-pick { margin-right: 0; } .lang-pick a { padding: 7px 9px; font-size: .74rem; } }

.lang-note { margin-top: 18px; padding: 14px 16px; background: var(--paper-alt); border-radius: var(--radius); font-size: .9rem; }
.lang-note strong { color: var(--ink); }
.reviews-more { text-align: center; margin-top: 30px; }
.reviews-more a { color: var(--accent); font-weight: 600; text-decoration: none; }
.reviews-more a:hover { text-decoration: underline; }

/* Notices on reference pages */
.notice { background: var(--paper-alt); border-left: 3px solid var(--ink-faint); padding: 16px 18px; border-radius: 0 var(--radius) var(--radius) 0; margin: 26px 0; font-size: .95rem; }
.notice strong { color: var(--ink); }
.notice-key { border-left-color: var(--accent); background: #fdf6e7; }
.legal-body table th:first-child, .legal-body table td:first-child { width: 34%; }
.legal-body table td em { color: var(--ink-faint); font-size: .9em; }
.legal-body .btn { margin: 6px 0 4px; }
/* Vertical numbered steps (buyer process) */
.steps-vert { display: flex; flex-direction: column; gap: 4px; }
.sv { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.sv:last-child { border-bottom: 0; }
.sv b {
    flex: none; width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--ink); color: #fff; font-size: .9rem; font-weight: 700;
}
.sv h3 { font-size: 1.02rem; margin-bottom: 4px; }
.sv p { font-size: .93rem; color: var(--ink-soft); margin: 0; }
.city-en { font-size: .78rem; color: var(--ink-faint); font-weight: 500; }

/* ============================================================
   Nav layout v3
   The previous version set nav-in to nowrap while the page clips
   horizontal overflow, so at ~1000px the language switcher and phone
   were pushed past the edge and vanished. Now: the horizontal tab row
   only appears when there is genuinely room for everything; below that
   the tabs collapse into the hamburger and the switcher + phone stay
   visible. nav-right can never be pushed off-screen.
   ============================================================ */
.nav-in { display: flex; align-items: center; gap: 14px; flex-wrap: nowrap; }
.brand { flex: 0 0 auto; min-width: 0; }
.nav-links { margin: 0 auto; gap: 2px; }
.nav-links a { white-space: nowrap; }
.nav-right { flex: 0 0 auto; margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }

/* Below 1120px there isn't room for brand + 5 tabs + switcher + phone,
   so the tabs move into the menu rather than shoving anything off-screen. */
@media (max-width: 1120px) {
    .nav-toggle { display: block; order: -1; }
    .nav-links {
        position: absolute; top: 100%; left: 0; right: 0; margin: 0;
        flex-direction: column; align-items: stretch;
        background: #fff; border-bottom: 1px solid var(--line);
        padding: 8px 20px 16px; gap: 2px; display: none;
        box-shadow: var(--shadow); z-index: 60;
    }
    .nav-links.open { display: flex; }
    .nav-links a { white-space: normal; padding: 13px 12px; font-size: 1rem; }
}
@media (max-width: 860px) { .brand-text span { display: none; } }
@media (max-width: 560px) { .nav-phone { display: none; } }   /* switcher always stays */
