/* HADA Labs Pty Ltd — styles.css
   Art direction: "section study" — a small Victorian software lab drawn like a
   bathymetric survey. Deep ink-teal, cool mist neutrals, one ochre signal colour.
   Shape language: sharp (2–3px radius, hairline rules). */

:root {
  /* Colour */
  --primary: #173c45;
  --primary-deep: #0f2a30;
  --primary-ink: #0a1d21;
  --accent: #8a5005;
  --accent-bright: #f0b54a;
  --bg: #f4f6f6;
  --surface: #ffffff;
  --mist: #e5ebeb;
  --border: #cfd9da;
  --text-dark: #142027;
  --text-light: #4c6066;
  --text-on-dark: #e8eff0;
  --text-on-dark-muted: #a9bcbf;
  --tint: rgba(23, 60, 69, 0.08);
  --rule-dark: rgba(232, 239, 240, 0.14);
  --panel-dark: rgba(232, 239, 240, 0.04);
  --hatch: rgba(232, 239, 240, 0.05);
  --glow-warm: rgba(240, 181, 74, 0.16);
  --glow-cool: rgba(108, 178, 184, 0.24);
  --nav-bg: rgba(244, 246, 246, 0.84);
  --white: #ffffff;

  /* Spacing scale */
  --s1: 0.5rem;
  --s2: 0.75rem;
  --s3: 1rem;
  --s4: 1.5rem;
  --s5: 2.5rem;
  --s6: 4rem;
  --s7: 6rem;
  --line: 1px;
  --bar: 2px;
  --bar-gap: 0.3125rem;

  /* Shape, layout */
  --radius: 3px;
  --radius-sm: 2px;
  --container: 1140px;
  --gutter: 1.5rem;
  --measure: 66ch;
  --card-min: 15.5rem;
  --tile: 2.75rem;
  --mark: 2.25rem;
  --nav-h: 4.25rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(10, 29, 33, 0.05);
  --shadow: 0 1px 2px rgba(10, 29, 33, 0.04), 0 8px 24px rgba(10, 29, 33, 0.07);
  --shadow-lift: 0 2px 4px rgba(10, 29, 33, 0.06), 0 14px 32px rgba(10, 29, 33, 0.13);

  /* Type */
  --font-body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: Bahnschrift, "DIN Alternate", "Avenir Next", "Segoe UI", Roboto, Helvetica, Arial, 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-h3: 1.2rem;
  --fs-lead: clamp(1.075rem, 1.4vw, 1.2rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.78rem;
  --fs-monogram: clamp(4rem, 9vw, 7rem);

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

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

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  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.25; letter-spacing: -0.01em; }

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

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

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

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

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  margin: 0 0 var(--s2);
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: var(--s4);
  height: var(--line);
  background: currentColor;
}

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

.muted { color: var(--text-light); }

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

.btn-primary { background: var(--primary); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-deep); color: var(--white); box-shadow: var(--shadow-lift); }

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

.btn-signal { background: var(--accent-bright); color: var(--primary-ink); }
.btn-signal:hover { background: var(--white); color: var(--primary-ink); box-shadow: var(--shadow-lift); }

.btn-ghost { background: transparent; color: var(--text-on-dark); border-color: var(--rule-dark); }
.btn-ghost:hover { border-color: var(--text-on-dark); color: var(--white); }

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

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

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

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  border-bottom: var(--line) solid var(--accent);
  padding-bottom: var(--bar);
}
.text-link:hover { color: var(--accent); }

/* ---------- Header / nav ---------- */
.site-header {
  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(--line) solid var(--border);
}

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

.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: var(--mark);
  height: var(--mark);
  background: var(--primary);
  color: var(--accent-bright);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

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

.nav-toggle {
  display: none;
  width: var(--s6);
  height: var(--s5);
  margin-right: calc(-1 * var(--s2));
  padding: 0 var(--s2);
  background: transparent;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: var(--bar-gap);
}
.nav-toggle-bar {
  display: block;
  width: var(--s4);
  height: var(--bar);
  background: var(--text-dark);
  transition: transform var(--ease), opacity var(--ease);
}

/* ---------- Hero ---------- */
.hero,
.page-hero {
  position: relative;
  color: var(--text-on-dark);
  background:
    radial-gradient(55% 75% at 88% 18%, var(--glow-cool), transparent 62%),
    radial-gradient(40% 55% at 6% 100%, var(--glow-warm), transparent 70%),
    repeating-linear-gradient(180deg, var(--hatch) 0 var(--line), transparent var(--line) var(--s5)),
    linear-gradient(180deg, var(--primary) 0%, var(--primary-deep) 65%, var(--primary-ink) 100%);
}

.hero {
  min-height: 62vh;
  display: flex;
  align-items: center;
  padding: var(--s7) 0 calc(var(--s7) + var(--s5));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--s6)), 0 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--s6);
  align-items: center;
}

.hero h1,
.page-hero h1 { color: var(--white); }
.hero h1 { font-size: var(--fs-hero); line-height: 1.05; margin-bottom: var(--s4); max-width: 16ch; }
.hero .eyebrow,
.page-hero .eyebrow,
.cta-band .eyebrow,
.section-dark .eyebrow { color: var(--accent-bright); }
.hero .lead,
.page-hero .lead { color: var(--text-on-dark-muted); max-width: 46ch; margin-bottom: var(--s5); }

.hero-visual {
  position: relative;
  color: var(--text-on-dark-muted);
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: var(--s4) calc(-1 * var(--s4)) calc(-1 * var(--s4)) var(--s4);
  border: var(--line) solid var(--rule-dark);
  border-radius: var(--radius);
}
.hero-panel {
  position: relative;
  padding: var(--s4);
  background: var(--panel-dark);
  border: var(--line) solid var(--rule-dark);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.hero-panel svg { display: block; width: 100%; height: auto; }
.hero-panel .probe { color: var(--accent-bright); }
.hero-panel .ping {
  transform-box: fill-box;
  transform-origin: center;
  animation: ping 3.2s ease-out infinite;
}

@keyframes ping {
  0% { opacity: 0.9; transform: scale(0.6); }
  80%, 100% { opacity: 0; transform: scale(1.6); }
}

.page-hero {
  padding: var(--s6) 0 calc(var(--s6) + var(--s4));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--s4)), 0 100%);
}
.page-hero h1 { font-size: var(--fs-page); max-width: 22ch; margin-bottom: var(--s3); }
.page-hero .lead { margin-bottom: 0; }

/* ---------- Sections ---------- */
.section { padding: var(--s7) 0; }
.section-tight { padding: var(--s6) 0; }
.section-mist { background: var(--mist); }
.section-surface { background: var(--surface); border-top: var(--line) solid var(--border); border-bottom: var(--line) solid var(--border); }

.section-dark {
  background: var(--primary-deep);
  color: var(--text-on-dark);
}
.section-dark h2,
.section-dark h3 { color: var(--white); }
.section-dark p { color: var(--text-on-dark-muted); }
.section-dark :focus-visible { outline-color: var(--accent-bright); }

.section-head { margin-bottom: var(--s5); }
.section-head p { margin-bottom: 0; }

.section-foot { margin-top: var(--s5); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s6);
  align-items: start;
}
.split-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.split-sticky { position: sticky; top: calc(var(--nav-h) + var(--s5)); }

/* Principles list */
.principles { list-style: none; }
.principle {
  display: grid;
  grid-template-columns: var(--tile) minmax(0, 1fr);
  gap: var(--s4);
  padding: var(--s4) 0;
  border-top: var(--line) solid var(--border);
}
.principle:last-child { border-bottom: var(--line) solid var(--border); }
.principle h3 { margin-bottom: var(--s1); }
.principle p { margin: 0; color: var(--text-light); }

/* Glyph tiles (inline SVG line icons) */
.glyph {
  display: inline-grid;
  place-items: center;
  width: var(--tile);
  height: var(--tile);
  background: var(--tint);
  color: var(--primary);
  border-radius: var(--radius);
  flex-shrink: 0;
}
.glyph svg { width: var(--s4); height: var(--s4); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--card-min), 1fr));
  gap: var(--s4);
  list-style: none;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  padding: var(--s5) var(--s4) var(--s4);
  background: var(--surface);
  border: var(--line) solid var(--border);
  border-radius: var(--radius);
}
.service-card::before {
  content: "";
  position: absolute;
  top: calc(-1 * var(--line));
  left: var(--s4);
  width: var(--s5);
  height: var(--bar);
  background: var(--accent);
}
.service-card h3 { margin: 0; }
.service-card p { margin: 0; color: var(--text-light); font-size: 1rem; }

.service-points {
  list-style: none;
  margin-top: auto;
  padding-top: var(--s3);
  border-top: var(--line) solid var(--border);
  font-size: var(--fs-small);
  color: var(--text-light);
}
.service-points li { position: relative; padding-left: var(--s4); margin-bottom: var(--s1); }
.service-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: var(--s2);
  height: var(--line);
  background: var(--accent);
}

/* Process steps (a real sequence) */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  list-style: none;
  counter-reset: step;
  border-top: var(--line) solid var(--rule-dark);
}
.step {
  counter-increment: step;
  padding: var(--s4) var(--s4) 0 0;
  border-right: var(--line) solid var(--rule-dark);
  margin-right: var(--s4);
}
.step:last-child { border-right: 0; margin-right: 0; }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: var(--s3);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--accent-bright);
}
.step h3 { margin-bottom: var(--s1); }
.step p { font-size: 0.975rem; margin: 0; }

/* Steps inside a two-column band run two-up */
.split .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split .step:nth-child(2) { border-right: 0; margin-right: 0; }
.split .step:nth-child(n + 3) { padding-top: var(--s5); }

/* Monogram visual (about strip) */
.monogram {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  max-width: 30rem;
  margin: 0 auto;
}
.monogram::before,
.monogram::after {
  content: "";
  position: absolute;
  border-radius: var(--radius);
}
.monogram::before {
  inset: 0 var(--s5) var(--s5) 0;
  background:
    repeating-linear-gradient(180deg, var(--hatch) 0 var(--line), transparent var(--line) var(--s3)),
    linear-gradient(160deg, var(--primary) 0%, var(--primary-ink) 100%);
}
.monogram::after {
  inset: var(--s5) 0 0 var(--s5);
  border: var(--line) solid var(--primary);
}
.monogram-inner {
  position: absolute;
  inset: 0 var(--s5) var(--s5) 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--s4);
  color: var(--text-on-dark-muted);
}
.monogram-letters {
  font-family: var(--font-display);
  font-size: var(--fs-monogram);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--white);
}
.monogram-letters span { color: var(--accent-bright); }
.monogram-meta { font-size: var(--fs-small); line-height: 1.5; margin: 0; }

/* Credentials strip */
.credentials {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border: var(--line) solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.cred {
  padding: var(--s4);
  border-right: var(--line) solid var(--border);
}
.cred:last-child { border-right: 0; }
.cred dt {
  margin-bottom: var(--s1);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
}
.cred dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* Fact list (about/contact) */
.facts { margin: 0; border-top: var(--line) solid var(--border); }
.fact {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: var(--s3);
  padding: var(--s3) 0;
  border-bottom: var(--line) solid var(--border);
}
.fact dt { color: var(--text-light); font-size: var(--fs-small); }
.fact dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* CTA band */
.cta-band {
  position: relative;
  padding: var(--s6) 0;
  color: var(--text-on-dark);
  background:
    radial-gradient(45% 120% at 100% 50%, var(--glow-warm), transparent 70%),
    linear-gradient(90deg, var(--primary-deep), var(--primary));
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: var(--s1); }
.cta-band p { color: var(--text-on-dark-muted); margin: 0; max-width: 52ch; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s6);
  align-items: start;
}
.contact-card {
  padding: var(--s5) var(--s4);
  background: var(--surface);
  border: var(--line) solid var(--border);
  border-radius: var(--radius);
}
.contact-email {
  display: inline-block;
  margin: var(--s1) 0 var(--s4);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.form {
  display: grid;
  gap: var(--s4);
  padding: var(--s5) var(--s4);
  background: var(--surface);
  border: var(--line) solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.field { display: grid; gap: var(--s1); }
.field label { font-weight: 600; font-size: 0.95rem; }
.field-hint { font-size: var(--fs-small); color: var(--text-light); margin: 0; }
.field input,
.field textarea {
  width: 100%;
  padding: var(--s2) var(--s3);
  font: inherit;
  color: var(--text-dark);
  background: var(--bg);
  border: var(--line) solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--ease), background-color var(--ease);
}
.field input::placeholder { color: var(--text-light); }
.field textarea { min-height: 11rem; resize: vertical; }
.field input:hover,
.field textarea:hover { border-color: var(--text-light); }
.field input:focus-visible,
.field textarea:focus-visible { background: var(--surface); border-color: var(--primary); }
.form-note { font-size: var(--fs-small); color: var(--text-light); margin: 0; }

.checklist { list-style: none; }
.checklist li {
  position: relative;
  padding: var(--s2) 0 var(--s2) var(--s5);
  border-bottom: var(--line) solid var(--border);
}
.checklist li:first-child { border-top: var(--line) solid var(--border); }
.checklist li::before {
  content: "";
  position: absolute;
  left: var(--s1);
  top: 1.2em;
  width: var(--s2);
  height: var(--s1);
  border-left: var(--bar) solid var(--accent);
  border-bottom: var(--bar) solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- Legal pages ---------- */
.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: var(--s6);
  align-items: start;
}
.toc {
  position: sticky;
  top: calc(var(--nav-h) + var(--s4));
  padding-left: var(--s3);
  border-left: var(--bar) solid var(--accent);
  font-size: var(--fs-small);
}
.toc p { font-weight: 600; margin-bottom: var(--s1); }
.toc ol { list-style: none; }
.toc li { margin-bottom: var(--s1); }
.toc a { color: var(--text-light); text-decoration: none; }
.toc a:hover { color: var(--primary); text-decoration: underline; }

.prose h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  margin-top: var(--s5);
  padding-top: var(--s4);
  border-top: var(--line) solid var(--border);
  scroll-margin-top: calc(var(--nav-h) + var(--s4));
}
.prose h3 { margin-top: var(--s4); }
.prose ul { margin: 0 0 var(--s3); padding-left: var(--s4); max-width: var(--measure); }
.prose li { margin-bottom: var(--s1); }
.prose .updated { color: var(--text-light); font-size: var(--fs-small); }

/* ---------- Footer ---------- */
.footer {
  background: var(--primary-ink);
  color: var(--text-on-dark-muted);
  border-top: var(--line) solid var(--rule-dark);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr);
  gap: var(--s5);
  padding-top: var(--s6);
  padding-bottom: var(--s6);
}
.footer .brand { color: var(--white); margin-bottom: var(--s3); }
.footer p { max-width: 40ch; }
.footer-reg { color: var(--text-on-dark); font-size: var(--fs-small); line-height: 1.7; }
.footer-heading {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  margin-bottom: var(--s3);
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: var(--s1); overflow-wrap: anywhere; }
.footer a { color: var(--text-on-dark-muted); text-decoration: none; }
.footer a:hover { color: var(--accent-bright); text-decoration: underline; }
.footer :focus-visible { outline-color: var(--accent-bright); }

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(2) { border-right: 0; margin-right: 0; }
  .step:nth-child(n + 3) { padding-top: var(--s5); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .credentials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cred:nth-child(2) { border-right: 0; }
  .cred:nth-child(-n + 2) { border-bottom: var(--line) solid var(--border); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    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(--bg);
    border-bottom: var(--line) solid var(--border);
    box-shadow: var(--shadow);
  }
  .navbar.open .nav-links { display: flex; }
  .nav-links li { border-bottom: var(--line) solid var(--border); }
  .nav-links li:last-child { border-bottom: 0; padding-top: var(--s3); }
  .nav-links a:not(.btn) { display: block; padding: var(--s2) 0; }
  .nav-links a:not(.btn)::after { right: auto; width: var(--s5); }
  .nav-links .btn { width: 100%; }
  .navbar.open .nav-toggle-bar:nth-child(1) { transform: translateY(calc(var(--bar) + var(--bar-gap))) rotate(45deg); }
  .navbar.open .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .navbar.open .nav-toggle-bar:nth-child(3) { transform: translateY(calc(-1 * (var(--bar) + var(--bar-gap)))) rotate(-45deg); }

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

  .section { padding: var(--s6) 0; }
  .section-tight { padding: var(--s5) 0; }
  .split,
  .split-even,
  .contact-grid,
  .legal-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .split-sticky,
  .toc { position: static; }

  .steps,
  .split .steps { grid-template-columns: minmax(0, 1fr); }
  .step,
  .split .step { border-right: 0; margin-right: 0; padding: var(--s4) 0; border-bottom: var(--line) solid var(--rule-dark); }
  .step:nth-child(n + 3),
  .split .step:nth-child(n + 3) { padding-top: var(--s4); }
  .step:last-child { border-bottom: 0; }

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

  .fact { grid-template-columns: minmax(0, 1fr); gap: 0; }

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

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