/* ==========================================================================
   Brothers Excavation and Concreting Pty Ltd
   Art direction: bluestone + oxide clay. Sharp shape language (2px radius,
   hairline rules), heavy grotesque display, monospace for factual data.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --primary: #1e2b33;
  --primary-dark: #141e24;
  --primary-soft: #33454f;
  --accent: #a94e22;
  --accent-strong: #8e3f1b;
  --accent-bright: #e3925a;
  --accent-tint: rgba(169, 78, 34, 0.09);
  --accent-line: rgba(169, 78, 34, 0.24);

  /* Neutrals */
  --bg: #f5f4f1;
  --surface: #ffffff;
  --surface-alt: #ebe9e4;
  --border: #d8d5ce;
  --border-strong: #bfbbb2;
  --border-invert: rgba(255, 255, 255, 0.14);

  /* Text */
  --text-dark: #1c2427;
  --text-muted: #5c6870;
  --text-light: #edeeec;
  --text-light-muted: #a8b3b9;

  /* Strata band layer colours */
  --layer-1: #6b5a45;
  --layer-2: #8a7358;
  --layer-3: #a3937c;
  --layer-4: #6e7a80;
  --layer-5: #b9bec0;

  /* Type */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, "SF Mono", Menlo, monospace;

  --fs-hero: clamp(2.4rem, 5.4vw, 4.25rem);
  --fs-page-title: clamp(2rem, 4.4vw, 3.25rem);
  --fs-h2: clamp(1.65rem, 3.1vw, 2.5rem);
  --fs-h3: 1.125rem;
  --fs-lead: clamp(1.05rem, 1.6vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-micro: 0.78rem;

  /* Spacing scale */
  --s1: 0.5rem;
  --s2: 0.75rem;
  --s3: 1rem;
  --s4: 1.5rem;
  --s5: 2.5rem;
  --s6: 4rem;
  --s7: 6rem;
  --section-y: clamp(3.25rem, 7vw, 6.5rem);
  --section-y-tight: clamp(2.5rem, 5vw, 4rem);

  /* Shape */
  --radius: 2px;
  --container: 1140px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --hairline: 1px;

  --shadow-sm: 0 1px 2px rgba(20, 30, 36, 0.06);
  --shadow-md: 0 1px 2px rgba(20, 30, 36, 0.05), 0 10px 28px rgba(20, 30, 36, 0.08);
  --shadow-lg: 0 24px 60px rgba(20, 30, 36, 0.18);

  --t: 170ms cubic-bezier(0.2, 0.6, 0.3, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
}

p { margin: 0; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }

ul, ol { margin: 0; padding: 0; }

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

.section-dark :focus-visible,
.hero :focus-visible,
.page-hero :focus-visible,
.cta :focus-visible,
.footer :focus-visible { outline-color: var(--accent-bright); }

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

.skip-link {
  position: absolute;
  left: var(--s3);
  top: -100px;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: var(--s2) var(--s3);
  border-radius: var(--radius);
  font-size: var(--fs-small);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: var(--s2); color: #fff; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section-tight { padding-block: var(--section-y-tight); }
.section-alt { background: var(--surface); border-block: var(--hairline) solid var(--border); }
.section-dark { background: var(--primary-dark); color: var(--text-light); }

.measure { max-width: 66ch; }
.measure-narrow { max-width: 58ch; }

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--s2);
}
.eyebrow-invert { color: var(--accent-bright); }

.section-head { margin-bottom: var(--s5); }
.section-title { font-size: var(--fs-h2); }
.section-lead {
  margin-top: var(--s3);
  color: var(--text-muted);
  font-size: var(--fs-lead);
  max-width: 62ch;
}
.section-dark .section-lead { color: var(--text-light-muted); }

.rule {
  border: 0;
  border-top: var(--hairline) solid var(--border);
  margin-block: var(--s5);
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  border: var(--hairline) solid transparent;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--t), background-color var(--t), color var(--t), border-color var(--t), box-shadow var(--t);
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--accent-strong);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  background: var(--surface);
  color: var(--text-dark);
  border-color: var(--text-dark);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  background: transparent;
  color: var(--text-light);
  border-color: var(--border-invert);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-sm { padding: 0.55rem 1.05rem; font-size: var(--fs-micro); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: var(--s4);
}

/* --------------------------------------------------------------------------
   5. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(245, 244, 241, 0.86);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: var(--hairline) solid var(--border);
}

.navbar { position: relative; }

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: 72px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  text-decoration: none;
  color: var(--text-dark);
}
.wordmark-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  background: var(--primary);
  color: var(--text-light);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.wordmark-text { display: flex; flex-direction: column; line-height: 1.15; }
.wordmark-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}
.wordmark-sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--s4);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s4);
  list-style: none;
}
.nav-link {
  position: relative;
  display: inline-block;
  padding: var(--s1) 0;
  color: var(--text-dark);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--t);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.nav-link:hover { color: var(--accent); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--accent); }
.nav-link.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: var(--hairline) solid var(--border-strong);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-dark);
  transition: transform var(--t), opacity var(--t);
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 88% 6%, rgba(169, 78, 34, 0.28) 0%, rgba(169, 78, 34, 0) 58%),
    linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 72%);
  color: var(--text-light);
  padding-block: clamp(3.5rem, 7vw, 6rem) clamp(5rem, 11vw, 8.5rem);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4.5vw), 0 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    repeating-linear-gradient(to right, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 56px);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.15));
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.15));
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4.5vw;
  height: 2px;
  z-index: -1;
  background: linear-gradient(to right, var(--accent) 0%, rgba(169, 78, 34, 0) 62%);
  opacity: 0.75;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-copy { position: relative; z-index: 1; min-width: 0; }
.hero-anchor { position: relative; z-index: 1; min-width: 0; }

.hero-title {
  font-size: var(--fs-hero);
  letter-spacing: -0.035em;
  line-height: 1.03;
}
.hero-title em {
  font-style: normal;
  color: var(--accent-bright);
}
.hero-lead {
  margin-top: var(--s4);
  max-width: 54ch;
  font-size: var(--fs-lead);
  color: var(--text-light-muted);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
  margin-top: var(--s5);
  padding-top: var(--s3);
  border-top: var(--hairline) solid var(--border-invert);
  list-style: none;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light-muted);
}

/* Hero visual anchor -------------------------------------------------------- */
.figure-panel {
  background: rgba(255, 255, 255, 0.045);
  border: var(--hairline) solid var(--border-invert);
  border-radius: var(--radius);
  padding: var(--s4);
  box-shadow: var(--shadow-lg);
}
.figure-panel svg { display: block; width: 100%; height: auto; }
.figure-caption {
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  margin-top: var(--s3);
  padding-top: var(--s2);
  border-top: var(--hairline) solid var(--border-invert);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light-muted);
}

/* --------------------------------------------------------------------------
   7. Inner-page hero
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(110% 130% at 92% 0%, rgba(169, 78, 34, 0.26) 0%, rgba(169, 78, 34, 0) 60%),
    linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 78%);
  color: var(--text-light);
  padding-block: clamp(2.75rem, 6vw, 4.5rem) clamp(3.5rem, 8vw, 5.5rem);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2.5vw), 0 100%);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    repeating-linear-gradient(to right, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 56px);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.1));
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.1));
}
.page-hero-inner { max-width: 64ch; }
.page-title { font-size: var(--fs-page-title); letter-spacing: -0.03em; }
.page-lead {
  margin-top: var(--s3);
  font-size: var(--fs-lead);
  color: var(--text-light-muted);
}

/* --------------------------------------------------------------------------
   8. Capability strip
   -------------------------------------------------------------------------- */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.capability {
  padding: var(--s5) var(--s4);
  border-right: var(--hairline) solid var(--border);
}
.capability:last-child { border-right: 0; }
.capability-title {
  font-size: var(--fs-h3);
  margin-bottom: var(--s2);
}
.capability-text {
  color: var(--text-muted);
  font-size: var(--fs-small);
  max-width: 62ch;
}

/* --------------------------------------------------------------------------
   9. Services
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: var(--s4);
}
.services-grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

.service-card {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  padding: var(--s4);
  background: var(--surface);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.service-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.service-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  color: var(--accent);
  background: var(--accent-tint);
  border: var(--hairline) solid var(--accent-line);
  border-radius: var(--radius);
}
.service-icon svg { width: 24px; height: 24px; }
.service-code {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--s1);
}
.service-title { font-size: var(--fs-h3); }
.service-text { color: var(--text-muted); font-size: var(--fs-small); }
.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  margin-top: auto;
  padding-top: var(--s3);
  border-top: var(--hairline) solid var(--border);
  font-size: var(--fs-small);
  color: var(--text-muted);
}
.service-list li { position: relative; padding-left: var(--s3); }
.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 1px;
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   10. Strata / process band (full-bleed dark)
   -------------------------------------------------------------------------- */
.process-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.strata-stack {
  list-style: none;
  display: flex;
  flex-direction: column;
  border-top: var(--hairline) solid var(--border-invert);
}
.strata-row {
  display: grid;
  grid-template-columns: 10px 3.25rem minmax(0, 1fr);
  gap: var(--s3);
  align-items: start;
  padding-block: var(--s3);
  border-bottom: var(--hairline) solid var(--border-invert);
}
.strata-bar {
  align-self: stretch;
  border-radius: var(--radius);
  background: var(--layer-1);
}
.strata-row:nth-child(2) .strata-bar { background: var(--layer-2); }
.strata-row:nth-child(3) .strata-bar { background: var(--layer-3); }
.strata-row:nth-child(4) .strata-bar { background: var(--layer-4); }
.strata-row:nth-child(5) .strata-bar { background: var(--layer-5); }
.strata-num {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  color: var(--accent-bright);
  padding-top: 0.2em;
}
.strata-step-body { min-width: 0; }
.strata-title {
  font-size: 1.02rem;
  margin-bottom: var(--s1);
}
.strata-text {
  color: var(--text-light-muted);
  font-size: var(--fs-small);
  max-width: 54ch;
}

/* --------------------------------------------------------------------------
   11. Split band (copy + panel)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split-copy { min-width: 0; }
.split-copy p + p { margin-top: var(--s3); }

.fact-card {
  background: var(--surface);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius);
  padding: var(--s5) var(--s4);
  box-shadow: var(--shadow-md);
}
.fact-card-title {
  font-size: var(--fs-h3);
  margin-bottom: var(--s4);
  padding-bottom: var(--s3);
  border-bottom: var(--hairline) solid var(--border);
}
.fact-list { list-style: none; display: flex; flex-direction: column; }
.fact-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s2);
  padding-block: var(--s2);
  border-bottom: var(--hairline) solid var(--border);
}
.fact-item:last-child { border-bottom: 0; }
.fact-key {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.fact-value {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--text-dark);
  font-weight: 600;
  word-break: break-word;
}

/* --------------------------------------------------------------------------
   12. Credentials rail
   -------------------------------------------------------------------------- */
.credentials {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: var(--hairline) solid var(--border);
  border-bottom: var(--hairline) solid var(--border);
}
.cred-item {
  padding: var(--s4) var(--s4) var(--s4) 0;
  border-right: var(--hairline) solid var(--border);
}
.cred-item:last-child { border-right: 0; }
.cred-item + .cred-item { padding-left: var(--s4); }
.cred-key {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--s1);
}
.cred-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   13. Checklist
   -------------------------------------------------------------------------- */
.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  margin-top: var(--s4);
}
.check-list li {
  position: relative;
  padding-left: var(--s5);
  color: var(--text-muted);
  font-size: var(--fs-small);
  max-width: 62ch;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: var(--s4);
  height: 1px;
  background: var(--accent);
}
.check-list strong { color: var(--text-dark); font-weight: 700; }
.section-dark .check-list li { color: var(--text-light-muted); }
.section-dark .check-list li::before { background: var(--accent-bright); }
.section-dark .check-list strong { color: var(--text-light); }

/* --------------------------------------------------------------------------
   14. CTA band
   -------------------------------------------------------------------------- */
.cta {
  background: var(--primary);
  color: var(--text-light);
  border-top: 2px solid var(--accent);
}
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
}
.cta-title { font-size: var(--fs-h2); max-width: 20ch; }
.cta-text {
  margin-top: var(--s3);
  color: var(--text-light-muted);
  max-width: 46ch;
  font-size: var(--fs-small);
}
.cta .btn-row { margin-top: 0; }

/* --------------------------------------------------------------------------
   15. Contact page
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-card {
  background: var(--surface);
  border: var(--hairline) solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--s5) var(--s4);
  box-shadow: var(--shadow-sm);
}
.contact-lines { list-style: none; display: flex; flex-direction: column; gap: var(--s4); }
.contact-line-key {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--s1);
}
.contact-line-value {
  display: block;
  font-size: var(--fs-small);
  color: var(--text-dark);
  word-break: break-word;
}

.contact-form {
  background: var(--surface);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius);
  padding: var(--s5) var(--s4);
  box-shadow: var(--shadow-md);
}
.field { display: flex; flex-direction: column; gap: var(--s1); margin-bottom: var(--s4); }
.field-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field-input,
.field-textarea {
  width: 100%;
  padding: var(--s2) var(--s3);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--text-dark);
  background: var(--bg);
  border: var(--hairline) solid var(--border-strong);
  border-radius: var(--radius);
  transition: border-color var(--t), background-color var(--t);
}
.field-input:focus,
.field-textarea:focus { background: var(--surface); border-color: var(--accent); }
.field-textarea { min-height: 150px; resize: vertical; }
.form-note {
  margin-top: var(--s3);
  font-size: var(--fs-micro);
  color: var(--text-muted);
  max-width: 60ch;
}

/* --------------------------------------------------------------------------
   16. Legal pages
   -------------------------------------------------------------------------- */
.legal { max-width: 74ch; }
.legal-updated {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: var(--s3);
  border-bottom: var(--hairline) solid var(--border);
  margin-bottom: var(--s5);
}
.legal-section + .legal-section { margin-top: var(--s5); }
.legal-heading {
  display: flex;
  gap: var(--s3);
  align-items: baseline;
  font-size: 1.2rem;
  margin-bottom: var(--s3);
}
.legal-num {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--accent);
  flex: none;
}
.legal-section p { color: var(--text-muted); }
.legal-section p + p { margin-top: var(--s3); }
.legal-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  margin-top: var(--s3);
}
.legal-section li {
  position: relative;
  padding-left: var(--s4);
  color: var(--text-muted);
  font-size: var(--fs-small);
}
.legal-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 7px;
  height: 1px;
  background: var(--accent);
}
.legal-section strong { color: var(--text-dark); }

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--primary-dark);
  color: var(--text-light-muted);
  border-top: var(--hairline) solid var(--border-invert);
}
.footer-top { padding-block: var(--section-y-tight); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: var(--s5) var(--s4);
}
.footer-brand { min-width: 0; }
.footer-brand .wordmark { color: var(--text-light); }
.footer-brand .wordmark-mark { background: var(--accent); color: #fff; }
.footer-brand .wordmark-sub { color: var(--text-light-muted); }
.footer-blurb {
  margin-top: var(--s3);
  font-size: var(--fs-small);
  max-width: 40ch;
}
.footer-reg {
  margin-top: var(--s3);
  padding-top: var(--s3);
  border-top: var(--hairline) solid var(--border-invert);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  color: var(--text-light-muted);
}
.footer-reg span { display: block; }
.footer-col { min-width: 0; }
.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: var(--s3);
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: var(--s2); }
.footer-link {
  color: var(--text-light-muted);
  font-size: var(--fs-small);
  text-decoration: none;
  transition: color var(--t);
}
.footer-link:hover { color: var(--accent-bright); text-decoration: underline; }
.footer-contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  font-size: var(--fs-small);
  word-break: break-word;
}

.footer-bottom {
  background: var(--primary);
  border-top: var(--hairline) solid var(--border-invert);
}
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding-block: var(--s3);
  font-size: var(--fs-micro);
}
.footer-copy { color: var(--text-light-muted); }
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--s4); list-style: none; }

/* --------------------------------------------------------------------------
   18. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-inner,
  .process-inner,
  .contact-grid,
  .split { grid-template-columns: minmax(0, 1fr); }
  .hero-inner { gap: var(--s5); }
  .credentials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cred-item:nth-child(2) { border-right: 0; }
  .cred-item:nth-child(3),
  .cred-item:nth-child(4) { border-top: var(--hairline) solid var(--border); }
  .cred-item:nth-child(3) { padding-left: 0; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: var(--s3);
    padding: var(--s4) var(--gutter) var(--s5);
    background: var(--bg);
    border-bottom: var(--hairline) solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-menu.is-open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links li { border-bottom: var(--hairline) solid var(--border); }
  .nav-link { display: block; padding: var(--s3) 0; font-size: var(--fs-body); }
  .nav-link::after { bottom: 0; right: auto; width: 24px; }
  .nav-menu .btn { width: 100%; }

  .hero { clip-path: none; }
  .hero::after { bottom: 0; }
  .page-hero { clip-path: none; }

  .capability-grid { grid-template-columns: minmax(0, 1fr); }
  .capability { border-right: 0; border-bottom: var(--hairline) solid var(--border); }
  .capability:last-child { border-bottom: 0; }

  .strata-row { grid-template-columns: 8px 2.75rem minmax(0, 1fr); gap: var(--s2); }

  .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .credentials { grid-template-columns: minmax(0, 1fr); }
  .cred-item {
    border-right: 0;
    border-top: var(--hairline) solid var(--border);
    padding-left: 0;
  }
  .cred-item:first-child { border-top: 0; }
  .cred-item + .cred-item { padding-left: 0; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .figure-caption { flex-direction: column; gap: var(--s1); }
  .fact-item { flex-direction: column; gap: var(--s1); }
}

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