/* MSS site, rebuild 4 (13 Nov 2026), on Growth's 11 Nov direction: one
   container, one spacing scale, even grids, depth on the hero photo only.
   Motion: GSAP scroll reveals in app.js (none under reduced motion) and the
   CSS statement band. Every colour and font comes from the tokens below. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --paper: #f3f5f7;
  --paper-2: #ffffff;
  --paper-3: #e6eaee;
  --ink: #142231;
  --ink-2: #1d3044;
  --muted: #4a5866;
  --on-ink: #e9eef3;
  --on-ink-muted: #b5c1cc;
  --galv: #8e9aa4;
  --rule: #d3dae0;
  --accent: #0b74bb;
  --accent-strong: #08578c;
  --accent-ink: #ffffff;
  --accent-soft: #eaf2fa;
  --error: #a3261c;
  --ok: #1d6b34;
  --scrim: rgba(20, 34, 49, 0.78);
  --grid: #dfe8f1;        /* blueprint squares on light bands (Kevin's board) */
  --grid-dark: rgba(181, 193, 204, 0.08); /* the same grid on the dark hero */

  --font: "Archivo", "Arial Narrow", Arial, sans-serif;
  --display-stretch: 80%;
  --text-xs: 0.8125rem;
  --text-sm: 0.875rem;
  --text-base: 1.0625rem;
  --text-md: 1.25rem;
  --text-lg: clamp(1.75rem, 3vw, 2.5rem);
  --text-xl: clamp(2.25rem, 4.6vw, 3.75rem);

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px;
  --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-24: 96px;

  --section: var(--s-24);
  --gap: var(--s-6);
  --control-h: 48px;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(20, 34, 49, 0.06), 0 4px 16px rgba(20, 34, 49, 0.06);
}
@media (max-width: 767px) { :root { --section: var(--s-16); --gap: var(--s-4); } }

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--text-base) / 1.55 var(--font); }
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 800; font-stretch: var(--display-stretch); letter-spacing: -0.01em; overflow-wrap: anywhere; min-width: 0; }
h2 { font-size: var(--text-lg); line-height: 1.1; }
h3 { font-size: var(--text-md); line-height: 1.2; font-weight: 700; font-stretch: 90%; }
p { margin: 0; }
a { color: var(--accent-strong); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { width: min(1200px, 100% - 2 * var(--s-6)); margin-inline: auto; }

.skip { position: absolute; left: var(--s-4); top: -100px; z-index: 20; padding: var(--s-2) var(--s-4); background: var(--ink); color: var(--on-ink); }
.skip:focus { top: var(--s-4); }

/* Utility bar: phone and email from Kevin's header spec. */
.util { background: var(--ink); color: var(--on-ink); font-size: var(--text-sm); }
.util__row { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: var(--s-2) var(--s-6); padding-block: var(--s-2); }
.util a { color: var(--on-ink); font-weight: 600; text-decoration: none; }
.util a:hover { color: var(--paper-2); text-decoration: underline; }
.util a:focus-visible { outline-color: var(--on-ink); }
@media (max-width: 639px) { .util__row { justify-content: center; } .util a[href^="mailto"] { display: none; } }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: var(--paper-2); box-shadow: 0 1px 0 var(--rule); transition: transform 200ms ease; }
.nav.is-hidden { transform: translateY(-100%); }
.nav__row { display: flex; align-items: center; gap: var(--s-8); min-height: 72px; }
.nav__logo img { width: 190px; height: auto; }
.nav__links { display: flex; gap: var(--s-6); margin-left: auto; }
.nav__links a { color: var(--ink); font-weight: 600; text-decoration: none; line-height: 1; white-space: nowrap; }
.nav__links a:hover { color: var(--accent-strong); }
@media (max-width: 899px) { .nav__links { display: none; } .nav__row .btn { margin-left: auto; } }
@media (max-width: 639px) { .nav__logo img { width: 150px; } .nav__row { min-height: 64px; } }
@media (max-width: 379px) { .nav__logo img { width: 128px; } .nav__row { gap: var(--s-3); } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--control-h); padding: 0 var(--s-6);
  font: 700 var(--text-base) / 1 var(--font); white-space: nowrap; text-decoration: none;
  color: var(--accent-ink); background: var(--accent); border: 1px solid var(--accent); border-radius: var(--radius);
  cursor: pointer; outline: 2px solid transparent; outline-offset: 2px;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}
.btn:hover { color: var(--accent-ink); background: var(--accent-strong); border-color: var(--accent-strong); }
.btn:active { background: var(--ink); border-color: var(--ink); }
.btn:focus-visible { outline-color: var(--accent); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn--small { min-height: 40px; padding: 0 var(--s-4); font-size: var(--text-sm); }
.btn--ghost { background: transparent; color: var(--on-ink); border-color: var(--on-ink-muted); }
.btn--ghost:hover { background: var(--ink-2); color: var(--on-ink); border-color: var(--on-ink); }

/* Hero: dark band, copy left, the job photo filling the right column. */
.hero { background-color: var(--ink); background-image: linear-gradient(var(--grid-dark) 1px, transparent 1px), linear-gradient(90deg, var(--grid-dark) 1px, transparent 1px); background-size: 24px 24px; color: var(--on-ink); padding-block: var(--s-16) var(--s-24); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-10); align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-12); align-items: stretch; } .hero__copy { align-self: center; } }
.hero h1 { font-size: clamp(2.25rem, 1.4rem + 3vw, 3.25rem); line-height: 1.04; max-width: 18ch; text-wrap: balance; }
.hero__lede { margin-top: var(--s-6); max-width: 46ch; font-size: var(--text-md); line-height: 1.45; color: var(--on-ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-8); }
.hero__media { position: relative; width: 100%; border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35); }
/* Still in the hero slot while the video is off (11 Nov). A new video takes the same box. */
.hero__still { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--ink-2); }
/* Wide screens: the photo fills the column to the copy's height (at least 440 px). */
@media (min-width: 960px) {
  .hero__media { min-height: 440px; }
  .hero__still { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
}
@media (max-width: 959px) { .hero__media { max-width: 520px; } .hero__grid { gap: var(--s-8); } }
@media (max-width: 639px) { .hero { padding-block: var(--s-8) var(--s-12); } }


/* Facts strip */
.facts { background: var(--paper-2); border-bottom: 1px solid var(--rule); }
.facts__grid { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .facts__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fact { padding: var(--s-6) var(--s-4); text-align: center; border-bottom: 1px solid var(--rule); }
.fact:last-child { border-bottom: 0; }
@media (min-width: 768px) {
  .fact { padding: var(--s-8) var(--s-6); border-bottom: 0; }
  .fact + .fact { border-left: 1px solid var(--rule); }
}
.fact__title { font-weight: 700; font-size: var(--text-md); font-stretch: 90%; margin-bottom: var(--s-1); }
.fact p:not(.fact__title) { color: var(--muted); }

/* Bands: every section uses the same padding and the same head. */
.band { padding-block: var(--section); }
.band, .claim {
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px; background-position: center top;
}
.band--alt { background-color: var(--paper-3); --grid: #d6e0ea; }
.band__head { text-align: center; max-width: 640px; margin: 0 auto var(--s-12); }
.band__head p { margin-top: var(--s-3); color: var(--muted); font-size: var(--text-md); line-height: 1.45; }
.band__note { margin-top: var(--s-10); text-align: center; color: var(--muted); }

/* Cards: identical size and image ratio in every grid. */
.cards { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { margin: 0; display: flex; flex-direction: column; background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.card__body { padding: var(--s-5) var(--s-6) var(--s-6); display: grid; gap: var(--s-1); }
.card__body p { color: var(--muted); }

.tiles { list-style: none; margin: var(--gap) 0 0; padding: 0; display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { padding: var(--s-6); background: var(--paper-2); border: 1px solid var(--rule); border-top: 3px solid var(--accent); border-radius: var(--radius); display: grid; gap: var(--s-1); align-content: start; }
.tile p { color: var(--muted); }
.tile--area { background-color: var(--ink); color: var(--on-ink); border-color: var(--ink); border-top-color: var(--accent);
  background-image: linear-gradient(var(--grid-dark) 1px, transparent 1px), linear-gradient(90deg, var(--grid-dark) 1px, transparent 1px); background-size: 24px 24px; }
.tile--area p { color: var(--on-ink-muted); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { padding: var(--s-8) var(--s-6); background: var(--paper-2); border: 1px solid var(--rule); border-top: 6px solid var(--accent); border-radius: var(--radius); display: grid; gap: var(--s-2); align-content: start; }
.step__n { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: var(--s-2); border-radius: 50%; background: var(--ink); color: var(--on-ink); font-weight: 800; font-size: var(--text-md); font-variant-numeric: tabular-nums; }
.step p { color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1fr); max-width: 70ch; margin-inline: auto; }
.faq__item { padding: var(--s-6); background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius); display: grid; gap: var(--s-2); align-content: start; }

/* Quote */
.band--quote { background-color: var(--paper-3); --grid: #d6e0ea; }
.quote { display: grid; gap: var(--s-10); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .quote { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-16); } }
.quote__intro { display: grid; gap: var(--s-4); align-content: start; }
.quote__intro p { color: var(--muted); max-width: 44ch; }
.quote__contact { list-style: none; margin: var(--s-2) 0 0; padding: 0; display: grid; gap: var(--s-3); }
.quote__contact li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--s-3); align-items: baseline; overflow-wrap: anywhere; }
.quote__contact span { color: var(--muted); font-size: var(--text-sm); font-weight: 600; }
.quote__contact a { font-weight: 700; color: var(--ink); }
.quote__contact a[href^="tel"] { font-size: var(--text-md); }
.quote__contact a[href^="mailto"] { font-size: var(--text-sm); overflow-wrap: anywhere; }
.foot p { overflow-wrap: anywhere; }
.form { display: grid; gap: var(--s-2); padding: var(--s-8); background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius); }
/* Optional fields sit in one closed disclosure (design standard item 18). */
.more { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.more summary { display: flex; align-items: center; gap: var(--s-2); min-height: var(--control-h); font-weight: 700; cursor: pointer; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "+"; display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1.5px solid var(--galv); border-radius: var(--radius); font-weight: 700; line-height: 1; color: var(--accent-strong); }
.more[open] summary::before { content: "\2212"; }
.more summary:hover { color: var(--accent-strong); }
.more__body { display: grid; gap: var(--s-2); padding-bottom: var(--s-4); }
@media (max-width: 639px) { .form { padding: var(--s-5); } }
.form__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--s-5); }
@media (min-width: 640px) { .form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: var(--s-1); }
.field label { font-weight: 600; font-size: var(--text-sm); }
.opt { font-weight: 400; color: var(--muted); }
.field__msg { min-height: 1lh; font-size: var(--text-sm); color: var(--error); }
input, select, textarea {
  width: 100%; min-height: var(--control-h); padding: 0 var(--s-3);
  font: 400 var(--text-base) / 1.3 var(--font); color: var(--ink);
  background: var(--paper); border: 1px solid var(--galv); border-radius: var(--radius);
  outline: 2px solid transparent; outline-offset: 1px;
  transition: border-color 120ms ease, background-color 120ms ease;
}
textarea { padding-block: var(--s-3); resize: vertical; }

input:hover, select:hover, textarea:hover { border-color: var(--ink); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-color: var(--accent); border-color: var(--accent); background: var(--paper-2); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--error); }
input:disabled, select:disabled, textarea:disabled { opacity: 0.55; cursor: not-allowed; }

/* Upload: a drop zone over a hidden native input (still keyboard and
   screen-reader operable through its label). */
.field__label { font-weight: 600; font-size: var(--text-sm); }
.drop {
  position: relative; display: grid; justify-items: center; gap: var(--s-1); text-align: center;
  padding: var(--s-6) var(--s-4); border: 1.5px dashed var(--galv); border-radius: var(--radius);
  background: var(--paper); cursor: pointer; transition: border-color 120ms ease, background-color 120ms ease;
}
.drop:hover, .drop.is-over { border-color: var(--accent); background: var(--accent-soft); }
.drop__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; min-height: 0; }
.drop:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.drop__icon { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: var(--s-1); }
.drop__title { font-weight: 600; }
.drop__link { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; }
.drop__hint { font-size: var(--text-sm); color: var(--muted); }
.drop__list { list-style: none; margin: var(--s-2) 0 0; padding: 0; display: grid; gap: var(--s-2); }
.drop__list:empty { display: none; }
.drop__file { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--s-3); align-items: center; padding: var(--s-2) var(--s-3); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); font-size: var(--text-sm); }
.drop__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.drop__size { color: var(--muted); font-variant-numeric: tabular-nums; }
.drop__remove { min-height: 32px; padding: 0 var(--s-2); font: 600 var(--text-sm) / 1 var(--font); color: var(--accent-strong); background: none; border: 0; border-radius: var(--radius); cursor: pointer; }
.drop__remove:hover { color: var(--ink); background: var(--paper-3); }
.drop__remove:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-3); align-items: start; margin-top: var(--s-2); }
.check input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; accent-color: var(--accent); }
.form__privacy { font-size: var(--text-sm); color: var(--muted); }
.form__send { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-4); }
.form__status { font-weight: 600; line-height: 1.3; }
.form__status.is-ok { color: var(--ok); }
.form__status.is-err { color: var(--error); }

/* Footer */
.foot { background: var(--ink); color: var(--on-ink-muted); padding-block: var(--s-16); font-size: var(--text-sm); }
.foot a { color: var(--on-ink); }
.foot a:hover { color: var(--paper-2); }
.foot a:focus-visible { outline-color: var(--on-ink); }
.foot__grid { display: grid; gap: var(--s-8); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .foot__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.foot__grid > div { display: grid; gap: var(--s-3); align-content: start; }
.foot__logo { width: 160px; height: auto; padding: var(--s-2); background: var(--paper-2); border-radius: var(--radius); box-sizing: content-box; }
.foot__title { color: var(--on-ink); font-weight: 700; }


/* Statement band: words land one by one as it scrolls into view
   (CSS scroll timeline, no script). Fully readable where unsupported. */
.claim { padding-block: var(--s-16); border-bottom: 1px solid var(--rule); }
.claim__line { margin: 0 auto; max-width: 22ch; text-align: center; font-size: var(--text-xl); font-weight: 800; font-stretch: var(--display-stretch); line-height: 1.06; letter-spacing: -0.01em; text-wrap: balance; }
.claim__last { color: var(--accent); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .claim__line span { display: inline-block; animation: claim-in linear both; animation-timeline: view(); }
    .claim__line span:nth-child(1) { animation-range: entry 10% cover 30%; }
    .claim__line span:nth-child(2) { animation-range: entry 30% cover 40%; }
    .claim__line span:nth-child(3) { animation-range: entry 50% cover 50%; }
  }
}
@keyframes claim-in { from { opacity: 0.12; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Job photos open full size */
.card__zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.card__zoom:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.card__zoom img { transition: transform 300ms ease; }
.card__zoom:hover img { transform: scale(1.03); }
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(96vw, 1100px); max-height: 94vh; }
.lightbox::backdrop { background: var(--scrim); }
.lightbox figure { margin: 0; display: grid; gap: var(--s-2); }
.lightbox img { max-width: 100%; max-height: 82vh; width: auto; height: auto; border-radius: var(--radius); }
.lightbox figcaption { color: var(--on-ink); font-weight: 600; }
.lightbox__close { position: absolute; top: var(--s-3); right: var(--s-3); min-height: 40px; padding: 0 var(--s-4); font: 700 var(--text-sm) / 1 var(--font); color: var(--ink); background: var(--paper-2); border: 0; border-radius: var(--radius); cursor: pointer; }
.lightbox__close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Phone dock: Call and Quote always in reach; hides while the form is on screen. */
.dock { display: none; }
@media (max-width: 767px) {
  .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 11;
    display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2);
    padding: var(--s-2) var(--s-4) calc(var(--s-2) + env(safe-area-inset-bottom, 0px));
    background: var(--paper-2); box-shadow: 0 -1px 0 var(--rule), 0 -4px 16px rgba(20, 34, 49, 0.08);
    transition: transform 200ms ease;
  }
  .dock.is-hidden { transform: translateY(110%); }
  body { padding-bottom: 72px; }
}
.btn--ghost-dark { background: transparent; color: var(--ink); border-color: var(--galv); }
.btn--ghost-dark:hover { background: var(--paper-3); color: var(--ink); border-color: var(--ink); }

/* Plain pages (privacy, 404) */
.legal { padding-block: var(--s-12) var(--s-24); }
.legal h1 { font-size: var(--text-lg); line-height: 1.1; margin-bottom: var(--s-6); }
.legal h2 { font-size: var(--text-md); margin: var(--s-8) 0 var(--s-2); }
.legal p, .legal li { max-width: 70ch; }
.legal p + p { margin-top: var(--s-3); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, input, select, textarea, .nav, .dock, .card__zoom img, .drop { transition: none; }
  .card__zoom:hover img { transform: none; }
  .hero__still { transform: none !important; }
}
