/* ==========================================================================
   Mansotra Enterprise Pty Ltd — mansotraenterprisetec.site
   Art direction: "Northern Corridor"
   Petrol ink + burnt ochre on a warm sand ramp. Sharp shape language,
   hairline rules, blueprint grid, monospaced metadata.
   Single stylesheet. No @import, no external assets.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens — every value below this block references these.
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --primary: #12333a;
  --primary-deep: #0d2429;
  --primary-soft: #1c4b55;
  --accent: #c2591f;
  --accent-ink: #8f3f12;
  --accent-light: #e8933f;
  --accent-wash: rgba(194, 89, 31, .09);
  --accent-wash-strong: rgba(194, 89, 31, .16);

  /* Neutral ramp (warm) */
  --bg: #faf8f5;
  --surface: #ffffff;
  --surface-alt: #f2eee8;
  --border: #e0d9cf;
  --border-strong: #cec5b8;

  /* Ink */
  --text-dark: #161a1b;
  --text-muted: #4e5658;
  --text-on-dark: #e9e5df;
  --text-on-dark-muted: #a9b3b4;
  --border-on-dark: rgba(233, 229, 223, .18);
  --border-on-dark-soft: rgba(233, 229, 223, .1);
  --ink-wash: rgba(18, 51, 58, .07);
  --grid-line: rgba(18, 51, 58, .07);
  --grid-line-dark: rgba(233, 229, 223, .07);
  --nav-bg: rgba(250, 248, 245, .86);

  /* Type */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, "Liberation Mono", monospace;
  --fs-hero: clamp(2.25rem, 5.2vw, 4rem);
  --fs-h1: clamp(2rem, 4.4vw, 3.05rem);
  --fs-h2: clamp(1.6rem, 3vw, 2.35rem);
  --fs-h3: 1.1875rem;
  --fs-lead: clamp(1.0625rem, 1.5vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: .875rem;
  --fs-eyebrow: .78rem;
  --fs-micro: .75rem;
  --lh-tight: 1.08;
  --lh-head: 1.18;
  --lh-body: 1.65;
  --track-tight: -.022em;
  --track-wide: .14em;
  --track-mid: .06em;
  --measure: 66ch;
  --measure-narrow: 54ch;

  /* Space */
  --s1: .5rem;
  --s2: .75rem;
  --s3: 1rem;
  --s4: 1.5rem;
  --s5: 2.5rem;
  --s6: 4rem;
  --s7: 6rem;
  --section-y: clamp(3.25rem, 7.5vw, 6rem);
  --section-y-sm: clamp(2.5rem, 5vw, 3.75rem);
  --container: 1140px;
  --pad-x: 1.375rem;
  --col-min: 17rem;
  --col-min-wide: 22rem;
  --toc-w: 16rem;

  /* Surface treatment */
  --radius: 2px;
  --hair: 1px;
  --rule: 3px;
  --tile: 2.75rem;
  --shadow-1: 0 1px 2px rgba(13, 36, 41, .05);
  --shadow-2: 0 1px 2px rgba(13, 36, 41, .04), 0 10px 28px rgba(13, 36, 41, .08);
  --shadow-lift: 0 2px 4px rgba(13, 36, 41, .06), 0 16px 36px rgba(13, 36, 41, .12);
  --shadow-nav: 0 1px 0 rgba(13, 36, 41, .09);
  --ring: 0 0 0 3px rgba(194, 89, 31, .38);
  --ring-dark: 0 0 0 3px rgba(232, 147, 63, .5);
  --t: 170ms cubic-bezier(.4, 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-dark);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: var(--track-tight);
  line-height: var(--lh-head);
  color: var(--primary);
  margin: 0 0 var(--s3);
}

p { margin: 0 0 var(--s3); max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent-ink);
  text-decoration-thickness: var(--hair);
  text-underline-offset: .18em;
  transition: color var(--t);
}
a:hover { color: var(--accent); }

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

strong { font-weight: 700; color: var(--text-dark); }

svg { display: block; }

button { font: inherit; }

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--radius);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.skip-link {
  position: absolute;
  left: var(--s3);
  top: calc(var(--s7) * -1);
  z-index: 100;
  background: var(--primary);
  color: var(--surface);
  padding: var(--s2) var(--s3);
  border-radius: var(--radius);
  font-size: var(--fs-small);
  font-weight: 700;
  text-decoration: none;
  transition: top var(--t);
}
.skip-link:focus { top: var(--s3); color: var(--surface); }

/* --------------------------------------------------------------------------
   3. Shared type helpers
   -------------------------------------------------------------------------- */
.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 var(--s2);
}
.eyebrow-dark { color: var(--accent-light); }

.section-head { max-width: var(--measure); margin-bottom: var(--s5); }
.section-title { font-size: var(--fs-h2); margin-bottom: var(--s3); }
.section-intro { color: var(--text-muted); font-size: var(--fs-lead); margin-bottom: 0; }

.lede {
  font-size: var(--fs-small);
  color: var(--text-muted);
  max-width: var(--measure);
  margin-bottom: var(--s4);
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding: .8rem 1.6rem;
  border: var(--hair) solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: .01em;
  text-align: center;
  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-primary {
  background: var(--primary);
  color: var(--surface);
  box-shadow: var(--shadow-1);
}
.btn-primary:hover {
  background: var(--primary-soft);
  color: var(--surface);
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}

.btn-accent {
  background: var(--accent);
  color: var(--surface);
  box-shadow: var(--shadow-1);
}
.btn-accent:hover {
  background: var(--accent-ink);
  color: var(--surface);
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--border-strong);
  font-weight: 600;
}
.btn-outline:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--surface);
  transform: translateY(-1px);
  box-shadow: var(--shadow-1);
}

.btn-light {
  background: var(--text-on-dark);
  color: var(--primary-deep);
}
.btn-light:hover {
  background: var(--surface);
  color: var(--primary-deep);
  transform: translateY(-1px);
}

.btn-ghost-dark {
  background: transparent;
  color: var(--text-on-dark);
  border-color: var(--border-on-dark);
  font-weight: 600;
}
.btn-ghost-dark:hover {
  border-color: var(--text-on-dark);
  color: var(--text-on-dark);
  transform: translateY(-1px);
}
.btn-ghost-dark:focus-visible,
.btn-light:focus-visible { box-shadow: var(--ring-dark); }

.btn-sm { padding: var(--s2) var(--s3); font-size: var(--fs-micro); }

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

/* --------------------------------------------------------------------------
   5. Header & navigation (identical markup on all six pages)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: var(--hair) solid var(--border);
  box-shadow: var(--shadow-nav);
}

.navbar { display: block; width: 100%; }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  flex-wrap: wrap;
  padding-top: var(--s2);
  padding-bottom: var(--s2);
}

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

.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: var(--tile);
  height: var(--tile);
  background: var(--primary);
  color: var(--surface);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-small);
  letter-spacing: .04em;
  border-radius: var(--radius);
  border-bottom: var(--rule) solid var(--accent);
}
.mark-lg { width: var(--s6); height: var(--s6); font-size: var(--fs-h3); }

.wordmark-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-small);
  letter-spacing: var(--track-tight);
  line-height: var(--lh-tight);
}
.wordmark-sub {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--fs-micro);
  letter-spacing: var(--track-mid);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: var(--s1);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: var(--tile);
  height: var(--tile);
  padding: 0;
  background: var(--surface);
  border: var(--hair) solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--primary);
  cursor: pointer;
  transition: border-color var(--t);
}
.nav-toggle:hover { border-color: var(--primary); }

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

.nav-link {
  position: relative;
  padding: var(--s1) 0;
  color: var(--primary);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--rule);
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.nav-link:hover { color: var(--accent-ink); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--accent-ink); }
.nav-link.is-active::after { transform: scaleX(1); }

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

/* --------------------------------------------------------------------------
   6. Hero & page hero — layered gradients over a blueprint grid
   -------------------------------------------------------------------------- */
.hero, .page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: var(--hair) solid var(--border);
  background:
    radial-gradient(58rem 30rem at 84% -14%, var(--accent-wash), transparent 62%),
    radial-gradient(46rem 28rem at 2% 112%, var(--ink-wash), transparent 64%),
    linear-gradient(178deg, var(--surface) 0%, var(--bg) 56%, var(--surface-alt) 100%);
}
.hero::before, .page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(to right, var(--grid-line) 0 var(--hair), transparent var(--hair) var(--s7)),
    repeating-linear-gradient(to bottom, var(--grid-line) 0 var(--hair), transparent var(--hair) var(--s7));
  -webkit-mask-image: linear-gradient(to bottom, var(--text-dark), transparent);
  mask-image: linear-gradient(to bottom, var(--text-dark), transparent);
}
.hero > .container, .page-hero > .container { position: relative; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: var(--s6);
  align-items: center;
  min-height: 60vh;
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.hero-copy { min-width: 0; }

.hero-title {
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
  margin-bottom: var(--s4);
  max-width: var(--measure-narrow);
}
.hero-title em { font-style: normal; color: var(--accent-ink); }

.hero-lead {
  font-size: var(--fs-lead);
  color: var(--text-muted);
  max-width: var(--measure-narrow);
  margin-bottom: 0;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  max-width: none;
  margin-top: var(--s5);
  margin-bottom: 0;
  padding-top: var(--s3);
  border-top: var(--hair) solid var(--border);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--track-mid);
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero-meta span { white-space: nowrap; }

/* Hero visual anchor — overlapping sharp panels, drawn in CSS + inline SVG */
.hero-visual {
  position: relative;
  min-width: 0;
  padding-bottom: var(--s5);
  padding-right: var(--s4);
}

.panel {
  background: var(--surface);
  border: var(--hair) solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
}

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

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  padding-bottom: var(--s3);
  margin-bottom: var(--s3);
  border-bottom: var(--hair) solid var(--border);
}
.panel-tag {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--text-muted);
}
.panel-dots { display: flex; gap: var(--s1); }
.panel-dots i {
  width: var(--s1);
  height: var(--s1);
  border-radius: var(--radius);
  background: var(--border-strong);
}
.panel-dots i:first-child { background: var(--accent); }

.hero-figure { width: 100%; height: auto; color: var(--primary); }

.panel-badge {
  position: absolute;
  left: calc(var(--s4) * -1);
  bottom: 0;
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3);
  background: var(--primary-deep);
  border-color: var(--primary-deep);
  box-shadow: var(--shadow-lift);
}
.panel-badge .mark {
  background: var(--primary-soft);
  border-bottom-color: var(--accent-light);
}
.panel-meta {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  line-height: var(--lh-head);
  letter-spacing: var(--track-mid);
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
}
.panel-meta b { display: block; color: var(--text-on-dark); font-weight: 700; }

/* Compact inner-page hero */
.page-hero-inner {
  padding-top: var(--section-y-sm);
  padding-bottom: var(--section-y-sm);
  max-width: var(--measure);
}
.page-title { font-size: var(--fs-h1); margin-bottom: var(--s3); }
.page-lead { font-size: var(--fs-lead); color: var(--text-muted); margin-bottom: 0; }

/* --------------------------------------------------------------------------
   7. Sections & grids
   -------------------------------------------------------------------------- */
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }

.section-alt {
  background: var(--surface-alt);
  border-top: var(--hair) solid var(--border);
  border-bottom: var(--hair) solid var(--border);
}

.section-dark {
  position: relative;
  overflow: hidden;
  background: var(--primary-deep);
  color: var(--text-on-dark);
}
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(46rem 26rem at 88% 0%, var(--accent-wash-strong), transparent 64%),
    repeating-linear-gradient(to right, var(--grid-line-dark) 0 var(--hair), transparent var(--hair) var(--s7));
}
.section-dark > .container { position: relative; }
.section-dark h2, .section-dark h3 { color: var(--text-on-dark); }
.section-dark p { color: var(--text-on-dark-muted); }
.section-dark .section-intro { color: var(--text-on-dark-muted); }
.section-dark a { color: var(--accent-light); }
.section-dark a:hover { color: var(--text-on-dark); }

.grid { display: grid; gap: var(--s4); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(var(--col-min-wide), 1fr)); }
.grid-3, .services-grid { grid-template-columns: repeat(auto-fit, minmax(var(--col-min), 1fr)); }

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */
.service-card {
  padding: var(--s4);
  background: var(--surface);
  border: var(--hair) 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-2);
}
.service-title { font-size: var(--fs-h3); margin-bottom: var(--s2); }
.service-body { color: var(--text-muted); font-size: var(--fs-small); margin-bottom: 0; }

.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tile);
  height: var(--tile);
  margin-bottom: var(--s3);
  border-radius: var(--radius);
  background: var(--accent-wash);
  color: var(--accent-ink);
  border: var(--hair) solid var(--border);
}
.icon-tile-dark {
  background: var(--border-on-dark-soft);
  color: var(--accent-light);
  border-color: var(--border-on-dark);
}

.card-dark { background: transparent; border-color: var(--border-on-dark); }
.card-dark:hover { border-color: var(--text-on-dark-muted); box-shadow: none; }
.card-dark .service-body { color: var(--text-on-dark-muted); }

/* Numbered process steps */
.step-card {
  padding: var(--s4);
  background: var(--surface);
  border: var(--hair) solid var(--border);
  border-top: var(--rule) solid var(--accent);
  border-radius: var(--radius);
}
.step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: var(--s2);
}

/* --------------------------------------------------------------------------
   9. Split band — breaks the single-column stack
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
  align-items: center;
}
.split-copy { min-width: 0; }
.split-figure { min-width: 0; }
.split-copy p { color: var(--text-muted); }
.section-dark .split-copy p { color: var(--text-on-dark-muted); }

.schematic {
  padding: var(--s4);
  background: var(--surface);
  border: var(--hair) solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
}
.section-dark .schematic {
  background: transparent;
  border-color: var(--border-on-dark);
  box-shadow: none;
}

.schematic-row {
  display: grid;
  grid-template-columns: minmax(0, 9rem) 1fr;
  align-items: center;
  gap: var(--s3);
  padding: var(--s2) 0;
  border-bottom: var(--hair) solid var(--border);
}
.section-dark .schematic-row { border-bottom-color: var(--border-on-dark-soft); }
.schematic-row:last-of-type { border-bottom: 0; }

.schematic-label {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--track-mid);
  text-transform: uppercase;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}
.section-dark .schematic-label { color: var(--text-on-dark-muted); }

.schematic-bar {
  position: relative;
  overflow: hidden;
  height: var(--s2);
  border-radius: var(--radius);
  background: var(--accent-wash);
  border: var(--hair) solid var(--border);
}
.section-dark .schematic-bar {
  background: var(--border-on-dark-soft);
  border-color: var(--border-on-dark);
}
.schematic-bar span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  background: var(--accent);
}
.section-dark .schematic-bar span { background: var(--accent-light); }
.bar-a span { width: 92%; }
.bar-b span { width: 74%; }
.bar-c span { width: 58%; }
.bar-d span { width: 40%; }

/* --------------------------------------------------------------------------
   10. Checklist
   -------------------------------------------------------------------------- */
.checklist { list-style: none; margin: var(--s3) 0 0; padding: 0; }
.check-item {
  display: grid;
  grid-template-columns: var(--s4) 1fr;
  gap: var(--s2);
  align-items: start;
  max-width: var(--measure);
  margin-bottom: 0;
  padding: var(--s2) 0;
  border-bottom: var(--hair) solid var(--border);
  color: var(--text-muted);
  font-size: var(--fs-small);
}
.section-dark .check-item {
  border-bottom-color: var(--border-on-dark-soft);
  color: var(--text-on-dark-muted);
}
.check-item:last-child { border-bottom: 0; padding-bottom: 0; }
.check-item svg { color: var(--accent-ink); margin-top: var(--s1); }
.section-dark .check-item svg { color: var(--accent-light); }

/* --------------------------------------------------------------------------
   11. Credentials strip — factual registration details only
   -------------------------------------------------------------------------- */
.credentials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--col-min), 1fr));
  border: var(--hair) solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.cred-item {
  padding: var(--s4);
  border-right: var(--hair) solid var(--border);
  border-bottom: var(--hair) solid var(--border);
}
.cred-label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--s1);
}
.cred-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-h3);
  letter-spacing: var(--track-tight);
  line-height: var(--lh-head);
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   12. CTA strip
   -------------------------------------------------------------------------- */
.cta-strip {
  position: relative;
  overflow: hidden;
  background: var(--primary);
  color: var(--text-on-dark);
}
.cta-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(38rem 22rem at 92% 110%, var(--accent-wash-strong), transparent 62%);
}
.cta-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding-top: var(--section-y-sm);
  padding-bottom: var(--section-y-sm);
}
.cta-title { color: var(--text-on-dark); font-size: var(--fs-h2); margin-bottom: var(--s2); }
.cta-text { color: var(--text-on-dark-muted); max-width: var(--measure-narrow); margin-bottom: 0; }
.cta-inner .btn-row { margin-top: 0; }

/* --------------------------------------------------------------------------
   13. Long-form / legal pages
   -------------------------------------------------------------------------- */
.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--toc-w)) minmax(0, 1fr);
  gap: var(--s6);
  align-items: start;
}

.toc {
  position: sticky;
  top: var(--s7);
  padding: var(--s4);
  background: var(--surface);
  border: var(--hair) solid var(--border);
  border-radius: var(--radius);
}
.toc-title {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--s2);
}
.toc-list { list-style: none; margin: 0; padding: 0; }
.toc-list li { margin-bottom: var(--s1); max-width: none; }
.toc-list a {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.toc-list a:hover { color: var(--accent-ink); text-decoration: underline; }

.prose { max-width: var(--measure); }
.prose h2 {
  font-size: var(--fs-h3);
  text-transform: uppercase;
  letter-spacing: var(--track-mid);
  margin-top: var(--s5);
  padding-top: var(--s4);
  border-top: var(--hair) solid var(--border);
  scroll-margin-top: var(--s7);
}
.prose h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.prose p, .prose li { color: var(--text-muted); }
.prose a { font-weight: 600; }

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  padding: var(--s3);
  margin-bottom: var(--s5);
  background: var(--surface-alt);
  border-left: var(--rule) solid var(--accent);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--track-mid);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   14. Contact
   -------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s6);
  align-items: start;
}

.contact-card {
  padding: var(--s4);
  margin-bottom: var(--s4);
  background: var(--surface);
  border: var(--hair) solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}
.contact-card:last-child { margin-bottom: 0; }
.contact-card p { color: var(--text-muted); font-size: var(--fs-small); }

.contact-email {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-form {
  padding: var(--s5);
  background: var(--surface);
  border: var(--hair) solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
}

.field { margin-bottom: var(--s3); }
.field label {
  display: block;
  margin-bottom: var(--s1);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--text-muted);
}
.field input, .field textarea, .field select {
  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(--hair) solid var(--border-strong);
  border-radius: var(--radius);
  transition: border-color var(--t), box-shadow var(--t);
}
.field textarea { min-height: var(--s7); resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--ring);
}

.form-note {
  margin-top: var(--s3);
  margin-bottom: 0;
  font-size: var(--fs-micro);
  color: var(--text-muted);
}
.section-dark .form-note { color: var(--text-on-dark-muted); }

/* --------------------------------------------------------------------------
   15. Footer (identical markup on all six pages)
   -------------------------------------------------------------------------- */
.footer {
  background: var(--primary-deep);
  color: var(--text-on-dark-muted);
  border-top: var(--rule) solid var(--accent);
  font-size: var(--fs-small);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: var(--s5);
  padding-top: var(--section-y-sm);
  padding-bottom: var(--section-y-sm);
}
.footer-col { min-width: 0; }

.footer-brand { min-width: 0; }
.footer-brand .wordmark { color: var(--text-on-dark); margin-bottom: var(--s3); }
.footer-brand .wordmark-sub { color: var(--text-on-dark-muted); }
.footer-brand .mark { background: var(--primary-soft); border-bottom-color: var(--accent-light); }

.footer-blurb {
  color: var(--text-on-dark-muted);
  max-width: var(--measure-narrow);
  margin-bottom: var(--s3);
}

.footer-reg {
  margin: 0;
  max-width: var(--measure-narrow);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  line-height: var(--lh-body);
  letter-spacing: var(--track-mid);
  color: var(--text-muted);
  overflow-wrap: anywhere;
}
.footer-reg b { display: block; color: var(--text-dark); font-weight: 700; }
.footer .footer-reg { color: var(--text-on-dark-muted); }
.footer .footer-reg b { color: var(--text-on-dark); }

.footer-heading {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--text-on-dark);
  margin-bottom: var(--s3);
}

.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: var(--s2); max-width: none; overflow-wrap: anywhere; }

.footer-link { color: var(--text-on-dark-muted); text-decoration: none; }
.footer-link:hover { color: var(--accent-light); text-decoration: underline; }
.footer-link:focus-visible { box-shadow: var(--ring-dark); }

.footer-bottom {
  background: var(--primary);
  border-top: var(--hair) solid var(--border-on-dark);
}
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  padding-top: var(--s3);
  padding-bottom: var(--s3);
}
.footer-bottom p {
  margin: 0;
  max-width: none;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--track-mid);
  color: var(--text-on-dark-muted);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* --------------------------------------------------------------------------
   16. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--s5); }
  .hero-visual { padding-left: var(--s4); }
  .split, .contact-layout, .legal-layout { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .toc { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: var(--s4); }
}

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: var(--s2);
    padding-top: var(--s2);
    border-top: var(--hair) solid var(--border);
  }
  .nav-menu.open { display: flex; }
  .nav-link { padding: var(--s2) 0; border-bottom: var(--hair) solid var(--border); }
  .nav-link::after { display: none; }
  .nav-link.is-active { padding-left: var(--s2); border-left: var(--rule) solid var(--accent); }
  .nav-cta { margin-left: 0; margin-top: var(--s3); }

  .hero-inner { min-height: 0; }
  .hero-visual { display: none; }
  .section { padding-top: var(--section-y-sm); padding-bottom: var(--section-y-sm); }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .contact-form { padding: var(--s4); }
  .schematic-row { grid-template-columns: minmax(0, 1fr); gap: var(--s1); }
  .legal-meta { flex-direction: column; gap: var(--s1); }
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
}

@media (max-width: 420px) {
  .cred-item { border-right: 0; }
  .hero-meta { flex-direction: column; gap: var(--s1); }
}

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

@media print {
  .site-header, .cta-strip, .hero-visual, .toc { display: none; }
  body { background: var(--surface); }
}
