/* United Staffing Services — site styles
   Built by LeadzBay. One stylesheet for all pages. */

/* ---------- Fonts (self-hosted, SIL OFL — see assets/fonts/OFL.txt) ---------- */
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 800; font-display: swap; src: url("../fonts/barlow-condensed-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  /* Brand: the logo is pure white on black. Hi-vis amber is the one accent —
     change --hivis to re-skin every button, focus ring, and highlight. */
  --black: #000000;
  --graphite: #17191c;
  --steel: #2c3035;
  --steel-light: #454b52;
  --frost: #f2f3f0;
  --fog: #a7adb4;
  --ink: #101214;          /* text on light sections */
  --ink-soft: #4a5057;
  --hivis: #ffb81c;
  --hivis-deep: #e59b00;
  --error: #ff6b5b;
  --error-on-light: #b42318;
  --ok: #5fd68a;

  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Barlow", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Classic typographic scale: 14 16 18 21 24 36 48 60 72 */
  --fs-xs: 0.875rem;
  --fs-s: 1rem;
  --fs-b: 1.125rem;
  --fs-m: 1.3125rem;
  --fs-l: 1.5rem;
  --fs-xl: 2.25rem;
  --fs-2xl: 3rem;
  --fs-3xl: 3.75rem;
  --fs-4xl: 4.5rem;

  --wrap: 75rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --section: clamp(4rem, 9vw, 8rem);
  --nav-h: 4.5rem;
  --skew: -12deg;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 1rem); }
body {
  margin: 0;
  background: var(--black);
  color: var(--frost);
  font-family: var(--body);
  font-size: var(--fs-b);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; max-width: 68ch; }
h1, h2, h3 { font-family: var(--display); font-style: italic; font-weight: 800; line-height: 0.95; margin: 0; letter-spacing: -0.005em; }
h2 { font-size: clamp(var(--fs-xl), 5.5vw, var(--fs-3xl)); font-weight: 800; }
h3 { font-size: clamp(var(--fs-l), 3vw, var(--fs-xl)); font-weight: 700; }
::selection { background: var(--hivis); color: var(--black); }

:focus-visible { outline: 3px solid var(--hivis); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.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; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--hivis); color: var(--black); padding: .75rem 1rem; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 1rem; }

/* ---------- Buttons: slanted like the logo's italic wordmark ---------- */
.btn {
  --btn-bg: var(--hivis);
  --btn-fg: var(--black);
  --btn-border: var(--hivis);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 3.25rem;
  padding: .7rem 1.6rem;
  border: 0;
  background: transparent;
  color: var(--btn-fg);
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: var(--fs-m);
  line-height: 1;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-bg);
  border: 2px solid var(--btn-border);
  transform: skewX(var(--skew));
  transition: background-color .15s ease, border-color .15s ease;
}
.btn:hover::before { --btn-bg: var(--hivis-deep); --btn-border: var(--hivis-deep); }
.btn:active { transform: translateY(1px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--frost); --btn-border: rgba(242, 243, 240, .7); }
.btn--ghost:hover::before { --btn-bg: rgba(242, 243, 240, .1); --btn-border: var(--frost); }
.btn--dark { --btn-bg: var(--black); --btn-fg: var(--frost); --btn-border: var(--black); }
.btn--dark:hover::before { --btn-bg: var(--graphite); --btn-border: var(--graphite); }
.btn--ink-ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-border: var(--ink); }
.btn--ink-ghost:hover::before { --btn-bg: rgba(16, 18, 20, .08); --btn-border: var(--ink); }
.btn[disabled] { cursor: progress; opacity: .7; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  transition: background-color .25s ease, box-shadow .25s ease;
}
.nav.is-solid, .nav.is-open { background: var(--black); box-shadow: 0 1px 0 var(--steel); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; margin-right: auto; }
.brand img { width: 2.6rem; height: auto; }
.brand span {
  font-family: var(--display); font-style: italic; font-weight: 800;
  font-size: 1.35rem; line-height: 1; text-transform: uppercase; letter-spacing: .01em;
}
.nav__links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav__links a:not(.btn) {
  font-family: var(--display); font-style: italic; font-weight: 600; font-size: var(--fs-m);
  text-decoration: none; padding: .25rem 0; border-bottom: 2px solid transparent;
}
.nav__links a:not(.btn):hover, .nav__links a:not(.btn)[aria-current="page"] { border-bottom-color: var(--hivis); }
.nav__links .btn { min-height: 2.75rem; padding: .55rem 1.25rem; font-size: var(--fs-b); }
.nav__toggle {
  display: none; width: 3rem; height: 3rem; margin-right: -.5rem; padding: 0; border: 0;
  background: transparent; color: var(--frost); cursor: pointer;
}
.nav__toggle svg { width: 1.75rem; height: 1.75rem; margin: auto; }
.nav__toggle .icon-close { display: none; }
.nav.is-open .nav__toggle .icon-open { display: none; }
.nav.is-open .nav__toggle .icon-close { display: block; }

@media (max-width: 52rem) {
  .brand span { font-size: 1.1rem; }
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 0 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 1.5rem var(--gutter) 2rem;
    background: var(--black);
    visibility: hidden; opacity: 0; transform: translateY(-.5rem);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .nav.is-open .nav__links { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav__links li { width: 100%; }
  .nav__links a:not(.btn) { display: block; font-size: var(--fs-xl); padding: .6rem 0; border-bottom: 1px solid var(--steel); }
  .nav__links a:not(.btn)[aria-current="page"] { color: var(--hivis); border-bottom-color: var(--steel); }
  .nav__links li:last-child { margin-top: 1.75rem; }
  .nav__links .btn { width: 100%; min-height: 3.5rem; font-size: var(--fs-l); }
}
@media (max-width: 22rem) { .brand span { display: none; } }

/* ---------- Home hero: full-bleed drone video ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--black);
  isolation: isolate;
}
.hero__media, .hero__fallback, .hero__video, .hero__shade, .hero__grain { position: absolute; inset: 0; }
.hero__media { z-index: -1; }
.hero__fallback {
  background: url("../img/hero-poster.jpg") center / cover no-repeat;
  transform: scale(1.06);
  animation: drift 40s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: scale(1.06) translate3d(-1%, 0, 0); } to { transform: scale(1.14) translate3d(1.5%, -1%, 0); } }
.hero__video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero.has-video .hero__video { opacity: 1; }
.hero__shade {
  /* The drone footage has bright sky and sunlit gravel; this keeps white text readable in every scene. */
  background:
    linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.62) 40%, rgba(0,0,0,.38) 72%, rgba(0,0,0,.55) 100%),
    linear-gradient(to right, rgba(0,0,0,.6) 0%, rgba(0,0,0,.15) 65%, rgba(0,0,0,0) 100%);
}
@media (max-width: 48rem) {
  /* On phones the text covers most of the frame, so dim it evenly. */
  .hero__shade { background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.62) 45%, rgba(0,0,0,.55) 100%); }
}
.hero__title, .hero__lede { text-shadow: 0 1px 2px rgba(0,0,0,.35), 0 2px 24px rgba(0,0,0,.45); }
.hero__grain {
  opacity: .09; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__content { position: relative; width: 100%; padding-top: calc(var(--nav-h) + 3rem); padding-bottom: clamp(3rem, 8vh, 6rem); }
.hero__title {
  font-size: clamp(2.9rem, 7vw, 7rem);
  font-weight: 800;
  line-height: .86;
  text-transform: uppercase;
  letter-spacing: -.01em;
  margin-bottom: clamp(1.25rem, 3vh, 2rem);
}
.hero__title .line { display: block; overflow: hidden; padding: 0 .08em .04em 0; margin-right: -.08em; }
.hero__title .line > span { display: block; }
.hero__lede { font-size: clamp(var(--fs-b), 1.5vw, var(--fs-m)); color: var(--frost); max-width: 44rem; margin: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; }

/* One orchestrated entrance: headline lines rise out of their own mask. */
.js .hero__title .line > span { transform: translateY(105%); }
.js .hero__lede, .js .hero__actions { opacity: 0; }
.js .is-ready .hero__title .line > span { transform: none; transition: transform .9s cubic-bezier(.2,.75,.2,1); }
.js .is-ready .hero__title .line:nth-child(2) > span { transition-delay: .12s; }
.js .is-ready .hero__lede, .js .is-ready .hero__actions { opacity: 1; transition: opacity .8s ease .55s; }

.video-toggle {
  position: absolute; right: var(--gutter); bottom: clamp(1.5rem, 4vh, 2.5rem); z-index: 2;
  display: none; align-items: center; gap: .5rem;
  min-height: 2.75rem; padding: .5rem .9rem;
  border: 1px solid rgba(242,243,240,.45); border-radius: 999px;
  background: rgba(0,0,0,.35); color: var(--frost);
  font: 500 var(--fs-xs)/1 var(--body); cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero.has-video .video-toggle { display: inline-flex; }
.video-toggle svg { width: 1rem; height: 1rem; }
.video-toggle .icon-play { display: none; }
.video-toggle[aria-pressed="true"] .icon-play { display: block; }
.video-toggle[aria-pressed="true"] .icon-pause { display: none; }
@media (max-width: 40rem) {
  .hero__actions .btn { width: 100%; }
  .video-toggle { top: calc(var(--nav-h) + .75rem); bottom: auto; }
}

/* ---------- Values marquee (the logo tagline) ---------- */
.values {
  overflow: hidden;
  background: var(--black);
  border-block: 1px solid var(--steel);
  padding: clamp(1.25rem, 3vw, 2rem) 0;
}
.values__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.values__group { display: flex; align-items: center; flex-shrink: 0; }
.values__word {
  font-family: var(--display); font-style: italic; font-weight: 800;
  font-size: clamp(3rem, 8vw, 6.5rem); line-height: 1; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1.5px rgba(242,243,240,.6);
  padding: 0 .35em; white-space: nowrap;
}
.values__dot { width: .6em; height: .6em; font-size: clamp(3rem, 8vw, 6.5rem); flex-shrink: 0; }
.values__dot::before { content: ""; display: block; width: .22em; height: .22em; margin: .19em auto 0; border-radius: 50%; background: var(--hivis); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Why our contractors (light section) ---------- */
.why { background: var(--frost); color: var(--ink); padding: var(--section) 0; }
.why__head { max-width: 46rem; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.why__head h2 { margin-bottom: 1.25rem; }
.why__head p { color: var(--ink-soft); font-size: var(--fs-m); margin: 0; }
.why__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 4.5rem); }
.why__grid li { position: relative; padding: 1.75rem 0 2.25rem 2.25rem; border-top: 2px solid var(--ink); }
.why__grid li::before { content: ""; position: absolute; left: .15rem; top: 2.35rem; width: 1rem; height: .65rem; background: var(--hivis); transform: skewX(var(--skew)); }
.why__grid h3 { font-size: clamp(var(--fs-l), 3vw, var(--fs-xl)); margin-bottom: .75rem; }
.why__grid p { color: var(--ink-soft); margin: 0; }
@media (max-width: 48rem) { .why__grid { grid-template-columns: 1fr; } }

/* ---------- Statement ---------- */
.statement { background: var(--graphite); padding: clamp(4rem, 9vw, 7rem) 0; }
.statement p {
  font-family: var(--display); font-style: italic; font-weight: 600;
  font-size: clamp(1.75rem, 3.6vw, 2.9rem); line-height: 1.12;
  max-width: 30ch; margin: 0;
}

/* ---------- Closing call to action ---------- */
.cta { background: var(--hivis); color: var(--black); padding: clamp(3.5rem, 8vw, 6rem) 0; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta h2 { font-size: clamp(var(--fs-2xl), 7vw, var(--fs-4xl)); }
.cta p { margin: .75rem 0 0; font-size: var(--fs-m); font-weight: 500; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; }
@media (max-width: 40rem) { .cta__actions, .cta__actions .btn { width: 100%; } }

/* ---------- Footer ---------- */
.footer { background: var(--black); color: var(--fog); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; font-size: var(--fs-s); }
.footer__grid { display: grid; grid-template-columns: auto 1fr 1fr; gap: 2.5rem clamp(2rem, 6vw, 5rem); align-items: start; }
.footer__logo { width: 9rem; }
.footer h2 { font-size: var(--fs-l); color: var(--frost); margin-bottom: .9rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 0 0 .5rem; }
.footer__people li { margin-bottom: 1rem; }
.footer__name { display: block; color: var(--frost); font-weight: 600; }
.footer__title { display: block; color: var(--fog); font-size: var(--fs-xs); margin-bottom: .15rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--frost); text-decoration: underline; text-underline-offset: .2em; }
.footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--steel); font-size: var(--fs-xs); }
.footer__base p { margin: 0; }
.todo { color: var(--hivis); }
@media (max-width: 48rem) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ---------- Inner page header ---------- */
.page-head {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(2.5rem, 6vw, 4.5rem);
  background: var(--black);
  border-bottom: 1px solid var(--steel);
}
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to right, rgba(0,0,0,.95) 30%, rgba(0,0,0,.6)), url("../img/page-head-bg.jpg") center 40% / cover no-repeat;
}
.page-head__mark { position: absolute; right: var(--gutter); bottom: -2.5rem; width: clamp(10rem, 24vw, 20rem); opacity: .08; z-index: -1; }
.page-head h1 { font-size: clamp(var(--fs-2xl), 8vw, 6rem); text-transform: uppercase; line-height: .88; margin-bottom: 1.25rem; max-width: 14ch; }
.page-head p { font-size: clamp(var(--fs-b), 1.6vw, var(--fs-m)); max-width: 40rem; margin: 0; }

/* ---------- Placeholder page body ---------- */
.placeholder { background: var(--graphite); padding: clamp(3rem, 7vw, 5rem) 0 var(--section); }
.placeholder p { font-size: var(--fs-m); margin-bottom: 2rem; }

/* ---------- Photo hero (Iron Recert): same build as the home hero, with a still photo ---------- */
.hero__media picture { display: contents; }
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 0% 50%; }
/* The subject (threaded ends and gauge) sits left of centre, so the copy goes bottom-right over open floor. */
.hero--photo .hero__content { display: flex; justify-content: flex-end; }
.hero--photo .hero__copy { width: 100%; max-width: 40rem; }
.hero--photo .hero__title { font-size: clamp(2.6rem, 4.4vw, 4.1rem); }
.hero--photo .hero__lede { margin-bottom: clamp(1.25rem, 3vh, 2rem); }
.hero--photo .hero__shade {
  background:
    linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.6) 26%, rgba(0,0,0,.12) 52%, rgba(0,0,0,0) 70%),
    linear-gradient(to left, rgba(0,0,0,.5) 0%, rgba(0,0,0,.15) 40%, rgba(0,0,0,0) 65%),
    linear-gradient(to bottom, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 24%);
}
.js .hero__eyebrow { opacity: 0; }
.js .is-ready .hero__eyebrow { opacity: 1; transition: opacity .8s ease .4s; }
@media (max-width: 48rem) {
  .hero--photo { min-height: 80vh; min-height: 80svh; }
  .hero__photo { object-position: 3% 50%; }
  .hero--photo .hero__shade {
    background:
      linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.7) 24%, rgba(0,0,0,.15) 50%, rgba(0,0,0,0) 65%),
      linear-gradient(to bottom, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 26%);
  }
}

/* ---------- Eyebrow label: small caps with the slanted amber tick ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem;
  margin: 0 0 1rem; font: 600 var(--fs-xs)/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--hivis);
}
.eyebrow::before { content: ""; width: 1rem; height: .65rem; background: var(--hivis); transform: skewX(var(--skew)); }

/* ---------- Intro: heading beside the service copy ---------- */
.intro { background: var(--graphite); padding: var(--section) 0; }
.intro__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.intro h2 { font-size: clamp(var(--fs-xl), 4.5vw, var(--fs-3xl)); max-width: 14ch; }
.intro__copy p { font-size: clamp(var(--fs-b), 1.5vw, var(--fs-m)); margin: 0; }
.intro__copy p + p { margin-top: 1.25rem; }
@media (max-width: 56rem) { .intro__grid { grid-template-columns: 1fr; } }

/* Three-across capability grid on wide screens (falls back to the two-column why grid) */
@media (min-width: 64rem) { .why__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Forms ---------- */
.form-section { background: var(--graphite); padding: clamp(2.5rem, 6vw, 5rem) 0 var(--section); }
.form-layout { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 46rem); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.form-layout--single { grid-template-columns: minmax(0, 46rem); }
@media (max-width: 56rem) { .form-layout { grid-template-columns: 1fr; } }

.notice {
  display: flex; gap: .75rem; align-items: flex-start;
  border-left: 4px solid var(--hivis); background: rgba(255,184,28,.08);
  padding: .9rem 1rem; margin: 0 0 2rem; font-size: var(--fs-s);
}
.notice p { margin: 0; }
.notice strong { color: var(--hivis); }

/* Step tracker: a real sequence, so it's numbered. */
.stepper { list-style: none; margin: 0; padding: 0; position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.stepper li { display: flex; align-items: center; gap: .9rem; padding: .7rem 0; color: var(--fog); font-weight: 500; }
.stepper__num {
  position: relative; isolation: isolate; display: grid; place-items: center;
  width: 2.25rem; height: 2.25rem; flex-shrink: 0;
  font-family: var(--display); font-style: italic; font-weight: 800; font-size: var(--fs-m);
}
.stepper__num::before { content: ""; position: absolute; inset: 0; z-index: -1; border: 2px solid var(--steel-light); transform: skewX(var(--skew)); }
.stepper li.is-current { color: var(--frost); }
.stepper li.is-current .stepper__num { color: var(--black); }
.stepper li.is-current .stepper__num::before { background: var(--hivis); border-color: var(--hivis); }
.stepper li.is-done .stepper__num::before { border-color: var(--frost); }
.stepper li.is-done { color: var(--frost); }
@media (max-width: 56rem) {
  .stepper { position: static; display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
  .stepper li { flex-direction: column; align-items: flex-start; gap: .4rem; padding: 0; font-size: var(--fs-xs); line-height: 1.25; }
  .stepper li span:last-child { display: none; }
  .stepper li.is-current span:last-child { display: block; }
}
.no-js .stepper { display: none; }

.form-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.js .form-step:not(.is-active) { display: none; }
.no-js .form-step + .form-step { margin-top: 3.5rem; }
.form-step__title { display: block; font-family: var(--display); font-style: italic; font-weight: 800; font-size: clamp(var(--fs-xl), 4.5vw, var(--fs-2xl)); line-height: 1; margin: 0 0 .5rem; padding: 0; }
.form-step__title:focus { outline: none; }
.form-step__intro { color: var(--fog); margin: 0 0 2rem; }

.fields { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.5rem 1.25rem; }
.field { grid-column: span 6; display: flex; flex-direction: column; gap: .45rem; min-width: 0; }
.field--half { grid-column: span 3; }
.field--third { grid-column: span 2; }
@media (max-width: 36rem) { .field--half, .field--third { grid-column: span 6; } .field--spacer { display: none; } }

.field > label, .group > legend { font-weight: 600; font-size: var(--fs-s); color: var(--frost); padding: 0; }
.req { color: var(--hivis); }
.hint { font-size: var(--fs-xs); color: var(--fog); margin: -.15rem 0 0; }

.input, .select, .textarea {
  width: 100%; min-height: 3.25rem;
  padding: .75rem .9rem;
  border: 1.5px solid var(--steel-light); border-radius: 0;
  background: var(--black); color: var(--frost);
  font: 400 var(--fs-b)/1.4 var(--body);
  transition: border-color .15s ease;
  appearance: none; -webkit-appearance: none;
}
.textarea { min-height: 9rem; resize: vertical; }
.select {
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2f3f0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; background-size: 1.1rem;
}
.input::placeholder, .textarea::placeholder { color: #6d747c; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--fog); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--hivis); box-shadow: 0 0 0 1px var(--hivis); }
input[type="date"].input { color-scheme: dark; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--error); }

.group { border: 0; margin: 0; padding: 0; min-width: 0; grid-column: span 6; }
.group > legend { margin-bottom: .6rem; }
.choices { display: flex; flex-wrap: wrap; gap: .6rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice label {
  display: inline-flex; align-items: center; gap: .6rem;
  min-height: 3rem; padding: .6rem 1rem;
  border: 1.5px solid var(--steel-light); background: var(--black);
  font-weight: 500; cursor: pointer; user-select: none;
  transition: border-color .15s ease, background-color .15s ease;
}
.choice label::before {
  content: ""; width: 1.1rem; height: 1.1rem; flex-shrink: 0;
  border: 2px solid var(--fog); background: transparent center / 75% no-repeat;
}
.choice input[type="radio"] + label::before { border-radius: 50%; }
.choice label:hover { border-color: var(--fog); }
.choice input:checked + label { border-color: var(--hivis); background: rgba(255,184,28,.1); }
.choice input:checked + label::before {
  border-color: var(--hivis); background-color: var(--hivis);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E");
}
.choice input:focus-visible + label { outline: 3px solid var(--hivis); outline-offset: 2px; }
.group.has-error .choice label { border-color: var(--error); }

.check { display: flex; gap: .85rem; align-items: flex-start; grid-column: span 6; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box {
  width: 1.5rem; height: 1.5rem; flex-shrink: 0; margin-top: .1rem;
  border: 2px solid var(--fog); background: var(--black) center / 75% no-repeat;
}
.check input:checked + .check__box {
  border-color: var(--hivis); background-color: var(--hivis);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E");
}
.check input:focus-visible + .check__box { outline: 3px solid var(--hivis); outline-offset: 2px; }
.check.has-error .check__box, .check-field.has-error .check__box { border-color: var(--error); }
.check-field .error { margin: .4rem 0 0 2.35rem; }
.check-field { grid-column: span 6; }

.file {
  position: relative; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 1.25rem; border: 1.5px dashed var(--steel-light); background: var(--black);
}
.file input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file__btn { pointer-events: none; min-height: 2.75rem; font-size: var(--fs-b); }
.file__name { color: var(--fog); font-size: var(--fs-s); overflow-wrap: anywhere; }
.file:hover { border-color: var(--fog); }
.file:focus-within { border-color: var(--hivis); border-style: solid; }
.field.has-error .file { border-color: var(--error); }

.error { color: var(--error); font-size: var(--fs-xs); font-weight: 500; margin: 0; }
.error:empty { display: none; }
.is-hidden { display: none !important; }

.form-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 2.75rem; padding-top: 1.75rem; border-top: 1px solid var(--steel); }
.form-nav__back { margin-right: auto; }
.form-nav .btn--ghost { --btn-border: var(--steel-light); }
.no-js .js-only { display: none; }
@media (max-width: 36rem) { .form-nav { flex-direction: column-reverse; align-items: stretch; } .form-nav .btn { width: 100%; } }

.form-alert { margin-top: 1.25rem; padding: .9rem 1rem; border-left: 4px solid var(--error); background: rgba(255,107,91,.08); }
.form-alert p { margin: 0; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.done { padding: 1rem 0 0; }
.done:focus { outline: none; }
.done__mark { width: 4rem; height: 4rem; color: var(--black); margin-bottom: 1.5rem; position: relative; isolation: isolate; display: grid; place-items: center; }
.done__mark::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hivis); transform: skewX(var(--skew)); }
.done__mark svg { width: 2rem; height: 2rem; }
.done h2 { margin-bottom: 1rem; }
.done p { color: var(--fog); font-size: var(--fs-m); }

/* Contractor page: onboarding outline */
.outline { background: var(--frost); color: var(--ink); padding: var(--section) 0; }
.outline h2 { margin-bottom: 1rem; }
.outline__intro { color: var(--ink-soft); font-size: var(--fs-m); max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.outline__list { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.outline__list li { counter-increment: step; padding: 1.5rem 1.5rem 0 0; }
.outline__list li + li { padding-left: 1.5rem; border-left: 1px solid rgba(16,18,20,.18); }
.outline__list li::before { content: counter(step); display: block; font-family: var(--display); font-style: italic; font-weight: 800; font-size: var(--fs-3xl); line-height: .9; margin-bottom: .75rem; }
.outline__list h3 { font-size: var(--fs-l); margin-bottom: .5rem; }
.outline__list p { color: var(--ink-soft); font-size: var(--fs-s); margin: 0; }
@media (max-width: 56rem) {
  .outline__list { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .outline__list li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 36rem) {
  .outline__list { grid-template-columns: 1fr; }
  .outline__list li, .outline__list li + li { padding: 1.5rem 0; border-left: 0; border-bottom: 1px solid rgba(16,18,20,.18); }
  .outline__list li::before { font-size: var(--fs-2xl); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .hero__title .line > span { transform: none; }
  .js .hero__lede, .js .hero__actions { opacity: 1; }
  .values__track { width: auto; flex-wrap: wrap; }
  .values__group[aria-hidden="true"] { display: none; }
}
