/* ==========================================================================
   Just Solutions Contracting — "The name as a monument"
   Brand navy, red and white. Big Shoulders over Public Sans. Square corners.
   ========================================================================== */

@font-face { font-family: "Big Shoulders"; src: url("../fonts/big-shoulders-latin-wght.woff2") format("woff2"); font-weight: 700 900; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-latin-wght.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --paper: #ffffff;
  --surface: #eef1f6;
  --surface-2: #e2e7ef;
  --ink: #13294b;
  --soft: #4b5d7a;
  --navy: #13294b;
  --navy-deep: #0b1b33;
  --on-navy: #ffffff;
  --on-navy-soft: #c6d0e2;
  --red: #a11c2b;
  --red-dark: #861523;
  --logo-red: #a11c2b;

  --display: "Big Shoulders", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --sans: "Public Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --step-small: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --step-head: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem);
  --step-display: clamp(4.5rem, 12vw, 13rem);

  --margin: max(clamp(16px, 2.2vw, 32px), env(safe-area-inset-left), env(safe-area-inset-right));
  --gap: clamp(16px, 2vw, 28px);
  --section: clamp(96px, 14vh, 200px);
  --hdr-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.locked, html.nav-open { overflow: hidden; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--step-body)/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a, button, input, select, textarea, label, summary { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }
b, strong { font-weight: 700; }
.wrap { width: 100%; padding-inline: var(--margin); }
.section { padding-block: var(--section); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* taste-skill-ignore: screen-reader only */
.skip-link { position: fixed; left: var(--margin); top: -100px; z-index: 1000; padding: 12px 18px; background: var(--red); color: #fff; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
.sec-title { font: 700 var(--step-head)/1.1 var(--sans); letter-spacing: -0.02em; text-wrap: balance; }
.flag { display: inline-block; width: 1.6em; vertical-align: -0.12em; margin-right: 0.45em; }
.flag svg { width: 100%; height: auto; aspect-ratio: 38 / 20; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55em; min-height: 48px; padding: 0 1.4rem; border: 0; border-radius: 0; font: 700 var(--step-body)/1.1 var(--sans); text-decoration: none; white-space: nowrap; transition: transform 0.18s var(--ease), background-color 0.2s, color 0.2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px currentColor; } /* taste-skill-ignore: a solid 2px button edge */
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-sm { min-height: 44px; padding: 0 1rem; font-size: var(--step-small); }
.btn-lg { min-height: 56px; padding: 0 1.8rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.text-link { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.text-link:hover { color: var(--red); }
.icon-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; background: transparent; color: var(--ink); }
.icon-btn svg { width: 26px; height: 26px; }

/* ---------- Header: a plain bar ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--hdr-h); background: var(--paper); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 100%; padding-inline: var(--margin); }
.brand { flex: none; display: block; }
.brand-logo { width: clamp(170px, 16vw, 230px); height: auto; color: var(--navy); }
.nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav ul { display: flex; gap: 4px; list-style: none; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.55rem; font-size: var(--step-small); font-weight: 600; text-decoration: none; text-underline-offset: 0.35em; }
.nav-link:hover, .nav-link[aria-current="true"] { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--red); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-phone { font-weight: 700; font-size: var(--step-small); text-decoration: none; white-space: nowrap; }
.drawer-extra, .menu-toggle { display: none; }
.progress { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--red); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
@media (max-width: 1159px) {
  .menu-toggle { display: inline-grid; margin-left: auto; }
  .nav { position: fixed; inset: var(--nav-top, var(--hdr-h)) 0 0 0; z-index: 99; flex-direction: column; align-items: stretch; gap: 20px; margin: 0; padding: 24px var(--margin) max(24px, env(safe-area-inset-bottom)); background: var(--paper); overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity 0.2s, visibility 0s linear 0.2s; }
  .nav[data-open="true"] { visibility: visible; opacity: 1; transition-delay: 0s; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav-link { min-height: 0; padding: 4px 0; font: 800 clamp(2.4rem, 11vw, 3.5rem)/1.05 var(--display); text-transform: uppercase; }
  .nav-actions { flex-direction: column; align-items: stretch; }
  .nav-actions .btn { width: 100%; }
  .nav-phone { font-size: var(--step-lead); }
  .drawer-extra { display: grid; gap: 12px; margin-top: auto; font-size: var(--step-small); }
}

/* ---------- Reveal: the top fades in, the lower sections only rise ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease) var(--d, 0s), transform 0.8s var(--ease) var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .rise { transform: translateY(28px); transition: transform 0.9s var(--ease) var(--d, 0s); }
.js .rise.is-in { transform: none; }

/* ---------- Hero: the name split to the corners ---------- */
.hero { position: relative; }
.hero { min-height: 100svh; }
.monument { position: absolute; inset: 0; font: 800 var(--step-display)/0.84 var(--display); text-transform: uppercase; letter-spacing: -0.01em; color: var(--ink); }
.monument span { position: absolute; }
.monument .w1 { left: var(--margin); top: calc(var(--hdr-h) + 20px); }
.monument .w2 { right: var(--margin); bottom: 22px; color: var(--red); }
.hero-screen { position: relative; z-index: 1; min-height: 100svh; }
.hero-screen.s1 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding-inline: var(--margin); }
.hero-copy { grid-column: 4 / 9; align-self: start; margin-top: max(calc(var(--hdr-h) + 24vh), 34svh); display: grid; gap: 24px; max-width: 34rem; }
.hero-lede { font-size: var(--step-lead); line-height: 1.35; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.hero-lic { font-size: var(--step-small); font-weight: 600; color: var(--soft); }
.hero-photo { grid-column: 10 / 13; margin-right: calc(-1 * var(--margin)); height: 62svh; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; }
@media (prefers-reduced-motion: no-preference) { .hero-photo img { animation: drift 30s ease-in-out infinite alternate; } }
.hero-screen.s2 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding-inline: var(--margin); align-items: center; }
.hero-wide { grid-column: 1 / 7; display: grid; gap: 14px; }
.hero-wide img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.12) translate3d(-2%, -1%, 0); } }
@media (max-width: 899px) {
  .hero { padding-top: calc(var(--hdr-h) + 16px); }
  .hero { min-height: 0; }
  .monument { position: static; display: block; padding-inline: var(--margin); font-size: clamp(3.5rem, 20.5vw, 9rem); }
  .monument span { position: static; display: block; }
  .monument .w2 { text-align: right; }
  .hero-screen { height: auto; }
  .hero-screen.s1, .hero-screen.s2 { margin-top: 0; grid-template-columns: 1fr; row-gap: 24px; padding-block: 24px; }
  .hero-copy { grid-column: 1; margin-top: 0; }
  .hero-photo { grid-column: 1; height: 40svh; margin-inline: calc(-1 * var(--margin)); }
  .hero-wide { grid-column: 1; }
}

/* ---------- Proof: towns running off both edges ---------- */
.towns-band { overflow: hidden; height: clamp(150px, 30vh, 300px); display: flex; align-items: center; background: var(--navy); color: var(--on-navy); }
.band-track { display: flex; align-items: center; gap: 0.35em; width: max-content; font: 800 clamp(3.5rem, 12vw, 11rem)/1 var(--display); text-transform: uppercase; white-space: nowrap; }
.band-track i { display: inline-block; width: 0.22em; height: 0.22em; margin-inline: 0.12em; border-radius: 50%; background: var(--red); }
@media (prefers-reduced-motion: no-preference) { .band-track.is-moving { animation: marquee 50s linear infinite; } }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
.band-note { margin-top: 20px; max-width: 60ch; }

/* ---------- Services: one-size name columns ---------- */
.services .sec-title { margin-bottom: 72px; }
.svc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 48px; align-items: start; }
.svc-cols { grid-column: 1 / 10; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 48px; }
.svc-col { display: grid; gap: 48px; align-content: start; }
.svc-name { display: block; padding: 0; border: 0; background: none; text-align: left; font: 700 var(--step-body)/1.25 var(--sans); color: var(--ink); }
.svc-name[aria-pressed="true"] { color: var(--red); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.svc-list { list-style: none; margin-top: 1.25em; display: grid; gap: 0.2em; color: var(--soft); line-height: 1.3; }
.svc-group { transition: transform 0.25s var(--ease); }
.svc-group.is-on .svc-list { color: var(--ink); }
.svc-sum { display: none; }
.svc-detail { grid-column: 10 / 13; position: sticky; top: calc(var(--hdr-h) + 24px); display: grid; gap: 18px; }
.svc-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.svc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.5s var(--ease); }
.svc-media img.is-on { opacity: 1; }
.svc-body { display: grid; gap: 12px; align-content: start; }
.svc-body h3 { font: 700 var(--step-body)/1.3 var(--sans); }
.svc-body .btn { justify-self: start; }
@media (max-width: 899px) {
  .svc-cols { grid-column: 1 / -1; grid-template-columns: 1fr; row-gap: 40px; }
  .svc-col { gap: 40px; }
  .svc-detail { display: none; }
  .svc-sum { display: block; margin-top: 14px; color: var(--soft); }
  .svc-sum a { color: var(--red); font-weight: 700; }
  .svc-name { font-size: var(--step-lead); }
  .services .sec-title { margin-bottom: 48px; }
}

/* ---------- Transformations: a band of unequal panels ---------- */
.work { background: var(--surface); }
.work-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 16px; align-items: end; margin-bottom: 64px; }
.work-head .sec-title { grid-column: 3 / 8; }
.work-head p { grid-column: 8 / 13; max-width: 46ch; }
.tx-band { display: flex; height: 68svh; min-height: 360px; }
.tx-panel { position: relative; flex: var(--g) 1 0; min-width: 0; padding: 0; border: 0; overflow: hidden; background: var(--navy); transition: flex-grow 0.5s var(--ease); }
.tx-panel:hover, .tx-panel[aria-pressed="true"] { flex-grow: 6; }
.tx-panel img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.tx-panel:hover img { transform: scale(1.04); }
.tx-panel-name { position: absolute; left: 0; bottom: 0; max-width: 100%; padding: 12px 16px; background: rgba(11, 27, 51, 0.82); color: #fff; font-weight: 700; text-align: left; line-height: 1.25; }
.tx-panel[aria-pressed="true"] .tx-panel-name { background: var(--red); }
.tx-top { display: flex; justify-content: flex-end; margin: 40px 0 16px; }
.tx-modes { display: flex; gap: 6px; }
.tx-modes button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 0; background: var(--surface-2); color: var(--ink); font-weight: 700; font-size: var(--step-small); }
.tx-modes button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.tx-modes svg { width: 18px; height: 18px; }
.tx-meta { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 20px; margin-top: 28px; }
.tx-meta > div { grid-column: 1 / 8; display: grid; gap: 10px; }
.tx-meta h3 { font: 700 var(--step-lead)/1.2 var(--sans); }
.tx-note { font-size: var(--step-small); color: var(--soft); }
.tx-scope { grid-column: 8 / 13; list-style: none; display: flex; flex-wrap: wrap; align-content: start; gap: 6px; }
.tx-scope li { padding: 6px 12px; background: var(--paper); font-size: var(--step-small); font-weight: 600; }
@media (max-width: 899px) {
  .work-head .sec-title, .work-head p { grid-column: 1 / -1; }
  .work-head { margin-bottom: 32px; }
  .tx-band { flex-wrap: wrap; height: auto; min-height: 0; }
  .tx-panel { height: 42svh; flex-grow: 0; }
  .tx-panel:nth-child(1) { flex-basis: 64%; } .tx-panel:nth-child(2) { flex-basis: 36%; }
  .tx-panel:nth-child(3) { flex-basis: 36%; } .tx-panel:nth-child(4) { flex-basis: 64%; }
  .tx-panel:hover, .tx-panel[aria-pressed="true"] { flex-grow: 0; }
  .tx-meta > div, .tx-scope { grid-column: 1 / -1; }
  .tx-top { justify-content: flex-start; }
}

/* the before/after slider is a working interface: it keeps its own handles and labels */
.ba { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); user-select: none; -webkit-user-select: none; touch-action: pan-y; cursor: ew-resize; --clip-pos: 50%; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.ba .ba-before { clip-path: polygon(0 0, var(--clip-pos, 50%) 0, var(--clip-pos, 50%) 100%, 0 100%); -webkit-clip-path: polygon(0 0, var(--clip-pos, 50%) 0, var(--clip-pos, 50%) 100%, 0 100%); will-change: clip-path; }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--clip-pos, 50%); width: 4px; transform: translateX(-50%); background: #fff; pointer-events: none; }
.ba-knob { position: absolute; top: 50%; left: var(--clip-pos, 50%); width: 56px; height: 56px; transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--ink); pointer-events: none; transition: transform 0.2s var(--ease); }
.ba-knob svg { width: 26px; height: 26px; }
.ba.is-dragging .ba-knob { transform: translate(-50%, -50%) scale(1.1); }
.ba-range { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.ba-range:focus-visible ~ .ba-knob { outline: 4px solid var(--red); outline-offset: 4px; }
.ba-tag { position: absolute; top: 16px; z-index: 2; padding: 6px 12px; background: var(--navy-deep); color: #fff; font-weight: 700; font-size: var(--step-small); pointer-events: none; transition: opacity 0.25s; }
.ba-tag.l { left: 16px; }
.ba-tag.r { right: 16px; background: var(--red); }
.ba[data-at-start] .ba-tag.l, .ba[data-at-end] .ba-tag.r { opacity: 0; }
.ba-hint { position: absolute; left: 50%; bottom: 16px; z-index: 2; transform: translateX(-50%); padding: 8px 14px; background: var(--navy-deep); color: #fff; font-size: var(--step-small); font-weight: 600; white-space: nowrap; pointer-events: none; transition: opacity 0.4s; }
.ba.was-used .ba-hint { opacity: 0; }
.ba-fs { position: absolute; right: 16px; bottom: 16px; z-index: 5; display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: var(--navy-deep); color: #fff; }
.ba-fs svg { width: 18px; height: 18px; }
.ba:fullscreen { width: 100vw; height: 100dvh; aspect-ratio: auto; background: #000; }
.ba:fullscreen img { object-fit: contain; }
.ba:fullscreen .ba-hint { display: none; }
.split { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.split img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split .half-before { clip-path: inset(0 50% 0 0); }
.split .half-after { clip-path: inset(0 0 0 50%); }
.split::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; transform: translateX(-50%); background: #fff; }

/* ---------- The Just Creed: side facts, wide paragraph ---------- */
.creed-row { display: grid; grid-template-columns: minmax(160px, 30vw) minmax(0, 1fr); column-gap: 4vw; row-gap: 32px; }
.creed-row + .creed-row { margin-top: 120px; }
.facts { display: grid; gap: 20px; align-content: start; font-size: var(--step-small); }
.facts dt { color: var(--soft); }
.facts dd { font-weight: 700; }
.facts a { color: var(--red); font-weight: 700; }
.creed-copy { display: grid; gap: 24px; align-content: start; max-width: 60rem; }
.creed-para { font-size: var(--step-lead); line-height: 1.4; }
.creed-para i { font-style: italic; color: var(--soft); }
.record-word { font: 700 var(--step-body)/1.3 var(--sans); }
.tenets { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 64px; max-width: 60rem; }
.tenets li { max-width: 40ch; }
.leader { grid-column: 2; max-width: 60ch; }
@media (max-width: 899px) {
  .creed-row { grid-template-columns: 1fr; }
  .creed-copy { order: -1; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tenets { grid-template-columns: 1fr; }
  .leader { grid-column: 1; }
  .creed-row + .creed-row { margin-top: 64px; }
}

/* ---------- Process: one verb at a time ---------- */
.process-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 16px; align-items: end; padding-block: var(--section) 64px; }
.process-head .sec-title { grid-column: 1 / 7; }
.process-head p { grid-column: 8 / 13; max-width: 46ch; }
.stages { list-style: none; }
.stage { position: relative; display: flow-root; height: 100svh; overflow: clip; background: var(--navy-deep); color: #fff; }
.stage-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); }
.stage::after { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(11, 27, 51, 0.5); }
.verb-hold { position: sticky; top: 50%; z-index: 2; margin-top: calc(50svh - 0.42 * var(--verb-size)); transform: translateY(-50%); text-align: center; pointer-events: none; }
.stages { --verb-size: clamp(6rem, 22vw, 20rem); }
.verb { font: 800 var(--verb-size)/0.84 var(--display); text-transform: uppercase; color: #fff; }
.stage-note { position: absolute; left: var(--margin); top: calc(var(--hdr-h) + 24px); z-index: 2; display: grid; gap: 10px; max-width: 34rem; padding: 18px 22px; background: rgba(11, 27, 51, 0.82); }
@media (prefers-reduced-motion: no-preference) { .stage-photo { animation: drift 26s ease-in-out infinite alternate; } }
@media (max-width: 899px) {
  .process-head .sec-title, .process-head p { grid-column: 1 / -1; }
  .stage-note { right: var(--margin); }
}
@media (max-width: 599px) {
  .stage-note { top: auto; bottom: var(--margin); max-width: none; }
  .verb-hold { position: absolute; top: calc(var(--hdr-h) + 24px); left: 0; right: 0; margin: 0; transform: none; }
}

/* ---------- Estimator: one statement, then the open book ---------- */
.est-field-band { padding-block: var(--section) clamp(64px, 9vh, 120px); background: var(--navy); color: var(--on-navy); }
.statement { font: 800 var(--step-display)/0.9 var(--display); text-transform: uppercase; }
.statement > span { display: block; }
.statement .block { display: inline-block; padding: 0 0.15em; background: var(--red); color: #fff; }
.statement-under { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 24px; align-items: end; margin-top: 64px; }
.statement-under p { grid-column: 1 / 7; max-width: 46ch; color: var(--on-navy-soft); font-size: var(--step-lead); line-height: 1.35; }
.statement-under .btn { grid-column: 10 / 13; justify-self: end; }
.est-field-band :focus-visible { outline-color: #fff; }
.est { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 8px; padding-block: 64px var(--section); }
.est-controls { display: grid; gap: 32px; padding: clamp(20px, 3vw, 40px); background: var(--surface); }
.est-field { margin: 0; padding: 0; border: 0; min-width: 0; }
.est-field legend, .size-head label { margin-bottom: 12px; padding: 0; font-weight: 700; }
.opt { font-weight: 400; color: var(--soft); }
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.chips.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chip { position: relative; display: block; min-width: 0; cursor: pointer; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span { display: flex; flex-direction: column; justify-content: center; gap: 2px; height: 100%; min-height: 60px; padding: 10px 14px; background: var(--paper); font-weight: 700; font-size: var(--step-small); line-height: 1.3; transition: background-color 0.2s, color 0.2s; }
.chip small { color: var(--soft); font-weight: 400; font-size: var(--step-small); }
.chip:hover span { background: var(--surface-2); }
.chip input:checked + span { background: var(--ink); color: #fff; }
.chip input:checked + span small { color: var(--on-navy-soft); }
.chip input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.size-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.size-head label { margin: 0; }
.size-box { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px 0 4px; background: var(--paper); color: var(--soft); font-weight: 700; font-size: var(--step-small); }
.size-box:focus-within { outline: 3px solid var(--red); outline-offset: 2px; }
.size-box input { width: 6.5rem; min-height: 44px; padding: 0 0 0 10px; border: 0; background: transparent; color: var(--ink); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; outline: none; }
input[type="range"] { width: 100%; height: 44px; margin: 0; accent-color: var(--red); cursor: pointer; }
.size-ticks { position: relative; height: 1.3rem; margin-bottom: 10px; color: var(--soft); font-size: var(--step-small); font-variant-numeric: tabular-nums; }
.size-ticks span { position: absolute; left: calc(12px + (100% - 24px) * var(--t)); transform: translateX(-50%); white-space: nowrap; }
.est-note { font-size: var(--step-small); color: var(--soft); max-width: 60ch; }
.addons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.addon { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px; background: var(--paper); font-weight: 600; font-size: var(--step-small); cursor: pointer; }
.addon input { width: 20px; height: 20px; accent-color: var(--red); }
.addon:has(input:checked) { background: var(--ink); color: #fff; }
.est-out { background: var(--navy); color: #fff; }
.est-out-in { position: sticky; top: calc(var(--hdr-h) + 16px); display: grid; gap: 24px; padding: clamp(20px, 3vw, 40px); }
.out-label { font-size: var(--step-small); font-weight: 700; color: var(--on-navy-soft); }
.est-range { margin-top: 8px; display: flex; flex-wrap: wrap; column-gap: 0.25em; font: 800 clamp(2.75rem, 1.8rem + 3vw, 4.5rem)/0.95 var(--display); font-variant-numeric: tabular-nums; }
.est-range span { white-space: nowrap; }
.est-psf { margin-top: 4px; color: var(--on-navy-soft); font-size: var(--step-small); }
.est-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.est-facts div { display: grid; gap: 4px; padding: 12px 14px; background: var(--navy-deep); }
.est-facts span { font-size: var(--step-small); color: var(--on-navy-soft); }
.est-facts strong { font-weight: 700; }
.book-bar { display: flex; height: 14px; margin-top: 12px; gap: 2px; background: var(--navy-deep); }
.book-bar span { display: block; min-width: 3px; }
.book { list-style: none; display: grid; gap: 8px; margin-top: 14px; font-size: var(--step-small); }
.book li { display: flex; justify-content: space-between; gap: 16px; }
.book li span:first-child { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: var(--on-navy-soft); }
.book li i { flex: none; width: 12px; height: 12px; }
.book li span:last-child { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.est-out .est-note { color: var(--on-navy-soft); }
.est-out :focus-visible { outline-color: #fff; }
#est-transfer { justify-self: start; }
@media (max-width: 899px) {
  .statement-under p, .statement-under .btn { grid-column: 1 / -1; justify-self: start; }
  .statement-under .btn { width: 100%; }
  .est { grid-template-columns: 1fr; gap: 56px; }
  .est-out-in { position: static; }
  #est-transfer { width: 100%; }
}
@media (max-width: 559px) { .chips.is-3, .addons { grid-template-columns: 1fr; } }

/* ---------- Territory: a giant word over filled bars, beside the map ---------- */
.territory { background: var(--surface); }
.terr { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.terr-col { container-type: inline-size; display: grid; gap: 20px; max-width: 640px; min-width: 0; }
.giant-word { font: 800 34cqi/0.8 var(--display); text-transform: uppercase; letter-spacing: -0.01em; }
.terr-lede { max-width: 46ch; }
.bars { display: grid; gap: 6px; }
.bar { background: var(--paper); }
.bar summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 18px; cursor: pointer; list-style: none; font-weight: 700; }
.bar summary::-webkit-details-marker { display: none; }
.bar summary span, .bar summary small { min-width: 0; }
.bar summary small { margin-left: auto; color: var(--soft); font-weight: 400; font-size: var(--step-small); text-align: right; }
.bar summary::after { content: "+"; flex: none; width: 1em; text-align: center; font-size: 1.4rem; font-weight: 700; color: var(--red); transition: transform 0.25s var(--ease); }
.bar[open] summary::after { transform: rotate(45deg); }
.bar[open] { background: var(--ink); color: #fff; }
.bar[open] summary small { color: var(--on-navy-soft); }
.bar[open] .btn-line { color: #fff; }
.bar[open] .btn-line:hover { background: #fff; color: var(--ink); }
.bar-in { display: grid; gap: 14px; padding: 0 18px 20px; }
.map { position: relative; position: sticky; top: calc(var(--hdr-h) + 24px); background: var(--paper); }
.map svg { width: 100%; height: auto; max-height: calc(100svh - var(--hdr-h) - 48px); }
.map .land { fill: #f4f6fa; }
.map .water { fill: #c9d6e8; }
.map .county { fill: none; stroke: var(--soft); stroke-width: 1.5; stroke-dasharray: 6 5; }
.map .roads path { fill: none; stroke: var(--surface-2); stroke-width: 3; }
.map .shield rect { fill: var(--paper); stroke: var(--soft); }
.map .shield text { fill: var(--ink); font: 700 10px var(--sans); }
.map .water-label { fill: #4b6d96; font: 700 13px var(--sans); letter-spacing: 0.06em; }
.map .county-label { fill: var(--soft); font: 700 12px var(--sans); letter-spacing: 0.06em; }
.map .town circle { fill: var(--ink); transition: r 0.2s; }
.map .town text { fill: var(--ink); font: 700 15px var(--sans); paint-order: stroke; stroke: #f4f6fa; stroke-width: 5px; stroke-linejoin: round; }
.map .town .ring { fill: none; stroke: var(--red); stroke-width: 2.5; opacity: 0; }
.map .town.is-on circle:not(.ring) { fill: var(--red); r: 8; }
.map .town.is-on text { fill: var(--red); }
.map .town.hq circle:not(.ring) { fill: var(--red); }
@media (prefers-reduced-motion: no-preference) { .map .town.hq .ring { opacity: 1; animation: ring 2.4s var(--ease) infinite; transform-box: fill-box; transform-origin: center; } }
@keyframes ring { from { transform: scale(1); opacity: 0.9; } to { transform: scale(3); opacity: 0; } }
.map .scalebar line { stroke: var(--soft); stroke-width: 2; }
.map .scalebar text, .map .north text { fill: var(--soft); font: 700 12px var(--sans); }
.map .north path { fill: var(--soft); }
.map-credit { position: absolute; right: 10px; bottom: 8px; color: var(--soft); font-size: var(--step-small); }
@media (max-width: 899px) {
  .terr { grid-template-columns: 1fr; }
  .terr-col { max-width: none; }
  .map { position: relative; top: auto; }
  .map .town text { font-size: 22px; stroke-width: 6px; }
}

/* ---------- FAQ: a wide heading, the questions indented ---------- */
.wide-head { font: 800 var(--step-display)/0.88 var(--display); text-transform: uppercase; }
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-top: 80px; }
.faq-item { grid-column: 5 / 13; margin-bottom: 12px; }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 14px 24px; margin-inline: -24px; cursor: pointer; list-style: none; font-size: var(--step-lead); line-height: 1.3; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 12px; height: 12px; border: solid var(--ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translateY(-3px); transition: transform 0.25s var(--ease); }
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item[open] { background: var(--surface); margin-inline: -24px; padding-inline: 24px; }
.faq-item[open] summary { margin-inline: -24px; }
.faq-a { display: grid; gap: 12px; max-width: 60ch; padding-bottom: 24px; }
@media (max-width: 899px) {
  .faq { margin-top: 48px; }
  .faq-item { grid-column: 1 / -1; }
  .faq-item summary { font-size: var(--step-body); font-weight: 600; margin-inline: 0; padding-inline: 0; }
  .faq-item[open] { margin-inline: calc(-1 * var(--margin)); padding-inline: var(--margin); }
  .faq-item[open] summary { margin-inline: 0; }
}

/* ---------- Request a bid ---------- */
.rfp { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.rfp-side { display: grid; gap: 22px; }
.assure { list-style: none; display: grid; gap: 14px; }
.form-card { display: grid; gap: 22px; padding: clamp(20px, 3vw, 40px); background: var(--surface); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; counter-reset: s; }
.steps li { padding: 10px 12px; background: var(--surface-2); color: var(--soft); font-size: var(--step-small); font-weight: 700; }
.steps li.is-on { background: var(--ink); color: #fff; }
.steps li.is-done { background: var(--red); color: #fff; }
.form-step { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 12px; }
.form-step h3 { font: 700 var(--step-lead)/1.2 var(--sans); }
.form-step h3:focus { outline: none; }
.form-step > p { color: var(--soft); font-size: var(--step-small); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 8px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: var(--step-small); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 2px solid #b9c3d3; border-radius: 0; background: var(--paper); font-size: var(--step-body); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field[data-invalid="true"] input, .field[data-invalid="true"] select, .field[data-invalid="true"] textarea { border-color: var(--red); }
.err { color: var(--red); font-size: var(--step-small); font-weight: 700; }
.attached { padding: 14px; background: var(--paper); }
.attached-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 700; }
.attached pre { margin: 10px 0 0; font: inherit; font-size: var(--step-small); white-space: pre-wrap; }
.review { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; font-size: var(--step-small); }
.review dt { color: var(--soft); }
.review dd { font-weight: 700; overflow-wrap: anywhere; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* taste-skill-ignore: bot trap */
.form-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.form-nav .spacer { flex: 1; }
.form-nav small { color: var(--soft); font-size: var(--step-small); }
@media (max-width: 899px) { .rfp { grid-template-columns: 1fr; } }
@media (max-width: 559px) { .fields, .review { grid-template-columns: 1fr; } .form-nav .btn { flex: 1 1 100%; } }

/* ---------- The email as display type ---------- */
.mail-sec { background: var(--navy); color: #fff; }
.mail-in { display: grid; grid-template-rows: auto 1fr auto; min-height: 80svh; padding-block: 48px; gap: 32px; }
.mail-lead { max-width: 28ch; font: 400 var(--step-lead)/1.35 var(--sans); }
.mail-big { align-self: end; display: block; font: 800 clamp(3rem, 12vw, 13rem)/0.85 var(--display); text-transform: uppercase; text-decoration: none; overflow-wrap: anywhere; transition: color 0.25s; }
.mail-big:hover { color: #ff8f9b; }
.mail-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: var(--step-small); color: var(--on-navy-soft); }
.mail-foot a { color: #fff; font-weight: 700; }
.mail-sec :focus-visible { outline-color: #fff; }

/* ---------- Footer: columns above, the mark below ---------- */
.footer { background: var(--navy-deep); color: #fff; --logo-red: #e2394b; }
.footer-in { display: grid; grid-template-rows: auto 1fr auto auto; min-height: 90svh; padding-block: 48px 24px; gap: 40px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px var(--gap); }
.footer-cols h2 { margin-bottom: 10px; font-size: var(--step-small); font-weight: 700; }
.footer-cols ul { list-style: none; display: grid; gap: 6px; color: var(--on-navy-soft); }
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { color: #fff; text-decoration: underline; }
.footer-mark { align-self: end; display: block; color: #fff; }
.footer-mark svg { width: 100%; height: auto; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: var(--step-small); color: var(--on-navy-soft); }
.footer-base a { color: #fff; }
.credit-line { max-width: 60ch; }
.footer :focus-visible { outline-color: #fff; }
@media (max-width: 759px) { .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Quickbar, modal, toasts ---------- */
.quickbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none; gap: 8px; padding: 10px var(--margin) max(10px, env(safe-area-inset-bottom)); background: var(--paper); transform: translateY(110%); transition: transform 0.3s var(--ease); }
.quickbar .btn { flex: 1; }
.quickbar.is-on { transform: none; }
@media (max-width: 899px) { .quickbar { display: flex; } }
.modal { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(11, 27, 51, 0.7); }
.modal-card { position: relative; display: grid; gap: 14px; justify-items: start; width: min(520px, 100%); padding: 32px; background: var(--paper); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6); } /* taste-skill-ignore: floating dialog / toast */
.seal { display: grid; place-items: center; width: 52px; height: 52px; background: var(--red); color: #fff; }
.seal svg { width: 28px; height: 28px; }
.modal-card h2 { font: 700 var(--step-head)/1.1 var(--sans); }
.ref { padding: 6px 10px; background: var(--surface); font-weight: 700; font-size: var(--step-small); }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.toasts { position: fixed; left: 50%; bottom: max(84px, env(safe-area-inset-bottom)); z-index: 600; display: grid; gap: 8px; width: min(92vw, 420px); transform: translateX(-50%); pointer-events: none; }
.toast { padding: 14px 18px; background: var(--ink); color: #fff; font-weight: 700; box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.6); animation: toast-in 0.3s var(--ease); } /* taste-skill-ignore: floating dialog / toast */
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal, .js .rise { opacity: 1; transform: none; }
}
