/* brownsvillebtx.com · Hector's iOS style, 2027 edition.
   System fonts (SF Pro), Apple system colors, Liquid Glass on listings, light/dark from the device.
   One primary action per screen; the contact form is the main door. */

:root {
  color-scheme: light dark;
  --bg: #f5f5f7;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --soft: #6e6e73;
  --tertiary: #86868b;
  --line: rgb(60 60 67 / .14);
  --fill: rgb(120 120 128 / .12);
  --link: #0066cc;
  --accent: #007aff;
  --accent-press: #0062cc;
  --green: #34c759;
  --shadow: 0 1px 1px rgb(0 0 0 / .03), 0 10px 30px -12px rgb(0 0 0 / .16);
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --rounded: ui-rounded, -apple-system, BlinkMacSystemFont, "SF Pro Rounded", sans-serif;
  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 14px;
  --gutter: clamp(16px, 4vw, 32px);
  --max: 1120px;
  --glass-bg: rgb(255 255 255 / .22);
  --glass-edge: rgb(255 255 255 / .55);
  --glass-ink: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1c1c1e;
    --ink: #f5f5f7;
    --soft: #a1a1a6;
    --tertiary: #8e8e93;
    --line: rgb(84 84 88 / .5);
    --fill: rgb(120 120 128 / .24);
    --link: #2997ff;
    --accent: #0a84ff;
    --accent-press: #409cff;
    --green: #30d158;
    --shadow: none;
    --glass-bg: rgb(30 30 32 / .28);
    --glass-edge: rgb(255 255 255 / .22);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.5 var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; }
h1 { font-size: clamp(36px, 6.2vw, 68px); font-weight: 700; line-height: 1.04; letter-spacing: -0.032em; text-wrap: balance; }
h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 700; line-height: 1.12; letter-spacing: -0.022em; text-wrap: balance; }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.012em; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.block { margin-top: clamp(44px, 7vw, 88px); }
.small { font-size: 13px; color: var(--soft); }
.muted { color: var(--soft); }
.center { text-align: center; }
.hp { position: absolute; left: -9999px; }
.mini { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--soft); margin-bottom: 12px; }

/* ---------- Bar ---------- */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 72%, transparent); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px); border-bottom: .5px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); margin-right: auto; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.brand span { display: grid; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
.brand small { font-size: 11px; font-weight: 400; color: var(--soft); }
.top nav { display: flex; gap: 22px; font-size: 14px; }
.top nav a { color: var(--soft); }
.top nav a:hover { color: var(--ink); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 50px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: 600 17px/1 var(--text); letter-spacing: -0.01em; cursor: pointer; transition: transform .12s ease, background .15s; }
.btn:hover { background: var(--accent-press); color: #fff; text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; }
.btn.sm { min-height: 34px; padding: 0 16px; font-size: 14px; }
.btn.wide { width: 100%; }
.link { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; font-size: 17px; }
.row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-top: 28px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(36px, 8vw, 104px) 0 0; }
.hero .wrap { max-width: var(--max); }
.hero h1, .hero .lede { max-width: 880px; }
.hero.home h1 { font-size: clamp(42px, 8.4vw, 96px); letter-spacing: -0.04em; max-width: none; }
.hero .quiet { color: var(--tertiary); }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--accent); margin-bottom: 14px; }
.lede { margin-top: 20px; max-width: 36em; font-size: clamp(18px, 2.1vw, 22px); line-height: 1.4; color: var(--soft); letter-spacing: -0.012em; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--tertiary); margin-bottom: 14px; }
.crumbs a { color: var(--soft); }
.hero-img { width: 100%; border-radius: var(--r-xl); }
.center-col { text-align: center; display: grid; justify-items: center; }
.center-col .row { justify-content: center; }
.ok { color: var(--green); margin-bottom: 16px; }

/* ---------- Section header ---------- */
.sh { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sh a { display: inline-flex; align-items: center; gap: 2px; font-size: 15px; font-weight: 500; white-space: nowrap; }

/* ---------- Liquid Glass listing cards ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 300px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); padding: 4px max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))) 18px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > div { scroll-snap-align: start; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }

.lg-card { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r-xl); overflow: hidden; background: var(--fill); color: var(--glass-ink); box-shadow: var(--shadow); isolation: isolate; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.lg-card:hover { text-decoration: none; color: var(--glass-ink); transform: translateY(-3px) scale(1.01); }
.lg-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.lg-card:hover img { transform: scale(1.04); }
.lg-card::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(to bottom, transparent, rgb(0 0 0 / .28)); z-index: -1; pointer-events: none; }
.lg-glass {
  position: absolute; left: 10px; right: 10px; bottom: 10px; display: grid; gap: 1px; padding: 14px 16px 15px;
  border-radius: 20px; background: var(--glass-bg);
  -webkit-backdrop-filter: blur(22px) saturate(190%) brightness(1.04); backdrop-filter: blur(22px) saturate(190%) brightness(1.04);
  box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 0 .5px rgb(255 255 255 / .25), inset 0 -10px 24px -18px rgb(255 255 255 / .55), 0 8px 24px -10px rgb(0 0 0 / .35);
  text-shadow: 0 1px 2px rgb(0 0 0 / .25);
}
.lg-glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(135deg, rgb(255 255 255 / .35), transparent 42%); opacity: .55; pointer-events: none; }
.lg-card .price { font-family: var(--rounded); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.lg-card .addr { font-size: 15px; font-weight: 600; }
.lg-card .facts { font-size: 13px; opacity: .9; }
.lg-chip { position: absolute; top: 12px; left: 12px; padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; background: rgb(255 255 255 / .2); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%); box-shadow: inset 0 1px 0 rgb(255 255 255 / .45); text-shadow: 0 1px 2px rgb(0 0 0 / .3); }
.lg-chip.sold { background: color-mix(in srgb, var(--green) 70%, transparent); }
.lg-card.noimg { aspect-ratio: auto; min-height: 210px; background: linear-gradient(160deg, color-mix(in srgb, var(--green) 38%, #1c1c1e), #2c2c2e); }

/* Explore tiles: glass over color fields */
.explore { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ex { position: relative; display: block; aspect-ratio: 1 / 1.05; border-radius: var(--r-xl); overflow: hidden; color: #fff; isolation: isolate; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.ex:hover { transform: translateY(-3px); text-decoration: none; color: #fff; }
.ex .lg-glass strong { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; }
.ex .lg-glass span { font-size: 13px; opacity: .92; }
.ex-luxury { background: radial-gradient(120% 90% at 20% 10%, #f3d9a4, transparent 55%), radial-gradient(90% 80% at 90% 90%, #5b3a1e, transparent 60%), linear-gradient(160deg, #b68a4a, #3b2715); }
.ex-water { background: radial-gradient(120% 90% at 10% 0%, #a7f0ff, transparent 55%), radial-gradient(80% 70% at 90% 100%, #004e92, transparent 60%), linear-gradient(170deg, #36b9e6, #0a3d75); }
.ex-new { background: radial-gradient(120% 90% at 15% 5%, #d9ffd1, transparent 55%), radial-gradient(90% 80% at 85% 95%, #0f5b3a, transparent 60%), linear-gradient(165deg, #59c48a, #13452f); }
.ex-rent { background: radial-gradient(120% 90% at 15% 5%, #e3d4ff, transparent 55%), radial-gradient(90% 80% at 85% 95%, #2c1a6b, transparent 60%), linear-gradient(165deg, #8a6cf0, #2a1c63); }

/* ---------- Brownsville now ---------- */
.pulse-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.pulse { background: var(--surface); border-radius: var(--r-lg); padding: 22px; display: grid; gap: 10px; align-content: start; box-shadow: var(--shadow); }
.pulse.big { grid-column: 1 / -1; }
.pulse.big h3 { font-size: clamp(22px, 2.6vw, 28px); }
.pulse h3 { line-height: 1.25; }
.pulse p { color: var(--soft); font-size: 15px; line-height: 1.5; }
.pulse .why { color: var(--ink); background: var(--fill); padding: 10px 12px; border-radius: 12px; }
.pulse .why b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); margin-bottom: 2px; }
.pulse .src { font-size: 12px; color: var(--tertiary); }
.pulse .src a { color: var(--tertiary); text-decoration: underline; text-underline-offset: 2px; }
.cat { justify-self: start; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--fill); color: var(--ink); }
.cat-space { background: #1d1d1f; color: #fff; }
.cat-energy { background: color-mix(in srgb, #ff9f0a 22%, transparent); color: #b25000; }
.cat-port { background: color-mix(in srgb, #0a84ff 18%, transparent); color: var(--accent); }
.cat-development, .cat-downtown { background: color-mix(in srgb, #34c759 20%, transparent); color: #1f7a38; }
@media (prefers-color-scheme: dark) { .cat-space { background: #f5f5f7; color: #000; } .cat-energy { color: #ffb340; } .cat-development, .cat-downtown { color: #4cd964; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 10px; }
.stats div { background: var(--surface); padding: 18px 20px; display: grid; gap: 2px; }
.stats strong { font-family: var(--rounded); font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; letter-spacing: -0.02em; }
.stats span { font-size: 13px; color: var(--soft); }

/* ---------- Long-form reading ---------- */
.prose > p, .prose section { max-width: 700px; }
.prose > p, .prose section p { font-size: 18px; line-height: 1.62; margin: 0 0 18px; color: var(--ink); }
.prose section { margin-top: 44px; }
.prose h2 { font-size: clamp(24px, 2.8vw, 30px); margin-bottom: 14px; }
.prose ul { padding-left: 1.2em; margin: 0 0 18px; }
.prose li { font-size: 18px; line-height: 1.55; margin-bottom: 8px; }
.prose li::marker { color: var(--tertiary); }

/* ---------- Grouped lists ---------- */
.list { background: var(--surface); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.list > * + * { border-top: .5px solid var(--line); }
.list.links a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; color: var(--tertiary); }
.list.links a:hover { text-decoration: none; background: var(--fill); }
.list.links span { display: grid; gap: 2px; color: var(--soft); font-size: 14px; }
.list.links b { color: var(--ink); font-size: 17px; font-weight: 600; }
.faq .list, .faq h2 { max-width: 760px; }
.list.sales > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 20px; }
.list.sales span { display: grid; gap: 2px; color: var(--soft); font-size: 14px; line-height: 1.4; min-width: 0; }
.list.sales b { color: var(--ink); font-size: 16px; font-weight: 600; }
.list.sales em { font-style: normal; font-size: 14px; font-weight: 600; color: var(--ink); text-align: right; white-space: nowrap; line-height: 1.4; }
.list.sales em small { font-size: 12px; font-weight: 400; color: var(--soft); white-space: normal; }
.faq h2 { margin-bottom: 16px; }
.faq details { padding: 16px 20px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-top: 7px; border-right: 2px solid var(--tertiary); border-bottom: 2px solid var(--tertiary); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { margin-top: 10px; color: var(--soft); line-height: 1.55; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { padding: 9px 16px; border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 500; box-shadow: var(--shadow); }
.chips a:hover { text-decoration: none; color: var(--accent); }
.sources { margin-top: 32px; }
.sources summary { cursor: pointer; font-size: 13px; color: var(--soft); }
.sources ul { padding-left: 1.1em; font-size: 13px; }
.sources a { color: var(--tertiary); word-break: break-all; }

/* ---------- Contact: the main door ---------- */
.contact-sec { margin-top: clamp(56px, 9vw, 112px); padding: clamp(48px, 7vw, 88px) 0; background: var(--surface); }
.contact-grid { display: grid; grid-template-columns: .85fr 1fr; gap: clamp(28px, 6vw, 72px); align-items: start; }
.agent img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin-bottom: 18px; }
.agent h2 { font-size: clamp(28px, 3.6vw, 40px); }
.agent > p { margin-top: 12px; color: var(--soft); font-size: 17px; line-height: 1.5; max-width: 28em; }
.direct { list-style: none; padding: 0; margin: 22px 0 14px; display: grid; gap: 8px; max-width: 340px; }
.direct a { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: var(--r-md); background: var(--bg); color: var(--accent); }
.direct a:hover { text-decoration: none; background: var(--fill); }
.direct span { display: grid; color: var(--ink); font-size: 15px; }
.direct b { font-size: 12px; font-weight: 500; color: var(--soft); }

.lead { display: grid; gap: 14px; }
.seg { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg legend { font-size: 13px; color: var(--soft); padding: 0 4px 8px; }
.seg .opts, .seg { --pad: 3px; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--fill); border-radius: 12px; padding: 3px; }
.seg legend { grid-column: 1 / -1; float: left; width: 100%; margin: -3px 0 0; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: 9px 4px; border-radius: 9px; font-size: 15px; font-weight: 500; color: var(--ink); transition: background .2s, box-shadow .2s; }
.seg input:checked + span { background: var(--surface); box-shadow: 0 2px 8px rgb(0 0 0 / .12), 0 0 0 .5px rgb(0 0 0 / .04); font-weight: 600; }
.seg input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); }
@media (prefers-color-scheme: dark) { .seg input:checked + span { background: #636366; } }
.group { background: var(--bg); border-radius: var(--r-md); overflow: hidden; }
.group label { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 10px; padding: 0 16px; min-height: 50px; }
.group label + label { border-top: .5px solid var(--line); }
.group label > span { font-size: 15px; color: var(--ink); }
.group input, .group select, .group textarea { width: 100%; min-width: 0; border: 0; background: transparent; font: 400 17px/1.3 var(--text); color: var(--ink); padding: 14px 0; outline: none; -webkit-appearance: none; appearance: none; resize: none; }
.group select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238e8e93' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right center; padding-right: 18px; }
.group ::placeholder { color: var(--tertiary); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.45; color: var(--soft); }
.consent input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }

/* ---------- Footer ---------- */
.foot { padding: 32px 0 48px; font-size: 12px; line-height: 1.6; color: var(--soft); border-top: .5px solid var(--line); }
.foot .wrap { display: grid; gap: 12px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; }
.foot-links a { color: var(--ink); }
.foot p a, .foot .small a { color: var(--soft); text-decoration: underline; text-underline-offset: 2px; }
.foot strong { color: var(--ink); font-weight: 600; }

/* ---------- Phone ---------- */
.dock { display: none; }
@media (max-width: 860px) {
  .top nav, .top .btn.sm { display: none; }
  .explore { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .agent { display: grid; grid-template-columns: 56px 1fr; column-gap: 14px; align-items: center; }
  .agent img { width: 56px; height: 56px; margin: 0; }
  .agent h2 { font-size: 26px; }
  .agent > p, .agent .direct, .agent .small { grid-column: 1 / -1; }
  .direct { max-width: none; grid-template-columns: 1fr 1fr; }
  .direct a { padding: 10px 12px; }
  .row .btn { flex: 1 1 100%; }
  .row .link { margin: 0 auto; }
  .lg-card .price { font-size: 22px; }
  .dock {
    position: fixed; left: 14px; right: 14px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40;
    display: flex; gap: 8px; padding: 6px; border-radius: 999px;
    background: color-mix(in srgb, var(--bg) 55%, transparent);
    -webkit-backdrop-filter: blur(24px) saturate(190%); backdrop-filter: blur(24px) saturate(190%);
    box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 0 .5px var(--line), 0 12px 32px -12px rgb(0 0 0 / .35);
    transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .3s;
  }
  .dock-main { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; font-size: 17px; }
  .dock-call { width: 48px; min-height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--fill); color: var(--accent); }
  .dock a:hover { text-decoration: none; }
  .dock-main:hover { color: #fff; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  body:has(.lead :focus) .dock { transform: translateY(140%); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .lg-glass, .lg-chip { background: rgb(0 0 0 / .5); } }
@media (max-width: 860px) {
  .ex { aspect-ratio: 1 / .92; border-radius: 24px; }
  .ex .lg-glass { left: 8px; right: 8px; bottom: 8px; padding: 10px 12px 11px; border-radius: 16px; }
  .ex .lg-glass strong { font-size: 16px; }
  .ex .lg-glass span { font-size: 12px; }
  .dock { transform: translateY(140%); opacity: 0; }
  body.show-dock .dock { transform: none; opacity: 1; }
}
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.seg-label { font-size: 13px; color: var(--soft); margin: 0 4px -6px; }
.direct span { white-space: nowrap; }
@media (max-width: 400px) { .direct span { font-size: 14px; } .direct a { gap: 10px; padding: 10px; } }
.seg legend.sr { width: 1px; height: 1px; float: none; padding: 0; margin: 0; }

/* ===================== 2027 polish ===================== */

/* Vignette: every property photo gets the same cinematic frame.
   Light grade on the photo, then two layers: an elliptical edge falloff and a soft floor for the glass label. */
.vig { position: absolute; inset: 0; display: block; overflow: hidden; z-index: -1; background: #111; }
.vig img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.08) contrast(1.06) brightness(.97); transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.vig::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 95% at 50% 42%, transparent 48%, rgb(0 0 0 / .22) 74%, rgb(0 0 0 / .55) 100%),
    linear-gradient(to bottom, rgb(0 0 0 / .18), transparent 22%, transparent 58%, rgb(0 0 0 / .42));
}
.lg-card > img { display: none; }
.lg-card::after { display: none; }
.lg-card:hover .vig img, .showcase:hover .vig img { transform: scale(1.045); }
.lg-card .lg-glass { padding: 12px 14px 13px; gap: 0; }
.lg-card .addr { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-card .facts { font-size: 12.5px; opacity: .88; }
.hero-img { position: relative; aspect-ratio: 3 / 2; border-radius: var(--r-xl); overflow: hidden; isolation: isolate; }

/* Featured property: the home page opens on a home, not a paragraph */
.showcase-wrap { margin-top: clamp(32px, 5vw, 56px); }
.showcase { position: relative; display: block; aspect-ratio: 16 / 8; border-radius: 34px; overflow: hidden; isolation: isolate; color: #fff; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .45); }
.showcase:hover { text-decoration: none; color: #fff; }
.showcase .vig::after { background: radial-gradient(110% 100% at 50% 38%, transparent 42%, rgb(0 0 0 / .28) 72%, rgb(0 0 0 / .62) 100%), linear-gradient(to bottom, transparent 55%, rgb(0 0 0 / .45)); }
.showcase .lg-glass { left: 20px; right: auto; bottom: 20px; min-width: min(360px, calc(100% - 40px)); padding: 18px 22px 20px; border-radius: 24px; gap: 2px; }
.showcase .kicker { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.showcase .price { font-family: var(--rounded); font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
.showcase .addr { font-size: 16px; font-weight: 600; }
.showcase .facts { font-size: 14px; opacity: .9; }

/* Trust row: three quiet facts */
.trust { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border-radius: var(--r-lg); overflow: hidden; background: var(--line); }
.trust li { background: var(--surface); padding: 14px 18px; display: grid; gap: 1px; }
.trust b { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.trust span { font-size: 12px; color: var(--soft); }

/* On this page */
.toc { display: flex; gap: 8px; margin-top: 28px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; -webkit-mask-image: linear-gradient(to right, #000 88%, transparent); mask-image: linear-gradient(to right, #000 88%, transparent); }
.toc::-webkit-scrollbar { display: none; }
.toc a { flex: none; padding: 7px 14px; border-radius: 999px; background: var(--fill); color: var(--ink); font-size: 13px; font-weight: 500; }
.toc a:hover { text-decoration: none; background: color-mix(in srgb, var(--accent) 14%, var(--fill)); }
.prose section { scroll-margin-top: 80px; }

/* Calm reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .showcase { aspect-ratio: 4 / 5; border-radius: 28px; }
  .showcase .lg-glass { left: 12px; right: 12px; bottom: 12px; min-width: 0; padding: 14px 16px 16px; }
  .trust { grid-template-columns: repeat(3, 1fr); }
  .trust li { padding: 12px 10px; text-align: center; }
  .trust b { font-size: 13px; }
  .trust span { font-size: 11px; }
}
@media (prefers-color-scheme: dark) { .showcase { box-shadow: none; } }
/* Loading state: soft neutral frame, photo fades in when ready */
.vig { background: linear-gradient(160deg, #d9d9de, #b9b9c0); }
@media (prefers-color-scheme: dark) { .vig { background: linear-gradient(160deg, #2c2c2e, #1c1c1e); } }
.vig img { opacity: 0; transition: opacity .5s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.vig img.ok { opacity: 1; }
.no-js .vig img, noscript ~ .vig img { opacity: 1; }
/* Market today */
.market .stats div { gap: 3px; }
.market .stats em { font-style: normal; font-size: 12px; font-weight: 600; }
.market .stats em.up { color: var(--green); }
.market .stats em.down { color: #ff3b30; }
.market .trend { margin: 4px 0 8px; font-size: 17px; color: var(--ink); max-width: 44em; }
/* Home value page */
.steps { list-style: none; padding: 0; margin: 20px 0 16px; display: grid; gap: 12px; }
.steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; font-size: 16px; }
.steps b { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 14px; }
.value .seg-label { margin: 6px 4px -6px; }
.disclaimer p { max-width: 760px; line-height: 1.55; }
@media (max-width: 860px) { .agent .steps { grid-column: 1 / -1; } }

/* ===================== Featured carousel ===================== */
.feature { position: relative; }
.feature-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 34px; outline: none; }
.feature-track::-webkit-scrollbar { display: none; }
.feature-track > .showcase { scroll-snap-align: center; scroll-snap-stop: always; }
.feature-ui { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.dots { display: flex; gap: 7px; padding: 7px 10px; border-radius: 999px; background: var(--fill); }
.dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: var(--tertiary); opacity: .45; cursor: pointer; transition: width .3s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.dot.on { width: 20px; opacity: 1; background: var(--ink); }
.fbtn { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--fill); color: var(--ink); cursor: pointer; transition: background .2s, transform .1s; }
.fbtn:hover { background: color-mix(in srgb, var(--accent) 16%, var(--fill)); }
.fbtn:active { transform: scale(.94); }
@media (max-width: 860px) { .feature-track { border-radius: 28px; } .fbtn { display: none; } }

/* Language switch */
.lang { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border-radius: 999px; background: var(--fill); color: var(--ink); font-size: 13px; font-weight: 600; }
.lang:hover { text-decoration: none; background: color-mix(in srgb, var(--accent) 14%, var(--fill)); }
@media (max-width: 860px) { .top .lang { margin-left: auto; } }

/* Market report signup */
.report { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; padding: clamp(24px, 4vw, 40px); border-radius: var(--r-xl); background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent) 16%, var(--surface)), var(--surface) 60%); box-shadow: var(--shadow); }
.report h2 { font-size: clamp(22px, 2.8vw, 30px); }
.report p { margin-top: 8px; color: var(--soft); }
.report-form { display: grid; gap: 10px; }
.report-form .group { background: var(--bg); }
.group.inline label { grid-template-columns: 1fr; padding: 0 16px; }
@media (max-width: 860px) { .report { grid-template-columns: 1fr; gap: 18px; } .report-form .btn { width: 100%; } }
/* City picker chips (custom search) */
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.picks label { position: relative; }
.picks input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.picks span { display: block; padding: 8px 14px; border-radius: 999px; background: var(--bg); font-size: 15px; font-weight: 500; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); transition: background .15s, color .15s, box-shadow .15s; }
.picks input:checked + span { background: var(--accent); color: #fff; box-shadow: none; }
.picks input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); }
.chips a.chip-accent { background: var(--accent); color: #fff; }
.chips a.chip-accent:hover { color: #fff; filter: brightness(1.08); }
/* Form first, phone second */
.form-col { display: grid; gap: 18px; }
.after-form { display: grid; gap: 8px; }
.after-form .direct { margin: 0; max-width: none; grid-template-columns: 1fr 1fr; }
.after-form .small { margin: 0 4px; }
/* Recent sales / market analysis prompt */
.analysis { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(22px, 4vw, 36px); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow); }
.analysis h2 { font-size: clamp(22px, 2.8vw, 30px); }
.analysis p { margin-top: 8px; color: var(--soft); max-width: 40em; }
.analysis .btn { flex: none; }
@media (max-width: 860px) { .analysis { flex-direction: column; align-items: stretch; } }

/* Rentals page: homes first, then a short form */
.rent-hero { padding-bottom: 8px; }
.rent-homes { margin-top: 8px; }
.rent-all { aspect-ratio: 4 / 5; height: 100%; }
.rent-form { max-width: 560px; display: grid; gap: 16px; }
.rent-form h2 { font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.02em; }
.rent-form .lead { display: grid; gap: 14px; }
.rent-homes + .contact-sec { margin-top: 16px; }
.sub-card { display: grid; gap: 10px; align-content: start; }

