@font-face { font-family: 'Saira'; src: url('../fonts/Saira-var.woff2') format('woff2'); font-weight: 100 900; font-stretch: 50% 125%; font-display: swap; }
@font-face { font-family: 'Red Hat Text'; src: url('../fonts/RedHatText-var.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }

:root {
  --sky: #DDF1FB; --blue: #2BA8E0; --blue-ink: #0F6E99; --char: #222222; --grass: #A8B9BE;
  --soil-1: #E3EBEF; --soil-2: #344D5C; --soil-3: #263D4A; --clay: #C9773F; --kubota: #F26B1D;
  --trench: #1C303C; --bedrock: #253640; --deep: #14232C;
  --display: 'Saira', 'Arial Narrow', sans-serif; --text: 'Red Hat Text', system-ui, sans-serif;
  --m: clamp(24px, calc(4.4 * min(1vw, 19.2px)), 64px);
  --step-small: 0.875rem; --step-body: clamp(1.0625rem, 1rem + calc(0.25 * min(1vw, 19.2px)), 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + calc(0.7 * min(1vw, 19.2px)), 1.5rem); --step-head: clamp(2.1rem, 1.2rem + calc(3.6 * min(1vw, 19.2px)), 4rem);
  --bar-h: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--char); scroll-padding-top: calc(var(--bar-h) + 12px); scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom)); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 var(--step-body)/1.55 var(--text); color: var(--char); background: var(--char); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-ink); }
h1, h2, h3 { font-family: var(--display); font-stretch: 100%; line-height: 1.02; margin: 0; text-wrap: balance; }
h2 { font-size: var(--step-head); font-weight: 800; letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--kubota); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--char); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.ribbon { margin: 0; padding: 6px var(--m); background: var(--kubota); color: var(--char); font-size: var(--step-small); font-weight: 500; text-align: center; }
.ribbon a { color: var(--char); font-weight: 700; text-underline-offset: 3px; }

/* Top bar: the logo's own charcoal */
.bar { position: sticky; top: 0; z-index: 30; height: var(--bar-h); display: flex; align-items: center; gap: 28px; padding: 0 var(--m); background: var(--char); color: #fff; }
/* While the hero scrolls away the bar steps aside, so it never sits on the name; it returns once the hero has passed */
.bar.away:not(:focus-within) { transform: translateY(-100%); }
@media (prefers-reduced-motion: no-preference) { .bar { transition: transform var(--t-ui) var(--ease-out); } }
.bar-logo { display: inline-flex; align-items: center; min-height: 48px; }
.bar-logo img { height: 44px; width: auto; }
.bar-nav { display: flex; gap: 26px; margin-left: auto; }
.bar-nav a, .menu a { color: #fff; text-decoration: none; font-weight: 500; }
.bar-nav a { display: inline-flex; align-items: center; min-height: 48px; }
@media (hover: hover) and (pointer: fine) { .bar-nav a:hover { text-decoration: underline; text-underline-offset: 5px; } }
.bar-phone { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: 0.01em; min-height: 48px; }
.bar-phone svg { width: 20px; height: 20px; fill: var(--blue); }
.bar-menu { display: none; font: 600 1rem var(--text); color: #fff; background: none; border: 1.5px solid rgb(255 255 255 / .5); border-radius: 999px; padding: 0 18px; min-height: 44px; }
/* The menu lists every page, so it scrolls inside itself; the Call button stays in reach at its foot */
.menu { position: fixed; inset: var(--bar-h) 0 0; z-index: 29; background: var(--char); display: flex; flex-direction: column; padding: 16px var(--m) calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.menu[hidden] { display: none; }
.menu a { flex: none; display: flex; align-items: center; font-family: var(--display); font-size: 1.6rem; font-weight: 700; padding: 8px 0; min-height: 56px; border-bottom: 1px solid rgb(255 255 255 / .14); }
.menu a.menu-sub { font-family: var(--text); font-size: 1.125rem; font-weight: 500; min-height: 48px; padding-left: 16px; }
.menu .menu-call { position: sticky; bottom: 0; margin-top: auto; justify-content: center; border: 0; background: var(--blue); color: var(--char); border-radius: 999px; text-align: center; box-shadow: 0 -16px 0 8px var(--char); }
/* Without script the Menu button does nothing, so it goes and a plain row of links takes its place under the bar */
html.no-js .bar-menu { display: none; }
.nojs-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 8px var(--m); background: var(--char); }
.nojs-nav a { color: #fff; font-weight: 600; min-height: 48px; display: inline-flex; align-items: center; }

/* One button shape */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 26px; border-radius: 999px; border: 0;
  background: var(--blue); color: var(--char); font: 700 1.125rem var(--text); text-decoration: none; white-space: nowrap; cursor: pointer; touch-action: manipulation; }
.pill--orange { background: var(--kubota); color: var(--char); }
.pill--wide { width: 100%; }
.pill--quiet { background: transparent; color: #fff; border: 2px solid #fff; }
.pill svg { width: 20px; height: 20px; fill: currentColor; }
.text-link { color: var(--char); font-weight: 700; text-underline-offset: 5px; text-decoration-thickness: 2px; min-height: 48px; display: inline-flex; align-items: center; }
@media (prefers-reduced-motion: no-preference) {
  .pill { transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
  .pill:active { transform: scale(.97); }
}
@media (hover: hover) and (pointer: fine) { .pill:hover { background: #4DB9E8; } .pill--orange:hover { background: #F5833F; } .pill--quiet:hover { background: rgb(255 255 255 / .12); } }

/* Hero: the name stands on the lawn */
.hero { position: relative; overflow: hidden; background: var(--sky); padding: 0; display: flex; flex-direction: column;
  height: calc(100vh - var(--bar-h) - var(--ribbon-h, 34px)); height: calc(100svh - var(--bar-h) - var(--ribbon-h, 34px)); min-height: 560px; }
.hero-copy { position: relative; z-index: 3; padding: clamp(28px, 5vh, 64px) var(--m) 0; max-width: 46rem; }
.hero h1 { font-size: clamp(1.6rem, 1.1rem + calc(1.7 * min(1vw, 19.2px)), 2.4rem); font-weight: 800; }
.lede { margin-top: 14px; font-size: var(--step-lead); line-height: 1.4; max-width: 34ch; }
.hero-act { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
/* Doug's 24/7 badge: a stamped orange tag in the flow of the hero copy, clear of the Call pill */
.emergency-badge { display: inline-flex; align-items: center; min-height: 32px; margin: 14px 0 0; padding: 0 14px; border-radius: 999px; background: var(--kubota); color: var(--char);
  font: 800 0.9375rem var(--display); letter-spacing: 0.04em; text-transform: uppercase; }
.hero-sun { position: absolute; z-index: 1; right: var(--m); top: clamp(16px, 5vh, 56px); width: clamp(160px, calc(22 * min(1vw, 19.2px)), 300px); }
.monument { position: relative; z-index: 2; margin-top: auto; padding: 0 calc(var(--m) * .5); font-family: var(--display); font-weight: 900; font-stretch: 112%;
  line-height: .74; letter-spacing: -0.02em; color: var(--char); white-space: nowrap; text-align: center;
  /* close to what site.js fits after Saira loads (width / 2.96 per line, or the room under the copy), so the fit barely moves it */
  font-size: min(calc((calc(100 * min(1vw, 19.2px)) - var(--m)) / 2.96), calc((100svh - 456px) / .74)); }
.mono-line { display: inline-block; }
.monument--stack { display: none; text-align: left; }
.hero-turf { position: relative; z-index: 4; display: block; width: 100%; height: clamp(22px, calc(3.2 * min(1vw, 19.2px)), 46px); margin-top: calc(clamp(22px, calc(3.2 * min(1vw, 19.2px)), 46px) * -0.55); }

/* Dock (phones): the call never hides. On larger screens the number stays in the top bar instead */
.dock { position: fixed; z-index: 40; bottom: calc(env(safe-area-inset-bottom) + 16px); display: none; gap: 8px; align-items: center; }
.dock-quote { display: none; }

/* Exit prompt: desktop, once. Bottom right: the scope cards and the Call pill live on the left */
.exit { position: fixed; z-index: 45; right: var(--m); bottom: 24px; width: min(380px, calc(90 * min(1vw, 19.2px))); background: var(--char); color: #fff; border-radius: 14px; padding: 22px 22px 20px; box-shadow: 0 16px 40px rgb(0 0 0 / .35); }
.exit[hidden] { display: none; }
.exit h2 { font-size: 1.6rem; color: var(--blue); margin-bottom: 8px; }
.exit p { margin-bottom: 16px; }
.exit-close { position: absolute; right: 6px; top: 6px; width: 48px; height: 48px; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; }

/* Keep the complete composition at its 1080p design width on larger monitors. */
body{max-width:1920px;margin-inline:auto;position:relative;isolation:isolate}
@media(min-width:1921px){
 .dig-menu-launcher{right:calc((100vw - 1920px)/2 + 40px)!important}
 .menu{right:calc((100vw - 1920px)/2 + 18px)!important}
 .dock{right:calc((100vw - 1920px)/2 + 24px)!important}
 .exit{right:calc((100vw - 1920px)/2 + 64px)!important}
 .site-band-edge{position:absolute;left:50%;width:100vw;translate:-50% 0;z-index:-1;pointer-events:none}
}

/* Keep all scenery inside the centered page, with solid black outside it. */
@media(min-width:1921px){
 html{background:#000!important}
 body{clip-path:inset(0)}
 .site-band-edge{display:none!important}
}
/* The preview ribbon is gone (Douglas, Dec 3): nothing sits above the page, so the menu sign and page top start at the edge. */
:root { --ribbon-h: 0px; }

/* Douglas, 4 Dec 2026: no Pause or Replay buttons on the page-top animations; nothing should pull a visitor's eye from the
   Quote and Call buttons. People who ask their phone for reduced motion still get still pictures (each page's script). The
   What We Fix page keeps its own controls untouched. */
:is(main, .page-top, header, section) :is(button[class$="-pause"], button[class$="-replay"], .burst-toggle, .burst-restart):not([class^="fix-"]) { display: none !important; }
[class$="-controls"]:not([class^="fix-"]):has(> button[class$="-pause"]):has(> button[class$="-replay"]) { display: none !important; }
