/* ──────────────────────────────────────────────────────────────
   GREEN'S UNIVERSAL SOLUTIONS · Website
   Contractor • Civil • Electric Work General Order Supplier
   ────────────────────────────────────────────────────────────── */

/* ───────── Fonts ─────────
   Self-hosted variable fonts (latin subset, 245 KB total). Serving these from
   our own origin removes two serial DNS + TLS round-trips to Google before any
   text can paint — the single largest LCP win available on this site.
   To update: refetch from Google Fonts with a modern browser UA and replace
   the .woff2 files; the family names below must keep matching --font-* vars. */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/space-grotesk-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/inter-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('assets/fonts/fraunces-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 600;
  font-display: swap;
  src: url('assets/fonts/fraunces-italic-var.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-var.woff2') format('woff2');
}

:root {
  /* Brand */
  --green:        #1F5F4A;
  --green-dark:   #174C3B;
  --green-deep:   #0E3528;
  --green-tint:   #2A6E58;
  --cream:        #F4EDDC;
  --cream-warm:   #ECE0C6;
  --cream-soft:   #FAF6EC;
  /* --gold is the brand accent and stays exactly as designed. It is used for
     DECORATION ONLY — rules, dots, borders, button fills — where WCAG contrast
     minimums do not apply.
     For TEXT, use --gold-text. The brand gold measures 2.27:1 on --green and
     2.53:1 on --cream-warm, well under the 4.5:1 AA floor for small text, so it
     is unreadable as a label colour. --gold-text is redefined per background
     below and is the only gold that should ever colour running text. */
  --gold:         #C97B2A;
  --gold-soft:    #D89856;   /* large display text only (>=24px, 3:1 applies) */
  --gold-text:    #8F571E;   /* default: on cream / light backgrounds — 5.07:1 */
  --gold-rule:    rgba(201, 123, 42, 0.55);

  --ink:          #14201B;
  --ink-2:        #2B3530;
  --stone:        #6B6960;
  --stone-2:      #97948A;
  --line:         rgba(20, 32, 27, 0.10);
  --line-strong:  rgba(20, 32, 27, 0.22);
  --line-green:   rgba(31, 95, 74, 0.18);

  /* Palette mode (default: cream foundation) */
  --bg:           var(--cream-soft);
  --fg:           var(--ink);
  --fg-muted:     var(--stone);

  /* Type */
  --font-display: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-editorial: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Spacing · airy default */
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(72px, 11vw, 160px);
  --container: 1360px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --motion: 1;
}

/* Compact density */
:root[data-density="compact"] {
  --section-y: clamp(48px, 7vw, 96px);
  --gutter: clamp(16px, 3vw, 40px);
}

/* Green foundation palette */
:root[data-palette="green"] {
  --bg: var(--green);
  --fg: var(--cream);
  --fg-muted: rgba(244, 237, 220, 0.65);
}

/* Reduced motion — explicit opt-in and OS-level preference */
:root[data-motion="reduced"] *,
:root[data-motion="reduced"] *::before,
:root[data-motion="reduced"] *::after {
  animation-duration: 0.001s !important;
  transition-duration: 0.001s !important;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Dark-background contexts get the lighter gold so label text clears 4.5:1.
   #E7C49F measures 8.21:1 on --green-deep and 4.58:1 on --green, the lighter
   of the two and therefore the binding constraint. */
.topstrip,
.nav,
.hero,
.footer,
.section--green,
.section--deep,
.page-hero,
.page-cta,
.about__card,
.sector,
.contact__form,
.notfound {
  --gold-text: #E7C49F;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  /* The nav is sticky at 78px. Without this, every anchor jump parks the
     target's first 50px underneath it — #sectors, #projects and #about all
     lost their section label. Native anchors, scrollIntoView and keyboard
     navigation all respect this, so no JS is involved. */
  scroll-padding-top: 96px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Mobile menu open: stop the page behind it from scrolling. */
body.is-menu-open { overflow: hidden; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

::selection { background: var(--gold); color: var(--ink); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: var(--gold);
  color: var(--ink);
  padding: 12px 20px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ───────── Reusable utilities ───────── */

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

.eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold-text);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.eyebrow.no-rule::before { display: none; }

.h-display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 0.98;
}

.h-editorial {
  font-family: var(--font-editorial);
  font-weight: 400;
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  letter-spacing: -0.015em;
}

/* CTA */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px 16px 28px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 320ms var(--ease-out);
  position: relative;
  overflow: hidden;
}
/* Cream on gold measures 2.83:1 — the most prominent button on the site was
   also its least readable. Ink on the same untouched gold gives 5.07:1, so the
   brand fill is preserved and only the label darkens. */
.cta--primary {
  background: var(--gold);
  color: var(--ink);
}
.cta--primary:hover {
  background: var(--cream);
  color: var(--green-deep);
  transform: translateY(-1px);
}
.cta--outline {
  border: 1px solid currentColor;
  color: inherit;
}
.cta--outline:hover {
  background: currentColor;
}
.cta--outline:hover > * { color: var(--green); }
.cta--ghost {
  padding: 14px 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  gap: 10px;
}
.cta--ghost:hover { color: var(--gold-text); }

.cta-arrow {
  display: inline-block;
  transition: transform 320ms var(--ease-out);
}
.cta:hover .cta-arrow { transform: translateX(4px); }

/* ───────── Reveal animation ───────── */

/* 900ms felt like waiting for the page to catch up on a fast scroll. 620ms with
   a tighter stagger keeps the editorial fade without the lag. opacity+transform
   only, so this stays on the compositor and never touches layout. */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
  will-change: auto;
}
.reveal[data-delay="1"] { transition-delay: 60ms; }
.reveal[data-delay="2"] { transition-delay: 120ms; }
.reveal[data-delay="3"] { transition-delay: 180ms; }
.reveal[data-delay="4"] { transition-delay: 240ms; }
.reveal[data-delay="5"] { transition-delay: 300ms; }

/* ───────── Top strip ───────── */

.topstrip {
  background: var(--green-deep);
  color: var(--cream);
  font-size: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.topstrip__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 38px;
  gap: 24px;
}
.topstrip__left {
  display: flex;
  gap: 24px;
  align-items: center;
  opacity: 0.85;
}
.topstrip__right {
  color: var(--gold-text);
  letter-spacing: 0.16em;
  font-size: 11px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.topstrip__right::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}
.topstrip__dot { color: var(--gold-text); opacity: 0.7; }

@media (max-width: 720px) {
  .topstrip__left .hide-sm { display: none; }
  .topstrip__right { font-size: 10px; letter-spacing: 0.12em; }
  .topstrip__right .hide-sm { display: none; }
}

/* ───────── Navigation ───────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--green);
  color: var(--cream);
  transition: all 360ms var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(15, 53, 40, 0.92);
  box-shadow: 0 1px 0 rgba(244, 237, 220, 0.06);
}
/* backdrop-filter repaints a full-width blur every frame while scrolling, which
   is a real jank source on phones. At 0.92 alpha the blur is barely visible
   anyway, so it is a desktop-only garnish. */
@media (min-width: 1101px) {
  .nav.is-scrolled {
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
  }
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 24px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav__mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
}
.nav__wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav__wordmark-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.nav__wordmark-sub {
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--gold-text);
  margin-top: 4px;
}

.nav__links {
  display: flex;
  gap: 4px;
  align-items: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
}
.nav__links a {
  padding: 10px 16px;
  border-radius: 100px;
  position: relative;
  transition: all 240ms var(--ease-out);
  opacity: 0.82;
}
.nav__links a:hover, .nav__links a.is-active {
  opacity: 1;
  background: rgba(244, 237, 220, 0.08);
}
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  transform: translateX(-50%);
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 100px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: all 280ms var(--ease-out);
  white-space: nowrap;
}
.nav__cta-btn:hover {
  background: var(--cream);
  color: var(--green-deep);
}

/* Hamburger */
.nav__menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(244, 237, 220, 0.25);
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  transition: border-color 240ms var(--ease-out);
}
.nav__menu-toggle:hover { border-color: var(--gold-text); }
.nav__menu-bars,
.nav__menu-bars::before,
.nav__menu-bars::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 300ms var(--ease-out), opacity 200ms linear;
}
.nav__menu-bars { position: relative; }
.nav__menu-bars::before,
.nav__menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav__menu-bars::before { top: -6px; }
.nav__menu-bars::after  { top: 6px; }

.nav__menu-toggle.is-open .nav__menu-bars { background: transparent; }
.nav__menu-toggle.is-open .nav__menu-bars::before { transform: translateY(6px) rotate(45deg); }
.nav__menu-toggle.is-open .nav__menu-bars::after  { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu panel */
.nav__mobile {
  display: none;
  flex-direction: column;
  background: var(--green-deep);
  border-top: 1px solid rgba(244, 237, 220, 0.12);
  padding: 8px var(--gutter) 20px;
}
/* Only ever displayable below the breakpoint. Without this gate, opening the
   menu on a phone and then rotating to landscape past 1100px leaves the panel
   stuck open with the hamburger that would close it already hidden. */
@media (max-width: 1100px) {
  .nav__mobile.is-open { display: flex; }
}
.nav__mobile a {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: rgba(244, 237, 220, 0.85);
  padding: 14px 0;
  border-bottom: 1px solid rgba(244, 237, 220, 0.08);
  transition: color 200ms var(--ease-out);
}
.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile a:hover { color: var(--gold-text); }

@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__menu-toggle { display: flex; }
}
@media (max-width: 560px) {
  .nav__cta-btn { display: none; }
  .nav__wordmark-name { font-size: 15px; }
}

/* ───────── Hero ───────── */

.hero {
  background: var(--green);
  color: var(--cream);
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 4vw, 64px) 0 clamp(32px, 3vw, 48px);
  isolation: isolate;
  min-height: calc(100svh - 116px);
  display: flex;
  flex-direction: column;
}

.hero__bg-mark {
  position: absolute;
  right: -8%;
  top: 8%;
  width: 90vh;
  max-width: 1100px;
  aspect-ratio: 1;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
  animation: floatMark 18s ease-in-out infinite;
}
@keyframes floatMark {
  0%, 100% { transform: translate(0, 0) rotate(-3deg); }
  50% { transform: translate(-30px, 24px) rotate(2deg); }
}

.hero__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    radial-gradient(rgba(244, 237, 220, 0.04) 1px, transparent 1px);
  background-size: 3px 3px;
  z-index: 0;
  mix-blend-mode: overlay;
}

.hero__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero__left {
  max-width: 880px;
}

.hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.hero__eyebrow-chip {
  padding: 6px 12px;
  border: 1px solid var(--gold-rule);
  border-radius: 100px;
  color: var(--cream);
}
.hero__eyebrow-rule {
  flex: 1;
  height: 1px;
  background: var(--gold-rule);
  min-width: 40px;
  max-width: 180px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 5.6vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 0;
}
.hero__title .ed {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  color: var(--gold-soft);
  letter-spacing: -0.025em;
}
.hero__title .indent { display: inline-block; padding-left: 1.2em; }
.hero__title br + span,
.hero__title span.row { display: inline-block; }

.hero__desc {
  margin-top: 28px;
  max-width: 560px;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.55;
  color: rgba(244, 237, 220, 0.82);
}
.hero__desc strong {
  color: var(--cream);
  font-weight: 600;
}

.hero__actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero__right {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-bottom: 4px;
}

.hero__credential {
  border-left: 1px solid var(--gold-rule);
  padding: 4px 0 4px 22px;
}
.hero__credential-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 10px;
}
.hero__credential-value {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--cream);
  line-height: 1.3;
}
.hero__credential-meta {
  font-size: 12.5px;
  color: rgba(244, 237, 220, 0.6);
  margin-top: 4px;
}

.hero__bottom {
  position: relative;
  z-index: 1;
  margin-top: clamp(28px, 3vw, 44px);
  padding-top: 20px;
  border-top: 1px solid rgba(244, 237, 220, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 237, 220, 0.55);
}
.hero__bottom-tags {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.hero__bottom-tags span {
  position: relative;
}
.hero__bottom-tags span::before {
  content: "·";
  margin-right: 12px;
  color: var(--gold-text);
}
.hero__bottom-meta {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero__bottom-meta::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__right { flex-direction: row; flex-wrap: wrap; gap: 24px; }
  .hero__credential { flex: 1 1 220px; }
}

/* ───────── Section header ───────── */

.section {
  padding: var(--section-y) 0;
  position: relative;
}
.section--green {
  background: var(--green);
  color: var(--cream);
}
.section--cream {
  background: var(--cream);
  color: var(--ink);
}
.section--deep {
  background: var(--green-deep);
  color: var(--cream);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.section-head__index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gold-text);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-head__index::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.section-head__label {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 500;
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 360px;
}
.section--green .section-head__label,
.section--deep .section-head__label { color: rgba(244, 237, 220, 0.7); }

.section-head__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 5.4vw, 76px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.section-head__title .ed {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-text);
}

@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
}

/* ───────── Capabilities ───────── */

.caps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-green);
}
.cap {
  padding: 40px 28px 32px 0;
  border-bottom: 1px solid var(--line-green);
  border-right: 1px solid var(--line-green);
  position: relative;
  transition: background 400ms var(--ease-out);
}
.cap:last-child { border-right: none; }
.cap:hover { background: rgba(31, 95, 74, 0.04); }

.cap__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold-text);
  letter-spacing: 0.16em;
  margin-bottom: 24px;
  padding-left: 28px;
}
.cap__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 16px;
  padding-left: 28px;
  letter-spacing: -0.015em;
}
.cap__desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--stone);
  padding-left: 28px;
  margin-bottom: 28px;
}
.cap__list {
  list-style: none;
  padding-left: 28px;
}
.cap__list li {
  padding: 9px 0;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.cap__list li::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
}

@media (max-width: 960px) {
  .caps { grid-template-columns: repeat(2, 1fr); }
  .cap:nth-child(2) { border-right: none; }
}
@media (max-width: 560px) {
  .caps { grid-template-columns: 1fr; }
  .cap { border-right: none; }
}

/* ───────── Sectors ───────── */

.sectors {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.sector {
  grid-column: span 3;
  background: var(--green-deep);
  color: var(--cream);
  padding: 32px 28px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 500ms var(--ease-out);
  cursor: default;
}
.sector::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 600ms var(--ease-out);
}
.sector:hover::before { transform: scaleX(1); }

.sector__icon {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold-text);
  text-transform: uppercase;
}
.sector__num {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 56px;
  color: rgba(244, 237, 220, 0.15);
  line-height: 1;
  align-self: flex-end;
  margin-top: auto;
}
.sector__name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
  position: absolute;
  bottom: 28px;
  left: 28px;
  right: 28px;
}
.sector__desc {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(244, 237, 220, 0.65);
  position: absolute;
  bottom: 84px;
  left: 28px;
  right: 28px;
  max-width: 280px;
}

@media (max-width: 1000px) {
  .sector { grid-column: span 6; }
}
@media (max-width: 560px) {
  .sector { grid-column: span 12; min-height: 220px; }
}

/* ───────── Projects ───────── */

.projects-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.projects-filter {
  padding: 10px 18px;
  border-radius: 100px;
  border: 1px solid var(--line-green);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: 0.02em;
  transition: all 240ms var(--ease-out);
}
.projects-filter:hover {
  border-color: var(--green);
  color: var(--green);
}
.projects-filter.is-active {
  background: var(--green);
  color: var(--cream);
  border-color: var(--green);
}

.projects {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.project {
  grid-column: span 4;
  background: var(--cream);
  border-radius: 4px;
  overflow: hidden;
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
  position: relative;
}
.project--wide { grid-column: span 6; }
.project--full { grid-column: span 12; }

.project.is-hidden { display: none; }

.project__visual {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  background: var(--green-deep);
}
.project--wide .project__visual { aspect-ratio: 16 / 9; }
.project--full .project__visual { aspect-ratio: 21 / 9; }

.project__visual-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Placeholder visuals · abstracted construction motifs */
.project__viz {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.project__viz-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244, 237, 220, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 237, 220, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
}
.project__viz-label {
  position: absolute;
  top: 20px;
  left: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(244, 237, 220, 0.58);
  text-transform: uppercase;
}
.project__viz-coord {
  position: absolute;
  bottom: 20px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(244, 237, 220, 0.4);
}

.project__viz svg { width: 70%; height: 70%; opacity: 0.85; }

.project__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(14, 53, 40, 0.65) 100%);
  opacity: 0;
  transition: opacity 400ms var(--ease-out);
}
.project:hover .project__overlay { opacity: 1; }

.project__meta {
  padding: 22px 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.project__info {
  flex: 1;
  min-width: 0;
}
.project__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold-text);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.project__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.project__location {
  font-size: 13px;
  color: var(--stone);
}
.project__year {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--stone-2);
  letter-spacing: 0.1em;
  align-self: flex-start;
  white-space: nowrap;
}

/* Scope cards: stretched cover link */
.project__cover {
  position: absolute;
  inset: 0;
  z-index: 2;
}

@media (max-width: 960px) {
  .project, .project--wide { grid-column: span 6; }
  .project--full { grid-column: span 12; }
}
@media (max-width: 600px) {
  .project, .project--wide, .project--full { grid-column: span 12; }
}

/* ───────── Stats ───────── */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(244, 237, 220, 0.12);
}
.stat {
  padding: 56px 28px 48px 0;
  border-bottom: 1px solid rgba(244, 237, 220, 0.12);
  border-right: 1px solid rgba(244, 237, 220, 0.12);
  padding-left: 28px;
}
.stat:nth-child(4n), .stat:last-child { border-right: none; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(44px, 4.4vw, 72px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 6px;
  color: var(--cream);
}
.stat__suffix {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  font-size: 0.7em;
  color: var(--gold-text);
  line-height: 1.1;
}
.stat__label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 8px;
}
.stat__desc {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(244, 237, 220, 0.65);
  max-width: 240px;
}

@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(4n) { border-right: none; }
  .stat:nth-child(odd) { border-right: 1px solid rgba(244, 237, 220, 0.12); }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none !important; padding: 36px 0; }
}

/* ───────── Process ───────── */

.process {
  position: relative;
}
.process__track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.process__track::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-green);
  z-index: 0;
}
.process-step {
  position: relative;
  z-index: 1;
  padding-top: 0;
}
.process-step__dot {
  width: 73px;
  height: 73px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--line-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
  transition: all 400ms var(--ease-out);
}
.process-step:hover .process-step__dot {
  background: var(--green);
  color: var(--cream);
  transform: scale(1.05);
}
.process-step__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  line-height: 1.2;
}
.process-step__desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--stone);
  max-width: 260px;
}

@media (max-width: 800px) {
  .process__track { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .process__track::before { display: none; }
}
@media (max-width: 480px) {
  .process__track { grid-template-columns: 1fr; }
}

/* ───────── About ───────── */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.about__copy {
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.55;
  color: var(--ink-2);
}
.about__copy p + p { margin-top: 1em; }
.about__copy strong { color: var(--green); font-weight: 600; }

.about__lede {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--green-deep);
  margin-bottom: 36px;
  display: block;
}

.about__card {
  background: var(--green);
  color: var(--cream);
  padding: 40px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.about__card-eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 28px;
}
.about__portrait {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--green-tint) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.about__name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: -0.015em;
}
.about__role {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 28px;
}
.about__quote {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 19px;
  line-height: 1.45;
  color: var(--cream);
  padding-left: 22px;
  border-left: 1px solid var(--gold-rule);
}
.about__sig {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 13px;
  color: rgba(244, 237, 220, 0.7);
}
.about__sig-line {
  flex: 1;
  height: 1px;
  background: var(--gold-rule);
}

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
}

/* ───────── Standards ───────── */

.standards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(244, 237, 220, 0.16);
  border-left: 1px solid rgba(244, 237, 220, 0.16);
}
.standard {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 26px 28px;
  border-bottom: 1px solid rgba(244, 237, 220, 0.16);
  border-right: 1px solid rgba(244, 237, 220, 0.16);
  transition: background 360ms var(--ease-out);
}
.standard:hover { background: rgba(244, 237, 220, 0.04); }
.standard__code {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--gold-text);
  white-space: nowrap;
  flex: 0 0 88px;
}
.standard__org {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--cream);
  line-height: 1.25;
  letter-spacing: -0.005em;
}
.standard__gov {
  font-size: 12.5px;
  color: rgba(244, 237, 220, 0.6);
  line-height: 1.45;
  margin-top: 5px;
}
.standards__note {
  margin-top: 28px;
  font-size: 13px;
  color: rgba(244, 237, 220, 0.58);
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  max-width: 620px;
  line-height: 1.55;
  padding-left: 20px;
  border-left: 1px solid var(--gold-rule);
}

@media (max-width: 880px) {
  .standards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .standards { grid-template-columns: 1fr; }
  .standard__code { flex-basis: 76px; }
}

/* ───────── Procurement credentials ───────── */

.creds {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-green);
  border-left: 1px solid var(--line-green);
}
.cred {
  padding: 28px 26px 30px;
  border-bottom: 1px solid var(--line-green);
  border-right: 1px solid var(--line-green);
  transition: background 360ms var(--ease-out);
}
.cred:hover { background: rgba(31, 95, 74, 0.04); }
.cred__k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 18px;
}
.cred__v {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 10px;
}
.cred__meta {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--stone);
}
.cred__meta strong {
  color: var(--green);
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
@media (max-width: 900px) {
  .creds { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  .creds { grid-template-columns: 1fr; }
}

.creds-cta {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.creds-cta__text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--stone);
  max-width: 560px;
}

/* ───────── Certifications ───────── */

.certs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-green);
  border-bottom: 1px solid var(--line-green);
}
.cert {
  padding: 36px 24px;
  border-right: 1px solid var(--line-green);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.cert:last-child { border-right: none; }
.cert__badge {
  width: 56px;
  height: 56px;
  border: 1px solid var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 28px;
  color: var(--green);
  font-weight: 400;
}
.cert__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.25;
  color: var(--ink);
}
.cert__desc {
  font-size: 12.5px;
  color: var(--stone);
  line-height: 1.5;
}

@media (max-width: 800px) {
  .certs { grid-template-columns: repeat(2, 1fr); }
  .cert:nth-child(2) { border-right: none; }
}
@media (max-width: 480px) {
  .certs { grid-template-columns: 1fr; }
  .cert { border-right: none !important; border-bottom: 1px solid var(--line-green); }
  .cert:last-child { border-bottom: none; }
}

/* ───────── Clients marquee ───────── */

.clients {
  padding: 60px 0;
  background: var(--cream-warm);
  overflow: hidden;
  position: relative;
}
.clients__label {
  text-align: center;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 36px;
}
.marquee {
  display: flex;
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, white 12%, white 88%, transparent);
          mask: linear-gradient(90deg, transparent, white 12%, white 88%, transparent);
}
.marquee__track {
  display: flex;
  gap: 80px;
  animation: marquee 40s linear infinite;
  flex-shrink: 0;
  padding-right: 80px;
}
/* Paused by JS whenever the strip is off-screen — it sits far down the page and
   there is no reason to burn a phone's battery animating it unseen. */
.marquee__track.is-paused { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee__item {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
  color: var(--green-deep);
  letter-spacing: -0.01em;
  /* clamp() drops this to 20px on phones, below the 24px "large text" cutoff,
     so the 4.5:1 rule applies rather than 3:1. At 0.55 it measured 3.12:1 —
     fine on desktop at 28px, a fail on mobile. 0.70 is the computed floor. */
  opacity: 0.72;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 80px;
}
.marquee__item::after {
  content: "✱";
  color: var(--gold-text);
  font-size: 0.75em;
  opacity: 1;
}

/* ───────── Contact ───────── */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact__copy {
  max-width: 580px;
}
.contact__form {
  background: rgba(244, 237, 220, 0.05);
  border: 1px solid rgba(244, 237, 220, 0.14);
  padding: 40px;
  border-radius: 4px;
}
.field {
  margin-bottom: 24px;
}
.field__label {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 10px;
}
.field__input,
.field__textarea,
.field__select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(244, 237, 220, 0.25);
  padding: 12px 0;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--cream);
  font-weight: 500;
  transition: border-color 240ms var(--ease-out);
  outline: none;
}
.field__input:focus,
.field__textarea:focus,
.field__select:focus {
  border-color: var(--gold-text);
}
.field__input::placeholder,
.field__textarea::placeholder {
  color: rgba(244, 237, 220, 0.4);
}
.field__textarea { resize: vertical; min-height: 100px; }
.field__select option { color: var(--ink); }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Honeypot. Off-screen rather than display:none — some bots skip hidden fields,
   and this stays in the accessibility tree with its "do not fill" label. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 13.5px;
  line-height: 1.5;
  text-align: center;
  min-height: 1.2em;
}
.form-status:empty { display: none; }
.form-status.is-pending { color: rgba(244, 237, 220, 0.7); }
.form-status.is-ok {
  color: var(--cream);
  background: rgba(122, 184, 148, 0.16);
  border: 1px solid rgba(122, 184, 148, 0.5);
  border-radius: 4px;
  padding: 12px 14px;
}
.form-status.is-error {
  color: #FFD9C2;
  background: rgba(214, 106, 74, 0.16);
  border: 1px solid rgba(214, 106, 74, 0.6);
  border-radius: 4px;
  padding: 12px 14px;
}

.contact__form-note {
  margin-top: 16px;
  font-size: 12px;
  color: rgba(244, 237, 220, 0.58);
  text-align: center;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.contact__details {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 24px;
}
.contact__detail-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 8px;
}
.contact__detail-value {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--cream);
  line-height: 1.4;
  overflow-wrap: anywhere;
}
/* Phone and email are the highest-intent taps on the site — give them a real
   target instead of a 22px line of text. */
.contact__detail-value a {
  display: inline-block;
  padding: 8px 0;
  transition: color 240ms;
}
.contact__detail-value a:hover { color: var(--gold-text); }

@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .contact__form { padding: 28px 22px; }
  .contact__details { grid-template-columns: 1fr; }
}

/* ───────── Footer ───────── */

.footer {
  background: var(--green-deep);
  color: var(--cream);
  padding: 80px 0 32px;
}
.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 56px;
  margin-bottom: 80px;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer__brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer__descriptor {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text);
  line-height: 1.6;
  margin-top: -8px;
}
.footer__tagline {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 24px;
  line-height: 1.3;
  color: var(--cream);
  max-width: 360px;
}

.footer__col h3 {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 20px;
}
.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  /* gap trimmed because the links below now carry their own padding — keeps the
     visual rhythm while lifting each target from 18px to ~32px */
  gap: 2px;
  font-family: var(--font-display);
  font-size: 14px;
  color: rgba(244, 237, 220, 0.7);
}
.footer__col li { padding: 3px 0; }
.footer__col a {
  display: inline-block;
  padding: 4px 0;
  font-family: var(--font-display);
  font-size: 14px;
  color: rgba(244, 237, 220, 0.7);
  transition: color 240ms;
}
.footer__col a:hover { color: var(--cream); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(244, 237, 220, 0.12);
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 12px;
  color: rgba(244, 237, 220, 0.58);
  letter-spacing: 0.04em;
}

@media (max-width: 800px) {
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer__inner { grid-template-columns: 1fr; }
}

/* ───────── Subpages ───────── */

.page-hero {
  background: var(--green);
  color: var(--cream);
  padding: clamp(56px, 7vw, 96px) 0 clamp(44px, 5vw, 72px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.page-hero__crumb {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 32px;
}
.page-hero__crumb a { opacity: 0.75; transition: opacity 200ms; color: var(--cream); }
.page-hero__crumb a:hover { opacity: 1; }
.page-hero__crumb span { opacity: 0.5; }
.page-hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 5.6vw, 84px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.page-hero__title .ed {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-soft);
}
.page-hero__lede {
  max-width: 640px;
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.6;
  color: rgba(244, 237, 220, 0.82);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line-green);
  border-left: 1px solid var(--line-green);
}
.detail-item {
  padding: 36px 32px;
  border-bottom: 1px solid var(--line-green);
  border-right: 1px solid var(--line-green);
}
.detail-item__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold-text);
  letter-spacing: 0.16em;
  margin-bottom: 18px;
}
.detail-item__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: 12px;
}
.detail-item__desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--stone);
  margin-bottom: 18px;
}
.detail-item__list {
  list-style: none;
  padding: 0;
}
.detail-item__list li {
  padding: 8px 0;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.detail-item__list li::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  flex: 0 0 4px;
}
@media (max-width: 760px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-item { padding: 28px 22px; }
}

.spec-rows {
  border-top: 1px solid var(--line-green);
}
.spec-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-green);
}
.spec-row__k {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text);
  padding-top: 3px;
}
.spec-row__v {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}
.spec-row__v strong { color: var(--green); font-weight: 600; }
.section--deep .spec-row__v,
.section--green .spec-row__v { color: rgba(244, 237, 220, 0.8); }
.section--deep .spec-row__v strong,
.section--green .spec-row__v strong { color: var(--cream); }
@media (max-width: 600px) {
  .spec-row { grid-template-columns: 1fr; gap: 6px; }
}

.page-cta {
  background: var(--green-deep);
  color: var(--cream);
  padding: clamp(56px, 7vw, 96px) 0;
  text-align: center;
}
.page-cta__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 3.6vw, 52px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.page-cta__title .ed {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-text);
}
.page-cta__sub {
  font-size: 15px;
  color: rgba(244, 237, 220, 0.7);
  margin-bottom: 32px;
}
.page-cta .cta { margin: 0 auto; }

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line-green);
  background: var(--cream);
}
.pager__link {
  padding: 32px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 300ms var(--ease-out);
}
.pager__link:hover { background: rgba(31, 95, 74, 0.05); }
.pager__link--next { text-align: right; border-left: 1px solid var(--line-green); }
.pager__dir {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.pager__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* Cap card links (homepage) */
.cap__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 28px;
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  border-bottom: 1px solid var(--gold-rule);
  /* 12px vertical padding lifts this off a 25px tap target onto a comfortable one */
  padding: 10px 0 8px;
  transition: color 240ms var(--ease-out);
}
.cap__link:hover { color: var(--gold-text); }
.cap__link:hover .cta-arrow { transform: translateX(4px); }

/* ───────── 404 ───────── */

.notfound {
  background: var(--green);
  color: var(--cream);
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
}
.notfound__code {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--gold-text);
  margin-bottom: 24px;
}
