/* =============================================================================
   Voksera — styles.css
   A single, dependency-free stylesheet. Mobile-first.

   Contents
   1.  Fonts (self-hosted — see /fonts, no third-party CDN for GDPR reasons)
   2.  Design tokens (:root)
   3.  Reset & base
   4.  Typography
   5.  Layout primitives (container, section, eyebrow, rules)
   6.  Buttons & links
   7.  Site header / navigation + mobile menu
   8.  Hero
   9.  Content sections (what / why / how / services / about)
   10. Contact + form
   11. Footer
   12. Accessibility helpers & reduced motion
   ========================================================================== */

/* 1. Fonts ----------------------------------------------------------------- */
/* Self-hosted on purpose: loading fonts from Google's CDN transmits visitor
   IP addresses to Google and is a known GDPR problem in Germany. These files
   live in /fonts and are served from the same origin — no third-party calls. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;            /* variable font: covers all weights */
  font-display: swap;
  src: url("../fonts/inter-variable.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-400.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-400-italic.woff2") format("woff2");
}

/* 2. Design tokens --------------------------------------------------------- */
:root {
  /* Colour — warm, light, editorial. One restrained near-black accent. */
  --paper:        #f6f2eb;   /* page background: warm off-white / beige     */
  --paper-2:      #fffdf9;   /* raised surfaces: cards, inputs              */
  --sand:         #ece4d6;   /* subtle alternate fill                       */
  --ink:          #1a1713;   /* near-black (warm): headlines, buttons       */
  --ink-soft:     #2c2823;   /* body copy                                   */
  --muted:        #5e574b;   /* labels, captions, secondary text            */
  --line:         #ddd4c5;   /* hairlines                                   */
  --line-strong:  #c7bca9;

  /* On the dark footer */
  --paper-dim:    rgba(246, 242, 235, 0.62);
  --line-invert:  rgba(246, 242, 235, 0.16);

  /* Type */
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino,
           Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
           Helvetica, Arial, sans-serif;

  /* Spacing & metrics */
  --container:        72rem;   /* 1152px */
  --container-narrow: 46rem;   /* 736px  */
  --gutter:  clamp(1.25rem, 5vw, 2.75rem);
  --section: clamp(4.5rem, 11vw, 9rem);
  --header-h: 4.5rem;
  --radius: 3px;

  /* Fluid type scale */
  --fs-display: clamp(2.85rem, 1.7rem + 5.6vw, 6rem);
  --fs-h1:      clamp(2.4rem, 1.6rem + 3.6vw, 4.25rem);
  --fs-h2:      clamp(1.95rem, 1.4rem + 2.4vw, 3.1rem);
  --fs-h3:      clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem);
  --fs-lead:    clamp(1.15rem, 1.02rem + 0.6vw, 1.4rem);
  --fs-body:    clamp(1rem, 0.97rem + 0.18vw, 1.1rem);
  --fs-small:   0.875rem;
  --fs-eyebrow: 0.78rem;
  --numeral:    clamp(2.5rem, 1.8rem + 3vw, 3.75rem);
}

/* 3. Reset & base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

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

body {
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;            /* belt-and-braces against side scroll */
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "calt";
}

img, svg, video { display: block; max-width: 100%; height: auto; }

/* Anything we jump to clears the sticky header */
[id] { scroll-margin-top: calc(var(--header-h) + clamp(0.5rem, 2vw, 1.5rem)); }

/* 4. Typography ------------------------------------------------------------ */
h1, h2, h3, h4 {
  font-weight: 400;
  line-height: 1.08;
  color: var(--ink);
  overflow-wrap: break-word;
}

.display {
  font-family: var(--serif);
  font-size: var(--fs-display);
  line-height: 1.0;
  letter-spacing: -0.01em;
}

h1 { font-family: var(--serif); font-size: var(--fs-h1); letter-spacing: -0.01em; line-height: 1.04; }
h2 { font-family: var(--serif); font-size: var(--fs-h2); letter-spacing: -0.005em; line-height: 1.06; }
h3 { font-family: var(--sans); font-size: var(--fs-h3); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }

p { overflow-wrap: break-word; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-soft);
}

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

strong, b { font-weight: 600; }
em { font-style: italic; }

/* 5. Layout primitives ----------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--hairline { border-top: 1px solid var(--line); }
.section--sand { background: var(--sand); }

/* Eyebrow / kicker label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--line-strong);
}
.eyebrow--index { font-variant-numeric: tabular-nums; }

/* Section header block (label + heading), used across pages */
.section-head { max-width: 38ch; }
.section-head .eyebrow { margin-bottom: 1.25rem; }
.section-head h2 + p { margin-top: 1.25rem; }

.hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin-block: 0;
}

/* 6. Buttons & links ------------------------------------------------------- */
a { color: inherit; }

.text-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--line-strong);
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}
.text-link:hover { text-decoration-color: currentColor; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 3rem;                 /* comfortable tap target */
  padding: 0.9em 1.7em;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease,
              color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
  background: #322c25;
  border-color: #322c25;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -12px rgba(26, 23, 19, 0.55);
}
.btn:active { transform: translateY(0); }

.btn--ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line-strong);
  box-shadow: none;
}
.btn--ghost:hover {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: none;
}

.btn--block { width: 100%; }

.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* Inline "→" link used under sections */
.cta-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.cta-inline .arrow { transition: transform 0.2s ease; }
.cta-inline:hover .arrow { transform: translateX(4px); }
.cta-inline span:first-child {
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}
.cta-inline:hover span:first-child { border-color: var(--ink); }

/* 7. Header / nav ---------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);   /* fallback for browsers without color-mix */
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
}

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

.brand {
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  padding-block: 0.25rem;        /* taller hit area */
}
.brand:hover { color: var(--ink); }

.nav-links {
  display: none;                 /* hidden on mobile; shown ≥768px */
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  list-style: none;
  padding: 0;
}
.nav-links a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding-block: 0.5rem;
  position: relative;
  transition: color 0.2s ease;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.15rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links a:not(.btn):hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links .btn { padding: 0.65em 1.25em; min-height: 2.6rem; }

/* Hamburger */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  margin-inline: auto;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
body.menu-open { overflow: hidden; }   /* lock background scroll while menu is open */
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2.5rem;
  background: var(--paper);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.5rem);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0s linear 0.28s;
  overflow-y: auto;
}
body.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.mobile-menu nav { display: flex; flex-direction: column; flex: 1 1 auto; }
.mobile-menu ul { list-style: none; padding: 0; }
.mobile-menu .menu-links a {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2rem, 9vw, 2.75rem);
  line-height: 1.1;
  color: var(--ink);
  text-decoration: none;
  padding: 0.4em 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .menu-footer {
  margin-top: auto;
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: var(--fs-small);
  color: var(--muted);
}
.mobile-menu .menu-footer a { color: var(--muted); text-decoration: none; }
.mobile-menu .menu-footer a:hover { color: var(--ink); }
.mobile-menu .btn { margin-top: 1.75rem; }

/* 8. Hero ------------------------------------------------------------------ */
.hero { padding-block: clamp(3.5rem, 9vw, 7.5rem) var(--section); }
.hero .eyebrow { margin-bottom: 1.5rem; }
.hero h1 {
  font-family: var(--serif);
  font-size: var(--fs-display);
  line-height: 1.0;
  letter-spacing: -0.015em;
  max-width: 16ch;
}
.hero .lead {
  margin-top: 1.75rem;
  max-width: 46ch;
  color: var(--ink-soft);
}
.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}
.hero-meta {
  margin-top: clamp(3rem, 8vw, 5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  color: var(--muted);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 0.6em; }
.hero-meta span::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--line-strong);
}

/* 9. Content sections ------------------------------------------------------ */

/* Generic two-column "label left / content right" editorial split */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}
.split__aside .lead { margin-top: 1.25rem; }
.split__body > * + * { margin-top: 1.25rem; }

/* Inline list of inclusions */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
}
.tags li {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink);
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
}

/* "Why" — numbered editorial columns */
.why-grid {
  display: grid;
  gap: clamp(2.25rem, 5vw, 3rem);
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.why-item { display: flex; flex-direction: column; gap: 0.9rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.why-item h3 { color: var(--ink); }
.why-item p { color: var(--ink-soft); }

/* "How it works" — numbered steps */
.steps {
  display: grid;
  gap: clamp(2rem, 4vw, 2.5rem);
  margin-top: clamp(2.5rem, 6vw, 4rem);
  list-style: none;
  padding: 0;
  margin-left: 0;
}
.step { padding-top: 1.5rem; border-top: 1px solid var(--ink); }
.step .num {
  font-family: var(--serif);
  font-size: var(--numeral);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  display: block;
  margin-bottom: 1rem;
}
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--ink-soft); }

/* Services — offering rows */
.offer {
  display: grid;
  gap: 0;
  margin-top: clamp(2rem, 5vw, 3rem);
}
.offer__row {
  display: grid;
  gap: 0.6rem 3rem;
  padding-block: clamp(1.75rem, 4vw, 2.5rem);
  border-top: 1px solid var(--line);
}
.offer__row:last-child { border-bottom: 1px solid var(--line); }
.offer__row .num {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  padding-top: 0.35rem;
}
.offer__row h3 { color: var(--ink); }
.offer__row p { color: var(--ink-soft); max-width: 56ch; }

/* Generic prose block (about, legal) */
.prose { max-width: var(--container-narrow); }
.prose > * + * { margin-top: 1.25rem; }
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 2rem; margin-bottom: -0.25rem; }
.prose h4 { margin-top: 1.5rem; margin-bottom: -0.5rem; font-family: var(--sans); font-weight: 600; font-size: 1.05rem; line-height: 1.4; color: var(--ink); }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.5rem; }
.prose a { color: var(--ink); text-underline-offset: 0.18em; }

/* About — signature */
.signature {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--ink);
  margin-top: 2.5rem;
}
.signature span { display: block; font-style: normal; font-size: var(--fs-small); font-family: var(--sans); color: var(--muted); margin-top: 0.35rem; letter-spacing: 0.04em; }

/* Pull quote */
.pullquote {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.6rem);
  line-height: 1.18;
  color: var(--ink);
  max-width: 22ch;
}

/* 10. Contact + form ------------------------------------------------------- */
.contact-grid { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); align-items: start; }
.contact-aside .lead { margin-top: 1.25rem; max-width: 34ch; }
.contact-direct {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.contact-direct .label {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 0.5rem;
}
.contact-direct a {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.1rem + 1.4vw, 1.9rem);
  color: var(--ink);
  text-decoration: none;
  word-break: break-word;
}
.contact-direct a:hover { text-decoration: underline; text-underline-offset: 0.15em; }

.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; gap: 1.1rem; }   /* fields stack on mobile, side-by-side on wide screens */
.field { display: grid; gap: 0.4rem; }
.field label {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink);
}
.field label .req { color: var(--muted); font-weight: 400; }
.field input,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.8rem 0.95rem;
  font-family: var(--sans);
  font-size: 1rem;            /* ≥16px stops iOS zoom-on-focus */
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #9a9082; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(26, 23, 19, 0.12);
}
.form .btn { margin-top: 0.5rem; width: 100%; }   /* full-width on mobile; becomes auto ≥768px */

/* Honeypot — hide from humans, leave for bots (clip pattern: no off-screen overflow) */
.hp {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Form status message (shown by JS) */
.form-status {
  margin-top: 0.25rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  font-size: var(--fs-small);
  line-height: 1.5;
  border: 1px solid var(--line);
}
.form-status[hidden] { display: none; }
.form-status.is-success { background: #eef3ec; border-color: #c9d8c2; color: #2f4a2c; }
.form-status.is-error   { background: #f7eee9; border-color: #e2c7b8; color: #6b3a25; }
.form-status.is-info    { background: var(--paper-2); border-color: var(--line-strong); color: var(--ink-soft); }

/* 11. Footer --------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
}
.footer-top {
  display: grid;
  gap: clamp(2.5rem, 6vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 3.5rem);
  border-bottom: 1px solid var(--line-invert);
}
.footer-brand .brand-mark {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--paper);
  letter-spacing: 0.01em;
}
.footer-brand p {
  margin-top: 1rem;
  max-width: 30ch;
  color: var(--paper-dim);
  font-size: var(--fs-small);
  line-height: 1.6;
}
.footer-brand .footer-email {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--paper);
  text-decoration: none;
  word-break: break-word;
}
.footer-brand .footer-email:hover { text-decoration: underline; text-underline-offset: 0.15em; }

.footer-cols { display: grid; gap: 2.5rem; }
.footer-col h4 {
  font-family: var(--sans);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-dim);
  margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 0.7rem; }
.footer-col a {
  color: var(--paper);
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.footer-col a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 0.18em; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-size: var(--fs-small);
  color: var(--paper-dim);
}
.footer-bottom > span:last-child { color: var(--paper-dim); }

/* Build note callout on template (legal) pages */
.build-note {
  display: flex;
  gap: 0.75rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
  padding: 1rem 1.15rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper-2);
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--muted);
}
.build-note strong { color: var(--ink); }
.placeholder {
  background: #fbf0d8;
  border-bottom: 1px dashed #cda94a;
  padding: 0 0.2em;
  font-style: normal;
  color: #6b531a;
  overflow-wrap: break-word;   /* long placeholder sentences must wrap, never overflow */
}

/* Centered call-to-action band (sub-pages) */
.cta-band {
  max-width: 48rem;
  margin-inline: auto;
  text-align: center;
  display: grid;
  gap: 1.25rem;
  justify-items: center;
}
.cta-band .lead { max-width: 44ch; }

.page-head { padding-block: clamp(3.5rem, 9vw, 6rem) clamp(2rem, 5vw, 3rem); }
.page-head .eyebrow { margin-bottom: 1.25rem; }
.page-head h1 { max-width: 18ch; }
.page-head .lead { margin-top: 1.5rem; max-width: 50ch; }

/* 12. Accessibility helpers ------------------------------------------------ */
.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -100%;
  z-index: 200;
  padding: 0.75rem 1.1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0.5rem; }

.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;
}

:where(a, button, input, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 2px;
}
.site-footer :focus-visible { outline-color: var(--paper); }

/* =============================================================================
   Responsive — mobile-first; the rules above are the small-screen baseline.
   ========================================================================== */

/* ≥600px — small tablets / large phones landscape */
@media (min-width: 600px) {
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 22rem; }
  .offer__row { grid-template-columns: auto 1fr; }
}

/* ≥768px — tablet: real nav appears, layouts go multi-column */
@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-links { display: flex; }
  .mobile-menu { display: none; }

  .split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); }
  .split__aside { position: sticky; top: calc(var(--header-h) + 2rem); }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .contact-aside { position: sticky; top: calc(var(--header-h) + 2rem); }
  .form .btn { width: auto; justify-self: start; padding-inline: 2.25rem; }

  .footer-top { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
}

/* ≥1024px — laptop: widest layouts */
@media (min-width: 1024px) {
  .why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .form-row { grid-template-columns: 1fr 1fr; }
}

/* ≥1440px — large desktop: a touch more air, container already capped */
@media (min-width: 1440px) {
  :root { --section: clamp(6rem, 9vw, 10rem); }
}

/* Hover-capable pointers only — avoid sticky-hover on touch */
@media (hover: none) {
  .btn:hover { transform: none; box-shadow: none; background: var(--ink); border-color: var(--ink); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
