/* Outlay
   A marked-up drawing set. White bond on a cool drafting table, black ink, and the
   marker set estimators colour a takeoff with: each colour is a ground somewhere on the
   site, and tells you which part of the set you are in (blue services, pink trades,
   yellow samples and the offer, green money and locations). A red pen for checking.
   One type family (Archivo): condensed for headings and sheet lettering, normal for reading. */

:root {
  --paper: #f3f6f8;        /* the drafting table */
  --sheet: #ffffff;        /* a clean sheet lying on it */
  --tint: #e6ecf0;
  --ink: #10161d;          /* drafting ink */
  --muted: #434e59;
  --rule: #c2cbd3;
  --marker: #ffe53b;       /* highlighter */
  --pen: #d8321a;          /* the checker's red pen */
  --greenbar: #e1eee4;     /* ledger paper, used only in the estimate */
  --ledger: #0d4a35;

  /* the marker set, as grounds */
  --plate-blue: #a4d6f7;
  --plate-yellow: #ffe53b;
  --plate-pink: #f9b9d8;
  --plate-green: #97dfba;

  /* takeoff marker colours */
  --tk-carpet: #ffe53b;
  --tk-lvt: #62bdf2;
  --tk-tile: #f590c4;
  --tk-ceiling: #b6a4f2;
  --tk-partition: #0a9b68;
  --tk-doors: #e4502a;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 128px);
  --line: 1.5px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2 {
  font-stretch: 68%;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h3 { font-size: 1.125rem; font-weight: 700; line-height: 1.25; }

:focus-visible { outline: 3px solid var(--pen); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden {
  position: absolute; width: 1px !important; height: 1px; overflow: hidden;
  padding: 0 !important; border: 0 !important; margin: -1px;
  clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 20;
  background: var(--ink); color: var(--sheet); padding: 10px 14px;
}
.skip:focus { top: 8px; }

/* Placeholders that still need confirming: a dashed red underline on a light red wash.
   Drawn inside the text's own box, so it never touches the words around it and wraps cleanly. */
html[data-draft] .tbc {
  background: rgba(216, 50, 26, 0.1);
  text-decoration: underline dashed var(--pen);
  text-decoration-thickness: max(1.5px, 0.045em);
  text-underline-offset: 0.16em;
  text-decoration-skip-ink: none;
}
html[data-draft] a:has(> .tbc) { text-decoration: none; }
/* on ink */
html[data-draft] .topbar .tbc { background: rgba(255, 229, 59, 0.16); text-decoration-color: var(--marker); }
/* on highlighter yellow */
html[data-draft] .topbar-offer b .tbc, html[data-draft] .offer-band .tbc, html[data-draft] .offer-pop .tbc {
  background: rgba(19, 26, 34, 0.08); text-decoration-color: var(--ink);
}
.draft-note {
  display: none;
  background: var(--pen); color: #fff;
  font-size: 0.875rem; text-align: center; padding: 6px var(--gutter);
}
html[data-draft] .draft-note { display: block; }

/* Buttons */
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  font-weight: 700; padding: 15px 24px; border-radius: 2px;
  transition: background-color 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn-small { padding: 10px 16px; font-size: 0.9375rem; }
.btn-ink { background: var(--ink); color: var(--sheet); }
.btn-ink:hover { background: var(--marker); color: var(--ink); }
.btn-marker { background: var(--marker); color: var(--ink); }
.btn-marker:hover { background: #fff07a; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Top bar: the offer, the phone number and the client login */
.topbar { background: var(--ink); color: var(--sheet); font-size: 0.875rem; }
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 6px 24px; min-height: 38px; }
.topbar a { text-underline-offset: 3px; }
.topbar-offer { text-decoration: none; padding-block: 8px; }
.topbar-offer b { background: var(--marker); color: var(--ink); padding: 2px 8px; margin-right: 8px; font-weight: 700; }
.topbar-offer:hover { text-decoration: underline; }
.topbar-links { display: flex; gap: 22px; white-space: nowrap; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--sheet); border-bottom: var(--line) solid var(--ink);
}
.header-row { display: flex; align-items: center; gap: 12px 32px; min-height: 64px; }
.wordmark { display: block; color: var(--ink); margin-right: auto; text-decoration: none; }
.wordmark .logo { display: block; height: 33px; width: auto; }
/* The y's tail is part of the logo's box, so a centred box leaves the O sitting high. Drop it until the O is centred on the row. */
.site-header .wordmark .logo { position: relative; top: 4px; }
.site-nav { display: flex; gap: 28px; }
.site-nav a { text-decoration: none; font-size: 0.9375rem; font-weight: 500; white-space: nowrap; }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--marker); }
.site-nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-extra, .menu-btn { display: none; }
.menu-btn {
  align-items: center; gap: 9px; min-height: 44px; padding: 0 12px; cursor: pointer;
  background: var(--sheet); border: var(--line) solid var(--ink); border-radius: 2px; font-weight: 700; font-size: 0.9375rem;
}
.menu-btn-bars { position: relative; width: 16px; height: 10px; border-block: 2px solid var(--ink); transition: border-color 0.15s; }
.menu-btn-bars::before, .menu-btn-bars::after { content: ""; position: absolute; inset: 2px 0 auto; height: 2px; background: var(--ink); transition: transform 0.2s; }
.menu-btn[aria-expanded="true"] { background: var(--marker); }
.menu-btn[aria-expanded="true"] .menu-btn-bars { border-color: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn-bars::before { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn-bars::after { transform: rotate(-45deg); }

/* Hero */
.hero { padding-block: clamp(28px, 3vw, 40px) 0; border-bottom: var(--line) solid var(--ink); }
/* the title block straddles the edge of the hero, half on the next sheet */
.hero > .wrap > .titleblock { position: relative; z-index: 1; transform: translateY(50%); }
.hero-grid {
  display: grid; gap: clamp(32px, 5vw, 72px);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start;
}
.lede { font-size: 1.1875rem; color: var(--muted); margin-top: 20px; max-width: 34em; }
.hero-aside { margin-top: 16px; font-size: 0.9375rem; color: var(--muted); }
.hero-aside a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }

.dropzone {
  position: relative; display: flex; align-items: center; gap: 18px; cursor: pointer;
  margin-top: 28px; padding: 22px 24px;
  border: 2px dashed var(--ink); border-radius: 2px; background: var(--sheet);
  transition: background-color 0.15s;
}
.dropzone:hover, .dropzone.is-over { background: var(--marker); }
.dropzone:focus-within { outline: 3px solid var(--pen); outline-offset: 3px; }
.dropzone.has-files { border-style: solid; background: var(--marker); }
.dropzone-icon { width: 40px; height: 40px; flex: none; }
.dropzone-text { display: grid; gap: 2px; }
.dropzone-text strong { font-size: 1.125rem; }
.dropzone-text span { font-size: 0.9375rem; color: var(--muted); }
.dropzone:hover .dropzone-text span, .dropzone.is-over .dropzone-text span, .dropzone.has-files .dropzone-text span { color: var(--ink); }

/* The plan: one drawing, used flat in the hero and raised in the sample section */
.plan { display: block; width: 100%; height: auto; }
.plan text { font-size: 10.5px; font-stretch: 80%; font-weight: 500; fill: var(--ink); }
.plan .gridline { fill: none; stroke: var(--muted); stroke-width: 0.6; stroke-dasharray: 12 3 2 3; }
.plan .bubble circle { fill: var(--sheet); stroke: var(--ink); stroke-width: 1; }
.plan .bubble text { font-size: 10px; font-weight: 700; text-anchor: middle; }
.plan .dim { fill: none; stroke: var(--ink); stroke-width: 0.8; }
.plan .dim-text { font-size: 9.5px; fill: var(--muted); paint-order: stroke; stroke: var(--sheet); stroke-width: 4px; }
.plan .north circle { fill: none; stroke: var(--ink); stroke-width: 1; }
.plan .north path { fill: var(--ink); }
.plan .wall-outer { fill: none; stroke: var(--ink); stroke-width: 5; }
.plan .wall { fill: none; stroke: var(--ink); stroke-width: 3; }
.plan .door { fill: none; stroke: var(--ink); stroke-width: 0.9; }

.layer-carpet rect { fill: var(--tk-carpet); }
.layer-lvt rect { fill: var(--tk-lvt); }
.layer-tile rect { fill: var(--tk-tile); }
.layer-carpet, .layer-lvt, .layer-tile { opacity: 0.6; transition: opacity 0.5s; }
.layer-partition path {
  fill: none; stroke: var(--tk-partition); stroke-width: 6; stroke-linecap: square; opacity: 0.85;
  stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 0.7s ease-in-out;
}
.layer-perimeter { display: none; }
.layer-perimeter rect { fill: none; stroke: var(--tk-partition); stroke-width: 6; opacity: 0.85; }
.layer-doors circle {
  fill: var(--tk-doors); stroke: var(--sheet); stroke-width: 2;
  transform-box: fill-box; transform-origin: center; transition: transform 0.25s;
}

/* Hero sheet */
.sheet { border: var(--line) solid var(--ink); background: var(--sheet); }
.sheet .plan { padding: 6px 6px 0; }

/* Animated run: the drawing is inked, then each layer is measured in turn (main.js) */
.sheet.is-running .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.sheet.is-running .annot, .sheet.is-running .door, .sheet.is-running .rooms { opacity: 0; }
.sheet.is-running.is-drawn .draw { stroke-dashoffset: 0; transition: stroke-dashoffset 1s ease-in-out; }
.sheet.is-running.is-drawn .annot, .sheet.is-running.is-drawn .door, .sheet.is-running.is-drawn .rooms { opacity: 1; transition: opacity 0.5s 0.6s; }
.sheet.is-running .layer-carpet,
.sheet.is-running .layer-lvt,
.sheet.is-running .layer-tile { opacity: 0; }
.sheet.is-running .layer-partition path { stroke-dashoffset: 1; }
.sheet.is-running .layer-doors circle { transform: scale(0); }
.sheet.is-running .layer.is-on { opacity: 0.6; }
.sheet.is-running .layer-partition.is-on { opacity: 1; }
.sheet.is-running .layer-partition.is-on path { stroke-dashoffset: 0; }
.sheet.is-running .layer-doors.is-on { opacity: 1; }
.sheet.is-running .layer-doors.is-on circle { transform: scale(1); }
.sheet.is-running .tally tr { opacity: 0.3; transition: opacity 0.3s; }
.sheet.is-running .tally tr.is-on { opacity: 1; }

.tally { width: 100%; border-collapse: collapse; margin-top: 4px; font-size: 0.9375rem; }
.tally th, .tally td { padding: 7px 14px; border-top: 1px solid var(--rule); }
.tally th { text-align: left; font-weight: 500; }
.tally td { text-align: right; font-weight: 700; white-space: nowrap; }
.swatch { display: inline-block; width: 12px; height: 12px; margin-right: 10px; vertical-align: -1px; }
.swatch-carpet { background: var(--tk-carpet); }
.swatch-lvt { background: var(--tk-lvt); }
.swatch-tile { background: var(--tk-tile); }
.swatch-partition { background: var(--tk-partition); }
.swatch-doors { background: var(--tk-doors); border-radius: 50%; }
.sheet figcaption {
  border-top: var(--line) solid var(--ink); padding: 8px 14px;
  font-size: 0.8125rem; font-stretch: 80%; color: var(--muted);
}

/* Title block */
.titleblock {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: clamp(28px, 3vw, 40px); border: var(--line) solid var(--ink); background: var(--sheet);
}
.titleblock > div { padding: 14px 18px; border-left: 1px solid var(--ink); }
.titleblock > div:first-child { border-left: 0; }
.titleblock dt { font-size: 0.8125rem; font-stretch: 80%; color: var(--muted); }
.titleblock dd { font-weight: 700; margin-top: 2px; line-height: 1.3; overflow-wrap: anywhere; }

/* Sections: each one is a sheet in the set, ruled off at the top with its number */
.section { padding-block: var(--section); }
/* tinted sheets are grid paper */
.section-tint {
  background:
    linear-gradient(rgba(19, 26, 34, 0.05) 1px, transparent 1px) 0 0 / 100% 24px,
    linear-gradient(90deg, rgba(19, 26, 34, 0.05) 1px, transparent 1px) 0 0 / 24px 100%,
    var(--tint);
}
.section-head { max-width: 46rem; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head p { margin-top: 18px; color: var(--muted); font-size: 1.125rem; max-width: 38em; }
.section-head .sheet-no, .request-copy .sheet-no {
  margin: 0 0 20px; max-width: none; padding-top: 8px; border-top: var(--line) solid currentColor;
  font-size: 0.8125rem; font-stretch: 80%; font-weight: 600; color: var(--ink);
}
.wrap > .section-head:first-child { max-width: none; }
.wrap > .section-head:first-child > h2, .wrap > .section-head:first-child > p:not(.sheet-no) { max-width: 46rem; }
.wrap > .section-head:first-child > p:not(.sheet-no) { max-width: 38em; }

/* The instrument: plan and estimate side by side, linked */
.instrument {
  --t: 0; --s: 1; --h-int: 0.3; --h-ext: 0.3;
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
.instrument[data-walls="low"] { --h-int: 0.05; --h-ext: 0.05; }
.instrument[data-walls="int"] { --h-int: 1; --h-ext: 0.05; }
.instrument[data-walls="all"] { --h-int: 1; --h-ext: 1; }
.instrument[data-walls="base"] { --h-int: 0.1; --h-ext: 0.1; }

.instrument-model {
  position: sticky; top: 84px;
  border: var(--line) solid var(--ink); background: var(--sheet);
}
.model { position: relative; aspect-ratio: 572 / 372; overflow: hidden; }
.model:empty { display: none; }
.model-plane {
  position: absolute; left: 50%; top: 52%; width: 572px; height: 398px;
  transform-style: preserve-3d;
  /* no perspective: an axonometric view, the way a drawing shows three dimensions */
  transform: translate(-50%, -50%) scale(var(--s)) rotateX(calc(var(--t) * 56deg)) rotateZ(calc(var(--t) * -38deg));
  will-change: transform;
}
.model-plane .plan { position: absolute; inset: 0; width: 572px; height: 398px; }
.model .layer { transition: opacity 0.3s; }
.model .layer[data-pick] { cursor: pointer; }
.model .layer-perimeter { display: block; opacity: 0; }
.instrument.has-active .model .layer:not(.is-lit) { opacity: 0.07; }
.instrument.has-active .model .layer.is-lit { opacity: 0.85; }
.model.is-ceiling .layer-carpet rect, .model.is-ceiling .layer-lvt rect, .model.is-ceiling .layer-tile rect { fill: var(--tk-ceiling); }

.wall3d {
  position: absolute; height: 60px; transform-origin: 0 0; pointer-events: none;
  background: rgba(255, 255, 255, 0.6); border: 1px solid var(--ink);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.3s;
}
.wall3d-int { --h: var(--h-int); }
.wall3d-ext { --h: var(--h-ext); }
.instrument[data-walls="int"] .wall3d-int { background: rgba(10, 155, 104, 0.5); }
.instrument[data-walls="all"] .wall3d { background: rgba(255, 229, 59, 0.6); }
.instrument[data-walls="base"] .wall3d { background: var(--tk-doors); }

.readout { border-top: var(--line) solid var(--ink); padding: 14px 18px 16px; min-height: 7.2em; }
.readout-qty { font-stretch: 68%; font-weight: 800; font-size: 1.625rem; line-height: 1.1; }
.readout-how { margin-top: 6px; font-size: 0.9375rem; color: var(--muted); }

/* Ledger (the estimate) */
.ledger { border: var(--line) solid var(--ink); background: var(--sheet); }
.ledger-tabs { display: flex; border-bottom: var(--line) solid var(--ink); }
.ledger-tabs button {
  background: none; border: 0; border-right: 1px solid var(--ink); cursor: pointer;
  padding: 14px 22px; font-weight: 600;
}
.ledger-tabs button[aria-selected="true"] { background: var(--ink); color: var(--sheet); }
.ledger-tabs button:focus-visible { outline-offset: -4px; }
.greenbar { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.greenbar th, .greenbar td { padding: 11px 14px; text-align: left; vertical-align: baseline; }
.greenbar thead th { font-size: 0.8125rem; font-stretch: 80%; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--rule); white-space: nowrap; }
.greenbar tbody tr:nth-child(odd) { background: var(--greenbar); }
.greenbar .num { text-align: right; white-space: nowrap; }
.greenbar-lines th:nth-child(2) { width: 99%; }
.greenbar-lines td:nth-child(4), .greenbar-lines th:nth-child(4) { padding-left: 0; }
.greenbar tbody .col-csi { white-space: nowrap; color: var(--muted); }
.greenbar tfoot th { font-weight: 500; text-align: right; }
.greenbar tfoot tr:first-child > * { border-top: var(--line) solid var(--ink); }
.greenbar tfoot .grand > * { font-size: 1.25rem; font-weight: 800; border-top: 1px solid var(--rule); }
.greenbar tfoot .grand td.num { background: var(--marker); }
.ledger-note { padding: 12px 14px; border-top: 1px solid var(--rule); font-size: 0.875rem; color: var(--muted); }

/* Rows you can pick */
.greenbar-lines tbody tr { cursor: pointer; transition: background-color 0.15s; }
.row-pick {
  background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: left;
  text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 1.5px; text-underline-offset: 4px;
}
.greenbar-lines tbody tr:hover .row-pick { text-decoration-color: var(--ink); }
.greenbar-lines tbody tr.is-active { background: var(--marker); box-shadow: inset 4px 0 0 var(--pen); }
.greenbar-lines tbody tr.is-active .col-csi { color: var(--ink); }
.greenbar-lines tbody tr.is-active .row-pick { text-decoration-color: transparent; font-weight: 700; }

/* Process: steps sit on a scale ruler */
.steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px;
  counter-reset: step;
  position: relative; padding-top: 32px;
}
/* the ruler is its own layer so it can be drawn across (see Motion) */
.steps::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 16px;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 0 / 100% 1.5px no-repeat,
    repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px 12px) 0 0 / 100% 8px no-repeat,
    repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px 60px) 0 0 / 100% 16px no-repeat;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: block; font-stretch: 62%; font-weight: 900; font-size: clamp(4.5rem, 7.5vw, 7rem); line-height: 0.9;
}
.step-time { display: inline-block; margin-top: 10px; font-size: 0.875rem; font-weight: 700; background: var(--marker); padding: 2px 8px; }
.steps h3 { margin-top: 14px; font-size: 1.25rem; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 1rem; }

/* Trades */
.scope { display: grid; gap: 40px; }
.scope-group h3 { margin-bottom: 14px; }
.scope-grid {
  display: grid; background: var(--sheet);
  border-top: var(--line) solid var(--ink); border-left: 1px solid var(--rule);
}
.scope-grid-six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.scope-grid-trades { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.scope-grid li { display: flex; }
.scope-grid button, .scope-grid a {
  position: relative; display: flex; flex-direction: column; gap: 6px; width: 100%; min-height: 76px;
  padding: 14px 16px; text-align: left; cursor: pointer; font-weight: 600; line-height: 1.25;
  background: none; border: 0;
  border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  transition: background-color 0.12s;
}
.scope-grid a { text-decoration: none; color: inherit; }
.scope-grid button:hover, .scope-grid a:hover { background: var(--marker); }
.scope-grid button:focus-visible, .scope-grid a:focus-visible { outline-offset: -4px; }
.scope-grid-five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.scope-grid b { font-stretch: 62%; font-weight: 800; font-size: 1.5rem; line-height: 1; }

/* Team */
.team-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.team-grid .section-head { margin-bottom: 0; }
.record { border: var(--line) solid var(--ink); background: var(--sheet); }
.record > div { padding: 16px 18px; border-top: 1px solid var(--ink); }
.record > div:first-child { border-top: 0; }
.record dt { font-size: 0.8125rem; font-stretch: 80%; color: var(--muted); }
.record dd { font-stretch: 68%; font-weight: 800; font-size: 2rem; line-height: 1.15; margin-top: 4px; }
.record dd[data-count] { font-stretch: 62%; font-weight: 900; font-size: clamp(3.5rem, 7vw, 5.5rem); line-height: 0.95; }

/* Pricing */
.pricing { width: 100%; border-collapse: collapse; border-top: var(--line) solid var(--ink); }
.pricing th, .pricing td { padding: 22px 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.pricing th { text-align: left; font-size: 1.375rem; font-weight: 700; }
.pricing th span { display: block; font-size: 1rem; font-weight: 400; color: var(--muted); margin-top: 4px; }
.pricing td { text-align: right; white-space: nowrap; color: var(--muted); padding-left: 24px; }
.pricing td strong { font-stretch: 62%; font-weight: 900; font-size: clamp(2.75rem, 5.5vw, 4.5rem); line-height: 1; color: var(--ink); margin-left: 6px; }
.pricing td .pricing-word { font-size: 1.375rem; font-stretch: 100%; font-weight: 700; margin-left: 0; }
.pricing td:has(.pricing-word) { white-space: normal; max-width: 9em; }
.pricing-cta { margin-top: 32px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(24px, 6vw, 96px); align-items: start; }
.faq-grid .section-head { margin-bottom: 0; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:first-child { border-top: var(--line) solid var(--ink); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative;
  font-weight: 700; font-size: 1.125rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 12px;
  font-size: 1.75rem; font-weight: 400;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 40px 20px 0; color: var(--muted); max-width: 40em; }

/* Request form */
/* the last sheet is a blueprint: fine grid, heavier line every fifth */
.request {
  color: var(--sheet);
  background:
    linear-gradient(rgba(253, 253, 251, 0.09) 1px, transparent 1px) 0 0 / 100% 120px,
    linear-gradient(90deg, rgba(253, 253, 251, 0.09) 1px, transparent 1px) 0 0 / 120px 100%,
    linear-gradient(rgba(253, 253, 251, 0.045) 1px, transparent 1px) 0 0 / 100% 24px,
    linear-gradient(90deg, rgba(253, 253, 251, 0.045) 1px, transparent 1px) 0 0 / 24px 100%,
    var(--ink);
}
.request-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.request-copy .sheet-no { color: var(--sheet); }
.request-copy p:not(.sheet-no) { margin-top: 18px; font-size: 1.125rem; color: #c3cad1; }
.request-points { margin-top: 28px; display: grid; gap: 10px; }
.request-points li { padding-left: 26px; position: relative; }
.request-points li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 14px; height: 8px;
  border-left: 3px solid var(--marker); border-bottom: 3px solid var(--marker); transform: rotate(-45deg);
}
.request-form {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px;
  background: var(--sheet); color: var(--ink); padding: clamp(20px, 3vw, 36px); border-radius: 2px;
}
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; align-content: start; }
.field-wide { grid-column: 1 / -1; }
.field label:not(.dropzone) { font-size: 0.9375rem; font-weight: 600; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; background: #fff;
  border: 1.5px solid var(--muted); border-radius: 2px;
}
.field input, .field select, .field textarea { min-width: 0; max-width: 100%; }
/* iPhone Safari draws a date field at its own fixed width and ignores the width above, so it pokes out of
   a narrow form. Dropping the native look makes it obey; the height and alignment it then loses are put back. */
@supports (-webkit-touch-callout: none) {
  .field input[type="date"] { -webkit-appearance: none; appearance: none; min-height: 3.25rem; min-height: calc(1lh + 27px); text-align: left; }
  .field input[type="date"]::-webkit-date-and-time-value { text-align: left; }
}
.field textarea { resize: vertical; }
.field label.check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.8125rem; font-weight: 400; color: var(--muted); cursor: pointer; }
.field label.check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; padding: 0; accent-color: var(--ink); }
.field label.check a { text-underline-offset: 3px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 1px; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--pen); }
.dropzone-form { margin-top: 0; padding: 18px 20px; background: var(--paper); }
.file-list { display: grid; gap: 6px; margin-top: 4px; }
.file-list:empty { display: none; }
.file-list li {
  display: flex; align-items: center; gap: 12px; padding: 8px 12px;
  background: var(--tint); font-size: 0.9375rem;
}
.file-list .file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.file-list .file-size { color: var(--muted); margin-left: auto; white-space: nowrap; }
.file-list button { background: none; border: 0; cursor: pointer; text-decoration: underline; padding: 2px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 6px; }
.form-actions .btn-marker { outline: var(--line) solid var(--ink); outline-offset: -1.5px; }
.form-actions .btn-marker:focus-visible { outline: 3px solid var(--pen); outline-offset: 3px; }
.form-status { font-size: 0.9375rem; font-weight: 600; flex: 1 1 16rem; }
.form-status.is-error { color: var(--pen); }
.form-status.is-ok { color: var(--ledger); }

.form-legal { font-size: 0.8125rem; color: var(--muted); }
.form-legal a { text-underline-offset: 3px; }
.request-form[hidden] { display: none; }
.request-done {
  display: grid; gap: 14px; justify-items: start;
  background: var(--sheet); color: var(--ink); padding: clamp(24px, 4vw, 48px);
  border-radius: 2px; border-top: 10px solid var(--marker);
}
.request-done[hidden] { display: none; }
.request-done:focus { outline: 0; }
.request-done h3 { font-stretch: 68%; font-weight: 800; font-size: 2.25rem; line-height: 1; }
.request-done p { color: var(--muted); max-width: 36em; }
.request-done p:first-of-type { color: var(--ink); font-size: 1.125rem; font-weight: 600; }
.request-done .btn { margin-top: 8px; }

/* Footer: the set's title block */
.site-footer { background: var(--ink); padding-block: 0 clamp(32px, 5vw, 56px); }
.titleblock-footer { margin-top: 0; grid-template-columns: 0.9fr 1.3fr 1fr 1.6fr 1.1fr; font-size: 0.9375rem; }
.titleblock-footer dd { font-weight: 600; }
.titleblock-footer .tb-name { display: flex; align-items: center; }
.titleblock-footer .tb-name dd { margin: 0; }
.titleblock-footer .wordmark { margin: 0; }
.titleblock-footer a:not(.wordmark) { text-underline-offset: 3px; }
.tb-links { display: flex; flex-wrap: wrap; gap: 2px 14px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 18px; font-size: 0.875rem; color: #c3cad1; }
.footer-legal span { margin-right: auto; }
.footer-legal a { text-underline-offset: 3px; }
.footer-legal a:hover { color: var(--marker); }

.footer-nav {
  display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 32px clamp(24px, 5vw, 72px);
  padding-block: clamp(40px, 6vw, 72px) clamp(32px, 4vw, 48px); color: #c3cad1; font-size: 0.9375rem;
}
.footer-nav h2 {
  font-size: 0.8125rem; font-stretch: 80%; font-weight: 600; line-height: 1.4; letter-spacing: 0;
  color: var(--sheet); padding-top: 8px; border-top: var(--line) solid var(--sheet); margin-bottom: 14px;
}
.footer-nav ul { display: grid; gap: 8px; }
.footer-wide ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--marker); text-decoration: underline; text-underline-offset: 3px; }

/* Trade and service sheets */
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 0.8125rem; font-stretch: 80%; font-weight: 600; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: inherit; text-underline-offset: 3px; }
.crumbs a::after { content: "/"; margin-left: 10px; display: inline-block; text-decoration: none; }
.crumbs span { color: var(--ink); }

.schedule-head { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-bottom: var(--line) solid var(--ink); }
.schedule-head b {
  font-stretch: 62%; font-weight: 900; font-size: 4.5rem; line-height: 0.8;
  background: var(--marker); padding: 12px 10px 10px;
}
.schedule-head p { font-stretch: 68%; font-weight: 800; font-size: 1.625rem; line-height: 1.1; }
.schedule-head p span { display: block; font-size: 0.8125rem; font-stretch: 80%; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.schedule .tally { margin-top: 0; font-size: 1rem; }
.schedule .tally tr:first-child > * { border-top: 0; }
.schedule .tally th, .schedule .tally td { padding: 11px 20px; }
.schedule .tally td { font-stretch: 80%; white-space: normal; padding-left: 8px; }

.cells {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: cell;
  background: var(--sheet); border-top: var(--line) solid var(--ink); border-left: 1px solid var(--rule);
}
.cells li { counter-increment: cell; padding: 22px 24px 26px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.cells li::before { content: counter(cell, decimal-leading-zero); display: block; font-stretch: 62%; font-weight: 900; font-size: 1.5rem; line-height: 1; color: var(--muted); }
.cells h3 { margin-top: 12px; font-size: 1.25rem; }
.cells p { margin-top: 8px; color: var(--muted); font-size: 1rem; }

.ledger-static .greenbar-lines tbody tr { cursor: default; }
.ledger-note a { color: var(--ink); text-underline-offset: 3px; }

.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 5vw, 72px); }
.pair > div { border-top: var(--line) solid var(--ink); padding-top: 18px; }
.pair h3 { font-stretch: 68%; font-weight: 800; font-size: 1.75rem; line-height: 1; }
.ticks { display: grid; gap: 12px; margin-top: 20px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.4em; width: 15px; height: 8px;
  border-left: 3px solid var(--tk-partition); border-bottom: 3px solid var(--tk-partition); transform: rotate(-45deg);
}
.pair-note { margin-top: 20px; font-size: 0.9375rem; color: var(--muted); }

.offer-band {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px clamp(20px, 4vw, 48px);
  border: var(--line) solid var(--ink); background: var(--marker); padding: clamp(20px, 3vw, 32px);
}
.offer-figure { font-stretch: 62%; font-weight: 900; font-size: clamp(3rem, 7vw, 5rem); line-height: 0.9; white-space: nowrap; }
.offer-band h2 { font-size: 1.75rem; }
.offer-band div p { margin-top: 8px; max-width: 40em; }
.offer-band .btn-ink:hover { background: var(--sheet); }
.section-head-sub { margin-top: clamp(48px, 7vw, 88px); margin-bottom: 28px; }
.hub-more { margin-top: 24px; color: var(--muted); }
.hub-more a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.steps-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.section-head a, .pricing th a { color: var(--ink); text-underline-offset: 3px; }

/* Index pages for trades and services */
.hub { border-top: var(--line) solid var(--ink); margin-bottom: clamp(40px, 6vw, 72px); }
.hub a {
  display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 2fr); align-items: baseline; gap: 6px 24px;
  padding: 20px 12px 20px 0; border-bottom: 1px solid var(--rule); text-decoration: none; transition: background-color 0.12s, padding 0.12s;
}
.hub a:hover { background: var(--marker); padding-left: 12px; padding-right: 0; }
.hub b { font-stretch: 62%; font-weight: 900; font-size: 2.25rem; line-height: 1; }
.hub-name { font-size: 1.375rem; font-weight: 700; line-height: 1.2; }
.hub b + .hub-name { grid-column: 2; }
.hub a > .hub-name:first-child { grid-column: 1 / 3; }
.hub-text { color: var(--muted); }
.hub a:hover .hub-text { color: var(--ink); }

/* Offer pop-up */
.offer-pop {
  width: min(30rem, calc(100vw - 32px)); padding: 36px 32px 30px; color: var(--ink);
  background: var(--marker); border: var(--line) solid var(--ink); border-radius: 2px;
  box-shadow: 10px 10px 0 var(--ink);
}
.offer-pop::backdrop { background: rgba(19, 26, 34, 0.6); }
.offer-pop[open] { animation: pop-in 0.22s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes nav-drop { from { opacity: 0; transform: translateY(-10px); } }
@keyframes pop-in { from { opacity: 0; transform: translateY(12px) scale(0.97); } }
.offer-pop-tag { display: inline-block; background: var(--ink); color: var(--sheet); font-size: 0.875rem; font-weight: 700; padding: 3px 10px; margin-bottom: 14px; }
.offer-pop .offer-figure { font-size: clamp(4rem, 16vw, 6rem); }
.offer-pop h2 { font-size: 2.25rem; margin-top: 4px; }
.offer-pop p:not([class]) { margin-top: 14px; }
.offer-pop-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 24px; }
.offer-pop .btn-ink:hover { background: var(--sheet); }
.offer-pop-no { background: none; border: 0; padding: 6px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.offer-pop-close {
  position: absolute; top: 6px; right: 8px; width: 40px; height: 40px;
  background: none; border: 0; cursor: pointer; font-size: 1.875rem; line-height: 1;
}

/* Locations, sample projects and blog */
.cells-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.band-gap { margin-top: clamp(40px, 6vw, 72px); }
.hub-title { font-size: 1.75rem; margin-bottom: 14px; }
.hub + .hub-title { margin-top: 0; }
.tag { display: inline-block; background: var(--marker); font-size: 0.875rem; font-weight: 700; padding: 3px 10px; margin-bottom: 18px; }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 32px; margin-top: 28px; border-top: var(--line) solid var(--ink); }
.facts > div { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: 0.8125rem; font-stretch: 80%; color: var(--muted); }
.facts dd { font-weight: 700; margin-top: 2px; }
.plate {
  border-bottom: var(--line) solid var(--ink); padding: 18px;
  background:
    linear-gradient(var(--rule) 1px, transparent 1px) 0 0 / 100% 20px,
    linear-gradient(90deg, var(--rule) 1px, transparent 1px) 0 0 / 20px 100%, var(--sheet);
}
.footprint { display: block; width: 100%; height: auto; max-height: 240px; }
.fp-fill { fill: var(--marker); opacity: 0.75; }
.fp-out { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: miter; }
.fp-in { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.plates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: clamp(40px, 6vw, 72px); }
.plates a { display: block; height: 100%; border: var(--line) solid var(--ink); background: var(--sheet); text-decoration: none; transition: box-shadow 0.15s, transform 0.15s; }
.plates a:hover { box-shadow: 6px 6px 0 var(--marker); transform: translate(-2px, -2px); }
.plates h2 { font-size: 1.625rem; padding: 0 18px; margin-top: 6px; }
.plate-type { font-size: 0.8125rem; font-stretch: 80%; font-weight: 600; color: var(--muted); padding: 14px 18px 0; }
.plate-facts { color: var(--muted); font-size: 0.9375rem; padding: 8px 18px 20px; }
.ticks-links a { font-weight: 600; text-underline-offset: 3px; }
.article .crumbs { margin-bottom: 18px; }
.article .page-head { border-bottom: var(--line) solid var(--ink); margin-bottom: clamp(28px, 4vw, 48px); max-width: 50rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 0.875rem !important; }
.article .prose h2 { border-top: 0; padding-top: 0; margin-top: 40px; font-size: 1.875rem; }
.article .prose ol { list-style: decimal; padding-left: 1.4em; margin-top: 14px; display: grid; gap: 8px; }
.article .prose table { width: 100%; border-collapse: collapse; margin-top: 20px; border: var(--line) solid var(--ink); background: var(--sheet); }
.article .prose th, .article .prose td { padding: 10px 14px; text-align: right; border-top: 1px solid var(--rule); }
.article .prose th:first-child, .article .prose td:first-child { text-align: left; }
.article .prose thead th { font-size: 0.8125rem; font-stretch: 80%; color: var(--muted); border-top: 0; }
.article .prose tbody tr:nth-child(odd) { background: var(--greenbar); }
.hub-posts small { display: block; margin-top: 8px; font-size: 0.8125rem; font-stretch: 80%; }

/* About, contact and login */
.record-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: clamp(40px, 6vw, 72px); }
.record-row > div { border-top: 0; border-left: 1px solid var(--ink); }
.record-row > div:first-child { border-left: 0; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.aside-card { border: var(--line) solid var(--ink); background: var(--sheet); padding: 22px 24px 26px; position: sticky; top: 96px; }
.aside-card h2 { font-size: 1.625rem; }
.aside-card dl { margin-top: 16px; }
.aside-card dl > div { padding: 12px 0; border-top: 1px solid var(--rule); }
.aside-card dt { font-size: 0.8125rem; font-stretch: 80%; color: var(--muted); }
.aside-card dd { font-weight: 700; margin-top: 2px; }
.aside-card p { margin-top: 16px; }
.aside-card a:not(.btn) { text-underline-offset: 3px; }
.request-form-light { border: var(--line) solid var(--ink); }
.field-hint { font-size: 0.875rem; color: var(--muted); }
.contact-grid .request-done { border: var(--line) solid var(--ink); border-top: 10px solid var(--marker); }
.login { max-width: 30rem; margin-inline: auto; }
.login h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); }
.login-lede { margin-top: 14px; color: var(--muted); font-size: 1.125rem; }
.login-form { grid-template-columns: minmax(0, 1fr); margin-top: 28px; }
.login-note { margin-top: 18px; font-size: 0.9375rem; color: var(--muted); }
.login-note a { color: var(--ink); text-underline-offset: 3px; }

/* Text pages: privacy, terms and the not-found page */
.page { padding-block: clamp(40px, 6vw, 88px) var(--section); }
.page-head { max-width: 46rem; padding-bottom: clamp(24px, 3vw, 40px); }
.page .sheet-no {
  margin: 0 0 20px; padding-top: 8px; border-top: var(--line) solid currentColor;
  font-size: 0.8125rem; font-stretch: 80%; font-weight: 600;
}
.page-head p:not(.sheet-no) { margin-top: 18px; color: var(--muted); font-size: 1.125rem; }
.lost .sheet-no { color: var(--ink); }
.prose { max-width: 44rem; }
.prose h2 { font-size: 1.75rem; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--rule); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin-top: 14px; }
.prose ul { list-style: square; padding-left: 1.25em; display: grid; gap: 8px; }
.prose a { text-underline-offset: 3px; }
.prose strong { font-weight: 700; }
.lost { max-width: 40rem; }
.lost h1 { margin-top: 8px; }
.lost p:not(.sheet-no) { margin-top: 20px; font-size: 1.1875rem; color: var(--muted); }
.lost .lost-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn-line { background: none; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line:hover { background: var(--marker); }

/* ---------- Marks: the highlighter, the red pen and the stamp ---------- */

/* Highlighter: a swipe across the phrase that matters in a heading */
.hl {
  background: linear-gradient(var(--hl, var(--marker)), var(--hl, var(--marker))) 0 88% / 100% 0.56em no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding-inline: 0.1em; margin-inline: -0.1em;
}

/* Red pen: a ring drawn round a figure */
.circled { position: relative; display: inline-block; }
.circled svg {
  position: absolute; left: -12px; top: -7px; width: calc(100% + 24px); height: calc(100% + 14px);
  overflow: visible; pointer-events: none;
}
.circled path { fill: none; stroke: var(--pen); stroke-width: 2.2; stroke-linecap: round; }

/* Rubber stamp on the sample estimate */
.ledger-panel { position: relative; }
.stamp {
  position: absolute; left: 20px; bottom: 30px; padding: 9px 16px 8px;
  border: 4px double var(--pen); border-radius: 3px; color: var(--pen);
  font-stretch: 68%; text-transform: uppercase; text-align: center; line-height: 1;
  transform: rotate(-7deg); opacity: 0.82; mix-blend-mode: multiply; pointer-events: none;
}
.stamp b { display: block; font-weight: 900; font-size: 2rem; letter-spacing: 0.08em; }
.stamp span { display: block; margin-top: 5px; font-weight: 700; font-size: 0.75rem; letter-spacing: 0.16em; }

/* ---------- Buttons sit on a hard shadow, like the offer card ---------- */
.btn-ink:not(.btn-small), .btn-marker { --sh: 4px; box-shadow: var(--sh) var(--sh) 0 var(--marker); }
.btn-marker { box-shadow: var(--sh) var(--sh) 0 var(--ink); }
.btn-ink:not(.btn-small):hover, .btn-marker:hover {
  transform: translate(-2px, -2px); box-shadow: calc(var(--sh) + 2px) calc(var(--sh) + 2px) 0 var(--ink);
}
.btn-ink:not(.btn-small):active, .btn-marker:active { transform: translate(var(--sh), var(--sh)); box-shadow: 0 0 0 var(--ink); }
.offer-band .btn-ink:not(.btn-small), .offer-pop .btn-ink:not(.btn-small) { box-shadow: var(--sh) var(--sh) 0 var(--sheet); }
.offer-band .btn-ink:not(.btn-small):hover, .offer-pop .btn-ink:not(.btn-small):hover { box-shadow: calc(var(--sh) + 2px) calc(var(--sh) + 2px) 0 var(--ink); }
.request .btn-ink:not(.btn-small):hover { box-shadow: calc(var(--sh) + 2px) calc(var(--sh) + 2px) 0 var(--marker); }

/* ---------- Scope tiles: each trade carries its material hatch and its own marker ---------- */
.scope-grid {
  --h-diag: repeating-linear-gradient(45deg, var(--ink) 0 1px, transparent 1px 4.5px);
  --h-back: repeating-linear-gradient(-45deg, var(--ink) 0 1px, transparent 1px 4.5px);
  --h-wide: repeating-linear-gradient(60deg, var(--ink) 0 1px, transparent 1px 8px);
  --h-steel: repeating-linear-gradient(45deg, var(--ink) 0 1px, transparent 1px 3px, var(--ink) 3px 4px, transparent 4px 9px);
  --h-level: repeating-linear-gradient(0deg, var(--ink) 0 1px, transparent 1px 4.5px);
  --h-plumb: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 4.5px);
  --h-rings: repeating-radial-gradient(circle at 0 100%, transparent 0 3px, var(--ink) 3px 4px);
  --h-dots: radial-gradient(var(--ink) 0.9px, transparent 1.2px) 0 0 / 5px 5px, radial-gradient(var(--ink) 0.9px, transparent 1.2px) 2.5px 2.5px / 5px 5px;
  --h-sparse: radial-gradient(var(--ink) 0.9px, transparent 1.2px) 0 0 / 8px 8px;
  --h-grid: linear-gradient(var(--ink) 1px, transparent 1px) 0 0 / 100% 7px, linear-gradient(90deg, var(--ink) 1px, transparent 1px) 0 0 / 7px 100%;
  --h-dash: repeating-linear-gradient(90deg, transparent 0 6px, var(--sheet) 6px 9px), repeating-linear-gradient(0deg, var(--ink) 0 1.5px, transparent 1.5px 5.5px);
  --h-dot-line: repeating-linear-gradient(90deg, transparent 0 2px, var(--sheet) 2px 4.5px), repeating-linear-gradient(0deg, var(--ink) 0 1.5px, transparent 1.5px 5.5px);
}
.scope-grid [data-t] { padding-right: 46px; transition: background-color 0.18s; }
.scope-grid [data-t]::after {
  content: ""; position: absolute; top: 13px; right: 13px; width: 24px; height: 24px;
  border: 1px solid var(--ink); background: var(--hatch); background-color: var(--sheet);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.scope-grid [data-t]:hover { background: color-mix(in srgb, var(--c, var(--marker)) 70%, var(--sheet)); }
.scope-grid [data-t]:hover::after { transform: scale(1.35) rotate(-6deg); }
[data-t="concrete"] { --hatch: var(--h-dots); --c: var(--tk-ceiling); }
[data-t="masonry"] { --hatch: var(--h-diag); --c: var(--tk-doors); }
[data-t="structural-steel"] { --hatch: var(--h-steel); --c: var(--tk-lvt); }
[data-t="lumber-framing"] { --hatch: var(--h-rings); --c: var(--tk-carpet); }
[data-t="roofing-waterproofing"] { --hatch: var(--h-level); --c: var(--tk-tile); }
[data-t="openings"] { --hatch: var(--h-wide); --c: var(--tk-lvt); }
[data-t="drywall"] { --hatch: var(--h-sparse); --c: var(--tk-partition); }
[data-t="flooring"] { --hatch: var(--h-grid); --c: var(--tk-carpet); }
[data-t="finishes"] { --hatch: var(--h-back); --c: var(--tk-tile); }
[data-t="fire-suppression"] { --hatch: var(--h-dot-line); --c: var(--tk-doors); }
[data-t="plumbing"] { --hatch: var(--h-plumb); --c: var(--tk-lvt); }
[data-t="mechanical"] { --hatch: var(--h-diag), var(--h-back); --c: var(--tk-ceiling); }
[data-t="electrical"] { --hatch: var(--h-dash); --c: var(--tk-carpet); }
[data-t="sitework"] { --hatch: var(--h-wide), var(--h-rings); --c: var(--tk-partition); }

/* service and project-type tiles: an arrow, and a different marker for each */
.scope-grid :is(a, button):not([data-t]) { padding-right: 38px; }
.scope-grid :is(a, button):not([data-t])::after {
  content: "\2192"; position: absolute; top: 12px; right: 14px; font-weight: 700;
  opacity: 0.25; transition: opacity 0.15s, transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.scope-grid :is(a, button):not([data-t]):hover::after { opacity: 1; transform: translateX(4px); }
.scope-grid li:nth-child(6n+2) > :not([data-t]):hover { background: color-mix(in srgb, var(--tk-lvt) 70%, var(--sheet)); }
.scope-grid li:nth-child(6n+3) > :not([data-t]):hover { background: color-mix(in srgb, var(--tk-tile) 70%, var(--sheet)); }
.scope-grid li:nth-child(6n+4) > :not([data-t]):hover { background: color-mix(in srgb, var(--tk-ceiling) 70%, var(--sheet)); }
.scope-grid li:nth-child(6n+5) > :not([data-t]):hover { background: color-mix(in srgb, var(--tk-partition) 70%, var(--sheet)); }
.scope-grid li:nth-child(6n+6) > :not([data-t]):hover { background: color-mix(in srgb, var(--tk-doors) 70%, var(--sheet)); }

/* ---------- Pricing and questions: the highlighter follows the pointer ---------- */
.pricing tr { background: linear-gradient(var(--marker), var(--marker)) 0 0 / 0% 100% no-repeat; transition: background-size 0.35s cubic-bezier(0.3, 0.7, 0.2, 1); }
.pricing tr:hover { background-size: 100% 100%; }
.pricing th, .pricing td { transition: padding 0.35s cubic-bezier(0.3, 0.7, 0.2, 1); }
.pricing tr:hover th { padding-left: 14px; }
.pricing tr:hover td { padding-right: 14px; }
.pricing tr:hover :is(th span, td) { color: var(--ink); }

.faq summary {
  background: linear-gradient(var(--marker), var(--marker)) 0 0 / 0% 100% no-repeat;
  transition: background-size 0.3s cubic-bezier(0.3, 0.7, 0.2, 1), padding-left 0.3s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.faq summary:hover, .faq details[open] summary { padding-left: 14px; }
.faq summary:hover { background-size: 100% 100%; }
.faq details[open] summary { box-shadow: inset 4px 0 0 var(--pen); }
.faq details[open] p { padding-left: 14px; }
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: hidden; transition: block-size 0.3s cubic-bezier(0.3, 0.7, 0.2, 1), content-visibility 0.3s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}


/* ---------- Plates: a section on coloured stock. Colour says where you are in the set ---------- */
.stock-blue { --plate: var(--plate-blue); }
.stock-yellow { --plate: var(--plate-yellow); --hl: var(--sheet); }
.stock-pink { --plate: var(--plate-pink); }
.stock-green { --plate: var(--plate-green); }
[class*="stock-"] {
  --muted: #26313b; --rule: rgba(16, 22, 29, 0.3);
  background:
    linear-gradient(rgba(16, 22, 29, 0.07) 1px, transparent 1px) 0 0 / 100% 24px,
    linear-gradient(90deg, rgba(16, 22, 29, 0.07) 1px, transparent 1px) 0 0 / 24px 100%,
    var(--plate);
}
/* white sheets lying on a plate go back to the ordinary greys */
[class*="stock-"] :is(.sheet, .titleblock, .ledger, .scope-grid, .record, .request-form, .eyeball-card, .cells, .planner) { --muted: #434e59; --rule: #c2cbd3; }
section[class*="stock-"]:not(.hero) { border-block: var(--line) solid var(--ink); }
.stock-yellow .tag, .stock-yellow .step-time { background: var(--ink); color: var(--sheet); }
.stock-yellow .dropzone:hover, .stock-yellow .dropzone.is-over, .stock-yellow .dropzone.has-files { background: var(--ink); color: var(--sheet); }
.stock-yellow .dropzone:hover .dropzone-text span, .stock-yellow .dropzone.is-over .dropzone-text span, .stock-yellow .dropzone.has-files .dropzone-text span { color: var(--sheet); }
.stock-yellow .btn-ink:not(.btn-small) { box-shadow: var(--sh) var(--sh) 0 var(--sheet); }
.stock-yellow .btn-ink:hover { background: var(--sheet); }
.stock-yellow .pricing tr, .stock-yellow .faq summary { background-image: linear-gradient(var(--sheet), var(--sheet)); }
.stock-green .ticks li::before { border-color: var(--ink); }
.hero + .section { padding-top: calc(var(--section) + 24px); }
.hero-plain { padding-bottom: clamp(40px, 5vw, 72px); }
.hero-plain + .section { padding-top: var(--section); }

/* ---------- Tap takeoff: tap the rooms, the flooring total builds ---------- */
.eyeball { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.eyeball-plan { border: var(--line) solid var(--ink); background: var(--sheet); padding: 6px; }
.eyeball-plan .plan > :not(.tap-rooms) { pointer-events: none; }
.tap-rooms rect { fill: var(--ink); fill-opacity: 0.05; cursor: pointer; transition: fill-opacity 0.15s, fill 0.2s; outline-offset: -4px; }
.tap-rooms rect:hover { fill-opacity: 0.16; }
.tap-rooms rect.is-done { fill-opacity: 0.7; cursor: default; }
.tap-rooms .tap-carpet { fill: var(--tk-carpet); }
.tap-rooms .tap-lvt { fill: var(--tk-lvt); }
.tap-rooms .tap-tile { fill: var(--tk-tile); }
.tap-rooms .tap-none { fill: var(--ink); fill-opacity: 0.1; }
/* untapped rooms breathe until the first tap, so it is plain they can be pressed */
@media (prefers-reduced-motion: no-preference) {
  .tap-rooms:not(:has(.is-done)) rect { animation: tap-hint 1.8s ease-in-out infinite; }
  .tap-rooms:not(:has(.is-done)) rect:nth-child(odd) { animation-delay: 0.9s; }
  .tap-pops text { animation: tap-pop 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
  .tap-rooms rect.is-done { animation: tap-fill 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
}
@keyframes tap-hint { 50% { fill-opacity: 0.14; } }
@keyframes tap-fill { from { fill-opacity: 1; } }
@keyframes tap-pop { from { opacity: 0; transform: translateY(6px); } 25% { opacity: 1; } to { opacity: 0; transform: translateY(-26px); } }
.plan .tap-pops text { font-size: 17px; font-stretch: 68%; font-weight: 900; text-anchor: middle; fill: var(--ink); paint-order: stroke; stroke: var(--sheet); stroke-width: 5px; }
.eyeball-card { border: var(--line) solid var(--ink); background: var(--sheet); box-shadow: 8px 8px 0 var(--ink); }
.eyeball-body { padding: clamp(18px, 2.5vw, 28px); }
.eyeball-label { font-size: 0.8125rem; font-stretch: 80%; font-weight: 600; color: var(--muted); }
.eyeball-total { font-stretch: 62%; font-weight: 900; font-size: clamp(4rem, 8vw, 6.5rem); line-height: 0.95; margin-top: 4px; }
.is-complete .eyeball-total { background: linear-gradient(var(--marker), var(--marker)) 0 88% / 100% 0.4em no-repeat; display: inline-block; }
.eyeball-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px; font-weight: 700; font-size: 0.9375rem; }
.eyeball-last { margin-top: 14px; min-height: 3.1em; color: var(--muted); }
.eyeball-score { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 0.9375rem; border-top: var(--line) solid var(--ink); }
.eyeball-score th, .eyeball-score td { padding: 9px 0 9px 12px; text-align: right; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.eyeball-score th { text-align: left; font-weight: 500; padding-left: 0; }
.eyeball-score td:last-child { font-weight: 700; width: 6.5em; }
.eyeball-score tr { opacity: 0.4; transition: opacity 0.3s; }
.eyeball-score tr.is-on { opacity: 1; }
.eyeball-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 22px; }
.eyeball-actions[hidden] { display: none; }
.link-btn { background: none; border: 0; padding: 6px 0; cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.eyeball-note { margin-top: 16px; font-size: 0.875rem; color: var(--muted); }

/* ---------- Bid-date planner: works back from the bid date ---------- */
.planner { margin-top: clamp(36px, 5vw, 64px); border: var(--line) solid var(--ink); background: var(--sheet); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.planner-ask { padding: 20px 22px 22px; border-right: var(--line) solid var(--ink); background: var(--marker); display: grid; gap: 10px; align-content: start; }
.planner-ask label { font-stretch: 68%; font-weight: 800; font-size: 1.625rem; line-height: 1.05; }
.planner-ask input { width: 100%; padding: 12px 14px; background: #fff; border: var(--line) solid var(--ink); border-radius: 2px; font-weight: 700; }
.planner-out { padding: 20px 22px 22px; display: grid; gap: 12px; align-content: center; }
.planner-line { font-size: 1.125rem; }
.planner-line b { background: linear-gradient(var(--marker), var(--marker)) 0 88% / 100% 0.5em no-repeat; }
.planner-small { font-size: 0.9375rem; color: var(--muted); }
.planner-out .link-btn { justify-self: start; }
.planner-out .link-btn[hidden] { display: none; }

/* ---------- Motion: pieces arrive as their sheet scrolls in (public/fx.js adds .fx and .is-in) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

.fx .hl { background-size: 0% 0.56em; transition: background-size 0.7s cubic-bezier(0.3, 0.7, 0.2, 1) 0.35s; }
.fx .hl.is-in { background-size: 100% 0.56em; }

.fx .circled path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.9s ease-in-out 0.3s; }
.fx .circled.is-in path { stroke-dashoffset: 0; }

.fx .stamp { opacity: 0; transform: rotate(-7deg) scale(1.6); transition: opacity 0.1s 1s, transform 0.3s cubic-bezier(0.3, 1.5, 0.5, 1) 1s; }
.fx .stamp.is-in { opacity: 0.82; transform: rotate(-7deg) scale(1); }

/* the rule over each sheet number is drawn left to right, then the heading follows */
.fx :is(.section-head, .request-copy, .page-head) > .sheet-no { position: relative; border-top-color: transparent; }
.fx :is(.section-head, .request-copy, .page-head) > .sheet-no::before {
  content: ""; position: absolute; inset: calc(-1 * var(--line)) 0 auto; height: var(--line); background: currentColor;
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.fx .is-in > .sheet-no::before { transform: none; }

.fx :is(.section-head, .request-copy, .page-head) > :is(h1, h2, p:not(.sheet-no)) {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.6s 0.12s, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.12s;
}
.fx :is(.section-head, .request-copy, .page-head) > p:not(.sheet-no) { transition-delay: 0.24s; }
.fx .is-in > :is(h1, h2, p:not(.sheet-no)) { opacity: 1; transform: none; }

/* lists come in one item after another; fx.js numbers the items with --i */
.fx :is(.steps, .scope-grid, .record, .cells, .hub, .plates, .request-points, .faq) > *,
.fx .pricing tr, .fx :is(.pair, .offer-band) {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.5s, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(var(--i, 0) * var(--step, 70ms));
}
.fx .pricing tr { transition: opacity 0.5s, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), background-size 0.35s cubic-bezier(0.3, 0.7, 0.2, 1); transition-delay: calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 90ms), 0s; }
.fx .steps { --step: 260ms; }
.fx .scope-grid { --step: 28ms; }
.fx .record { --step: 140ms; }
.fx .faq, .fx .hub { --step: 45ms; }
.fx .is-in > *, .fx .pricing.is-in tr, .fx :is(.pair, .offer-band).is-in { opacity: 1; transform: none; }
/* anything reached with the keyboard before it has scrolled in shows at once */
.fx :is(.steps, .scope-grid, .record, .cells, .hub, .plates, .request-points, .faq) > :focus-within { opacity: 1; transform: none; }

.fx .steps::before { clip-path: inset(0 100% 0 0); transition: clip-path 1.5s cubic-bezier(0.3, 0.6, 0.2, 1); }
.fx .steps.is-in::before { clip-path: inset(0); }

/* the stamp needs the empty corner of the totals; hide it where the ledger is too narrow to leave one */
@media (max-width: 1100px) and (min-width: 901px), (max-width: 640px) { .stamp { display: none; } }

/* Narrow screens */
@media (max-width: 1100px) {
  .scope-grid-five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scope-grid-trades { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .scope-grid-trades li:nth-last-child(-n+2) { grid-column: span 2; }
  .scope-grid-six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  html { scroll-padding-top: 84px; }
  .topbar-phone { display: none; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-wide { grid-column: 1 / -1; order: 3; }
  .footer-nav ul { gap: 0 24px; }
  .footer-nav a, .footer-legal a, .titleblock-footer dd a:not(.wordmark) { display: inline-flex; align-items: center; min-height: 44px; }
  .pair, .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .aside-card { position: static; }
  .offer-band { grid-template-columns: minmax(0, 1fr); }
  .steps-three { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hub a { grid-template-columns: 3.5rem minmax(0, 1fr); }
  .hub-text { grid-column: 2; }
  .hub a > .hub-name:first-child { grid-column: 1 / -1; }
  .hub a > .hub-name:first-child + .hub-text { grid-column: 1 / -1; }
  /* the nav becomes a sheet that drops from the header when Menu is pressed */
  .header-row { gap: 10px; }
  .menu-btn { display: inline-flex; }
  .site-header .btn-small { min-height: 44px; display: inline-flex; align-items: center; }
  .site-nav {
    display: none; position: absolute; inset: 100% 0 auto; flex-direction: column; gap: 0;
    padding: 4px var(--gutter) 24px; max-height: calc(100dvh - 64px); overflow-y: auto;
    background: var(--sheet); border-block: var(--line) solid var(--ink); box-shadow: 0 24px 40px rgba(16, 22, 29, 0.25);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px 0; border-bottom: 1px solid var(--rule); font-stretch: 68%; font-weight: 800; font-size: 1.875rem; line-height: 1.05; }
  .site-nav a[aria-current="page"] { box-shadow: inset 6px 0 0 var(--marker); padding-left: 16px; }
  .site-nav .nav-extra { display: block; font-stretch: 100%; font-weight: 600; font-size: 1.0625rem; padding: 15px 0; }
  @media (prefers-reduced-motion: no-preference) { .site-nav.is-open { animation: nav-drop 0.22s cubic-bezier(0.2, 0.8, 0.2, 1); } }
  .hero-grid, .team-grid, .faq-grid, .request-grid, .eyeball, .planner { grid-template-columns: minmax(0, 1fr); }
  .planner-ask { border-right: 0; border-bottom: var(--line) solid var(--ink); }
  .hero { padding-bottom: clamp(28px, 5vw, 40px); }
  .hero > .wrap > .titleblock { transform: none; }
  .hero + .section { padding-top: var(--section); }
  .eyeball-card { box-shadow: 5px 5px 0 var(--ink); }
  .titleblock { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .titleblock > div { border-left: 0; border-top: 1px solid var(--ink); }
  .titleblock > div:first-child { grid-column: 1 / -1; border-top: 0; }
  .titleblock > div:nth-child(odd):not(:first-child) { border-left: 1px solid var(--ink); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; }

  .instrument { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .instrument-model { top: 121px; z-index: 2; border-bottom: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .model { aspect-ratio: 572 / 470; border-right: 1px solid var(--ink); }
  .readout { border-top: 0; min-height: 0; padding: 12px 14px; align-self: center; }
  .readout-qty { font-size: 1.25rem; }
  .readout-how { font-size: 0.8125rem; line-height: 1.4; }
}
@media (max-width: 560px) {
  .topbar-offer { font-size: 0.8125rem; }
  .cells, .record-row, .plates, .facts { grid-template-columns: minmax(0, 1fr); }
  .record-row > div { border-left: 0; border-top: 1px solid var(--ink); }
  .record-row > div:first-child { border-top: 0; }
  .scope-grid-five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule-head b { font-size: 3.5rem; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .request-form { grid-template-columns: minmax(0, 1fr); }
  .dropzone { padding: 18px; gap: 14px; }
  .pricing th { font-size: 1.125rem; }
  .pricing td strong { font-size: 1.875rem; display: block; margin-left: 0; }
  .scope-grid-trades, .scope-grid-six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scope-grid-trades li:nth-last-child(-n+2) { grid-column: auto; }
  .greenbar { font-size: 0.875rem; }
  .greenbar th, .greenbar td { padding: 10px 8px; }
  .greenbar thead th, .greenbar thead th.num { white-space: normal; vertical-align: bottom; }
  .greenbar .col-csi, .greenbar .col-rate { display: none; }
  .btn-ink:not(.btn-small), .btn-marker { --sh: 3px; }
  .ledger-tabs button { padding: 12px 14px; flex: 1; }
  .ledger-tabs button:last-child { border-right: 0; }
  .record dd { font-size: 1.625rem; }
  .titleblock-footer { grid-template-columns: minmax(0, 1fr); }
  .titleblock-footer > div, .titleblock-footer > div:nth-child(odd):not(:first-child) { border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .offer-pop[open] { animation: none; }
}
