/* CDMX Apartments — homepage v2. Bento grid + schematic neighborhood map.
 * Mechanics regenerated from opus-100 #068 (bento, cursor spotlight, gradient mesh)
 * and #036 (Vignelli-style transit diagram, line/zone spotlight). Brand tokens only. */

:root {
  --page: #f3efe8;
  --tile: #fffdf9;
  --ink: var(--fg);
  --ink-2: #4a453e;
  --stone: #6f6559;
  --accent-ink: #b0452b;
  --stone-2: #b9b0a3;
  --dark: #1f1b17;
  --dark-2: #2a2520;
  --accent-soft: #f6e3dc;
  --rim: rgba(194, 78, 50, 0.55);
  --r-tile: 24px;
  --gap: 14px;
  --shadow-tile: 0 1px 1px rgba(26,24,21,.04), 0 2px 8px rgba(26,24,21,.04);
  --shadow-lift: 0 2px 4px rgba(26,24,21,.05), 0 18px 40px rgba(26,24,21,.10);
  --ease: cubic-bezier(.2,.8,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.home { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.home img { max-width: 100%; display: block; }
:where(.home) a { color: inherit; }
.home figure { margin: 0; }
.home h1, .home h2, .home h3 { margin: 0; font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; font-variation-settings: "opsz" 144; }
.home p { margin: 0; }
.home :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1280px, 100% - 32px); margin-inline: auto; }
.section { padding: 88px 0 0; }
.section:last-of-type { padding-bottom: 88px; }

.eyebrow { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink); }
.eyebrow--muted { color: var(--stone); }
.lede { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 58ch; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 28px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(34px, 4.2vw, 56px); max-width: 16ch; margin-top: 12px; }
.sec-head .lede { max-width: 46ch; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 15px/1 var(--font-body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .25s var(--ease), background .2s, color .2s, box-shadow .25s var(--ease); white-space: nowrap; }
.btn-primary { background: var(--accent); color: #fffcf8; box-shadow: 0 6px 18px rgba(194,78,50,.28); }
.btn-primary:hover { background: #ad4229; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(194,78,50,.34); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); }
.btn-light { background: #fffcf8; color: var(--dark); }
.btn-light:hover { transform: translateY(-1px); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; text-decoration: none; color: var(--accent-ink); }
.link-arrow::after { content: "\2192"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- nav: floating glass pill ---------- */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 90; pointer-events: none; }
.nav-bar { pointer-events: auto; width: min(1180px, 100% - 24px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 8px 8px 16px; border-radius: 999px; background: color-mix(in srgb, var(--tile) 78%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border: 1px solid color-mix(in srgb, var(--border) 80%, transparent); box-shadow: 0 8px 30px rgba(26,24,21,.06); transition: box-shadow .3s; }
.nav.scrolled .nav-bar { box-shadow: 0 10px 34px rgba(26,24,21,.12); }
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: #fffcf8; display: grid; place-items: center; font: 700 13px/1 var(--font-mono); }
.nav-links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; white-space: nowrap; padding: 10px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: background .2s, color .2s; }
.nav-links a:hover { background: var(--surface); color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 6px; }
.nav .btn { min-height: 42px; padding: 0 18px; font-size: 14px; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--border); background: var(--tile); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--ink); transition: transform .25s var(--ease); }
.nav-toggle span::before { top: -5px; } .nav-toggle span::after { top: 5px; }
.nav.open .nav-toggle span { background: transparent; }
.nav.open .nav-toggle span::before { transform: translateY(5px) rotate(45deg); }
.nav.open .nav-toggle span::after { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 1140px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { position: absolute; top: calc(100% + 8px); left: 12px; right: 12px; flex-direction: column; padding: 8px; border-radius: 20px; background: var(--tile); border: 1px solid var(--border); box-shadow: var(--shadow-lift); opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .2s, transform .25s var(--ease); }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 14px 16px; font-size: 16px; }
  .nav-bar { position: relative; }
}
@media (max-width: 640px) { .brand { font-size: 15px; gap: 8px; } .nav-bar { padding-left: 10px; } .nav .btn { padding: 0 14px; } }
@media (max-width: 420px) { .nav-bar { gap: 8px; padding: 6px 6px 6px 8px; } .brand-mark { width: 28px; height: 28px; } .nav .btn { padding: 0 12px; font-size: 13px; min-height: 38px; } .nav-toggle { width: 38px; height: 38px; } }
@media (max-width: 360px) { .nav .btn { padding: 0 14px; } .brand-name { display: none; } }


/* ---------- logo ---------- */
.brand-logo { height: 24px; width: auto; color: var(--ink); flex: none; display: block; }
.brand .brand-name { font: 600 11px var(--font-body); letter-spacing: .24em; text-transform: uppercase; color: var(--ink); padding-top: 8px; }
.foot .brand-logo { height: 28px; }
@media (max-width: 640px) { .brand-logo { height: 20px; } .brand .brand-name { font-size: 10.5px; letter-spacing: .18em; padding-top: 6px; } }

/* ---------- tiles + cursor spotlight ---------- */
.tile { position: relative; background: var(--tile); border-radius: var(--r-tile); box-shadow: var(--shadow-tile); border: 1px solid rgba(228,222,212,.7); padding: 28px; overflow: hidden; isolation: isolate; transition: transform .35s var(--ease), box-shadow .35s var(--ease); --mx: 50%; --my: 50%; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(194,78,50,.07), transparent 60%); opacity: 0; transition: opacity .35s; pointer-events: none; }
.tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: radial-gradient(260px circle at var(--mx) var(--my), var(--rim), transparent 70%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: 0; transition: opacity .35s; pointer-events: none; }
.tile.is-hot::before, .tile.is-hot::after { opacity: 1; }
a.tile, .tile--link { text-decoration: none; color: inherit; }
.tile--link:hover, a.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.tile--dark { background: var(--dark); color: #f4efe8; border-color: #2e2823; }
.tile--dark::before { background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255,210,190,.08), transparent 60%); }
.tile-stretch { position: absolute; inset: 0; z-index: 3; border-radius: inherit; }
.tile-stretch:focus-visible { outline-offset: -3px; }

/* ---------- hero bento ---------- */
.bento { display: grid; gap: var(--gap); grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-areas:
  "map map map map"
  "zero weeks three poliza"
  "wall wall photo photo"; }
.t-map { grid-area: map; padding: 18px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px 28px; align-items: start; }
.map-main { min-width: 0; }
.map-side { display: flex; flex-direction: column; gap: 14px; padding: 10px 10px 10px 0; min-width: 0; align-self: center; }
.map-title { font-size: clamp(30px, 3.2vw, 44px); max-width: 12ch; }
.map-help { font-size: 15.5px; color: var(--ink-2); max-width: 40ch; }
.map-side .map-card { margin-top: 6px; }
.t-zero { grid-area: zero; } .t-weeks { grid-area: weeks; } .t-three { grid-area: three; } .t-poliza { grid-area: poliza; }
.t-wall { grid-area: wall; min-height: 420px; display: flex; flex-direction: column; justify-content: space-between; padding: 36px; }
.t-photo { grid-area: photo; padding: 0; min-height: 380px; }

.intro-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ping { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 10px; border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 500; color: var(--ink-2); }
.ping i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.ping i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 80%,100% { transform: scale(2.8); opacity: 0; } }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.intro-foot { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--border); font-size: 13px; color: var(--ink-2); background: var(--bg); }
.chip svg { width: 14px; height: 14px; color: var(--accent); }

/* stat tiles */
.stat { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-height: 200px; }
.stat-num { font-family: var(--font-display); font-size: clamp(52px, 5vw, 72px); line-height: .9; letter-spacing: -.04em; font-weight: 400; font-variant-numeric: tabular-nums; }
.stat-num small { font-size: .42em; letter-spacing: -.01em; margin-left: 8px; color: var(--stone); }
.stat p { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.stat .link-arrow { margin-top: 12px; }
.stat-top { display: flex; justify-content: space-between; align-items: start; }
.stat-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.stat-ico svg { width: 18px; height: 18px; }

/* wall (dark mesh) */
.mesh { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.t-wall .shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(31,27,23,.1) 0%, rgba(31,27,23,.55) 100%); }
.t-wall .eyebrow { color: #f0b9a6; }
.t-wall h2 { font-size: clamp(32px, 3.4vw, 50px); line-height: 1.02; max-width: 14ch; margin-top: 14px; color: #fffcf8; }
.t-wall p { color: rgba(244,239,232,.8); font-size: 16px; max-width: 44ch; margin-top: 16px; }
.t-wall .btn { margin-top: 26px; }

/* photo */
.t-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.t-photo:hover img { transform: scale(1.03); }
.t-photo figcaption { position: absolute; left: 16px; bottom: 16px; z-index: 2; padding: 8px 14px; border-radius: 999px; background: rgba(26,24,21,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fffcf8; font-size: 13px; }

/* ---------- schematic map ---------- */
.map-frame { position: relative; flex: 1; border-radius: 16px; background: var(--bg); border: 1px solid var(--border); overflow: hidden; }
.map-frame::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--border); border-radius: 12px; pointer-events: none; }
.map-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 12px 8px 4px; font-size: 12px; color: var(--ink-2); }
.map-legend span { display: inline-flex; align-items: center; gap: 7px; }
.map-legend i { width: 18px; height: 5px; border-radius: 4px; display: inline-block; }
.map-legend .nts { margin-left: auto; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--stone); }
.map-card { margin-top: 12px; display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; align-items: end; padding: 16px 18px; border-radius: 16px; background: var(--dark); color: #f4efe8; min-height: 112px; }
.map-card h3 { font-size: 24px; color: #fffcf8; }
.map-card p { grid-column: 1; font-size: 13.5px; line-height: 1.45; color: rgba(244,239,232,.72); max-width: 46ch; }
.map-card .mc-rent { grid-row: 1 / span 2; grid-column: 2; text-align: right; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(244,239,232,.6); line-height: 1.7; }
.map-card .mc-rent b { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 400; letter-spacing: -.02em; text-transform: none; color: #fffcf8; }
.map-card .mc-link { grid-column: 1 / -1; margin-top: 6px; color: #f0b9a6; }
.map-card[data-swap] > *:not(.mc-bg) { animation: swap .4s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.map-hoods { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 2px 0; list-style: none; margin: 0; }
.map-hoods a { display: inline-flex; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--border); font-size: 13px; text-decoration: none; color: var(--ink-2); transition: all .2s; }
.map-hoods a:hover, .map-hoods a.on { background: var(--fg); border-color: var(--fg); color: #fffcf8; }



/* ---------- video hero ---------- */
.vhero { position: relative; margin: 10px; border-radius: 28px; overflow: hidden; isolation: isolate; min-height: min(94svh, 940px); display: flex; flex-direction: column; justify-content: flex-end; background: #1f1b17; color: #fffcf8; }
.vhero-media, .vhero-media picture, .vhero-poster, .vhero video { position: absolute; inset: 0; width: 100%; height: 100%; }
.vhero-poster, .vhero video { object-fit: cover; }
.vhero video { opacity: 0; transition: opacity 1s var(--ease); }
.vhero.has-video video { opacity: 1; }
.vhero-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background:
  linear-gradient(90deg, rgba(18,14,11,.78) 0%, rgba(18,14,11,.5) 42%, rgba(18,14,11,.08) 75%),
  linear-gradient(0deg, rgba(18,14,11,.7) 0%, rgba(18,14,11,0) 32%),
  linear-gradient(180deg, rgba(18,14,11,.4) 0%, rgba(18,14,11,0) 18%); }
.vhero-inner { position: relative; z-index: 2; padding-top: 118px; }
.vhero-copy { max-width: 780px; }
.vhero .eyebrow { color: #f6b8a1; }
.vhero .ping { background: rgba(255,255,255,.12); color: rgba(255,255,255,.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.vhero .ping i, .vhero .ping i::after { background: #ff9a78; }
.vhero h1 { font-size: clamp(44px, min(5.6vw, 8.6svh), 86px); line-height: .96; letter-spacing: -.035em; margin-top: 22px; max-width: 11ch; color: #fffcf8; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.vhero h1 em { font-style: italic; font-weight: 400; color: #f6b8a1; }
.vhero .lede { color: rgba(255,255,255,.86); margin-top: 18px; max-width: 54ch; }
.vhero .hero-actions { margin-top: 26px; }
.btn-glass { background: rgba(255,255,255,.14); color: #fffcf8; border-color: rgba(255,255,255,.28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255,255,255,.22); }
.vhero .intro-foot { margin-top: 22px; }
.vhero .chip { background: rgba(20,16,12,.35); border-color: rgba(255,255,255,.2); color: rgba(255,255,255,.88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.vhero .chip svg { color: #f6b8a1; }
.vhero-foot { position: relative; z-index: 2; display: flex; align-items: center; gap: 18px; padding: 26px 0 22px; }
.vh-now { display: inline-flex; align-items: center; gap: 10px; min-width: 250px; font: 600 13px var(--font-body); letter-spacing: .01em; color: #fffcf8; }
.vh-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff9a78; box-shadow: 0 0 0 4px rgba(255,154,120,.25); flex: none; }
#vh-label.swap { animation: vhswap .6s var(--ease); }
@keyframes vhswap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.vh-bars { flex: 1; display: flex; gap: 6px; }
.vh-bar { flex: 1; height: 16px; padding: 7px 0; border: 0; background: none; cursor: pointer; }
.vh-bar i { display: block; height: 2px; border-radius: 2px; background: rgba(255,255,255,.28); overflow: hidden; }
.vh-bar b { display: block; height: 100%; background: #fffcf8; transform: scaleX(0); transform-origin: left; }
.vh-bar.done b { transform: scaleX(1) !important; }
.vh-bar:hover i { background: rgba(255,255,255,.45); }
.vh-toggle { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.12); color: #fffcf8; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.vh-toggle svg { width: 15px; height: 15px; grid-area: 1 / 1; }
.vh-toggle .i-play { display: none; }
.vh-toggle.paused .i-play { display: block; }
.vh-toggle.paused .i-pause { display: none; }
.after-hero { padding-top: calc(var(--gap) - 10px); }
@media (max-width: 640px) {
  .vhero { margin: 8px; border-radius: 22px; min-height: min(88svh, 760px); }
  .vhero-shade { background: linear-gradient(0deg, rgba(18,14,11,.85) 0%, rgba(18,14,11,.55) 45%, rgba(18,14,11,.15) 75%), linear-gradient(180deg, rgba(18,14,11,.45) 0%, rgba(18,14,11,0) 20%); }
  .vhero-inner { padding-top: 110px; }
  .vhero h1 { font-size: clamp(40px, 11.5vw, 54px); }
  .vhero .lede { font-size: 16px; }
  .vhero .intro-foot { display: none; }
  .vhero-foot { flex-wrap: wrap; gap: 10px 12px; padding: 22px 0 18px; }
  .vh-now { min-width: 0; flex: 1; font-size: 12.5px; }
  .vh-bars { order: 3; flex-basis: 100%; }
  .vh-toggle { width: 34px; height: 34px; }
}

/* ---------- illustrated scene (hero map) ---------- */
.map-frame { background: #efe5d3; }
.scene { display: block; width: 100%; height: auto; touch-action: manipulation; }
.scene .road { fill: none; stroke: #d9cdb6; stroke-width: 11; }
.scene .road--main { stroke-width: 17; }
.scene .road-dash { fill: none; stroke: #fbf5e9; stroke-width: 1.2; stroke-dasharray: 6 7; }
.scene .plaza { fill: #e5d9c3; stroke: #d2c4a9; stroke-width: 1.5; }
.scene .glorieta { fill: #e8dfcc; }
.scene .ctx { fill: #ece3d1; stroke: rgba(60,40,20,.05); stroke-width: 1; }
.scene .ctx-label { font: 700 7.5px var(--font-body); fill: #8f826f; letter-spacing: .14em; text-transform: uppercase; pointer-events: none; }
.scene .road-label { font: italic 500 7px var(--font-body); fill: #8f826f; letter-spacing: .05em; pointer-events: none; }
.scene .plate { stroke: rgba(60,40,20,.06); stroke-width: 1; transition: stroke .3s; }
.scene .zone { cursor: pointer; transition: opacity .35s, filter .35s, transform .45s var(--ease); }
.scene .zone.on { transform: translateY(-4px); }
.scene .zone.on .plate { stroke: var(--accent); stroke-width: 2.2; }
.scene.has-focus .zone:not(.on), .scene.has-focus .park { opacity: .7; filter: saturate(.35); }
.scene .park { transition: opacity .35s, filter .35s; }
.scene .metro-m { font: 700 7.5px var(--font-body); fill: #fffcf8; }
.scene .tag { cursor: pointer; outline: none; transition: transform .3s var(--ease); }
.scene .tag rect, .scene .tag .tail { fill: #fffdf9; stroke: rgba(26,24,21,.12); stroke-width: .8; transition: fill .25s; }
.scene .tag text { font: 600 11.5px var(--font-body); fill: var(--fg); letter-spacing: -.01em; }
.scene .tag tspan { font: 700 9.5px var(--font-mono); fill: var(--stone); }
.scene .tag.on rect, .scene .tag.on .tail { fill: var(--accent); stroke: var(--accent); }
.scene .tag.on text { fill: #fffcf8; }
.scene .tag.on tspan { fill: rgba(255,255,255,.82); }
.scene .tag:focus-visible rect { stroke: var(--fg); stroke-width: 2; }
.scene .tag--lm { cursor: default; pointer-events: none; }
.scene .tag--lm rect, .scene .tag--lm .tail { fill: #1f1b17; stroke: none; }
.scene .tag--lm text { font: 500 10px var(--font-body); fill: #fbe7b0; letter-spacing: .01em; }
.scene #lay-petals, .scene #lay-clouds, .scene #lay-veh { pointer-events: none; }
.map-legend .m-dot { width: 15px; height: 15px; border-radius: 50%; background: #f04e98; color: #fffcf8; font: 700 8px/15px var(--font-body); text-align: center; font-style: normal; }

/* pop-in cascade (squash + stretch) */
.js .scene:not(.play) .bld, .js .scene:not(.play) .tree, .js .scene:not(.play) .pop { transform: scale(1, 0); }
.scene .bld, .scene .tree, .scene .pop { transform-box: fill-box; transform-origin: 50% 100%; }
.scene.play .bld, .scene.play .tree, .scene.play .pop { animation: pop .7s cubic-bezier(.3,1.5,.5,1) both; animation-delay: var(--d, 0s); }
.scene.still .bld, .scene.still .tree, .scene.still .pop { animation: none; transform: none; }
@keyframes pop { 0% { transform: scale(1.12, 0); } 60% { transform: scale(.95, 1.08); } 100% { transform: scale(1, 1); } }

.scene .angel { animation: bob 5s ease-in-out infinite; }
.scene .angel-fig { transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -1.6px; } }
.scene .angel-glow { transform-box: fill-box; transform-origin: center; animation: glow 4s ease-in-out infinite; }
@keyframes glow { 0%,100% { opacity: .55; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.08); } }
.scene .glint { transform-box: fill-box; transform-origin: center; animation: glint 3.6s ease-in-out infinite; }
@keyframes glint { 0%, 70%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); } 80% { opacity: 1; transform: scale(1) rotate(45deg); } 90% { opacity: 0; transform: scale(.5) rotate(90deg); } }
.scene .petal { transform-box: fill-box; transform-origin: center; animation: petal 8s linear infinite; opacity: 0; }
@keyframes petal { 0% { opacity: 0; transform: translate(0, -14px) rotate(0deg); } 12% { opacity: .95; } 85% { opacity: .9; } 100% { opacity: 0; transform: translate(var(--dx, 8px), 34px) rotate(240deg); } }
.scene .cloud { animation: cloud 90s linear infinite; }
@keyframes cloud { from { translate: -140px 0; } to { translate: 820px 0; } }
.scene.paused * { animation-play-state: paused !important; }
@media (max-width: 640px) {
  .scene .tag text { font-size: 19px; }
  .scene .tag tspan { display: none; }
  .scene .tag--lm text { font-size: 15px; }
  .scene .tag--lm { display: none; }
  .scene .ctx-label { font-size: 15px; }
  .scene .road-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .scene .bld, .scene .tree, .scene .pop { transform: none !important; }
  .scene .petal, .scene .cloud { display: none; }
}


/* ---------- featured listings ---------- */
.feat-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(2, minmax(0,1fr)); }
.feat { padding: 10px; display: flex; flex-direction: column; }
.feat-media { position: relative; display: grid; gap: 6px; }
.feat-cover { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; background: var(--surface-2); }
.feat-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.feat-thumbs img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--surface-2); }
.feat-badge { position: absolute; top: 12px; left: 12px; padding: 7px 12px; border-radius: 999px; background: var(--accent); color: #fffcf8; font: 700 10.5px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 4px 14px rgba(194,78,50,.35); }
.feat-body { padding: 20px 14px 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.feat-price { font-family: var(--font-display); font-size: 34px; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.feat-price span { font: 600 13px var(--font-body); color: var(--stone); letter-spacing: 0; margin-left: 4px; }
.feat-body h3 { font-size: 26px; line-height: 1.12; max-width: 24ch; }
.feat-loc { font-size: 14.5px; color: var(--ink-2); }
.feat-specs { list-style: none; margin: 6px 0 0; padding: 14px 0 0; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--ink-2); }
.feat-specs b { font-family: var(--font-display); font-weight: 400; font-size: 22px; color: var(--ink); margin-right: 3px; }
.feat-tags { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.feat-tags li { padding: 6px 11px; border-radius: 999px; background: var(--surface); font-size: 12.5px; color: var(--ink-2); }
.feat-cta { margin-top: auto; padding-top: 16px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
@media (max-width: 900px) { .feat-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .feat-price { font-size: 30px; } .feat-body h3 { font-size: 23px; } }


/* ---------- faded photo backgrounds: map card + stat tiles ---------- */
.map-card { position: relative; overflow: hidden; isolation: isolate; }
.mc-bg { position: absolute; inset: 0; z-index: -2; }
.mc-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease), transform 6s linear; transform: scale(1.04); }
.mc-bg img.on { opacity: .55; transform: scale(1.1); }
.map-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(24,20,17,.94) 0%, rgba(24,20,17,.78) 50%, rgba(24,20,17,.42) 100%); }
.stat { isolation: isolate; }
.stat-bg { position: absolute; right: 0; bottom: 0; width: 78%; height: 100%; object-fit: cover; z-index: -1; opacity: .2; transition: opacity .4s var(--ease), transform .8s var(--ease);
  -webkit-mask-image: radial-gradient(120% 110% at 100% 100%, #000 20%, transparent 72%); mask-image: radial-gradient(120% 110% at 100% 100%, #000 20%, transparent 72%); }
.stat:hover .stat-bg { opacity: .34; transform: scale(1.04); }


.has-bg { isolation: isolate; }
.tile-bg { position: absolute; right: 0; bottom: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: .2; transition: opacity .4s var(--ease);
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.4) 45%, transparent 85%); mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.4) 45%, transparent 85%); }
.has-bg:hover .tile-bg { opacity: .3; }
.tile-bg--try { opacity: .26; height: 72%; }
.has-bg:hover .tile-bg--try { opacity: .42; }

.tile-bg--side { width: 55%; left: auto; opacity: .28; -webkit-mask-image: linear-gradient(to left, #000 0%, rgba(0,0,0,.35) 50%, transparent 100%); mask-image: linear-gradient(to left, #000 0%, rgba(0,0,0,.35) 50%, transparent 100%); }
.wall-foot > *:not(.tile-bg) { position: relative; }
.step { isolation: isolate; }
.step-ghost { position: absolute; right: -6px; bottom: -34px; z-index: -1; font: 400 170px/1 var(--font-display); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.2px rgba(194,78,50,.22); pointer-events: none; transition: -webkit-text-stroke-color .4s var(--ease), transform .6s var(--ease); }
.step:hover .step-ghost { -webkit-text-stroke-color: rgba(194,78,50,.45); transform: translateY(-4px); }

/* ---------- neighborhoods: price cards ---------- */
.hoods { display: grid; gap: var(--gap); grid-template-columns: repeat(6, minmax(0,1fr)); }
.hood { grid-column: span 2; padding: 10px; display: flex; flex-direction: column; }
.hood:nth-child(4), .hood:nth-child(5) { grid-column: span 3; flex-direction: row; gap: 6px; }
.hood:nth-child(4) .hood-img, .hood:nth-child(5) .hood-img { flex: 0 0 44%; aspect-ratio: auto; min-height: 100%; }
.hood:nth-child(4) .hood-body, .hood:nth-child(5) .hood-body { padding: 12px 14px 12px 18px; }
.hood-img { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--surface-2); }
.hood-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.hood:hover .hood-img img { transform: scale(1.04); }
.hood-tag { position: absolute; top: 12px; left: 12px; padding: 6px 11px; border-radius: 999px; background: rgba(255,253,249,.92); font: 700 10px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.hood-body { padding: 18px 12px 12px; display: flex; flex-direction: column; flex: 1; }
.hood-body h3 { font-size: 28px; }
.hood-price { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.hood-price b { font-family: var(--font-display); font-weight: 400; font-size: 30px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hood-price > span { font-size: 13px; color: var(--stone); }
.hood-sub { font-size: 13px; color: var(--stone); margin-top: 4px; font-variant-numeric: tabular-nums; }
.hood-body p { font-size: 15px; line-height: 1.55; color: var(--ink-2); margin-top: 14px; }
.hood-body .link-arrow { margin-top: auto; padding-top: 18px; }
.hoods-note { margin-top: 16px; font-size: 13px; color: var(--stone); }

/* ---------- opener form ---------- */
.op { display: grid; gap: var(--gap); grid-template-columns: 0.85fr 1.15fr; }
.op-head { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 40px; }
.op-head h2 { font-size: clamp(34px, 3.8vw, 52px); margin-top: 14px; max-width: 12ch; }
.op-head .lede { margin-top: 18px; font-size: 16.5px; }
.op-assure { padding: 18px 20px; border-radius: 16px; background: var(--surface); font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.op-assure strong { color: var(--ink); }
.op-card { padding: 36px; }
.op-form { display: grid; gap: 22px; }
.op-field { display: grid; gap: 10px; border: 0; margin: 0; padding: 0; min-width: 0; }
.op-label { font-size: 14px; font-weight: 600; color: var(--ink); padding: 0; }
.op-label span { font-weight: 400; color: var(--stone); margin-left: 6px; }
.op-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.op-pill { position: relative; cursor: pointer; }
.op-pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.op-pill span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); font-size: 14px; color: var(--ink-2); transition: all .18s; user-select: none; }
.op-pill:hover span { border-color: var(--stone-2); color: var(--ink); }
.op-pill input:checked + span { background: var(--fg); border-color: var(--fg); color: #fffcf8; }
.op-pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.op-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.op-input { width: 100%; min-height: 50px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg); font: 400 16px var(--font-body); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.op-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(194,78,50,.12); }
.op-submit { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-top: 6px; }
.op-fine { font-size: 13px; color: var(--stone); max-width: 36ch; }
.op-fine a, .gm-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.lead-error { color: var(--accent); font-size: 14px; }
.lead-done { padding: 36px; }
.lead-done h3 { font-size: 40px; }
.lead-done p { margin-top: 14px; color: var(--ink-2); max-width: 52ch; }


/* ---------- opener: riso duotone panel + deco form panel ---------- */
.op-head.riso { background: #c24e32; color: #fffcf8; border-color: transparent; min-height: 520px; }
.riso-layers, .riso-layers > * { position: absolute; inset: 0; z-index: -1; }
.riso-img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.2) brightness(1.18); mix-blend-mode: multiply; opacity: .7; }
.riso-dots { background: url(img/hood-condesa-3.webp) center / cover no-repeat; filter: grayscale(1) contrast(1.8) brightness(1.35); mix-blend-mode: screen; opacity: .42;
  -webkit-mask: radial-gradient(circle, #000 36%, transparent 40%) 0 0 / 5px 5px; mask: radial-gradient(circle, #000 36%, transparent 40%) 0 0 / 5px 5px;
  transform: translate(3px, -2px) rotate(.35deg) scale(1.01); }
.riso-grain { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .12 0 0 0 0 .08 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); mix-blend-mode: multiply; opacity: .5; }
.riso-shade { background: linear-gradient(180deg, rgba(122,36,18,.66) 0%, rgba(122,36,18,.5) 45%, rgba(122,36,18,.12) 70%, rgba(70,22,12,.72) 100%); }
.op-head.riso::before { background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255,220,200,.12), transparent 60%); }
.op-head.riso .eyebrow { color: #ffd2bf; }
.op-head.riso h2 { color: #fffcf8; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.op-head.riso .lede { color: rgba(255,255,255,.88); }
.op-head.riso .op-assure { background: rgba(28,16,12,.42); color: rgba(255,255,255,.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.14); }
.op-head.riso .op-assure strong { color: #fffcf8; }
.riso-caption { position: absolute; top: 18px; right: 18px; padding: 6px 10px; border: 1px solid rgba(255,255,255,.45); border-radius: 4px; font: 700 9.5px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.85); transform: rotate(1.5deg); }
.op-card { overflow: hidden; }
.op-deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.op-aerial { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 62%; object-fit: cover; opacity: .34; filter: saturate(.85) sepia(.15);
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.55) 40%, transparent 100%); mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.55) 40%, transparent 100%); }
.op-sunburst { position: absolute; top: 0; right: 0; width: 260px; height: 260px; color: var(--accent); opacity: .22; }
.op-card .op-form, .op-card .lead-done { position: relative; }
.op-card .op-pill span, .op-card .op-input { background: rgba(250,248,245,.92); }
.op-card .op-fine { color: var(--ink-2); }
@media (max-width: 640px) {
  .op-head.riso { min-height: 460px; }
  .op-sunburst { width: 170px; height: 170px; }
  .op-aerial { height: 45%; }
}

/* ---------- aval wall ---------- */
.wall-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(4, minmax(0,1fr)); }
.try { display: flex; flex-direction: column; gap: 14px; min-height: 240px; }
.try-num { font: 700 11px var(--font-mono); letter-spacing: .12em; color: var(--stone); }
.try h3 { font-family: var(--font-body); font-size: 19px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.try p { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.try-cost { margin-top: auto; display: inline-flex; align-self: start; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background: var(--accent-soft); color: #8e3520; font-size: 12px; font-weight: 600; }
.wall-foot { margin-top: var(--gap); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 22px 28px; }
.wall-foot p { font-size: 16px; color: var(--ink-2); max-width: 60ch; }
.wall-foot p strong { color: var(--ink); }
.wall-links { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- how it works ---------- */
.steps { display: grid; gap: var(--gap); grid-template-columns: repeat(4, minmax(0,1fr)); position: relative; }
.step { min-height: 230px; display: flex; flex-direction: column; gap: 12px; }
.step-n { display: flex; align-items: center; gap: 10px; font: 700 11px var(--font-mono); letter-spacing: .12em; color: var(--stone); }
.step-n i { flex: 1; height: 2px; border-radius: 2px; background: var(--surface-2); overflow: hidden; position: relative; }
.step-n i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); transition-delay: var(--d, 0s); }
.steps.in .step-n i::after { transform: scaleX(1); }
.step h3 { font-size: 26px; line-height: 1.1; margin-top: auto; }
.step p { font-size: 14.5px; color: var(--ink-2); }
.steps-note { margin-top: var(--gap); padding: 20px 28px; font-size: 15.5px; color: var(--ink-2); }
.steps-note strong { color: var(--ink); }

/* ---------- local ---------- */
.local { display: grid; gap: var(--gap); grid-template-columns: 1.1fr .9fr; }
.local-copy { padding: 44px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.local-copy h2 { font-size: clamp(32px, 3.6vw, 50px); max-width: 13ch; }
.local-copy p { font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 50ch; }
.local-photo { padding: 0; min-height: 360px; }
.local-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- faq ---------- */
.faq { display: grid; gap: var(--gap); grid-template-columns: .8fr 1.2fr; align-items: start; }
.faq-side { position: sticky; top: 96px; padding: 36px; }
.faq-side h2 { font-size: clamp(32px, 3.6vw, 48px); max-width: 11ch; margin-top: 12px; }
.faq-side p { margin-top: 16px; color: var(--ink-2); font-size: 15.5px; }
.faq-side .btn { margin-top: 24px; }
.faq-list { padding: 8px 28px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1815' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform .3s var(--ease), background-color .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); background-color: var(--accent-soft); }
.faq-item summary:hover { color: var(--accent); }
.faq-a { padding: 0 44px 24px 0; font-size: 15.5px; line-height: 1.65; color: var(--ink-2); }
.faq-a .link-arrow { margin-top: 10px; }

/* ---------- final cta ---------- */
.final { position: relative; padding: clamp(40px, 7vw, 88px); min-height: 440px; display: flex; flex-direction: column; justify-content: end; }
.final > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.final::before { z-index: -1; opacity: 1; background: linear-gradient(90deg, rgba(31,27,23,.92) 0%, rgba(31,27,23,.72) 55%, rgba(31,27,23,.35) 100%); }
.final h2 { font-size: clamp(38px, 5vw, 68px); color: #fffcf8; max-width: 13ch; }
.final p { margin-top: 18px; color: rgba(244,239,232,.8); font-size: 17px; max-width: 52ch; }
.final .hero-actions { margin-top: 28px; }
.final .btn-ghost { color: #fffcf8; border-color: rgba(255,255,255,.3); }
.final .btn-ghost:hover { background: rgba(255,255,255,.08); }

/* ---------- footer ---------- */
.foot { margin-top: 0; padding: 56px 0 28px; border-top: 1px solid var(--border); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand p { margin-top: 14px; font-size: 14px; color: var(--ink-2); max-width: 34ch; }
.foot h3 { font: 700 11px var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--stone); margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot a { font-size: 14px; color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--accent); }
.foot-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font: 500 11px var(--font-mono); letter-spacing: .04em; color: var(--stone); }

/* ---------- reveal (expressive) ---------- */
.js [data-reveal] { opacity: 0; translate: 0 18px; transition: opacity .7s var(--ease), translate .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; translate: 0 0; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, minmax(0,1fr)); grid-template-areas:
    "map map" "zero weeks" "three poliza" "wall wall" "photo photo"; }
  .t-map { grid-template-columns: 1fr; }
  .map-side { padding: 4px 6px 6px; }
    .hoods { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hood, .hood:nth-child(4), .hood:nth-child(5) { grid-column: span 1; flex-direction: column; }
  .hood:nth-child(4) .hood-img, .hood:nth-child(5) .hood-img { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
  .hood:nth-child(4) .hood-body, .hood:nth-child(5) .hood-body { padding: 18px 12px 12px; }
  .hood:nth-child(1) { grid-column: span 2; }
  .wall-grid, .steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .op, .local, .faq { grid-template-columns: 1fr; }
  .faq-side { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --gap: 10px; --r-tile: 20px; }
  .section { padding-top: 64px; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "map" "zero" "weeks" "three" "poliza" "wall" "photo"; }
  .tile { padding: 22px; }
          .hero-actions .btn { flex: 1; justify-content: center; }
  .t-map { padding: 12px; }
          .map-card { grid-template-columns: 1fr; }
  .map-card .mc-rent { grid-row: auto; grid-column: 1; text-align: left; }
  .stat { min-height: 0; }
  .t-wall { min-height: 380px; padding: 26px 22px; }
  .t-photo { min-height: 260px; }
  .hoods, .wall-grid, .steps { grid-template-columns: 1fr; }
  .hood:nth-child(1) { grid-column: span 1; }
  .try, .step { min-height: 0; }
  .op-row { grid-template-columns: 1fr; }
  .faq-list { padding: 4px 20px; }
  .faq-a { padding-right: 0; }
  .local-photo { min-height: 240px; }
  .final { min-height: 380px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; translate: none; }
  .steps .step-n i::after { transform: scaleX(1); }
}

/* touch targets (polish) */
@media (pointer: coarse) {
  .map-hoods a, .op-pill span, .gm-pill span, .chips button, .seg button { min-height: 44px; display: inline-flex; align-items: center; }
  .vh-toggle { width: 44px; height: 44px; }
  .vh-bar { height: 28px; padding: 13px 0; }
  .nav-links a { min-height: 44px; display: flex; align-items: center; }
}

/* language toggle (i18n.js) */
html.i18n-wait body { opacity: 0; }
.lang { display: inline-flex; align-items: center; padding: 3px; border-radius: 999px; border: 1px solid var(--border); background: var(--tile); }
.lang button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; padding: 0 11px 0 9px; border: 0; border-radius: 999px; background: transparent; color: var(--stone); font: 600 12px/1 var(--font-body); letter-spacing: .08em; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--page); }
.lang button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lang .flag { width: 21px; height: 14px; flex: none; display: block; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px rgba(26,24,21,.14); }
@media (max-width: 640px) {
  .lang button { min-height: 32px; min-width: 36px; padding: 0 7px; }
  .lang button span { display: none; }
}
@media (pointer: coarse) { .lang { padding: 2px; } .lang button { min-height: 38px; min-width: 42px; } }
@media (max-width: 370px) { .nav .brand-logo { height: 17px; } }
@media (max-width: 340px) { .nav-right .btn { display: none; } }
@media (max-width: 400px) { .nav-bar { gap: 6px; } .lang { padding: 2px; } .lang button { min-width: 32px; padding: 0 5px; } .nav .btn { padding: 0 10px; font-size: 12.5px; } }
/* Spanish labels run ~30% longer: collapse to the menu earlier, drop the wordmark on small phones */
html[lang="es-MX"] .nav .btn { white-space: nowrap; }
@media (min-width: 1181px) { html[lang="es-MX"] .nav-links a { padding-inline: 11px; } }
@media (min-width: 1141px) and (max-width: 1180px) {
  html[lang="es-MX"] .nav-toggle { display: inline-flex; }
  html[lang="es-MX"] .nav-links { position: absolute; top: calc(100% + 8px); left: 12px; right: 12px; flex-direction: column; padding: 8px; border-radius: 20px; background: var(--tile); border: 1px solid var(--border); box-shadow: var(--shadow-lift); opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .2s, transform .25s var(--ease); }
  html[lang="es-MX"] .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  html[lang="es-MX"] .nav-links a { padding: 14px 16px; font-size: 16px; }
  html[lang="es-MX"] .nav-bar { position: relative; }
}
@media (max-width: 430px) { .brand-name { display: none; } }
