/* Bochabela Wendy Houses. Tokens and numbers: docs/DESIGN.md. Mobile first. */
@font-face { font-family: "Bricolage Grotesque"; src: url(/assets/fonts/bricolage-var-latin.85f55a58a3.woff2) format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(/assets/fonts/figtree-var-latin.8330490a01.woff2) format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Bricolage Fallback"; src: local("Arial"); size-adjust: 104%; ascent-override: 92%; descent-override: 26%; }
@font-face { font-family: "Figtree Fallback"; src: local("Arial"); size-adjust: 101%; ascent-override: 95%; descent-override: 25%; }

:root {
  --surface: #FBF6F1; --surface-2: #F6EBE0; --card: #FFFCF8; --footer: #F3E5D8;
  --peach: #FFAB6F; --peach-tint: #FFE6D3; --peach-light: #FFC59A;
  --line: #EADBCD; --line-strong: #8E7466; --ink: #2A1714; --muted: #6B5248; --rust-ink: #A34020;
  --quote: #B4532E; --quote-hover: #A34020; --wa: #1F8150; --wa-hover: #186B42;
  --zinc: #6D99B5; --zinc-ink: #3F6F8E; --pine: #C08761; --sky: #70BFFF; --yard: #EDEEDF; --bay: #D9D4CC;
  --dark: #2A1411; --on-dark: #FFF8F2; --on-dark-muted: #E8D3C6; --error: #B3261E;
  --display: "Bricolage Grotesque", "Bricolage Fallback", Arial, sans-serif;
  --body: "Figtree", "Figtree Fallback", Arial, sans-serif;
  --fs-h1: clamp(2.125rem, 1.35rem + 3.1vw, 3.25rem); --fs-h2: clamp(1.75rem, 1.3rem + 1.9vw, 2.5rem); --fs-h3: clamp(1.25rem, 1.12rem + .55vw, 1.5rem);
  --fs-price: clamp(1.75rem, 1.4rem + 1.4vw, 2.375rem); --fs-lead: clamp(1.0625rem, 1rem + .35vw, 1.25rem); --fs-body: clamp(1rem, .97rem + .15vw, 1.0625rem); --fs-small: .9375rem;
  --wrap: 1200px; --gut: 16px; --sec: clamp(56px, 40px + 3.2vw, 96px); --nav: 64px; --r: 14px; --rb: 10px;
  --sh-hover: 0 14px 28px -14px rgba(42, 23, 20, .28); --sh-float: 0 10px 24px -8px rgba(42, 23, 20, .38);
  --ease: cubic-bezier(.22, .9, .3, 1);
}
@media (min-width: 480px) { :root { --gut: 24px; } }
@media (min-width: 768px) { :root { --gut: 32px; } }
@media (min-width: 1024px) { :root { --nav: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 var(--fs-body)/1.65 var(--body); padding-top: var(--nav); }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--rust-ink); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 1.04; overflow-wrap: break-word; }
@media (max-width: 359px) { :root { --fs-h1: 1.875rem; } .nav__call { display: none; } .nav__in { gap: 6px; } }
h2 { font-size: var(--fs-h2); line-height: 1.08; }
h3 { font-size: var(--fs-h3); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--rust-ink); outline-offset: 2px; border-radius: 4px; }
.tnum { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--surface); padding: 12px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.eyebrow { display: inline-block; font: 700 var(--fs-small)/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--rust-ink); margin-bottom: 8px; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); max-width: 56ch; }
.fine { font-size: var(--fs-small); color: var(--muted); margin-top: 16px; }
.prose p + p { margin-top: 12px; }
.prose { max-width: 65ch; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: .85rem 1.5rem; border: 0; border-radius: var(--rb); font: 700 1rem/1 var(--body); letter-spacing: .01em; text-decoration: none; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); transition: background-color .2s, translate .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { translate: 0 -1px; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-hover); }
.btn--quote { background: var(--quote); color: #fff; }
.btn--quote:hover { background: var(--quote-hover); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost-dark { background: rgba(42, 20, 17, .25); color: var(--on-dark); box-shadow: inset 0 0 0 1.5px rgba(255, 248, 242, .7); }
.btn--ghost-dark:hover { background: rgba(42, 20, 17, .5); }
.btn--sm { min-height: 44px; padding: .7rem 1.1rem; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 24px; }
.btn-row--c { justify-content: center; }
.tlink { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: var(--ink); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.tlink svg { width: 18px; height: 18px; transition: translate .2s; }
.tlink:hover { color: var(--rust-ink); }
.tlink:hover svg { translate: 3px 0; }
.tlink--wa { color: var(--wa); }
.tlink--wa svg { width: 20px; height: 20px; }
.tlink--wa:hover { color: var(--wa-hover); }
@media (max-width: 767px) { .btn-row > .btn { width: 100%; min-height: 52px; } }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav); background: rgba(251, 246, 241, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.nav.scrolled { box-shadow: var(--sh-hover); }
.nav__in { height: 100%; display: flex; align-items: center; gap: 12px; }
.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; min-height: 44px; }
.lockup__w { display: flex; flex-direction: column; line-height: 1; }
.lockup__w b { font: 800 18px/1 var(--display); letter-spacing: -.01em; }
.lockup__w small { font: 700 11px/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--rust-ink); margin-top: 5px; }
.lockup--foot .lockup__w b { font-size: 26px; }
.lockup--foot .lockup__w small { font-size: 13px; }
@media (max-width: 349px) { .lockup--nav .lockup__w small { display: none; } }
.nav__links { display: none; }
.nav__tel { display: none; }
.nav__cta { display: none; }
.nav__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; align-self: center; }
.nav__icon svg { width: 22px; height: 22px; }
.nav__burger { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav__burger span { width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.nav__progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--rust-ink); transform-origin: 0 50%; transform: scaleX(0); }
html:not(.fx) .nav__progress { display: none; }
@media (min-width: 1024px) {
  .lockup--nav .lockup__w b { font-size: 20px; }
  .nav__links { display: flex; gap: 4px; margin-right: 8px; }
  .nav__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-weight: 600; color: var(--ink); text-decoration: none; position: relative; white-space: nowrap; }
  .nav__links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; background: var(--peach); transform: scaleX(0); transform-origin: 0 50%; transition: transform .25s var(--ease); }
  .nav__links a:hover, .nav__links a[aria-current] { color: var(--rust-ink); }
  .nav__links a:hover::after, .nav__links a[aria-current]::after { transform: scaleX(1); }
  .nav__cta { display: inline-flex; min-height: 44px; padding: .7rem 1.1rem; }
  .nav__call, .nav__burger { display: none; }
}
@media (min-width: 1180px) { .nav__tel { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 8px; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; } .nav__tel svg { width: 18px; height: 18px; color: var(--rust-ink); } }

/* phone menu (full-screen light sheet, links centred) */
.menu { position: fixed; inset: 0; z-index: 80; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px var(--gut) 64px; overflow: clip; opacity: 0; transition: opacity .2s; }
.menu.open { opacity: 1; }
.menu__top { position: absolute; top: 10px; left: var(--gut); right: var(--gut); display: flex; align-items: center; justify-content: space-between; }
.menu__top .lockup { margin-right: 0; }
.menu__links { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.menu__links a { font: 800 26px/1.2 var(--display); color: var(--ink); text-decoration: none; padding: 8px 16px; min-height: 44px; }
.menu__links a[aria-current] { color: var(--rust-ink); }
.menu__ctas { display: grid; gap: 10px; width: min(360px, 100%); margin-top: 28px; }
.menu__ctas .btn { width: 100%; }
html.is-locked, html.is-locked body { overflow: hidden; }

/* ---------- hero (home film: the one dark moment) ---------- */
.hero { position: relative; background: var(--surface); }
.hero__media { position: relative; overflow: clip; aspect-ratio: 4 / 5; max-height: 52vh; max-height: min(52svh, 520px); width: 100%; background: var(--dark); }
.hero__media picture, .hero__media img, .hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__scrim { display: none; }
.hero__copy { position: relative; padding-top: 24px; padding-bottom: 32px; }
.hero__copy h1 { margin: 4px 0 14px; max-width: 18ch; }
.hero__copy .lead b { color: var(--ink); }
.hero__trust { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 18px; font-size: var(--fs-small); color: var(--muted); }
.hero__trust li { display: inline-flex; align-items: center; gap: 6px; }
.hero__trust svg { width: 16px; height: 16px; color: var(--wa); }
.hero .btn--ghost-dark { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.pill { position: absolute; right: 12px; bottom: 12px; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 0; background: rgba(42, 20, 17, .78); color: #fff; cursor: pointer; }
.pill svg { width: 18px; height: 18px; }
@media (min-width: 768px) {
  .hero { height: 620px; height: clamp(584px, calc(100vh - 136px), 680px); height: clamp(584px, calc(100svh - 136px), 680px); overflow: clip; background: var(--dark); display: flex; align-items: center; }
  .hero__media { position: absolute; inset: -12% 0 auto; height: 124%; max-height: none; aspect-ratio: auto; }
  .hero__scrim { display: block; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(42, 20, 17, .82) 0%, rgba(42, 20, 17, .8) 46%, rgba(42, 20, 17, .3) 100%), linear-gradient(180deg, rgba(42, 20, 17, 0) 70%, rgba(42, 20, 17, .45) 100%); }
  .pill { right: 24px; bottom: calc(12% + 24px); }
  .hero__copy { width: 100%; padding-top: 0; padding-bottom: 8px; color: var(--on-dark); }
  .hero__copy > * { max-width: 640px; }
  .hero__copy .eyebrow { color: var(--peach); }
  .hero__copy h1 { color: var(--on-dark); max-width: 19ch; }
  .hero__copy .lead { color: var(--on-dark-muted); max-width: 52ch; }
  .hero__copy .lead b { color: var(--on-dark); }
  .hero .btn--ghost-dark { background: rgba(42, 20, 17, .25); color: var(--on-dark); box-shadow: inset 0 0 0 1.5px rgba(255, 248, 242, .7); }
  .hero__trust { color: var(--on-dark-muted); }
  .hero__trust svg { color: var(--peach); }
  .hero :focus-visible { outline-color: var(--peach); }
}

/* first-viewport entrance: CSS keyframes only, desktop + phone tiers; H1 rises but never fades (LCP) */
@keyframes k-rise { from { transform: translateY(18px); } to { transform: none; } }
@keyframes k-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
html.fx .k-rise, html.fxm .k-rise { animation: k-rise .55s var(--ease) both; }
html.fx .k-in, html.fxm .k-in { animation: k-in .45s var(--ease) .1s both; }
html.fx .k-d1, html.fxm .k-d1 { animation-delay: .2s; }
html.fx .k-d2, html.fxm .k-d2 { animation-delay: .28s; }
html.fx .k-d3, html.fxm .k-d3 { animation-delay: .36s; }

/* ---------- trust strip ---------- */
.trust { background: var(--surface-2); border-bottom: 1px solid var(--line); }
.trust__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; padding: 16px 0; }
.trust__grid li { display: flex; align-items: center; gap: 10px; font-size: var(--fs-small); line-height: 1.25; }
.trust__grid svg { flex: none; width: 24px; height: 24px; color: var(--rust-ink); }
.trust__grid b { display: block; font-weight: 700; }
.trust__grid small { display: block; color: var(--muted); font-size: var(--fs-small); }
@media (min-width: 1024px) { .trust__grid { grid-template-columns: repeat(4, 1fr); height: 64px; padding: 0; align-items: center; } .trust--compact .trust__grid { height: 56px; } }

/* ---------- sections ---------- */
.sec { padding: var(--sec) 0; }
.sec--alt { background: var(--surface-2); }
.sec--tight { padding: 40px 0; }
.sec-head { margin-bottom: 28px; max-width: 720px; }
.sec-head h2 + .lead { margin-top: 12px; }
.sec-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; }
.sec-row .sec-head { margin-bottom: 28px; }
.sec-row__link { margin-bottom: 28px; }

/* image frames (parallax: the img is 120% tall; motion.js moves the img, never the frame) */
.frame { position: relative; overflow: clip; border-radius: var(--r); background: var(--surface-2); aspect-ratio: 4 / 3; }
.frame img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; }
.frame[data-depth="deep"] img { top: -15%; height: 130%; }

/* ---------- price cards (one common scale) ---------- */
.pgrid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--r); overflow: clip; background: var(--line); gap: 1px; }
.pcard { background: var(--card); padding: 18px 14px 14px; display: flex; flex-direction: column; gap: 4px; position: relative; transition: background-color .2s; }
.pcard:hover { background: #fff; }
.pcard .fp { width: 72px; height: 72px; margin-bottom: 8px; }
.pcard h3 { font-size: 1.25rem; }
.pcard__tag, .pcard__use { font-size: var(--fs-small); color: var(--muted); line-height: 1.35; }
.pcard__use { color: var(--zinc-ink); font-weight: 600; }
.pcard__price { margin-top: auto; padding-top: 10px; font-size: var(--fs-small); color: var(--muted); }
.pcard__price b { font: 800 var(--fs-price)/1 var(--display); color: var(--ink); letter-spacing: -.01em; }
.pcard__price--q { font-weight: 700; color: var(--ink); font-size: 1rem; }
.pcard__acts { display: flex; flex-direction: column; align-items: flex-start; gap: 0; margin-top: 6px; }
.pcard__acts .tlink { font-size: .9375rem; }
.pcard--custom { background: var(--peach-tint); grid-column: 1 / -1; }
.pcard--custom:hover { background: var(--peach-tint); }
.pcard--cabin { background: #FFF8F1; }
.pcard__ico { width: 40px; height: 40px; color: var(--rust-ink); margin-bottom: 8px; }
.pcard__flag { position: absolute; top: 14px; right: 14px; font: 700 12px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--zinc-ink); }
.fp__grid path { stroke: #888375; stroke-opacity: .25; stroke-width: 1; fill: none; }
.fp__shape rect { fill: rgba(163, 64, 32, .14); stroke: var(--rust-ink); stroke-width: 1.5; }
.fp__ridge { stroke: var(--zinc-ink); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 0; fill: none; }
.pcard:hover .fp__ridge { animation: ridge .5s var(--ease); }
@keyframes ridge { from { stroke-dashoffset: 1; } }
@media (min-width: 768px) { .pgrid { grid-template-columns: repeat(4, 1fr); } .pcard { padding: 22px 20px 16px; } .pcard .fp { width: 96px; height: 96px; } .pcard--custom { grid-column: auto; } }
.cgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: clip; }
.cgrid .pcard:last-child { grid-column: 1 / -1; }
@media (min-width: 768px) { .cgrid { grid-template-columns: repeat(5, 1fr); } .cgrid .pcard:last-child { grid-column: auto; } }

/* ---------- visualiser ---------- */
.viz__grid { display: grid; gap: 24px; }
.viz .sec-head { margin-bottom: 16px; }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); margin-bottom: 14px; }
.seg button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; font-weight: 700; cursor: pointer; color: var(--muted); }
.seg button[aria-checked="true"] { background: var(--ink); color: var(--surface); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); font-weight: 700; color: var(--ink); cursor: pointer; text-decoration: none; transition: background-color .2s, border-color .2s; font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--ink); }
.chip[aria-checked="true"], .chip[aria-pressed="true"] { background: var(--peach-tint); border: 2px solid var(--rust-ink); }
.chip--sm { min-height: 44px; padding: 0 12px; font-size: .9375rem; }
.viz__custom { display: flex; gap: 12px; margin-top: 12px; }
.viz__custom label { display: grid; gap: 4px; font-size: var(--fs-small); font-weight: 700; }
.viz__custom input { width: 110px; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 12px; font: inherit; background: var(--card); }
.viz__cmp { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: var(--fs-small); color: var(--muted); }
.viz__cmp > span { margin-right: 4px; font-weight: 600; }
.readout { margin-top: 16px; padding: 16px 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.readout__size { font: 800 28px/1.1 var(--display); letter-spacing: -.01em; }
.readout__area { margin-top: 4px; }
.readout__tag { color: var(--muted); font-size: var(--fs-small); min-height: 1.4em; }
.readout__price { margin-top: 8px; color: var(--muted); overflow: clip; }
.readout__price b { font: 800 var(--fs-price)/1 var(--display); color: var(--ink); display: inline-block; }
.readout__price.swap b, .readout__area.swap b { animation: swap .3s var(--ease); }
@keyframes swap { from { transform: translateY(70%); opacity: 0; } }
.viz__stage { border-radius: var(--r); overflow: clip; background: var(--yard); border: 1px solid var(--line); position: relative; }
.viz__stage svg { width: 100%; height: auto; aspect-ratio: 1 / 1; }
.viz__cap { position: absolute; right: 12px; top: 10px; font-size: 13px; color: var(--muted); background: rgba(237, 238, 223, .85); padding: 2px 8px; border-radius: 6px; }
.v-house rect { fill: #3F6F8E; stroke: var(--ink); stroke-width: .03; }
.v-house .v-house__b { fill: #5A86A3; stroke: none; }
.v-house path { stroke: #2E536B; stroke-width: .08; }
.v-house text { fill: #fff; font: 700 .32px var(--body); text-anchor: middle; dominant-baseline: middle; }
.v-bed rect { fill: rgba(255, 252, 248, .78); stroke: var(--ink); stroke-width: .03; }
.v-bed path { stroke: var(--ink); stroke-width: .025; }
.v-car text, .v-bay text { fill: var(--muted); font: 600 .26px var(--body); }
.v-bed text { fill: var(--ink); font: 700 .24px var(--body); text-anchor: middle; dominant-baseline: middle; }
.v-car rect { fill: rgba(42, 23, 20, .1); stroke: var(--ink); stroke-width: .03; }
.v-car .v-car__glass { fill: rgba(112, 191, 255, .35); }
.v-bay rect { fill: var(--bay); }
.v-bay path { stroke: #fff; stroke-width: .05; stroke-dasharray: .2 .12; }
.v-dim path { stroke: var(--ink); stroke-width: .025; }
.v-dim text { fill: var(--ink); font: 700 .28px var(--body); text-anchor: middle; }
.v-scale path { stroke: var(--ink); stroke-width: .05; }
.v-scale text { fill: var(--ink); font: 700 .24px var(--body); }
.viz__mini { display: none; }
@media (max-width: 767px) {
  .viz__mini { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 20; margin: 16px var(--gut) 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; padding: 6px 6px 6px 16px; border-radius: 14px; background: rgba(255, 252, 248, .96); border: 1px solid var(--line); box-shadow: var(--sh-float); font-weight: 700; font-size: var(--fs-small); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .viz__mini.is-on { opacity: 1; pointer-events: auto; }
}
@media (min-width: 1024px) {
  .viz__grid { grid-template-columns: 5fr 7fr; gap: 40px; align-items: center; }
  .viz__stage svg { aspect-ratio: 7 / 5; }
}

/* ---------- duo / options / uses / gets ---------- */
.duo { display: grid; gap: 20px; }
.duo__card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: clip; display: flex; flex-direction: column; transition: translate .25s, box-shadow .25s; }
.duo__card:hover { translate: 0 -3px; box-shadow: var(--sh-hover); }
.duo__card .frame { border-radius: 0; }
.duo__body { padding: 20px 20px 18px; display: flex; flex-direction: column; flex: 1; }
.duo__price { margin-top: auto; padding-top: 12px; color: var(--muted); }
.duo__price b { font: 800 var(--fs-price)/1 var(--display); color: var(--ink); }
.duo__price small { font-size: var(--fs-small); margin-left: 6px; }
.duo .btn-row { margin-top: 12px; }
.ticks { display: grid; gap: 8px; margin-top: 12px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks svg { flex: none; width: 20px; height: 20px; color: var(--wa); margin-top: 3px; }
@media (min-width: 768px) { .duo { grid-template-columns: 1fr 1fr; gap: 24px; } }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.opt .frame { aspect-ratio: 4 / 5; }
.opt figcaption { padding-top: 10px; }
.opt h3 { font-size: 1.125rem; }
.opt p { font-size: var(--fs-small); color: var(--muted); }
.opt { margin: 0; }
@media (min-width: 1024px) { .opts { grid-template-columns: repeat(4, 1fr); gap: 24px; } .opt .frame { aspect-ratio: auto; height: 300px; } }
.swatches { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 24px; font-size: var(--fs-small); color: var(--muted); }
.swatches b { color: var(--ink); margin-right: 8px; }
.swatches > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 18px; height: 18px; border-radius: 4px; background: var(--c); border: 1px solid var(--ink); margin-left: 4px; }
.uses { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: clip; }
.uses a { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 14px 16px; background: var(--card); text-decoration: none; color: var(--ink); font-weight: 700; transition: background-color .2s; }
.uses a:hover { background: var(--peach-tint); }
.uses svg { width: 24px; height: 24px; color: var(--rust-ink); flex: none; }
@media (min-width: 768px) { .uses { grid-template-columns: repeat(4, 1fr); } .uses a { min-height: 80px; } }
.gets { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.gets li { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.gets svg { width: 22px; height: 22px; color: var(--wa); flex: none; }
@media (min-width: 768px) { .gets { grid-template-columns: repeat(5, auto); justify-content: space-between; } }
.custom-band { display: grid; gap: 12px; margin-top: 32px; padding: 20px; border-radius: var(--r); background: var(--peach-tint); }
.custom-band > svg { width: 36px; height: 36px; color: var(--rust-ink); }
.custom-band p { color: var(--muted); margin-top: 4px; }
.custom-band .btn-row { margin-top: 0; }
@media (min-width: 1024px) { .custom-band { grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 24px 28px; } }

/* ---------- how it works (scroll-built house; built by default) ---------- */
.how__grid { display: grid; gap: 28px; align-items: center; }
.how__art { max-width: 440px; width: 100%; margin: 0 auto; }
.hh { width: 100%; height: auto; overflow: visible; }
.hh-sun { fill: var(--peach-light); }
.hh-blocks rect { fill: #752323; }
.hh-floor { fill: #581D1A; }
.hh-gable, .hh-plank { fill: #A34020; }
.hh-plank--b { fill: #9A3B1D; }
.hh-seams path { stroke: var(--pine); stroke-width: 1.5; opacity: .7; }
.hh-window rect { fill: #CFE9FF; stroke: var(--pine); stroke-width: 4; }
.hh-window path { stroke: var(--pine); stroke-width: 3; }
.hh-door rect { fill: #5B1F12; stroke: var(--pine); stroke-width: 4; }
.hh-door circle { fill: var(--peach); }
.hh-roof path:first-child { fill: var(--zinc); }
.hh-roof--r path:first-child { fill: #5E8BA8; }
.hh-ticks path { stroke: #4E7C99; stroke-width: 2; }
.hh-ridge { fill: #4E7C99; }
.steps { display: grid; gap: 12px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); transition: border-color .3s, background-color .3s; }
.steps__n { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); font: 800 16px/1 var(--display); color: var(--ink); transition: background-color .3s; }
.steps h3 { font-size: 1.0625rem; }
.steps p { font-size: var(--fs-small); color: var(--muted); margin-top: 2px; }
.steps li.is-on .steps__n { background: var(--peach); }
.steps li.is-on { border-color: var(--peach); }
@media (min-width: 1024px) { .how__grid { grid-template-columns: 5fr 7fr; gap: 56px; } .steps { grid-template-columns: 1fr 1fr; } }

/* ---------- bento teaser ---------- */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { position: relative; display: block; border-radius: var(--r); overflow: clip; text-decoration: none; }
.tile .frame { aspect-ratio: 4 / 5; border-radius: 0; height: 100%; }
.tile__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 12px 10px; background: linear-gradient(180deg, rgba(42, 20, 17, 0), rgba(42, 20, 17, .82)); color: var(--on-dark); font-size: var(--fs-small); font-weight: 600; line-height: 1.3; }
.tile .frame img { transition: scale .4s var(--ease); }
.tile:hover .frame img { scale: 1.04; }
.span-big { grid-column: 1 / -1; }
.span-big .frame { aspect-ratio: 16 / 10; }
.span-wide { grid-column: 1 / -1; }
.span-wide .frame { aspect-ratio: 16 / 9; }
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(12, 1fr); grid-auto-rows: 210px; gap: 16px; }
  .tile { grid-column: span 3; }
  .tile .frame { aspect-ratio: auto; }
  .span-big { grid-column: span 6; grid-row: span 2; }
  .span-big .frame, .span-wide .frame { aspect-ratio: auto; }
  .span-wide { grid-column: span 6; }
}

/* ---------- areas / who / where ---------- */
.areas, .who, .where { display: grid; gap: 28px; align-items: center; }
.area-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.area-chips li { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: var(--fs-small); }
.area-chips svg { width: 16px; height: 16px; color: var(--rust-ink); }
.areas__media { position: relative; }
.areas__cap { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: var(--fs-small); color: var(--muted); }
.areas__cap svg { width: 18px; height: 18px; color: var(--rust-ink); }
.who__media { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.who__b { margin-bottom: -24px; }
.verified { display: inline-flex; align-items: center; gap: 12px; margin-top: 20px; padding: 12px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); min-height: 44px; }
.verified svg { width: 28px; height: 28px; color: var(--zinc-ink); }
.verified b, .verified small { display: block; }
.verified small { color: var(--muted); font-size: var(--fs-small); }
.follow { padding: 24px; border-radius: var(--r); background: var(--surface-2); }
.follow p { color: var(--muted); margin-top: 4px; }
@media (min-width: 1024px) { .areas, .who, .where { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; gap: 24px; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 12px 16px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; transition: rotate .25s; color: var(--rust-ink); }
.faq details[open] summary svg { rotate: 180deg; }
.faq details > div { padding: 0 16px 16px; color: var(--muted); }
@media (min-width: 1024px) { .faq-wrap { grid-template-columns: 4fr 7fr; gap: 56px; align-items: start; } }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: clip; background: var(--peach-tint); padding: 56px 0; }
.cta__in { position: relative; display: grid; gap: 8px; }
.cta p { color: var(--muted); margin-top: 8px; max-width: 52ch; }
.cta__mark { position: absolute; right: -30px; top: 50%; margin-top: -100px; opacity: .22; pointer-events: none; }
.cta__mark .lg { width: 200px; height: 200px; }
.cta__mark .lg-tile { fill: var(--peach); }
@media (min-width: 1024px) { .cta { padding: 64px 0; } .cta__in { grid-template-columns: 1fr auto; align-items: center; gap: 32px; } .cta .btn-row { margin-top: 0; } .cta__mark { right: 4%; } }

/* ---------- footer ---------- */
.foot { background: var(--footer); padding: 48px 0 calc(24px + 76px); font-size: var(--fs-small); }
.foot__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
.foot__brand { grid-column: 1 / -1; }
.foot__brand p { color: var(--muted); margin-top: 12px; max-width: 40ch; }
.foot__areas { font-weight: 600; }
.foot h2 { font: 700 13px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--rust-ink); margin-bottom: 10px; }
.foot ul li a { display: inline-block; padding: 12px 0; line-height: 1.25; color: var(--ink); text-decoration: none; }
.foot ul li a:hover { color: var(--rust-ink); text-decoration: underline; }
.foot address { font-style: normal; color: var(--muted); margin-top: 8px; }
.foot__bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); }
.foot__links { display: inline-flex; gap: 16px; align-items: center; }
.foot__links a { color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; }
.foot__bottom button { min-height: 44px; border: 0; background: none; padding: 0; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (min-width: 768px) { .foot { padding-bottom: 28px; } .foot__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; } .foot__brand { grid-column: auto; } }

/* ---------- WhatsApp float + phone bar ---------- */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: flex; align-items: center; gap: 10px; text-decoration: none; transition: opacity .2s, scale .2s; }
.wa-float__disc { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: var(--sh-float); }
.wa-float__disc svg { width: 28px; height: 28px; }
.wa-float__pill { background: var(--card); color: var(--ink); font-weight: 700; padding: 10px 14px; border-radius: 999px; box-shadow: var(--sh-float); opacity: 0; transform-origin: 100% 50%; scale: .6 1; transition: opacity .35s, scale .35s var(--ease); pointer-events: none; }
.wa-float.show-pill .wa-float__pill { opacity: 1; scale: 1; }
@media (min-width: 768px) { .wa-float { right: 24px; bottom: 24px; } }
.bbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 6px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: rgba(251, 246, 241, .96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); transition: transform .3s var(--ease); }
.bbar a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border-radius: 10px; font-weight: 700; color: var(--ink); text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.bbar svg { width: 20px; height: 20px; }
.bbar .bbar__wa { background: var(--wa); color: #fff; box-shadow: none; }
.bbar.is-hidden, html.bar-off .bbar { transform: translateY(calc(100% + 32px)); }
@media (max-width: 767px) {
  body:not([data-page="quote"]) .wa-float { opacity: 0; scale: .8; pointer-events: none; }
  body:not([data-page="quote"]) { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  html.bar-off .wa-float { opacity: 0 !important; pointer-events: none !important; }
}
@media (min-width: 768px) { .bbar { display: none; } }

/* ---------- inner page hero (light split) ---------- */
.phero { padding: 28px 0 32px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.phero__grid { display: grid; gap: 20px; }
.phero__media { order: -1; }
.frame--hero { aspect-ratio: 4 / 3; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: var(--fs-small); color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); min-height: 32px; display: inline-flex; align-items: center; }
.phero h1 { margin: 2px 0 12px; max-width: 20ch; }
.phero--short h1 { max-width: 24ch; }
@media (min-width: 1024px) {
  .phero { padding: 40px 0 48px; min-height: 380px; display: flex; align-items: center; }
  .phero__grid { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  .phero__media { order: 0; }
  .frame--hero { aspect-ratio: auto; height: 340px; }
  .phero--short { min-height: 0; padding: 40px 0 36px; }
  .phero--q { min-height: 0; padding: 36px 0 28px; }
}
.draft { display: inline-block; margin-top: 8px; padding: 8px 12px; border-radius: 8px; background: var(--peach-tint); color: var(--ink); font-weight: 700; font-size: var(--fs-small); }
.prose--doc h2 { font-size: 1.375rem; margin: 28px 0 8px; }
.prose--doc h2:first-child { margin-top: 0; }
.prose--doc p { color: var(--muted); }

/* ---------- log cabins compare / strip ---------- */
.cmp-wrap { display: grid; gap: 8px; }
.cmp { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: clip; font-size: var(--fs-small); }
.cmp th, .cmp td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cmp thead th { font-family: var(--display); font-size: 1.0625rem; background: var(--surface-2); }
.cmp td svg { width: 20px; height: 20px; color: var(--wa); }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
@media (min-width: 1024px) { .cmp-wrap { grid-template-columns: 4fr 7fr; gap: 56px; align-items: start; } .cmp { font-size: 1rem; } }
.strip4 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.strip4 figure { margin: 0; }
@media (min-width: 1024px) { .strip4 { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

/* ---------- gallery ---------- */
.sec--gallery { padding-top: 24px; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin: 0 calc(-1 * var(--gut)); padding-left: var(--gut); padding-right: var(--gut); scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters .chip { flex: none; }
@media (min-width: 1024px) { .filters { flex-wrap: wrap; overflow: visible; margin: 0; padding: 4px 0 20px; position: sticky; top: var(--nav); z-index: 5; background: var(--surface); } }
.ggrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; grid-auto-flow: dense; }
.gtile .frame { aspect-ratio: 4 / 5; }
.gtile--wide { grid-column: 1 / -1; }
.gtile--wide .frame { aspect-ratio: 16 / 10; }
.gtile__btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--r); }
.gtile__btn img { transition: scale .4s var(--ease); }
.gtile__btn:hover img { scale: 1.04; }
@media (min-width: 1024px) { .ggrid { grid-template-columns: repeat(4, 1fr); gap: 16px; } .gtile--wide { grid-column: span 2; } .gtile--wide .frame { aspect-ratio: auto; height: 100%; } }
.lb { padding: 0; border: 0; max-width: none; max-height: none; width: 100vw; height: 100vh; height: 100svh; background: rgba(28, 13, 11, .94); color: var(--on-dark); overflow: clip; }
.lb::backdrop { background: rgba(28, 13, 11, .6); }
.lb__in { position: relative; height: 100%; display: grid; place-items: center; padding: 56px 8px 16px; }
.lb__fig { margin: 0; display: grid; gap: 12px; justify-items: center; max-width: min(92vw, 1000px); }
.lb__fig img { max-height: calc(100svh - 190px); max-height: calc(100vh - 190px); width: auto; object-fit: contain; border-radius: 10px; }
.lb__fig figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; text-align: center; font-size: var(--fs-small); color: var(--on-dark-muted); max-width: 60ch; }
.lb .nav__icon { color: var(--on-dark); background: rgba(255, 255, 255, .08); }
.lb__close { position: absolute; top: 8px; right: 8px; }
.lb__nav { position: absolute; top: 50%; translate: 0 -50%; }
.lb__prev { left: 8px; }
.lb__prev svg { rotate: 180deg; }
.lb__next { right: 8px; }
.lb :focus-visible { outline-color: var(--peach); }

/* ---------- quote builder ---------- */
.sec--q { padding-top: 24px; }
.qwrap { display: grid; gap: 24px; align-items: start; }
.qform { min-width: 0; }
.qset { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); padding: 18px 16px; margin: 0 0 14px; min-width: 0; }
.qset legend, .qset > summary { display: flex; align-items: center; gap: 10px; font: 800 1.1875rem/1.2 var(--display); padding: 0 6px; margin-left: -6px; }
.qset legend small, .qset summary small { font: 500 var(--fs-small) var(--body); color: var(--muted); }
.qset--opt > summary { cursor: pointer; list-style: none; min-height: 44px; padding: 0; margin: 0; }
.qset--opt > summary::-webkit-details-marker { display: none; }
.qset--opt > summary svg { width: 20px; height: 20px; margin-left: auto; color: var(--rust-ink); transition: rotate .25s; }
.qset--opt[open] > summary svg { rotate: 180deg; }
.qset fieldset { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; }
.qset fieldset legend { font: 700 1rem/1.3 var(--body); margin: 0 0 8px; padding: 0; }
.qset__n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--peach-tint); font-size: 15px; flex: none; }
.qhint, .qlabel { font-size: var(--fs-small); color: var(--muted); margin: 14px 0 8px; display: flex; gap: 6px; align-items: center; }
.qhint svg { width: 18px; height: 18px; flex: none; }
.qlabel { color: var(--ink); font-weight: 700; }
.opt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.opt-row--wrap { display: flex; flex-wrap: wrap; }
.opt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 560px) { .opt-grid { grid-template-columns: repeat(4, 1fr); } }
.opt-r { position: relative; display: block; cursor: pointer; }
.opt-r input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.opt-r span { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 48px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--card); font-weight: 600; line-height: 1.25; transition: border-color .15s, background-color .15s; }
.opt-row:not(.opt-row--wrap) .opt-r span { min-height: 72px; }
.opt-r span svg { width: 22px; height: 22px; color: var(--rust-ink); margin-bottom: 2px; }
.opt-r small { font-size: 13px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.opt-r input:checked + span { background: var(--peach-tint); border: 2px solid var(--rust-ink); padding: 7px 13px; }
.opt-r input:focus-visible + span { outline: 2px solid var(--rust-ink); outline-offset: 2px; }
.opt-r:hover span { border-color: var(--ink); }
.opt-r.is-off { display: none; }
.qcustom { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: center; margin-top: 12px; max-width: 320px; }
.qcustom .qerr { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; margin-top: 12px; }
.field label { font-weight: 700; }
.field label small { font-weight: 500; color: var(--muted); }
.field input, .field textarea, .qcustom input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; font: inherit; color: var(--ink); }
.field textarea { resize: vertical; min-height: 88px; }
[aria-invalid="true"] { border-color: var(--error) !important; box-shadow: 0 0 0 1px var(--error); }
.qerr { color: var(--error); font-size: var(--fs-small); font-weight: 600; margin-top: 4px; }
.qerr::before { content: "! "; font-weight: 800; }
.qnote { font-size: var(--fs-small); color: var(--zinc-ink); margin-top: 8px; min-height: 0; }
.qerrs:not(:empty) { padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--error); background: #FFF4F2; margin-bottom: 14px; }
.qerrs p { font-weight: 700; color: var(--error); }
.qerrs ul { margin-top: 6px; display: grid; gap: 2px; }
.qerrs a { color: var(--error); font-weight: 600; }
.qdone { text-align: left; padding: 24px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.qdone h2 { font-size: 1.5rem; margin: 16px 0 8px; }
.qdone p { color: var(--muted); }
.qsum { display: none; }
.qsum__card { padding: 20px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.qsum__fp { min-height: 96px; }
.qsum__fp .fp { width: 96px; height: 96px; }
.qsum__what { font: 800 1.25rem/1.2 var(--display); margin-top: 6px; }
.qsum__price { margin-top: 6px; color: var(--muted); overflow: clip; }
.qsum__price b { font: 800 var(--fs-price)/1 var(--display); color: var(--ink); display: inline-block; }
.qsum__price.swap b { animation: swap .3s var(--ease); }
.qsum__msg { margin: 14px 0; padding: 12px; max-height: 200px; overflow: auto; border-radius: 10px; background: var(--surface); border: 1px dashed var(--line-strong); font: 500 13px/1.45 var(--body); white-space: pre-wrap; color: var(--muted); }
.qsum__alt { margin-top: 10px; font-size: var(--fs-small); color: var(--muted); }
.qsum__alt .tlink { display: inline; min-height: 0; text-decoration: underline; color: var(--rust-ink); font-size: inherit; }
.qsum__contact { display: grid; gap: 4px; margin-top: 14px; padding: 16px 20px; border-radius: var(--r); background: var(--surface-2); font-size: var(--fs-small); }
.qsum__contact a, .qsum__contact p { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.qsum__contact svg { width: 18px; height: 18px; color: var(--rust-ink); flex: none; }
.qbar { position: sticky; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 calc(-1 * var(--gut)); padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: rgba(251, 246, 241, .97); border-top: 1px solid var(--line); font-weight: 700; font-variant-numeric: tabular-nums; }
html.bar-off .qbar { position: static; }
@media (min-width: 1024px) {
  .qwrap { grid-template-columns: 7fr 5fr; gap: 32px; }
  .qsum { display: block; position: sticky; top: calc(var(--nav) + 24px); }
  .qbar { display: none; }
  .qset { padding: 22px 24px; }
}
@media (min-width: 768px) and (max-width: 1023px) { .qsum { display: block; } .qsum__msg { display: none; } }

/* ---------- 404 ---------- */
.nf { padding: 56px 0 72px; }
.nf__in { text-align: center; display: grid; justify-items: center; gap: 12px; max-width: 640px; }
.nf__in .lead { margin: 0 auto; }
.nf__sizes { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }

/* ---------- logo loops (CSS only; DESIGN §4) ---------- */
.lg { overflow: visible; flex: none; }
.lg-tile { fill: var(--peach); }
.lg-sun { fill: #FFF1E4; }
.lg-band { fill: var(--zinc); }
.lg-ridge { fill: #4E7C99; }
.lg-tick { stroke: #4E7C99; stroke-width: 1; stroke-linecap: round; opacity: .55; }
.lg-b { fill: #A34020; }
.lg-mullion { stroke: #A34020; stroke-width: .9; fill: none; }
.lg-knob { fill: #A34020; }
.lg-blocks rect { fill: #752323; }
.lg-glint { transform: skewX(-18deg) translateX(0); transform-box: view-box; }
.lg--calm .lg-glint { animation: lg-glint 12s cubic-bezier(.45, 0, .25, 1) infinite; }
.lg--calm .lg-tick { animation: lg-tick 12s ease-in-out infinite; animation-delay: calc(var(--i) * .06s); }
.lockup:hover .lg--calm .lg-glint { animation: lg-glint-now 1.4s cubic-bezier(.45, 0, .25, 1); }
@keyframes lg-glint { 0% { transform: skewX(-18deg) translateX(0); } 11.7%, 100% { transform: skewX(-18deg) translateX(78px); } }
@keyframes lg-glint-now { from { transform: skewX(-18deg) translateX(0); } to { transform: skewX(-18deg) translateX(78px); } }
@keyframes lg-tick { 0%, 12.5% { opacity: .55; } 16% { opacity: 1; } 21.7%, 100% { opacity: .55; } }
.lg--build .lg-blocks rect { transform-box: fill-box; transform-origin: 50% 100%; animation: lg-blk 9s var(--ease) infinite; }
.lg--build .lg-house { animation: lg-planks 9s steps(6, end) infinite; }
.lg--build .lg-roof { animation: lg-roof 9s cubic-bezier(.34, 1.56, .64, 1) infinite; }
.lg--build .lg-sun { animation: lg-sun 9s var(--ease) infinite; }
.lg--build .lg-glint { animation: lg-glint-b 9s cubic-bezier(.45, 0, .25, 1) infinite; }
@keyframes lg-blk { 0% { transform: scaleY(0); } 5.5%, 100% { transform: scaleY(1); } }
@keyframes lg-planks { 0%, 5.5% { clip-path: inset(100% 0 0 0); } 21%, 91% { clip-path: inset(0 0 0 0); } 91.1%, 100% { clip-path: inset(100% 0 0 0); } }
@keyframes lg-roof { 0%, 21% { transform: translateY(-10px); opacity: 0; } 27.8%, 91% { transform: none; opacity: 1; } 100% { transform: none; opacity: .12; } }
@keyframes lg-sun { 0%, 27.8% { transform: translateY(6px); opacity: 0; } 34.4%, 91% { transform: none; opacity: 1; } 100% { opacity: .12; } }
@keyframes lg-glint-b { 0%, 34.4% { transform: skewX(-18deg) translateX(0); } 50%, 100% { transform: skewX(-18deg) translateX(78px); } }
html.motion-paused .lg *, html.tab-hidden .lg *, .lg.is-off * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .lg * { animation: none !important; } .lg-glint { display: none; } }

/* ---------- reveal gates (tier-scoped, never plain CSS) ---------- */
html.fx [data-reveal]:not([data-done]) { opacity: 0; transform: translateY(24px); }
html.fxm [data-reveal]:not([data-done]) { opacity: 0; transform: translateY(16px); transition: opacity .42s var(--ease), transform .42s var(--ease); }
html.fxm [data-reveal].is-in:not([data-done]) { opacity: 1; transform: none; }
html.fxm .frame img { transition: scale .8s var(--ease); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } .tile .frame img, .gtile__btn img { transition: none; } }

/* ---------- fixes from the screenshot pass ---------- */
.phero > .wrap { width: 100%; }
.qsum__msg:empty { display: none; }
@media (min-width: 1024px) { .gtile--wide, .gtile--wide .gtile__btn { height: 100%; } }
.gtile.is-target .gtile__btn { outline: 3px solid var(--peach); outline-offset: 3px; }

/* ---------- phone compaction (Andy: compact, easy to read; never cut copy) ---------- */
@media (max-width: 767px) {
  .pgrid { grid-template-columns: 1fr; }
  .pcard { display: grid; grid-template-columns: 52px 1fr auto; column-gap: 12px; row-gap: 0; align-items: center; padding: 12px 14px 8px; }
  .pcard .fp, .pcard .pcard__ico { grid-row: 1 / 4; grid-column: 1; width: 52px; height: 52px; margin: 0; align-self: start; }
  .pcard .pcard__ico { width: 32px; height: 32px; }
  .pcard h3 { grid-column: 2; font-size: 1.0625rem; }
  .pcard__tag, .pcard__use { grid-column: 2; }
  .pcard__price { grid-column: 3; grid-row: 1 / 3; margin: 0; padding: 0; text-align: right; line-height: 1.1; }
  .pcard__price span { display: block; }
  .pcard__price b { font-size: 1.5rem; }
  .pcard__price--q { grid-row: auto; grid-column: 2 / -1; text-align: left; font-size: var(--fs-small); }
  .pcard__acts { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 0 18px; margin-top: 2px; }
  .pcard__acts .btn { width: auto; }
  .pcard__flag { display: none; }
  .cgrid .pcard { grid-template-columns: 52px 1fr; }
  .duo__card .frame { aspect-ratio: 2 / 1 !important; }
  .duo__body { padding: 16px; }
  .tile .frame { aspect-ratio: 1 / 1; }
  .span-big .frame { aspect-ratio: 16 / 10; }
  .span-wide .frame { aspect-ratio: 2 / 1; }
  .opt .frame { aspect-ratio: 1 / 1; }
  .areas__media .frame { aspect-ratio: 16 / 9 !important; }
  .how__art { max-width: 300px; }
  .steps li { padding: 12px 14px; }
  .faq summary { min-height: 52px; }
  .who__media { grid-template-columns: 1fr 1fr; }
  .strip4 figure .frame { aspect-ratio: 1 / 1 !important; }
  .sec-head { margin-bottom: 20px; }
}

/* ---------- compaction pass 2: no section taller than a laptop screen ---------- */
@media (min-width: 768px) {
  .pcard { display: grid; grid-template-columns: 64px 1fr; column-gap: 14px; row-gap: 0; align-content: start; padding: 18px 18px 10px; }
  .pcard .fp, .pcard .pcard__ico { grid-row: 1 / 4; grid-column: 1; width: 64px; height: 64px; margin: 0; }
  .pcard .pcard__ico { width: 36px; height: 36px; }
  .pcard h3 { grid-column: 2; font-size: 1.1875rem; }
  .pcard__tag, .pcard__use { grid-column: 2; }
  .pcard__price { grid-column: 1 / -1; padding-top: 12px; }
  .pcard__acts { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 0 16px; margin-top: 2px; }
  .pcard__flag { top: 10px; right: 12px; font-size: 11px; }
  .duo__card { flex-direction: row; }
  .duo__card .frame { width: 42%; flex: none; aspect-ratio: auto !important; }
  .duo__body { padding: 20px; }
  .duo .btn-row { flex-direction: column; align-items: flex-start; gap: 4px; }
}
@media (min-width: 1024px) {
  .opt .frame { height: 220px; }
  .bento { grid-auto-rows: 190px; }
  .viz .sec-head h2 { max-width: none; }
  .viz__grid { align-items: start; }
}
@media (max-width: 767px) {
  .foot__grid > div:nth-child(3) { display: none; }
  .hero__trust { gap: 4px 14px; margin-top: 14px; }
  .duo .btn-row > .btn { width: auto; }
}
@media (min-width: 768px) {
  .pcard { grid-template-columns: 56px 1fr; padding: 16px 16px 8px; }
  .pcard .fp, .pcard .pcard__ico { width: 56px; height: 56px; }
  .pcard h3 { font-size: 1.125rem; }
  .pcard__price { padding-top: 8px; }
}
@media (min-width: 1024px) {
  #prices .sec-head, .sec-head--row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; align-items: end; max-width: none; }
  #prices .sec-head .eyebrow, .sec-head--row .eyebrow { grid-column: 1 / -1; justify-self: start; }
  #prices .sec-head .lead, .sec-head--row .lead { margin: 0; }
  .viz .readout { padding: 12px 16px; margin-top: 12px; }
  .viz .readout .fine { margin-top: 6px; }
  .viz .seg { margin-bottom: 10px; }
  .viz__cmp { margin-top: 10px; }
  .viz .btn-row { margin-top: 16px; }
  .swatches { align-items: center; }
  .opts + .swatches + .btn-row--c { justify-content: flex-start; margin-top: 16px; }
}
/* 320px: let grid items shrink and long button labels wrap instead of pushing the layout wide */
.phero__grid > *, .pgrid > *, .pcard > *, .nf__in > *, .hero__copy > *, .duo > *, .who > *, .areas > *, .where > * { min-width: 0; }
@media (max-width: 767px) { .pgrid { grid-template-columns: minmax(0, 1fr); } .btn { white-space: normal; text-align: center; line-height: 1.2; } }
/* sticky bottom bars must never cover the field being focused or scrolled to */
@media (max-width: 1023px) { html { scroll-padding-bottom: calc(88px + env(safe-area-inset-bottom)); } }

/* ---------- conversion-audit pass ---------- */
.pcard__use { color: var(--muted); font-weight: 500; }
.trust__a { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-height: 44px; }
.trust__a:hover b { color: var(--rust-ink); text-decoration: underline; }
.viz__cap { position: static; background: none; padding: 8px 2px 0; }
.gets__h { font-size: 1.25rem; margin-bottom: 14px; }
.cta__ql { display: none; }
@media (max-width: 767px) {
  .cta__q { display: none; }
  .cta__ql { display: inline-flex; }
  .hero__media { aspect-ratio: auto; height: 300px; max-height: none; }
  .how__art { max-width: 240px; }
}
.cblock { display: grid; gap: 20px; padding: 20px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.cblock__sizes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.csize { display: grid; justify-items: start; gap: 4px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); transition: border-color .2s, background-color .2s; }
.csize:hover { border-color: var(--wa); background: #fff; }
.csize .fp { width: 56px; height: 56px; }
.csize b { font: 800 1.125rem/1.1 var(--display); }
.csize span { display: inline-flex; align-items: center; gap: 6px; color: var(--wa); font-weight: 700; font-size: var(--fs-small); }
.csize span svg { width: 18px; height: 18px; }
.cblock__price p:first-child { color: var(--muted); }
.cblock__price b { font: 800 var(--fs-price)/1 var(--display); color: var(--ink); }
@media (min-width: 1024px) { .cblock { grid-template-columns: 7fr 4fr; align-items: center; padding: 24px 28px; } .cblock__sizes { grid-template-columns: repeat(5, 1fr); } }

@media (max-width: 1023px) { body[data-page="quote"] .wa-float { display: none; } }
/* menu: centred when it fits, scrolls when it doesn't (landscape phones, 320x568) */
.menu { justify-content: flex-start; overflow-y: auto; overscroll-behavior: contain; padding-top: 72px; padding-bottom: 32px; }
.menu__links { margin-top: auto; }
.menu__ctas { margin-bottom: auto; }
/* phone price list: compact rows, the whole card is the WhatsApp tap target */
@media (max-width: 767px) {
  .pgrid .pcard:not(.pcard--custom) { position: relative; grid-template-columns: 44px 1fr auto; padding: 12px 14px; }
  .pgrid .pcard:not(.pcard--custom) .fp { width: 44px; height: 44px; grid-row: 1 / 4; }
  .pgrid .pcard:not(.pcard--custom) .pcard__use { display: none; }
  .pgrid .pcard:not(.pcard--custom) .pcard__acts { grid-column: 2; margin: 0; }
  .pgrid .pcard:not(.pcard--custom) .pcard__acts .tlink:not(.tlink--wa) { display: none; }
  .pgrid .pcard:not(.pcard--custom) .tlink--wa { min-height: 28px; font-size: .9375rem; }
  .pgrid .pcard:not(.pcard--custom) .tlink--wa::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
  .pgrid .pcard:not(.pcard--custom) .pcard__price { grid-row: 1 / 4; align-self: center; }
}
