/* ==========================================================================
   Missing Part — stylesheet
   Tokens first. Change colours/type here and the whole site follows.
   ========================================================================== */

/* Self-hosted Archivo (variable: weight 100-900, width 62-125%). No Google Fonts request = faster, GDPR-friendly. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Colour */
  --paper: #edf0f3;        /* drafting-film grey: page background */
  --surface: #ffffff;      /* cards, form, table */
  --ink: #172030;          /* text, solid part in drawing */
  --steel: #556173;        /* secondary text */
  --line: #c6ced8;         /* rules, borders */
  --cobalt: #2340e0;       /* dimension lines, links, primary action */
  --cobalt-deep: #1a30b0;  /* hover */
  --cobalt-wash: #dfe4fb;  /* reconstructed fill, highlights */
  --fracture: #d93b3b;     /* fracture line, errors */
  --ok: #17804a;

  /* Type */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-h3: 1.3125rem;
  --fs-h2: clamp(1.85rem, 1.2rem + 2.4vw, 2.75rem);
  --fs-h1: clamp(2.5rem, 1.4rem + 4.4vw, 4.4rem);

  /* Layout */
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(4rem, 3rem + 5vw, 7.5rem);
  --radius-control: 4px;
  --radius-media: 2px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121822;
    --surface: #1a2230;
    --ink: #e6ebf2;
    --steel: #a3aebd;
    --line: #2f3a4b;
    --cobalt: #7d93ff;
    --cobalt-deep: #a5b4ff;
    --cobalt-wash: #23305e;
    --fracture: #ff6b6b;
    --ok: #4cc785;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cobalt); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--cobalt-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { margin: 0 0 0.5em; line-height: 1.08; font-weight: 720; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-variation-settings: "wdth" 116; font-weight: 780; line-height: 1.0; letter-spacing: -0.025em; }
h2 { font-size: var(--fs-h2); font-variation-settings: "wdth" 112; }
h3 { font-size: var(--fs-h3); font-variation-settings: "wdth" 104; font-weight: 660; line-height: 1.25; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: 0.35em; }
strong { font-weight: 650; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--surface { background: var(--surface); border-block: 1px solid var(--line); }
.lede { font-size: 1.1875rem; color: var(--steel); max-width: 60ch; }
.muted { color: var(--steel); }
.narrow { font-variation-settings: "wdth" 75; }

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 16px; top: 12px; z-index: 100; background: var(--surface); padding: 8px 14px; }

.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;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  padding: 0.85em 1.35em;
  border-radius: var(--radius-control);
  border: 2px solid var(--cobalt);
  background: var(--cobalt); color: #fff;
  font: inherit; font-weight: 640; font-variation-settings: "wdth" 104;
  text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--cobalt-deep); border-color: var(--cobalt-deep); color: #fff; text-decoration: none; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
@media (prefers-color-scheme: dark) { .btn { color: #0d1220; } .btn:hover { color: #0d1220; } }

/* ---------- Launch bar (test phase; remove with the LAUNCH-BAR block in the HTML) ---------- */
.launch-bar { background: var(--cobalt-wash); border-bottom: 1px solid var(--line); color: var(--ink); font-size: var(--fs-small); }
.launch-bar p { margin: 0; padding: 0.6rem 0; }
.launch-bar a { font-weight: 650; white-space: nowrap; }
@media (prefers-color-scheme: dark) { .launch-bar { background: color-mix(in srgb, var(--cobalt) 22%, var(--paper)); } }
@media print { .launch-bar { display: none; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-weight: 760; font-variation-settings: "wdth" 118; font-size: 1.125rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-sub { font-weight: 450; font-variation-settings: "wdth" 100; font-size: 0.72rem; letter-spacing: 0.01em; color: var(--steel); margin-top: 2px; white-space: nowrap; }
@media (max-width: 400px) { .brand-sub { display: none; } }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav ul { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; }
.nav li { margin: 0; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 520; font-size: var(--fs-small); }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--cobalt); text-decoration: underline; }
.nav .btn { padding: 0.6em 1.05em; font-size: var(--fs-small); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-control);
  padding: 8px 10px; color: var(--ink); cursor: pointer; font: inherit; font-size: var(--fs-small);
}

@media (max-width: 1140px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 6px; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
  .nav .btn { margin-top: 16px; justify-content: center; padding: 0.85em 1.2em; font-size: 1rem; }
  /* Without JS the menu is always visible on mobile */
  .no-js .nav { position: static; display: flex; }
  .no-js .nav-toggle { display: none; }
}

/* Language switcher */
.site-header .nav { margin-left: auto; }
.lang { list-style: none; display: flex; gap: 2px; margin: 0 0 0 0.25rem; padding: 0; }
.lang li { margin: 0; }
.lang a {
  display: block; padding: 0.3rem 0.5rem; border-radius: var(--radius-control);
  font-size: 0.8125rem; font-weight: 640; font-variation-settings: "wdth" 90;
  color: var(--steel); text-decoration: none;
}
.lang a:hover { color: var(--cobalt); text-decoration: none; }
.lang a[aria-current] { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }
@media (max-width: 1140px) {
  .brand { margin-right: auto; }
  .lang { order: 2; }
  .nav-toggle { order: 3; }
}
@media (max-width: 400px) { .brand { font-size: 1rem; } .brand svg { width: 28px; height: 28px; } .lang a { padding: 0.3rem 0.35rem; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 2rem + 4vw, 5.5rem) 0 clamp(3rem, 2rem + 4vw, 5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: center; }
.hero h1 { max-width: 13ch; }
.hero .lede { margin-top: 1.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.hero-note { margin-top: 1.1rem; font-size: var(--fs-small); color: var(--steel); }

.drawing { margin: 0; }
.drawing-sheet {
  position: relative;
  background-color: var(--surface);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 20px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-media);
  --grid: color-mix(in srgb, var(--cobalt) 7%, transparent);
}
.drawing svg { display: block; width: 100%; height: auto; }
.drawing figcaption { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin-top: 0.85rem; font-size: var(--fs-small); color: var(--steel); }
.key { display: inline-flex; align-items: center; gap: 0.5rem; }
.key::before { content: ""; width: 22px; height: 12px; border-radius: 1px; }
.key--orig::before { background: var(--ink); }
.key--new::before { background: var(--cobalt-wash); border: 2px solid var(--cobalt); }
.key--break::before { height: 0; border-top: 2px dashed var(--fracture); }

/* SVG drawing parts */
.d-solid { fill: var(--ink); }
.d-new { fill: var(--cobalt-wash); stroke: var(--cobalt); stroke-width: 2.5; stroke-linejoin: round; }
.d-break { fill: none; stroke: var(--fracture); stroke-width: 2.5; stroke-dasharray: 5 4; }
.d-dim { stroke: var(--cobalt); stroke-width: 1.4; fill: none; }
.d-ext { stroke: var(--steel); stroke-width: 1; fill: none; }
.d-center { stroke: var(--steel); stroke-width: 1; stroke-dasharray: 10 3 2 3; fill: none; }
.d-text { fill: var(--cobalt); font-family: var(--font); font-variation-settings: "wdth" 75; font-weight: 640; font-size: 17px; }
.d-text--steel { fill: var(--steel); font-weight: 500; font-size: 13px; }
.d-arrow { fill: var(--cobalt); }
.d-tb { fill: var(--surface); stroke: var(--line); }
.d-tb-text { fill: var(--steel); font-family: var(--font); font-variation-settings: "wdth" 75; font-size: 12px; }
.d-tb-strong { fill: var(--ink); font-weight: 650; font-size: 13px; }

/* The one orchestrated moment: the missing half is drawn, then measured. */
@media (prefers-reduced-motion: no-preference) {
  .js .d-new { stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; animation: draw 1.4s .35s cubic-bezier(.6,.05,.3,1) forwards, fill-in .6s 1.6s ease forwards; }
  .js .d-dims { opacity: 0; animation: fade-in .5s ease forwards; }
  .js .d-dims--1 { animation-delay: 1.9s; }
  .js .d-dims--2 { animation-delay: 2.2s; }
  .js .d-dims--3 { animation-delay: 2.5s; }
  .js .d-dims--4 { animation-delay: 2.8s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fill-in { to { fill-opacity: 1; } }
@keyframes fade-in { to { opacity: 1; } }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { max-width: 16ch; }
}

/* ---------- Facts band ---------- */
.facts { border-block: 1px solid var(--line); background: var(--surface); }
.facts dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.facts dl > div { padding: 1.5rem 1.4rem 1.5rem 0; }
.facts dl > div + div { padding-left: 1.4rem; border-left: 1px solid var(--line); }
.facts dt { font-size: var(--fs-small); color: var(--steel); }
.facts dd { margin: 0.15rem 0 0; font-weight: 680; font-size: 1.1875rem; font-variation-settings: "wdth" 108; line-height: 1.3; }
@media (max-width: 860px) {
  .facts dl { grid-template-columns: 1fr 1fr; }
  .facts dl > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts dl > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 420px) {
  .facts dl { grid-template-columns: 1fr; }
  .facts dl > div, .facts dl > div + div { padding: 1.1rem 0; border-left: 0; }
  .facts dl > div + div { border-top: 1px solid var(--line); }
}

/* ---------- Section heading ---------- */
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head p { color: var(--steel); font-size: 1.125rem; }

/* ---------- Services split ---------- */
.services { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-media); overflow: hidden; }
.service img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.service-body { padding: clamp(1.4rem, 3vw, 2.2rem); }
.service--lead { border-top: 4px solid var(--cobalt); }
.service--lead h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); font-variation-settings: "wdth" 110; }
.service ul { margin: 1rem 0 1.5rem; }
.service .tag { display: inline-block; font-size: var(--fs-small); font-variation-settings: "wdth" 80; font-weight: 600; color: var(--cobalt); margin-bottom: 0.5rem; }
@media (max-width: 860px) { .services { grid-template-columns: 1fr; } }

/* ---------- Typical parts ---------- */
.parts-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.parts-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 2rem; }
.parts-list li { break-inside: avoid; padding: 0.7rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.parts-list strong { display: block; font-variation-settings: "wdth" 106; }
.parts-list span { font-size: var(--fs-small); color: var(--steel); }
.photo-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.photo-stack figure { margin: 0; }
.photo-stack img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-media); }
.photo-stack .tall { grid-row: span 2; }
/* One photo (until real before/after photos exist): fill the column at a portrait-ish ratio. */
.photo-stack:has(> figure:only-child) { grid-template-columns: 1fr; }
.photo-stack > figure:only-child img { aspect-ratio: 4 / 3.4; }
.photo-stack figcaption { font-size: 0.8125rem; color: var(--steel); margin-top: 6px; }
@media (max-width: 860px) {
  .parts-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .parts-list { columns: 1; } }

/* ---------- Process (a real sequence) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 3.2rem 1.5rem 0 0; margin: 0; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 2.2rem; height: 2.2rem; display: grid; place-items: center;
  border: 2px solid var(--cobalt); border-radius: 50%;
  font-weight: 700; color: var(--cobalt); background: var(--paper);
  z-index: 1;
}
.steps li::after { content: ""; position: absolute; top: 1.1rem; left: 2.2rem; right: 0; border-top: 1.5px dashed var(--line); }
.steps li:last-child::after { display: none; }
.section--surface .steps li::before { background: var(--surface); }
.steps h3 { margin-bottom: 0.4rem; }
.steps p { font-size: var(--fs-small); color: var(--steel); }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 0 0 2rem 3.6rem; }
  .steps li::after { top: 2.2rem; bottom: 0; left: 1.1rem; right: auto; border-top: 0; border-left: 1.5px dashed var(--line); }
}

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-media); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); min-width: 620px; }
caption { text-align: left; padding: 1rem 1.2rem; color: var(--steel); caption-side: bottom; border-top: 1px solid var(--line); }
th, td { text-align: left; padding: 0.9rem 1.2rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-weight: 650; background: color-mix(in srgb, var(--cobalt) 6%, var(--surface)); font-variation-settings: "wdth" 90; }
tbody th { font-weight: 680; font-variation-settings: "wdth" 106; white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td.price { white-space: nowrap; font-weight: 650; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.pricing aside { border-left: 3px solid var(--cobalt); padding-left: 1.4rem; }
.pricing aside h3 { font-size: 1.125rem; }
.pricing aside ul { padding-left: 1.1em; color: var(--steel); font-size: var(--fs-small); }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } }

/* ---------- Area ---------- */
.area { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(2rem, 5vw, 5rem); }
.communes { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.communes li { margin: 0; padding: 0.35rem 0.75rem; border: 1px solid var(--line); border-radius: 999px; font-size: var(--fs-small); background: var(--surface); }
@media (max-width: 860px) { .area { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.2rem 2.5rem 1.2rem 0; position: relative;
  font-weight: 640; font-size: 1.125rem; font-variation-settings: "wdth" 104;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px;
  border-right: 2px solid var(--cobalt); border-bottom: 2px solid var(--cobalt);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { color: var(--cobalt); }
.faq .answer { padding: 0 0 1.4rem; color: var(--steel); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Contact / quote form ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-direct { list-style: none; padding: 0; margin: 1.8rem 0 0; }
.contact-direct li { padding: 1rem 0; border-top: 1px solid var(--line); margin: 0; }
.contact-direct span { display: block; font-size: var(--fs-small); color: var(--steel); }
.contact-direct a { font-weight: 640; font-size: 1.125rem; text-decoration: none; }
.contact-direct a:hover { text-decoration: underline; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

.quote-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-media); padding: clamp(1.4rem, 3vw, 2.4rem); }
.field { margin-bottom: 1.2rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
label, .label { display: block; font-weight: 600; margin-bottom: 0.35rem; font-size: var(--fs-small); }
.optional { font-weight: 400; color: var(--steel); }
.hint { font-size: 0.8125rem; color: var(--steel); margin: 0.3rem 0 0; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-control);
  padding: 0.75rem 0.85rem;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--cobalt-wash); }
input[type="file"] { font: inherit; font-size: var(--fs-small); width: 100%; padding: 0.9rem; border: 1.5px dashed var(--line); border-radius: var(--radius-control); background: var(--paper); }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 0.3rem; width: 1.05rem; height: 1.05rem; accent-color: var(--cobalt); flex: none; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--fracture); }
.error-msg { color: var(--fracture); font-size: 0.875rem; margin: 0.35rem 0 0; }
.form-status { margin-top: 1rem; padding: 1rem 1.1rem; border-radius: var(--radius-control); font-size: var(--fs-small); }
.form-status[hidden] { display: none; }
.form-status.is-ok { background: color-mix(in srgb, var(--ok) 12%, var(--surface)); border: 1px solid var(--ok); }
.form-status.is-error { background: color-mix(in srgb, var(--fracture) 10%, var(--surface)); border: 1px solid var(--fracture); }
.hp { position: absolute; left: -9999px; }

/* ---------- Sub-pages ---------- */
.page-hero { padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0 clamp(2rem, 3vw, 3rem); }
.page-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.page-hero h1 { font-size: clamp(2.2rem, 1.3rem + 3.4vw, 3.6rem); }
.page-hero img { border-radius: var(--radius-media); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (max-width: 860px) { .page-hero .wrap { grid-template-columns: 1fr; } }
.breadcrumb { font-size: var(--fs-small); color: var(--steel); margin-bottom: 1.2rem; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: var(--line); }
.breadcrumb a { color: var(--steel); }

.prose > * { max-width: 760px; }
.prose h2 { margin-top: 2.6rem; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.two-col > div { background: var(--surface); border: 1px solid var(--line); padding: 1.5rem; border-radius: var(--radius-media); }
.two-col h3 { margin-top: 0; }
.two-col .no { border-top: 3px solid var(--fracture); }
.two-col .yes { border-top: 3px solid var(--ok); }
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }

.cta-band { background: var(--ink); color: var(--paper); padding: clamp(3rem, 6vw, 5rem) 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.cta-band h2 { margin: 0; max-width: 22ch; }
.cta-band p { color: color-mix(in srgb, var(--paper) 75%, var(--ink)); margin: 0.6rem 0 0; }
.cta-band .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cta-band .btn:hover { background: var(--cobalt-wash); border-color: var(--cobalt-wash); }

/* ---------- Footer ---------- */
.site-footer { padding: 3.5rem 0 2.5rem; font-size: var(--fs-small); color: var(--steel); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h2 { font-size: 1rem; font-variation-settings: "wdth" 100; color: var(--ink); margin-bottom: 0.8rem; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: var(--steel); }
.site-footer a:hover { color: var(--cobalt); }
.site-footer address { font-style: normal; }
.footer-legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Print ---------- */
@media print {
  .site-header, .nav, .hero-actions, .quote-form, .cta-band { display: none !important; }
  body { background: #fff; color: #000; }
}
table.compact { min-width: 0; }
table.compact tbody th { white-space: normal; width: 34%; }

/* Performance: let the browser skip layout/paint of off-screen sections until they're scrolled near. */
main > .section, main > .cta-band, .site-footer { content-visibility: auto; contain-intrinsic-size: auto 900px; }

/* Small phones: keep brand on one line; menu button becomes icon-only (text stays for screen readers) */
.brand { white-space: nowrap; }
@media (max-width: 420px) {
  .site-header .wrap { gap: 0.5rem; }
  .nav-toggle { font-size: 0; padding: 9px 10px; }
  .nav-toggle svg { width: 18px; height: 18px; }
}
