/* Wood's Commercial & Residential Lawn Services. Phone first; wider layouts are added at the widths where content needs them. */

/* Alfa Slab One: wood-type poster slab, the lettering of feed-store and equipment-dealer signs. Libre Franklin: the American sign gothic those posters were set beside. */
@font-face {
  font-family: "Alfa Slab One";
  src: url("../fonts/alfa-slab-one-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Libre Franklin";
  src: url("../fonts/libre-franklin-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --clay: #CB6432;
  --clay-deep: #8F3B1B;
  --clay-dark: #6E2C13;
  --ink: #17140F;
  --ink-2: #24201A;
  --ink-3: #3A342C;
  --paper: #ECEAE5;
  --paper-2: #E1DED7;
  --white: #FFFFFF;
  --flag: #CB6432;      /* the accent is the clay itself: marks what you picked, primary actions on dark */
  --flag-hi: #DA7A49;
  --steel: #A39A8F;
  --muted: #554D44;      /* secondary text on paper */
  --muted-ink: #C9C1B5;  /* secondary text on ink */
  --error: #A1161F;

  --head-h: 60px;
  --gutter: 16px;
  --max: 1240px;
  --r: 2px;       /* controls only: buttons, inputs, answer rows */
  --r-panel: 0;   /* containers are square and separated by rules, not boxed */

  --font-display: "Alfa Slab One", "Rockwell", "Roboto Slab", Georgia, serif;
  --font-body: "Libre Franklin", "Franklin Gothic Medium", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  /* avoid-ai-design-ignore: M4 -- a short metal "clank" settle for chips, flags, the stamp and the loader arm; heavy-equipment brief, used on small parts only */
  --ease-clank: cubic-bezier(.3, 1.35, .5, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { font-synthesis: none; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 8px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.02; font-family: var(--font-body); font-weight: 850; letter-spacing: -0.022em; text-wrap: pretty; }
h1 { font-weight: 900; }
h3 { font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.site-head :focus-visible, .contact :focus-visible,
.site-foot :focus-visible, .action-bar :focus-visible, .cert-strip :focus-visible, .svc-clear :focus-visible { outline-color: var(--flag); }

.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--flag); color: var(--ink); padding: 10px 14px; font-weight: 700; border-radius: var(--r); }
.skip:focus { top: 8px; }

.ico { width: 26px; height: 26px; flex: none; fill: currentColor; }

/* ------------------------------------------------------------ flag mark */
.flag { width: .5em; height: .86em; display: inline-block; vertical-align: baseline; overflow: visible; }
.flag-stake { stroke: currentColor; stroke-width: 2; fill: none; }
.flag-tape { fill: var(--flag); }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; border-radius: var(--r); border: 2px solid transparent;
  font-weight: 750; font-size: 1.0625rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 120ms var(--ease-out), background-color 160ms, color 160ms, border-color 160ms;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn:active { transform: scale(.97); transition-duration: 60ms; }
.btn-flag { background: var(--flag); color: var(--ink); }
.btn-flag:hover { background: var(--flag-hi); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-3); }
.btn-quiet { background: transparent; color: var(--ink); border-color: rgba(23,20,15,.3); }
.btn-quiet:hover { border-color: var(--ink); }
.btn-line { background: transparent; color: inherit; border-color: currentColor; }
.btn-line:hover { background: rgba(255,255,255,.08); }
.btn[disabled] { opacity: .55; cursor: progress; }

/* ------------------------------------------------------------ wordmark */
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.wm-name { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1; display: inline-flex; align-items: flex-start; }
.wm-name .flag { width: 11px; height: 19px; margin: 0 1px 0 2px; }
.wm-sub { font-size: .66rem; line-height: 1.15; font-weight: 600; letter-spacing: .01em; opacity: .82; border-left: 2px solid currentColor; padding-left: 8px; }

/* ------------------------------------------------------------ header */
.site-head { position: sticky; top: 0; z-index: 40; background: var(--ink); color: var(--white); }
.head-in { max-width: var(--max); margin: 0 auto; height: var(--head-h); padding: 0 var(--gutter); display: flex; align-items: center; gap: 10px; }
.site-head .wordmark { margin-right: auto; }
.head-call { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; text-decoration: none; font-weight: 700; border-radius: var(--r); }
.head-call .ico { width: 20px; height: 20px; }
.head-call .hc-num { display: none; }
.head-quote { display: none; }
.menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; background: transparent; border: 2px solid rgba(255,255,255,.35); border-radius: var(--r); font-weight: 700; cursor: pointer; }
.menu-lines { width: 16px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; position: relative; }
.menu-lines::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 2px solid currentColor; }
.nav { position: fixed; inset: var(--head-h) 0 auto 0; background: var(--ink); border-top: 1px solid var(--ink-3); padding: 8px var(--gutter) 20px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 180ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s 220ms; }
.nav.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
.nav a { display: flex; align-items: center; min-height: 52px; font-size: 1.25rem; font-weight: 750; text-decoration: none; border-bottom: 1px solid var(--ink-3); }
.nav a[aria-current="page"] { color: var(--flag); }
@media (max-width: 479px) { .wm-sub { display: none; } }
a[href^="tel:"] { white-space: nowrap; }

/* ------------------------------------------------------------ hero */
.hero { overflow-x: clip; background: var(--clay); color: var(--ink); display: grid; grid-template-areas: "art" "copy" "matcher"; padding-bottom: 28px; position: relative; }
.hero-art { grid-area: art; padding: 14px 0 0; margin-left: -8px; }
.hero-art .t770 { width: 100%; max-width: 560px; height: auto; }
.hero-copy { grid-area: copy; padding: 6px var(--gutter) 18px; }
.hero h1 { font-size: clamp(2.05rem, .55rem + 7.3vw, 7rem); line-height: 1; }
.hero-sub { margin-top: 14px; font-size: 1.0625rem; font-weight: 450; }

.matcher { grid-area: matcher; margin: 0 var(--gutter); padding-top: 18px; border-top: 3px solid var(--ink); }
.m-label { display: block; font-weight: 800; font-size: 1rem; line-height: 1.3; margin-bottom: 4px; }
/* written straight onto the clay like a work order line: no box, a heavy rule underneath */
.matcher textarea { display: block; width: 100%; resize: none; overflow: hidden; min-height: 0; border: 0; border-bottom: 3px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); padding: 4px 0 10px; font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.75rem); font-weight: 750; letter-spacing: -0.01em; line-height: 1.3; caret-color: var(--ink); transition: border-bottom-width 120ms, padding-bottom 120ms; }
.matcher textarea::placeholder { color: var(--ink); opacity: 1; font-weight: 400; }
.matcher textarea:focus { outline: none; border-bottom-width: 6px; padding-bottom: 7px; }
.matcher textarea:focus::placeholder { opacity: .75; }
.heard { margin-top: 10px; min-height: 44px; }
.heard-empty { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 4px; font-size: 1rem; }
.heard-empty > span { font-weight: 700; margin-right: 4px; }
.try { min-height: 40px; padding: 4px 2px; background: none; border: 0; color: var(--ink); font-size: 1rem; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.try:not(:last-child)::after { content: ","; text-decoration: none; display: inline-block; }
.try:hover { text-decoration-thickness: 3px; }
.heard-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.heard-chips:empty { display: none; }
.hchip { --d: 0ms; display: inline-flex; align-items: center; min-height: 34px; padding: 4px 18px 4px 12px; background: var(--ink); color: var(--paper); font-weight: 700; font-size: .9375rem; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%); animation: chip-in 260ms var(--ease-clank) var(--d) both; }
@keyframes chip-in { from { transform: translateY(-10px) rotate(-3deg); opacity: 0; } }
.heard-gear { margin-top: 10px; font-size: 1rem; }
.heard-gear b { font-weight: 800; }
.m-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 14px; }
.m-actions .btn { flex: 0 1 auto; }
.matcher .btn-flag { background: var(--ink); color: var(--white); }
.matcher .btn-flag:hover { background: var(--ink-3); }
.m-call { display: inline-flex; align-items: center; min-height: 44px; font-weight: 750; color: var(--ink); }

/* machine drawing */
.m-ink { fill: var(--ink); }
.m-dark { fill: var(--ink); stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; }
.m-dark2 { fill: var(--clay-dark); }
.m-white { fill: var(--flag-hi); stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; }
.m-glass { fill: var(--ink); }
.m-shine { fill: var(--flag-hi); opacity: .35; }
.m-bar { stroke: var(--ink); stroke-width: 4; }
.m-vent { stroke: var(--ink); stroke-width: 3.5; }
.m-step { stroke: var(--ink); stroke-width: 3; }
.m-wheels circle { fill: var(--clay); stroke: var(--ink); stroke-width: 3; }
.m-lugs { stroke: var(--clay); stroke-width: 3; stroke-dasharray: 4 8; }
.m-rod { stroke: var(--clay-dark); stroke-width: 6; stroke-linecap: round; }
.m-cyl { stroke: var(--ink); stroke-width: 12; stroke-linecap: round; }
.m-pin { fill: var(--clay); }
.m-edge { stroke: var(--clay); stroke-width: 4; }
.m-tine { fill: none; stroke: var(--ink); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.m-hose { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; }
.m-chain { stroke: var(--clay); stroke-width: 2.5; }
.m-teeth { stroke: var(--clay); stroke-width: 4; stroke-dasharray: 3 7; }
.m-steel { fill: var(--clay); stroke: var(--ink); stroke-width: 3; }
.m-ground { fill: var(--clay-deep); }
.m-strata { stroke: var(--clay-dark); stroke-width: 2; stroke-dasharray: 18 10 6 10; }
.t770 .m-arm { transform-box: view-box; transform-origin: 92px 82px; transition: transform 420ms var(--ease-clank); }
.t770 .att { opacity: 0; transform: translateY(10px); transition: opacity 160ms, transform 220ms var(--ease-out); }
.t770 .att.is-on { opacity: 1; transform: none; }
.t770[data-att="grapple"] .m-arm { transform: rotate(-3deg); }
.t770.is-swapping .m-arm { transform: rotate(-9deg); transition-duration: 200ms; }
.t770 .gflag { opacity: 0; }
.t770 .gflag.is-up { opacity: 1; animation: stake 300ms var(--ease-clank) both; }
.t770 .gflag .flag-stake { stroke: var(--ink); stroke-width: 2.5; }
.t770 .gflag .flag-tape { fill: var(--white); }
@keyframes stake { from { translate: 0 -14px; opacity: 0; } }

/* ------------------------------------------------------------ certification strip */
.cert-strip { background: var(--ink-2); color: var(--white); padding: 14px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; justify-content: space-between; font-size: .9375rem; }
.cert-strip p { display: flex; flex-wrap: wrap; gap: 4px 0; }
.cert-strip p span:not(:last-child)::after { content: "\00B7"; margin: 0 9px; color: var(--muted-ink); }
.cert-strip a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* ------------------------------------------------------------ quote */
.quote { background: var(--paper); padding: 40px 0 48px; position: relative; }
.quote-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: 24px; }
.quote-head h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); }
.quote-head p { margin-top: 10px; max-width: 52ch; color: var(--muted); }
.quote-head a { color: var(--ink); font-weight: 700; }
.qform { position: relative; min-width: 0; }
.tape { height: 8px; background: var(--paper-2); border-radius: 2px; overflow: hidden; }
.tape-fill { display: block; height: 100%; width: 25%; background: repeating-linear-gradient(-45deg, var(--flag) 0 10px, var(--flag-hi) 10px 20px); transition: width 360ms var(--ease-out); }
.step-count { margin: 8px 0 4px; font-size: .875rem; font-weight: 700; color: var(--muted); }
.step { border: 0; margin: 0; padding: 0; min-width: 0; }
.step + .step { margin-top: 36px; }
.step legend { padding: 0; font-family: var(--font-body); font-weight: 850; letter-spacing: -0.02em; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); line-height: 1.1; margin-bottom: 4px; }
.hint { color: var(--muted); margin-bottom: 14px; }
.sub-legend { font-weight: 750; margin: 18px 0 8px; }
.tile-group + .tile-group { margin-top: 14px; }
.tile-group-name { font-size: .875rem; font-weight: 750; color: var(--muted); margin-bottom: 6px; }
.tiles { display: flex; flex-wrap: wrap; gap: 8px; }
.tile { position: relative; display: block; cursor: pointer; }
.tile input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tile-in { display: flex; align-items: center; gap: 8px; min-height: 46px; height: 100%; padding: 8px 12px; background: var(--white); border: 1.5px solid rgba(23,20,15,.18); border-radius: var(--r); font-size: .9375rem; font-weight: 600; line-height: 1.2; transition: background-color 140ms, color 140ms, border-color 140ms, transform 100ms; }
.tile-in .ico { width: 20px; height: 20px; color: var(--clay-deep); }
.tile:hover .tile-in { border-color: var(--ink); }
.tile:active .tile-in { transform: scale(.98); }
.tile input:checked + .tile-in { background: var(--ink); color: var(--white); border-color: var(--ink); }
.tile input:checked + .tile-in .ico { color: var(--flag); }
.tile input:focus-visible + .tile-in { outline: 3px solid var(--ink); outline-offset: 2px; }
.tile-in::after { content: ""; position: absolute; top: -4px; right: 8px; width: 14px; height: 18px; background: var(--flag); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%); transform: scaleY(0); transform-origin: top; transition: transform 200ms var(--ease-clank); }
.tile input:checked + .tile-in::after { transform: scaleY(1); }

.field { display: block; margin-top: 14px; }
.field > span { display: block; font-weight: 700; margin-bottom: 6px; }
.field em, .photo-pick em { font-style: normal; font-weight: 450; color: var(--muted); }
.field input, .field textarea { display: block; width: 100%; min-height: 52px; padding: 12px 14px; border: 2px solid rgba(23,20,15,.28); border-radius: var(--r); background: var(--white); font-size: 1.0625rem; }
.field textarea { resize: vertical; line-height: 1.4; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(203,100,50,.35); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field-zip input { max-width: 9ch; }

.opts { display: grid; gap: 8px; }
.opts-row { display: flex; flex-wrap: wrap; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt span { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 10px 14px; background: var(--white); border: 1.5px solid rgba(23,20,15,.18); border-radius: var(--r); font-weight: 600; transition: background-color 140ms, color 140ms, border-color 140ms; }
.opt span::before { content: ""; width: 16px; height: 16px; flex: none; border: 2px solid currentColor; border-radius: 2px; opacity: .55; }
.opt:hover span { border-color: var(--ink); }
.opt input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.opt input:checked + span::before { opacity: 1; background: var(--flag); border-color: var(--flag); }
.opt input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.often { margin-top: 4px; }
.js .often[hidden] { display: none; }

.photos { margin-top: 20px; }
.photo-pick { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; border: 2px dashed rgba(23,20,15,.35); border-radius: var(--r); cursor: pointer; background: rgba(255,255,255,.5); }
.photo-pick:hover { border-color: var(--ink); }
.photo-pick .ico { width: 30px; height: 30px; color: var(--clay-deep); }
.photo-pick b { display: block; }
#q-photos:focus-visible + .photo-list, .photos:focus-within .photo-pick { outline: 3px solid var(--ink); outline-offset: 2px; }
.photo-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.photo-list li { position: relative; width: 72px; height: 72px; border-radius: var(--r); overflow: hidden; background: var(--paper-2); }
.photo-list img { width: 100%; height: 100%; object-fit: cover; }
.photo-list button { position: absolute; top: 2px; right: 2px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--ink); color: var(--white); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.photo-list .busy { display: grid; place-items: center; font-size: .75rem; color: var(--muted); }

.step-error { margin-top: 12px; color: var(--error); font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.qnav { display: flex; gap: 10px; margin-top: 24px; }
.qnav .btn { flex: 1 1 0; }
.q-back { flex: 0 0 auto !important; }
.q-status { margin-top: 12px; }
.q-status:empty { display: none; }
.q-status .err { padding: 14px; border: 2px solid var(--error); border-radius: var(--r); background: var(--white); }
.q-status .err p + p { margin-top: 8px; }
.q-status .err .btn { margin-top: 12px; }

/* stepper (only when the script runs; without it every step shows as one long form) */
.js .step { display: none; }
.js .step.is-current { display: block; animation: step-in 260ms var(--ease-out); }
.js .step.is-current.from-left { animation-name: step-in-left; }
@keyframes step-in { from { opacity: 0; transform: translateX(22px); } }
@keyframes step-in-left { from { opacity: 0; transform: translateX(-22px); } }
.js .qnav { position: sticky; bottom: 0; z-index: 5; margin: 24px calc(var(--gutter) * -1) 0; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(236,234,229,0), var(--paper) 14px); }
.step-count { display: none; }
.js .step-count { display: block; }
.tape { display: none; }
.js .tape { display: block; }

/* the work-order ticket */
.ticket { display: none; position: relative; background: var(--white); border-top: 4px solid var(--ink); padding: 18px 18px 22px; align-self: start; overflow: hidden; }
.ticket.is-blank { visibility: hidden; opacity: 0; }
.ticket { transition: opacity 260ms; }
.ticket::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: radial-gradient(circle at 6px -2px, var(--paper) 5px, transparent 5.5px) 0 0 / 12px 6px repeat-x; }
.ticket-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--ink); padding: 4px 0 10px; font-weight: 700; font-size: .875rem; }
.ticket-brand { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; display: inline-flex; }
.ticket-brand .flag { width: 8px; height: 14px; margin: 1px 1px 0; }
.ticket-rows > div { display: grid; grid-template-columns: 64px 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px dashed rgba(23,20,15,.25); font-size: .9375rem; }
.ticket-rows dt { font-weight: 700; color: var(--muted); position: relative; }
.ticket-rows dd { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.ticket-rows .is-empty dd { color: #7A7064; font-weight: 450; }
.ticket-rows .is-filled dt::after { content: ""; position: absolute; left: -12px; top: 5px; width: 6px; height: 11px; background: var(--flag); }
.ticket-rows .just dd { animation: ink-in 380ms var(--ease-out); }
@keyframes ink-in { from { opacity: .2; transform: translateX(-4px); } }
.ticket-foot { margin-top: 14px; font-size: .875rem; color: var(--muted); }
.stamp { position: absolute; right: 16px; bottom: 12px; padding: 4px 14px; border: 4px solid var(--clay-deep); color: var(--clay-deep); border-radius: 6px; font-family: var(--font-body); font-weight: 900; font-size: 2rem; text-transform: uppercase; letter-spacing: .04em; transform: rotate(-12deg) scale(1.6); opacity: 0; pointer-events: none; mix-blend-mode: multiply; }
.ticket.is-sent .stamp { animation: stamp 380ms var(--ease-clank) forwards; }
@keyframes stamp { to { opacity: .9; transform: rotate(-12deg) scale(1); } }

.q-done { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.q-done h3 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.8rem); }
.q-done p { margin-top: 10px; max-width: 52ch; }
.q-done a { font-weight: 700; }
.q-done .btn { margin-top: 18px; }
.quote.is-done .qform, .quote.is-done .quote-head { display: none; }
.quote.is-done .ticket { display: block; max-width: 420px; }
.quote.is-done .q-done { margin-top: 20px; }

/* ------------------------------------------------------------ services */
.services { background: var(--paper-2); padding: 48px 0 56px; }
.svc-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.services h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); max-width: 16ch; }
.svc-lede { margin-top: 10px; color: var(--muted); }
.svc-group { margin-top: 28px; }
.svc-head h3 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); }
.svc-head p { margin-top: 6px; color: var(--muted); max-width: 42ch; }
.svc-list { margin-top: 12px; border-top: 2px solid var(--ink); }
.svc-list a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 2px; border-bottom: 1px solid rgba(23,20,15,.18); text-decoration: none; font-weight: 650; transition: padding-left 160ms var(--ease-out), color 160ms; }
.svc-list a::after { content: "Quote"; margin-left: auto; font-size: .8125rem; font-weight: 700; color: var(--muted); opacity: 0; transition: opacity 160ms; }
.svc-list a:hover { padding-left: 8px; }
.svc-list a:hover::after, .svc-list a:focus-visible::after { opacity: 1; }
.svc-list .ico { display: none; }
.svc-clear { background: var(--ink); color: var(--white); margin: 28px calc(var(--gutter) * -1) 0; padding: 26px var(--gutter) 22px; }
.svc-clear .svc-head p, .svc-clear .svc-list a::after { color: var(--muted-ink); }
.svc-clear .svc-list { border-top-color: var(--flag); }
.svc-clear .svc-list a { border-bottom-color: rgba(255,255,255,.14); }


/* ------------------------------------------------------------ equipment yard */
.yard { background: var(--clay); color: var(--ink); padding: 52px 0 56px; }
.yard-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.yard-intro h2 { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.8rem); max-width: 17ch; }
.yard-intro p { margin-top: 14px; max-width: 62ch; }
.rig { margin-top: 28px; display: grid; gap: 18px; }
.rig-stage { padding: 8px 0 0; }
.rig-stage .t770 { width: 100%; height: auto; }
.rig-name { font-size: 1.5rem; }
.rig-pick { margin-top: 4px;  font-size: .9375rem; }
.seg { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 10px; background: var(--ink); border-radius: var(--r); padding: 4px; }
.seg-slide { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); background: var(--paper); border-radius: 1px; transition: transform 300ms var(--ease-clank); }
.seg[data-i="1"] .seg-slide { transform: translateX(100%); }
.seg[data-i="2"] .seg-slide { transform: translateX(200%); }
.seg-btn { position: relative; min-height: 48px; padding: 6px 4px; border: 0; background: transparent; color: var(--white); font-weight: 700; font-size: .9375rem; line-height: 1.15; cursor: pointer; border-radius: 3px; transition: color 200ms; }
.seg-btn[aria-selected="true"] { color: var(--ink); }
.att-panel { margin-top: 16px; }

.att-panel ul { margin: 12px 0 18px; }
.att-panel li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(23,20,15,.25); font-weight: 700; }
.att-panel li::before { content: ""; width: 7px; height: 12px; background: var(--ink); flex: none; }

.att-panel:not([hidden]) { animation: step-in 240ms var(--ease-out); }
.yard-more { margin-top: 32px; display: grid; gap: 14px; }
.mt-card, .gear-card { border-top: 3px solid var(--ink); padding: 18px 0 0; }
.mt-card { display: grid; gap: 12px; }
.mt-card .mt100 { width: 100%; max-width: 360px; }
.mt-card h3, .gear-card h3 { font-size: 1.35rem; }
.mt-card p { margin-top: 6px; }
.gear-card ul { display: flex; flex-wrap: wrap; margin-top: 10px; font-weight: 650; }
.gear-card li:not(:last-child)::after { content: "\00B7"; margin: 0 8px; }

/* ------------------------------------------------------------ clearing story */
.story { background: var(--paper); position: relative; }
.story-pin { max-width: var(--max); margin: 0 auto; padding: 44px var(--gutter) 40px; display: grid; gap: 14px; }
.story h2 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.4rem); max-width: 15ch; }
.story-note { margin-top: 6px; font-size: .875rem; color: var(--muted); }
.scene-svg { width: 100%; height: auto; }
.s-ground { fill: var(--clay); }
.s-topsoil { fill: none; stroke: var(--clay-deep); stroke-width: 6; }
.s-trench { fill: var(--clay-dark); opacity: .5; }
.gravel { fill: var(--steel); }
.s-pipe { fill: none; stroke: var(--ink); stroke-width: 7; stroke-linecap: round; }
.perf { fill: var(--paper); }
.stump { fill: #6B4A2E; }
/* position comes from the transform attribute; the cut uses the separate scale/rotate properties so it never overrides it */
.brush { fill: #3E4A2C; transform-box: fill-box; transform-origin: 50% 100%; transition: scale 260ms var(--ease-out), opacity 260ms; }
.brush.is-cut { scale: .2 0; opacity: 0; }
.pine .trunk { stroke: #4A3522; stroke-width: 7; }
.pine .crown { fill: #2F3B22; }
.pine { transform-box: fill-box; transform-origin: 50% 100%; transition: rotate 380ms var(--ease-out), opacity 380ms; }
.pine.is-cut { rotate: 78deg; opacity: 0; }
.s-sod { fill: #5E7F3A; }
.blade { stroke: #6E9446; stroke-width: 2.5; stroke-linecap: round; }
.s-rig rect, .s-rig > path:not(.s-rig-arm), .s-mower path:not(.s-rig-arm), .s-mower circle { fill: var(--ink); }
.s-rig-arm { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linecap: round; }
#rig-tool { fill: var(--ink-3); }
.stages { display: grid; gap: 4px; counter-reset: s; }
.stage h3 { display: flex; align-items: center; gap: 8px; font-size: 1.35rem; }
.stage-flag { display: inline-flex; width: 14px; }
.stage-flag .flag { width: 12px; height: 20px; }
.stage-flag .flag-tape { fill: var(--paper-2); transition: fill 200ms; }
.stage p { margin-top: 4px; }
.stage-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--ink); }
.stage-link:hover { color: var(--clay-dark); }
.stage.is-on .stage-flag .flag-tape { fill: var(--clay-deep); }

/* pinned version, only with the script and without reduced motion */
.js-story .story { height: 460svh; }
.js-story .story-pin { position: sticky; top: var(--head-h); height: calc(100svh - var(--head-h)); padding-top: 18px; padding-bottom: 16px; grid-template-rows: auto minmax(0, 1fr) auto; align-content: stretch; }
.js-story .scene { min-height: 0; display: flex; align-items: flex-end; }
.js-story .scene-svg { max-height: 100%; width: auto; max-width: 100%; margin: 0 auto; }
.js-story .scene-svg.is-cam { width: 100%; height: auto; }
@media (max-width: 759px) {
  .js-story .story-pin { grid-template-rows: auto auto minmax(0, 1fr); }
  .js-story .story-side { order: 2; }
  .js-story .scene { order: 3; align-items: center; }
  .js-story .story-pin { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}
.js-story .stages { min-height: 132px; }
/* only the current caption is in the layout at all, so two captions can never sit on top of each other */
.js-story .stage { display: none; }
.js-story .stage.is-on { display: block; animation: cap-in 260ms var(--ease-out); }
@keyframes cap-in { from { opacity: 0; transform: translateY(6px); } }
.stage-ticks { display: none; }
.js-story .stage-ticks { display: flex; gap: 4px; margin-bottom: 12px; max-width: 220px; }
.stage-ticks span { flex: 1; height: 5px; background: rgba(23,20,15,.18); transition: background-color 200ms; }
.stage-ticks span.is-done { background: var(--ink); }

/* ------------------------------------------------------------ contact */
.contact { background: var(--ink); color: var(--white); padding: 52px 0 56px; }
.contact-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.contact h2 { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.4rem); }
.big-phone { display: block; margin-top: 10px; font-family: var(--font-body); font-weight: 900; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; font-size: clamp(2.3rem, .4rem + 9vw, 7rem); line-height: 1; text-decoration: none; white-space: nowrap; }
.big-phone:hover { color: var(--flag); }
.contact-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.contact-act .btn-line { white-space: normal; text-align: left; }
.contact-more { display: flex; flex-wrap: wrap; gap: 0 22px; margin-top: 22px; }
.contact-more a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; }
.contact-fine { margin-top: 14px; color: var(--muted-ink); }
.contact-grid { display: grid; gap: 14px; margin-top: 28px; }
.contact-grid p { display: flex; flex-direction: column; color: var(--muted-ink); }
.contact-grid b { color: var(--white); }
.contact-grid a { color: var(--white); font-weight: 600; overflow-wrap: anywhere; display: inline-flex; min-height: 44px; align-items: center; }

/* ------------------------------------------------------------ footer + action bar */
.site-foot { background: var(--ink-2); color: var(--white); padding: 36px var(--gutter) calc(88px + env(safe-area-inset-bottom)); }
.foot-in { max-width: var(--max); margin: 0 auto; display: grid; gap: 22px; }
.foot-brand p { margin-top: 12px; color: var(--muted-ink); font-size: .9375rem; }
.foot-contact { display: flex; flex-direction: column; }
.foot-contact a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; overflow-wrap: anywhere; }
.foot-phone { font-size: 1.5rem; font-weight: 850; font-variant-numeric: tabular-nums; }
.foot-certs { display: flex; flex-wrap: wrap; align-items: baseline; font-size: .875rem; font-weight: 600; color: var(--muted-ink); }
.foot-certs li:not(:last-child)::after { content: "\00B7"; margin: 0 8px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 18px; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.foot-fine { max-width: var(--max); margin: 18px auto 0; font-size: .8125rem; color: var(--muted-ink); }

.action-bar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--ink); box-shadow: 0 -1px 0 var(--ink-3); transform: translateY(110%); transition: transform 260ms var(--ease-out); }
.action-bar.is-up { transform: none; }
.action-bar a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: var(--r); font-weight: 750; text-decoration: none; }
.ab-call { color: var(--white); border: 2px solid rgba(255,255,255,.4); }
.ab-call .ico { width: 20px; height: 20px; }
.ab-quote { background: var(--flag); color: var(--ink); }
.no-js .action-bar { transform: none; }
.no-js .scene, .no-js .story-note { display: none; }
.q-next, .q-back { display: none; }
.js .q-next:not([hidden]), .js .q-back:not([hidden]) { display: inline-flex; }
.js .q-send[hidden] { display: none; }

/* ------------------------------------------------------------ capability page, privacy, 404 */
.cap-hero { background: var(--clay); padding: 40px 0 44px; }
.cap-hero-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.cap-hero h1 { font-size: clamp(2.2rem, 1.2rem + 4.4vw, 4.6rem); max-width: 16ch; }
.cap-hero p { margin-top: 14px; max-width: 60ch; }
.cap-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cap-hero .btn-flag { background: var(--ink); color: var(--white); }
.cap { max-width: 920px; width: calc(100% - 2 * var(--gutter)); margin: 32px auto 56px; padding: 0; }
@media (min-width: 952px) { .cap { padding: 36px 40px; } }
.cap-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; border-bottom: 3px solid var(--ink); padding-bottom: 14px; }
.cap-head h2 { font-size: 1.6rem; }
.cap-head p { color: var(--muted); font-size: .875rem; }
@media (min-width: 560px) { .cap-head h2, .cap-head p { text-align: right; } }
.cap-block { padding: 18px 0; border-bottom: 1px solid rgba(23,20,15,.15); }
.cap-block:last-child { border-bottom: 0; }
.cap-block h3 { font-size: 1.15rem; margin-bottom: 10px; }
.cap-ids dl { display: grid; gap: 6px 24px; }
.cap-ids dl div { display: grid; grid-template-columns: 9.5em 1fr; gap: 8px; }
.cap-ids dt { color: var(--muted); font-weight: 650; }
.cap-certs li, .cap-eq li, .cap-cols li { padding: 3px 0 3px 16px; position: relative; }
.cap-certs li::before, .cap-eq li::before, .cap-cols li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 10px; background: var(--flag); }
.cap-cols { display: grid; gap: 16px; }
.cap-cols h3 { font-size: 1rem; margin-bottom: 4px; }
.cap-contact a { font-weight: 650; }

.plain { max-width: 720px; margin: 0 auto; padding: 40px var(--gutter) 56px; }
.plain h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.4rem); }
.plain h2 { font-size: 1.4rem; margin-top: 28px; }
.plain p { margin-top: 12px; }

.nf { background: var(--clay); display: grid; gap: 12px; padding: 40px var(--gutter) 0; min-height: calc(100svh - var(--head-h)); align-content: space-between; }
.nf h1 { font-size: clamp(2.4rem, 1.4rem + 5vw, 5rem); max-width: 12ch; }
.nf p { margin-top: 12px; }
.nf-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.nf-art { max-width: 640px; }

/* ------------------------------------------------------------ wider screens */
@media (min-width: 560px) {
  .opts:not(.opts-row) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .certs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mt-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .cap-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 760px) {
  :root { --gutter: 28px; }
  .svc-group { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: start; }
  .svc-list { margin-top: 0; columns: 2; column-gap: 24px; }
  .svc-list li { break-inside: avoid; }
  .svc-clear { margin: 36px 0 0; padding: 32px; border-radius: var(--r-panel); }
  .svc-clear .svc-head h3 { font-size: clamp(2rem, 1.2rem + 2vw, 2.8rem); }
  .yard-more { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .site-foot { padding-bottom: 36px; }
  .foot-in { grid-template-columns: 1.4fr 1fr; }
  .cap-ids dl { grid-template-columns: 1fr 1fr; }
  .action-bar { display: none; }
  .js-story .stages { min-height: 116px; }
}

@media (min-width: 960px) {
  :root { --head-h: 72px; }
  .wm-name { font-size: 1.9rem; }
  .wm-sub { font-size: .72rem; }
  .menu-btn { display: none; }
  .nav { position: static; inset: auto; background: none; border: 0; padding: 0; transform: none; opacity: 1; visibility: visible; transition: none; margin-right: 8px; }
  .nav ul { display: flex; gap: 4px; }
  .nav a { min-height: 44px; padding: 0 12px; font-size: 1rem; border: 0; border-radius: var(--r); }
  .nav a:hover { background: var(--ink-3); }
  .head-call .hc-num { display: inline; }
  .head-call .hc-short { display: none; }
  .head-quote { display: inline-flex; background: var(--flag); color: var(--ink); min-height: 46px; }
  .head-quote:hover { background: var(--flag-hi); }

  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-areas: "copy copy" "matcher art"; column-gap: 32px; padding: 48px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) 0; align-items: end; }
  .hero-sub { max-width: 62ch; }
  .hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: var(--clay-deep); box-shadow: inset 0 2px 0 var(--clay-dark); }
  .hero-copy { padding: 0; }
  .hero-sub { font-size: 1.1875rem; margin-top: 18px; }
  .matcher { margin: 30px 0 56px; padding: 18px 0 0; max-width: 560px; }
  .hero-art { align-self: end; margin: 0 -40px 0 0; padding: 0; position: relative; z-index: 1; }
  .hero-art .t770 { width: 118%; max-width: 860px; margin-left: -4%; margin-bottom: calc(26px - min(5.9%, 43px)); }
  .hero-art .m-ground, .hero-art .m-strata { display: none; }

  .quote { padding: 72px 0 80px; }
  .quote-in { grid-template-columns: minmax(0, 1fr) 340px; column-gap: 48px; }
  .quote-head { grid-column: 1 / -1; }
  .ticket { display: block; position: sticky; top: calc(var(--head-h) + 20px); }
  .tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile-in { min-height: 56px; }
  .tile-in .ico { width: 24px; height: 24px; }
  .js .qnav { position: static; margin: 28px 0 0; padding: 0; background: none; }
  .qnav .btn { flex: 0 0 auto; min-width: 160px; }

  .services { padding: 80px 0 88px; }
  .yard { padding: 88px 0; }
  .rig { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 36px; align-items: center; }
  .story-pin { grid-template-columns: minmax(0, 1fr) 320px; column-gap: 40px; }
  .story-top { grid-column: 1 / -1; }
  .js-story .story-pin { grid-template-rows: auto minmax(0, 1fr); padding-top: 28px; padding-bottom: 28px; }
  .js-story .scene { align-items: center; }
  /* same rule as phones: one caption at a time, in a fixed box that never re-centres */
  .js-story .story-side { align-self: center; }
  .js-story .stages { display: block; min-height: 190px; }
  .contact { padding: 88px 0; }
  .nf { grid-template-columns: 1fr 1fr; align-items: end; padding-top: 80px; }
  .nf-copy { align-self: center; }
}

@media (min-width: 1240px) {
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------ entrance (first load only) */
.js .hero h1, .js .hero-sub, .js .matcher { animation: rise 520ms var(--ease-out) both; }
.js .hero-sub { animation-delay: 90ms; }
.js .matcher { animation-delay: 160ms; }
.js .hero-art .m-body, .js .hero-art .m-arm { animation: drive-in 700ms var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes drive-in { from { opacity: 0; translate: -40px 0; } }

/* ------------------------------------------------------------ page to page: the next page is graded in from the bottom */
@view-transition { navigation: auto; }
.site-head { view-transition-name: site-head; }
.action-bar { view-transition-name: action-bar; }
::view-transition-old(root) { animation: vt-out 200ms cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-in 460ms var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-14px); } }
@keyframes vt-in { from { clip-path: inset(100% 0 0 0); transform: translateY(24px); } }
/* browsers without cross-page view transitions get the same idea from the script */
.is-leaving main, .is-leaving .site-foot { opacity: 0; transform: translateY(-14px); transition: opacity 180ms, transform 180ms cubic-bezier(.4, 0, 1, 1); }
.is-arriving main { animation: vt-in 460ms var(--ease-out) both; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-head, .site-foot, .action-bar, .cap-hero, .skip { display: none !important; }
  body { background: #fff; }
  .cap { margin: 0; padding: 0; max-width: none; }
  .cap-block { break-inside: avoid; }
  a { text-decoration: none; }
}

/* ------------------------------------------------------------ sub pages */
.quote-page .quote { padding-top: 32px; }
.quote-page .quote-head h1, .services h1 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.6rem); }
.services-page .services { padding-top: 36px; }
.equipment-page .yard { padding-top: 40px; }
.yard-intro h1 { font-size: clamp(2rem, 1.1rem + 3.8vw, 4rem); max-width: 18ch; }
@media (min-width: 960px) {
  .quote-page .quote { padding-top: 56px; }
  .services-page .services, .equipment-page .yard { padding-top: 64px; }
}
