/* ============================================================
   HiWire — shared site stylesheet.
   Brand tokens, base styles, and every reusable section live
   here. All pages link this file. Edit freely.
   ============================================================ */
:root {
  /* Brand */
  --olive: #2f3a1c;
  --lime: #a0d010;
  --sage: #6b8146;
  --ink: #000000;
  /* Warm neutrals — white paper, cream cards */
  --white: #ffffff;
  --cream: #f5f3ec;
  --sand: #ece9dd;
  --hairline: #d9d6c8;
  --stone: #6e6f60;
  /* Surfaces */
  --page: var(--white);
  --card: var(--cream);
  --recessed: var(--sand);
  /* Text */
  --text-strong: #1a1f12;
  --text-body: #2b2e24;
  --text-muted: #6e6f60;
  /* Type */
  --font-heading: 'Manrope', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  /* Layout */
  --container: 1280px;
  --gutter: 56px;
  --section-y: 96px;
  /* Radii */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 18px;
  --r-pill: 999px;
  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 220ms;
  /* Elevation */
  --shadow-header: 0 1px 0 rgba(31, 40, 18, 0.06);
  --shadow-overlay: 0 18px 40px -18px rgba(31, 40, 18, 0.28);
  --shadow-lift: 0 16px 34px -20px rgba(31, 40, 18, 0.4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--text-strong); margin: 0; letter-spacing: -0.02em; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border: 1px solid transparent; border-radius: var(--r-pill);
  font-family: var(--font-heading); font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  cursor: pointer; transition: transform 140ms var(--ease), background-color var(--dur) var(--ease);
  min-height: 44px;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.985); }
.btn--primary { background: var(--olive); color: var(--cream); }
.btn--accent { background: var(--lime); color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark .arrow { color: var(--lime); }
.btn .arrow { font-size: 1.05em; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--white) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline); box-shadow: var(--shadow-header);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 16px; }
.header__logo { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a, .nav__trigger {
  padding: 9px 13px; font-size: 14px; font-weight: 500; color: var(--text-body);
  border-radius: var(--r-sm); transition: color 140ms var(--ease);
}
.nav__trigger { display: inline-flex; align-items: center; cursor: default; user-select: none; }
.nav a:hover, .nav a.is-active,
.nav__group:hover .nav__trigger, .nav__trigger.is-active { color: var(--olive); }
.nav__group { position: relative; }
.nav__caret { font-size: 9px; opacity: 0.6; margin-left: 4px; }
.nav__menu {
  position: absolute; top: 100%; left: 0; min-width: 230px;
  background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-md);
  box-shadow: var(--shadow-overlay); padding: 8px; display: none; flex-direction: column;
}
.nav__group:hover .nav__menu { display: flex; }
.nav__menu a { padding: 10px 12px; font-size: 14px; }
.nav__menu a:hover { background: var(--recessed); color: var(--text-body); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; height: min(64dvh, 560px); min-height: 380px; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,26,12,0.05) 40%, rgba(20,26,12,0.55)); }
.hero__content { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 48px; }
.hero .mono { color: var(--lime); }
.hero h1 { color: var(--cream); font-weight: 700; font-size: clamp(38px, 5vw, 60px); line-height: 1; letter-spacing: -0.03em; max-width: 16ch; margin-top: 12px; text-wrap: balance; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { position: relative; height: min(46vh, 420px); overflow: hidden; }
.page-hero img, .page-hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,26,12,0.3) 0%, rgba(31,40,18,0.62) 70%, rgba(31,40,18,0.78)); }
.page-hero__content { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding-bottom: 8px; }
.page-hero .mono { color: var(--lime); }
.page-hero h1 { color: var(--cream); font-weight: 700; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.02; letter-spacing: -0.03em; }
.page-hero p { color: rgba(245,243,236,0.86); font-size: 17px; max-width: 56ch; }

/* ---------- Section helpers ---------- */
.section { padding-block: var(--section-y); }
.section--tight { padding-block: 64px; }
.section--sand { background: var(--recessed); }
.section--cream { background: var(--card); }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 56px; }
.section-head .mono { color: var(--sage); display: block; margin-bottom: 14px; }
.section-head h2 { font-weight: 600; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08; }
.section-head h2 em { color: var(--lime); font-style: normal; }
.section-head p { color: var(--text-muted); font-size: 17px; margin-top: 16px; }

/* ---------- Category pills ---------- */
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 64px; }
.pills a {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); padding: 9px 16px; border: 1px solid var(--hairline); border-radius: var(--r-pill);
  transition: color 140ms var(--ease), border-color 140ms var(--ease), background-color 140ms var(--ease);
}
.pills a:hover { color: var(--olive); border-color: var(--olive); background: var(--card); }

/* ---------- Experience tiles ---------- */
.experience__title { text-align: center; font-weight: 600; font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 44px; }
.experience__title em { color: var(--lime); font-style: normal; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--hairline); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 420ms var(--ease); }
.tile:hover img { transform: scale(1.06); }
.tile__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,26,12,0) 45%, rgba(20,26,12,0.78)); }
.tile__label { position: absolute; left: 18px; bottom: 16px; display: flex; align-items: center; gap: 10px; }
.tile__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.tile__label span { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream); }

/* ---------- Partner strip ---------- */
.partners { border-block: 1px solid var(--hairline); background: var(--card); padding-block: 36px; overflow: hidden; }
.partners__marquee { display: flex; width: max-content; gap: 64px; padding-inline: 32px; animation: partners-scroll 60s linear infinite; }
.partners:hover .partners__marquee { animation-play-state: paused; }
.partners__cell { flex: 0 0 auto; display: grid; place-items: center; height: 40px; }
.partners__cell img {
  max-height: 34px; max-width: 150px; width: auto; object-fit: contain;
  opacity: 0.7; filter: grayscale(1);
  mix-blend-mode: multiply;
  transition: opacity 160ms var(--ease), filter 160ms var(--ease);
}
.partners__cell img:hover { opacity: 1; filter: grayscale(0); }
@keyframes partners-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .partners__marquee { animation: none; flex-wrap: wrap; justify-content: center; } }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split__media { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--hairline); }
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.split h2 { font-weight: 600; font-size: 36px; line-height: 1.05; max-width: 15ch; }
.split p { font-size: 17px; line-height: 1.6; color: var(--text-muted); margin-top: 20px; max-width: 46ch; }
.split .btn { margin-top: 28px; }

/* ---------- Service rows (alternating image / copy) ---------- */
.svc-rows { display: flex; flex-direction: column; gap: 64px; }
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.svc-row__media { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--hairline); }
.svc-row__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 11; transition: transform 460ms var(--ease); }
.svc-row__media:hover img { transform: scale(1.04); }
.svc-row:nth-child(even) .svc-row__media { order: 2; }
.svc-row .mono { color: var(--sage); display: block; margin-bottom: 12px; }
.svc-row h3 { font-weight: 600; font-size: 28px; line-height: 1.1; }
.svc-row__lead { color: var(--text-muted); font-size: 16px; margin-top: 12px; max-width: 46ch; }
.svc-list { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 13px; }
.svc-list li { position: relative; padding-left: 26px; font-size: 15.5px; color: var(--text-body); max-width: 50ch; }
.svc-list li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px;
  border-radius: 2px; background: var(--lime); transform: rotate(45deg);
}

/* ---------- Feature cards ---------- */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feature {
  position: relative; overflow: hidden; color: var(--cream);
  border-radius: var(--r-lg); padding: 32px; min-height: 220px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
}
.feature--ink { background: var(--ink); }
.feature--olive { background: var(--olive); }
.feature__glow {
  position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--lime), transparent 70%); opacity: 0.5; pointer-events: none;
}
.feature .mono { position: relative; color: var(--lime); }
.feature h3 { position: relative; color: var(--cream); font-weight: 600; font-size: 26px; line-height: 1.15; max-width: 18ch; }
.feature .btn { position: relative; align-self: flex-start; }

/* ---------- Steps (How We Work) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { text-align: center; padding: 8px; }
.step__num {
  width: 52px; height: 52px; margin: 0 auto 20px; border-radius: 50%;
  display: grid; place-items: center; background: var(--card); border: 1px solid var(--hairline);
  font-family: var(--font-mono); font-size: 16px; color: var(--olive); font-weight: 500;
}
.step h3 { font-weight: 600; font-size: 19px; margin-bottom: 10px; }
.step p { color: var(--text-muted); font-size: 15px; max-width: 30ch; margin-inline: auto; }

/* ---------- Plan cards (HWCare) ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: start; }
.plan { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.plan--featured { border-color: var(--olive); box-shadow: var(--shadow-lift); }
.plan__head { background: var(--sage); color: #fff; padding: 22px 24px; }
.plan--featured .plan__head { background: var(--olive); }
.plan__tier { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; }
.plan__price { font-family: var(--font-heading); font-weight: 600; font-size: 15px; margin-top: 6px; color: rgba(255,255,255,0.85); }
.plan__body { padding: 24px; display: flex; flex-direction: column; gap: 18px; flex: 1; }
.plan__lead { font-size: 14.5px; color: var(--text-muted); }
.plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.plan ul li { position: relative; padding-left: 22px; font-size: 14.5px; }
.plan ul li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 2px; background: var(--lime); transform: rotate(45deg); }
.plan .btn { margin-top: auto; justify-content: center; }

/* ---------- Included rows (HWCare) ---------- */
.included { display: flex; flex-direction: column; gap: 0; max-width: 920px; margin: 0 auto; }
.included__row { display: grid; grid-template-columns: 56px 1fr; gap: 24px; align-items: start; padding: 26px 8px; border-top: 1px solid var(--hairline); }
.included__row:last-child { border-bottom: 1px solid var(--hairline); }
.included__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--card); border: 1px solid var(--hairline); display: grid; place-items: center; font-family: var(--font-mono); font-size: 15px; color: var(--olive); }
.included__row h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--olive); margin-bottom: 8px; }
.included__row p { color: var(--text-muted); font-size: 15px; max-width: 70ch; }

/* ---------- Prose (About) ---------- */
.prose-split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.prose-split h2 { font-weight: 600; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.04; }
.prose-split p { font-size: 18px; line-height: 1.65; color: var(--text-body); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.two-col h3 { font-weight: 600; font-size: 24px; margin-bottom: 16px; }
.two-col p { color: var(--text-muted); font-size: 16px; line-height: 1.65; margin-top: 14px; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-grid figure { margin: 0; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--hairline); aspect-ratio: 4 / 3; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 460ms var(--ease); }
.gallery-grid figure:hover img { transform: scale(1.05); }

/* ---------- News ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.post__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 460ms var(--ease); }
.post:hover .post__media img { transform: scale(1.05); }
.post__tag { position: absolute; left: 14px; top: 14px; background: var(--lime); color: var(--ink); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 10px; border-radius: var(--r-pill); }
.post__body { padding: 26px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.post__body h3 { font-weight: 600; font-size: 21px; line-height: 1.18; }
.post__body p { color: var(--text-muted); font-size: 15px; }
.post__meta { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--hairline); display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.post .btn { align-self: flex-start; }

/* ---------- Map (Contact) ---------- */
.map-embed { position: relative; height: min(42vh, 380px); overflow: hidden; background: var(--recessed); border-bottom: 1px solid var(--hairline); }
.map-embed img { width: 100%; height: 100%; object-fit: cover; opacity: 0.96; }
.map-pin { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.map-pin__dot { width: 18px; height: 18px; border-radius: 50% 50% 50% 0; background: var(--olive); transform: rotate(-45deg); border: 3px solid var(--lime); }
.map-pin__label { background: var(--ink); color: var(--cream); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 12px; border-radius: var(--r-pill); white-space: nowrap; }

/* ---------- Testimonial ---------- */
.testimonial { background: var(--sage); text-align: center; }
.testimonial .mono { color: rgba(255,255,255,0.7); display: block; margin-bottom: 24px; }
.testimonial blockquote { margin: 0; color: #fff; font-family: var(--font-heading); font-weight: 500; font-size: clamp(22px, 2.8vw, 30px); line-height: 1.4; letter-spacing: -0.01em; max-width: 24ch; margin-inline: auto; }
.testimonial cite { display: block; margin-top: 24px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.85); font-style: normal; }

/* ---------- Consultation CTA ---------- */
.cta { position: relative; overflow: hidden; }
.cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,26,12,0.82), rgba(20,26,12,0.9)); }
.cta__grid { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: start; padding-block: 88px; }
.cta__form { background: var(--card); border-radius: var(--r-lg); padding: 36px; }
.cta__form .mono { color: var(--olive); }
.cta__form h3 { font-weight: 600; font-size: 26px; margin: 10px 0 20px; max-width: 20ch; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field > span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; font-family: var(--font-body); font-size: 16px; color: var(--text-body);
  background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-sm); outline: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field input:focus, .field textarea:focus { border-color: var(--olive); box-shadow: 0 0 0 3px color-mix(in oklab, var(--lime) 40%, transparent); }
.field textarea { resize: vertical; }
.fields-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-status {
  margin: 0 0 16px; padding: 12px 14px; background: var(--sand); border-left: 2px solid var(--lime);
  border-radius: var(--r-sm); font-size: 14px; line-height: 1.55; color: var(--text-body);
}
.form-status--error { border-left-color: #9c3327; color: #7a2318; }
.fields-2 .field { margin-bottom: 0; }
.cta__details { color: var(--cream); padding-top: 8px; }
.cta__details .mono { color: var(--lime); }
.cta__rows { display: flex; flex-direction: column; gap: 22px; margin-top: 24px; }
.cta__row-k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(245,243,236,0.55); margin-bottom: 5px; }
.cta__row-v { font-family: var(--font-heading); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--cream); padding-top: 72px; padding-bottom: 40px; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; align-items: start; }
.footer__logo { height: 44px; width: auto; margin-bottom: 18px; }
.footer__blurb { font-size: 14px; color: rgba(245,243,236,0.6); max-width: 28ch; }
.footer h4 { color: var(--lime); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.footer ul a { font-size: 14px; color: rgba(245,243,236,0.7); transition: color 140ms var(--ease); }
.footer ul a:hover { color: var(--cream); }
.footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(245,243,236,0.1); display: flex; align-items: center; justify-content: center; text-align: center; gap: 24px; flex-wrap: wrap; }
.footer__copy { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(245,243,236,0.45); }

/* ---------- Mobile nav (hamburger) ---------- */
.nav-toggle {
  display: none; position: relative; z-index: 70;
  width: 44px; height: 44px; margin: -3px -8px -3px 0; padding: 0;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; border-radius: 2px;
  background: var(--olive); transition: transform 220ms var(--ease), opacity 160ms var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 60; visibility: hidden;
  display: flex; justify-content: flex-end;
}
.mobile-nav__backdrop {
  position: absolute; inset: 0; background: rgba(20, 26, 12, 0.5);
  opacity: 0; transition: opacity 260ms var(--ease);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.mobile-nav__inner {
  position: relative; width: min(86vw, 360px); height: 100%;
  background: var(--white); border-left: 1px solid var(--hairline);
  box-shadow: var(--shadow-overlay);
  padding: 74px 22px calc(24px + env(safe-area-inset-bottom)) 26px;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; gap: 2px;
  transform: translateX(100%); transition: transform 300ms var(--ease);
}
.mobile-nav.is-open { visibility: visible; }
.mobile-nav.is-open .mobile-nav__backdrop { opacity: 1; }
.mobile-nav.is-open .mobile-nav__inner { transform: translateX(0); }
.mobile-nav__inner a {
  display: flex; align-items: center; min-height: 44px; padding: 3px 0;
  font-family: var(--font-heading); font-weight: 600; font-size: 16.5px; color: var(--text-strong);
}
.mobile-nav__inner a:not(.btn) { border-bottom: 1px solid var(--hairline); }
.mobile-nav__inner a:active { color: var(--olive); }
.mobile-nav__inner a.mobile-nav__sub {
  font-family: var(--font-body); font-weight: 500; font-size: 14.5px; color: var(--text-muted);
  padding-left: 14px; min-height: 40px;
}
.mobile-nav__head {
  display: flex; align-items: center; min-height: 44px; padding: 3px 0;
  font-family: var(--font-heading); font-weight: 600; font-size: 16.5px;
  color: var(--text-strong); border-bottom: 1px solid var(--hairline);
}
/* Collapsible group (e.g. Residential) — closed by default */
.mobile-nav__group { display: flex; flex-direction: column; }
button.mobile-nav__head {
  justify-content: space-between; width: 100%;
  background: none; border: 0; border-bottom: 1px solid var(--hairline);
  text-align: left; cursor: pointer;
}
button.mobile-nav__head:active { color: var(--olive); }
.mobile-nav__chevron {
  flex: none; width: 9px; height: 9px; margin: -4px 6px 0 12px;
  border-right: 2px solid var(--olive); border-bottom: 2px solid var(--olive);
  transform: rotate(45deg); transition: transform 240ms var(--ease);
}
.mobile-nav__group.is-open .mobile-nav__chevron { transform: rotate(225deg); margin-top: 4px; }
.mobile-nav__submenu {
  overflow: hidden; max-height: 0;
  transition: max-height 280ms var(--ease);
}
.mobile-nav__group.is-open .mobile-nav__submenu { max-height: 400px; }
/* Close (X) — lives inside the panel so it sits above the slide-in */
.mobile-nav__close {
  position: absolute; top: 22px; right: 18px; z-index: 3;
  width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer;
}
.mobile-nav__close span {
  position: absolute; top: 50%; left: 50%; width: 22px; height: 2px; border-radius: 2px;
  background: var(--olive);
}
.mobile-nav__close span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.mobile-nav__close span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }
.mobile-nav__cta { margin-top: 20px; display: flex; flex-direction: column; gap: 9px; }
.mobile-nav__cta .btn {
  width: 100%; justify-content: center; min-height: 46px; font-size: 14px;
}
.mobile-nav__cta .btn--primary { color: var(--cream); }
.mobile-nav__cta .btn--line { color: var(--olive); }
.btn--line { background: transparent; border: 1px solid var(--olive); color: var(--olive); }

@media (max-width: 900px) {
  :root { --gutter: 22px; --section-y: 60px; }
  .header__inner { padding-block: 12px; }
  .header__logo { height: 32px; }
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .split, .features, .cta__grid, .footer__top,
  .svc-row, .svc-row:nth-child(even) .svc-row__media,
  .prose-split, .two-col { grid-template-columns: 1fr; gap: 32px; }
  .svc-row:nth-child(even) .svc-row__media { order: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid, .posts { grid-template-columns: 1fr 1fr; }
  .footer__top { gap: 32px; }
  .split h2 { font-size: clamp(26px, 6.5vw, 34px); max-width: none; }
  .cta__grid { padding-block: 56px; }
  .cta__form { padding: 26px 22px; }
  .footer { padding-top: 56px; }
  .footer ul a { display: inline-block; padding: 3px 0; }
}
@media (max-width: 560px) {
  :root { --section-y: 48px; }
  .section--tight { padding-block: 44px; }
  .tiles, .plans, .gallery-grid, .posts, .steps { grid-template-columns: 1fr; }
  .fields-2 { grid-template-columns: 1fr; }
  .fields-2 .field { margin-bottom: 16px; }
  .fields-2 .field:last-child { margin-bottom: 0; }
  .hero__content { padding-bottom: 32px; }
  .feature { padding: 26px; min-height: 0; }
  .cta__form h3, .svc-row h3, .feature h3 { font-size: 23px; }
  .partners__marquee { gap: 44px; }
  .cta__form .btn--primary { width: 100%; justify-content: center; }
}
