/* Tarline Roofing, sample roofer template. Work order split: the quote form is a tar-black console pinned on the left
   for the whole page, the right side scrolls the work. Dela Gothic One over Familjen Grotesk, cool concrete and tar, one hi-vis
   yellow for actions and for what changed on the roof. Square corners, thick rules, hard cuts. */

@font-face { font-family: "Dela Gothic One"; src: url("fonts/dela-gothic-one.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: block; }
@font-face { font-family: "Familjen Grotesk"; src: url("fonts/familjen-grotesk.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: block; }

:root {
  --tar: #121210;
  --tar-2: #1D1D1A;
  --concrete: #D3D6D4;
  --concrete-2: #C2C6C4;
  --ink: #121210;
  --muted: #474C4A;
  --muted-d: #A3A8A6;
  --line-d: rgba(211, 214, 212, 0.28);
  --yellow: #FFD60A;
  --display: "Dela Gothic One", "Arial Black", Impact, sans-serif;
  --body: "Familjen Grotesk", "Franklin Gothic Medium", sans-serif;
  --fs-mega: min(calc((100vw - 32px) / 6.6), calc(var(--app-h, 800px) * 0.2));
  --fs-h2: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem);
  --fs-h3: 1.375rem;
  --fs-lead: 1.1875rem;
  --fs-body: 1.0625rem;
  --fs-ui: 0.9375rem;
  --gut: 16px;
  --sec: 72px;
  --btn-h: 52px;
  --rule: 4px;
  --snap: cubic-bezier(0.2, 0.9, 0.1, 1);
}
@media (min-width: 600px) { :root { --gut: 28px; } }
@media (min-width: 1024px) {
  :root { --gut: 44px; --sec: 104px; --fs-mega: calc((58vw - 88px) / 6.6); }
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--tar); color: var(--ink); overscroll-behavior-y: none; -webkit-text-size-adjust: 100%; scrollbar-color: var(--muted-d) var(--tar); }
html.locked { overflow: hidden; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--concrete); font-family: var(--body); font-size: var(--fs-body); line-height: 1.55; overscroll-behavior-y: none; caret-color: var(--yellow); -webkit-font-smoothing: antialiased; overflow-x: clip; }
* { -webkit-tap-highlight-color: transparent; }
::selection { background: transparent; color: #B88A00; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.22em; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, ul, ol, dl, dd, dt, figure, blockquote { margin: 0; }
h1, h2, h3, .pull-q, .war-k { text-wrap: balance; }
p, dd, li, blockquote { text-wrap: pretty; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
address { font-style: normal; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
input:focus-visible, textarea:focus-visible { outline: none; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--yellow); color: var(--ink); padding: 12px 16px; font-weight: 600; text-decoration: none; }
.skip:focus-visible { top: 12px; }
.i { width: 20px; height: 20px; flex: none; }

.pad { padding-left: var(--gut); padding-right: var(--gut); }
.h2 { font-family: var(--display); font-weight: 400; font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.01em; text-transform: uppercase; }
.h3 { font-family: var(--display); font-weight: 400; font-size: var(--fs-h3); line-height: 1.15; text-transform: uppercase; }
.lead { font-size: var(--fs-lead); line-height: 1.45; }
.tag { display: inline-block; font-size: var(--fs-ui); font-weight: 600; line-height: 1.2; padding: 3px 7px; background: var(--ink); color: var(--concrete); white-space: nowrap; vertical-align: 0.12em; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--btn-h); padding: 0 22px; font-size: var(--fs-ui); font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none; white-space: nowrap; border-radius: 0; transition: background-color 0.12s, color 0.12s, transform 0.12s; }
.btn--primary { background: var(--yellow); color: var(--ink); }
.btn--primary:hover { background: var(--concrete); }
.btn--primary:active { transform: translateY(2px); }
.btn--line { border: 2px solid currentColor; }
.btn--line:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; color: inherit; }
.icon-btn svg { width: 24px; height: 24px; }

/* header: absolute, unpainted */
.hd { position: absolute; z-index: 10; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 64px; padding: 8px 8px 8px var(--gut); color: #FFFFFF; }
.hd-l, .hd-r { display: flex; align-items: center; gap: 10px; }
.mark { font-family: var(--display); font-size: var(--fs-ui); letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
.tag--hd { background: var(--yellow); color: var(--ink); }
.nav, .hd-phone { display: none; }
.hd-r { gap: 0; }
@media (max-width: 459px) { .mark-x { display: none; } }
@media (max-width: 359px) { .hd-call { display: none; } }

/* split */
.split { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "desk" "feed"; }
.hero { grid-area: hero; }
.desk { grid-area: desk; }
.feed { grid-area: feed; min-width: 0; }

/* hero */
.hero { position: relative; overflow: hidden; background: var(--tar); color: #FFFFFF; min-height: max(calc(var(--app-h, 800px) * 0.8), 440px); display: flex; flex-direction: column; justify-content: flex-end; }
.hero-ph { position: absolute; inset: 0; }
.hero-ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero-ph::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 140px; z-index: 1; background: linear-gradient(rgba(18, 18, 16, 0.7), rgba(18, 18, 16, 0)); pointer-events: none; }
.hero-ph::after { content: ""; position: absolute; inset: auto 0 0 0; height: 70%; z-index: 1; background: linear-gradient(rgba(18, 18, 16, 0), rgba(18, 18, 16, 0.88)); pointer-events: none; }
.hero-copy { position: relative; z-index: 2; padding: 0 var(--gut) 28px; }
.mega { font-family: var(--display); font-weight: 400; font-size: var(--fs-mega); line-height: 0.9; letter-spacing: -0.02em; }
.mega-in { display: block; overflow: hidden; padding-top: 0.06em; white-space: nowrap; }
.ch { display: inline-block; will-change: transform; }
.trade { margin-top: 14px; font-size: var(--fs-lead); font-weight: 600; line-height: 1.35; max-width: 30ch; }
.status { margin-top: 10px; font-size: var(--fs-ui); color: var(--yellow); font-weight: 600; }
/* FIRST SCREEN (2026-10-21): the shading lives inside the photo's frame (measured as photo); phones get the quote button on the photo */
.hero-cta { margin-top: 18px; }
.mega + .trade { margin-top: max(14px, 2.2vw); }
@media (min-width: 768px) { .mega + .trade { margin-top: max(32px, 2.2vw); } }
@media (min-width: 1024px) { .hero-cta { display: none; } }

/* desk: the quote console */
.desk { background: var(--tar); color: var(--concrete); }
.desk-in { padding: 36px var(--gut) 32px; display: flex; flex-direction: column; gap: 22px; }
.q-h { font-family: var(--display); font-weight: 400; font-size: var(--fs-h2); line-height: 1.05; text-transform: uppercase; color: #FFFFFF; }
.q-sub { margin-top: 8px; color: var(--muted-d); max-width: 40ch; }
.q { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.f { display: grid; gap: 8px; min-width: 0; }
.f label:not(.chip):not(.btn), .f legend, .lab { font-size: var(--fs-ui); font-weight: 600; color: var(--muted-d); text-transform: uppercase; letter-spacing: 0.04em; }
.f legend { margin-bottom: 8px; }
.f input[type="text"], .f input[type="tel"] { width: 100%; min-height: var(--btn-h); padding: 0 14px; background: var(--tar-2); border: 2px solid var(--line-d); border-radius: 0; color: #FFFFFF; font-size: var(--fs-body); transition: border-color 0.12s; }
.f input::placeholder { color: #93978F; }
.f input[type="text"]:focus, .f input[type="tel"]:focus { border-color: var(--yellow); }
.chips { display: grid; gap: 6px; }
.chips.c6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chips.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chip { position: relative; display: block; min-width: 0; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.chip span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 6px; border: 2px solid var(--line-d); font-size: var(--fs-ui); font-weight: 600; white-space: nowrap; color: var(--concrete); transition: background-color 0.1s, color 0.1s, border-color 0.1s; }
.chip:hover span { border-color: var(--concrete); }
.chip input:checked + span { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.ph-row { display: flex; align-items: center; gap: 10px; min-height: var(--btn-h); }
.ph-btn { color: var(--concrete); flex: none; }
.ph-btn:hover { color: var(--ink); }
#q-photos:focus-visible + .thumbs, .ph-row:focus-within .ph-btn { outline: none; }
.thumbs { display: flex; gap: 6px; min-width: 0; overflow: hidden; }
.thumbs img, .thumbs span { width: 44px; height: 44px; object-fit: cover; flex: none; }
.thumbs span { display: flex; align-items: center; justify-content: center; background: var(--tar-2); font-size: var(--fs-ui); font-weight: 600; }
.q-foot { display: grid; }
.q-go { width: 100%; }
.q-note { font-size: var(--fs-ui); color: var(--muted-d); }
.q-note.is-err { color: var(--yellow); }
.q-done { display: grid; gap: 16px; }
.q-done-h { font-family: var(--display); font-weight: 400; font-size: var(--fs-h3); text-transform: uppercase; color: var(--yellow); }
.q-sum { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; }
.q-sum dt { font-size: var(--fs-ui); color: var(--muted-d); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; padding-top: 2px; }
.q-sum dd { color: #FFFFFF; overflow-wrap: anywhere; }
.q-done-act { display: flex; gap: 10px; flex-wrap: wrap; }
.q-done-act .btn--line { color: var(--concrete); }
.leak-link { display: grid; gap: 2px; padding: 14px 16px; border: 2px solid var(--yellow); color: var(--yellow); text-decoration: none; transition: background-color 0.12s, color 0.12s; }
.leak-link:hover { background: var(--yellow); color: var(--ink); }
.leak-k { font-size: var(--fs-ui); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.leak-n { font-family: var(--display); font-size: var(--fs-h3); line-height: 1.1; white-space: nowrap; }
.desk.is-ping .desk-in { animation: ping 0.5s steps(2, jump-none) 1; }
@keyframes ping { 0% { opacity: 1; } 50% { opacity: 0.55; } 100% { opacity: 1; } }

/* sections */
.sec-head { display: grid; gap: 12px; margin-bottom: 32px; justify-items: start; }
.sec-head .lead { color: var(--muted); }
.feed > section { border-top: var(--rule) solid var(--ink); }
.feed > .leak { border-top: 0; }

/* leak line */
.leak { background: var(--yellow); color: var(--ink); }
.leak-ph img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.leak-body { padding-top: 36px; padding-bottom: var(--sec); display: grid; gap: 20px; }
.leak-big { font-family: var(--display); font-size: min(var(--fs-h2), calc((100vw - 2 * var(--gut)) / 11.5)); line-height: 1; text-decoration: none; white-space: nowrap; justify-self: start; display: inline-flex; align-items: center; min-height: 56px; transition: background-color 0.12s, color 0.12s; }
.leak-big:hover { background: var(--ink); color: var(--yellow); }
.leak-steps { display: grid; gap: 0; border-top: 3px solid var(--ink); }
.leak-steps li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 0; border-bottom: 3px solid var(--ink); align-items: baseline; }
.leak-steps .k { font-family: var(--display); font-size: var(--fs-ui); text-transform: uppercase; white-space: nowrap; }
.leak-note { font-size: var(--fs-body); max-width: 52ch; }

/* roofs board */
.roofs { padding-top: var(--sec); padding-bottom: var(--sec); }
.board { border-top: 3px solid var(--ink); }
.row { border-bottom: 3px solid var(--ink); }
.row-btn { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n go" "d d" "t p"; gap: 6px 16px; width: 100%; padding: 18px 0; text-align: left; align-items: baseline; transition: background-color 0.1s, padding 0s; }
.row-n { grid-area: n; font-weight: 700; font-size: var(--fs-body); white-space: nowrap; }
.row-p { grid-area: p; font-family: var(--display); font-size: var(--fs-ui); white-space: nowrap; text-align: right; }
.row-d { grid-area: d; color: var(--muted); }
.row-t { grid-area: t; font-size: var(--fs-ui); font-weight: 600; white-space: nowrap; }
.row-go { grid-area: go; justify-self: end; display: inline-flex; width: 44px; height: 32px; align-items: center; justify-content: flex-end; }
.row-btn:hover { background: var(--yellow); }
.row-btn:hover .row-d { color: var(--ink); }
.row-btn.is-hit { background: var(--yellow); }
.row-btn.is-picked { background: var(--yellow); }
.row-btn.is-picked .row-d { color: var(--ink); }
.row-btn.is-picked .row-n::after { content: "In your quote"; display: inline-block; margin-left: 10px; padding: 2px 7px; background: var(--ink); color: var(--yellow); font-size: var(--fs-ui); font-weight: 700; vertical-align: 0.15em; }
.desk.is-filled { outline: 4px solid var(--yellow); outline-offset: -4px; }
.q-filled { padding: 10px 12px; background: var(--yellow); color: var(--ink); font-weight: 600; font-size: var(--fs-ui); line-height: 1.35; }
.row-rv { margin: 0 0 18px; padding: 14px 16px; background: var(--concrete-2); display: grid; gap: 8px; }
.row-rv p { font-size: var(--fs-body); }
.row-rv figcaption { font-size: var(--fs-ui); color: var(--muted); }

/* layers */
.layers { background: var(--tar); color: var(--concrete); padding-bottom: var(--sec); }
.layers-head { padding-top: var(--sec); display: grid; gap: 12px; margin-bottom: 8px; justify-items: start; }
.layers-head .h2 { color: #FFFFFF; }
.layers-head .lead { color: var(--muted-d); }
.layers-head .tag { background: var(--yellow); color: var(--ink); }
.layers-grid { display: grid; grid-template-columns: minmax(0, 1fr); padding: 0 var(--gut); }
.layers-fig { position: sticky; top: 0; z-index: 2; background: var(--tar); padding: 16px 0 12px; }
.sect { display: block; width: 100%; height: auto; max-height: calc(var(--app-h, 800px) * 0.42); }
.ly .ly-f { fill: #3A3934; stroke: #A9A498; stroke-width: 2; transition: fill 0.15s; }
.ly .ly-s { fill: none; stroke: #A9A498; stroke-width: 2; }
.ly[data-ly="1"] .ly-f { fill: #4A4842; }
.ly[data-ly="2"] .ly-f { fill: #6A675E; }
.ly[data-ly="3"] .ly-f { fill: #2A2A26; }
.ly[data-ly="4"] .ly-f { fill: #CFCAbD; }
.ly[data-ly="5"] .ly-f { fill: #8E8B82; }
.ly.is-now .ly-f { fill: var(--yellow); stroke: var(--yellow); }
.js:not(.calm) .ly { opacity: 0; transform: translateY(-36px); }
.js:not(.calm) .ly.is-on { opacity: 1; transform: none; transition: transform 0.24s var(--snap), opacity 0.12s linear; }
.steps { display: grid; }
.step { min-height: calc(var(--app-h, 800px) * 0.26); padding: 22px 0; border-top: 3px solid var(--line-d); display: grid; gap: 8px; align-content: start; transition: color 0.12s; color: var(--muted-d); }
.step .h3 { color: var(--concrete); transition: color 0.12s; }
.step.is-now .h3 { color: var(--yellow); }
.step.is-now { color: var(--concrete); }
.calm .step { color: var(--concrete); }

/* jobs */
.jobs { padding-top: var(--sec); padding-bottom: var(--sec); }
.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; padding: 3px; background: var(--ink); margin-bottom: 20px; }
.tab { min-height: 52px; background: var(--concrete); font-size: var(--fs-ui); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap; transition: background-color 0.1s, color 0.1s; }
.tab[aria-selected="true"] { background: var(--yellow); color: var(--ink); }
.tab:hover:not([aria-selected="true"]) { background: #FFFFFF; }
.job { display: grid; gap: 24px; }
.cmp-wrap { display: grid; gap: 10px; }
.cmp-k { display: flex; justify-content: space-between; font-size: var(--fs-ui); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.cmp { position: relative; background: var(--tar); color: var(--concrete); aspect-ratio: 1000 / 440; overflow: hidden; touch-action: pan-y; }
.cmp-svg, .cmp-svg svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cmp-after { clip-path: inset(0 0 0 50%); background: var(--tar); }
.cmp-line { position: absolute; top: 0; bottom: 0; left: 0; width: 4px; margin-left: -2px; background: var(--yellow); pointer-events: none; will-change: transform; }
.cmp-grip { position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; background: var(--yellow); }
.cmp-grip::before, .cmp-grip::after { content: ""; position: absolute; top: 9px; border: 6px solid transparent; }
.cmp-grip::before { left: 1px; border-right-color: var(--ink); }
.cmp-grip::after { right: 1px; border-left-color: var(--ink); }
.cmp-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.cmp-range::-webkit-slider-thumb { -webkit-appearance: none; width: 48px; height: 400px; }
.cmp-range::-moz-range-thumb { width: 48px; height: 400px; border: 0; }
.cmp:has(.cmp-range:focus-visible) { outline: 3px solid var(--yellow); outline-offset: 3px; }
.legend { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 16px; font-size: var(--fs-ui); }
.legend span { white-space: nowrap; }
.legend li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.legend svg { width: 26px; height: 16px; flex: none; }
.job-meta { display: grid; gap: 18px; align-content: start; }
.job-ph img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 18px; border-top: 3px solid var(--ink); padding-top: 14px; }
.facts dt { font-size: var(--fs-ui); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding-top: 10px; white-space: nowrap; }
.facts dt:first-child { padding-top: 0; }
.facts dd.big { font-family: var(--display); font-size: var(--fs-h3); line-height: 1.1; }
.job-rv { display: grid; gap: 8px; padding: 14px 16px; background: var(--concrete-2); }
.job-rv figcaption { font-size: var(--fs-ui); color: var(--muted); }
.job-meta .btn { justify-self: start; }
.job.is-swap { animation: swap 0.22s var(--snap) 1; }
@keyframes swap { from { opacity: 0.2; transform: translateX(14px); } to { opacity: 1; transform: none; } }

/* pull quote */
.pull { background: var(--ink); color: #FFFFFF; padding-top: var(--sec); padding-bottom: var(--sec); }
.pull-in { display: grid; gap: 20px; }
.pull-q { font-family: var(--display); font-size: var(--fs-h2); line-height: 1.12; text-transform: uppercase; max-width: 18ch; }
.pull-q::before { content: "\201C"; color: var(--yellow); }
.pull-q::after { content: "\201D"; color: var(--yellow); }
.pull figcaption { font-size: var(--fs-ui); color: var(--muted-d); }
.pull .tag { background: var(--yellow); color: var(--ink); }

/* warranty */
.warranty { padding-top: var(--sec); padding-bottom: var(--sec); }
.war-grid { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 3px solid var(--ink); border-left: 3px solid var(--ink); }
.war { padding: 22px 18px; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); display: grid; gap: 8px; align-content: start; }
.war-k { font-family: var(--display); font-size: var(--fs-h3); text-transform: uppercase; line-height: 1.1; }
.war-foot { margin-top: 20px; color: var(--muted); }

/* latest reviews */
.latest { padding-top: var(--sec); padding-bottom: var(--sec); background: var(--concrete-2); }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut) 6px; scroll-padding: 0 var(--gut); scrollbar-width: none; overscroll-behavior-x: contain; }
.strip::-webkit-scrollbar { display: none; }
.rv { scroll-snap-align: start; background: var(--concrete); border: 3px solid var(--ink); padding: 20px 18px; display: grid; gap: 16px; align-content: space-between; }
.rv-who { font-size: var(--fs-ui); color: var(--muted); }
.rv-foot { margin-top: 18px; font-size: var(--fs-ui); color: var(--muted); max-width: 60ch; }

/* area */
.area { background: var(--concrete); }
.area-ph img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.area-body { padding-top: 36px; padding-bottom: var(--sec); display: grid; gap: 18px; }
.area-body .lead { color: var(--muted); }
.hours { width: 100%; border-top: 3px solid var(--ink); }
.hours th, .hours td { text-align: left; padding: 12px 0; border-bottom: 3px solid var(--ink); font-weight: 400; }
.hours th { font-weight: 600; padding-right: 16px; white-space: nowrap; }
.hours td { text-align: right; white-space: nowrap; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; }
.hours tr.is-leak td, .hours tr.is-leak th { background: var(--yellow); }
.hours tr.is-leak th { padding-left: 10px; }
.hours tr.is-leak td { padding-right: 10px; }
.area-status { font-weight: 600; }
.area-act { display: flex; gap: 10px; flex-wrap: wrap; }
.area-rate { font-size: var(--fs-ui); color: var(--muted); }

/* footer */
.foot { background: var(--tar); color: var(--concrete); padding-top: 48px; padding-bottom: calc(96px + env(safe-area-inset-bottom)); display: grid; gap: 14px; }
.foot-mark { font-family: var(--display); font-size: var(--fs-h3); text-transform: uppercase; color: #FFFFFF; }
.foot-line { color: var(--muted-d); max-width: 56ch; }
.foot-links { display: grid; grid-template-columns: repeat(2, max-content); gap: 0 28px; }
.foot-links a, .foot-top { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--fs-ui); font-weight: 600; text-decoration: none; color: var(--concrete); }
.foot-links a:hover, .foot-top:hover { color: var(--yellow); }

/* dock (phones) */
.dock { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr 48px; gap: 8px; align-items: center; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--tar); color: var(--concrete); visibility: hidden; transform: translateY(110%); transition: transform 0.22s var(--snap), visibility 0s linear 0.22s; }
.dock.is-on:not(.is-end) { visibility: visible; transform: none; transition: transform 0.22s var(--snap), visibility 0s; }
.dock .btn { min-height: 48px; padding: 0 12px; }
.dock-call { color: var(--yellow); border-color: var(--yellow); }
@media (max-width: 389px) { .dock .btn { padding: 0 8px; letter-spacing: 0; } .dock-call .i { display: none; } }

/* menu (phones) */
.menu { position: fixed; inset: 0; z-index: 40; background: var(--tar); color: var(--concrete); display: flex; flex-direction: column; padding: 8px 8px 24px; overflow-y: auto; }
.menu[hidden] { display: none; }
.menu-top { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding-left: calc(var(--gut) - 8px); }
.menu-nav { display: grid; padding: 16px calc(var(--gut) - 8px); }
.menu-nav a { font-family: var(--display); font-size: var(--fs-h3); text-transform: uppercase; text-decoration: none; min-height: 56px; display: flex; align-items: center; border-bottom: 2px solid var(--line-d); }
.menu-nav a:hover { color: var(--yellow); }
.menu-call { margin: 8px calc(var(--gut) - 8px) 0; }

/* tablet up */
@media (min-width: 600px) {
  .chips.c6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .q { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .f-roof, .f-prob { grid-column: 1 / -1; }
  .q-note { align-self: center; }
  .legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: auto minmax(0, 1fr); gap: 8px 18px; }
  .facts dt, .facts dt:first-child { padding-top: 2px; }
  .foot-links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
  .war-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip { grid-auto-columns: 46%; }
  .row-btn { grid-template-columns: minmax(0, 1fr) 110px 120px 44px; grid-template-areas: "n t p go" "d t p go"; }
  .row-t, .row-p { align-self: center; }
  .row-p { text-align: right; }
  .row-go { align-self: center; }
}
@media (min-width: 600px) and (max-width: 1023px) {
  .job-meta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .job-ph { grid-row: span 3; }
}

/* the split */
@media (min-width: 1024px) {
  .split { grid-template-columns: 42vw minmax(0, 1fr); grid-template-rows: auto auto; grid-template-areas: "desk hero" "desk feed"; }
  .desk { grid-row: 1 / span 2; align-self: start; position: sticky; top: 0; height: var(--app-h, 100vh); overflow-y: auto; scrollbar-width: none; }
  .desk::-webkit-scrollbar { display: none; }
  .desk-in { min-height: 100%; padding: 92px var(--gut) 28px; gap: 18px; justify-content: space-between; }
  .q { gap: 14px; }
  .chips.c6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hd { padding: 12px 24px 12px var(--gut); display: grid; grid-template-columns: calc(42vw - var(--gut)) minmax(0, 1fr); }
  .hd-l { color: var(--concrete); }
  .hd-r { justify-content: space-between; padding-left: var(--gut); gap: 20px; }
  .nav { display: flex; gap: 22px; }
  .nav a, .hd-phone { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--fs-ui); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none; white-space: nowrap; background: linear-gradient(var(--yellow), var(--yellow)) 0 calc(100% - 8px) / 0 3px no-repeat; transition: background-size 0.16s var(--snap); }
  .nav a:hover, .hd-phone:hover { background-size: 100% 3px; }
  .hd-phone { color: var(--yellow); }
  .hd-call, .hd-menu { display: none; }
  .hero { min-height: var(--app-h, 100vh); }
  .hero-copy { padding: 0 var(--gut) 40px; }
  .trade { max-width: 34ch; }
  .dock { display: none; }
  .foot { padding-bottom: 48px; }
  .leak-ph img { aspect-ratio: 16 / 6; }
  .layers-fig { padding: 28px 0 20px; }
  .sect { max-height: calc(var(--app-h, 800px) * 0.5); width: 100%; }
  .step { min-height: calc(var(--app-h, 800px) * 0.24); padding-top: 24px; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; }
  .steps { padding-bottom: calc(var(--app-h, 800px) * 0.12); }
  .job { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; gap: 28px; }
  .strip { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; }
  .area-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 36px; align-items: start; }
  .area-body > .h2, .area-body > .lead { grid-column: 1 / -1; }
  .hours { grid-row: span 4; }
}
@media (min-width: 1024px) and (max-height: 860px) {
  .q-sub { display: none; }
}
@media (min-width: 1280px) {
  .chips.c6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* intro start states (site.js plays them) */
.intro .ch { transform: translateY(105%); }
.intro [data-hero-line] { opacity: 0; transform: translateY(14px); }
.intro .hero-ph img { transform: scale(1.14); }

/* reduced motion */
.calm *, .calm *::before, .calm *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }

/* spacing gate (2026-10-20): labels wrap inside their own box instead of running into the next one */
.chip span { white-space: normal; text-align: center; line-height: 1.15; }
.legend span { white-space: normal; }
@media (min-width: 768px) { .trade { margin-top: 20px; } }
