/* Geared Up Network Australia Pty Ltd
   Art direction: bottle green + workshop brass, cool stone neutrals, soft shape language.
   All colour, spacing, radius and shadow values live in :root below. */

:root {
  /* Colour */
  --primary: #21443A;
  --primary-deep: #16302A;
  --primary-soft: #E2EBE5;
  --accent: #8F6210;
  --accent-bright: #E3B65A;
  --accent-soft: #F6EBD3;
  --bg: #F4F6F2;
  --surface: #FFFFFF;
  --surface-2: #E9EDE7;
  --border: #D6DDD5;
  --text-dark: #18221D;
  --text-light: #56625B;
  --on-dark: #EEF3EF;
  --on-dark-muted: #A9B8AF;
  --line-dark: rgba(238, 243, 239, .14);
  --grid-line: rgba(33, 68, 58, .07);
  --dot: rgba(33, 68, 58, .13);
  --glow: rgba(227, 182, 90, .30);
  --glow-green: rgba(33, 68, 58, .12);
  --nav-bg: rgba(244, 246, 242, .84);

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(24, 34, 29, .05);
  --shadow-md: 0 1px 2px rgba(24, 34, 29, .04), 0 8px 24px rgba(24, 34, 29, .07);
  --shadow-lg: 0 2px 4px rgba(24, 34, 29, .05), 0 18px 48px rgba(24, 34, 29, .12);
  --ring: 0 0 0 3px var(--primary-soft);

  /* Spacing scale */
  --s1: .5rem;
  --s2: .75rem;
  --s3: 1rem;
  --s4: 1.5rem;
  --s5: 2.5rem;
  --s6: 4rem;
  --s7: 6rem;

  /* Shape */
  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --hairline: 1px;
  --rule: 1.5px;
  --bar: 2px;
  --toggle-gap: 5px;
  --toggle-shift: 7px;

  /* Layout */
  --container: 1140px;
  --gutter: 22px;
  --measure: 66ch;
  --nav-h: 72px;
  --icon-tile: 3rem;
  --grid-size: 48px;
  --dot-size: 18px;

  /* Type */
  --font-body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Franklin Gothic Medium", "Franklin Gothic", "ITC Franklin Gothic", "Avenir Next Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  --fs-hero: clamp(2.25rem, 5vw, 4rem);
  --fs-page: clamp(2rem, 4vw, 3.1rem);
  --fs-h2: clamp(1.6rem, 3vw, 2.4rem);
  --fs-h2-sm: clamp(1.4rem, 2.4vw, 1.9rem);
  --fs-h2-xs: clamp(1.3rem, 2.2vw, 1.6rem);
  --fs-h3: 1.25rem;
  --fs-lead: clamp(1.08rem, 1.6vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: .875rem;
  --fs-eyebrow: .78rem;

  /* Motion */
  --dur: 180ms;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + var(--s3)); }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s3);
  color: var(--text-dark);
}

h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; }

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

a { color: var(--accent); text-underline-offset: .2em; transition: color var(--dur) ease; }
a:hover { color: var(--primary); }

ul { margin: 0; padding: 0; }

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

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

.skip-link {
  position: absolute;
  left: var(--s3);
  top: calc(-1 * var(--s6));
  z-index: 100;
  padding: var(--s1) var(--s3);
  background: var(--primary);
  color: var(--surface);
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: var(--s1); color: var(--surface); }

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

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

.btn-primary { background: var(--primary); color: var(--surface); border-color: var(--primary); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-deep); border-color: var(--primary-deep); color: var(--surface); box-shadow: var(--shadow-md); }

.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-soft); color: var(--primary-deep); }

.btn-light { background: var(--accent-bright); color: var(--primary-deep); border-color: var(--accent-bright); }
.btn-light:hover { background: var(--surface); border-color: var(--surface); color: var(--primary-deep); box-shadow: var(--shadow-lg); }

.btn-ghost-light { background: transparent; color: var(--on-dark); border-color: var(--line-dark); }
.btn-ghost-light:hover { border-color: var(--on-dark); color: var(--surface); }

.btn-sm { padding: .55rem 1.1rem; font-size: var(--fs-small); }

/* ---------- Navigation ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: var(--hairline) solid var(--border);
}

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

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

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--accent-bright);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .02em;
}

.brand-name {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.brand-tag {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-light);
}

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

.nav-menu a:not(.btn) {
  position: relative;
  display: inline-block;
  padding: var(--s1) 0;
  color: var(--text-dark);
  font-size: .97rem;
  font-weight: 500;
  text-decoration: none;
}
.nav-menu a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: var(--bar);
  border-radius: var(--radius-pill);
  background: var(--accent-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) ease;
}
.nav-menu a:not(.btn):hover::after,
.nav-menu a.active::after { transform: scaleX(1); }
.nav-menu a.active { font-weight: 700; color: var(--primary); }
.nav-menu a.active::after { background: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: var(--toggle-gap);
  width: 2.75rem;
  height: 2.75rem;
  padding: 0 var(--s2);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: var(--bar);
  width: 100%;
  border-radius: var(--radius-pill);
  background: var(--text-dark);
  transition: transform var(--dur) ease, opacity var(--dur) ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(var(--toggle-shift)) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(calc(-1 * var(--toggle-shift))) rotate(-45deg); }

/* ---------- Eyebrow / section heads ---------- */
.eyebrow {
  display: inline-block;
  margin: 0 0 var(--s2);
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

.section { padding: var(--s7) 0; }
.section-alt { background: var(--surface); border-top: var(--hairline) solid var(--border); border-bottom: var(--hairline) solid var(--border); }

.section-head { max-width: 46rem; margin-bottom: var(--s5); }
.section-head p { color: var(--text-light); }

.lead { font-size: var(--fs-lead); color: var(--text-light); line-height: 1.55; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: var(--s6) 0 calc(var(--s7) + var(--s5));
  min-height: 62vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 88% 18%, var(--glow) 0, transparent 38%),
    radial-gradient(circle at 8% 100%, var(--glow-green) 0, transparent 45%),
    linear-gradient(180deg, var(--bg) 0%, var(--surface-2) 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--s6)), 0 100%);
}
.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, var(--grid-line) 0 var(--hairline), transparent var(--hairline) var(--grid-size)),
    repeating-linear-gradient(90deg, var(--grid-line) 0 var(--hairline), transparent var(--hairline) var(--grid-size));
  -webkit-mask-image: linear-gradient(110deg, transparent 0%, var(--text-dark) 45%, var(--text-dark) 80%, transparent 100%);
  mask-image: linear-gradient(110deg, transparent 0%, var(--text-dark) 45%, var(--text-dark) 80%, transparent 100%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: var(--s6);
  align-items: center;
}

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

.hero h1 {
  font-size: var(--fs-hero);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 15ch;
  margin-bottom: var(--s4);
}

.hero .lead { max-width: 34rem; margin-bottom: var(--s5); }

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

.hero-visual { position: relative; }

.hero-panel {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  border: var(--hairline) solid var(--border);
  background:
    radial-gradient(var(--dot) 1.2px, transparent 1.4px) 0 0 / var(--dot-size) var(--dot-size),
    var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -20% -35% auto;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0, transparent 70%);
  pointer-events: none;
}

.hero-tag {
  position: absolute;
  left: calc(-1 * var(--s4));
  bottom: var(--s5);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  padding: var(--s1) var(--s3);
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: var(--on-dark);
  font-size: var(--fs-small);
  font-weight: 600;
  box-shadow: var(--shadow-md);
}
.hero-tag svg { width: 1.1rem; height: 1.1rem; color: var(--accent-bright); }

.gear-svg { position: relative; z-index: 1; display: block; width: 100%; height: 100%; }

.gear { transform-box: fill-box; transform-origin: center; animation: gear-spin 60s linear infinite; }
.gear-a { --g: var(--primary); }
.gear-b { --g: var(--accent-bright); animation-duration: 35.5s; animation-direction: reverse; }
.gear-c { --g: var(--text-light); animation-duration: 24.5s; animation-direction: reverse; }
.gear-teeth { fill: none; stroke: var(--g); stroke-dasharray: 1 1; }
.gear-body { fill: var(--g); }
.gear-hole { fill: var(--surface); }

.net-line { stroke: var(--accent); stroke-width: 1.25; stroke-dasharray: 4 5; fill: none; opacity: .7; }
.net-node { fill: var(--surface); stroke: var(--primary); stroke-width: 2; }
.net-node-core { fill: var(--accent-bright); }

@keyframes gear-spin { to { transform: rotate(360deg); } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: var(--s6) 0 calc(var(--s6) + var(--s4));
  background:
    radial-gradient(circle at 92% 10%, var(--glow) 0, transparent 34%),
    linear-gradient(180deg, var(--bg) 0%, var(--surface-2) 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--s4)), 0 100%);
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 { font-size: var(--fs-page); max-width: 22ch; margin-bottom: var(--s3); }
.page-hero .lead { max-width: 40rem; margin-bottom: 0; }

.page-hero-gear {
  position: absolute;
  right: calc(-1 * var(--s6));
  top: 50%;
  width: 22rem;
  height: 22rem;
  transform: translateY(-50%);
  opacity: .10;
  pointer-events: none;
}
.page-hero-gear .gear-teeth { stroke: var(--primary); }
.page-hero-gear .gear-body { fill: var(--primary); }
.page-hero-gear .gear-hole { fill: var(--bg); }

/* ---------- Split / two-column bands ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--s6);
  align-items: start;
}
.split-even { grid-template-columns: 1fr 1fr; align-items: center; }
.split-sticky { position: sticky; top: calc(var(--nav-h) + var(--s5)); }

/* ---------- Steps (a genuine sequence) ---------- */
.steps { list-style: none; display: grid; gap: var(--s3); margin: 0; padding: 0; }

.step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s4);
  padding: var(--s4);
  border-radius: var(--radius);
  background: var(--surface);
  border: var(--hairline) solid var(--border);
}
.step h3 { margin-bottom: var(--s1); }
.step p { margin: 0; color: var(--text-light); }

.step-num {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: var(--rule) solid var(--primary);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

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

.service-card {
  display: flex;
  flex-direction: column;
  padding: var(--s5) var(--s4) var(--s4);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  transition: transform var(--dur) ease, box-shadow var(--dur) ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.service-card h3 { margin-top: var(--s4); }
.service-card p { color: var(--text-light); font-size: 1rem; }

.icon-tile {
  display: inline-grid;
  place-items: center;
  width: var(--icon-tile);
  height: var(--icon-tile);
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary);
  flex-shrink: 0;
}
.icon-tile svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-tile-brass { background: var(--accent-soft); color: var(--accent); }

.card-link {
  margin-top: auto;
  padding-top: var(--s3);
  font-weight: 600;
  font-size: var(--fs-small);
}

.tick-list { list-style: none; display: grid; gap: var(--s2); margin: var(--s3) 0 0; padding: 0; }
.tick-list li { position: relative; padding-left: var(--s5); color: var(--text-dark); }
.tick-list li::before {
  content: "";
  position: absolute;
  left: var(--s1);
  top: .45em;
  width: .45rem;
  height: .8rem;
  border-right: var(--bar) solid var(--accent);
  border-bottom: var(--bar) solid var(--accent);
  transform: rotate(45deg);
}

.service-row {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: var(--s5);
  padding: var(--s5) 0;
  border-top: var(--hairline) solid var(--border);
  align-items: start;
}
.service-row:last-of-type { border-bottom: var(--hairline) solid var(--border); }
.service-row h2 { font-size: var(--fs-h2-sm); }
.service-row p { color: var(--text-light); }
.service-row .tick-list { margin-top: 0; }

/* ---------- Dark full-bleed band ---------- */
.section-dark {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, var(--glow) 0, transparent 40%),
    var(--primary-deep);
  color: var(--on-dark);
}
.section-dark h2,
.section-dark h3 { color: var(--surface); }
.section-dark p { color: var(--on-dark-muted); }
.section-dark .eyebrow { color: var(--accent-bright); }
.section-dark a:not(.btn) { color: var(--accent-bright); }
.section-dark a:not(.btn):hover { color: var(--surface); }
.section-dark :focus-visible { outline-color: var(--accent-bright); }

.chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s1); }
.chip {
  padding: var(--s1) var(--s3);
  border-radius: var(--radius-pill);
  border: var(--hairline) solid var(--line-dark);
  color: var(--on-dark);
  font-size: .95rem;
}
.chip-note { margin-top: var(--s4); font-size: var(--fs-small); }

/* ---------- Credentials strip ---------- */
.credentials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: var(--radius);
  border: var(--hairline) solid var(--border);
  background: var(--surface);
  overflow: hidden;
}
.cred-item { padding: var(--s4); border-left: var(--hairline) solid var(--border); min-width: 0; }
.cred-item:first-child { border-left: 0; }
.cred-label {
  display: block;
  margin-bottom: var(--s1);
  font-size: var(--fs-small);
  color: var(--text-light);
}
.cred-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--primary);
}

/* ---------- Principles / facts ---------- */
.principles { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.principle { padding-top: var(--s4); border-top: var(--rule) solid var(--primary); }
.principle h3 { margin-bottom: var(--s1); }
.principle p { color: var(--text-light); margin: 0; }

.facts {
  margin: 0;
  padding: var(--s4);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s2) var(--s4);
}
.facts dt { font-size: var(--fs-small); color: var(--text-light); padding-top: .15em; }
.facts dd { margin: 0; font-weight: 600; color: var(--text-dark); overflow-wrap: anywhere; min-width: 0; }

.note {
  margin-top: var(--s5);
  padding: var(--s4);
  border-radius: var(--radius);
  background: var(--accent-soft);
  border-left: var(--s1) solid var(--accent);
}
.note p { margin: 0; color: var(--text-dark); }

/* ---------- CTA strip ---------- */
.cta-strip { padding: var(--s6) 0 var(--s7); }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  padding: var(--s5);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 0% 100%, var(--glow) 0, transparent 50%),
    var(--primary);
  color: var(--on-dark);
}
.cta-inner h2 { color: var(--surface); margin-bottom: var(--s1); }
.cta-inner p { margin: 0; color: var(--on-dark); }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--s2); flex-shrink: 0; }
.cta-inner :focus-visible { outline-color: var(--accent-bright); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: var(--s6);
  align-items: start;
}

.contact-list { list-style: none; display: grid; gap: var(--s4); margin-top: var(--s4); }
.contact-item { display: grid; grid-template-columns: auto 1fr; gap: var(--s3); align-items: start; }
.contact-item > div { min-width: 0; }
.contact-item strong { display: block; font-size: var(--fs-small); color: var(--text-light); font-weight: 500; }
.contact-item a,
.contact-item span { font-weight: 600; overflow-wrap: anywhere; }
.contact-item span { color: var(--text-dark); }

.contact-card {
  padding: var(--s5);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  min-width: 0;
}
.contact-card h2 { font-size: var(--fs-h2-sm); }

.form { display: grid; gap: var(--s3); }
.form .btn { justify-self: start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.field { display: grid; gap: var(--s1); min-width: 0; }
.field label { font-size: var(--fs-small); font-weight: 600; color: var(--text-dark); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: var(--s2) var(--s3);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text-dark);
  font: inherit;
  font-size: 1rem;
  transition: border-color var(--dur) ease, background-color var(--dur) ease, box-shadow var(--dur) ease;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-light); }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: var(--ring);
}
.form-note { font-size: var(--fs-small); color: var(--text-light); margin: 0; overflow-wrap: anywhere; }

/* ---------- Legal ---------- */
.legal-layout {
  display: grid;
  grid-template-columns: 15rem 1fr;
  gap: var(--s6);
  align-items: start;
}
.toc {
  position: sticky;
  top: calc(var(--nav-h) + var(--s4));
  padding: var(--s4);
  border-radius: var(--radius);
  background: var(--surface);
  border: var(--hairline) solid var(--border);
}
.toc-title { font-family: var(--font-display); font-weight: 600; font-size: 1rem; margin-bottom: var(--s2); }
.toc ol { margin: 0; padding-left: var(--s4); display: grid; gap: var(--s1); font-size: var(--fs-small); }
.toc a { color: var(--text-light); text-decoration: none; }
.toc a:hover { color: var(--primary); text-decoration: underline; }

.prose { max-width: 46rem; min-width: 0; }
.prose h2 {
  font-size: var(--fs-h2-xs);
  margin-top: var(--s5);
  padding-top: var(--s4);
  border-top: var(--hairline) solid var(--border);
}
.prose h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.prose ul { padding-left: var(--s4); margin: 0 0 var(--s3); display: grid; gap: var(--s1); max-width: var(--measure); }
.prose li { color: var(--text-dark); }
.prose a { overflow-wrap: anywhere; }
.prose-meta { font-size: var(--fs-small); color: var(--text-light); }

/* ---------- Footer ---------- */
.footer {
  background: var(--primary-deep);
  color: var(--on-dark-muted);
  border-top: var(--hairline) solid var(--line-dark);
  font-size: .95rem;
}
.footer a { color: var(--on-dark); text-decoration: none; }
.footer a:hover { color: var(--accent-bright); text-decoration: underline; }
.footer :focus-visible { outline-color: var(--accent-bright); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: var(--s5);
  padding-top: var(--s6);
  padding-bottom: var(--s5);
}
.footer-col { min-width: 0; }
.footer .brand { color: var(--on-dark); margin-bottom: var(--s3); }
.footer .brand:hover { color: var(--on-dark); text-decoration: none; }
.footer .brand-mark { background: var(--accent-bright); color: var(--primary-deep); }
.footer .brand-tag { color: var(--on-dark-muted); }
.footer p { max-width: 34ch; }
.footer-reg { font-size: var(--fs-small); line-height: 1.7; }

.footer-title {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: var(--s3);
}
.footer-links { list-style: none; display: grid; gap: var(--s1); }
.footer-links a,
.footer-links span { overflow-wrap: anywhere; }

.footer-bottom { background: var(--primary); border-top: var(--hairline) solid var(--line-dark); }
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2) var(--s4);
  padding-top: var(--s3);
  padding-bottom: var(--s3);
  font-size: var(--fs-small);
  color: var(--on-dark);
}
.footer-bottom-inner p { margin: 0; max-width: none; }
.footer-legal { list-style: none; display: flex; gap: var(--s4); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-row { grid-template-columns: auto 1fr; }
  .service-row .tick-list { grid-column: 2; }
}

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

  .nav-toggle { display: inline-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: var(--hairline) solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { border-bottom: var(--hairline) solid var(--surface-2); }
  .nav-menu li.nav-cta { border-bottom: 0; padding-top: var(--s3); }
  .nav-menu a:not(.btn) { display: block; padding: var(--s2) 0; }
  .nav-menu a:not(.btn)::after { right: auto; width: 2rem; }
  .nav-cta .btn { width: 100%; }

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

  .page-hero { padding: var(--s5) 0 var(--s6); }
  .page-hero-gear { width: 14rem; height: 14rem; }

  .split,
  .split-even,
  .contact-grid,
  .legal-layout { grid-template-columns: 1fr; gap: var(--s5); }
  .split-sticky,
  .toc { position: static; }

  .services-grid,
  .principles { grid-template-columns: 1fr; }

  .service-row { grid-template-columns: 1fr; gap: var(--s3); }
  .service-row .tick-list { grid-column: auto; }

  .credentials { grid-template-columns: 1fr 1fr; }
  .cred-item { border-left: 0; border-top: var(--hairline) solid var(--border); }
  .cred-item:nth-child(-n+2) { border-top: 0; }
  .cred-item:nth-child(even) { border-left: var(--hairline) solid var(--border); }

  .cta-strip { padding: var(--s5) 0 var(--s6); }
  .cta-inner { flex-direction: column; align-items: flex-start; padding: var(--s4); }

  .field-row { grid-template-columns: 1fr; }
  .contact-card { padding: var(--s4); }
  .form .btn { justify-self: stretch; }

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

@media (max-width: 420px) {
  .credentials { grid-template-columns: 1fr; }
  .cred-item,
  .cred-item:nth-child(even) { border-left: 0; }
  .cred-item:nth-child(2) { border-top: var(--hairline) solid var(--border); }
  .brand-name { font-size: .95rem; }
}

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