/* ===== Tokens ===== */
:root {
  --ink: #151515;
  --paper: #F7F7F5;
  --white: #FFFFFF;
  --soft: #EAECEA;
  --line: #CFCFCA;
  --text: #2A2A2A;
  --muted: #3A3A3A;
  --sub: #4A4A4A;
  --sea: #1D4B5E;
  --sea-tint: #EEF3F4;
  --deep: #12262E;
  --deep-line: #2D4650;
  --light: #C9DAE0;
  --light-sub: #9EC2CF;
  --copper: #9A5416;
  --amber: #E8A33C;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Work Sans", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--sea); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid #B5651D; outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 10px 14px; z-index: 10; }
.skip:focus { left: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== Layout ===== */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 880px; }
.article-narrow { max-width: 820px; }
.section { padding-top: 88px; padding-bottom: 88px; }
.section-top { padding-top: 88px; }
.section-tight { padding-top: 32px; padding-bottom: 64px; }
.section-inner { padding-top: 88px; padding-bottom: 88px; }
.hero-pad { padding-top: 56px; padding-bottom: 88px; }
.page-head { padding-top: 56px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack-lg { display: flex; flex-direction: column; gap: 32px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.stack-xs { display: flex; flex-direction: column; gap: 2px; }
.grow { flex: 999 1 460px; min-width: 0; }
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split-top { align-items: flex-start; }
.center { text-align: center; align-items: center; }
.cards-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px 28px; }
.cards-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px; }
.cards-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.rule-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--ink); padding-bottom: 14px; }
.lift { margin-top: -48px; position: relative; }

/* ===== Bands ===== */
.band-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-soft { background: var(--soft); padding: 80px 0; }
.band-deep { background: var(--deep); color: var(--white); }
.band-sea { background: var(--sea); color: var(--white); padding: 88px 0; }
.band-deep .crumbs, .band-deep .crumbs a { color: var(--light-sub); }

/* ===== Type ===== */
.serif { font-family: var(--serif); font-weight: 500; }
.mono { font-family: var(--mono); font-weight: 500; }
.h-display { font-family: var(--serif); font-weight: 500; font-size: clamp(52px, 6vw, 88px); line-height: .96; letter-spacing: -.02em; }
.h-hero { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 5.4vw, 74px); line-height: 1.02; letter-spacing: -.02em; max-width: 980px; }
.h-xl { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4vw, 56px); line-height: 1.05; letter-spacing: -.015em; }
.h-lg { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3vw, 40px); line-height: 1.12; }
.h-md { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 2.4vw, 32px); line-height: 1.2; }
.h-sm { font-size: 22px; line-height: 1.25; }
.h-quote { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.2; }
.lede { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 640px; }
.lede.wide { max-width: 720px; }
.body { font-size: 18px; line-height: 1.75; color: var(--text); }
.light { color: var(--light); }
.lede.light { color: var(--light); }
.light-sub { color: var(--light-sub); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.fine { font-size: 12.5px; line-height: 1.6; }
.strong { font-weight: 600; }
.sea { color: var(--sea); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sea); margin: 0; }
.eyebrow-light { color: var(--white); }
.eyebrow-muted { color: var(--sub); }
.label-caps { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sub); }
.crumbs { font-size: 14px; color: var(--sub); }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 14px 24px; font-weight: 600; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; transition: background .15s; }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 18px 28px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: #333; color: var(--white); }
.btn-sea { background: var(--sea); color: var(--white); }
.btn-sea:hover { background: #163a49; color: var(--white); }
.btn-paper { background: var(--paper); color: var(--ink); align-self: flex-start; }
.btn-paper:hover { background: var(--white); color: var(--ink); }
.btn-copper { background: var(--copper); color: var(--white); }
.btn-copper:hover { background: #7E4411; color: var(--white); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-text { background: transparent; color: var(--sea); }

/* ===== Header ===== */
.masthead { border-bottom: 1px solid var(--ink); background: var(--paper); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.logo { display: flex; flex-direction: column; gap: 2px; color: var(--ink); text-decoration: none; }
.logo-brokerage { font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1.1; letter-spacing: -.01em; }
.logo { min-width: 0; max-width: 100%; }
.brokerage-logo { display: block; width: 320px; max-width: 100%; height: auto; aspect-ratio: 1481 / 335; }
.logo-brokerage { display: block; width: 320px; max-width: 100%; }
.footer-brokerage .brokerage-logo { margin-bottom: 10px; }
@media (max-width: 720px) { .logo-brokerage { width: 260px; } }
.logo-agent { font-size: 15px; font-weight: 500; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; padding: 10px 0; }
.nav a[aria-current="page"] { color: var(--sea); text-decoration: underline; }

/* ===== Photos ===== */
.photo { width: 100%; object-fit: cover; background: #D5DADB; }
.ph { display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; color: var(--sub); font-size: 13px; border: 1.5px dashed #A9B0B2; }
.hero-photo { position: relative; }
.hero-img { min-height: 420px; }
.hero-photo .ph { background: #2C3B40; color: #B9C7CB; border: 0; align-items: flex-start; justify-content: flex-end; }
.hero-card { position: absolute; left: 0; bottom: 0; background: var(--paper); padding: 36px 40px 0 0; max-width: 780px; display: flex; flex-direction: column; gap: 14px; }
.hero { padding-top: 32px; }
.hero-sub { padding-top: 28px; max-width: 700px; }
@media (max-width: 720px) {
  .hero-card { position: static; padding: 24px 0 0; }
  .hero-img { min-height: 260px; }
}

/* ===== Path switcher ===== */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { min-height: 48px; padding: 12px 22px; font-weight: 600; font-size: 16px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--ink); color: var(--white); }
.path-panel { padding-top: 32px; }
.path-head { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-end; justify-content: space-between; padding-bottom: 32px; }
.path-head .stack { flex: 999 1 560px; }
.pains { border-top: 1px solid var(--line); }
.pain { display: flex; flex-wrap: wrap; gap: 8px 48px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.pain-n { flex: 0 0 48px; color: var(--sea); padding-top: 6px; font-size: 15px; }
.pain-q { flex: 1 1 340px; font-style: italic; font-size: 26px; line-height: 1.3; }
.pain-a { flex: 2 1 420px; font-size: 17px; line-height: 1.65; color: var(--muted); padding-top: 4px; }
.path-foot { display: flex; flex-wrap: wrap; gap: 40px; padding: 40px 0 96px; }
.path-foot > .stack:first-child { flex: 999 1 560px; }
.path-foot > .stack:last-child { flex: 1 1 320px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.step { display: flex; flex-direction: column; gap: 8px; border-top: 2px solid var(--ink); padding-top: 14px; font-size: 15px; }
.step .mono { color: var(--sea); font-size: 13px; }
.step-t { font-size: 22px; }
.tool-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 15px; }
.tool-card .serif { font-size: 22px; }
.tool-card:hover { border-color: var(--ink); color: var(--ink); }

/* ===== CMA ===== */
#cma .split { padding-top: 96px; padding-bottom: 96px; }
.two-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.opt { border: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.opt .serif { font-size: 22px; }
.opt-strong { border: 1.5px solid var(--ink); }
.sample-report { flex: 1 1 420px; min-width: 0; background: var(--paper); border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 24px 48px -28px rgba(0,0,0,.35); }
.sr-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--ink); padding-bottom: 12px; }
.sr-head .serif { font-size: 22px; }
.sr-range { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.sr-range > div { background: var(--white); padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.sr-range .sr-mid { background: var(--deep); color: var(--white); }
.sr-comps { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.sr-comps > div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #E0E0DB; padding-bottom: 8px; }
.sr-net { display: flex; justify-content: space-between; background: var(--white); border: 1px solid var(--line); padding: 14px; font-weight: 600; font-size: 15px; }

/* ===== Data band ===== */
.band-deep .split { padding-top: 88px; padding-bottom: 88px; }
.stat-grid { flex: 1 1 380px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--deep-line); border: 1px solid var(--deep-line); }
.stat-grid > div, .stat-col > div { background: var(--deep); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.stat-col { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 1px; background: var(--deep-line); border: 1px solid var(--deep-line); align-self: flex-start; }
.stat { font-size: 30px; }
.stat-serif { font-size: 26px; }
.stat-dark { font-size: 32px; }
.method { border-top: 1px solid var(--deep-line); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }

/* ===== Stories / cards ===== */
.story { display: flex; flex-direction: column; gap: 12px; color: var(--ink); text-decoration: none; }
.story-t { font-size: 25px; line-height: 1.22; }
.story:hover .story-t { text-decoration: underline; }
.card { background: var(--white); border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.card h3.serif { font-size: 22px; }
.featured { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; color: var(--ink); text-decoration: none; border-top: 2px solid var(--ink); padding-top: 32px; }
.featured > :first-child { flex: 999 1 520px; min-width: 0; }
.featured > .stack { flex: 1 1 380px; }
.chips-static { display: flex; flex-wrap: wrap; gap: 10px; }
.chips-static span { border: 1px solid #6F98A8; padding: 10px 16px; font-size: 15px; }
.review { display: flex; flex-direction: column; gap: 14px; }
.review blockquote { font-size: 23px; line-height: 1.4; }

/* ===== FAQ ===== */
.faq { display: flex; flex-direction: column; gap: 22px; padding-top: 8px; }
.faq-item { display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.faq-item:last-child { border-bottom: 0; }
.faq-item h3, .faq-item h4 { font-size: 20px; line-height: 1.35; }
.faq-item p { font-size: 17px; line-height: 1.65; color: var(--muted); }
.sources { border-top: 2px solid var(--ink); padding-top: 16px; margin-top: 24px; font-size: 15px; color: var(--muted); }
.sources ol { margin: 8px 0 0; padding-left: 20px; line-height: 1.7; }

/* ===== About ===== */
.about-photo { flex: 1 1 340px; min-width: 0; }
#about .about-photo { flex: 0 1 280px; width: 280px; max-width: 100%; }
#about .about-photo .photo { aspect-ratio: 1 / 1 !important; height: auto; }
.author-box { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; background: var(--white); border: 1px solid var(--line); padding: 24px; margin-top: 32px; }
.avatar { width: 80px !important; height: 80px; border-radius: 999px; flex: 0 0 auto; padding: 0; font-size: 0; }
.avatar-sm { width: 48px !important; height: 48px; border-radius: 999px; flex: 0 0 auto; padding: 0; font-size: 0; }
.byline { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; }

/* ===== Forms ===== */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label { font-size: 15px; font-weight: 700; }
.field .help { font-size: 14px; color: var(--sub); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select {
  width: 100%; font-size: 17px; padding: 14px 16px; border: 1.5px solid #8F8F89; background: var(--white); color: var(--ink); border-radius: 0; min-height: 50px;
}
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; max-width: 620px; }
.inline-form input { flex: 999 1 260px; min-width: 0; border-color: var(--ink); }
.inline-form button { flex: 1 1 160px; }
.form-card { flex: 1 1 400px; min-width: 0; background: var(--white); color: var(--ink); border: 1.5px solid var(--ink); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.ticks { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 17px; line-height: 1.55; color: var(--muted); }
.ticks-light { color: var(--light); }

/* ===== Tools ===== */
.tool-layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; padding-bottom: 88px; }
.tool-panel { flex: 999 1 520px; min-width: 0; background: var(--white); border: 1px solid var(--line); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.progress { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.progress li { flex: 1 1 140px; }
.prog { width: 100%; text-align: left; min-height: 48px; padding: 10px 14px; border: 0; border-bottom: 3px solid #E0E0DB; background: transparent; color: var(--sub); font-weight: 600; font-size: 15px; cursor: pointer; }
.prog[aria-current="step"] { border-bottom-color: var(--sea); background: var(--sea-tint); color: var(--ink); }
.step-panel { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.step-panel legend { padding: 0; margin-bottom: 4px; }
.check-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border: 1.5px solid #8F8F89; background: var(--white); font-weight: 600; font-size: 15px; }
.chip input:checked + span { background: var(--sea); border-color: var(--sea); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid #B5651D; outline-offset: 2px; }
.concerns { display: flex; flex-direction: column; gap: 8px; }
.concern { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 18px; border: 1.5px solid var(--line); background: var(--white); font-weight: 600; cursor: pointer; }
.concern input { width: 20px; height: 20px; accent-color: var(--sea); }
.concern:has(input:checked) { border-color: var(--sea); background: var(--sea-tint); }
.step-nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 20px; }
.results { flex: 1 1 400px; min-width: 0; background: var(--deep); color: var(--white); padding: 32px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 16px; }
.res-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--deep-line); padding-bottom: 14px; }
.res-head .serif { font-size: 26px; }
.big { font-size: 46px; line-height: 1; }
.big-dark { font-size: 56px; line-height: 1; font-family: var(--mono); }
.res-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--deep-line); border: 1px solid var(--deep-line); }
.res-grid > div { background: var(--deep); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.res-grid .mono { font-size: 22px; }
.tax-box { padding: 16px; background: #16323B; border: 1px solid var(--deep-line); font-size: 15px; line-height: 1.55; }
.tax-box.warn { background: #3A2A12; border-color: var(--amber); }
.plan { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.plan li { display: flex; gap: 12px; font-size: 15px; line-height: 1.55; color: #DCE7EB; }
.plan li::before { content: "→"; font-family: var(--mono); color: var(--amber); }
.result-card { padding: 32px; gap: 14px; }
.ledger { margin: 8px 0 0; border-top: 1px solid var(--line); }
.ledger div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--muted); }
.ledger div.total { font-weight: 700; color: var(--ink); border-bottom: 0; font-size: 18px; }
.ledger dt, .ledger dd { margin: 0; }
.bars { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.bar-row { display: flex; flex-direction: column; gap: 6px; }
.bar-row .top { display: flex; justify-content: space-between; font-size: 16px; }
.bar-track { height: 10px; background: #E3E9E7; overflow: hidden; }
.bar-fill { height: 100%; }
.cta-dark { background: var(--deep); color: var(--white); padding: 28px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.cta-dark p { flex: 999 1 280px; font-size: 18px; }

/* ===== Market ===== */
.snapshot { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); margin-bottom: 12px; }
.snapshot > div { padding: 24px 20px 24px 0; display: flex; flex-direction: column; gap: 6px; }
.chart { height: 300px; display: flex; align-items: flex-end; gap: 10px; border-bottom: 1px solid var(--ink); }
.bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.chart .bar { width: 100%; background: #C9D3D6; }
.chart .bar-col:last-child .bar { background: var(--sea); }
.chart-ph, .idx-ph { height: 260px; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 16px; }
.data-table th, .data-table td { padding: 14px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.data-table thead th { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; border-bottom: 2px solid var(--ink); }
.data-table th[scope="row"] { font-weight: 500; padding-left: 0; }

/* ===== Town ===== */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.side-ctas { flex: 1 1 300px; display: flex; flex-direction: column; gap: 14px; }
.cta-tile { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.cta-tile .serif { font-size: 21px; line-height: 1.3; }
.cta-tile.dark { background: var(--deep); color: var(--white); border-color: var(--deep); }

/* ===== Article ===== */
.prose-wrap { display: flex; flex-direction: column; gap: 28px; padding-bottom: 40px; }
.short-answer { background: var(--deep); color: var(--white); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.short-answer p { font-size: 19px; line-height: 1.6; }
.prose { font-size: 19px; line-height: 1.75; color: var(--text); }
.prose h2 { font-family: var(--serif); font-weight: 500; font-size: 36px; line-height: 1.15; color: var(--ink); margin: 40px 0 14px; }
.prose h3 { font-size: 22px; margin: 28px 0 10px; color: var(--ink); }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 8px 0 24px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 12px; text-align: left; border-bottom: 1px solid var(--line); }
.prose thead th { border-bottom: 2px solid var(--ink); }
.tool-cta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; border: 1.5px solid var(--ink); background: var(--white); padding: 24px; color: var(--ink); text-decoration: none; }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: #BDBDBD; padding: 56px 0 28px; font-size: 15px; }
.site-footer a { color: #DADADA; }
.site-footer a:hover { color: var(--white); }
.footer-top { display: flex; flex-wrap: wrap; gap: 40px; }
.footer-nap { flex: 1 1 260px; display: flex; flex-direction: column; gap: 6px; line-height: 1.6; }
.footer-brokerage { font-size: 24px; color: var(--white); }
.footer-name { font-size: 16px; color: var(--white); font-weight: 600; margin-top: 8px; }
.consent { font-size: 12.5px; line-height: 1.55; color: var(--sub); }
.legal-page h2 { font-family: var(--serif); font-weight: 500; font-size: 28px; margin-top: 24px; }
.legal-page p, .legal-page li { font-size: 17px; line-height: 1.7; color: var(--text); }
.review-flag { background: var(--sea-tint); border: 1px solid var(--sea); padding: 14px 18px; font-size: 15px; }
.footer-towns { flex: 1 1 260px; display: flex; flex-direction: column; gap: 12px; }
.footer-town-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 20px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: 13px; border-top: 1px solid #333; padding-top: 20px; margin-top: 36px; }

.light-row { border-bottom: 0; }
.light-row .h-lg { color: var(--white); }

@media (max-width: 720px) {
  .section, .section-inner { padding-top: 64px; padding-bottom: 64px; }
  .tool-panel, .results, .form-card, .result-card { padding: 22px; }
  .results { position: static; }
  .big { font-size: 38px; }
  .big-dark { font-size: 44px; }
  .pain-q { font-size: 22px; }
  .nav { gap: 4px 18px; }
}

/* ===== Number fields, example bar ===== */
.num-wrap { display: flex; align-items: stretch; border: 1.5px solid #8F8F89; background: var(--white); }
.num-wrap:focus-within { outline: 3px solid #B5651D; outline-offset: 2px; }
.num-wrap input { border: 0 !important; outline: none; flex: 1; min-width: 0; font-variant-numeric: tabular-nums; font-size: 18px; }
.num-wrap input:focus-visible { outline: none; }
.affix { display: flex; align-items: center; padding: 0 14px; background: #EFEFEC; color: var(--muted); font-weight: 600; font-size: 16px; }
.money .affix { border-right: 1px solid #D5D5D0; }
.pct .affix, .years .affix { border-left: 1px solid #D5D5D0; }
.example-bar { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; background: var(--sea-tint); padding: 12px 16px; color: var(--ink); }
.btn-link { background: none; border: 0; padding: 8px 0; min-height: 44px; color: var(--sea); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 15px; }
.computed { margin-top: -10px; }
.sub-head { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.next-box { padding: 16px; border: 1px solid var(--deep-line); display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.55; }

/* ===== Phone header: keep the brokerage prominent, get to the content faster ===== */
.nav-call { display: none; }
@media (max-width: 720px) {
  .bar { padding-top: 12px; padding-bottom: 12px; gap: 10px; }
  .logo-brokerage { font-size: 22px; }
  .logo-agent { font-size: 13.5px; }
  .nav { font-size: 12.5px; letter-spacing: .04em; gap: 0 14px; }
  .nav a:not(.btn) { padding: 12px 0; }
  .nav .btn-sm { min-height: 44px; padding: 8px 14px; font-size: 12.5px; }
  .nav-call { display: inline-flex; }
}

.mini-result { display: none; margin: 0; padding: 14px 16px; background: var(--deep); color: var(--white); font-size: 15px; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.mini-result strong { font-size: 22px; }
.mini-result a { color: var(--light-sub); margin-left: auto; }
@media (max-width: 980px) { .mini-result { display: flex; } }

/* ===== Optional fields tucked away ===== */
.more-fields { border-top: 1px solid var(--line); padding-top: 14px; }
.more-fields summary { cursor: pointer; font-weight: 600; color: var(--sea); min-height: 44px; display: flex; align-items: center; gap: 8px; }
.more-fields summary::marker { color: var(--sea); }
.more-fields[open] summary { margin-bottom: 14px; }
.res-grid .small { font-size: 12.5px; line-height: 1.4; }

/* ===== Photo tiles (until real photos are added) ===== */
.tile { position: relative; overflow: hidden; background: linear-gradient(180deg, #1D4B5E 0%, #12262E 100%); }
.tile-mark { position: absolute; inset: auto 0 18% 0; height: 38%; opacity: .35;
  background: repeating-linear-gradient(180deg, transparent 0 10px, rgba(247,247,245,.55) 10px 11px); }
.hero-photo .tile { min-height: 420px; }
.alert-card { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; background: var(--white); border: 1px solid var(--line); padding: 32px; }
.alert-card .inline-form { flex: 1 1 360px; }
.bar-col .bar-val { color: var(--sub); }

/* ===== Market chart ===== */
.chart { gap: 10px; padding-top: 8px; }
.bar-col { min-width: 0; gap: 8px; }
.bar-area { flex: 1; min-height: 0; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.bar-area .bar { width: 100%; }
.bar-val { font-size: 13px; color: var(--sub); white-space: nowrap; }
@media (max-width: 480px) { .chart { gap: 4px; height: 240px; } .bar-val { font-size: 10.5px; } .bar-col .small { font-size: 11px; } }

/* ===== Stepper: how it goes ===== */
.plan-block { display: flex; flex-direction: column; gap: 28px; padding: 48px 0 0; }
.plan-head { display: flex; flex-direction: column; gap: 6px; }
.stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; position: relative; }
.stepper::before { content: ""; position: absolute; top: 23px; left: 24px; right: 24px; height: 2px; background: var(--line); }
.stepper-item { position: relative; display: flex; flex-direction: column; gap: 16px; }
.stepper-dot { position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 999px; background: var(--sea); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 22px; font-weight: 600; box-shadow: 0 0 0 6px var(--paper); }
.stepper-body { display: flex; flex-direction: column; gap: 8px; }
.stepper-title { font-size: 23px; line-height: 1.2; margin: 0; }
.stepper-body .muted { font-size: 16px; line-height: 1.55; margin: 0; }
.stepper-get { margin: 4px 0 0; padding: 12px 14px; background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; font-size: 15px; font-weight: 600; }
.stepper-get .label-caps { font-size: 11.5px; color: var(--sea); }
.plan-cta { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.tools-row { display: flex; flex-direction: column; gap: 14px; padding: 48px 0 96px; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
@media (max-width: 900px) {
  .stepper { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .stepper::before { top: 24px; bottom: 24px; left: 23px; right: auto; width: 2px; height: auto; }
  .stepper-item { flex-direction: row; gap: 18px; padding-bottom: 28px; }
  .stepper-item:last-child { padding-bottom: 0; }
  .stepper-dot { flex: 0 0 48px; }
}

/* ===== Calls to action ===== */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-ghost-light { background: transparent; color: var(--white); border: 1.5px solid #7FA5B3; }
.btn-ghost-light:hover { background: rgba(255,255,255,.08); color: var(--white); }
.contact-band { padding: 72px 0; }
.contact-band.band-sea { background: var(--sea); color: var(--white); }
.contact-band.band-deep { background: var(--deep); color: var(--white); }
.contact-band-inner { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: center; justify-content: space-between; }
.contact-band .h-lg { color: var(--white); }
.contact-band .light { color: #D8E6EB; max-width: 620px; font-size: 18px; line-height: 1.6; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-actions .btn-paper { align-self: auto; }
.sell-points { flex: 1 1 360px; min-width: 0; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; background: var(--deep-line); border: 1px solid var(--deep-line); }
.sell-points li { background: var(--deep); padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.sell-points .serif { font-size: 21px; }
.sell-points .light { font-size: 15px; }
.contact-card { gap: 18px; }
.res-name { font-size: 30px; }
.contact-big { color: var(--white); font-family: var(--serif); font-size: 28px; text-decoration: none; overflow-wrap: anywhere; }
.contact-big.small-big { font-size: 20px; }
textarea { width: 100%; font: inherit; font-size: 17px; padding: 14px 16px; border: 1.5px solid #8F8F89; background: var(--white); color: var(--ink); border-radius: 0; resize: vertical; }

/* ===== Phone contact bar ===== */
.mobile-bar { display: none; }
@media (max-width: 720px) {
  .mobile-bar { display: grid; grid-template-columns: auto 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    background: var(--paper); border-top: 1px solid var(--ink); }
  .mobile-bar .btn { min-height: 48px; padding: 10px 14px; font-size: 15px; background-color: var(--white); }
  .mobile-bar .btn-sea { background: var(--sea); }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
}
.stepper::before { right: calc((100% - 72px) / 4 - 24px); }
.stepper-body { flex: 1; }
.stepper-get { margin-top: auto; }
@media (max-width: 900px) { .stepper::before { right: auto; } .stepper-get { margin-top: 4px; } }

/* ---------- Hero v2: headline first, seller-led ---------- */
.hero2 { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 56px; align-items: center; padding-top: 48px; padding-bottom: 24px; }
.hero-text { display: flex; flex-direction: column; gap: 18px; }
.hero-text .lede { max-width: 640px; }
.hero-btns { margin-top: 6px; }
.hero-buy { color: var(--muted); }
.hello { display: flex; gap: 14px; align-items: center; margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line, #D9DEDB); max-width: 640px; }
.hello p { font-size: 15.5px; line-height: 1.5; margin: 0; }
.hello-face { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.hello-initials { display: inline-flex; align-items: center; justify-content: center; background: var(--sea); color: #fff; font-family: var(--serif); font-size: 21px; }
.hero-media .photo { width: 100%; }
.hero-media .tile { min-height: 0; }
@media (max-width: 900px) {
  .hero2 { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
  .hero-media .tile { display: none; }            /* no blank tile on phones until there's a real photo */
  .hero-media .photo:not(.tile) { aspect-ratio: 4 / 3 !important; }
  .hero-btns .btn { width: 100%; justify-content: center; }
}

/* ---------- Phone menu ---------- */
.menu-btn { display: none; }
@media (max-width: 720px) {
  .js .bar { flex-wrap: nowrap; align-items: center; }
  .js .menu-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: 600 13px/1 var(--sans, inherit); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; flex: none; }
  .js .masthead { position: relative; }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--ink); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; font-size: 15px; }
  .js .nav.open { display: flex; }
  .js .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line, #D9DEDB); }
  .js .nav .btn-sm { margin-top: 12px; justify-content: center; font-size: 14px; }
  .logo-brokerage { font-size: 20px; }
  .logo-agent { font-size: 13px; }
  .logo-phone { display: block; }
}

/* ---------- Email me these results ---------- */
.results-email { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--white); border: 1px solid var(--line); }
.results-email-dark { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.22); }
.results-email .inline-form { margin: 0; }
.check-line { display: flex; gap: 8px; align-items: flex-start; }
.check-line input { margin-top: 4px; }
.results-email .consent { margin: 0; }
.answer-cta { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 4px 0 8px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
@media (max-width: 720px) { .logo-dot { display: none; } .hello { align-items: flex-start; } }
.hero-headshot { width: 100%; max-width: 440px; aspect-ratio: 1 / 1; object-fit: cover; justify-self: end; display: block; margin-left: auto; }
@media (min-width: 901px) { .hello-has-headshot .hello-face { display: none; } }
@media (max-width: 900px) { .hero-media .hero-headshot { display: none; } }
.pains-heading { font-size: 28px; line-height: 1.25; margin: 8px 0 18px; }
.pain-left { flex: 1 1 340px; display: flex; flex-direction: column; gap: 8px; }
.pain-left .pain-q { flex: none; }
.pain-title { margin: 0; }
@media (max-width: 720px) { .pains-heading { font-size: 23px; } }
.pain-right { flex: 2 1 420px; display: flex; flex-direction: column; gap: 8px; }
.pain-right .pain-a { flex: none; padding-top: 0; color: var(--ink); }
.pain-label { margin: 0; color: var(--muted); }
@media (max-width: 720px) { .pain-right { margin-top: 10px; } }

/* ---------- Walk-away calculator: tax and next-home notes ---------- */
.result-note { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: #EEF3F2; border-left: 3px solid var(--sea); font-size: 15px; line-height: 1.5; }
.result-note.warn { background: #F8EFE6; border-left-color: #9A5416; }
.more-fields + .more-fields { margin-top: 10px; }

/* =====================================================================
   Sleek layer: imagery, rounded surfaces, glass header, motion
   ===================================================================== */
:root { --r-sm: 10px; --r: 16px; --r-lg: 22px;
  --shadow: 0 1px 2px rgba(18,38,46,.05), 0 10px 30px -12px rgba(18,38,46,.18);
  --shadow-lg: 0 2px 4px rgba(18,38,46,.06), 0 28px 60px -24px rgba(18,38,46,.35); }

/* Glass header that stays put */
.masthead { position: sticky; top: 0; z-index: 50; background: rgba(247,247,245,.86); border-bottom: 1px solid rgba(21,21,21,.1);
  -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px); }
@media (max-width: 720px) { .js .nav { background: rgba(247,247,245,.97); border-radius: 0 0 var(--r) var(--r); box-shadow: var(--shadow-lg); border-bottom: 0; } }

/* Buttons and fields */
.btn { border-radius: var(--r-sm); transition: background .18s, transform .18s, box-shadow .18s, border-color .18s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(18,38,46,.45); }
.btn:active { transform: none; box-shadow: none; }
.menu-btn { border-radius: var(--r-sm); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea { border-radius: var(--r-sm); }
.num-wrap { border-radius: var(--r-sm); overflow: hidden; }
.chip span, .chips-static span { border-radius: 999px; }
.mini-result { border-radius: var(--r-sm); }

/* Surfaces */
.card, .tool-panel, .tool-card, .cta-tile, .form-card, .results, .cta-dark, .sample-report, .stepper-get,
.results-email, .result-note, .alert-card, .short-answer, .contact-card { border-radius: var(--r); }
.tool-panel, .result-card, .form-card, .sample-report { box-shadow: var(--shadow); }
.tool-panel { border-color: rgba(21,21,21,.08); }
.form-card { border: 1px solid rgba(21,21,21,.12); box-shadow: var(--shadow-lg); }
.photo, .hero-headshot { border-radius: var(--r-lg); }
.tool-card, .cta-tile, .card.link-card { transition: transform .22s, box-shadow .22s, border-color .22s; }
.tool-card:hover, .cta-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: transparent; }

/* Tool cards with icons */
.tool-card { padding: 24px; gap: 10px; }
.ico { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; background: var(--sea-tint); color: var(--sea); }

/* Segmented tabs */
.tabs { background: #E6E9E7; padding: 5px; border-radius: 999px; gap: 4px; }
.tab { border: 0; border-radius: 999px; min-height: 44px; padding: 10px 20px; transition: background .2s, color .2s; }
.tab:hover { background: rgba(255,255,255,.7); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--white); box-shadow: 0 6px 14px -8px rgba(0,0,0,.6); }

/* ---------- Homepage hero over the illustration ---------- */
.hero-art { position: relative; color: var(--white); background-color: #0E2430; background-position: center bottom; background-size: cover; background-repeat: no-repeat; overflow: hidden; }
.hero-art::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(10,26,34,.78) 0%, rgba(10,26,34,.5) 45%, rgba(10,26,34,0) 75%); }
.hero-art .hero2 { position: relative; padding-top: 72px; padding-bottom: 260px; }
.hero-art .h-hero { color: var(--white); font-size: clamp(42px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -.01em; }
.hero-art .hero-buy { color: #D6E4E8; }
.hero-art .hero-buy a, .hero-art .hello a { color: var(--white); }
.hero-art .hello { border-top-color: rgba(255,255,255,.22); color: #E4EDEF; }
.hero-art .hero-headshot { box-shadow: 0 30px 70px -30px rgba(0,0,0,.8); border: 6px solid rgba(255,255,255,.92); max-width: 360px; }
.hero-art .btn-paper { align-self: auto; }
@media (max-width: 900px) {
  .hero-art { background-position: 70% bottom; }
  .hero-art::before { background: linear-gradient(180deg, rgba(10,26,34,.82) 0%, rgba(10,26,34,.62) 55%, rgba(10,26,34,.05) 85%); }
  .hero-art .hero2 { padding-top: 36px; padding-bottom: 190px; }
}

/* ---------- Page headers over illustrations ---------- */
.band-art { position: relative; background-color: var(--deep); background-position: center; background-size: cover; background-repeat: no-repeat; }
.band-art::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(18,38,46,.97) 0%, rgba(18,38,46,.9) 42%, rgba(18,38,46,.45) 75%, rgba(18,38,46,.2) 100%); }
.band-art > * { position: relative; }
@media (max-width: 900px) { .band-art::before { background: linear-gradient(180deg, rgba(18,38,46,.9), rgba(18,38,46,.82)); } }

/* Full-width illustrated banner */
.art-banner { height: clamp(180px, 26vw, 340px); border-radius: var(--r-lg); background-position: center; background-size: cover; background-repeat: no-repeat; box-shadow: var(--shadow); margin-bottom: 8px; }

/* Town cards */
.story-media { display: block; overflow: hidden; border-radius: var(--r); aspect-ratio: 16 / 10; background: var(--soft); box-shadow: var(--shadow); }
.story-media .art-img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.story:hover .story-media .art-img { transform: scale(1.05); }

/* Gentle reveal as sections scroll in */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
  .js .reveal.in { opacity: 1; transform: none; }
  .hero-art .hero-text > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
  .hero-art .hero-text > *:nth-child(2) { animation-delay: .06s; } .hero-art .hero-text > *:nth-child(3) { animation-delay: .12s; }
  .hero-art .hero-text > *:nth-child(4) { animation-delay: .18s; } .hero-art .hero-text > *:nth-child(n+5) { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* Glass mobile bar */
@media (max-width: 720px) { .mobile-bar { background: rgba(247,247,245,.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); } }
.hero-art .hero2 { align-items: start; padding-bottom: 300px; }
.hero-art .hero-media { align-self: start; padding-top: 24px; }
.hero-art .hero-headshot { max-width: 300px; margin-left: auto; }
@media (max-width: 900px) { .hero-art .hero2 { padding-bottom: 240px; } }

/* ---------- Moving header: aerial video or slowly panning aerial photo ---------- */
.hero-moving { background-color: #0E2430; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-pan { background-size: cover; background-position: center; transform-origin: 60% 50%; }
.hero-moving::before { z-index: 1; background: linear-gradient(90deg, rgba(8,22,30,.82) 0%, rgba(8,22,30,.55) 45%, rgba(8,22,30,.15) 80%),
  linear-gradient(0deg, rgba(8,22,30,.45) 0%, rgba(8,22,30,0) 35%); }
.hero-moving .hero2 { z-index: 2; grid-template-columns: minmax(0, 1fr); padding-bottom: 140px; min-height: min(78vh, 760px); align-content: center; }
.hero-moving .hero-text { max-width: 720px; }
.hero-pause { position: absolute; z-index: 3; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255,255,255,.4);
  background: rgba(8,22,30,.45); color: #fff; font-size: 12px; cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero-pause:hover { background: rgba(8,22,30,.7); }
.hero-credit { position: absolute; z-index: 3; left: 20px; bottom: 14px; font-size: 12px; color: rgba(255,255,255,.75); }
@media (prefers-reduced-motion: no-preference) {
  .hero-pan { animation: aerial-drift 38s ease-in-out infinite alternate; }
  @keyframes aerial-drift { 0% { transform: scale(1.06) translate3d(-1.5%, 0, 0); } 100% { transform: scale(1.16) translate3d(1.5%, -1.5%, 0); } }
}
.hero-moving.paused .hero-pan { animation-play-state: paused; }
@media (max-width: 900px) {
  .hero-moving::before { background: linear-gradient(180deg, rgba(8,22,30,.78) 0%, rgba(8,22,30,.6) 60%, rgba(8,22,30,.35) 100%); }
  .hero-moving .hero2 { min-height: 0; padding-bottom: 120px; }
}

/* ---------- Tool page tidy-up ---------- */
.help, .tool-panel .help { font-size: 14px; line-height: 1.45; color: var(--sub); }
.computed { margin-top: -12px; display: block; }
.computed:empty { display: none; }
.num-wrap input::placeholder { color: #6B6B66; opacity: 1; }
.ledger dd { white-space: nowrap; }
.example-bar { border-radius: var(--r-sm); }
@media (min-width: 981px) {
  .tool-layout > .stack.grow { position: sticky; top: 96px; }
}
@media (max-width: 720px) {
  .example-bar { flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 14px; }
  .example-bar .btn-link { min-height: 36px; padding: 4px 0; }
  .tool-panel { padding: 22px 18px; }
  .result-card { padding: 22px 18px; }
  .ledger div { font-size: 15px; }
  .more-fields summary { font-size: 16px; }
  .hero-pad { padding-bottom: 72px; }
}
.more-fields summary { list-style: none; justify-content: space-between; }
.more-fields summary::-webkit-details-marker { display: none; }
.more-fields summary::after { content: "+"; font-size: 22px; font-weight: 400; line-height: 1; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--sea-tint); flex: none; }
.more-fields[open] summary::after { content: "\2212"; }

/* ---------- About ---------- */
.about-more { font-size: 18px; line-height: 1.65; color: var(--text); max-width: 640px; }
.about-highlights { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.about-highlights li { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; background: var(--white); border: 1px solid rgba(21,21,21,.08); border-radius: var(--r); box-shadow: var(--shadow); font-size: 15px; line-height: 1.45; font-weight: 500; }
.about-highlights .eyebrow { margin: 0; }
@media (max-width: 720px) { .about-highlights { grid-template-columns: 1fr; } }

/* ---------- Photo banners and header cross-fade ---------- */
.photo-banner { background-position: center 60%; }
.hero-pan-alt { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .hero-pan-alt { animation: aerial-drift 38s ease-in-out infinite alternate, hero-xfade 32s ease-in-out infinite; }
  @keyframes hero-xfade { 0%, 40% { opacity: 0; } 50%, 90% { opacity: 1; } 100% { opacity: 0; } }
}
.hero-moving.paused .hero-pan-alt { animation-play-state: paused; }
.photo-banner { background-position: center 30%; }

/* ---------- FAQ as tap-to-open list ---------- */
details.faq-item { padding: 0; gap: 0; }
details.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; min-height: 44px; }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary h3, details.faq-item summary h4 { margin: 0; }
details.faq-item summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--sea-tint); color: var(--sea); font-size: 20px; }
details.faq-item[open] summary::after { content: "\2212"; }
details.faq-item p { padding: 0 0 20px; }
details.faq-item summary:focus-visible { outline: 3px solid #B5651D; outline-offset: 2px; }
.faq { gap: 0 !important; }
#cma .split { justify-content: flex-start; }

/* ---------- Balanced tool layouts ---------- */
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; align-items: start; }
.field-grid .cell { display: flex; flex-direction: column; gap: 18px; }
.field-grid .cell .computed { margin-top: -12px; }
.tool-left { flex: 999 1 520px; min-width: 0; gap: 20px; }
.tool-left .tool-panel { flex: none; }
.tool-fine { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px 40px; padding-top: 4px; padding-bottom: 8px; }
.tool-fine .fine { margin: 0; max-width: 72ch; }
.tool-layout { padding-bottom: 40px; }
@media (max-width: 720px) { .field-grid { grid-template-columns: 1fr; } }

/* Town guide additions use the imported site's type and surface tokens. */
.town-guide-section { scroll-margin-top: 160px; }
.town-guide-section ul { margin: 0; }
.town-guide-section li { overflow-wrap: anywhere; }
.town-guide-section .h-lg { letter-spacing: 0; }
.town-guide-section .cards-auto { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.town-photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.town-photo-slot { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--soft); border: 1px dashed var(--line); border-radius: var(--r-sm); color: var(--sub); }
.town-photo-grid figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; }
.town-map { display: block; width: 100%; height: 420px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--soft); }
.town-source-list a { overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .town-guide-section .cards-auto { grid-template-columns: minmax(0, 1fr); }
  .town-photo-grid { gap: 16px; }
  .town-map { height: 340px; }
}

/* Audit fixes: the 3-column town tax table fits phones without sideways scrolling; footer and table links meet the 24px minimum tap height. */
.data-table.fit { min-width: 0; }
.footer-town-grid a, .data-table td a { display: inline-block; min-height: 24px; padding: 2px 0; }

/* ---------- Intent navigation with dropdowns ---------- */
.nav-drop { position: relative; }
.nav-drop > summary { list-style: none; cursor: pointer; padding: 10px 0; color: var(--ink); }
.nav-drop > summary::-webkit-details-marker { display: none; }
.nav-drop > summary::after { content: "▾"; margin-left: 6px; font-size: .8em; }
.nav-drop.is-current > summary, .nav a.nav-talk[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.nav-drop.is-current > summary { color: var(--sea); }
.nav-drop > summary:focus-visible { outline: 3px solid #B5651D; outline-offset: 2px; }
.nav-menu { position: absolute; top: 100%; left: -16px; z-index: 30; min-width: 230px; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--ink); padding: 6px 16px; text-transform: none; letter-spacing: 0; font-size: 15px; }
.nav-menu a { padding: 12px 0 !important; border-bottom: 1px solid var(--line, #D9DEDB); }
.nav-menu a:last-child { border-bottom: 0; }
.nav-talk { font-size: 14px; }
@media (max-width: 720px) {
  .js .nav .nav-drop > summary { padding: 14px 0; border-bottom: 1px solid var(--line, #D9DEDB); }
  .nav-menu { position: static; border: 0; min-width: 0; padding: 0 0 0 16px; background: transparent; }
}

/* Journal photos retain their original proportions. */
.journal-cover { width: 100%; height: auto; }
