/* Services by Lewys Edwards - styles.css
   Art direction: the tradesperson's job sheet. Deep teal-slate, amber marks used sparingly,
   cool stone neutrals, sharp shape language (hairlines, 3px corners), condensed display type. */

:root {
  /* Colour */
  --primary: #1d3b3a;
  --primary-deep: #132827;
  --primary-soft: #2a5250;
  --accent: #e3a72f;
  --accent-hover: #f0b947;
  --accent-ink: #8a5800;
  --bg: #f4f5f1;
  --surface: #ffffff;
  --stone-100: #eaede7;
  --stone-200: #d6dbd3;
  --stone-400: #8c968e;
  --field-border: #6f7a72;
  --border: #d6dbd3;
  --text-dark: #19211f;
  --text-body: #3d4844;
  --text-light: #eaf0ed;
  --text-light-muted: #a9bbb6;
  --line-dark: rgba(234, 240, 237, 0.14);
  --line-strong: rgba(234, 240, 237, 0.45);
  --tint-light: rgba(234, 240, 237, 0.08);
  --tint-primary: rgba(29, 59, 58, 0.08);
  --paper-line: rgba(29, 59, 58, 0.07);
  --grid-line: rgba(234, 240, 237, 0.06);
  --glow: rgba(227, 167, 47, 0.2);
  --glow-cool: rgba(120, 170, 160, 0.16);
  --nav-bg: rgba(244, 245, 241, 0.86);

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(25, 33, 31, 0.05);
  --shadow-md: 0 1px 2px rgba(25, 33, 31, 0.04), 0 8px 24px rgba(25, 33, 31, 0.07);
  --shadow-lg: 0 2px 6px rgba(10, 22, 21, 0.25), 0 28px 56px rgba(10, 22, 21, 0.35);

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

  /* Shape and layout */
  --radius: 3px;
  --radius-lg: 4px;
  --hair: 1px;
  --rule: 2px;
  --bar: 4px;
  --container: 1140px;
  --gutter: 1.25rem;
  --measure: 66ch;
  --grid: 32px;
  --nav-h: 4.25rem;
  --mark: 2.25rem;
  --tile: 3rem;
  --glyph: 1.5rem;
  --btn-pad-y: 0.8rem;
  --btn-pad-x: 1.6rem;

  /* Type */
  --font-display: Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
  --font-body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fs-hero: clamp(2.25rem, 5vw, 4rem);
  --fs-page: clamp(2rem, 4vw, 3rem);
  --fs-h2: clamp(1.6rem, 3vw, 2.4rem);
  --fs-h2-sm: clamp(1.3rem, 2.2vw, 1.65rem);
  --fs-h3: 1.2rem;
  --fs-lead: clamp(1.05rem, 1.6vw, 1.2rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.78rem;

  --t: 180ms ease;

  /* Shared hero craft: blueprint grid over teal, amber glow top-right, cool glow bottom-left */
  --hero-bg:
    radial-gradient(55% 70% at 88% 8%, var(--glow), transparent 62%),
    radial-gradient(40% 60% at 0% 100%, var(--glow-cool), transparent 70%),
    repeating-linear-gradient(0deg, var(--grid-line) 0 1px, transparent 1px var(--grid)),
    repeating-linear-gradient(90deg, var(--grid-line) 0 1px, transparent 1px var(--grid)),
    linear-gradient(160deg, var(--primary) 0%, var(--primary-deep) 100%);
}

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

html {
  -webkit-text-size-adjust: 100%;
  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-body);
  background: var(--bg);
  overflow-x: hidden;
}

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

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

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

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

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

svg { display: block; }

:focus-visible {
  outline: var(--rule) solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: var(--radius);
}
.hero :focus-visible,
.page-hero :focus-visible,
.band-dark :focus-visible,
.footer :focus-visible { outline-color: var(--accent); }

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

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

/* Eyebrow */
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin: 0 0 var(--s3);
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: var(--s4);
  height: var(--rule);
  background: currentColor;
}
.hero .eyebrow,
.page-hero .eyebrow,
.band-dark .eyebrow { color: var(--accent); }

.lead { font-size: var(--fs-lead); }

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

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

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

.btn-outline-light {
  background: transparent;
  color: var(--text-light);
  border-color: var(--line-strong);
}
.btn-outline-light:hover {
  background: var(--tint-light);
  color: var(--text-light);
  border-color: var(--text-light);
}

/* Header and 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(--hair) solid var(--border);
}

.navbar { position: relative; }

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

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

.brand-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--mark);
  height: var(--mark);
  background: var(--primary);
  color: var(--accent);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.15;
  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-weight: 500;
  text-decoration: none;
}
.nav-links a:not(.btn)::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-links a:not(.btn):hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--primary); font-weight: 700; }

.nav-cta { padding: var(--s1) var(--s4); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: var(--s0);
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: transparent;
  border: var(--hair) solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 1.25rem;
  height: var(--rule);
  margin: 0 auto;
  background: var(--text-dark);
  transition: transform var(--t), opacity var(--t);
}
.navbar.open .nav-toggle-bar:nth-child(1) { transform: translateY(calc(var(--s0) + var(--rule))) rotate(45deg); }
.navbar.open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.navbar.open .nav-toggle-bar:nth-child(3) { transform: translateY(calc((var(--s0) + var(--rule)) * -1)) rotate(-45deg); }

/* Home hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 60vh;
  padding: var(--s7) 0 calc(var(--s7) + var(--s6));
  background: var(--hero-bg);
  color: var(--text-light-muted);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--s6)), 0 100%);
}

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

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

.hero h1 {
  max-width: 15ch;
  margin-bottom: var(--s4);
  color: var(--text-light);
  font-size: var(--fs-hero);
  line-height: 1.04;
  font-stretch: semi-condensed;
}

.hero-lead {
  max-width: 52ch;
  font-size: var(--fs-lead);
  color: var(--text-light-muted);
}

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

.hero-note {
  margin: var(--s4) 0 0;
  font-size: var(--fs-small);
  color: var(--text-light-muted);
}
.hero a:not(.btn),
.page-hero a:not(.btn),
.band-dark a:not(.btn) { color: var(--accent); overflow-wrap: anywhere; }
.hero a:not(.btn):hover,
.page-hero a:not(.btn):hover,
.band-dark a:not(.btn):hover { color: var(--accent-hover); }

/* The job sheet: the one memorable object */
.hero-visual {
  position: relative;
  padding: var(--s4);
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: var(--s5) 0 0 var(--s5);
  border: var(--hair) dashed var(--accent);
  border-radius: var(--radius);
  opacity: 0.55;
}

.jobsheet {
  position: relative;
  padding: var(--s4);
  background: var(--surface);
  color: var(--text-body);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.5deg);
}

.jobsheet-head {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding-bottom: var(--s2);
  margin-bottom: var(--s3);
  border-bottom: var(--hair) solid var(--border);
}

.jobsheet-title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.2;
}
.jobsheet-sub {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 400;
  color: var(--text-body);
}

.jobsheet-plan {
  margin-bottom: var(--s3);
  padding: var(--s2);
  color: var(--primary);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(0deg, var(--paper-line) 0 1px, transparent 1px calc(var(--grid) / 2)),
    repeating-linear-gradient(90deg, var(--paper-line) 0 1px, transparent 1px calc(var(--grid) / 2)),
    var(--stone-100);
}
.jobsheet-plan svg { width: 100%; height: auto; }
.plan-dim { stroke: var(--stone-400); }
.plan-label { fill: var(--text-body); font-family: var(--font-body); font-size: 10px; }
.plan-mark { fill: var(--accent); stroke: var(--primary); }

.jobsheet-list {
  display: grid;
  gap: var(--s1);
  list-style: none;
  font-size: var(--fs-small);
}
.jobsheet-list li {
  display: flex;
  align-items: center;
  gap: var(--s2);
  color: var(--text-dark);
}
.jobsheet-list li::before {
  content: "";
  flex: none;
  width: var(--s3);
  height: var(--s3);
  border: var(--rule) solid var(--primary);
  border-radius: var(--radius);
}
.jobsheet-list li.done::before {
  background: var(--primary);
  box-shadow: inset 0 0 0 var(--rule) var(--surface);
}
.jobsheet-list li.done span {
  color: var(--text-body);
  text-decoration: line-through;
  text-decoration-color: var(--accent-ink);
}

/* Inner page hero */
.page-hero {
  padding: var(--s6) 0 calc(var(--s6) + var(--s5));
  background: var(--hero-bg);
  color: var(--text-light-muted);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--s5)), 0 100%);
}
.page-hero h1 {
  max-width: 22ch;
  margin-bottom: var(--s3);
  color: var(--text-light);
  font-size: var(--fs-page);
  font-stretch: semi-condensed;
}
.page-hero p {
  max-width: 58ch;
  margin: 0;
  font-size: var(--fs-lead);
}

/* Sections */
.section { padding: var(--s7) 0; }
.section-alt {
  background: var(--surface);
  border-top: var(--hair) solid var(--border);
  border-bottom: var(--hair) solid var(--border);
}
.section-head {
  max-width: 46rem;
  margin-bottom: var(--s5);
}
.section-head p:last-child { margin-bottom: 0; }
.section-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3);
  margin-top: var(--s5);
}

/* Two-column split */
.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--s6);
  align-items: start;
}
.split-aside {
  position: sticky;
  top: calc(var(--nav-h) + var(--s5));
}

/* Steps (a real sequence) */
.steps {
  display: grid;
  list-style: none;
  border-top: var(--hair) solid var(--border);
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s4);
  padding: var(--s4) 0;
  border-bottom: var(--hair) solid var(--border);
}
.step-num {
  min-width: 2.5ch;
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1;
  color: var(--accent-ink);
}
.step h3 { margin-bottom: var(--s1); }
.step p { margin: 0; }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
}
.service-card {
  position: relative;
  padding: var(--s5) var(--s4) var(--s4);
  background: var(--surface);
  border: var(--hair) solid var(--border);
  border-radius: var(--radius);
}
.section-alt .service-card { background: var(--bg); }
.service-card::before {
  content: "";
  position: absolute;
  top: calc(var(--hair) * -1);
  left: calc(var(--hair) * -1);
  width: var(--s5);
  height: var(--bar);
  background: var(--accent);
}
.service-card p { margin: 0; font-size: 1rem; }

.glyph {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--tile);
  height: var(--tile);
  margin-bottom: var(--s3);
  background: var(--tint-primary);
  color: var(--primary);
  border-radius: var(--radius);
}
.glyph svg {
  width: var(--glyph);
  height: var(--glyph);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Full-bleed dark band */
.band-dark {
  padding: var(--s7) 0;
  background: var(--primary-deep);
  color: var(--text-light-muted);
}
.band-dark h2,
.band-dark h3 { color: var(--text-light); }

.scope {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
  align-items: start;
}
.scope-panel {
  padding: var(--s4);
  border: var(--hair) solid var(--line-dark);
  border-radius: var(--radius);
}
.scope-panel h3 { font-size: var(--fs-h3); }

.scope-list,
.tick-list {
  display: grid;
  gap: var(--s1);
  list-style: none;
}
.scope-list { margin-bottom: var(--s4); }
.scope-list:last-child { margin-bottom: 0; }
.scope-list li,
.tick-list li {
  position: relative;
  padding-left: var(--s4);
}
.scope-list li::before,
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: var(--s2);
  height: var(--rule);
  background: var(--accent);
}
.tick-list li::before { background: var(--accent-ink); }
.scope-list.refer li::before {
  height: var(--hair);
  background: var(--text-light-muted);
}

/* Credentials strip (facts only) */
.credentials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--hair);
  background: var(--border);
  border: var(--hair) solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.cred {
  padding: var(--s4);
  background: var(--surface);
}
.cred-label {
  display: block;
  margin-bottom: var(--s0);
  font-size: var(--fs-small);
  color: var(--text-body);
}
.cred-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-dark);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

/* CTA strip */
.cta-band { padding: var(--s6) 0; }
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s5);
  background: var(--surface);
  border: var(--hair) solid var(--border);
  border-left: var(--bar) solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.cta-inner h2 { font-size: var(--fs-h2-sm); margin-bottom: var(--s1); }
.cta-inner p { margin: 0; }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

/* About page */
.prose p:last-child { margin-bottom: 0; }
.prose h2 { margin-top: var(--s5); }
.prose h2:first-child { margin-top: 0; }

.facts {
  padding: var(--s4);
  background: var(--surface);
  border: var(--hair) solid var(--border);
  border-top: var(--bar) solid var(--primary);
  border-radius: var(--radius);
}
.facts h2 { font-size: var(--fs-h3); }
.facts dl {
  display: grid;
  gap: var(--s3);
  margin: 0;
}
.facts dt {
  font-size: var(--fs-small);
  color: var(--text-body);
}
.facts dd {
  margin: 0;
  font-weight: 600;
  color: var(--text-dark);
  overflow-wrap: anywhere;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
}
.principle {
  padding-top: var(--s3);
  border-top: var(--rule) solid var(--primary);
}
.principle p { margin: 0; }

/* Services page */
.service-rows {
  display: grid;
  border-top: var(--hair) solid var(--border);
}
.service-row {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: var(--s5);
  align-items: start;
  padding: var(--s5) 0;
  border-bottom: var(--hair) solid var(--border);
}
.service-row h2 { font-size: var(--fs-h2-sm); margin-bottom: var(--s2); }
.service-row p { margin: 0; }
.list-label {
  margin-bottom: var(--s1);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text-dark);
}

.note-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s4);
  align-items: start;
  margin-top: var(--s6);
  padding: var(--s4);
  background: var(--surface);
  border: var(--hair) solid var(--border);
  border-left: var(--bar) solid var(--primary);
  border-radius: var(--radius);
}
.note-panel .glyph { margin: 0; }
.note-panel h2 { font-size: var(--fs-h3); margin-bottom: var(--s1); }
.note-panel p { margin: 0; }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--s6);
  align-items: start;
}
.email-link {
  display: inline-block;
  margin-bottom: var(--s4);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.contact-card {
  padding: var(--s5);
  background: var(--surface);
  border: var(--hair) solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.contact-card h2 { font-size: var(--fs-h2-sm); }

.form {
  display: grid;
  gap: var(--s3);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
}
.field label {
  display: block;
  margin-bottom: var(--s0);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: var(--s2) var(--s3);
  font: inherit;
  color: var(--text-dark);
  background: var(--bg);
  border: var(--hair) solid var(--field-border);
  border-radius: var(--radius);
  transition: border-color var(--t), background-color var(--t);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  background: var(--surface);
}
.field textarea {
  min-height: 9rem;
  resize: vertical;
}
.form-note {
  margin: 0;
  font-size: var(--fs-small);
}

/* Legal pages */
.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-left: var(--s3);
  font-size: var(--fs-small);
  border-left: var(--rule) solid var(--border);
}
.toc p {
  margin-bottom: var(--s2);
  font-weight: 700;
  color: var(--text-dark);
}
.toc ol {
  display: grid;
  gap: var(--s1);
  padding-left: var(--s3);
}
.toc a {
  color: var(--text-body);
  text-decoration: none;
}
.toc a:hover { color: var(--primary); text-decoration: underline; }

.legal { min-width: 0; }
.legal h2 {
  margin-top: var(--s5);
  padding-top: var(--s4);
  font-size: var(--fs-h2-sm);
  border-top: var(--hair) solid var(--border);
}
.legal h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 { margin-top: var(--s4); font-size: 1.05rem; }
.legal ul {
  max-width: var(--measure);
  margin-bottom: var(--s3);
  padding-left: var(--s4);
}
.legal li { margin-bottom: var(--s1); }
.updated {
  font-size: var(--fs-small);
  color: var(--text-body);
}

/* Footer */
.footer {
  background: var(--primary-deep);
  color: var(--text-light-muted);
  border-top: var(--hair) solid var(--line-dark);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: var(--s5);
  padding: var(--s6) var(--gutter) var(--s5);
}
.footer-col { min-width: 0; }
.footer-col p { max-width: 36ch; }
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-bottom: var(--s3);
  color: var(--text-light);
  text-decoration: none;
}
.footer-heading {
  margin-bottom: var(--s3);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--text-light);
}
.footer ul {
  display: grid;
  gap: var(--s1);
  list-style: none;
}
.footer a {
  color: var(--text-light);
  text-decoration: none;
}
.footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.footer-legal {
  margin: 0;
  font-size: var(--fs-small);
  line-height: 1.7;
}
.footer-legal strong {
  font-weight: 600;
  color: var(--text-light);
}
.footer-bottom {
  background: var(--primary);
  border-top: var(--hair) solid var(--line-dark);
}
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  padding: var(--s3) var(--gutter);
  font-size: var(--fs-small);
}
.footer-bottom-inner p { margin: 0; }
.footer-bottom-inner ul {
  display: flex;
  gap: var(--s4);
}

/* Responsive */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .credentials { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { gap: var(--s5); }
}

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
  .brand-name { font-size: 0.95rem; }

  .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(--surface);
    border-bottom: var(--hair) solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .navbar.open .nav-links { display: flex; }
  .nav-links a:not(.btn) {
    display: block;
    padding: var(--s2) 0;
    border-bottom: var(--hair) solid var(--stone-100);
  }
  .nav-links a:not(.btn)::after {
    right: auto;
    width: var(--s5);
  }
  .nav-cta {
    width: 100%;
    margin-top: var(--s3);
    padding: var(--btn-pad-y) var(--btn-pad-x);
  }

  .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: 1fr; }
  .hero-visual { display: none; }

  .page-hero {
    padding: var(--s5) 0 calc(var(--s5) + var(--s4));
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--s4)), 0 100%);
  }

  .section,
  .band-dark { padding: var(--s6) 0; }
  .cta-band { padding: var(--s5) 0; }
  .cta-inner { padding: var(--s4); }

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

  .services-grid,
  .principles { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; gap: var(--s3); }
  .field-row { grid-template-columns: 1fr; }
  .contact-card { padding: var(--s4); }

  .footer-grid { grid-template-columns: 1fr; gap: var(--s4); padding-top: var(--s5); }
}

@media (max-width: 480px) {
  .credentials { grid-template-columns: 1fr; }
  .hero-actions .btn,
  .cta-actions .btn { width: 100%; }
}

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