/* Layout: a working street elevation. Cast-iron bands, bluestone neutrals, one brownstone accent,
   with tall DIN-style type that echoes the proportions of the TAM logo. */
:root {
  --iron: #1f1b18;       /* warm espresso */
  --iron-2: #2d2823;
  --ink: #211d19;
  --muted: #655b51;
  --bluestone: #f1ebe3;  /* warm cream */
  --bluestone-2: #d8cfc4;
  --paper: #fdfbf8;
  --brownstone: #7d5a42; /* rich brown, from the cap crown */
  --brownstone-lt: #d6bda6;
  --on-iron-muted: #c9bfb3;
  --display: "Barlow Condensed", "DIN Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", "DIN Alternate", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brownstone); }
:focus-visible { outline: 2px solid var(--brownstone); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.04; margin: 0; text-wrap: balance; letter-spacing: 0.002em; }
h1 { font-size: clamp(2.9rem, 6vw, 5.4rem); }
h2 { font-size: clamp(2.1rem, 3.6vw, 3.25rem); }
h3 { font-size: 1.75rem; line-height: 1.12; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.band { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.band.slim { padding-block: 2.5rem; }
.band.page-top { padding-block: clamp(3rem, 5vw, 5rem); }
.band-iron { background: var(--iron); color: #fff; }
.band-stone { background: var(--bluestone); }
.eyebrow { font-weight: 500; font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.band-iron .eyebrow, .hero .eyebrow { color: var(--on-iron-muted); }
.eyebrow a { text-decoration: none; }
.lede { font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.5; max-width: 38em; }
.fine { font-size: 0.875rem; line-height: 1.5; color: var(--on-iron-muted); }
.fine.dark { color: var(--muted); }
.more { margin-top: 2rem; font-weight: 600; }
.skip { position: absolute; left: -999px; top: 0; background: var(--iron); color: #fff; padding: 0.6rem 1rem; z-index: 40; }
.skip:focus { left: 8px; top: 8px; color: #fff; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.7rem 1.35rem; font: 600 1rem/1.2 var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.btn-accent { background: var(--brownstone); color: #fff; }
.btn-accent:hover { background: #684a35; color: #fff; }
.btn-ink { background: var(--iron); color: #fff; }
.btn-ink:hover { background: var(--brownstone); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--iron); }
.btn-line { border-color: var(--iron); color: var(--iron); }
.btn-line:hover { background: var(--iron); color: #fff; }

/* Header */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--paper); border-bottom: 1px solid var(--bluestone); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink); }
.brand img { width: 62px; height: 44px; object-fit: contain; }
.brand-sub { font-size: 0.875rem; font-weight: 500; color: var(--muted); padding-left: 0.75rem; border-left: 1px solid var(--bluestone-2); }
.primary { display: flex; align-items: center; gap: 1.6rem; font-weight: 500; }
.primary a:not(.btn) { text-decoration: none; }
.primary a[aria-current] { text-decoration: underline; text-underline-offset: 0.4em; }
.primary .phone { font-variant-numeric: tabular-nums; }
.primary .btn { min-height: 42px; padding-block: 0.5rem; color: #fff; }
.mobile { display: none; position: relative; }
.mobile summary { list-style: none; cursor: pointer; font-weight: 600; padding: 0.6rem 0.9rem; border: 1px solid var(--iron); }
.mobile summary::-webkit-details-marker { display: none; }
.mobile nav { position: absolute; right: 0; top: calc(100% + 8px); width: min(280px, calc(100vw - 48px)); background: var(--paper); border: 1px solid var(--iron); display: flex; flex-direction: column; }
.mobile nav a { padding: 0.8rem 1rem; text-decoration: none; border-bottom: 1px solid var(--bluestone); font-weight: 500; }
.mobile nav a:last-child { border-bottom: 0; }
@media (max-width: 1240px) { .primary { display: none; } .mobile { display: block; } }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); background: var(--iron); color: #fff; }
.hero-text { display: flex; align-items: center; min-width: 0; padding-block: clamp(3rem, 6vw, 6rem); padding-left: max(24px, env(safe-area-inset-left, 0px), calc((100vw - 1280px) / 2 + 24px)); padding-right: clamp(24px, 5vw, 80px); }
.hero h1 { margin-top: 1.25rem; font-size: clamp(3.25rem, 7.2vw, 6.75rem); line-height: 0.98; }
.hero .lede { margin-top: 1.75rem; color: #efe8df; }
.hero-photo { position: relative; min-height: 640px; min-width: 0; overflow: hidden; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 48% 42%; }
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-photo { min-height: 0; aspect-ratio: 1 / 1; order: -1; }
  .hero-photo img { object-position: 48% 46%; }
  .hero-text { padding-right: max(24px, env(safe-area-inset-right, 0px)); }
}

/* Facts */
.facts { border-bottom: 1px solid var(--bluestone); }
.facts-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts-row > div { display: flex; flex-direction: column; gap: 0.15rem; padding: 1.75rem 1.5rem; border-left: 1px solid var(--bluestone); min-width: 0; }
.facts-row > div:first-child { border-left: 0; padding-left: 0; }
.facts b { font: 500 2.25rem/1.05 var(--display); }
.facts span { color: var(--muted); font-size: 0.9375rem; }
@media (max-width: 760px) {
  .facts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-row > div { padding: 1.25rem 1rem; border-left: 0; }
  .facts-row > div:nth-child(odd) { padding-left: 0; }
  .facts b { font-size: 1.875rem; }
}

/* Section heads */
.section-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head > p { max-width: 42em; }
.section-head > * { min-width: 0; }
.section-head.wide { display: block; }
.section-head.wide h1 { margin-top: 0.9rem; }
.section-head.wide .lede { margin-top: 1.25rem; }

/* Neighborhood index */
.hood-group + .hood-group { margin-top: clamp(2.5rem, 5vw, 4rem); }
.hood-group h3 { margin-bottom: 0.9rem; }
.hood-list { border-top: 1px solid var(--iron); }
.hood-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: 1.5rem; align-items: center; padding-block: 1.5rem; border-bottom: 1px solid var(--bluestone-2); text-decoration: none; transition: background-color .15s ease; }
a.hood-row:hover { color: inherit; background: var(--bluestone); }
a.hood-row .hood-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.12em; }
.hood-name { font: 500 clamp(2rem, 3.4vw, 3rem)/1.05 var(--display); }
a.hood-row:hover .hood-name { color: var(--brownstone); }
.hood-desc { color: var(--muted); min-width: 0; }
.trains { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.trains { align-items: center; }
.trains em { font-style: normal; font-size: 0.875rem; color: var(--muted); margin-right: 0.25rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.trains i::before, .trains em::before { content: attr(data-l); }
.trains { position: relative; }
.trains i { display: inline-flex; align-items: center; justify-content: center; width: 1.625rem; height: 1.625rem; border-radius: 50%; background: var(--iron); color: #fff; font: 600 0.8125rem/1 var(--body); font-style: normal; }
@media (max-width: 900px) {
  .hood-row { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
  .trains { margin-top: 0.35rem; }
}

/* Split sections and forms */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.split-copy { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.split-copy .eyebrow + h1 { margin-top: -0.5rem; }
.split-form { min-width: 0; }
.band-iron .split-form { background: var(--paper); color: var(--ink); padding: clamp(1.25rem, 3vw, 2.5rem); }
.ticks { display: flex; flex-direction: column; gap: 0.6rem; }
.ticks li { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); }
.ticks li::before { content: ""; width: 0.8rem; height: 0.42rem; margin-top: 0.42rem; border-left: 2px solid var(--brownstone-lt); border-bottom: 2px solid var(--brownstone-lt); transform: rotate(-45deg); }
.band-iron a { color: #fff; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.form-grid > div { min-width: 0; }
.form-grid .span { grid-column: 1 / -1; }
.lead-form label { display: block; font-weight: 500; font-size: 0.9375rem; margin-bottom: 0.3rem; }
.opt { font-weight: 400; color: var(--muted); }
.lead-form input, .lead-form select, .lead-form textarea { width: 100%; min-height: 48px; padding: 0.65rem 0.75rem; font: 400 1rem/1.4 var(--body); color: var(--ink); background: #fff; border: 1px solid #8b8075; border-radius: 0; }
.lead-form textarea { resize: vertical; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: 2px solid var(--brownstone); outline-offset: 0; border-color: var(--brownstone); }
.lead-form .btn { width: 100%; }
.lead-form .btn[disabled] { opacity: .7; cursor: progress; }
.consent { margin-top: 0.9rem; font-size: 0.8125rem; line-height: 1.45; color: var(--muted); }
.band-iron .split-form a { color: var(--ink); }
.form-status { margin-top: 0.9rem; padding: 0.7rem 0.85rem; font-size: 0.9375rem; line-height: 1.4; background: var(--bluestone); color: var(--ink); }
.form-status.is-error { background: #f6e6e1; color: #6d2f22; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 460px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

/* Three factors */
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; border-top: 1px solid var(--iron); padding-top: 1.75rem; }
.three article { display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; }
@media (max-width: 800px) { .three { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; } }

/* About teaser and newsletter */
.about-teaser { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.about-teaser > * { min-width: 0; }
.about-teaser h2 + p { margin-top: 1.25rem; max-width: 36em; }
.porch { background: var(--paper); padding: clamp(1.25rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: 0.75rem; }
.porch label { margin: 0.5rem 0 -0.45rem; }
.inline-field { display: flex; gap: 0.5rem; }
.inline-field input { min-width: 0; flex: 1 1 auto; }
.porch .btn { width: auto; flex: none; }
.porch .form-status { margin-top: 0; }
@media (max-width: 860px) { .about-teaser { grid-template-columns: minmax(0, 1fr); } }

/* About page */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 48% 55%; }
.prose { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; max-width: 40rem; }
.prose h1 { margin-top: -0.4rem; }
.prose h2 { font-size: 2rem; margin-top: 1rem; }
.prose .title-line { font-weight: 500; color: var(--muted); }
.prose .btn-row { margin-top: 1rem; }
.narrow { max-width: calc(40rem + 48px); }
@media (max-width: 860px) { .about-grid { grid-template-columns: minmax(0, 1fr); } }

/* Sell page */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 2.5rem; counter-reset: s; }
.steps li { counter-increment: s; border-top: 1px solid var(--iron); padding-top: 1rem; display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
.steps li::before { content: "Step " counter(s); font-weight: 500; font-size: 0.875rem; color: var(--muted); }
.doc-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; margin-bottom: 1.75rem; }
.doc-list li { min-width: 0; }
.doc-list b { display: block; font: 500 1.75rem/1.1 var(--display); margin-bottom: 0.5rem; }
@media (max-width: 800px) { .steps, .doc-list { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; } }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 4rem; }
.cta-row > div:first-child { flex: 1 1 22rem; min-width: 0; }
.cta-row p { margin-top: 0.75rem; color: #efe8df; max-width: 34em; }
.cta-row .btn-row { margin-top: 0; }

/* Neighborhood pages */
.hood-page { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.fact-sheet { background: var(--bluestone); padding: clamp(1.25rem, 2.5vw, 2rem); min-width: 0; }
.big-year b { display: block; font: 500 clamp(4.5rem, 8vw, 7rem)/0.95 var(--display); font-variant-numeric: tabular-nums; }
.big-year small { font-size: 0.875rem; font-weight: 500; color: var(--muted); }
.fact-sheet dl { margin: 1.5rem 0 0; display: flex; flex-direction: column; gap: 1.1rem; }
.fact-sheet dl > div { border-top: 1px solid var(--bluestone-2); padding-top: 0.9rem; }
.fact-sheet dt { font-size: 0.875rem; font-weight: 500; color: var(--muted); margin-bottom: 0.3rem; }
.fact-sheet dd { margin: 0; }
.fact-sheet dl.no-year { margin-top: 0; }
.fact-sheet dl.no-year > div:first-child { border-top: 0; padding-top: 0; }
.other-hoods { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.75rem 2.5rem; }
.other-hoods h2 { font-size: 1.5rem; }
.other-hoods div { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-weight: 500; }
@media (max-width: 860px) { .hood-page { grid-template-columns: minmax(0, 1fr); } }

/* Contact */
.contact-list { margin: 0.75rem 0 0; display: flex; flex-direction: column; }
.contact-list > div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding-block: 0.85rem; border-top: 1px solid var(--bluestone-2); }
.contact-list dt { font-weight: 500; color: var(--muted); }
.contact-list dd { margin: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }

/* Footer */
.site-foot { background: var(--iron-2); color: #efe8df; padding-block: 3.5rem 2.5rem; font-size: 0.9375rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 3fr) minmax(0, 4fr) minmax(0, 3fr); gap: 2.5rem; }
.foot-grid > div { min-width: 0; }
.foot-grid a { overflow-wrap: anywhere; }
.foot-grid a:hover, .legal a:hover { color: var(--brownstone-lt); }
.foot-grid h2 { font: 600 0.8125rem/1.3 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-iron-muted); margin-bottom: 0.75rem; }
.foot-grid li + li { margin-top: 0.35rem; }
.foot-hoods ul { columns: 2; column-gap: 1.25rem; }
.foot-hoods li { break-inside: avoid; margin-block: 0 0.35rem; }
.foot-hoods li + li { margin-top: 0; }
.foot-brand img { width: 92px; height: 64px; object-fit: contain; margin-bottom: 1rem; }
.legal { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 0.75rem; font-size: 0.8125rem; line-height: 1.55; color: var(--on-iron-muted); }
.legal p { max-width: 75em; padding-top: 0; }
.legal p:first-child { border-top: 1px solid #3f3932; padding-top: 1.5rem; max-width: none; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Instagram and link rows */
.ig-link { display: inline-flex; align-items: center; gap: 0.45rem; }
.ig { flex: none; }
.more-row { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; align-items: center; }
.foot-ig { margin-top: 0.75rem; }

/* Buyer's Guide */
.note-line { margin-top: clamp(2rem, 4vw, 3rem); padding: 1.1rem 1.25rem; background: var(--bluestone); max-width: 62rem; }
.table-scroll { overflow-x: auto; }
.guide-table { width: 100%; min-width: 680px; border-collapse: collapse; }
.guide-table th, .guide-table td { padding: 1rem 1.25rem 1rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--bluestone-2); }
.guide-table thead th { font: 500 1.75rem/1.1 var(--display); border-bottom-color: var(--iron); }
.guide-table thead td { border-bottom-color: var(--iron); }
.guide-table tbody th { font-weight: 600; width: 22%; }
.cost-table { min-width: 620px; }
.cost-table thead th { font: 600 0.9375rem/1.3 var(--body); }
.cost-table tbody th { width: 30%; }
.table-note { margin-top: 1.25rem; max-width: 62rem; }
.band-stone .guide-table th, .band-stone .guide-table td { border-bottom-color: #c4b9ac; }
.band-stone .guide-table thead th, .band-stone .guide-table thead td { border-bottom-color: var(--iron); }

/* Testimonials */
.review-empty { color: var(--muted); max-width: 32rem; }
.review-list { columns: 2; column-gap: clamp(2rem, 5vw, 4.5rem); }
.review { margin: 0 0 2.25rem; border-top: 1px solid var(--iron); padding-top: 1.25rem; break-inside: avoid; }
@media (max-width: 800px) { .review-list { columns: 1; } }
.review blockquote { margin: 0 0 0.9rem; font-size: 1.125rem; line-height: 1.5; }
.review figcaption { display: flex; flex-direction: column; font-size: 0.9375rem; }
.review figcaption span { color: var(--muted); }
/* Guide tables stack on phones so nothing is hidden off to the side */
@media (max-width: 700px) {
  .guide-table, .cost-table { min-width: 0; display: block; }
  .guide-table thead { display: none; }
  .guide-table tbody, .guide-table tr, .guide-table th, .guide-table td { display: block; width: auto; }
  .guide-table tbody tr { padding-block: 1rem; border-top: 1px solid var(--iron); }
  .guide-table tbody th, .cost-table tbody th { width: auto; padding: 0 0 0.5rem; border: 0; font: 500 1.5rem/1.15 var(--display); }
  .guide-table td, .band-stone .guide-table td { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0.75rem; padding: 0.45rem 0; border: 0; }
  .guide-table td::before { content: attr(data-label); font-weight: 600; font-size: 0.875rem; }
}

/* Past sales */
.sold-table { min-width: 720px; }
.sold-table thead th { font: 600 0.9375rem/1.3 var(--body); }
.sold-table tbody th { width: 32%; }
.sold-table td, .sold-table tbody th { padding-block: 0.85rem; }
.sold-price { font: 500 1.5rem/1.1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 700px) {
  .sold-table { min-width: 0; }
  .sold-table tbody th { width: auto; padding-block: 0 0.5rem; }
  .sold-table td { padding-block: 0.3rem; }
  .sold-price { font: inherit; }
}

/* Neighborhood tiles */
.tile-group + .tile-group { margin-top: clamp(3.5rem, 7vw, 6rem); }
.tile-group > .tile-head { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); padding-bottom: 0.9rem; border-bottom: 1px solid var(--iron); }
.tile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2.5rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.tile { display: flex; flex-direction: column; min-width: 0; text-decoration: none; }
a.tile:hover { color: inherit; }
.tile-art { aspect-ratio: 3 / 2; overflow: hidden; max-width: 100%; background: var(--iron-2); }
.tile-art svg, .tile-art img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
a.tile:hover .tile-art svg, a.tile:hover .tile-art img { transform: scale(1.03); }
.tile-art svg { fill: none; stroke: rgba(255,255,255,.78); stroke-width: 1.5; }
.tile-brownstone { background: var(--brownstone); }
.tile-north { background: var(--iron-2); }
.tile-flatbush { background: #49574f; }
.tile-south { background: #2b3a52; }
.tile-name { position: relative; margin: 1.35rem 0 0.7rem 1.25rem; padding-left: 1.25rem; font: 500 0.9375rem/1.4 var(--body); letter-spacing: 0.22em; text-transform: uppercase; }
.tile-name::before { content: ""; position: absolute; left: 0; top: -2.6rem; bottom: 0.1rem; width: 3px; background: var(--iron); }
.tile-desc { color: var(--muted); font-size: 0.9375rem; line-height: 1.5; margin-bottom: 0.75rem; }
.tile .trains { margin-top: auto; }
a.tile:hover .tile-name { color: var(--brownstone); }
@media (max-width: 900px) { .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tile-grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { a.tile:hover .tile-art svg, a.tile:hover .tile-art img { transform: none; } }

/* Home valuation survey */
[hidden] { display: none !important; }
.survey-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; font-size: 0.9375rem; }
.survey-time { font-weight: 600; }
.survey-count { color: var(--muted); font-variant-numeric: tabular-nums; }
.survey-bar { height: 4px; margin: 0.6rem 0 1.5rem; background: var(--bluestone); }
.survey-fill { display: block; height: 100%; background: var(--brownstone); transition: width .2s ease; }
.survey-q { margin-bottom: 1.1rem; font-size: clamp(1.75rem, 2.6vw, 2.25rem); outline: none; }
.survey-step .form-grid { margin-bottom: 0; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.lead-form label.choice { position: relative; display: flex; margin: 0; cursor: pointer; font-size: 1rem; }
.lead-form .choice input { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; opacity: 0; }
.choice span { display: flex; align-items: center; width: 100%; min-height: 52px; padding: 0.65rem 0.9rem; line-height: 1.3; background: #fff; border: 1px solid #8b8075; transition: background-color .12s ease, border-color .12s ease, color .12s ease; }
.choice:hover span { border-color: var(--iron); background: var(--bluestone); }
.choice input:checked + span { background: var(--iron); border-color: var(--iron); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--brownstone); outline-offset: 2px; }
.survey-other { margin-top: 1rem; }
.survey-nav { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.lead-form .survey-nav .btn { width: auto; flex: 1 1 auto; }
.lead-form .survey-nav .survey-back { flex: 0 0 auto; }
.survey-done { outline: none; }
.survey-done .survey-q { margin-bottom: 0.5rem; }
@media (max-width: 520px) { .choices { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .survey-fill, .choice span { transition: none; } }

/* Mobile quick actions */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; gap: 0.5rem; padding-top: 0.5rem; padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px)); padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); background: var(--paper); border-top: 1px solid var(--bluestone-2); }
  .mobile-bar .btn { flex: 1 1 0; min-width: 0; padding-inline: 0.5rem; }
  .site-foot { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); }
  body:has(input:focus, textarea:focus, select:focus) .mobile-bar { display: none; }
}

/* Seller costs tax table */
.tax-table { min-width: 560px; }
.tax-table thead th { font: 600 0.9375rem/1.3 var(--body); }
.tax-table td, .tax-table tbody th { padding-block: 0.85rem; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .tax-table { min-width: 0; } .tax-table .sold-price { font: inherit; font-weight: 600; } }
.band-iron .split-copy a { color: #fff; }
html { scroll-padding-top: 88px; }

/* Home page reviews */
.home-reviews h2 { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.review-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.review-row .review { margin: 0; min-width: 0; display: flex; flex-direction: column; }
.review-row blockquote { flex: 1 1 auto; }
@media (max-width: 800px) { .review-row { grid-template-columns: minmax(0, 1fr); } }

/* NYC subway line colors */
.trains i.line-ace { background: #0039a6; color: #fff; }
.trains i.line-bdfm { background: #ff6319; color: #fff; }
.trains i.line-g { background: #6cbe45; color: #fff; }
.trains i.line-jz { background: #996633; color: #fff; }
.trains i.line-l { background: #a7a9ac; color: #fff; }
.trains i.line-nqrw { background: #fccc0a; color: #111; }
.trains i.line-123 { background: #ee352e; color: #fff; }
.trains i.line-456 { background: #00933c; color: #fff; }
.trains i.line-s { background: #808183; color: #fff; }
.train-note { margin-top: 0.5rem; font-size: 0.8125rem; line-height: 1.4; color: var(--muted); }
.tile-note { margin-top: clamp(2rem, 4vw, 3rem); }
.trains { row-gap: 0.25rem; }

/* Home page neighborhood grid */
.home-grid { row-gap: clamp(1.5rem, 3vw, 2.5rem); }
.home-grid .tile-name { margin-bottom: 0; }
@media (max-width: 560px) {
  .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 0.9rem; }
  .home-grid .tile-name { margin: 1rem 0 0 0.5rem; padding-left: 0.6rem; font-size: 0.8125rem; letter-spacing: 0.12em; }
  .home-grid .tile-name::before { top: -2rem; }
}

/* Menu dropdowns */
.nav-drop { position: relative; }
.nav-drop summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 0.35rem; }
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop summary::after { content: ""; width: 0.4rem; height: 0.4rem; margin-top: -0.2rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.nav-drop[data-current] summary { text-decoration: underline; text-underline-offset: 0.4em; }
.nav-panel { position: absolute; top: calc(100% + 0.75rem); left: -0.9rem; display: flex; flex-direction: column; min-width: 11rem; background: var(--paper); border: 1px solid var(--bluestone-2); z-index: 30; }
.nav-panel a { padding: 0.7rem 0.9rem; }
.nav-panel a:hover { background: var(--bluestone); }
.primary > a, .nav-drop summary { white-space: nowrap; }

/* Jump links */
.jump { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.jump a { padding: 0.5rem 0.85rem; border: 1px solid var(--bluestone-2); text-decoration: none; font-weight: 500; font-size: 0.9375rem; }
.jump a:hover { border-color: var(--iron); color: var(--ink); background: var(--bluestone); }
#how-it-works, .tile-group { scroll-margin-top: 88px; }

/* Tap-to-open sections on phones */
.fold summary { list-style: none; cursor: default; }
.fold summary::-webkit-details-marker { display: none; }
.fold h3 { display: inline; }
.fold-body { margin-top: 0.6rem; }
.doc-list h3 { font-size: 1.75rem; }
@media (max-width: 760px) {
  .fold summary { cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; min-height: 32px; }
  .fold summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--brownstone); }
  .fold[open] summary::after { content: "\2013"; }
  .steps, .doc-list { gap: 1rem; }
}

/* Form first on phones */
.form-first { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "head form" "rest form"; grid-template-rows: auto 1fr; gap: 1.25rem clamp(2.5rem, 6vw, 6rem); align-items: start; }
.ff-head { grid-area: head; } .ff-form { grid-area: form; } .ff-rest { grid-area: rest; }
@media (max-width: 860px) { .form-first { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "form" "rest"; grid-template-rows: none; } }

/* Checklist */
.checklist { max-width: 46rem; }
.checklist li::before { border-color: var(--brownstone); }
.about-points li::before { border-color: var(--brownstone); }

/* Tax table stays a table on phones */
@media (max-width: 700px) {
  .guide-table.tax-table { display: table; width: 100%; font-size: 0.875rem; }
  .guide-table.tax-table thead { display: table-header-group; }
  .guide-table.tax-table tbody { display: table-row-group; }
  .guide-table.tax-table tr { display: table-row; padding: 0; border: 0; }
  .guide-table.tax-table th, .guide-table.tax-table td { display: table-cell; padding: 0.6rem 0.5rem 0.6rem 0; font: inherit; border-bottom: 1px solid #c4b9ac; width: auto; }
  .guide-table.tax-table td::before { content: none; }
  .guide-table.tax-table thead th { font-weight: 600; }
  .guide-table.tax-table td.sold-price { font-weight: 600; }
}

/* Sold list */
.sold-list { border-top: 1px solid var(--iron); }
.sold-item { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 0.25rem 1.5rem; align-items: baseline; padding-block: 0.8rem; border-bottom: 1px solid var(--bluestone-2); }
.sold-amount { font: 500 1.5rem/1.1 var(--display); font-variant-numeric: tabular-nums; }
.sold-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 1rem; min-width: 0; }
.sold-main b { font-weight: 600; }
.sold-main small { color: var(--muted); font-size: 0.875rem; }
.sold-toggle { margin-top: 1.5rem; }
@media (max-width: 560px) { .sold-item { grid-template-columns: 6rem minmax(0, 1fr); gap: 0.1rem 0.75rem; padding-block: 0.65rem; } .sold-amount { font-size: 1.25rem; } .sold-main { flex-direction: column; } }

/* Long reviews */
.review-more { padding: 0; margin: -0.4rem 0 0.9rem; background: none; border: 0; font: 600 0.9375rem var(--body); color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }

/* Neighborhood guides */
.hood-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.fact-line { display: none; }
@media (max-width: 860px) {
  .hood-page .fact-sheet { display: none; }
  .fact-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; font-weight: 500; }
  .fact-line .train-note { flex-basis: 100%; margin: 0; }
}

/* Footer columns */
.foot-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 3fr) minmax(0, 4fr); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; } }
@media (max-width: 860px) { .foot-grid > :nth-child(-n+2) { grid-column: 1 / -1; } }
.foot-grid a { overflow-wrap: anywhere; }
.sold-toggle .btn-line { background: transparent; }
.sold-toggle .btn-line:hover { background: var(--iron); color: var(--paper); }

/* Take-home calculator */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.calc-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.calc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 1.25rem; align-items: start; }
.calc-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.calc-field[hidden], .calc-rows > [hidden] { display: none; }
.calc-type, .calc-field:first-child { grid-column: 1 / -1; }
.calc label, .calc legend { display: block; padding: 0; margin-bottom: 0.3rem; font-weight: 500; font-size: 0.9375rem; }
.calc-input { position: relative; display: flex; align-items: center; min-height: 52px; padding-inline: 0.8rem; background: #fff; border: 1px solid #8b8075; }
.calc-input:focus-within { outline: 2px solid var(--brownstone); outline-offset: 0; border-color: var(--brownstone); }
.calc-input span { color: var(--muted); }
.calc-input input { flex: 1; width: 100%; min-width: 0; height: 50px; padding: 0 0.35rem; font: 500 1.0625rem/1.2 var(--body); color: var(--ink); background: transparent; border: 0; outline: 0; font-variant-numeric: tabular-nums; }
.calc-field:first-child .calc-input input { font: 500 1.75rem/1.1 var(--display); }
.calc-help { margin-top: 0.35rem; font-size: 0.8125rem; line-height: 1.4; color: var(--muted); }
.calc-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.calc-seg label { position: relative; margin: 0; }
.calc-seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.calc-seg span { display: flex; align-items: center; justify-content: center; min-height: 48px; background: #fff; border: 1px solid #8b8075; transition: background-color .18s ease, color .18s ease; }
.calc-seg input:checked + span { background: var(--iron); border-color: var(--iron); color: #fff; }
.calc-seg input:focus-visible + span { outline: 2px solid var(--brownstone); outline-offset: 2px; }
.calc-result { padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--iron); color: #fff; }
.calc-label { font-weight: 500; font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-iron-muted); }
.calc-total { margin-top: 0.4rem; font: 500 clamp(3rem, 6vw, 4.75rem)/1 var(--display); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.calc-sub { min-height: 1.4em; margin-top: 0.6rem; font-size: 0.9375rem; line-height: 1.4; color: var(--brownstone-lt); }
.calc-bar { display: flex; gap: 2px; height: 10px; margin-top: 1.25rem; background: var(--iron-2); }
.calc-bar i { display: block; width: 0; transition: width .35s cubic-bezier(.2,.7,.2,1); }
.bar-home { background: #f1ebe3; }
.bar-costs { background: #b08a6c; }
.bar-mort { background: #857a6e; }
.calc-rows { margin: 1.25rem 0 1.5rem; }
.calc-rows > div { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.55rem; border-bottom: 1px solid rgba(255,255,255,.14); font-size: 0.9375rem; }
.calc-rows dt { color: var(--on-iron-muted); }
.calc-rows dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-rows dd.is-empty { color: var(--on-iron-muted); }
.calc-result .btn { width: 100%; }
@media (max-width: 900px) { .calc-grid { grid-template-columns: minmax(0, 1fr); } }
.calc-key { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin-top: 0.6rem; font-size: 0.8125rem; color: var(--on-iron-muted); }
.calc-key span { display: inline-flex; align-items: center; gap: 0.4rem; }
.calc-key span::before { content: ""; width: 0.6rem; height: 0.6rem; }
.key-home::before { background: #f1ebe3; }
.key-costs::before { background: #b08a6c; }
.key-mort::before { background: #857a6e; }

/* Subtle motion. Everything here stays off for visitors who ask for reduced motion. */
.btn { transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .12s ease; }
.site-head { view-transition-name: site-head; transition: box-shadow .25s ease; }
.site-head.is-scrolled { box-shadow: 0 6px 18px rgba(31,27,24,.08); }
.mobile-bar { view-transition-name: mobile-bar; }
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .55s cubic-bezier(.2,.7,.2,1), transform .55s cubic-bezier(.2,.7,.2,1); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.05); } to { transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
  html { scroll-behavior: smooth; }
  .btn:active { transform: scale(.98); }
  .hero-inner > * { animation: rise .65s cubic-bezier(.2,.7,.2,1) backwards; }
  .hero-inner > :nth-child(2) { animation-delay: .07s; }
  .hero-inner > :nth-child(3) { animation-delay: .14s; }
  .hero-inner > :nth-child(4) { animation-delay: .21s; }
  .hero-photo img { animation: settle 1.5s cubic-bezier(.2,.7,.2,1) backwards; }
  .band.page-top .wrap > * { animation: rise .6s cubic-bezier(.2,.7,.2,1) backwards; }
  .band.page-top .wrap > :nth-child(2) { animation-delay: .07s; }
  .nav-drop[open] .nav-panel { animation: drop .16s ease; }
  .fold[open] .fold-body { animation: appear .25s ease; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
@media print { .reveal { opacity: 1 !important; transform: none !important; } }

/* Compass logo in the header */
.brand-sub { display: inline-flex; align-items: center; gap: 0.4rem; }
.brand-sub img { width: 91px; height: 13px; }
@media (max-width: 360px) { .brand-sub img { width: 76px; height: auto; } }

/* Full-width home page photo with a dark overlay behind the text */
@media (min-width: 1101px) {
  .hero { position: relative; grid-template-columns: minmax(0, 1fr); min-height: 640px; }
  .hero-photo { position: absolute; inset: 0; min-height: 0; }
  .hero-photo img { object-position: 100% 20%; }
  .hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(31,27,24,.95) 0%, rgba(31,27,24,.92) 36%, rgba(31,27,24,.8) 49%, rgba(31,27,24,.22) 59%, rgba(31,27,24,0) 64%); }
  .hero-text { position: relative; z-index: 1; padding-right: 48%; }
}
@media (min-width: 1101px) and (max-width: 1180px) {
  .hero-photo::after { background: linear-gradient(90deg, rgba(31,27,24,.95) 0%, rgba(31,27,24,.92) 42%, rgba(31,27,24,.7) 54%, rgba(31,27,24,0) 68%); }
  .hero-text { padding-right: 46%; }
}
@media (min-width: 1700px) { .hero { min-height: 720px; } .hero-photo img { object-position: 100% 45%; } }

/* Hat palette: brown and charcoal blend together, so buttons and focus rings turn light on dark sections */
.hero a.btn-accent, .band-iron a.btn-accent, .calc-result a.btn-accent { background: var(--bluestone); color: var(--iron); }
.hero a.btn-accent:hover, .band-iron a.btn-accent:hover, .calc-result a.btn-accent:hover { background: #fff; color: var(--iron); }
.hero :focus-visible, .band-iron :focus-visible, .calc-result :focus-visible, .site-foot :focus-visible { outline-color: var(--paper); }
.band-iron .split-form :focus-visible { outline-color: var(--brownstone); }
.primary .btn { background: var(--brownstone); color: #fff; }
.primary .btn:hover { background: #684a35; color: #fff; }
.site-foot { background: #171411; }

/* Compass Military logo */
.cm-logo { width: 100%; max-width: 280px; height: auto; margin-top: 1.5rem; }
.foot-brand img.cm-foot { display: block; width: 100%; max-width: 190px; height: auto; object-fit: contain; margin: 1.25rem 0 0; }

/* Veterans page */
.vet-why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; border-top: 1px solid var(--iron); padding-top: 1.75rem; }
.vet-why article { display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; }
.vet-why .more { margin-top: 0.25rem; }
.vet-table, .vet-types { min-width: 0; }
.vet-table tbody th { width: 28%; }
.vet-types tbody th { width: 30%; }
@media (max-width: 800px) { .vet-why { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; } }

/* Instagram icon link */
.ig-link { justify-content: center; width: 44px; height: 44px; margin-left: -10px; text-decoration: none; }
.ig-link .ig { width: 24px; height: 24px; }
.more-row .ig-link, .foot-ig .ig-link, dd .ig-link { vertical-align: middle; }
dd .ig-link { margin-block: -10px; }
@media (max-width: 760px) {
  .vet-table tbody th, .vet-types tbody th { width: auto; }
  .vet-table td, .band-stone .vet-table td { display: block; }
  .vet-table td::before { content: none; }
}

/* Veterans page banner */
.photo-hero h1 { font-size: clamp(2.9rem, 5vw, 4.75rem); line-height: 1.02; }
.photo-hero .hero-photo img { object-position: 50% 28%; }
.photo-hero .cm-logo { display: block; }
@media (max-width: 860px) { .photo-hero .hero-photo img { object-position: 40% 28%; } }
@media (min-width: 1101px) {
  .photo-hero .hero-photo { left: 40%; }
  .photo-hero .hero-photo img { object-position: 50% 28%; }
  .photo-hero .hero-photo::after { background: linear-gradient(90deg, rgba(31,27,24,1) 0%, rgba(31,27,24,.95) 8%, rgba(31,27,24,.7) 17%, rgba(31,27,24,.25) 26%, rgba(31,27,24,0) 34%); }
}
@media (min-width: 1101px) and (max-width: 1240px) { .photo-hero .hero-text { padding-right: 52%; } }

/* Photo positions for each page banner */
.photo-hero.photo-dumbo .hero-photo img { object-position: 62% 42%; }
.photo-hero.photo-bridge .hero-photo img { object-position: 66% 62%; }
.photo-hero.photo-park .hero-photo img { object-position: 52% 32%; }
@media (max-width: 1100px) { .photo-hero.photo-dumbo .hero-photo img { object-position: 50% 42%; } }
