﻿/* ==========================================================================
   Trimano — site styles
   Port of the Claude Design source (Trimano.dc.html). The design expressed
   everything as inline styles; this is the same visual system expressed as
   tokens + classes.

   Colour: the design is authored in oklch. Hex equivalents are the base
   declaration and oklch is layered on inside @supports — custom properties are
   validated at use time, not declaration time, so the usual "declare twice"
   fallback does NOT work for them and @supports is required.

   Three tokens were darkened from the source to clear WCAG AA on small text
   (--label was 0.60/0.62 lightness, --muted-4 was 0.55). The decorative card
   numerals keep their original pale tone and are aria-hidden instead.
   ========================================================================== */

/* --------------------------------------------------------------- tokens -- */
:root {
  --paper: #fbf7f0;
  --card: #ffffff;
  --sand: #faf0e3;
  --sand-deep: #f9eddd;
  --badge: #f4e6d2;
  --espresso: #3f2f24;
  --espresso-dark: #2a1b11;

  --ink: #30271f;
  --ink-soft: #40362e;
  --ink-recruit: #4b4038;
  --body: #564b42;
  --body-2: #5b5048;
  --body-3: #5e534a;
  --body-4: #61564d;
  --muted: #665b53;
  --muted-2: #6c6158;
  --muted-3: #72665e;
  --muted-4: #786c63;
  --label: #786c63;

  --accent: #9a633b;
  --accent-deep: #66442c;
  --accent-dark: #412714;
  --accent-mid: #905a33;
  --accent-badge: #613f27;
  /* Decorative card numerals. aria-hidden, so WCAG exempts them — but axe-core still
     flags rendered text, and the dark-card counterpart already sits at 3.19:1, so this
     is held to the same 3:1 bar rather than documented as an exclusion. */
  --numeral: #ab8f75;

  --line: #d8cbc1;
  --line-strong: #7f6e60;
  --line-input: #dfd5ce;
  /* Borders that IDENTIFY a control (text fields, unselected chips, ghost buttons) must
     clear 3:1 per WCAG 1.4.11. The design's --line-input is 1.44:1, which is fine for a
     decorative divider but leaves a form field findable only by its placeholder. */
  --line-ui: #998d83;
  --line-menu: #ebe3dd;
  --line-panel: #e6dcd4;
  --line-calc: #e7dcd0;

  --on-dark: #e1d5ca;
  --on-dark-soft: #c5b4a4;
  --on-dark-label: #c0a994;
  --on-dark-mute: #ac9b8b;
  --on-dark-num: #9b785c;

  --serif: Newsreader, "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --shell: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-gap: clamp(60px, 8vw, 96px);
  --header-h: 92px;
}

@supports (color: oklch(0 0 0)) {
  :root {
    --sand: oklch(0.96 0.02 75);
    --sand-deep: oklch(0.95 0.025 75);
    --badge: oklch(0.93 0.03 75);
    --espresso: oklch(0.32 0.03 55);
    --espresso-dark: oklch(0.24 0.03 55);

    --ink: oklch(0.28 0.02 60);
    --ink-soft: oklch(0.34 0.02 60);
    --ink-recruit: oklch(0.38 0.02 60);
    --body: oklch(0.42 0.02 60);
    --body-2: oklch(0.44 0.02 60);
    --body-3: oklch(0.45 0.02 60);
    --body-4: oklch(0.46 0.02 60);
    --muted: oklch(0.48 0.02 60);
    --muted-2: oklch(0.5 0.02 60);
    --muted-3: oklch(0.52 0.02 60);
    --muted-4: oklch(0.54 0.02 60);
    --label: oklch(0.54 0.02 60);

    --accent: oklch(0.55 0.09 55);
    --accent-deep: oklch(0.42 0.06 55);
    --accent-dark: oklch(0.3 0.05 55);
    --accent-mid: oklch(0.52 0.09 55);
    --accent-badge: oklch(0.4 0.06 55);
    --numeral: oklch(0.67 0.05 65);

    --line: oklch(0.85 0.02 60);
    --line-strong: oklch(0.55 0.03 60);
    --line-input: oklch(0.88 0.015 60);
    --line-ui: oklch(0.65 0.02 60);
    --line-menu: oklch(0.92 0.012 60);
    --line-panel: oklch(0.9 0.015 60);
    --line-calc: oklch(0.9 0.02 70);

    --on-dark: oklch(0.88 0.02 65);
    --on-dark-soft: oklch(0.78 0.03 65);
    --on-dark-label: oklch(0.75 0.04 65);
    --on-dark-mute: oklch(0.7 0.03 65);
    --on-dark-num: oklch(0.6 0.06 60);
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
/* <picture> is inline by default, which would leave descender space under every photo
   and stop it filling its grid cell. The <img> inside keeps its own sizing rules. */
picture { display: block; }

a { color: var(--accent-deep); text-decoration: none; }
a:hover { color: var(--accent-dark); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; margin: 0; }

p { margin: 0; }

button { font: inherit; }

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
/* --accent on --espresso is only 2.57:1, so the ring would be invisible on the dark
   contact panel and the dark solution card. Paper gives 11.97:1 there. (SC 1.4.11) */
.contact :focus-visible,
.solution--dark :focus-visible { outline-color: var(--paper); }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 12px 20px; border-radius: 0 0 12px 12px;
  background: var(--espresso); color: var(--paper); font-size: 15px; font-weight: 500;
  transition: top 140ms ease;
}
.skip-link:focus { top: 0; color: var(--paper); }

.shell { max-width: var(--shell); margin-inline: auto; }

.section { padding: 0 var(--gutter) var(--section-gap); }
.section--anchor { scroll-margin-top: var(--header-h); }

.eyebrow {
  font-size: 13.5px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}

.section-head { text-align: center; margin-bottom: clamp(30px, 4vw, 44px); }
.section-head h2 {
  font-size: clamp(30px, 3.4vw, 42px); line-height: 1.12;
  margin-inline: auto; max-width: 22ch; text-wrap: balance;
}

/* --------------------------------------------------------------- reveal -- */
/* Content is only hidden under html.js, so a client that runs no JS at all sees
   everything. That is not the whole risk though: the far more common failure is
   "JS enabled, but site.js specifically did not run" — blocked, stale, or dropped
   from a rendering crawler's resource budget. site.js has its own 4s failsafe, but
   that lives in the very file that failed. trimanoFailsafe below is pure CSS and so
   survives independently: if nothing has revealed an element after 3s, it fades in
   regardless. Without it, a single failed request renders a blank page to Googlebot. */
@keyframes trimanoReveal {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
@keyframes trimanoFailsafe {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.js [data-reveal] {
  opacity: 0;
  animation: trimanoFailsafe 400ms linear 3s both;
}
.js [data-reveal].is-in {
  /* replaces the failsafe animation entirely */
  animation: trimanoReveal 700ms cubic-bezier(0.22, 0.7, 0.3, 1) both;
  animation-delay: var(--reveal-delay, 0ms);
}
/* animation:none is required — a filled animation outranks a plain opacity value. */
.js [data-reveal].is-shown { opacity: 1; animation: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1 !important; animation: none !important; transform: none !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* -------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  white-space: nowrap; border-radius: 999px; font-family: var(--sans);
  font-weight: 500; cursor: pointer; border: 1px solid transparent;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn--primary { background: var(--espresso); color: var(--paper); }
.btn--primary:hover { background: var(--espresso-dark); color: var(--paper); }
.btn--ghost { border-color: var(--line-ui); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--line-strong); color: var(--ink); }
.btn--lg { padding: 16px 28px; font-size: 15.5px; }
.btn--sm { padding: 12px 22px; font-size: 14.5px; }

/* --------------------------------------------------------------- header -- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: nowrap;
  padding: 14px clamp(18px, 4vw, 40px);
  background: rgb(251 247 240 / 0.94);
}
@supports (backdrop-filter: blur(12px)) {
  .site-header { backdrop-filter: blur(12px); }
}

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 20px; width: auto; }

.nav ul {
  display: flex; gap: clamp(14px, 2vw, 30px);
  margin: 0; padding: 0; list-style: none; flex-wrap: nowrap;
}
.nav a { font-size: 14.5px; color: var(--body); white-space: nowrap; }
.nav a:hover { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.burger {
  display: none; flex-direction: column; gap: 4px;
  align-items: center; justify-content: center;
  width: 42px; height: 42px; padding: 0;
  border-radius: 999px; border: 1px solid var(--line-input);
  background: var(--card); cursor: pointer;
}
.burger span { width: 18px; height: 1.5px; background: var(--ink); display: block; }

.mobile-panel {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  flex-direction: column; padding: 8px clamp(18px, 4vw, 40px) 18px;
  background: var(--paper); border-bottom: 1px solid var(--line-panel);
}
.mobile-panel.is-open { display: flex; }
.mobile-panel ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mobile-panel a {
  display: block;
  padding: 12px 0; font-size: 16px; color: var(--ink-soft);
  border-bottom: 1px solid var(--line-menu);
}
.mobile-panel li:last-child a { border-bottom: 0; }

@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: flex; }
  .header-actions .btn { padding: 10px 16px; font-size: 13.5px; }
}

/* Below ~420px the logo, the CTA pill and the burger cannot share one row without
   pushing the page wider than the viewport. Drop the header CTA: the burger menu
   still reaches Kontakt, and the hero's own "Find jeres løsning" button sits just
   below the fold-line anyway. */
@media (max-width: 420px) {
  .header-actions .btn { display: none; }
}

/* ----------------------------------------------------------------- hero -- */
.hero {
  scroll-margin-top: var(--header-h);
  padding: clamp(40px, 6vw, 70px) var(--gutter) clamp(56px, 7vw, 80px);
}
.hero__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; border-radius: 999px; background: var(--badge);
  font-size: 13.5px; font-weight: 500; color: var(--accent-badge); margin-bottom: 26px;
}
.pill__dot { width: 7px; height: 7px; border-radius: 999px; background: var(--accent); display: block; }

.hero h1 {
  font-size: clamp(38px, 5.4vw, 66px); line-height: 1.06;
  margin: 0 0 24px; text-wrap: balance;
}
.hero__lead {
  font-size: clamp(16.5px, 1.4vw, 18.5px); line-height: 1.65;
  color: var(--body-2); margin: 0 0 34px; max-width: 50ch; text-wrap: pretty;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 30px; }
.hero__note { font-size: 14px; color: var(--muted-4); }

.hero__figure { position: relative; margin: 0; }
.hero__figure img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 24px; filter: grayscale(1) sepia(0.12); background: var(--sand-deep);
}
.hero__stat {
  position: absolute; bottom: 22px; left: 22px; right: 22px;
  background: rgb(251 247 240 / 0.96); border-radius: 18px; padding: 16px 20px;
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
}
.hero__stat b { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1; }
.hero__stat span { font-size: 13.5px; color: var(--muted-2); line-height: 1.5; flex: 1; min-width: 140px; }

/* ---------------------------------------------------------------- steps -- */
.panel {
  background: var(--card); border-radius: 32px;
  padding: clamp(36px, 5vw, 64px) clamp(24px, 4vw, 56px);
}
.steps__head { text-align: center; margin-bottom: clamp(36px, 5vw, 56px); }
.steps__head h2 {
  font-size: clamp(30px, 3.4vw, 42px); line-height: 1.12;
  margin-inline: auto; max-width: 20ch; text-wrap: balance;
}
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: clamp(24px, 3vw, 28px); margin: 0; padding: 0; list-style: none; counter-reset: step;
}
.step { text-align: center; }
.step__icon {
  width: 130px; height: 130px; margin: 0 auto 22px; border-radius: 999px;
  background: var(--sand-deep); display: flex; align-items: center; justify-content: center;
}
.step__icon svg { width: 64px; height: 64px; }
.step__n {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--label); margin-bottom: 8px;
}
.step h3 { font-size: 22px; margin: 0 0 8px; }
.step p { font-size: 14.5px; line-height: 1.6; color: var(--muted-2); }

/* --------------------------------------------------------------- values -- */
.values {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(32px, 4vw, 56px); align-items: center;
}
.values__figure { border-radius: 28px; overflow: hidden; margin: 0; }
.values__figure img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  filter: grayscale(1) sepia(0.1); background: var(--sand-deep);
}
.values blockquote {
  font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.32;
  letter-spacing: -0.015em; margin: 0 0 24px;
}
.values__body { font-size: 16.5px; line-height: 1.7; color: var(--body-3); margin: 0 0 30px; }
.pillars {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 20px; margin: 0; padding: 0;
}
.pillar { background: var(--card); border-radius: 18px; padding: 22px 20px; }
.pillar dt { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.pillar dd { font-size: 13.5px; color: var(--muted-3); line-height: 1.55; margin: 0; }

/* ------------------------------------------------------------ solutions -- */
.solutions {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 22px; align-items: stretch; margin: 0; padding: 0; list-style: none;
}
.solution {
  background: var(--card); border-radius: 24px; padding: 34px 30px;
  display: flex; flex-direction: column;
}
.solution__n {
  font-family: var(--serif); font-size: 34px; color: var(--numeral);
  line-height: 1; margin-bottom: 18px;
}
.solution h3 { font-size: 25px; margin: 0 0 6px; }
.solution__kicker {
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--label); margin-bottom: 18px;
}
.solution p { font-size: 15px; line-height: 1.65; color: var(--body-4); margin: 0 0 20px; }
.solution__foot { margin-top: auto; font-size: 14px; color: var(--muted-3); line-height: 1.6; }

.solution--dark { background: var(--espresso); color: var(--paper); }
.solution--dark .solution__n { color: var(--on-dark-num); }
.solution--dark .solution__kicker { color: var(--on-dark-label); }
.solution--dark p { color: var(--on-dark); }
.solution--dark .solution__foot { color: var(--on-dark-soft); }

/* ------------------------------------------------------------ calculator -- */
.calc {
  background: var(--card); border-radius: 32px; padding: clamp(30px, 4vw, 56px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(32px, 4vw, 56px); align-items: center;
}
.calc h2 { font-size: clamp(27px, 3vw, 36px); line-height: 1.15; margin: 0 0 14px; }
.calc__lead { font-size: 16px; line-height: 1.65; color: var(--muted); margin: 0 0 30px; }

.calc__row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.calc__row label { font-size: 14.5px; font-weight: 500; }
.calc__value { font-family: var(--serif); font-size: 26px; }

.calc input[type="range"] { width: 100%; margin: 0 0 8px; accent-color: var(--accent-mid); }
.calc__bounds {
  display: flex; justify-content: space-between;
  font-size: 12.5px; color: var(--label); margin-bottom: 28px;
}
.calc__legend { font-size: 14.5px; font-weight: 500; margin-bottom: 12px; padding: 0; }
.calc__chips { display: flex; flex-wrap: wrap; gap: 10px; border: 0; margin: 0; padding: 0; min-width: 0; }
.chip {
  padding: 11px 18px; border-radius: 999px; font-size: 14.5px; font-weight: 500;
  cursor: pointer; transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
  /* --line-ui, not --line-input: the border is the only thing identifying an
     unselected radio here, so it has to clear 3:1. (SC 1.4.11) */
  background: var(--card); color: var(--ink-soft); border: 1px solid var(--line-ui);
}
.chip:hover { border-color: var(--line-strong); }
.chip[aria-checked="true"] { background: var(--espresso); color: var(--paper); border-color: var(--espresso); }

.calc__out {
  background: var(--sand); border-radius: 24px;
  padding: clamp(26px, 3vw, 36px) clamp(22px, 3vw, 32px); margin: 0;
}
.calc__out dl { margin: 0; }
.calc__line {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line-calc); font-size: 15px;
}
.calc__line:last-of-type { border-bottom: 0; }
.calc__line dt { color: var(--muted); margin: 0; }
.calc__line dd { font-weight: 700; margin: 0; text-align: right; }
.calc__note { margin-top: 18px; font-size: 13px; color: var(--muted-4); line-height: 1.55; }

/* ----------------------------------------------------------------- team -- */
.founder {
  background: var(--card); border-radius: 28px; overflow: hidden;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}
/* The <picture> is the grid item now, so it has to carry the full-height sizing —
   otherwise the image only grows to its intrinsic height and the card splits. */
.founder picture { height: 100%; min-height: 320px; }
.founder img {
  width: 100%; height: 100%; min-height: 320px; object-fit: cover;
  object-position: 60% 20%; filter: grayscale(1) sepia(0.1); background: var(--sand-deep);
}
.founder__body { padding: clamp(28px, 4vw, 46px); }
.founder__name { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 32px); margin-bottom: 4px; }
.role {
  font-size: 13.5px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 22px;
}
.founder__body p { font-size: 16.5px; line-height: 1.7; color: var(--body-3); margin: 0 0 16px; }
.founder__body p:last-child { margin-bottom: 0; }

.teammate {
  margin-top: 22px; background: var(--card); border-radius: 24px;
  padding: clamp(22px, 3vw, 30px);
  display: grid; grid-template-columns: 120px 1fr; gap: clamp(20px, 3vw, 32px); align-items: center;
}
.teammate img {
  width: 120px; height: 120px; border-radius: 999px; object-fit: cover;
  filter: grayscale(1) sepia(0.1); background: var(--sand-deep);
}
.teammate__name { font-family: var(--serif); font-size: 25px; margin-bottom: 3px; }
.teammate .role { font-size: 12.5px; margin-bottom: 14px; }
.teammate p { font-size: 15.5px; line-height: 1.65; color: var(--body-4); margin: 0 0 8px; }
.teammate p + p { font-size: 14.5px; line-height: 1.6; color: var(--muted-4); margin: 0; }
@media (max-width: 560px) {
  .teammate { grid-template-columns: 1fr; justify-items: start; }
}

.recruit {
  margin-top: 18px; background: var(--sand-deep); border-radius: 20px; padding: 22px 26px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
}
.recruit p { font-size: 15.5px; line-height: 1.6; color: var(--ink-recruit); max-width: 58ch; }
.recruit .btn { background: var(--paper); border-color: var(--line); color: var(--ink-soft); }
.recruit .btn:hover { border-color: var(--line-strong); }

/* ------------------------------------------------------------------ faq -- */
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq details {
  background: var(--card); border-radius: 18px;
  padding: 4px 26px; border: 1px solid transparent;
}
.faq details[open] { border-color: var(--line-input); }
.faq summary {
  font-family: var(--serif); font-size: 20px; line-height: 1.4;
  padding: 20px 34px 20px 0; cursor: pointer; position: relative; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%;
  width: 10px; height: 10px; margin-top: -7px;
  border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg); transition: transform 200ms ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq p { font-size: 15.5px; line-height: 1.7; color: var(--body-4); padding: 0 0 22px; }

/* -------------------------------------------------------------- contact -- */
.contact {
  background: var(--espresso); color: var(--paper); border-radius: 32px;
  padding: clamp(34px, 5vw, 60px) clamp(26px, 4vw, 56px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(34px, 4vw, 60px); align-items: start;
}
.contact h2 {
  font-size: clamp(32px, 3.6vw, 44px); line-height: 1.1;
  margin: 0 0 18px; max-width: 18ch; text-wrap: balance;
}
.contact__lead { font-size: 16.5px; line-height: 1.7; color: var(--on-dark); margin: 0 0 36px; max-width: 44ch; }
.contact__facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 24px; max-width: 480px; margin: 0;
}
.contact__facts dt {
  font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--on-dark-mute); margin-bottom: 6px;
}
.contact__facts dd { font-family: var(--serif); font-size: 24px; line-height: 1.3; margin: 0; }
.contact__facts a { color: var(--paper); }
.contact__facts a:hover { color: var(--on-dark); text-decoration: underline; }

/* ----------------------------------------------------------------- form -- */
.lead-form {
  background: var(--paper); color: var(--ink); border-radius: 24px;
  padding: clamp(26px, 3vw, 34px) clamp(22px, 3vw, 30px);
}
.lead-form__title { font-family: var(--serif); font-size: 25px; margin-bottom: 6px; }
.lead-form__sub { font-size: 14px; color: var(--muted-3); margin-bottom: 24px; }
.lead-form__fields { display: flex; flex-direction: column; gap: 12px; }

.lead-form input,
.lead-form textarea {
  padding: 14px 16px; border: 1px solid var(--line-ui); border-radius: 12px;
  background: var(--card); font-family: var(--sans); font-size: 15px;
  color: var(--ink); width: 100%;
  transition: border-color 160ms ease;
}
/* No `outline: none` here. It has specificity 0-1-1 and silently beat the global
   :focus-visible ring (0-1-0), leaving these five fields with no focus indicator at
   all — and under forced-colors the border tint disappears too. (SC 2.4.7) */
.lead-form textarea { resize: vertical; min-height: 96px; }
.lead-form input::placeholder, .lead-form textarea::placeholder { color: var(--muted-4); }
.lead-form input:focus, .lead-form textarea:focus { border-color: var(--accent); }
.lead-form input[aria-invalid="true"], .lead-form textarea[aria-invalid="true"] { border-color: #b3261e; }

.lead-form button[type="submit"] { margin-top: 6px; padding: 15px; font-size: 15px; width: 100%; }
/* aria-disabled rather than :disabled — see the note in site.js about focus loss. */
.lead-form button[aria-disabled="true"] { opacity: 0.65; cursor: progress; }

/* Honeypot: off-screen and hidden from assistive tech, but still fillable by bots. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.lead-form__privacy {
  margin-top: 16px; font-size: 12.5px; line-height: 1.6; color: var(--muted-4);
}
.form-error { font-size: 13.5px; color: #8c1d18; margin-top: 4px; }
.form-status { margin-top: 14px; font-size: 14.5px; line-height: 1.6; }
.form-status:empty { margin-top: 0; }
.form-status[data-state="ok"] { color: var(--accent-deep); }
.form-status[data-state="error"] { color: #8c1d18; }

/* ---------------------------------------------------------- error pages -- */
/* Used by 404.html and 500.html. These live here rather than in a <style> block on
   those pages because the CSP is style-src 'self' — an inline stylesheet is blocked
   and the page renders unstyled. */
.oops {
  min-height: 72vh; display: grid; place-items: center;
  padding: 40px var(--gutter); text-align: center;
}
.oops h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; margin: 0 0 18px; max-width: 18ch; }
.oops p { font-size: 17px; line-height: 1.7; color: var(--body-2); margin: 0 0 30px; max-width: 46ch; }
.oops .code {
  font-size: 13.5px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.oops .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.oops > div { display: grid; justify-items: center; }

/* --------------------------------------------------------------- footer -- */
.site-footer { padding: 0 var(--gutter) 40px; }
.site-footer__inner {
  max-width: var(--shell); margin-inline: auto;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13.5px; color: var(--muted-4); flex-wrap: wrap; gap: 14px;
}
.site-footer img { height: 18px; width: auto; }
.site-footer a { color: var(--muted-4); }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

@media print {
  .site-header, .burger, .mobile-panel, .hero__actions, .lead-form { display: none !important; }
  body { background: #fff; }
}
