/* Vintage Park Tile Contractor
   One stylesheet. Every colour and font is a token on :root; nothing below uses a literal colour. */

@font-face { font-family: "Zilla Slab"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/zilla-slab-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Zilla Slab"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/zilla-slab-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Text"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/red-hat-text-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Text"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/red-hat-text-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Red Hat Text"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/red-hat-text-latin-700-normal.woff2") format("woff2"); }

/* Metric-matched fallbacks (computed from the font files) so the swap to web fonts doesn't shift layout */
@font-face { font-family: "Red Hat Text Fallback"; src: local("Arial"), local("ArialMT"), local("Helvetica"); size-adjust: 100.1%; ascent-override: 101.7%; descent-override: 30.5%; line-gap-override: 0%; }
@font-face { font-family: "Zilla Slab Fallback"; src: local("Georgia Bold"), local("Georgia-Bold"), local("Georgia"); font-weight: 600 700; size-adjust: 85.8%; ascent-override: 110.1%; descent-override: 29.8%; line-gap-override: 0%; }

:root {
  /* Palette: materials inside a shower wall */
  --plaster: #EEE9EF;        /* fresh plaster: page base */
  --plaster-2: #E3DCE4;      /* floated plaster: first layer down */
  --mauve: #BBA6B6;          /* dusty vine mauve: secondary layers, thinset */
  --stake: #6E5A68;          /* vine stake: secondary text, borders, studs */
  --backer: #9DA89B;         /* cement board */
  --backer-deep: #5F6B5E;    /* wet board */
  --ink: #2E1A30;            /* grape skin: text, deepest layer */
  --membrane: #D61F5A;       /* wet membrane: the only signal colour */
  --membrane-deep: #A8123F;  /* cured membrane: signal-coloured text, hover */
  --membrane-wash: #F7D3DE;  /* pale membrane: selected chips, error fills */
  --white: #FFFFFF;
  /* Cutaway-only material tones (derived from the palette) */
  --tile: #F7F4F8;
  --mortar: #D3C8D1;
  --mortar-deep: #B6A6B3;
  --mortar-wet: #A7A0A3;
  --greenboard: #C4CEBA;
  --slab: #A39AA2;

  /* Type */
  --f-display: "Zilla Slab", "Zilla Slab Fallback", Georgia, serif;
  --f-text: "Red Hat Text", "Red Hat Text Fallback", Arial, sans-serif;
  --t-hero: clamp(2.5rem, 1.55rem + 4.2vw, 4.25rem);
  --t-h2: clamp(2rem, 1.45rem + 2.4vw, 2.875rem);
  --t-h3: clamp(1.5rem, 1.32rem + 0.8vw, 1.875rem);
  --t-lead: clamp(1.25rem, 1.2rem + 0.25vw, 1.375rem);
  --t-body: 1.125rem;
  --t-small: 0.9375rem;

  /* Space and grid */
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --col: calc((min(100vw, var(--max)) - 2 * var(--gutter)) / 12);
  --thick: clamp(72px, 9vw, 128px);
  --thin: clamp(40px, 5vw, 60px);
  --head-h: 76px;
  --r-tile: 2px;
  --r-control: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0; overflow-x: clip;
  background: var(--plaster); color: var(--ink);
  font: 400 var(--t-body)/1.6 var(--f-text);
  text-rendering: optimizeLegibility;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; margin: 0 0 .5em; }
h1 { font-size: var(--t-hero); line-height: 1.02; }
h2 { font-size: var(--t-h2); line-height: 1.08; }
h3 { font-size: var(--t-h3); line-height: 1.15; font-weight: 600; }
p, ul, ol, dl { margin: 0 0 1em; }
p { max-width: 64ch; }
a { color: var(--membrane-deep); text-decoration-thickness: 1px; text-underline-offset: .18em; transition: color .15s, text-decoration-color .15s; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: var(--r-tile); }
.on-dark :focus-visible, .site-foot :focus-visible { outline-color: var(--plaster); }
::selection { background: var(--membrane-wash); color: var(--ink); }
.lead { font-size: var(--t-lead); line-height: 1.5; max-width: 46ch; }
.small { font-size: var(--t-small); line-height: 1.45; }
.muted { color: var(--stake); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: var(--plaster); padding: 10px 16px; border-radius: var(--r-control); }
.skip:focus { top: 8px; }

/* Buttons and controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-control);
  font: 700 1rem/1.1 var(--f-text); text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--membrane); color: var(--white); }
.btn-primary:hover { background: var(--membrane-deep); color: var(--white); }
.btn-primary[aria-busy="true"] { background: var(--membrane-deep); cursor: progress; }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-quiet:hover { background: var(--ink); color: var(--plaster); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.phone-link { font-family: var(--f-display); font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.phone-link:hover { color: var(--membrane-deep); text-decoration: underline; }

.chip {
  min-height: 44px; padding: 8px 14px; border-radius: var(--r-tile);
  background: var(--plaster); color: var(--ink); border: 2px solid var(--stake);
  font: 500 var(--t-small)/1.25 var(--f-text); text-align: left; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--ink); background: var(--white); }
.chip[aria-pressed="true"] { background: var(--membrane-wash); border-color: var(--ink); font-weight: 700; }
.chip[aria-pressed="true"]::before { content: ""; display: inline-block; width: .55em; height: .55em; margin-right: .5em; background: var(--ink); vertical-align: .08em; }
.chip:disabled { opacity: .5; cursor: not-allowed; }

/* Header and navigation */
.site-head { position: sticky; top: 0; z-index: 40; background: var(--plaster); border-bottom: 3px solid var(--plaster-2); }
.head-row { display: flex; align-items: center; gap: 24px; min-height: var(--head-h); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-name { font: 700 1.125rem/1.05 var(--f-display); }
.brand-name span { display: block; font-weight: 600; font-size: .9rem; color: var(--stake); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-list a, .sub-btn {
  display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
  color: var(--ink); text-decoration: none; font: 500 1rem/1 var(--f-text);
  background: none; border: 0; border-radius: var(--r-tile); cursor: pointer;
}
.nav-list a:hover, .sub-btn:hover { background: var(--plaster-2); color: var(--ink); }
.nav-list a[aria-current="page"], .nav-list a[aria-current="true"], .sub-btn.is-current { box-shadow: inset 0 -3px 0 var(--ink); font-weight: 700; }
.sub-btn::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.sub-btn[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
.sub {
  list-style: none; margin: 0; padding: 8px; min-width: 260px;
  position: absolute; top: calc(100% + 6px); left: 0;
  background: var(--plaster); border: 2px solid var(--ink); border-radius: var(--r-tile);
  display: none;
}
.sub a { min-height: 44px; padding: 0 12px; font-weight: 500; }
.has-sub.is-open .sub { display: block; }
.no-js .has-sub:hover .sub, .no-js .has-sub:focus-within .sub { display: block; }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.menu-btn { display: none; }

@media (max-width: 1040px) {
  .js .menu-btn {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px;
    background: var(--plaster); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--r-control);
    font: 700 1rem/1 var(--f-text); cursor: pointer;
  }
  .menu-btn .bars { width: 16px; height: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }
  .menu-btn[aria-expanded="true"] .bars { box-shadow: none; }
  .js .nav {
    position: fixed; inset: var(--head-h) 0 0 0; z-index: 39; overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 24px; padding: 16px var(--gutter) 120px;
    background: var(--plaster); border-top: 3px solid var(--plaster-2);
    display: none;
  }
  .js .nav.is-open { display: flex; }
  .nav-list { flex-direction: column; }
  .nav-list a, .sub-btn { min-height: 52px; font-size: 1.125rem; width: 100%; justify-content: space-between; }
  .sub { position: static; border: 0; border-left: 3px solid var(--mauve); border-radius: 0; margin: 0 0 8px 12px; padding: 0 0 0 8px; }
  .nav-cta { flex-direction: column; align-items: stretch; }
  .nav-cta .btn { width: 100%; }
  .no-js .head-row { flex-wrap: wrap; padding-block: 10px; }
  .no-js .nav { flex-wrap: wrap; gap: 8px; }
  .no-js .nav-list { flex-direction: row; flex-wrap: wrap; }
  .no-js .nav-list a, .no-js .sub-btn { width: auto; font-size: 1rem; min-height: 44px; }
}
.nav-open { overflow: hidden; }

/* Layers: blocks separated by tone and thickness */
.layer { position: relative; padding-block: var(--thick); }
.layer.thin { padding-block: var(--thin); }
.layer--plaster { background: var(--plaster); }
.layer--plaster-2 { background: var(--plaster-2); }
.layer--mauve { background: var(--mauve); }
.layer--backer { background-color: var(--backer); }
.layer--ink { background: var(--ink); color: var(--plaster); }
.layer--ink a { color: var(--plaster); }
.speckle {
  background-image:
    radial-gradient(circle, color-mix(in srgb, var(--backer) 95%, var(--ink)) 0 0.8px, transparent 1.2px),
    radial-gradient(circle, color-mix(in srgb, var(--backer) 94%, var(--white)) 0 0.7px, transparent 1.1px);
  background-size: 7px 9px, 11px 13px;
  background-position: 0 0, 4px 5px;
}
/* A layer whose top face stops one column short, like a scratch coat */
.layer--step { background: transparent; }
.layer--step::before { content: ""; position: absolute; inset: 0 0 0 max(0px, calc((100vw - var(--max)) / 2 + var(--gutter))); background: inherit; z-index: -1; }
.step-plaster-2::before { background: var(--plaster-2); }
.step-mauve::before { background: var(--mauve); }

.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { margin: 0; }

/* The cut edge (used three times) */
.cut-edge { position: absolute; left: 0; right: 0; width: 100%; height: clamp(18px, 2.4vw, 30px); pointer-events: none; }
.cut-edge--top { top: 1px; transform: translateY(-100%); }
.cut-edge polygon { fill: currentColor; }

/* Hero: full-bleed photo of a finished room, text anchored low-left on a legibility scrim */
.hero-bg {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(560px, calc(100svh - var(--head-h)), 820px);
  display: flex; align-items: flex-end;
  background: var(--ink); color: var(--plaster);
}
.hero-photo img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 62% 55%; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--ink) 90%, transparent) 0%, color-mix(in srgb, var(--ink) 80%, transparent) 34%, color-mix(in srgb, var(--ink) 22%, transparent) 56%, transparent 72%),
    linear-gradient(0deg, color-mix(in srgb, var(--ink) 55%, transparent) 0%, transparent 40%);
}
.hero-bg-inner { padding-block: clamp(56px, 9vh, 104px) clamp(72px, 11vh, 128px); }
.hero-text { max-width: 640px; }
.hero-text h1 { font-size: clamp(2.5rem, 1.4rem + 4.6vw, 4.75rem); line-height: .98; color: var(--white); max-width: 14ch; margin-bottom: .35em; }
.hero-text .lead { color: var(--plaster); margin-bottom: 30px; }
.hero-note { margin: 24px 0 0; color: var(--mauve); font-size: var(--t-small); max-width: 44ch; }
.btn-light { background: transparent; color: var(--white); border-color: var(--plaster); }
.btn-light:hover { background: var(--plaster); color: var(--ink); }
.on-dark :focus-visible { outline-color: var(--plaster); }

/* Cutaway: "What's behind your tile?" */
.cutaway { color: var(--ink); }
.cw-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px clamp(16px, 2.5vw, 32px); }
.cw-main { grid-column: 1 / 9; min-width: 0; }
.cw-side { grid-column: 9 / 13; min-width: 0; }
.cw-toolbar { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.seg { display: inline-flex; border: 2px solid var(--ink); border-radius: var(--r-control); overflow: hidden; }
.seg button { min-height: 44px; padding: 0 16px; border: 0; background: var(--plaster); color: var(--ink); font: 700 var(--t-small)/1 var(--f-text); cursor: pointer; transition: background-color .15s, color .15s; }
.seg button + button { border-left: 2px solid var(--ink); }
.seg button:hover { background: var(--white); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--plaster); }
.cw-build-note { margin: 0; font-size: var(--t-small); color: var(--stake); max-width: 52ch; }
.cw-figure { margin: 0; background: var(--plaster); border-radius: var(--r-tile); padding: clamp(6px, 1.2vw, 14px); }
.cw-svg { width: 100%; height: auto; }
.cw-svg text { font-family: var(--f-text); font-size: 17px; font-weight: 500; fill: var(--ink); }
.cw-svg .cw-num text { font-family: var(--f-display); font-weight: 700; font-size: 17px; text-anchor: middle; dominant-baseline: central; }
.cw-num circle { fill: var(--plaster); stroke: var(--ink); stroke-width: 2; }
.cw-num.is-selected circle { fill: var(--ink); }
.cw-num.is-selected text { fill: var(--plaster); }
.cw-leader { stroke: var(--ink); stroke-width: 1.2; }
.cw-layer { transition: transform .55s var(--ease), opacity .4s var(--ease); transform-box: view-box; cursor: pointer; }
.cw-layer .shape { stroke: var(--ink); stroke-width: .8; stroke-opacity: .45; }
.cw-layer:hover .shape { stroke-opacity: 1; stroke-width: 1.6; }
.cw-layer.is-selected .shape { stroke-opacity: 1; stroke-width: 2.6; }
.cw-layer.is-hit .shape { stroke-opacity: 1; stroke-width: 3.4; }
.cw-layer.is-missing .shape { fill: none; stroke: var(--stake); stroke-opacity: 1; stroke-width: 1.6; stroke-dasharray: 6 5; }
.cw-layer.is-off { opacity: 0; pointer-events: none; }
.cw-layer.is-off[data-side="wall"] { transform: translate(60px, 0); }
.cw-layer.is-off[data-side="floor"] { transform: translate(0, -44px); }
.cw-svg.has-hits .cw-layer:not(.is-hit):not(.is-off) { opacity: .3; }
.cw-svg.has-hits .cw-layer.is-hit { opacity: 1; }
.cw-anno { transition: opacity .3s; }
.cw-anno.is-off { opacity: .3; }
.fill-tile { fill: var(--tile); } .fill-mauve { fill: var(--mauve); } .fill-membrane { fill: var(--membrane); }
.fill-backer { fill: var(--backer); } .fill-stake { fill: var(--stake); } .fill-mortar { fill: var(--mortar); }
.fill-mortar-deep { fill: var(--mortar-deep); } .fill-mortar-wet { fill: var(--mortar-wet); } .fill-slab { fill: var(--slab); }
.fill-greenboard { fill: var(--greenboard); } .fill-ink { fill: var(--ink); } .fill-none { fill: none; }
.pat-line { stroke: var(--stake); stroke-width: 1; }
.pat-ridge { fill: color-mix(in srgb, var(--mauve) 88%, var(--ink)); }
.pat-dot { fill: var(--ink); fill-opacity: .16; }
.pat-grain { stroke: var(--ink); stroke-opacity: .18; fill: none; stroke-width: 1.2; }
.pat-paper { stroke: var(--white); stroke-opacity: .55; stroke-width: 2; }
.weep { fill: var(--plaster); }
.cw-controls { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px 14px; align-items: center; margin-top: 16px; }
.cw-controls label { font-weight: 700; }
.cw-controls output { font-size: var(--t-small); color: var(--stake); grid-column: 1 / -1; }
.cw-controls .btn { min-height: 44px; padding: 0 14px; }
input[type="range"] { width: 100%; height: 44px; margin: 0; background: transparent; accent-color: var(--ink); cursor: pointer; -webkit-appearance: none; appearance: none; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; background: var(--mauve); border-radius: 4px; box-shadow: inset 0 1px 2px color-mix(in srgb, var(--ink) 35%, transparent); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: var(--r-control); background: var(--ink); border: 3px solid var(--plaster); }
input[type="range"]::-moz-range-track { height: 8px; background: var(--mauve); border-radius: 4px; }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: var(--r-control); background: var(--ink); border: 3px solid var(--plaster); }
input[type="range"]:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.cw-list { list-style: none; counter-reset: layer; margin: 0 0 20px; padding: 0; display: grid; gap: 2px; }
.cw-list li { counter-increment: layer; }
.cw-list li.side-head { counter-increment: none; }
.cw-list .side-head { font: 700 var(--t-small)/1.3 var(--f-text); color: var(--stake); padding: 10px 0 4px; }
.cw-list button {
  display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: center; width: 100%;
  min-height: 44px; padding: 6px 10px; text-align: left; cursor: pointer;
  background: var(--plaster); color: var(--ink); border: 0; border-left: 6px solid var(--swatch, var(--mauve));
  border-radius: 0 var(--r-tile) var(--r-tile) 0; font: 500 var(--t-small)/1.3 var(--f-text);
  transition: background-color .15s;
}
.cw-list button::before { content: counter(layer); font: 700 1rem/1 var(--f-display); }
.cw-list button:hover { background: var(--white); }
.cw-list button[aria-current="true"] { background: var(--ink); color: var(--plaster); }
.cw-list button.is-off { color: var(--stake); background: transparent; border-left-style: dashed; }
.cw-list button[aria-current="true"].is-off { color: var(--plaster); background: var(--ink); }
.cw-list button.is-hit { box-shadow: inset 0 0 0 2px var(--ink); font-weight: 700; }
.cw-panel { margin-top: 20px; background: var(--plaster); padding: 18px 20px; border-radius: var(--r-tile); border-left: 6px solid var(--swatch, var(--mauve)); }
.cw-panel h3 { font-size: 1.375rem; margin-bottom: .4em; }
.cw-panel dl { margin: 0; }
.cw-panel dt { font-weight: 700; font-size: var(--t-small); margin-top: 10px; }
.cw-panel dd { margin: 2px 0 0; font-size: var(--t-small); line-height: 1.5; }
.symptoms { margin-top: clamp(48px, 6vw, 72px); }
.symptoms h3 { margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 18px 0 24px; }
.readout { background: var(--plaster); padding: 20px 22px; border-radius: var(--r-tile); max-width: 820px; }
.readout ul { margin: 0 0 12px; padding-left: 1.1em; }
.readout li { margin-bottom: 8px; }
.readout .verdict { font-weight: 700; }
.readout-empty { margin: 0 0 12px; color: var(--stake); }
.readout-note { font-size: var(--t-small); color: var(--stake); margin: 0 0 14px; }
.cw-table { width: 100%; border-collapse: collapse; font-size: var(--t-small); background: var(--plaster); }
.cw-table th, .cw-table td { text-align: left; padding: 10px 12px; vertical-align: top; }
.cw-table thead th { background: var(--ink); color: var(--plaster); }
.cw-table tbody tr:nth-child(even) { background: var(--white); }
.js .cw-nojs { display: none; }
.no-js .cw-js { display: none; }

/* Real work: tall "core sample" crops on one baseline */
.cores { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); align-items: end; list-style: none; margin: 0; padding: 0; }
.cores.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.core a { display: block; color: var(--ink); text-decoration: none; }
.core img { width: 100%; aspect-ratio: 3 / 4.4; object-fit: cover; border-radius: var(--r-tile); background: var(--mauve); }
.core:nth-child(even) img { aspect-ratio: 3 / 3.8; }
.core-cap { display: block; padding-top: 12px; border-top: 6px solid var(--ink); margin-top: 0; }
.core-title { display: block; font: 600 1.125rem/1.2 var(--f-display); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .18em; transition: text-decoration-color .15s; }
.core a:hover .core-title, .core a:focus-visible .core-title { text-decoration-color: var(--membrane-deep); }
.core-meta { display: block; font-size: var(--t-small); color: var(--stake); margin-top: 4px; }
.core .tag { display: inline-block; font-size: .8125rem; font-weight: 700; background: var(--ink); color: var(--plaster); padding: 2px 8px; border-radius: var(--r-tile); margin-top: 6px; }
.more-link { margin: 28px 0 0; font-weight: 700; }

/* Repair or rebuild */
.rr-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px clamp(16px, 2.5vw, 32px); }
.rr-grid h2 { grid-column: 1 / 5; }
.rr-col { grid-column: span 4; }
.rr-col h3 { font-size: 1.25rem; }
.rr-col ul { padding-left: 1.1em; margin: 0; }
.rr-col li { margin-bottom: 8px; }
.rr-close { grid-column: 5 / 13; font-weight: 700; margin: 8px 0 0; }

/* What we do: four layers of one cut */
.svc-stack { list-style: none; margin: 0; padding: 0; }
.svc-layer { position: relative; margin-left: calc(var(--i) * clamp(0px, 3.2vw, 56px)); }
.svc-layer a.svc-link { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px clamp(16px, 2.5vw, 32px); align-items: baseline; padding: var(--pad) clamp(16px, 2.5vw, 32px); color: inherit; text-decoration: none; }
.svc-layer h3 { grid-column: 1 / 6; margin: 0; }
.svc-layer p { grid-column: 6 / 11; margin: 0; }
.svc-layer .svc-name { grid-column: 11 / 13; justify-self: end; font-weight: 700; font-size: var(--t-small); text-decoration: underline; text-underline-offset: .2em; }
.svc-layer a:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
.svc-1 { background: var(--plaster-2); --pad: 34px; }
.svc-2 { background: var(--mauve); --pad: 28px; }
.svc-3 { background-color: var(--backer); --pad: 24px; }
.svc-4 { background: var(--ink); color: var(--plaster); --pad: 20px; }
.svc-4 :focus-visible, .svc-4 a:focus-visible { outline-color: var(--plaster); }

/* Where we work */
.where-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px clamp(16px, 2.5vw, 32px); align-items: start; }
.where-copy { grid-column: 1 / 6; }
.where-map { grid-column: 6 / 13; }
.area-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 2px; }
.area-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 12px 14px; background: var(--plaster); color: var(--ink); text-decoration: none; border-radius: var(--r-tile); }
.area-list a:hover { background: var(--white); }
.area-list strong { font: 700 1.125rem/1.2 var(--f-display); }
.area-list span { font-size: var(--t-small); color: var(--stake); }
.map-frame { width: 100%; height: 400px; border: 0; border-radius: var(--r-tile); background: var(--plaster-2); }
.map-cap { margin: 12px 0 0; font-size: var(--t-small); }

/* Reviews slot and FAQ */
.reviews-slot { margin: 0 0 clamp(40px, 6vw, 64px); }
.reviews-fallback { font-weight: 700; margin: 0; }
.faq { max-width: 860px; }
.faq details { background: var(--plaster); border-radius: var(--r-tile); }
.faq details:nth-child(even) { background: color-mix(in srgb, var(--plaster) 55%, var(--white)); }
.faq details + details { margin-top: 3px; }
.faq summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) 20px; gap: 16px; align-items: center; min-height: 56px; padding: 14px 20px; cursor: pointer; font: 600 1.1875rem/1.3 var(--f-display); border-radius: var(--r-tile); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 14px; height: 14px; justify-self: end; background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { background: var(--white); }
.faq .answer { padding: 0 20px 18px; }
.faq .answer p { margin: 0; }

/* Lead form */
.close-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px clamp(16px, 2.5vw, 32px); align-items: start; }
.close-form { grid-column: 1 / 8; }
.close-side { grid-column: 9 / 13; }
.lead-form { display: grid; gap: 18px; }
.lead-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.lead-form legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.room-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.no-js .rooms { display: none; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--stake); }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--white); color: var(--ink); border: 2px solid var(--stake); border-radius: var(--r-tile);
  font: 400 1.0625rem/1.4 var(--f-text);
  transition: border-color .15s, background-color .15s;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--membrane-deep); background: color-mix(in srgb, var(--membrane-wash) 35%, var(--white)); }
.field input:disabled, .field textarea:disabled { opacity: .6; cursor: not-allowed; }
.field .hint { display: block; font-size: var(--t-small); color: var(--stake); margin-top: 6px; }
.field .err { display: block; font-size: var(--t-small); font-weight: 700; color: var(--membrane-deep); margin-top: 6px; }
.field .err:empty { display: none; }
.field .err::before { content: "Fix: "; }
.js .hint-nojs, .no-js .hint-js { display: none; }
.form-foot { display: grid; gap: 12px; }
.form-foot .btn { justify-self: start; min-width: 200px; }
.consent { font-size: var(--t-small); color: var(--stake); margin: 0; max-width: 60ch; }
.consent a { color: var(--ink); }
.form-status { margin: 0; padding: 14px 16px; border-radius: var(--r-tile); font-weight: 700; }
.form-status:empty { display: none; }
.form-status.is-success { background: var(--backer); color: var(--ink); }
.form-status.is-error { background: var(--membrane-wash); color: var(--membrane-deep); }
.form-status.is-loading { background: var(--plaster-2); color: var(--ink); }
.contact-block { font-style: normal; }
.contact-block p { margin: 0 0 14px; }
.contact-block .big { font: 700 1.625rem/1.2 var(--f-display); }
.contact-block .label { display: block; font-size: var(--t-small); color: var(--stake); font-weight: 500; }

/* Modal */
.modal { width: min(640px, calc(100vw - 24px)); max-height: calc(100svh - 24px); padding: 0; border: 0; border-radius: var(--r-control); background: var(--plaster); color: var(--ink); overflow: auto; }
.modal::backdrop { background: color-mix(in srgb, var(--ink) 68%, transparent); }
.modal-inner { padding: clamp(20px, 4vw, 36px); }
.modal-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 18px; }
.modal-head h2 { font-size: var(--t-h3); margin: 0; }
.modal-close { flex: none; width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: var(--r-control); background: var(--plaster); cursor: pointer; position: relative; }
.modal-close::before, .modal-close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; background: var(--ink); transform: translate(-50%, -50%) rotate(45deg); }
.modal-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.modal-close:hover { background: var(--white); }

/* Mobile call bar */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: var(--ink); transition: transform .25s var(--ease);
  }
  .callbar a { min-height: 50px; display: flex; gap: .35em; align-items: center; justify-content: center; text-decoration: none; font-weight: 700; border-radius: var(--r-control); }
  .callbar .call { background: var(--plaster); color: var(--ink); }
  .callbar .req { background: var(--membrane); color: var(--white); }
  .js .callbar { transform: translateY(110%); }
  .js .callbar.is-visible { transform: none; }
  .js .callbar.is-hidden { transform: translateY(110%); }
  body { padding-bottom: 72px; }
}

/* Footer: the studs */
.site-foot { position: relative; background: var(--ink); color: var(--plaster); padding-block: clamp(56px, 7vw, 88px) 32px; margin-top: clamp(18px, 2.4vw, 30px); }
.site-foot .cut-edge { color: var(--ink); }
.site-foot a { color: var(--plaster); text-decoration-color: color-mix(in srgb, var(--plaster) 45%, transparent); }
.site-foot a:hover { color: var(--white); text-decoration-color: var(--white); }
.foot-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 36px clamp(16px, 2.5vw, 32px); }
.foot-nap { grid-column: 1 / 5; }
.foot-col { grid-column: span 2; }
.foot-col:first-of-type { grid-column: 6 / 9; }
.foot-grid h2 { font-size: 1.125rem; margin-bottom: 12px; color: var(--mauve); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot-grid li a { display: inline-block; padding: 6px 0; }
.foot-nap address { font-style: normal; line-height: 1.7; }
.foot-name { font: 700 1.375rem/1.15 var(--f-display); margin-bottom: 10px; }
.foot-base { margin-top: 48px; padding-top: 20px; border-top: 6px solid color-mix(in srgb, var(--plaster) 12%, var(--ink)); font-size: var(--t-small); color: var(--mauve); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Inner pages */
.crumbs { font-size: var(--t-small); margin-bottom: 18px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; padding: 0; margin: 0; }
.crumbs li:not(:last-child)::after { content: "/"; margin: 0 8px; color: var(--stake); }
.crumbs a { color: var(--stake); }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }
.page-hero { padding-block: clamp(28px, 5vw, 56px) clamp(48px, 6vw, 80px); }
.page-hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px clamp(16px, 2.5vw, 32px); align-items: end; }
.page-hero-copy { grid-column: 1 / 8; }
.page-hero-copy h1 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem); max-width: 18ch; }
.page-hero-fig { grid-column: 9 / 13; margin: 0; }
.page-hero-fig img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-tile); }
figcaption { font-size: var(--t-small); color: var(--stake); margin-top: 10px; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.625rem, 1.3rem + 1.3vw, 2.125rem); }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }
.article-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px clamp(16px, 2.5vw, 32px); }
.article-grid .prose { grid-column: 1 / 9; }
.article-aside { grid-column: 9 / 13; }
.article-aside figure { margin: 0 0 32px; }
.article-aside img { width: 100%; border-radius: var(--r-tile); }
.layers-list { list-style: none; counter-reset: step; margin: 0; padding: 0; max-width: 980px; }
.layers-list li { counter-increment: step; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 18px; padding: 18px 20px; }
.layers-list li::before { content: counter(step); grid-row: span 2; font: 700 2rem/1 var(--f-display); }
.layers-list li:nth-child(4n+1) { background: var(--plaster-2); }
.layers-list li:nth-child(4n+2) { background: var(--mauve); }
.layers-list li:nth-child(4n+3) { background-color: var(--backer); }
.layers-list li:nth-child(4n+4) { background: color-mix(in srgb, var(--plaster) 55%, var(--white)); }
.layers-list h3 { font-size: 1.25rem; margin: 0; }
.layers-list p { margin: 0; }
.inline-areas { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 16px 0 0; }
.inline-areas a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; background: var(--plaster); color: var(--ink); border-radius: var(--r-tile); font-weight: 700; text-decoration: none; }
.inline-areas a:hover { background: var(--white); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; margin: 0; }
.facts div { background: var(--plaster); padding: 16px 18px; }
.facts dt { font-size: var(--t-small); color: var(--stake); font-weight: 500; }
.facts dd { margin: 4px 0 0; font: 700 1.25rem/1.25 var(--f-display); }
.article-aside .facts { grid-template-columns: minmax(0, 1fr); }
.svc-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.svc-links a { display: block; padding: 16px 18px; background: var(--plaster); color: var(--ink); text-decoration: none; font: 600 1.1875rem/1.25 var(--f-display); }
.svc-links a:hover { background: var(--white); text-decoration: underline; }
.svc-links span { display: block; font: 400 var(--t-small)/1.4 var(--f-text); color: var(--stake); margin-top: 4px; }

/* Projects index */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.no-js .filters { display: none; }
.project-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px clamp(12px, 2vw, 24px); list-style: none; margin: 0; padding: 0; align-items: end; }
.project-grid .core[hidden] { display: none; }
.filter-status { font-size: var(--t-small); color: var(--stake); margin: -16px 0 24px; }

/* Project gallery */
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px clamp(16px, 2.5vw, 32px); }
.g-stage { grid-column: 1 / 9; position: relative; margin: 0; background: var(--ink); border-radius: var(--r-tile); display: grid; place-items: center; min-height: 320px; touch-action: pan-y; }
.g-stage img { max-height: min(78svh, 900px); width: auto; max-width: 100%; object-fit: contain; }
.g-count { position: absolute; left: 12px; bottom: 12px; background: var(--plaster); color: var(--ink); font-size: var(--t-small); font-weight: 700; padding: 4px 10px; border-radius: var(--r-tile); }
.g-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: var(--r-control); border: 2px solid var(--ink); background: var(--plaster); cursor: pointer; }
.g-nav:hover { background: var(--white); }
.g-nav:disabled { opacity: .4; cursor: not-allowed; }
.g-prev { left: 12px; } .g-next { right: 12px; }
.g-nav::before { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.g-prev::before { transform: translate(-30%, -50%) rotate(45deg); }
.g-next::before { transform: translate(-70%, -50%) rotate(-135deg); }
.no-js .g-nav, .no-js .g-count { display: none; }
.g-side { grid-column: 9 / 13; }
.g-thumbs { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.g-thumbs a { display: block; border-radius: var(--r-tile); outline-offset: 2px; border: 3px solid transparent; }
.g-thumbs a[aria-current="true"] { border-color: var(--ink); }
.g-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-tile); }
.spec { margin: 0; display: grid; gap: 2px; }
.spec div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 10px 14px; background: var(--plaster-2); }
.spec dt { font-weight: 700; font-size: var(--t-small); }
.spec dd { margin: 0; font-size: var(--t-small); }

/* About process */
.process { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-width: 900px; }
.process li { background: var(--plaster); padding: 20px 22px; }
.process li:nth-child(even) { background: color-mix(in srgb, var(--plaster) 55%, var(--white)); }
.process h3 { font-size: 1.375rem; margin-bottom: 6px; }
.process p { margin: 0; }
.photo-pair { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.photo-pair img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-tile); }

/* Privacy */
.toc { background: var(--plaster); padding: 20px 24px; border-radius: var(--r-tile); max-width: 70ch; margin-bottom: 40px; }
.toc ol { margin: 0; padding-left: 1.4em; columns: 2 260px; column-gap: 32px; }
.toc li { margin-bottom: 6px; break-inside: avoid; }

/* Responsive */
@media (max-width: 1040px) {
  .cw-main, .cw-side { grid-column: 1 / -1; }
  .cw-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
  .cores, .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rr-grid h2, .rr-close { grid-column: 1 / -1; }
  .rr-col { grid-column: span 6; }
  .svc-layer h3 { grid-column: 1 / 7; }
  .svc-layer p { grid-column: 7 / 13; }
  .svc-layer .svc-name { grid-column: 7 / 13; justify-self: start; }
  .where-copy, .where-map { grid-column: 1 / -1; }
  .close-form { grid-column: 1 / -1; }
  .close-side { grid-column: 1 / -1; }
  .foot-nap { grid-column: 1 / -1; }
  .foot-col, .foot-col:first-of-type { grid-column: span 4; }
  .article-grid .prose, .article-aside { grid-column: 1 / -1; }
  .article-aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .g-stage, .g-side { grid-column: 1 / -1; }
  .g-thumbs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --head-h: 64px; }
  /* Phones: the whole photo on top, text below on ink; the photo fades into the ink */
  .hero-bg { display: block; min-height: 0; }
  .hero-photo { display: block; position: relative; }
  .hero-photo img { position: static; width: 100%; height: auto; aspect-ratio: 4 / 3; object-position: 60% 50%; }
  .hero-photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 38%; background: linear-gradient(0deg, var(--ink), transparent); }
  .hero-bg::before { display: none; }
  .hero-bg-inner { padding-block: 4px 72px; }
  .brand-name { font-size: 1rem; }
  .cw-side { grid-template-columns: minmax(0, 1fr); }
  .cw-svg text.lbl { display: none; }
  .cw-svg .cw-num text { font-size: 28px; }
  .cw-num circle { r: 22; }
  .cw-controls { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cw-controls label, .cw-controls input { grid-column: 1 / -1; }
  .chips .chip { width: 100%; }
  .chips li { flex: 1 1 100%; }
  .rr-col { grid-column: 1 / -1; }
  .svc-layer { margin-left: calc(var(--i) * 10px); }
  .svc-layer h3, .svc-layer p, .svc-layer .svc-name { grid-column: 1 / -1; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .foot-col, .foot-col:first-of-type { grid-column: 1 / -1; }
  .page-hero-copy, .page-hero-fig { grid-column: 1 / -1; }
  .page-hero-fig img { aspect-ratio: 4 / 3; }
  .article-aside { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .svc-links { grid-template-columns: minmax(0, 1fr); }
  .cores.three { grid-template-columns: minmax(0, 1fr); }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .g-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .map-frame { height: 320px; }
  .photo-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .layers-list li { grid-template-columns: 40px minmax(0, 1fr); padding: 16px; }
}
@media (max-width: 420px) {
  .cores:not(.three) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .core-title { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .cw-layer.is-off { transform: none !important; }
}
