/* ==========================================================================
   Coolderry Civil Pty Ltd — coolderryciviltec.site
   Art direction: "Set-out sheet".
   Limestone paper neutrals, bituminous green-slate brand, surveyor's ochre
   accent. Sharp shape language (2px), condensed display caps, monospaced
   data. Signature device: the chainage rule.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens — every colour, space, radius, shadow and type step lives here.
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --primary: #1f3a34;
  --primary-dark: #152724;
  --primary-soft: #2c4f47;
  --primary-tint: #e4eae7;

  /* Accent (surveyor's marking ochre) */
  --accent: #a85a12;
  --accent-bright: #e3a24a;
  --accent-wash: #f6ecdf;

  /* Neutral ramp (warm limestone) */
  --bg: #f7f5f0;
  --bg-hi: #fbfaf6;
  --surface: #ffffff;
  --surface-alt: #efebe3;
  --border: #dcd5c8;
  --border-strong: #c3baa9;

  /* Text */
  --text: #1b2422;
  --text-muted: #55605c;
  --text-invert: #f2f0ea;
  --text-invert-muted: #b4bfb9;

  /* Washes, hairlines and overlays */
  --wash-warm: rgba(227, 162, 74, 0.18);
  --wash-cool: rgba(31, 58, 52, 0.11);
  --grid-line: rgba(31, 58, 52, 0.07);
  --hairline-invert: rgba(242, 240, 234, 0.16);
  --header-bg: rgba(247, 245, 240, 0.84);
  --focus-ring: rgba(168, 90, 18, 0.45);
  --mask-fade: rgba(0, 0, 0, 0.9);

  /* Drawing (inline SVG) */
  --fig-ink: #1f3a34;
  --fig-soft: #8d968f;
  --fig-seal: #2c3330;
  --fig-accent: #a85a12;
  --fig-paper: #ffffff;

  /* 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, 6rem);
  --gutter: 1.5rem;

  /* Shape */
  --radius: 2px;
  --radius-lg: 3px;
  --container: 1140px;
  --measure: 64ch;

  /* Type */
  --font-display: "Arial Narrow", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  --step-hero: clamp(2.4rem, 5.4vw, 4.25rem);
  --step-h2: clamp(1.65rem, 3vw, 2.4rem);
  --step-h3: clamp(1.08rem, 1.5vw, 1.28rem);
  --step-lead: clamp(1.05rem, 1.4vw, 1.2rem);
  --step-body: 1.0625rem;
  --step-small: 0.8125rem;
  --step-micro: 0.74rem;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(21, 39, 36, 0.06);
  --shadow-md: 0 1px 2px rgba(21, 39, 36, 0.05), 0 10px 28px rgba(21, 39, 36, 0.07);
  --shadow-lg: 0 2px 4px rgba(21, 39, 36, 0.06), 0 18px 44px rgba(21, 39, 36, 0.1);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.6, 0.3, 1);
  --dur: 180ms;
}

/* --------------------------------------------------------------------------
   2. 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);
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.65;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; }
p { margin: 0 0 var(--s3); }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; }
svg { max-width: 100%; }

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

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

.skip-link {
  position: absolute;
  left: var(--s3);
  top: -100%;
  z-index: 100;
  padding: var(--s2) var(--s3);
  background: var(--primary);
  color: var(--text-invert);
  font-family: var(--font-mono);
  font-size: var(--step-small);
  text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus { top: var(--s2); color: var(--text-invert); }

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

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

/* --------------------------------------------------------------------------
   3. Signature device — the chainage rule
   -------------------------------------------------------------------------- */
.chainage {
  height: 9px;
  border-top: 1px solid var(--border-strong);
  background-image:
    repeating-linear-gradient(to right, var(--border-strong) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(to right, var(--border-strong) 0 1px, transparent 1px 24px);
  background-size: 120px 9px, 24px 5px;
  background-repeat: repeat-x, repeat-x;
  background-position: 0 0, 0 0;
}
.chainage-invert {
  border-top-color: var(--hairline-invert);
  background-image:
    repeating-linear-gradient(to right, var(--hairline-invert) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(to right, var(--hairline-invert) 0 1px, transparent 1px 24px);
}

/* --------------------------------------------------------------------------
   4. Header + navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
}

.navbar { position: relative; }

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

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.wordmark-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--primary);
  color: var(--text-invert);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
}

.wordmark-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.16rem;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.wordmark-suffix {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--step-micro);
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 38px;
  padding: 0 8px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 1.5px;
  background: var(--text);
}
.nav-toggle-bar:nth-child(2) { width: 70%; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--s4);
}

.nav-link {
  position: relative;
  padding: var(--s1) 0;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.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(--dur) var(--ease);
}
.nav-link:hover { color: var(--accent); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--primary); font-weight: 700; }
.nav-link.is-active::after { transform: scaleX(1); }

.nav-cta { margin-left: var(--s1); }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  padding: 0.8rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease),
    color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-invert);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--text-invert);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--surface);
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--surface);
  box-shadow: var(--shadow-sm);
}
.btn-accent:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--text-invert);
}

.btn-ghost {
  background: transparent;
  border-color: var(--hairline-invert);
  color: var(--text-invert);
}
.btn-ghost:hover {
  border-color: var(--accent-bright);
  color: var(--accent-bright);
  background: var(--primary-dark);
}

.btn-sm { padding: 0.55rem 1.05rem; font-size: 0.88rem; }

/* --------------------------------------------------------------------------
   6. Section furniture
   -------------------------------------------------------------------------- */
.section { padding: var(--section-y) 0; }
.section-alt { background: var(--surface-alt); }
.section-paper { background: var(--surface); }
.section-dark { background: var(--primary); color: var(--text-invert); }

.section-head { margin-bottom: var(--s5); }
.section-head-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s5);
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  margin: 0 0 var(--s2);
  font-family: var(--font-mono);
  font-size: var(--step-micro);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}
.section-dark .eyebrow { color: var(--accent-bright); }
.section-dark .eyebrow::before { background: var(--accent-bright); }

.section-title {
  font-family: var(--font-display);
  font-size: var(--step-h2);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.section-lead {
  margin-top: var(--s3);
  max-width: var(--measure);
  font-size: var(--step-lead);
  color: var(--text-muted);
}
.section-dark .section-lead { color: var(--text-invert-muted); }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(900px 440px at 76% 6%, var(--wash-warm), transparent 62%),
    radial-gradient(720px 520px at 4% 104%, var(--wash-cool), transparent 66%),
    linear-gradient(180deg, var(--bg-hi) 0%, var(--bg) 58%, var(--surface-alt) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(to right, var(--grid-line) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(to bottom, var(--grid-line) 0 1px, transparent 1px 64px);
  -webkit-mask-image: linear-gradient(180deg, var(--mask-fade), transparent 82%);
  mask-image: linear-gradient(180deg, var(--mask-fade), transparent 82%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  min-height: 60vh;
}

.hero-copy { max-width: 34rem; }

.hero-title {
  margin: 0 0 var(--s3);
  font-family: var(--font-display);
  font-size: var(--step-hero);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--primary-dark);
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-lead {
  max-width: 46ch;
  font-size: var(--step-lead);
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s4);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1) var(--s3);
  margin-top: var(--s4);
  padding-top: var(--s3);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: var(--step-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Framed technical drawings */
.hero-figure-wrap,
.figure-wrap {
  position: relative;
  padding: var(--s3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.hero-figure-wrap::after {
  content: "DWG. TYPICAL SECTION — NOT TO SCALE";
  position: absolute;
  left: var(--s3);
  bottom: calc(-1 * var(--s4));
  font-family: var(--font-mono);
  font-size: var(--step-micro);
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.hero-figure,
.figure-svg { display: block; width: 100%; height: auto; }

.figure-caption {
  margin: var(--s2) 0 0;
  font-family: var(--font-mono);
  font-size: var(--step-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Inline-SVG drawing parts */
.fig-line { fill: none; stroke: var(--fig-ink); stroke-width: 1.4; }
.fig-leader { fill: none; stroke: var(--fig-soft); stroke-width: 1; stroke-dasharray: 3 3; }
.fig-hatch { stroke: var(--fig-soft); stroke-width: 1; }
.fig-hatch-soft { stroke: var(--fig-soft); stroke-width: 0.7; }
.fig-dot { fill: var(--fig-soft); }
.fig-seal { fill: var(--fig-seal); }
.fig-pipe { fill: var(--fig-paper); stroke: var(--fig-ink); stroke-width: 1.4; }
.fig-mark { fill: var(--fig-accent); }
.fig-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  fill: var(--fig-ink);
}
.fig-label-soft {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  fill: var(--fig-soft);
}

/* --------------------------------------------------------------------------
   8. Compact page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2.25rem, 4vw, 3.25rem);
  background:
    radial-gradient(700px 300px at 82% 0%, var(--wash-warm), transparent 64%),
    linear-gradient(180deg, var(--bg-hi) 0%, var(--bg) 100%);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(to right, var(--grid-line) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(to bottom, var(--grid-line) 0 1px, transparent 1px 64px);
  -webkit-mask-image: linear-gradient(180deg, var(--mask-fade), transparent 88%);
  mask-image: linear-gradient(180deg, var(--mask-fade), transparent 88%);
}
.page-hero-inner { position: relative; }

.page-title {
  max-width: 20ch;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--primary-dark);
}
.page-lead {
  margin-top: var(--s3);
  max-width: var(--measure);
  font-size: var(--step-lead);
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   9. Value props
   -------------------------------------------------------------------------- */
.props-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s4);
}
.prop {
  padding: var(--s4) var(--s4) var(--s5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--primary);
  border-radius: var(--radius);
}
.prop-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--s3);
  background: var(--accent-wash);
  color: var(--accent);
  border-radius: var(--radius);
}
.prop-title {
  margin-bottom: var(--s2);
  font-size: var(--step-h3);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.prop-text { color: var(--text-muted); font-size: 0.98rem; }

/* --------------------------------------------------------------------------
   10. Values (dark band, unordered — deliberately not numbered)
   -------------------------------------------------------------------------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s5) var(--s6);
}
.value {
  padding-top: var(--s3);
  border-top: 1px solid var(--hairline-invert);
}
.value-title {
  margin-bottom: var(--s2);
  font-size: var(--step-h3);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--text-invert);
}
.value-text {
  max-width: 52ch;
  color: var(--text-invert-muted);
  font-size: 0.98rem;
}

/* --------------------------------------------------------------------------
   11. Services
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s4);
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  padding: var(--s4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}
a.service-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  color: inherit;
}
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--primary-tint);
  color: var(--primary);
  border-radius: var(--radius);
}
.service-title {
  font-size: var(--step-h3);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.service-text { color: var(--text-muted); font-size: 0.98rem; }

.service-more {
  margin-top: auto;
  padding-top: var(--s2);
  font-family: var(--font-mono);
  font-size: var(--step-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Expanded service entries (services.html) */
.service-detail {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: var(--s4);
  padding: var(--s5) 0;
  border-top: 1px solid var(--border);
}
.service-detail:first-of-type { border-top: 0; padding-top: 0; }

.detail-icon {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding-top: 13px;
  background: var(--primary-tint);
  color: var(--primary);
  border-radius: var(--radius);
}
.detail-ref {
  display: block;
  margin-bottom: var(--s1);
  font-family: var(--font-mono);
  font-size: var(--step-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.detail-title {
  margin-bottom: var(--s2);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  line-height: 1.1;
}
.detail-body { max-width: var(--measure); color: var(--text-muted); }
.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s1) var(--s4);
  margin-top: var(--s3);
  list-style: none;
}
.detail-list li {
  position: relative;
  padding-left: var(--s3);
  font-size: 0.95rem;
  color: var(--text);
}
.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   12. Process (dark full-bleed band — a genuine sequence, so it is numbered)
   -------------------------------------------------------------------------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s4);
  margin-top: var(--s5);
}
.process-step {
  padding-top: var(--s3);
  border-top: 1px solid var(--hairline-invert);
}
.step-num {
  display: block;
  margin-bottom: var(--s2);
  font-family: var(--font-mono);
  font-size: var(--step-small);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-bright);
}
.step-title {
  margin-bottom: var(--s2);
  font-size: var(--step-h3);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--text-invert);
}
.step-text { color: var(--text-invert-muted); font-size: 0.97rem; }

/* --------------------------------------------------------------------------
   13. Split band (copy beside a drawn panel)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split-reverse .split-copy { order: 2; }
.split-reverse .split-visual { order: 1; }
.split-copy { max-width: var(--measure); }
.split-copy p { color: var(--text-muted); }
.split-visual { position: relative; }

.spec-sheet {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.spec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s2) var(--s3);
  background: var(--primary);
  color: var(--text-invert);
  font-family: var(--font-mono);
  font-size: var(--step-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.spec-body { padding: var(--s1) var(--s3) var(--s3); }
.spec-row {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: var(--s3);
  padding: var(--s2) 0;
  border-bottom: 1px solid var(--border);
}
.spec-row:last-child { border-bottom: 0; }
.spec-key {
  padding-top: 0.15em;
  font-family: var(--font-mono);
  font-size: var(--step-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.spec-val { font-size: 0.98rem; font-weight: 500; word-break: break-word; }

.tick-list { list-style: none; margin-top: var(--s3); }
.tick-list li {
  position: relative;
  padding-left: var(--s4);
  margin-bottom: var(--s2);
  color: var(--text-muted);
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}
.section-dark .tick-list li { color: var(--text-invert-muted); }
.section-dark .tick-list li::before {
  border-left-color: var(--accent-bright);
  border-bottom-color: var(--accent-bright);
}

/* --------------------------------------------------------------------------
   14. Credentials strip (factual only)
   -------------------------------------------------------------------------- */
.credentials {
  padding: var(--s5) 0;
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cred-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s4);
}
.cred-item { border-left: 2px solid var(--accent); padding-left: var(--s3); }
.cred-key {
  display: block;
  margin-bottom: var(--s1);
  font-family: var(--font-mono);
  font-size: var(--step-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.cred-val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

/* --------------------------------------------------------------------------
   15. Sectors
   -------------------------------------------------------------------------- */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s4);
}
.sector {
  padding: var(--s3) 0 0;
  border-top: 2px solid var(--primary);
}
.sector-title {
  margin-bottom: var(--s1);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.sector-text { color: var(--text-muted); font-size: 0.94rem; }

/* --------------------------------------------------------------------------
   16. CTA strip
   -------------------------------------------------------------------------- */
.cta { background: var(--primary-dark); color: var(--text-invert); }
.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s5);
  align-items: center;
}
.cta-title {
  font-family: var(--font-display);
  font-size: var(--step-h2);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}
.cta-text {
  margin-top: var(--s2);
  max-width: 52ch;
  color: var(--text-invert-muted);
}
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }

/* --------------------------------------------------------------------------
   17. Contact
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-panel {
  margin-top: var(--s4);
  padding: var(--s4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.contact-panel + .prop-title { margin-top: var(--s5); }
.contact-panel .form { margin-top: var(--s4); }

.contact-list { list-style: none; }
.contact-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: var(--s3);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--border);
}
.contact-item:first-child { padding-top: 0; }
.contact-item:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--accent-wash);
  color: var(--accent);
  border-radius: var(--radius);
}
.contact-label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--step-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact-value {
  display: block;
  margin-top: 2px;
  font-size: 1rem;
  font-weight: 600;
  word-break: break-word;
}

.form { display: grid; gap: var(--s3); }
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s3);
}
.field { display: grid; gap: var(--s1); }
.field-label {
  font-family: var(--font-mono);
  font-size: var(--step-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.input,
.textarea,
.select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--text);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.textarea { min-height: 9rem; resize: vertical; }
.form-note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--step-micro);
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   18. Legal pages
   -------------------------------------------------------------------------- */
.legal-grid {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 92px;
  padding: var(--s3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.toc-title {
  margin-bottom: var(--s2);
  font-family: var(--font-mono);
  font-size: var(--step-micro);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.toc-list { list-style: none; display: grid; gap: var(--s1); }
.toc-list a {
  display: block;
  padding-left: var(--s2);
  border-left: 2px solid var(--border);
  font-size: 0.92rem;
  color: var(--text);
  text-decoration: none;
}
.toc-list a:hover { color: var(--accent); border-left-color: var(--accent); }

.legal-body { max-width: 72ch; }
.legal-body h2 {
  margin: var(--s5) 0 var(--s2);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  scroll-margin-top: 96px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 {
  margin: var(--s4) 0 var(--s1);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.legal-body p { color: var(--text-muted); }
.legal-body ul {
  list-style: none;
  margin: 0 0 var(--s3);
}
.legal-body ul li {
  position: relative;
  padding-left: var(--s4);
  margin-bottom: var(--s1);
  color: var(--text-muted);
}
.legal-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 1px;
  background: var(--border-strong);
}
.legal-body strong { color: var(--text); }

.legal-updated {
  display: inline-block;
  margin-top: var(--s3);
  padding: var(--s1) var(--s2);
  background: var(--accent-wash);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: var(--step-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.legal-note {
  margin-top: var(--s5);
  padding: var(--s3);
  background: var(--surface-alt);
  border-left: 2px solid var(--primary);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   19. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--primary-dark);
  color: var(--text-invert);
  border-top: 1px solid var(--hairline-invert);
}
.footer-top { padding: var(--s6) 0 var(--s5); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1.3fr;
  gap: var(--s5) var(--s4);
}
.footer-brand .wordmark { color: var(--text-invert); }
.footer-brand .wordmark-mark { background: var(--accent); color: var(--surface); }
.footer-brand .wordmark-suffix { color: var(--text-invert-muted); }

.footer-blurb {
  margin-top: var(--s3);
  max-width: 34ch;
  font-size: 0.95rem;
  color: var(--text-invert-muted);
}
.footer-legalline {
  margin: var(--s3) 0 0;
  font-family: var(--font-mono);
  font-size: var(--step-micro);
  line-height: 1.9;
  letter-spacing: 0.1em;
  color: var(--text-invert-muted);
}
.footer-col { min-width: 0; }
.footer-title {
  margin-bottom: var(--s3);
  font-family: var(--font-mono);
  font-size: var(--step-micro);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-bright);
}
.footer-links { list-style: none; display: grid; gap: var(--s2); }
.footer-links a {
  color: var(--text-invert-muted);
  font-size: 0.94rem;
  text-decoration: none;
}
.footer-links a:hover { color: var(--text-invert); text-decoration: underline; }

.footer-bottom {
  padding: var(--s3) 0;
  background: var(--primary);
  border-top: 1px solid var(--hairline-invert);
}
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2) var(--s4);
}
.footer-copy {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--step-micro);
  letter-spacing: 0.1em;
  color: var(--text-invert-muted);
}
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  list-style: none;
}
.footer-legal-links a {
  font-family: var(--font-mono);
  font-size: var(--step-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-invert-muted);
  text-decoration: none;
}
.footer-legal-links a:hover { color: var(--accent-bright); }

/* --------------------------------------------------------------------------
   20. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .props-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cred-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-grid { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { position: static; }
  .value-grid { gap: var(--s5) var(--s5); }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-copy { max-width: none; }
  .hero-figure-wrap { margin-bottom: var(--s4); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split-reverse .split-copy,
  .split-reverse .split-visual { order: 0; }
  .split-copy { max-width: none; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .section-head-split { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .cta-inner { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s2) var(--gutter) var(--s4);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-menu.is-open { display: flex; }
  .nav-link {
    padding: var(--s2) 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-link::after { display: none; }
  .nav-link.is-active { border-bottom-color: var(--accent); }
  .nav-cta { margin: var(--s3) 0 0; }

  .props-grid,
  .services-grid,
  .process-grid,
  .value-grid,
  .cred-grid,
  .sector-grid,
  .footer-grid,
  .form-row,
  .detail-list { grid-template-columns: minmax(0, 1fr); }

  .service-detail { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
  .spec-row { grid-template-columns: minmax(0, 1fr); gap: var(--s1); }
  .hero-figure-wrap::after { position: static; display: block; margin-top: var(--s2); }
  .footer-bottom-inner { justify-content: flex-start; }
}

@media (max-width: 380px) {
  .wordmark-text { font-size: 1rem; }
  .btn { padding: 0.75rem 1.2rem; }
}

/* --------------------------------------------------------------------------
   21. Motion preference
   -------------------------------------------------------------------------- */
@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,
  a.service-card:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   22. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header,
  .cta,
  .nav-toggle { display: none; }
  body { background: var(--surface); }
}
