/* Homepage (skyline version): founder photo hero, cream page below, one services section in three groups, sticky call bar on phones.
   One light look on purpose. Ported from the private Version C preview, Nov 17 2026. */
:root {
  color-scheme: light;
  --paper: #F6F0E4;       /* warm cream page */
  --sand: #EDE2CE;        /* quieter band */
  --card: #FFFBF3;
  --ink: #15191F;
  --muted: #5B5347;
  --line: #E0D4BF;
  --safety: #F28C28;      /* YFS orange, buttons */
  --safety-ink: #A24F0E;  /* orange as text on cream */
  --navy: #0E1A2B;
  --on-navy: #F3EEE4;
  --on-navy-muted: #B9C0CB;
  --sky-ink: #0E1A2B;
  --sky-sub: #7A3A06;
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
* { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-text-size-adjust: 100%; padding-bottom: 76px; }
@media (min-width: 900px) { body { padding-bottom: 0; } }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--safety); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(28px, 6.4vw, 44px); font-weight: 800; }
h2 em, h1 em { font-style: italic; color: var(--safety-ink); }
p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.sec { padding-block: 56px; display: grid; gap: 28px; }
@media (min-width: 900px) { .sec { padding-block: 88px; gap: 40px; } }
.label { font-family: var(--sans); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--safety-ink); }
.sub { color: var(--muted); max-width: 62ch; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 20px; }
.brand-sub { display: none; color: var(--muted); font-size: 14px; }
@media (min-width: 560px) { .brand-sub { display: inline; } }
.nav { display: none; gap: 22px; font-weight: 600; font-size: 15px; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--safety-ink); }
@media (min-width: 900px) { .nav { display: flex; } }
.header-tools { display: flex; align-items: center; gap: 8px; }
.lang { font-size: 14px; font-weight: 700; text-decoration: none; padding: 7px 10px; border: 1.5px solid var(--line); border-radius: 999px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 22px; border-radius: 12px; font-family: var(--display); font-weight: 800; font-size: 18px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.btn-safety { background: var(--safety); color: var(--navy); box-shadow: 0 2px 0 #B8641A; }
.btn-safety:hover { transform: translateY(-1px); box-shadow: 0 4px 0 #B8641A; }
.btn-line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 15px; border-radius: 10px; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn-safety:hover { transform: none; } }

/* Hero buttons */
.maya-box { display: grid; gap: 12px; }
.maya-btn { flex-direction: column; gap: 0; min-height: 66px; font-size: 21px; width: 100%; }
.maya-btn small { font-family: var(--sans); font-weight: 600; font-size: 15px; letter-spacing: .01em; }
.maya-note { font-size: 15.5px; color: var(--muted); }
.intro-actions { display: grid; gap: 10px; }
.small-line { font-size: 14.5px; color: var(--muted); }
@media (min-width: 900px) {
  .intro-actions { max-width: 440px; }
}

/* Stat row */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.stat { padding: 16px 12px; display: grid; gap: 4px; align-content: start; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 6.4vw, 40px); line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13.5px; color: var(--muted); line-height: 1.35; }
@media (min-width: 900px) { .stat { padding: 24px 28px; } .stat span { font-size: 15.5px; } }

/* Services: one section, three groups */
.groups { display: grid; gap: 18px; }
@media (min-width: 900px) { .groups { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
.group { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 20px 10px; display: grid; gap: 4px; align-content: start; }
.group-head { display: flex; align-items: center; gap: 12px; padding-bottom: 8px; }
.group-ico { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--navy); display: grid; place-items: center; }
.group-ico svg { width: 22px; height: 22px; }
.group h3 { font-size: 22px; font-weight: 800; }
.group-why { color: var(--muted); font-size: 15.5px; padding-bottom: 6px; }
.item { padding: 14px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.item-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.item h4 { margin: 0; font-family: var(--display); font-size: 17px; font-weight: 700; }
.price { font-weight: 700; font-size: 14px; color: var(--safety-ink); white-space: nowrap; }
.price.q { color: var(--muted); font-weight: 600; }
.item p { font-size: 15.5px; color: var(--muted); }
.item.star { background: color-mix(in srgb, var(--safety) 10%, var(--card)); margin: 0 -12px; padding-inline: 12px; border-radius: 10px; border-top-color: transparent; }
.item.star + .item { border-top-color: transparent; }

/* Samples */
.samples-row { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
@media (min-width: 760px) { .samples-row { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; } }
.sample { scroll-snap-align: start; display: grid; gap: 8px; text-decoration: none; }
.sample img { border-radius: 12px; border: 1px solid var(--line); display: block; width: 100%; height: auto; aspect-ratio: 1080 / 820; object-fit: cover; object-position: top; }
.sample b { font-family: var(--display); }
.sample span { color: var(--muted); font-size: 14.5px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
.steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 14px; align-items: start; }
.steps li::before { counter-increment: s; content: counter(s); grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; background: var(--safety); color: var(--navy); font-family: var(--display); font-weight: 800; font-size: 20px; display: grid; place-items: center; }
.steps h3 { font-size: 20px; padding-top: 9px; }
.steps p { color: var(--muted); font-size: 16px; }

/* About */
.about { background: var(--sand); border-block: 1px solid var(--line); }
.about-grid { display: grid; gap: 18px; }
.about blockquote { margin: 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--safety); font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.3; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; } }

/* FAQ */
.faq-list { display: grid; gap: 10px; max-width: 820px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
summary { cursor: pointer; padding: 16px 18px; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--display); font-size: 22px; line-height: 1; color: var(--safety-ink); }
details[open] summary::after { content: "–"; }
details p { padding: 0 18px 16px; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; } }
.big-phone { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 8vw, 44px); text-decoration: none; user-select: all; }
.form { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.form input, .form select { font: inherit; font-size: 16px; padding: 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.form-row { display: grid; gap: 14px; }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: 14px; color: var(--muted); }
.form-result { font-weight: 600; color: var(--safety-ink); }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-navy-muted); font-size: 14.5px; }
.site-footer .wrap { padding-block: 28px; display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.site-footer b { color: var(--on-navy); font-family: var(--display); }

/* Sticky call bar on phones */
.phone-bar { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px var(--gutter-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gutter-l); background: var(--navy); }
.phone-bar .btn { min-height: 48px; font-size: 17px; }
.phone-bar .btn-line { border-color: var(--on-navy); color: var(--on-navy); }
@media (min-width: 900px) { .phone-bar { display: none; } }

/* Version C hero: photo shown whole so the skyline and the tower stay clear; headline under it on phones, beside it on wide screens */
.heroc-grid { display: grid; gap: 22px; padding-bottom: 34px; }
.heroc-photo { position: relative; margin: 0 calc(-1 * var(--gutter-r)) 0 calc(-1 * var(--gutter-l)); overflow: hidden; aspect-ratio: 1200 / 1282; max-width: none; background: #6b5440; }
.heroc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 0%; }
.heroc-copy { display: grid; gap: 16px; }
.heroc h1 { font-size: clamp(32px, 8.6vw, 60px); font-weight: 800; line-height: 1.02; }
.heroc .lead { font-size: 18.5px; max-width: 54ch; }
@media (min-width: 900px) {
  .heroc-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; padding-block: 40px 64px; }
  .heroc-photo { order: 2; margin: 0; border-radius: 22px; aspect-ratio: 1200 / 1282; }
  .heroc-copy { order: 1; gap: 20px; }
  .intro-actions { max-width: 440px; }
}

/* Hero caption tag on the photo */
.hero-tag { position: absolute; z-index: 2; left: var(--gutter-l); bottom: 14px; background: rgba(14,26,43,.78); color: #F3EEE4; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
@media (min-width: 900px) { .hero-tag { left: 16px; } }

/* Accessibility helpers */
.skip-link { position: absolute; left: 12px; top: -64px; z-index: 60; background: var(--navy); color: var(--on-navy); font-family: var(--display); font-weight: 700; padding: 12px 16px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Form states used by app.js */
.form input[aria-invalid="true"] { border-color: #B3261E; }
.form .btn-safety:disabled { opacity: .7; cursor: progress; }
.form-note a, .sms-consent a { color: var(--safety-ink); }
.form .sms-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; font-weight: 400; line-height: 1.4; }
.form .sms-consent input { width: auto; padding: 0; margin-top: 4px; flex: none; }
.form-result { font-size: 16px; padding: 12px 14px; border-radius: 10px; }
.form-result[data-state="success"] { background: #E2EFE6; color: #1E5634; }
.form-result[data-state="error"] { background: #FBE9E7; color: #8C1D18; }
.secure-submit { font: inherit; font-weight: 600; background: #fff; color: var(--ink); border: 1px solid #7F796D; border-radius: 10px; padding: 12px 16px; min-height: 44px; cursor: pointer; }
.form-honeypot { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
.form-honeypot > * { position: absolute; width: 1px; height: 1px; }
.contact-email { color: var(--ink); }

/* Call bar steps aside while the form or footer is on screen (app.js) */
.phone-bar { transition: transform .2s ease, visibility .2s; }
.phone-bar[data-hidden] { transform: translateY(110%); visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .phone-bar { transition: none; } }

/* Language bar app.js adds for Spanish-preferring visitors */
.lang-bar { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 4px 16px; background: var(--navy); color: var(--on-navy); font-weight: 600; font-size: 15px; }
.lang-bar a { color: var(--safety); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.lang-bar button { font: inherit; font-size: 22px; background: none; border: 0; color: var(--on-navy); min-width: 44px; min-height: 44px; cursor: pointer; }
.lang-bar :focus-visible, .phone-bar :focus-visible, .site-footer :focus-visible { outline-color: var(--safety); }

/* Footer links */
.site-footer a { color: var(--on-navy); }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 18px; }


/* The house (#build): tap a piece to see what it does. v2.js draws the pieces from its SYSTEMS list.
   Rules carried over from v2.css so the homepage no longer needs that whole stylesheet. */
:root { --built: #2E7A4D; --concrete: #CFC9BD; --concrete-edge: #B5AE9F; --navy-line: #24324A; }
.build { border-top: 1px solid var(--line); }
.sec-head { display: grid; gap: 12px; }
.piece-panel.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.house { display: flex; flex-direction: column; gap: 24px; }
.house-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.toggle { display: inline-flex; align-self: flex-start; border: 1.5px solid var(--navy); border-radius: 4px; max-width: 100%; }
.toggle button { font: inherit; font-weight: 600; font-size: 15px; min-height: 44px; padding: 10px 14px; background: transparent; color: var(--ink); border: 0; cursor: pointer; }
.toggle button + button { border-left: 1.5px solid var(--navy); }
.toggle button:first-child { border-radius: 2px 0 0 2px; }
.toggle button:last-child { border-radius: 0 2px 2px 0; }
.toggle button[aria-pressed="true"] { background: var(--navy); color: var(--on-navy); }
.toggle button:focus-visible { outline-offset: -5px; }
.toggle button[aria-pressed="true"]:focus-visible { outline-color: var(--safety); }
.house-art { --wall: 46px; align-self: center; --win: 1.05fr; --door: 0.5fr; --upper: 60px; --lower: 112px; --roof: 84px; --frame: #7F796D; --seam: #B5AE9F; --plaster: #E6E1D6;
  width: 100%; max-width: 620px; display: flex; flex-direction: column; align-items: center; }
.block { font: inherit; font-family: var(--display); font-weight: 700; font-size: 13px; line-height: 16px; color: var(--ink); background-color: var(--concrete); border: 1px solid var(--concrete-edge); border-radius: 4px; cursor: pointer; padding: 4px; min-width: 44px; min-height: 44px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; }
.piece-label, .piece-sub { position: relative; z-index: 1; }
.piece-sub { font-family: var(--sans); font-weight: 600; font-size: 12px; line-height: 14px; }
.block:hover, .block.piece-window:hover, .block.piece-door:hover { border-color: var(--navy); }
.block.piece-wall:not([data-selected]):hover { box-shadow: inset 0 0 0 2px var(--navy); }
.block:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; z-index: 3; box-shadow: 0 0 0 3px var(--card); }
.block[data-selected]:focus-visible { box-shadow: inset 0 0 0 3px var(--navy), 0 0 0 3px var(--card); }
.block[data-state="selected"] { background-color: var(--safety); color: var(--navy); border-color: var(--safety); }
.block[data-state="foundation"] { background-color: var(--navy); color: var(--on-navy); border-color: var(--navy); }
.block[data-state="built"] { background-color: var(--built); color: #fff; border-color: var(--built); }
.block[data-selected] { box-shadow: inset 0 0 0 3px var(--navy); }
.block.piece-roof, .block.piece-roof[data-state] { width: 100%; height: var(--roof); padding: 0 0 10px; justify-content: flex-end; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.roof-shape { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.roof-shape polygon { fill: var(--concrete); stroke: var(--seam); stroke-width: 1px; stroke-linejoin: round; }
.piece-roof:hover .roof-shape polygon { stroke: var(--navy); }
.piece-roof[data-state="selected"] .roof-shape polygon { fill: var(--safety); stroke: var(--navy); stroke-width: 3px; }
.house-front { width: calc(100% - 16px); display: grid; gap: 3px; background: var(--seam); border-left: 3px solid var(--seam); border-right: 3px solid var(--seam);
  grid-template-columns: var(--wall) var(--win) var(--door) var(--door) var(--win) var(--wall); grid-template-rows: var(--upper) var(--lower);
  grid-template-areas: "wl tl tl tr tr wr" "wl fl fd fd fr wr"; }
.block.piece-wall { border: 0; border-radius: 0; padding: 4px 5px; background-image: repeating-linear-gradient(90deg, transparent 0 17px, rgba(18, 24, 33, 0.07) 17px 18px); }
.wall-l { grid-area: wl; }
.wall-tl { grid-area: tl; }
.wall-tr { grid-area: tr; }
.wall-r { grid-area: wr; }
.wall-l .piece-label, .wall-r .piece-label { writing-mode: vertical-rl; transform: rotate(180deg); }
.facade { background: var(--plaster); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px 3px 8px; min-width: 0; }
.facade-l { grid-area: fl; }
.facade-r { grid-area: fr; }
.facade-door { grid-area: fd; align-items: stretch; justify-content: stretch; padding: 12px 4px 0; }
.block.piece-window { width: 100%; flex: 0 0 64%; min-height: 48px; border: 2px solid var(--frame); border-radius: 2px; padding: 2px 4px; letter-spacing: -0.01em; hyphens: manual; }
.sill { display: block; width: calc(100% + 4px); height: 5px; margin-top: 3px; background: var(--frame); border-radius: 1px; }
.block.piece-door { width: 100%; flex: 1 1 auto; border: 3px solid var(--frame); border-bottom: 0; border-radius: 10px 10px 0 0; justify-content: flex-start; padding: 12px 4px 4px; }
.piece-door::after { content: ""; position: absolute; right: 7px; top: 58%; width: 7px; height: 7px; border-radius: 50%; background: var(--navy); }
.piece-door[data-state="selected"]::after { background: var(--navy); }
.block.piece-slab { width: 100%; min-height: 50px; border-radius: 3px; font-size: 15px; }
.block.piece-plan { width: 100%; min-height: 50px; margin-top: 14px; border: 2px dashed var(--frame); background-color: transparent;
  background-image: linear-gradient(rgba(14, 26, 43, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(14, 26, 43, 0.07) 1px, transparent 1px); background-size: 14px 14px; }
.block.piece-plan[data-state="selected"] { background-color: var(--safety); border-color: var(--navy); }
.legend { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.swatch { width: 16px; height: 16px; border-radius: 4px; border: 1px solid transparent; }
.swatch-built { background: var(--built); }
.swatch-open { background: var(--concrete); border-color: var(--concrete-edge); }
.swatch-selected { background: var(--safety); }
.piece-panel { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.piece-panel h3 { font-size: 26px; line-height: 30px; }
.piece-panel .btn { align-self: flex-start; margin-top: 4px; }
@media (max-width: 399px) {
  .house-art { --wall: 44px; --win: 0.95fr; --door: 0.55fr; }
  .house-front { width: calc(100% - 8px); gap: 2px; border-width: 2px; }
  .facade { padding-left: 2px; padding-right: 2px; }
  .facade-door { padding-left: 1px; padding-right: 1px; }
}
@media (min-width: 360px) and (max-width: 399px) {
  .house-art { --win: 1.02fr; --door: 0.5fr; }
}
@media (max-width: 379px) {
  .block { font-size: 12px; line-height: 15px; }
  .block.piece-window, .block.piece-door { letter-spacing: -0.02em; }
}
@media (forced-colors: active) {
  .block[aria-pressed="true"], .toggle button[aria-pressed="true"], .house-art .block[aria-pressed="true"] { forced-color-adjust: none; background: Highlight; color: HighlightText; border-color: Highlight; box-shadow: none; }
  .block:focus-visible, .toggle button:focus-visible { outline: 3px solid CanvasText; outline-offset: 3px; }
  .toggle button:focus-visible { outline-offset: -5px; }
  .swatch { forced-color-adjust: none; }
  .roof-shape polygon { fill: Canvas; stroke: CanvasText; }
  .block.piece-roof[aria-pressed="true"] { background: transparent; color: HighlightText; }
  .piece-roof[aria-pressed="true"] .roof-shape polygon { fill: Highlight; stroke: Highlight; }
  .house-front, .facade { border-color: CanvasText; }
  .block.piece-wall { border: 1px solid CanvasText; }
  .sill, .piece-door::after { background: CanvasText; }
}
@media (min-width: 480px) {
  .house-art { --wall: 64px; --upper: 66px; --lower: 124px; --roof: 100px; }
  .house-front { width: calc(100% - 24px); }
  .block { font-size: 14px; line-height: 17px; }
}
@media (min-width: 600px) {
  .house-art { --wall: 84px; }
  .wall-l .piece-label, .wall-r .piece-label { writing-mode: horizontal-tb; transform: none; }
}
@media (min-width: 720px) {
  .house-art { --wall: 96px; --upper: 80px; --lower: 150px; --roof: 124px; }
  .house-front { width: calc(100% - 32px); }
  .block { font-size: 15px; line-height: 18px; }
  .block.piece-window { width: 86%; }
}
@media (min-width: 960px) {
  .house { flex-direction: row; align-items: flex-start; gap: 32px; }
  .house-main { flex: 1 1 0; }
  .piece-panel { flex: 0 0 340px; position: sticky; top: 88px; }
}
@media (min-width: 960px) and (max-width: 1099px) {
  .house-art { --wall: 86px; }
  .block.piece-window { width: 94%; }
}

/* Keep the house inside the screen on phones (grid and flex items default to their content's width) */
.build .sec > *, .house, .house-main, .piece-panel { min-width: 0; }
.house-art { max-width: min(620px, 100%); }
.samples-row { scrollbar-width: none; }
.samples-row::-webkit-scrollbar { display: none; }

/* House tap cards: two or three short lines and one button. On phones the card pops up from the bottom. */
.piece-panel[data-cards] { position: relative; }
.panel-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.panel-steps li { position: relative; padding-left: 22px; font-size: 17px; line-height: 24px; color: var(--ink, inherit); }
.panel-steps li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 9px; height: 9px; border-radius: 2px; background: var(--safety); }
.panel-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 8px; background: transparent; font-size: 28px; line-height: 1; color: inherit; cursor: pointer; }
.panel-close:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
@media (min-width: 960px) { .panel-close { display: none; } }
.piece-panel.pop { animation: card-pop .22s ease-out; }
@keyframes card-pop { from { opacity: .4; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 959px) {
  .piece-panel[data-sheet-ready] { position: fixed; z-index: 40; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); max-height: 72vh; overflow: auto; padding: 20px 20px 22px; box-shadow: 0 -8px 32px rgba(14,26,43,.28); transform: translateY(calc(100% + 24px)); visibility: hidden; transition: transform .22s ease-out, visibility .22s; animation: none; }
  .piece-panel[data-sheet-ready][data-open] { transform: none; visibility: visible; }
  .piece-panel[data-sheet-ready] h3 { font-size: 22px; line-height: 26px; padding-right: 40px; }
  .piece-panel[data-sheet-ready] .btn { align-self: stretch; text-align: center; }
  .phone-bar[data-sheet] { transform: translateY(110%); visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) { .piece-panel[data-sheet-ready], .piece-panel.pop { transition: none; animation: none; } }
