/* ==========================================================================
   Anraed Pty Ltd — anraedtec.site
   Art direction: "Instrument"
   Deep petrol-teal substrate, single rust accent, limestone neutrals.
   Sharp shape language: 3px radius, hairline rules, tight tracking.
   Two voices: system sans for prose, monospace for identifiers.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens — the only place literal values are permitted
   -------------------------------------------------------------------------- */
:root {
  /* Brand ramp — petrol teal */
  --brand-900: #0c2a31;
  --brand-800: #0f333d;
  --brand-700: #123b47;
  --brand-600: #174b5a;
  --brand-500: #1d5c6b;

  /* Accent — burnt rust, used sparingly */
  --accent: #b4471f;
  --accent-hover: #9a3c19;
  --accent-soft: #e2a075;

  /* Cool limestone neutral ramp */
  --n-0: #ffffff;
  --n-50: #f4f6f6;
  --n-100: #e8ecec;
  --n-200: #d3dad9;
  --n-400: #7c8a89;

  /* Text */
  --text: #14201f;
  --text-muted: #4c5a59;
  --text-on-dark: #dce5e4;
  --text-on-dark-muted: #9db0ae;

  /* Surfaces & lines */
  --bg: #ffffff;
  --surface: #f4f6f6;
  --surface-2: #e8ecec;
  --border: #d3dad9;
  --border-strong: #b9c3c2;
  --border-on-dark: rgba(220, 229, 228, 0.16);
  --tile-tint: rgba(18, 59, 71, 0.07);
  --tile-tint-accent: rgba(180, 71, 31, 0.1);
  --tile-tint-on-dark: rgba(220, 229, 228, 0.08);
  --nav-glass: rgba(244, 246, 246, 0.82);

  /* Background craft */
  --glow-teal: radial-gradient(900px 460px at 78% 10%, rgba(29, 92, 107, 0.6), transparent 70%);
  --glow-rust: radial-gradient(620px 400px at 6% 94%, rgba(180, 71, 31, 0.22), transparent 72%);
  --grid-h: repeating-linear-gradient(0deg, rgba(220, 229, 228, 0.055) 0 1px, transparent 1px 46px);
  --grid-v: repeating-linear-gradient(90deg, rgba(220, 229, 228, 0.055) 0 1px, transparent 1px 46px);
  --sheen: linear-gradient(163deg, rgba(23, 75, 90, 0.92), rgba(12, 42, 49, 0.97));
  --hatch-light: repeating-linear-gradient(135deg, rgba(18, 59, 71, 0.035) 0 1px, transparent 1px 9px);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(12, 42, 49, 0.06);
  --shadow-md: 0 1px 2px rgba(12, 42, 49, 0.05), 0 10px 28px rgba(12, 42, 49, 0.08);
  --shadow-nav: 0 1px 0 rgba(18, 59, 71, 0.08);
  --ring: 0 0 0 3px rgba(180, 71, 31, 0.38);
  --ring-on-dark: 0 0 0 3px rgba(226, 160, 117, 0.55);

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
  --fs-hero: clamp(2.25rem, 5.1vw, 4rem);
  --fs-h2: clamp(1.65rem, 3vw, 2.4rem);
  --fs-h3: 1.15rem;
  --fs-lead: clamp(1.05rem, 1.5vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-fine: 0.8125rem;
  --fs-eyebrow: 0.78rem;
  --measure: 66ch;
  --measure-tight: 58ch;

  /* Spacing scale */
  --s0: 0.25rem;
  --s1: 0.5rem;
  --s2: 0.75rem;
  --s3: 1rem;
  --s4: 1.5rem;
  --s5: 2.5rem;
  --s6: 4rem;
  --s7: 6rem;

  /* Geometry & motion */
  --radius: 3px;
  --radius-sm: 2px;
  --container: 1140px;
  --nav-h: 4.5rem;
  --t: 170ms cubic-bezier(0.2, 0.6, 0.2, 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);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text);
}

h1 { font-size: var(--fs-hero); line-height: 1.05; letter-spacing: -0.032em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.015em; }

p { margin: 0 0 var(--s3); max-width: var(--measure); }
ul, ol { margin: 0 0 var(--s3); padding-left: var(--s4); max-width: var(--measure); }
li { margin-bottom: var(--s1); }
li:last-child { margin-bottom: 0; }

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

strong { font-weight: 650; }

svg { display: block; }

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

.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;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.94em;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

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

.section { padding: var(--s7) 0; }
.section-tight { padding: var(--s6) 0; }
.section-alt { background: var(--surface); background-image: var(--hatch-light); }

.band-dark {
  background-color: var(--brand-900);
  background-image: var(--glow-teal), var(--grid-h), var(--grid-v), var(--sheen);
  color: var(--text-on-dark);
}
.band-dark h2, .band-dark h3 { color: var(--n-0); }
.band-dark p { color: var(--text-on-dark-muted); }

.section-head { margin-bottom: var(--s5); max-width: var(--measure); }
.section-head p { color: var(--text-muted); font-size: var(--fs-lead); margin-bottom: 0; }
.band-dark .section-head p { color: var(--text-on-dark-muted); }

.eyebrow {
  display: block;
  margin: 0 0 var(--s2);
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  max-width: none;
}
.band-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .cta-strip .eyebrow { color: var(--accent-soft); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: var(--measure-tight);
}

.rule {
  height: 1px;
  border: 0;
  background: var(--border);
  margin: var(--s5) 0;
}

/* Grid children: allow long words and wide children to shrink rather than
   force a horizontal scrollbar. */
.hero-copy,
.split-copy,
.footer-col { min-width: 0; }

/* --------------------------------------------------------------------------
   4. Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-nav);
}

@supports (backdrop-filter: blur(10px)) {
  .navbar {
    background: var(--nav-glass);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
  }
}

.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  min-height: var(--nav-h);
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--brand-700);
  color: var(--n-0);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.02em; }
.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: var(--s0);
  width: 2.5rem;
  height: 2.5rem;
  padding: 0 var(--s1);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle:focus-visible { outline: none; box-shadow: var(--ring); }
.nav-toggle-bar {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--text);
}

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

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--s4);
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
}
.nav-list li { margin: 0; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: var(--s1) 0;
  color: var(--text-muted);
  font-size: var(--fs-small);
  font-weight: 550;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: color var(--t);
}
.nav-link:hover { color: var(--text); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.15rem;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.nav-link:hover::after { transform: scaleX(0.4); }
.nav-link.active { color: var(--text); font-weight: 700; }
.nav-link.active::after { transform: scaleX(1); }

.nav-cta { flex-shrink: 0; }

/* --------------------------------------------------------------------------
   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-sans);
  font-size: var(--fs-small);
  font-weight: 650;
  letter-spacing: 0.005em;
  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:focus-visible { outline: none; box-shadow: var(--ring); }

.btn-sm { padding: var(--s1) var(--s3); }

.btn-primary {
  background: var(--accent);
  color: var(--n-0);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--n-0);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--brand-700);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  color: var(--brand-700);
  border-color: var(--brand-700);
  background: var(--surface);
  transform: translateY(-1px);
}

.btn-outline-light {
  background: transparent;
  color: var(--n-0);
  border-color: var(--border-on-dark);
}
.btn-outline-light:hover {
  color: var(--n-0);
  border-color: var(--text-on-dark);
  background: var(--tile-tint-on-dark);
  transform: translateY(-1px);
}
.btn-outline-light:focus-visible { box-shadow: var(--ring-on-dark); }

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

/* --------------------------------------------------------------------------
   6. Hero (homepage) + page hero (inner pages)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background-color: var(--brand-900);
  background-image: var(--glow-teal), var(--glow-rust), var(--grid-h), var(--grid-v), var(--sheen);
  color: var(--text-on-dark);
  padding: var(--s7) 0 calc(var(--s7) + var(--s6));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4vw), 0 100%);
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: var(--s6);
  width: 100%;
}

.hero h1 { color: var(--n-0); margin-bottom: var(--s3); }
.hero .lead { color: var(--text-on-dark); }

.hero-note {
  margin: var(--s5) 0 0;
  padding-top: var(--s3);
  border-top: 1px solid var(--border-on-dark);
  font-family: var(--font-mono);
  font-size: var(--fs-fine);
  letter-spacing: 0.02em;
  color: var(--text-on-dark-muted);
  max-width: var(--measure-tight);
}

.hero-visual {
  position: relative;
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius);
  background: var(--tile-tint-on-dark);
  padding: var(--s4);
}
.hero-visual svg { width: 100%; height: auto; color: var(--accent-soft); }

.hero-visual-label {
  display: flex;
  justify-content: space-between;
  gap: var(--s2);
  margin: var(--s3) 0 0;
  padding-top: var(--s2);
  border-top: 1px solid var(--border-on-dark);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  max-width: none;
}

.page-hero {
  background-color: var(--brand-900);
  background-image: var(--glow-teal), var(--grid-h), var(--grid-v), var(--sheen);
  color: var(--text-on-dark);
  padding: var(--s6) 0;
  border-bottom: 2px solid var(--accent);
}
.page-hero h1 {
  color: var(--n-0);
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin-bottom: var(--s2);
}
.page-hero .lead { color: var(--text-on-dark-muted); margin-bottom: 0; }

/* --------------------------------------------------------------------------
   7. Value props
   -------------------------------------------------------------------------- */
.props-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
}

.prop { border-top: 2px solid var(--brand-700); padding-top: var(--s3); }
.prop h3 { margin-bottom: var(--s1); }
.prop p { color: var(--text-muted); font-size: var(--fs-small); margin-bottom: 0; }

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

.service-card {
  display: flex;
  flex-direction: column;
  padding: var(--s4);
  background: var(--n-0);
  border: 1px 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);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.service-card h3 { margin-bottom: var(--s1); }
.service-card p {
  color: var(--text-muted);
  font-size: var(--fs-small);
  margin-bottom: 0;
}

.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: var(--s3);
  background: var(--tile-tint);
  color: var(--brand-700);
  border-radius: var(--radius);
}
.icon-tile svg { width: 24px; height: 24px; }
.icon-tile-accent { background: var(--tile-tint-accent); color: var(--accent); }

.service-detail { border-top: 1px solid var(--border); margin-top: var(--s3); padding-top: var(--s3); }
.service-detail ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: var(--fs-small);
  color: var(--text-muted);
  max-width: none;
}
.service-detail li {
  position: relative;
  padding-left: var(--s3);
  margin-bottom: var(--s0);
}
.service-detail li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

/* --------------------------------------------------------------------------
   9. Split band (copy beside panel)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--s6);
}
.split-narrow { grid-template-columns: 0.95fr 1.05fr; }

.split-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--n-0);
  padding: var(--s5);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.band-dark .split-panel {
  background: var(--tile-tint-on-dark);
  border-color: var(--border-on-dark);
  box-shadow: none;
}

.panel-title {
  margin-bottom: var(--s3);
  padding-bottom: var(--s2);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.band-dark .panel-title { border-color: var(--border-on-dark); color: var(--text-on-dark-muted); }

.check-list { list-style: none; padding: 0; margin: 0; max-width: none; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--s2);
  padding: var(--s2) 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-small);
  margin-bottom: 0;
}
.band-dark .check-list li { border-color: var(--border-on-dark); color: var(--text-on-dark); }
.check-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.check-list svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 0.15em;
  color: var(--accent);
}
.band-dark .check-list svg { color: var(--accent-soft); }

/* --------------------------------------------------------------------------
   10. Numbered process (a real sequence, so numbering carries meaning)
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s4);
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: none;
}
.step {
  padding-top: var(--s3);
  border-top: 1px solid var(--border);
  margin: 0;
  min-width: 0;
}
.band-dark .step { border-color: var(--border-on-dark); }
.step-num {
  display: block;
  margin-bottom: var(--s2);
  font-family: var(--font-mono);
  font-size: var(--fs-fine);
  letter-spacing: 0.1em;
  color: var(--accent);
}
.band-dark .step-num { color: var(--accent-soft); }
.step h3 { margin-bottom: var(--s1); font-size: 1rem; }
.step p { font-size: var(--fs-small); color: var(--text-muted); margin-bottom: 0; }

/* --------------------------------------------------------------------------
   11. Credentials strip — factual registry data only
   -------------------------------------------------------------------------- */
.credentials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--n-0);
  overflow: hidden;
}
.cred-item {
  padding: var(--s4);
  border-right: 1px solid var(--border);
  min-width: 0;
}
.cred-item:last-child { border-right: 0; }
.cred-label {
  display: block;
  margin-bottom: var(--s1);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.cred-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--brand-700);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   12. CTA strip
   -------------------------------------------------------------------------- */
.cta-strip {
  background-color: var(--brand-700);
  background-image: var(--glow-rust), var(--grid-h), var(--grid-v);
  color: var(--text-on-dark);
  padding: var(--s6) 0;
}
.cta-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  flex-wrap: wrap;
}
.cta-strip h2 { color: var(--n-0); margin-bottom: var(--s2); }
.cta-strip p { color: var(--text-on-dark-muted); margin-bottom: 0; }
.cta-strip .cta-row { margin-top: 0; }

/* --------------------------------------------------------------------------
   13. Prose / legal pages
   -------------------------------------------------------------------------- */
.prose { max-width: var(--measure); min-width: 0; }
.prose h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  margin: var(--s5) 0 var(--s2);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: var(--s4) 0 var(--s1); font-size: 1.0625rem; }
.prose p, .prose li { color: var(--text-muted); }
.prose a { font-weight: 550; }

.updated {
  display: inline-block;
  margin-bottom: var(--s5);
  padding: var(--s1) var(--s2);
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--fs-fine);
  color: var(--text-muted);
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--s6);
  align-items: start;
}
.toc {
  position: sticky;
  top: calc(var(--nav-h) + var(--s3));
  list-style: none;
  padding: var(--s3) 0 0;
  margin: 0;
  border-top: 2px solid var(--brand-700);
  max-width: none;
}
.toc li { margin-bottom: var(--s1); }
.toc a {
  font-family: var(--font-mono);
  font-size: var(--fs-fine);
  color: var(--text-muted);
  text-decoration: none;
}
.toc a:hover { color: var(--accent); text-decoration: underline; }

/* --------------------------------------------------------------------------
   14. Contact
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
  align-items: start;
}
.contact-grid > div { min-width: 0; }

.contact-list { list-style: none; padding: 0; margin: 0 0 var(--s5); max-width: none; }
.contact-item {
  display: flex;
  gap: var(--s3);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.contact-item:first-child { padding-top: 0; }
.contact-item svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--accent); margin-top: 0.2em; }
.contact-item h3 { font-size: 0.95rem; margin-bottom: var(--s0); }
.contact-item p { font-size: var(--fs-small); color: var(--text-muted); margin-bottom: 0; }

.form-field { margin-bottom: var(--s3); }
.form-field label {
  display: block;
  margin-bottom: var(--s1);
  font-family: var(--font-mono);
  font-size: var(--fs-fine);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: var(--s2) var(--s3);
  background: var(--n-0);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  color: var(--text);
  transition: border-color var(--t), box-shadow var(--t);
}
.form-field textarea { min-height: 8rem; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--ring);
}
.form-note {
  font-size: var(--fs-fine);
  color: var(--text-muted);
  margin: var(--s3) 0 0;
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--brand-900);
  background-image: var(--grid-h), var(--grid-v);
  color: var(--text-on-dark-muted);
  border-top: 1px solid var(--border-on-dark);
  padding-top: var(--s6);
  font-size: var(--fs-small);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.15fr;
  gap: var(--s5);
  padding-bottom: var(--s5);
}

.footer .brand { color: var(--n-0); margin-bottom: var(--s3); }
.footer .brand-sub { color: var(--text-on-dark-muted); }
.footer .brand-mark { background: var(--brand-500); }

.footer-blurb { color: var(--text-on-dark-muted); font-size: var(--fs-small); }

.footer-ids {
  display: flex;
  flex-direction: column;
  gap: var(--s0);
  margin: var(--s3) 0 0;
  font-family: var(--font-mono);
  font-size: var(--fs-fine);
  letter-spacing: 0.02em;
  color: var(--text-on-dark);
  max-width: none;
}

.footer-title {
  margin-bottom: var(--s3);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--n-0);
}

.footer-links { list-style: none; padding: 0; margin: 0; max-width: none; }
.footer-links li { margin-bottom: var(--s1); }
.footer-links a {
  color: var(--text-on-dark-muted);
  text-decoration: none;
  transition: color var(--t);
}
.footer-links a:hover { color: var(--n-0); text-decoration: underline; }
.footer-links span { color: var(--text-on-dark-muted); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s2);
  padding: var(--s3) 0;
  border-top: 1px solid var(--border-on-dark);
}
.footer-bottom p {
  margin: 0;
  max-width: none;
  font-family: var(--font-mono);
  font-size: var(--fs-fine);
  letter-spacing: 0.01em;
  color: var(--text-on-dark-muted);
}
.footer-legal {
  display: flex;
  gap: var(--s3);
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: none;
}
.footer-legal li { margin: 0; }
.footer-legal a {
  color: var(--text-on-dark-muted);
  font-size: var(--fs-fine);
  text-decoration: none;
}
.footer-legal a:hover { color: var(--n-0); text-decoration: underline; }

/* --------------------------------------------------------------------------
   16. Responsive — 1024px then 768px
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .credentials { grid-template-columns: repeat(2, 1fr); }
  .cred-item:nth-child(2n) { border-right: 0; }
  .cred-item:nth-child(-n + 2) { border-bottom: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .legal-layout { grid-template-columns: 1fr; gap: var(--s5); }
  .toc { position: static; }
  .hero-inner { gap: var(--s5); }
}

@media (max-width: 768px) {
  .section { padding: var(--s6) 0; }
  .section-tight { padding: var(--s5) 0; }

  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: var(--s2);
    padding: var(--s3) var(--s4) var(--s4);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-menu.open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--border); }
  .nav-link { display: block; padding: var(--s2) 0; font-size: 1rem; }
  .nav-link::after { bottom: 0; }
  .nav-cta { justify-content: center; margin-top: var(--s2); }

  .hero {
    padding: var(--s6) 0 calc(var(--s6) + var(--s5));
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6vw), 0 100%);
    min-height: 0;
  }
  .hero-inner { grid-template-columns: 1fr; gap: var(--s5); }
  .hero-visual { display: none; }

  .page-hero { padding: var(--s5) 0; }

  .props-grid,
  .services-grid,
  .services-grid-2,
  .steps,
  .split,
  .split-narrow,
  .contact-grid { grid-template-columns: 1fr; gap: var(--s4); }

  .split, .split-narrow, .contact-grid { gap: var(--s5); }

  .credentials { grid-template-columns: 1fr; }
  .cred-item { border-right: 0; border-bottom: 1px solid var(--border); }
  .cred-item:nth-child(-n + 2) { border-bottom: 1px solid var(--border); }
  .cred-item:last-child { border-bottom: 0; }

  .split-panel { padding: var(--s4); }

  .cta-strip-inner { flex-direction: column; align-items: flex-start; gap: var(--s4); }

  .footer-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .cta-row .btn { flex: 1 1 auto; }
}

@media (max-width: 420px) {
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { width: 100%; }
}

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