/* ==========================================================================
   Kalmav Engineering Solutions — stylesheet
   Ported from the Claude Design handoff (see ../../../handoff/README.md).
   The handoff prototype used inline styles and container-query units (cqw)
   on a page root with container-type:inline-size; here the root is the
   full-width viewport, so the equivalent vw units are used instead.
   ========================================================================== */

/* ---- Design tokens ---- */
:root {
  --brown: #581C0A;
  --gold: #C49458;
  --white: #FFFFFF;
  --off-white: #FBF8F5;   /* alternating section ground */
  --plate-mat: #F6F1EB;   /* mat behind matted photographs */

  --text: rgba(0, 0, 0, 0.82);
  --text-soft: rgba(0, 0, 0, 0.78);
  --text-muted: rgba(0, 0, 0, 0.72);
  --text-faint: rgba(0, 0, 0, 0.6);
  --text-fainter: rgba(0, 0, 0, 0.55);

  --rule: rgba(88, 28, 10, 0.09);   /* list separators */
  --rule-12: rgba(88, 28, 10, 0.12);
  --rule-14: rgba(88, 28, 10, 0.14);
  --rule-16: rgba(88, 28, 10, 0.16);
  --rule-18: rgba(88, 28, 10, 0.18);
  --rule-20: rgba(88, 28, 10, 0.2);
  --rule-24: rgba(88, 28, 10, 0.24);
  --rule-28: rgba(88, 28, 10, 0.28);
  --tint: rgba(88, 28, 10, 0.08);   /* button hover tint */

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1164px;
  --gutter: clamp(20px, 4vw, 32px);
  --section-y: clamp(64px, 8vw, 112px);
  --radius: 4px;
  --header-h: 80px;
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: #000;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

a { color: var(--brown); text-decoration: none; transition: color 160ms ease; }
a:hover { color: var(--gold); }

input, textarea, button, select { font-family: inherit; }

h1, h2, h3, h4 { text-wrap: balance; }
p, li { text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
::selection { background: rgba(196, 148, 88, 0.3); }

.container { max-width: var(--container); margin: 0 auto; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--white);
  color: var(--brown);
  padding: 12px 18px;
  border: 1px solid var(--brown);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.skip-link:focus { left: 16px; top: 16px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Shared type ---- */
.kicker {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-feature-settings: 'tnum';
}

.section-title {
  margin: 0 0 clamp(36px, 4vw, 56px);
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--brown);
}

.label {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brown);
}

.label--ruled {
  border-bottom: 1px solid var(--rule-20);
  padding-bottom: 14px;
  margin-bottom: 22px;
}

.lede {
  font-size: 17px;
  line-height: 1.78;
  color: var(--text);
}

.lede--justified { text-align: justify; hyphens: auto; }

.statement {
  margin: 0;
  font-size: 19px;
  line-height: 1.6;
  color: var(--brown);
}

.rule-gold { width: 72px; height: 2px; background: var(--gold); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  padding: 15px 28px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.btn--brand {
  color: var(--brown);
  background: transparent;
  border: 1px solid var(--brown);
}
.btn--brand:hover { background: var(--tint); color: var(--brown); }

.btn--gold {
  color: var(--white);
  background: transparent;
  border: 1px solid var(--gold);
}
.btn--gold:hover { background: rgba(196, 148, 88, 0.18); color: var(--white); }

.btn--ghost {
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule-16);
}

.header-bar {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-logo { display: flex; align-items: center; flex-shrink: 0; }
.header-logo img { height: 46px; width: auto; }

.nav-desktop { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }

.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #000;
}
.nav-link:hover { color: var(--gold); }

.nav-cta { padding: 11px 20px; }

/* Hamburger */
.burger {
  display: none;
  width: 46px;
  height: 46px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--rule-24);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
}
.burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--brown);
  transition: transform 160ms ease, opacity 160ms ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu — overlays the page, never pushes content down */
.nav-mobile {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--rule-16);
  border-bottom: 1px solid var(--rule-16);
  padding: 8px var(--gutter) 20px;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
}
.nav-mobile.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s;
}

.nav-mobile a {
  padding: 15px 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #000;
  border-bottom: 1px solid var(--rule-12);
}
.nav-mobile a:hover { color: var(--gold); }

.nav-mobile .btn {
  margin-top: 16px;
  border-bottom: 1px solid var(--brown);
  padding: 14px 20px;
  color: var(--brown);
}

.nav-scrim {
  position: fixed;
  inset: 0;
  top: var(--header-h);
  z-index: 48;
  background: rgba(20, 6, 2, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 0s linear 180ms;
}
.nav-scrim.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 180ms ease, visibility 0s;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: min(86vh, 760px);
  display: flex;
  align-items: flex-end;
  background-image:
    linear-gradient(to right, rgba(20, 6, 2, 0.88) 0%, rgba(20, 6, 2, 0.62) 48%, rgba(20, 6, 2, 0.28) 100%),
    url('../images/hero-plant.webp');
  background-size: cover;
  background-position: center 40%;
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  padding: clamp(80px, 10vw, 120px) var(--gutter) clamp(48px, 6vw, 72px);
}

.hero-copy { max-width: 760px; }

.hero-kicker {
  margin: 0 0 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--white);
}

.hero .rule-gold { margin: 34px 0; }

.hero-lede {
  margin: 0 0 38px;
  max-width: 560px;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: clamp(40px, 5vw, 60px);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.22);
  list-style: none;
  margin: 0;
  padding: 0;
}
.hero-facts li {
  margin: 0;
  padding: 18px 22px;
  background: rgba(20, 6, 2, 0.55);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  font-feature-settings: 'tnum';
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  scroll-margin-top: var(--header-h);
  padding: var(--section-y) var(--gutter);
}

.section--alt {
  background: var(--off-white);
  border-top: 1px solid var(--rule-14);
  border-bottom: 1px solid var(--rule-14);
}

.section--alt-last { border-bottom: 0; }

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

/* ---- About ---- */
.about-body p { margin: 0 0 20px; }
.about-body p:last-of-type { margin-bottom: 32px; }

.commitment {
  border-top: 1px solid var(--rule-20);
  padding-top: 26px;
  display: flex;
  align-items: flex-start;
  gap: 22px;
}
.commitment img {
  width: 78px;
  height: 78px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 2px;
}
.commitment .kicker { margin-bottom: 10px; letter-spacing: 0.2em; }
.commitment .statement { font-weight: 500; }

/* Matted photograph ("plate" treatment from the Classical design system) */
.plate {
  padding: 10px;
  background: var(--plate-mat);
  border: 1px solid var(--rule-14);
  border-radius: var(--radius);
}
.plate img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: 2px;
}

.block { margin-top: clamp(48px, 6vw, 80px); }

.list-plain { margin: 0; padding: 0; list-style: none; }

.list-plain li {
  padding: 11px 0;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--text);
  border-bottom: 1px solid var(--rule);
}

.capabilities {
  max-width: 860px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0 44px;
}

.industries {
  margin-top: clamp(44px, 5vw, 64px);
  border-top: 1px solid var(--rule-20);
  padding-top: 28px;
}
.industries .label { margin-bottom: 20px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }

.tag {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brown);
  border: 1px solid var(--rule-28);
  border-radius: var(--radius);
  padding: 11px 18px;
}
.tag img { height: 26px; width: 26px; object-fit: contain; flex-shrink: 0; }

/* ---- Services ---- */
.service-grid {
  display: grid;
  /* Deliberate fixed 2x2 at >= 900px: auto-fit produced a 3+1 layout with a
     blank cell at the 1164px container width. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
}

.service-card {
  background: var(--white);
  border: 1px solid var(--rule-18);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 36px);
}

.service-index {
  margin: 0 0 12px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-feature-settings: 'tnum';
}

.service-card h3 {
  margin: 0 0 14px;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--brown);
}

.service-summary {
  margin: 0 0 22px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-muted);
}

.service-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule-12);
}
.service-card li {
  padding: 10px 0;
  font-size: 15px;
  color: var(--text);
  border-bottom: 1px solid var(--rule);
}
.service-card li:last-child { border-bottom: 0; }

.service-note {
  margin: 22px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-faint);
}

/* ---- Full-bleed photo band ---- */
.band {
  position: relative;
  min-height: clamp(300px, 38vw, 440px);
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(rgba(20, 6, 2, 0.72), rgba(20, 6, 2, 0.72)),
    url('../images/engineering-drawings.webp');
  background-size: cover;
  background-position: center;
}
.band-inner {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  padding: clamp(56px, 7vw, 88px) var(--gutter);
  text-align: center;
}
.band h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--white);
}
.band .rule-gold { width: 64px; margin: 26px auto 0; }

/* ---- Why Kalmav ---- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(28px, 3.4vw, 48px);
}

.why-item { border-top: 1px solid var(--rule-24); padding-top: 22px; }

.why-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
}
.why-head img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 2px;
}
.why-head h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--brown);
}

.why-item p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--text-soft);
}

.card-pair {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
}

.card {
  border: 1px solid var(--rule-18);
  border-radius: var(--radius);
  padding: clamp(28px, 3vw, 40px);
}

/* ---- Leadership ---- */
.role-label {
  margin: 0 0 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brown);
  border-bottom: 1px solid var(--rule-20);
  padding-bottom: 14px;
}

.leadership-body p { margin: 0 0 20px; }
.leadership-body p:last-child { margin-bottom: 0; }

.projects-intro {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-soft);
}

.list-dotted { margin: 0; padding: 0; list-style: none; }
.list-dotted li {
  display: flex;
  align-items: baseline;
  gap: 13px;
  padding: 11px 0;
  font-size: 15.5px;
  color: var(--text);
  border-bottom: 1px solid var(--rule);
}
.list-dotted li::before {
  content: "";
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-4px);
}

.list-dotted--lg { border-top: 1px solid var(--rule-20); }
.list-dotted--lg li {
  padding: 14px 0;
  font-size: 16px;
  gap: 14px;
  color: rgba(0, 0, 0, 0.84);
  border-bottom: 1px solid var(--rule-12);
}

/* ---- Credentials ---- */
.credentials-lede {
  margin: 0 0 clamp(36px, 4vw, 52px);
  max-width: 720px;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(28px, 3.4vw, 48px);
}

.card--goal { align-self: start; }

.creds-intro {
  margin: 0 0 32px;
  max-width: 720px;
  font-size: 16px;
  line-height: 1.74;
  color: rgba(0, 0, 0, 0.76);
}

.cred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.cred-card {
  border: 1px solid var(--rule-18);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  background: var(--white);
}
.cred-card img { height: 89px; width: auto; object-fit: contain; }
.cred-card p {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brown);
  text-align: center;
  font-feature-settings: 'tnum';
}

.csr {
  margin-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--rule-20);
  padding-top: clamp(32px, 4vw, 48px);
}
.csr h3 {
  margin: 0 0 16px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--brown);
}
.csr-lede { margin: 0 0 clamp(28px, 3vw, 40px); max-width: 760px; line-height: 1.76; }
.csr-close { margin: clamp(28px, 3vw, 40px) 0 0; max-width: 760px; line-height: 1.76; }

.csr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(28px, 3.4vw, 48px);
}
.csr-grid h4 {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.csr-grid .list-plain { border-top: 1px solid var(--rule-14); }

/* ---- Contact ---- */
.contact-lede { margin: 0 0 34px; }

.contact-details { margin: 0; border-top: 1px solid var(--rule-20); }
.contact-details > div { padding: 18px 0; border-bottom: 1px solid var(--rule-12); }
.contact-details dt {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.contact-details dd {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--brown);
  font-feature-settings: 'tnum';
}
.contact-details dd.is-plain { color: var(--text); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--rule-18);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-field { display: flex; flex-direction: column; gap: 8px; }

.form-field label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brown);
}

.form-field input,
.form-field textarea {
  font-size: 16px;
  color: #000;
  background: var(--white);
  border: 1px solid var(--rule-24);
  border-radius: var(--radius);
  padding: 13px 14px;
  min-height: 46px;
  line-height: 1.6;
  transition: border-color 160ms ease;
}
.form-field input:focus,
.form-field textarea:focus { border-color: var(--brown); }
.form-field textarea { resize: vertical; }

.form-field.has-error input,
.form-field.has-error textarea { border-color: #B3261E; }

.field-error {
  display: none;
  font-size: 13px;
  line-height: 1.5;
  color: #B3261E;
}
.field-error.is-visible { display: block; }

/* Honeypot — off-screen, never seen or filled by a real visitor */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .btn { align-self: flex-start; padding: 15px 30px; min-height: 48px; }

.form-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-fainter);
}
.form-note.is-error { color: #B3261E; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--brown);
  color: var(--white);
  padding: clamp(48px, 6vw, 72px) var(--gutter) 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(32px, 4vw, 48px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-wordmark {
  margin: 0 0 14px;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--white);
}

.footer-tagline { margin: 0; font-size: 15px; line-height: 1.6; color: var(--gold); }

.footer-heading {
  margin: 0 0 16px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-stack { display: flex; flex-direction: column; gap: 11px; }
.footer-stack a,
.footer-stack p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  font-feature-settings: 'tnum';
}
.footer-stack a:hover { color: var(--gold); }

.footer-legal {
  margin: 26px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  font-feature-settings: 'tnum';
}

/* ==========================================================================
   Responsive — 900px is the single breakpoint (nav + services grid),
   matching the prototype's isMobile threshold.
   ========================================================================== */
@media (max-width: 899px) {
  .nav-desktop { display: none; }
  .burger { display: flex; }
  .service-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}

@media (max-width: 899px) {
  /* Justified copy needs a wide measure; below this the two-column text
     blocks are narrow enough that justification opens rivers of whitespace. */
  .lede--justified { text-align: left; hyphens: none; }
}

@media (max-width: 560px) {
  .commitment { gap: 16px; }
  .commitment img { width: 64px; height: 64px; }
  .contact-form .btn { align-self: stretch; }
}

/* No scroll while the mobile menu overlays the page */
body.menu-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header, .nav-mobile, .nav-scrim, .contact-form, .hero-actions { display: none !important; }
  body { color: #000; }
}
