/* Seguin Tile Installer: "Plaster, pigment, plain talk"
   All colours and fonts are tokens on :root. No literal colours below this block. */

@font-face { font-family: "Epilogue"; src: url("/assets/fonts/epilogue-vf.woff2") format("woff2"); font-weight: 700 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("/assets/fonts/literata-vf.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("/assets/fonts/literata-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --chalk: #ECEAE3;
  --plaster: #F7F6F2;
  --ink: #1C1F24;
  --slate: #56616B;
  --ochre: #C38A2A;
  --ochre-deep: #B27D25;
  --umber: #7A5518;
  --mortar: #A9ADA8;
  --brick: #9B3D2E;
  --white: #FFFFFF;
  --overlay: rgb(28 31 36 / 0.62);
  --shadow-modal: 0 24px 64px rgb(28 31 36 / 0.28);

  --f-display: "Epilogue", "Chivo", "Helvetica Neue", Arial, sans-serif;
  --f-text: "Literata", "Source Serif 4", Georgia, "Times New Roman", serif;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --gap: 32px;
  --header-h: 84px;

  --t-h1-home: clamp(2.9rem, 7.6vw, 6.5rem);
  --t-h1: clamp(2.5rem, 5.4vw, 4.75rem);
  --t-h2: clamp(2.125rem, 3.9vw, 3.5rem);
  --t-h3: clamp(1.4375rem, 2.1vw, 1.75rem);
  --t-lede: clamp(1.1875rem, 1.5vw, 1.3125rem);
  --t-body: clamp(1.0625rem, 1.2vw, 1.125rem);
  --t-ui: 1rem;
  --t-cap: 0.9375rem;
  --t-fine: 0.875rem;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset and base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; overflow-x: clip;
  background: var(--chalk); color: var(--ink);
  font-family: var(--f-text); font-size: var(--t-body); line-height: 1.6;
  font-optical-sizing: auto; text-rendering: optimizeLegibility;
}
img, iframe { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
summary { cursor: pointer; }
[hidden] { display: none !important; }

a { color: var(--umber); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: color .15s var(--ease), text-decoration-color .15s var(--ease); }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.bg-ink :focus-visible, .site-footer :focus-visible, .callbar :focus-visible { outline-color: var(--ochre); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: var(--s-4); top: -100px; z-index: 100; background: var(--ink); color: var(--chalk); padding: var(--s-3) var(--s-4); }
.skip-link:focus { top: var(--s-4); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.section { padding-block: var(--s-10) var(--s-9); }
.section--tight { padding-block: var(--s-8); }
.bg-chalk { background: var(--chalk); color: var(--ink); }
.bg-plaster { background: var(--plaster); color: var(--ink); }
.bg-ink { background: var(--ink); color: var(--chalk); }
.bg-ochre { background: var(--ochre); color: var(--ink); }
.bg-ink a { color: var(--chalk); }
.bg-ochre a { color: var(--ink); }

.measure { max-width: 68ch; }
.col-text { grid-column: 1 / span 7; }

h1.display { font-size: var(--t-h1-home); line-height: 0.95; letter-spacing: -0.03em; }
h1 { font-size: var(--t-h1); line-height: 1; letter-spacing: -0.025em; }
h2 { font-size: var(--t-h2); line-height: 1; }
h3 { font-size: var(--t-h3); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
.lede { font-size: var(--t-lede); line-height: 1.5; }
.section-head { margin-bottom: var(--s-7); }
.section-head h2 + p { margin-top: var(--s-5); max-width: 56ch; }
.bg-ink .muted, .bg-ink figcaption { color: var(--mortar); }
.muted { color: var(--slate); }
.fine { font-size: var(--t-fine); line-height: 1.5; }

/* Captions: photos are documents */
figcaption { margin-top: var(--s-2); font-style: italic; font-size: var(--t-cap); line-height: 1.45; color: var(--slate); }
.ph { background: var(--white); overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.r-3x4 { aspect-ratio: 3 / 4; } .r-4x3 { aspect-ratio: 4 / 3; } .r-3x2 { aspect-ratio: 3 / 2; } .r-2x3 { aspect-ratio: 2 / 3; } .r-4x5 { aspect-ratio: 4 / 5; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 12px 22px; border: 1px solid transparent; border-radius: 2px;
  font-family: var(--f-text); font-weight: 500; font-size: var(--t-ui); line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease), transform .1s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { cursor: not-allowed; opacity: 1; }
.btn-primary { background: var(--ochre); color: var(--ink); }
.btn-primary:hover, .btn-primary:active { background: var(--ochre-deep); color: var(--ink); }
.btn-primary[disabled] { background: var(--mortar); color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--chalk); }
.bg-ink .btn-outline, .callbar .btn-outline, .site-footer .btn-outline { color: var(--chalk); border-color: var(--mortar); }
.bg-ink .btn-outline:hover, .callbar .btn-outline:hover { background: var(--chalk); color: var(--ink); border-color: var(--chalk); }
.btn-text { background: none; border: 0; padding: 0; min-height: 44px; color: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.btn-text:hover { text-decoration-thickness: 2px; }
.btn.is-loading { cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.link-strong { font-weight: 500; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--chalk); border-top: 4px solid var(--ink); transition: padding .2s var(--ease); }
.header-inner { display: flex; align-items: center; gap: var(--s-6); min-height: var(--header-h); transition: min-height .2s var(--ease); }
.site-header.is-compact .header-inner { min-height: 64px; }
.logo { display: inline-block; color: var(--ink); text-decoration: none; font-family: var(--f-display); font-weight: 800; font-size: 1.375rem; line-height: 1; letter-spacing: -0.03em; flex: none; }
.logo span { display: block; }
.site-header.is-compact .logo { font-size: 1.1875rem; }
.nav { flex: 1; }
.nav-list { list-style: none; display: flex; align-items: center; gap: var(--s-1); }
.nav-link, .nav-toggle {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-3);
  background: none; border: 0; color: var(--ink); font-family: var(--f-text); font-weight: 500; font-size: var(--t-ui);
  text-decoration: none; cursor: pointer; border-radius: 2px;
}
.nav-link:hover, .nav-toggle:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .3em; }
.nav-link[aria-current="page"], .nav-toggle.is-current { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .3em; text-decoration-color: var(--ink); }
.nav-toggle::after { content: ""; width: 7px; height: 7px; margin-left: var(--s-2); border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s var(--ease); }
.nav-toggle[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
.has-menu { position: relative; }
.submenu { position: absolute; left: 0; top: calc(100% + 6px); min-width: 280px; list-style: none; padding: var(--s-2) 0; background: var(--plaster); border: 1px solid var(--ink); z-index: 60; }
.submenu a { display: block; padding: var(--s-3) var(--s-4); color: var(--ink); text-decoration: none; font-weight: 500; font-size: var(--t-ui); }
.submenu a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.submenu a[aria-current="page"] { text-decoration: underline; }
.header-actions { display: flex; align-items: center; gap: var(--s-5); flex: none; }
.header-phone { color: var(--ink); font-weight: 500; text-decoration: none; white-space: nowrap; }
.header-phone:hover { text-decoration: underline; }
.menu-button { display: none; }
.menu-link { display: none; }
/* without JS: dropdowns open on hover/focus, the mobile Menu link jumps to the footer links */
html:not(.js) .submenu { display: none; }
html:not(.js) .has-menu:hover > .submenu, html:not(.js) .has-menu:focus-within > .submenu { display: block; }
.mobile-panel { display: none; }

@media (max-width: 1180px) {
  .header-phone { display: none; }
}
@media (max-width: 1023px) {
  :root { --header-h: 68px; --gap: 24px; }
  .nav, .header-actions .btn { display: none; }
  .header-actions { margin-left: auto; }
  .header-phone { display: inline; }
  .menu-button { display: inline-flex; min-height: 44px; padding: 0 var(--s-4); background: none; border: 1px solid var(--ink); border-radius: 2px; color: var(--ink); font-weight: 500; cursor: pointer; align-items: center; }
  .mobile-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--chalk); border-bottom: 4px solid var(--ink); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
  .mobile-panel.is-open { display: block; }
  html:not(.js) .menu-button { display: none; }
  html:not(.js) .menu-link { display: inline-flex; min-height: 44px; padding: 0 var(--s-4); border: 1px solid var(--ink); border-radius: 2px; color: var(--ink); font-weight: 500; text-decoration: none; align-items: center; }
  .mobile-panel .container { padding-block: var(--s-5) var(--s-7); }
  .m-list { list-style: none; }
  .m-list > li { border-top: 1px solid var(--slate); }
  .m-list > li:last-child { border-bottom: 1px solid var(--slate); }
  .m-link { display: block; padding: var(--s-3) 0; font-family: var(--f-display); font-weight: 800; font-size: 1.75rem; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
  .m-sub { list-style: none; padding: 0 0 var(--s-3); columns: 2; column-gap: var(--s-4); }
  .m-sub a { display: block; padding: var(--s-1) 0; color: var(--ink); font-weight: 500; }
  .m-actions { display: grid; gap: var(--s-3); margin-top: var(--s-5); }
  .m-actions .btn { width: 100%; }
}
@media (max-width: 420px) { .header-phone { display: none; } }

/* ---------- Hero (home) ---------- */
.hero { padding-block: var(--s-8) var(--s-9); }
.hero-top { align-items: end; row-gap: var(--s-6); }
.hero-top h1 { grid-column: 1 / span 9; }
.hero-aside { grid-column: 10 / span 3; padding-bottom: var(--s-2); }
.hero-aside p { margin-bottom: var(--s-5); }
.hero-aside .btn-row { flex-direction: column; align-items: stretch; }
.hero-strip { margin-top: var(--s-7); align-items: end; }
.hero-strip figure:nth-child(1) { grid-column: 1 / span 4; }
.hero-strip figure:nth-child(2) { grid-column: 5 / span 5; }
.hero-strip figure:nth-child(3) { grid-column: 10 / span 3; }

/* ---------- Text hero (inner pages) ---------- */
.page-hero { padding-block: var(--s-8) var(--s-9); }
.page-hero .grid { align-items: start; row-gap: var(--s-6); }
.page-hero-text { grid-column: 1 / span 6; }
.page-hero-text .lede { margin-top: var(--s-5); }
.page-hero-text .btn-row { margin-top: var(--s-6); }
.page-hero-media { grid-column: 7 / span 6; }
.crumbs { margin-bottom: var(--s-5); font-size: var(--t-fine); color: var(--slate); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.crumbs li + li::before { content: "/"; margin-right: var(--s-2); color: var(--slate); }
.crumbs a { color: var(--umber); }

/* ---------- Contact sheet (projects grid) ---------- */
.sheet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.sheet-col { display: grid; gap: var(--s-7); }
.work-card a { display: block; color: inherit; text-decoration: none; }
.work-card .ph { transition: opacity .15s var(--ease); }
.work-card a:hover .work-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.work-title { display: block; margin-top: var(--s-3); font-weight: 500; font-size: var(--t-body); line-height: 1.35; }
.work-card figcaption { margin-top: var(--s-1); }
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-5); flex-wrap: wrap; margin-bottom: var(--s-7); }
.sheet-head a { font-weight: 500; }
.sheet--flat { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--s-7); }

/* ---------- Services (asymmetric 2x2) ---------- */
.svc { row-gap: var(--s-7); align-items: start; }
.svc-item h3 { margin-top: var(--s-4); }
.svc-item p { margin-top: var(--s-3); max-width: 52ch; }
.svc-item .svc-link { display: inline-block; margin-top: var(--s-3); font-weight: 500; }
.svc-wide { grid-column: 1 / span 8; grid-row: 1; }
.svc-tall { grid-column: 9 / span 4; grid-row: 1 / span 2; }
.svc-std-a { grid-column: 1 / span 4; grid-row: 2; }
.svc-std-b { grid-column: 5 / span 4; grid-row: 2; }

/* ---------- How we install ---------- */
.install { row-gap: var(--s-7); align-items: start; }
.install-media { grid-column: 1 / span 6; }
.install-text { grid-column: 7 / span 6; }
.install-text h2 { margin-bottom: var(--s-6); }
.runin { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.005em; }
.install-text p { margin-bottom: var(--s-5); }

/* ---------- Ruled lists ---------- */
.ruled { list-style: none; }
.ruled > li { border-top: 1px solid var(--slate); padding-block: var(--s-4); }
.ruled > li:last-child { border-bottom: 1px solid var(--slate); }
.bg-ink .ruled > li { border-color: var(--mortar); }
.area-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .7fr) minmax(0, 1.4fr); gap: var(--s-4); align-items: baseline; }
.area-row a { font-weight: 500; }
.area-row .miles, .area-row .zips { color: var(--slate); font-size: var(--t-fine); }

/* ---------- Where we work ---------- */
.where { row-gap: var(--s-7); align-items: start; }
.where-map { grid-column: 1 / span 7; }
.where-text { grid-column: 8 / span 5; }
.where-text h2 { margin-bottom: var(--s-5); }
.where-text address { font-style: normal; margin-bottom: var(--s-2); }
.where-text .ruled { margin-block: var(--s-6) var(--s-5); }
.map { width: 100%; height: 460px; border: 0; background: var(--white); }
.bg-ink .map { outline: 1px solid var(--mortar); }

/* ---------- FAQ ---------- */
.faq { row-gap: var(--s-6); }
.faq-head { grid-column: 1 / span 3; }
.faq-list { grid-column: 4 / span 9; }
.faq-item { border-top: 1px solid var(--slate); }
.faq-item:last-of-type { border-bottom: 1px solid var(--slate); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; gap: var(--s-5); padding: var(--s-5) 0; font-weight: 500; font-size: var(--t-lede); line-height: 1.35; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.faq-answer { padding-bottom: var(--s-5); max-width: 66ch; }
.reviews-slot { margin-top: var(--s-7); }
.reviews-fallback { font-weight: 500; }

/* ---------- Forms ---------- */
.estimate { row-gap: var(--s-7); align-items: start; }
.estimate-text { grid-column: 1 / span 5; }
.estimate-text h2 { margin-bottom: var(--s-5); }
.estimate-text .contact-lines { margin-top: var(--s-6); list-style: none; }
.contact-lines li { padding-block: var(--s-3); border-top: 1px solid var(--mortar); }
.contact-lines li:last-child { border-bottom: 1px solid var(--mortar); }
.bg-chalk .contact-lines li, .bg-plaster .contact-lines li { border-color: var(--slate); }
.contact-lines a { font-weight: 500; }
.estimate-form { grid-column: 6 / span 7; }

.rooms { border: 0; margin: 0 0 var(--s-5); padding: 0; }
.rooms legend { font-weight: 500; margin-bottom: var(--s-3); padding: 0; }
.room-list { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.room-btn { min-height: 44px; padding: 8px 14px; border: 1px solid var(--ink); border-radius: 2px; background: transparent; color: var(--ink); font-weight: 500; font-size: var(--t-fine); cursor: pointer; transition: background-color .15s var(--ease), color .15s var(--ease); }
.room-btn:hover { background: var(--plaster); }
.room-btn[aria-pressed="true"] { background: var(--ink); color: var(--plaster); }
.bg-ink .room-btn { border-color: var(--mortar); color: var(--chalk); }
.bg-ink .room-btn:hover { border-color: var(--chalk); background: transparent; }
.bg-ink .room-btn[aria-pressed="true"] { background: var(--ochre); border-color: var(--ochre); color: var(--ink); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-5); }
.field { display: grid; gap: var(--s-1); align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 500; font-size: var(--t-ui); }
.field .opt { font-weight: 400; color: var(--slate); }
.bg-ink .field .opt { color: var(--mortar); }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--slate); border-radius: 0;
  background: var(--plaster); color: var(--ink); font-size: var(--t-body); line-height: 1.4;
  transition: border-color .15s var(--ease);
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.field .hint { font-size: var(--t-fine); color: var(--slate); }
.field-error { display: none; align-items: flex-start; gap: var(--s-2); font-size: var(--t-fine); font-weight: 500; color: var(--brick); }
.field-error svg { flex: none; margin-top: 2px; }
.field.is-invalid .field-error { display: flex; }
.field.is-invalid input, .field.is-invalid textarea { border: 2px solid var(--brick); padding: 11px 13px; }
.field.is-valid input { border-color: var(--ink); }

.bg-ink .field input, .bg-ink .field textarea { background: var(--ink); color: var(--plaster); border-color: var(--mortar); }
.bg-ink .field input:hover, .bg-ink .field textarea:hover { border-color: var(--chalk); }
.bg-ink .field input:focus-visible, .bg-ink .field textarea:focus-visible { outline-color: var(--ochre); border-color: var(--ochre); }
.bg-ink .field .hint { color: var(--mortar); }
.bg-ink .field-error { color: var(--chalk); }
.bg-ink .field.is-invalid input, .bg-ink .field.is-invalid textarea { border-color: var(--chalk); }
.bg-ink .field.is-valid input { border-color: var(--chalk); }

.form-foot { margin-top: var(--s-5); display: grid; gap: var(--s-3); justify-items: start; }
.form-foot .consent { font-size: var(--t-fine); color: var(--slate); max-width: 60ch; }
.bg-ink .form-foot .consent { color: var(--mortar); }
.form-status { display: none; align-items: flex-start; gap: var(--s-2); padding: var(--s-4); border: 1px solid currentColor; font-weight: 500; }
.form-status.is-shown { display: flex; }
.form-status.is-error { color: var(--brick); }
.bg-ink .form-status.is-error { color: var(--chalk); }
.form-status svg { flex: none; margin-top: 3px; }
.noscript-note { font-size: var(--t-fine); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--chalk); border-top: 4px solid var(--ink); padding-block: var(--s-8) var(--s-7); }
.site-footer.after-ink { border-top: 1px solid var(--mortar); }
.site-footer a { color: var(--chalk); }
.footer-grid { row-gap: var(--s-6); }
.footer-brand { grid-column: 1 / span 4; }
.footer-brand .logo { color: var(--chalk); margin-bottom: var(--s-5); }
.footer-brand address { font-style: normal; color: var(--mortar); line-height: 1.7; }
.footer-brand address a { color: var(--chalk); }
.footer-col { grid-column: span 2; min-width: 0; }
/* the three link columns are <nav> elements: 1 = Services, 2 = Areas, 3 = More */
.footer-col:nth-of-type(1) { grid-column: 6 / span 3; }
.footer-col:nth-of-type(2) { grid-column: 9 / span 2; }
.footer-col:nth-of-type(3) { grid-column: 11 / span 2; }
.footer-col h2 { font-size: var(--t-ui); font-family: var(--f-text); font-weight: 500; letter-spacing: 0; color: var(--mortar); margin-bottom: var(--s-3); }
.footer-col ul { list-style: none; display: grid; gap: var(--s-2); }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-legal { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--mortar); color: var(--mortar); font-size: var(--t-fine); display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); justify-content: space-between; }

/* ---------- Mobile call bar ---------- */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; gap: var(--s-2); padding: var(--s-2) var(--s-4) calc(var(--s-2) + env(safe-area-inset-bottom)); background: var(--ink); transform: translateY(110%); transition: transform .2s var(--ease); }
.callbar .btn { flex: 1; }
.callbar.is-visible { transform: translateY(0); }
@media (max-width: 767px) {
  .callbar { display: flex; }
  .site-footer { padding-bottom: calc(var(--s-7) + 72px); }
}

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: none; align-items: flex-start; justify-content: center; padding: var(--s-7) var(--s-4); background: var(--overlay); overflow-y: auto; }
.modal.is-open { display: flex; }
.modal-panel { position: relative; width: 100%; max-width: 680px; background: var(--chalk); color: var(--ink); padding: var(--s-7); box-shadow: var(--shadow-modal); }
.modal-panel h2 { font-size: clamp(1.875rem, 3vw, 2.5rem); margin-bottom: var(--s-3); padding-right: var(--s-8); }
.modal-panel > p { margin-bottom: var(--s-5); }
.modal-close { position: absolute; top: var(--s-4); right: var(--s-4); min-height: 44px; padding: 0 var(--s-4); border: 1px solid var(--ink); border-radius: 2px; background: transparent; color: var(--ink); font-weight: 500; cursor: pointer; }
.modal-close:hover { background: var(--ink); color: var(--chalk); }
body.is-locked { overflow: hidden; }

/* ---------- Service page body ---------- */
.prose h2 { margin-top: var(--s-8); margin-bottom: var(--s-5); font-size: clamp(1.75rem, 2.8vw, 2.375rem); line-height: 1.05; }
.prose > h2:first-child { margin-top: 0; }
.prose p { max-width: 68ch; }
.prose-figure { margin-block: var(--s-7); grid-column: 1 / span 9; }
.prose-wrap { grid-column: 1 / span 8; }
.page-aside { grid-column: 10 / span 3; }
.page-aside-inner { position: sticky; top: calc(var(--header-h) + var(--s-6)); padding-top: var(--s-8); }
.page-aside h2 { font-size: var(--t-ui); font-family: var(--f-text); font-weight: 500; color: var(--slate); margin-bottom: var(--s-3); }
.page-aside ol { list-style: none; padding: 0; margin: 0 0 var(--s-6); border-top: 1px solid var(--mortar); }
.page-aside li { border-bottom: 1px solid var(--mortar); }
.page-aside a { display: block; padding: var(--s-3) 0; color: var(--ink); text-decoration: none; font-size: 0.9375rem; line-height: 1.35; }
.page-aside a:hover { color: var(--umber); text-decoration: underline; }
.page-aside .btn { width: 100%; justify-content: center; }
.prose-wrap > *:not(figure) { max-width: 68ch; }
.includes-list { grid-column: 1 / -1; }
.includes-list .ruled { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); }
.includes-list .ruled > li:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--slate); }
@media (max-width: 1023px) { .includes-list .ruled { grid-template-columns: minmax(0, 1fr); } }
.related-head { margin-bottom: var(--s-6); }
.area-links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); }
.area-links a { font-weight: 500; }
.facts { margin-top: var(--s-6); }
.fact-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--s-4); }
.fact-row .k { color: var(--slate); }
.svc-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap); }

/* ---------- Project page ---------- */
.gallery-main { position: relative; background: var(--plaster); }
.gallery-main img { width: 100%; max-height: 78vh; object-fit: contain; background: var(--plaster); }
.gallery-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-3); }
.gallery-bar figcaption { margin: 0; }
.gallery-nav { display: flex; gap: var(--s-2); }
.gallery-thumbs { display: flex; gap: var(--s-3); margin-top: var(--s-4); list-style: none; overflow-x: auto; padding: 4px; scrollbar-width: thin; }
.gallery-thumbs button { padding: 0; border: 2px solid transparent; background: var(--white); cursor: pointer; width: 112px; height: 84px; flex: none; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--ink); }
.project-body { row-gap: var(--s-7); margin-top: var(--s-8); }
.project-body .see { grid-column: 1 / span 4; }
.project-body .see h2, .project-text h2 { font-size: var(--t-h3); font-weight: 700; margin-bottom: var(--s-4); }
.project-text { grid-column: 6 / span 7; }
.no-js-figs { display: grid; gap: var(--s-6); }

/* ---------- Projects index ---------- */
.filters { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-4); }
.filter-count { margin-bottom: var(--s-6); color: var(--slate); }
.sheet--flat .work-card[hidden] { display: none; }

/* ---------- About ---------- */
.steps { list-style: none; counter-reset: step; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--s-4); border-top: 1px solid var(--slate); padding-block: var(--s-5); }
.steps > li:last-child { border-bottom: 1px solid var(--slate); }
.steps > li::before { content: counter(step); font-family: var(--f-display); font-weight: 800; font-size: 2.5rem; line-height: 1; letter-spacing: -0.03em; }
.steps h3 { margin-bottom: var(--s-2); }

/* ---------- Privacy ---------- */
.legal h2 { margin-top: var(--s-8); margin-bottom: var(--s-4); font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.1; }
.legal h3 { margin-top: var(--s-5); margin-bottom: var(--s-2); font-size: 1.25rem; }
.legal ul { padding-left: 1.2em; margin-bottom: 1em; }
.legal li { margin-bottom: var(--s-2); }
.toc ol { padding-left: 1.4em; columns: 2; column-gap: var(--s-7); }
.toc li { margin-bottom: var(--s-2); break-inside: avoid; }

/* ---------- Walk the house (home block 4, Ochre band) ---------- */
.btn-ink { background: var(--ink); color: var(--chalk); }
.btn-ink:hover, .btn-ink:active { background: var(--slate); color: var(--chalk); }
.walk .btn-ink, .walk .btn-ink:hover, .walk .btn-ink:active { color: var(--chalk); }
.walk figcaption, .walk .wh-figure figcaption { color: var(--ink); }
.wh-head { align-items: end; }
.wh-head h2 { grid-column: 1 / span 6; }
.wh-head p { grid-column: 7 / span 5; max-width: 44ch; font-size: var(--t-lede); }
.wh-body { margin-top: var(--s-7); align-items: start; }
.wh-plan { grid-column: 1 / span 7; position: sticky; top: calc(var(--header-h) + var(--s-5)); }
.wh-figure { margin: 0; }
.wh-svg { display: block; width: 100%; height: auto; overflow: visible; }
.wh-svg--tall { display: none; }
.wh-figure figcaption { margin-top: var(--s-3); font-style: italic; font-size: var(--t-cap); }
.wh-wall-out, .wh-wall-in, .wh-window { fill: none; stroke: var(--ink); stroke-linecap: square; vector-effect: non-scaling-stroke; }
.wh-wall-out { stroke-width: 3px; }
.wh-wall-in { stroke-width: 2px; }
.wh-window { stroke-width: 1px; stroke-linecap: butt; }
.wh-room { fill: var(--chalk); fill-opacity: 0; stroke: var(--ink); stroke-width: 0; vector-effect: non-scaling-stroke; transition: fill-opacity .2s var(--ease); }
.wh-label { font-family: var(--f-text); font-weight: 500; font-size: 16px; fill: var(--ink); pointer-events: none; }
html.js .wh-room { cursor: pointer; }
@media (hover: hover) { html.js .wh-room:hover { fill-opacity: .5; } }
.wh-room.is-selected { fill-opacity: 1; stroke-width: 3px; }
.wh-room:focus { outline: none; }
.wh-room:focus-visible { stroke-width: 3px; stroke-dasharray: 6 4; }
.wh-room.is-selected:focus-visible { stroke-dasharray: none; stroke-width: 5px; }
.wh-labels { pointer-events: none; }
.wh-list ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }
.wh-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); font: 500 var(--t-ui)/1.2 var(--f-text); text-decoration: none; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.wh-btn:hover { background: var(--chalk); }
.wh-btn[aria-pressed="true"] { background: var(--ink); color: var(--chalk); }
.wh-panel { grid-column: 8 / span 5; background: var(--plaster); padding: var(--s-6); }
.wh-block { transition: opacity .16s var(--ease); }
.wh-panel.is-fading .wh-block { opacity: 0; }
html.js .wh-block:not([data-selected]) { display: none; }
.wh-block h3 { font-size: var(--t-h3); margin-bottom: var(--s-4); }
.wh-block figure { margin: 0 0 var(--s-4); }
.wh-block figcaption { color: var(--slate); }
.wh-block figcaption a { color: var(--umber); }
.wh-text p + p { margin-top: var(--s-3); }
.wh-thumbs { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); margin-top: var(--s-5); }
.wh-thumbs a { display: block; color: var(--ink); text-decoration: none; font-size: var(--t-fine); line-height: 1.3; }
.wh-thumbs a span { display: block; margin-top: var(--s-2); }
.wh-thumbs a:hover span { text-decoration: underline; }
.wh-all { margin: var(--s-5) 0; }
.wh-all a { color: var(--umber); font-weight: 500; }
.walk--compact { padding-block: var(--s-8); }
.walk--compact .wh-head h2 { font-size: var(--t-h3); }
.walk--compact .wh-head p { font-size: var(--t-body); }
.walk--compact .wh-body { margin-top: var(--s-5); }
.walk--compact .wh-thumbs { display: none; }
html:not(.js) .wh-plan { grid-column: 1 / -1; position: static; }
html:not(.js) .wh-svg--wide { max-width: 760px; }
html:not(.js) .wh-panel { grid-column: 1 / -1; background: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--s-7); }
html:not(.js) .wh-block { background: var(--plaster); padding: var(--s-5); scroll-margin-top: calc(var(--header-h) + 16px); }
@media (max-width: 1023px) {
  .wh-head h2, .wh-head p { grid-column: 1 / -1; }
  .wh-plan, .wh-panel { grid-column: 1 / -1; }
  .wh-plan { position: static; }
  .wh-panel { margin-top: var(--s-6); }
  html:not(.js) .wh-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .wh-body { margin-top: var(--s-6); }
  .wh-svg--wide { display: none; }
  .wh-svg--tall { display: block; }
  .wh-panel { padding: var(--s-5) var(--s-4); }
  html:not(.js) .wh-panel { grid-template-columns: minmax(0, 1fr); }
  .wh-btn { padding: 8px 14px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .hero-top h1 { grid-column: 1 / -1; }
  .hero-aside { grid-column: 1 / span 8; }
  .hero-aside .btn-row { flex-direction: row; }
  .page-hero-text, .page-hero-media { grid-column: 1 / -1; }
  .svc-wide { grid-column: 1 / -1; grid-row: auto; }
  .svc-tall { grid-column: 1 / span 6; grid-row: auto; }
  .svc-std-a { grid-column: 7 / span 6; grid-row: auto; }
  .svc-std-b { grid-column: 1 / span 6; grid-row: auto; }
  .install-media, .install-text, .where-map, .where-text, .estimate-text, .estimate-form { grid-column: 1 / -1; }
  .faq-head, .faq-list { grid-column: 1 / -1; }
  .col-text, .prose-wrap, .prose-figure, .includes-list { grid-column: 1 / -1; }
  .page-aside { display: none; }
  .project-body .see, .project-text { grid-column: 1 / -1; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col, .footer-col:nth-of-type(n) { grid-column: span 4; }
}
@media (max-width: 767px) {
  .section { padding-block: var(--s-8); }
  .hero { padding-block: var(--s-6) var(--s-8); }
  .page-hero { padding-block: var(--s-6) var(--s-7); }
  .hero-aside { grid-column: 1 / -1; }
  .hero-aside .btn-row { flex-direction: column; }
  .hero-aside .btn { width: 100%; }
  .hero-strip { display: block; margin-top: var(--s-6); }
  .hero-strip figure:not(.is-mobile) { display: none; }
  .hero-strip .is-mobile .ph { aspect-ratio: 4 / 5; }
  .sheet { display: flex; flex-direction: column; gap: var(--s-6); }
  .sheet-col { display: contents; }
  .sheet .work-card.hide-sm { display: none; }
  .sheet--flat { display: grid; grid-template-columns: minmax(0, 1fr); }
  .svc-tall, .svc-std-a, .svc-std-b { grid-column: 1 / -1; }
  .svc-tall .ph { aspect-ratio: 4 / 5; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .area-row { grid-template-columns: minmax(0, 1fr) auto; }
  .area-row .zips { grid-column: 1 / -1; margin-top: calc(var(--s-3) * -1); }
  .map { height: 340px; }
  .modal { padding: 0; }
  .modal-panel { min-height: 100%; padding: var(--s-6) var(--s-4); }
  .footer-col, .footer-col:nth-of-type(n) { grid-column: span 6; }
  .toc ol { columns: 1; }
  .steps > li { grid-template-columns: 48px minmax(0, 1fr); }
  .steps > li::before { font-size: 2rem; }
  .fact-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .svc-links { grid-template-columns: minmax(0, 1fr); }
  .gallery-nav { width: 100%; }
  .gallery-nav .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; }
}

/* ---------- Print: only the Bid checker sheet, black on white ---------- */
@media print {
  @page { margin: 16mm; }
  .site-header, .callbar, .modal, .mobile-panel, .wh-list, .gallery-stage { display: none !important; }
  .section { padding-block: 12pt !important; background: #fff !important; color: #000 !important; }
  a { color: #000 !important; }
}
