/* Slaters Contracting. The language is a civil drawing: survey paper, section
   hatching, dashed natural-surface lines and one marker-paint orange. Type is
   Archivo, pushed extra-wide and heavy for headings (the lettering painted on
   plant) and normal width for reading. */
@font-face { font-family: 'Archivo'; src: url(../fonts/archivo.woff2) format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
  --paper: #eeebe4; --paper-2: #e4dfd5; --ink: #17191b; --ink-2: #2b2e31; --muted: #5a5f64;
  --line: rgba(23,25,27,.14); --hot: #ff5b14; --hot-2: #e04a08;
  --dark: #17191b; --dark-2: #202326; --on-dark: #e9e6df; --on-dark-2: #a4a39d;
  --gut: clamp(16px, 4vw, 44px); --wrap: min(1240px, 100% - 2 * var(--gut));
  --ease: cubic-bezier(.2, .7, .1, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 clamp(16px, .55vw + 13.5px, 18px)/1.6 'Archivo', system-ui, sans-serif; font-stretch: 100%; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
.wrap { width: var(--wrap); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--hot); outline-offset: 3px; }

/* Wide, heavy display type: plant decal lettering */
.hero__h, .h2, .brand b, .h3, .fleet__card h3 { font-family: 'Archivo', sans-serif; font-stretch: 125%; text-transform: uppercase; letter-spacing: -.01em; }
.h2 { font-weight: 850; font-size: clamp(2.1rem, 4.6vw, 3.9rem); line-height: .95; margin: 0 0 1.1rem; text-wrap: balance; }
.h3 { font-weight: 800; font-size: 1.02rem; letter-spacing: .02em; margin: 2rem 0 .8rem; }
.lede { font-size: clamp(1.06rem, .5vw + .95rem, 1.24rem); color: var(--ink-2); max-width: 46ch; }

/* Buttons: squared, like a stencilled plate */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 1.4rem; border: 2px solid var(--ink); border-radius: 0; font-weight: 700; font-stretch: 112%; text-decoration: none; white-space: nowrap; letter-spacing: .01em; transition: background .2s, color .2s, transform .2s var(--ease); cursor: pointer; font-family: inherit; font-size: 1rem; }
.btn:active { transform: translateY(1px); }
.btn--hot { background: var(--hot); border-color: var(--hot); color: #160700; }
.btn--hot:hover { background: var(--hot-2); border-color: var(--hot-2); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--ink-2); }
.btn--sm { min-height: 42px; padding: 0 1rem; font-size: .92rem; }
.btn--wide { width: 100%; }

/* Header */
.nav { position: fixed; inset: 0 0 auto; z-index: 30; display: flex; align-items: center; gap: 1.6rem; padding: 12px var(--gut); transition: background .25s, box-shadow .25s; }
.nav.is-solid { background: rgba(238,235,228,.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--line); }
.brand { display: inline-flex; align-items: baseline; gap: .45rem; text-decoration: none; line-height: 1; }
.brand b { font-weight: 900; font-size: 1.45rem; letter-spacing: -.02em; }
.brand span { font-weight: 600; font-stretch: 112%; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.nav__links { display: none; gap: 1.8rem; margin-left: auto; font-weight: 600; }
.nav__links a { text-decoration: none; }
.nav__links a:hover { text-decoration: underline; text-decoration-color: var(--hot); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.nav .btn { margin-left: auto; }
@media (min-width: 900px) { .nav__links { display: flex; } .nav .btn { margin-left: 0; } }
@media (max-width: 430px) { .brand span { display: none; } }

/* Survey paper: a faint grid, only where the drawings live */
.hero, .sec--paper { background-color: var(--paper); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 32px 32px; background-position: -1px -1px; }
.hero, .sec--paper { --line: rgba(23,25,27,.055); }

/* Hero */
.hero { position: relative; }
.hero__stick { min-height: 100svh; display: flex; flex-direction: column; padding-top: calc(70px + clamp(16px, 4vh, 48px)); }
.hero__copy { display: grid; gap: clamp(16px, 2.5vw, 40px); align-items: end; }
@media (min-width: 1000px) { .hero__copy { grid-template-columns: 1.15fr .85fr; } }
.hero__h { margin: 0; font-weight: 900; font-size: clamp(3rem, 9.4vw, 8.8rem); line-height: .86; letter-spacing: -.03em; }
.hero__h span { display: inline-block; }
.hero__h .hot { color: var(--hot); }
.hero__sub { font-size: clamp(1.02rem, .45vw + .92rem, 1.18rem); color: var(--ink-2); max-width: 42ch; margin-bottom: 1.4rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .7rem; }
.section-draw { flex: 1; display: flex; align-items: flex-end; margin-top: clamp(12px, 3vh, 36px); min-height: 0; }
#sect { width: 100%; height: auto; max-height: 62vh; overflow: visible; }
@media (min-width: 900px) {
  .hero { height: 250vh; }
  .hero__stick { position: sticky; top: 0; height: 100vh; min-height: 640px; }
  .section-draw { min-height: 260px; }
  #sect { height: 100%; max-height: none; }
}
@media (max-width: 899px) { .section-draw { margin-inline: calc(var(--gut) * -1 + 0px); } }
.lbls text { font: 600 19px 'Archivo', sans-serif; fill: var(--ink); }
.lbls text.hot { fill: var(--hot-2); }
.lbls line, .lbls path { stroke: var(--hot); stroke-width: 2; fill: none; }
@media (max-width: 899px) { .lbls text { font-size: 30px; } }
#s-labels > g, #s-house, #s-pegs { transition: opacity .35s; }

/* Sections */
.sec { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.sec--rule { border-top: 2px solid var(--ink); }
.sec--dark { background: var(--dark); color: var(--on-dark); }
.sec--dark .lede { color: var(--on-dark-2); }

/* Retaining walls */
.walls { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 980px) { .walls { grid-template-columns: .9fr 1.1fr; } }
.parts { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.parts li { border-bottom: 1px solid rgba(23,25,27,.18); }
.parts button { width: 100%; text-align: left; background: none; border: 0; padding: .85rem .2rem .85rem 1.8rem; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; position: relative; transition: color .2s, padding .25s var(--ease); }
.parts button::before { content: ''; position: absolute; left: .2rem; top: 50%; width: 12px; height: 2px; background: var(--ink); transition: background .2s, width .25s var(--ease); }
.parts button:hover, .parts button[aria-pressed="true"] { color: var(--hot-2); }
.parts button[aria-pressed="true"]::before, .parts button:hover::before { background: var(--hot); width: 18px; }
.walls__draw { margin: 0; }
.walls__draw figcaption, .yard__note { font-size: .88rem; color: var(--muted); margin-top: .6rem; }
#wall-sect .part { transition: opacity .3s; }
#wall-sect.is-focus .part { opacity: .22; }
#wall-sect.is-focus .part.is-on { opacity: 1; }
#wall-sect .tag { font: 600 15px 'Archivo', sans-serif; fill: var(--ink); }
#wall-sect .lead { stroke: var(--ink); stroke-width: 1.3; fill: none; }
#wall-sect .part.is-on .tag { fill: var(--hot-2); }
#wall-sect .part.is-on .lead { stroke: var(--hot); stroke-width: 2; }

/* Earthworks */
.earth { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 980px) { .earth { grid-template-columns: 1.1fr .9fr; } }
.earth__draw { margin: 0; background: #f6f3ec; border: 2px solid var(--ink); }
.ticks { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: .55rem; }
.ticks li { padding-left: 1.9rem; position: relative; font-weight: 600; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .32em; width: 14px; height: 14px; border: 2px solid var(--ink); background: linear-gradient(135deg, transparent 45%, var(--hot) 45%, var(--hot) 58%, transparent 58%); }
#plan .contour { fill: none; stroke: #7d7266; stroke-width: 1.4; transition: opacity 1.2s var(--ease); }
#plan .contour.major { stroke-width: 2.2; }
#plan .lot { fill: #efe9dc; stroke: var(--ink); stroke-width: 2; }
#plan .pad { fill: #cbbfa9; stroke: var(--ink); stroke-width: 1.2; }
#plan .road { fill: #b9b4aa; stroke: var(--ink); stroke-width: 2; }
#plan .road-line { stroke: #f6f3ec; stroke-width: 2; stroke-dasharray: 14 12; fill: none; }
#plan .new { opacity: 0; transition: opacity .7s var(--ease), transform .8s var(--ease); transform-box: fill-box; transform-origin: center; transform: scale(.94); }
#plan.is-built .contour { opacity: .55; }
#plan.is-built .new { opacity: 1; transform: none; }

/* Plant hire */
.hire__head { display: grid; gap: .5rem 3rem; align-items: end; margin-bottom: clamp(28px, 4vw, 52px); }
@media (min-width: 980px) { .hire__head { grid-template-columns: auto 1fr; } .hire__head .lede { margin-bottom: 1.4rem; } }
.yard { position: relative; border-bottom: 2px solid #3a3e42; }
.yard__scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #3a3e42 transparent; padding: 12px 0 0; cursor: grab; }
#yard { height: clamp(220px, 26vw, 330px); width: auto; max-width: none; }
@media (min-width: 1100px) { #yard { width: 100%; height: auto; } .yard__scroll { overflow: visible; cursor: default; } }
.yard__note { color: var(--on-dark-2); margin: .7rem 0 0; }
#yard .mach { cursor: pointer; }
#yard .mach .body { fill: #2a2e32; stroke: #d9d5cc; stroke-width: 2.2; stroke-linejoin: round; transition: fill .25s, stroke .25s; }
#yard .mach .arm { fill: none; stroke: #d9d5cc; stroke-linecap: round; transition: stroke .25s; }
#yard .mach .glass { fill: #3d454c; stroke: #d9d5cc; stroke-width: 1.4; }
#yard .mach .wheel { fill: #111315; stroke: #d9d5cc; stroke-width: 2; }
#yard .mach text { font: 600 22px 'Archivo', sans-serif; fill: var(--on-dark-2); transition: fill .25s; }
#yard .mach:hover .body, #yard .mach.is-on .body { fill: #3a2417; stroke: var(--hot); }
#yard .mach:hover .arm, #yard .mach.is-on .arm { stroke: var(--hot); }
#yard .mach.is-on text { fill: var(--hot); }
#yard .ground { stroke: #6d6a64; stroke-width: 2; }
.fleet { display: grid; gap: 24px; margin-top: clamp(24px, 4vw, 44px); }
@media (min-width: 900px) { .fleet { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; } }
.fleet__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fleet__list button { font: inherit; font-weight: 600; font-stretch: 110%; color: var(--on-dark); background: transparent; border: 1.5px solid #4a4f54; padding: .55rem .9rem; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.fleet__list button:hover { border-color: var(--on-dark); }
.fleet__list button[aria-pressed="true"] { background: var(--hot); border-color: var(--hot); color: #160700; }
.fleet__card { border-left: 3px solid var(--hot); padding: .2rem 0 .2rem 1.2rem; min-height: 8.5rem; }
.fleet__card h3 { margin: 0 0 .5rem; font-weight: 850; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1; }
.fleet__card p { margin: 0 0 .9rem; color: var(--on-dark-2); max-width: 44ch; }
.fleet__card a { color: var(--hot); font-weight: 700; text-underline-offset: 4px; }

/* Quote */
.quote { display: grid; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (min-width: 980px) { .quote { grid-template-columns: .85fr 1.15fr; } .quote__copy { position: sticky; top: 110px; } }
.form { background: #f7f5f0; border: 2px solid var(--ink); padding: clamp(18px, 3vw, 32px); display: grid; gap: 1.2rem; }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.chips legend { font-weight: 700; margin-bottom: .7rem; padding: 0; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 1rem; border: 2px solid var(--ink); font-weight: 600; cursor: pointer; background: #fff; transition: background .2s, color .2s; }
.chips input:checked + span { background: var(--ink); color: var(--paper); box-shadow: inset 0 -4px 0 var(--hot); }
.chips input:focus-visible + span { outline: 3px solid var(--hot); outline-offset: 2px; }
.form__grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form__grid { grid-template-columns: 1fr 1fr; } .form__grid .span2 { grid-column: 1 / -1; } }
.form label { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; }
.form input:not([type=radio]), .form select, .form textarea { width: 100%; font: inherit; font-weight: 400; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 0; padding: .7rem .8rem; min-height: 50px; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--hot); outline-offset: 1px; }
.form__msg { margin: 0; font-weight: 600; }
.form__msg:empty { display: none; }
.form__msg.is-err { color: #b3261e; }

/* Footer */
.foot { background: var(--dark); color: var(--on-dark-2); padding: 2.6rem 0 2.8rem; }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2.4rem; }
.foot__in p { margin: 0; }
.brand--foot b { color: var(--on-dark); }
.brand--foot span { color: var(--on-dark-2); }
.foot__links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.foot a { color: var(--on-dark); text-decoration: none; font-weight: 600; }
.foot a:hover { color: var(--hot); }
.foot__credit { margin-left: auto !important; font-size: .88rem; }

/* Reveals: on only once the script is running */
.js [data-rv] { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
.js [data-rv].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-rv] { opacity: 1; transform: none; transition: none; } #plan .new, #plan .contour { transition: none; } }
@media (max-width: 899px) { .lbls .dsk { display: none; } }
/* Phones: no full-screen stage, the section sits right under the buttons */
@media (max-width: 899px) {
  .hero__stick { min-height: 0; padding-bottom: 0; }
  .section-draw { margin-top: 36px; }
  #sect { max-height: none; }
}
@media (max-width: 640px) { #wall-sect .tag { font-size: 24px; } }
