/*
 * unvalid.tech — HandiGuide showcase site
 * Art direction: "civic poster" — editorial grotesque display type, ink and
 * paper, a single signal yellow. Independent from the product design system.
 * Fonts are self-hosted (SIL OFL 1.1, licences in /fonts).
 */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-variable.woff2") format("woff2-variations"),
       url("/fonts/bricolage-grotesque-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-next-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}

:root {
  /* Colour */
  --ink: #101826;
  --ink-2: #1b2638;
  --paper: #f4efe4;
  --cream: #fbf8f1;
  --signal: #ffcf33;
  --tomato: #e4462b;          /* decorative only: never used for text */
  --muted: #3a4352;           /* secondary text on paper, ≥ 7:1 */
  --muted-on-ink: #c9cfda;    /* secondary text on ink, ≥ 7:1 */
  --rule: rgba(16, 24, 38, 0.18);
  --rule-on-ink: rgba(244, 239, 228, 0.22);

  /* Type */
  --display: "Bricolage Grotesque", "Atkinson Hyperlegible Next", sans-serif;
  --text: "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Layout */
  --content: 76rem;
  --gutter: 16px;
  --radius: 14px;

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --fast: 180ms;

  /* Paper grain, inline SVG noise */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1200px) { :root { --gutter: 48px; } }

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}

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

p { margin: 0 0 1rem; }

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 4px; }

:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--signal);
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.mono {
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.02em;
}

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

/* ───────── Skip link ───────── */
.skip-link {
  position: absolute;
  z-index: 100;
  left: var(--gutter);
  top: -100px;
  padding: 0.75rem 1.25rem;
  min-height: 44px;
  background: var(--signal);
  color: var(--ink);
  font-weight: 700;
  border-radius: 10px;
}
.skip-link:focus { top: 0.75rem; }

/* ───────── Masthead ───────── */
.masthead {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--rule-on-ink);
}
.masthead__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 0.75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 44px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand__mark { width: 36px; height: 36px; transition: transform var(--fast) var(--ease-out); }
.brand:hover .brand__mark { transform: rotate(-8deg); }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.75rem;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 999px;
  transition: background-color var(--fast), color var(--fast);
}
.nav a:hover { background: var(--ink-2); text-decoration: underline; }
.nav__cta { background: var(--signal); color: var(--ink); }
.nav a.nav__cta:hover { background: var(--paper); color: var(--ink); }
.nav__lang { border: 2px solid var(--rule-on-ink); }
@media (max-width: 699px) {
  .nav__section { display: none; }
}

/* ───────── Hero ───────── */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60rem 30rem at 85% 10%, rgba(255, 207, 51, 0.13), transparent 60%),
    radial-gradient(40rem 30rem at -10% 110%, rgba(228, 70, 43, 0.18), transparent 60%),
    var(--ink);
  color: var(--paper);
  padding-block: clamp(3rem, 8vw, 7rem) clamp(3.5rem, 8vw, 7rem);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--rule-on-ink) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule-on-ink) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 70%);
  opacity: 0.35;
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1000px) {
  .hero__grid { grid-template-columns: 1.35fr 1fr; gap: 4rem; }
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.5rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--rule-on-ink);
  border-radius: 999px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--paper);
}
.dot {
  width: 0.625rem; height: 0.625rem;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(255, 207, 51, 0.25);
}

.hero__title {
  margin: 0 0 1.75rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.75rem, 1.2rem + 7.2vw, 6.75rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-variation-settings: "opsz" 96;
}
.hero__title .line { display: block; }
.hero__title mark {
  background: var(--signal);
  color: var(--ink);
  padding: 0 0.12em 0.04em;
  border-radius: 0.12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hero__lead {
  max-width: 34rem;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.55;
  color: var(--paper);
}
.hero__lead strong { color: var(--signal); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 56px;
  padding: 0 1.5rem;
  border-radius: 999px;
  font-family: var(--text);
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  transition: transform var(--fast) var(--ease-out), background-color var(--fast), color var(--fast);
}
.btn svg { width: 1.25rem; height: 1.25rem; transition: transform var(--fast) var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(0.97); }
.btn--signal { background: var(--signal); color: var(--ink); }
.btn--signal:hover { background: var(--paper); }
.btn--ghost { border: 2px solid var(--paper); color: var(--paper); }
.btn--ghost:hover { background: var(--paper); color: var(--ink); }

/* Dossier illustration */
.dossier { margin: 0; justify-self: center; width: min(100%, 26rem); }
.dossier__sheet {
  position: relative;
  padding: 1.5rem 1.5rem 1.25rem;
  background: var(--cream) var(--grain);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.06),
    14px 14px 0 var(--signal),
    0 30px 60px rgba(0, 0, 0, 0.45);
  transform: rotate(-2.5deg);
}
.dossier__sheet::before {          /* the stack of sheets behind */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--paper);
  border-radius: var(--radius);
  transform: rotate(5deg) translate(10px, 6px);
  opacity: 0.55;
}
.dossier__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.875rem;
  margin-bottom: 1rem;
  border-bottom: 2px dashed var(--rule);
  font-size: 0.875rem;
  text-transform: uppercase;
}
.stamp {
  padding: 0.25rem 0.625rem;
  border: 3px solid var(--tomato);
  border-radius: 6px;
  color: var(--ink);
  background: #fbe0d8;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transform: rotate(6deg);
}
.track { margin: 0; padding: 0; list-style: none; }
.track__step {
  position: relative;
  padding: 0 0 1rem 2.25rem;
  font-weight: 700;
  line-height: 1.35;
}
.track__step:last-child { padding-bottom: 0; }
.track__step::before {           /* node */
  content: "";
  position: absolute;
  left: 0; top: 0.1rem;
  width: 1.25rem; height: 1.25rem;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--cream);
}
.track__step::after {            /* connector */
  content: "";
  position: absolute;
  left: calc(0.625rem - 1.5px); top: 1.45rem; bottom: 0.05rem;
  width: 3px;
  background: var(--rule);
}
.track__step:last-child::after { display: none; }
.track__step.is-done::before {
  background: var(--ink)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23ffcf33' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 70% no-repeat;
}
.track__step.is-done::after { background: var(--ink); }
.track__step.is-now::before { background: var(--signal); box-shadow: 0 0 0 5px rgba(255, 207, 51, 0.45); }
.track__state {
  display: block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.track__step.is-now .track__state { color: var(--ink); }
.track__step.is-now .track__state::before { content: "● "; }
.dossier__cap {
  margin-top: 1.75rem;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--muted-on-ink);
}

/* Hero entrance */
@media (prefers-reduced-motion: no-preference) {
  .hero__title .line,
  .hero .kicker,
  .hero__lead,
  .hero .actions,
  .dossier {
    animation: rise 0.8s var(--ease-out) both;
  }
  .hero .kicker { animation-delay: 0.05s; }
  .hero__title .line:nth-child(1) { animation-delay: 0.12s; }
  .hero__title .line:nth-child(2) { animation-delay: 0.2s; }
  .hero__title .line:nth-child(3) { animation-delay: 0.28s; }
  .hero__lead { animation-delay: 0.4s; }
  .hero .actions { animation-delay: 0.5s; }
  .dossier { animation: drop 1s var(--ease-out) 0.35s both; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
@keyframes lift {                 /* transform only: content is never hidden */
  from { transform: translateY(32px); }
  to   { transform: none; }
}
@keyframes drop {
  from { opacity: 0; transform: translateY(-30px) rotate(6deg); }
  to   { opacity: 1; transform: none; }
}

/* ───────── Ticker ───────── */
.ticker {
  overflow: hidden;
  background: var(--signal);
  color: var(--ink);
  border-block: 3px solid var(--ink);
}
.ticker__track {
  display: flex;
  width: max-content;
  gap: 0;
  padding-block: 0.875rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.ticker__track span { display: inline-flex; align-items: center; }
.ticker__track span::after {
  content: "";
  display: inline-block;
  width: 0.45em; height: 0.45em;
  margin-inline: 0.9em;
  background: var(--ink);
  transform: rotate(45deg);
}
@media (prefers-reduced-motion: no-preference) {
  .ticker__track { animation: ticker 32s linear infinite; }
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ───────── Sections ───────── */
.section { padding-block: clamp(4rem, 9vw, 8rem); }
.section--paper { background: var(--paper) var(--grain); }
.section--cream { background: var(--cream); border-top: 1px solid var(--rule); }
.section--ink { background: var(--ink); color: var(--paper); }

.label {
  margin-bottom: 1rem;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.label--light { color: var(--muted-on-ink); }

.display {
  margin: 0 0 2.5rem;
  max-width: 18ch;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.25rem, 1.2rem + 4.2vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-variation-settings: "opsz" 96;
}

/* Problem */
.split { display: grid; gap: 1rem 4rem; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; align-items: end; } }
.prose { max-width: 38rem; }
.prose__big {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.subhead {
  margin: clamp(3rem, 6vw, 5rem) 0 1.25rem;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.glossary {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 3px solid var(--ink);
}
@media (min-width: 700px) { .glossary { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .glossary { grid-template-columns: repeat(4, 1fr); } }
.glossary__item {
  padding: 1.5rem 1.25rem 1.75rem 0;
  border-bottom: 1px solid var(--rule);
  transition: background-color var(--fast);
}
@media (min-width: 700px) {
  .glossary__item { padding-left: 1.25rem; border-left: 1px solid var(--rule); }
  .glossary__item:nth-child(odd) { border-left: 0; padding-left: 0; }
}
@media (min-width: 1100px) {
  .glossary__item:nth-child(odd) { border-left: 1px solid var(--rule); padding-left: 1.25rem; }
  .glossary__item:first-child { border-left: 0; padding-left: 0; }
}
.glossary dt {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3rem, 2rem + 3vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: 0.75rem;
}
.glossary dt::after {
  content: "";
  display: block;
  width: 2.5rem; height: 6px;
  margin-top: 0.75rem;
  background: var(--signal);
  border: 2px solid var(--ink);
  transition: width 0.35s var(--ease-out);
}
.glossary__item:hover dt::after { width: 5rem; }
.glossary dd { margin: 0; font-weight: 700; }
.glossary dd span { display: block; margin-top: 0.25rem; font-weight: 400; font-size: 1rem; color: var(--muted); }

/* Features */
.features {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
@media (min-width: 700px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature {
  position: relative;
  padding: 1.75rem 1.5rem 1.75rem;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform var(--fast) var(--ease-out), box-shadow var(--fast) var(--ease-out), background-color var(--fast);
}
.feature:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--ink);
  background: var(--signal);
}
.feature__num {
  display: block;
  margin-bottom: 2.5rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 3.25rem;
  line-height: 1;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
}
.feature h3 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.feature p { margin: 0; }

/* Accessibility */
.section--ink { position: relative; overflow: hidden; }
.a11y { position: relative; display: grid; gap: 2rem; }
@media (min-width: 1000px) { .a11y { grid-template-columns: 0.9fr 1.1fr; align-items: center; } }
.a11y__giant {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(7rem, 4rem + 18vw, 20rem);
  line-height: 0.8;
  letter-spacing: -0.07em;
  color: transparent;
  -webkit-text-stroke: 3px var(--signal);
  user-select: none;
}
.a11y__intro { max-width: 36rem; font-size: 1.25rem; color: var(--paper); }
.a11y abbr { text-decoration: underline dotted; text-underline-offset: 4px; }
.checks {
  display: grid;
  gap: 0.75rem 2rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) { .checks { grid-template-columns: repeat(2, 1fr); } }
.checks li {
  position: relative;
  padding: 0.75rem 0 0.75rem 2.5rem;
  border-top: 1px solid var(--rule-on-ink);
  font-weight: 700;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.85rem;
  width: 1.5rem; height: 1.5rem;
  border-radius: 6px;
  background: var(--signal)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23101826' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 75% no-repeat;
}
.checks em { font-style: normal; color: var(--signal); }

/* Status / road */
.road {
  position: relative;
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 900px) {
  .road { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .road::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 1.05rem;
    height: 3px;
    background: repeating-linear-gradient(90deg, var(--ink) 0 14px, transparent 14px 24px);
  }
}
.road__item { position: relative; padding-top: 3rem; }
.road__item::before {
  content: "";
  position: absolute;
  left: 0; top: 0.3rem;
  width: 1.5rem; height: 1.5rem;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--ink);
}
.road__item--now::before { background: var(--signal); box-shadow: 0 0 0 6px rgba(255, 207, 51, 0.5); }
@media (prefers-reduced-motion: no-preference) {
  .road__item--now::before { animation: pulse 2.4s var(--ease-out) infinite; }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(255, 207, 51, 0.5); }
  50% { box-shadow: 0 0 0 12px rgba(255, 207, 51, 0.15); }
}
.road__when {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  text-transform: uppercase;
  color: var(--muted);
}
.road__item h3 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.road__item p { max-width: 24rem; }
.road__tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.875rem;
  text-transform: uppercase;
}
.road__tag--now { background: var(--signal); }

/* Founder */
.founder__card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  margin-bottom: 2rem;
}
.founder__mono {
  display: grid;
  place-items: center;
  width: clamp(5.5rem, 4rem + 6vw, 8.5rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ink);
  color: var(--signal);
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 1.4rem + 2.5vw, 3.25rem);
  letter-spacing: -0.04em;
  box-shadow: 8px 8px 0 var(--signal), 8px 8px 0 2px var(--ink);
}
.founder__name {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 1.2rem + 3.5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
.founder__role { margin: 0.5rem 0 0; text-transform: uppercase; color: var(--muted); }
.founder__note { max-width: 40rem; font-size: 1.25rem; }

/* Contact */
.contact {
  background: var(--signal) var(--grain);
  color: var(--ink);
  padding-block: clamp(4rem, 10vw, 9rem);
  border-top: 3px solid var(--ink);
}
.contact__title {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3rem, 1.5rem + 7vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
}
.contact__lead { font-size: 1.25rem; max-width: 32rem; }
.contact__mail {
  display: inline-block;
  margin-top: 1.5rem;
  padding-block: 0.5rem;
  min-height: 44px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 0.9rem + 3.4vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
  transition: text-underline-offset var(--fast) var(--ease-out);
}
.contact__mail:hover { text-underline-offset: 0.24em; }

/* Footer */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: 2rem;
  font-size: 1rem;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}
.footer__brand { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.25rem; }
.footer__brand .mono { font-size: 0.9375rem; font-weight: 500; color: var(--muted-on-ink); }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer__links a:hover { color: var(--signal); }
.footer :focus-visible, .section--ink :focus-visible, .hero :focus-visible, .masthead :focus-visible {
  outline-color: var(--paper);
  box-shadow: 0 0 0 6px var(--ink);
}

/* Scroll reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: lift linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 25%;
    }
  }
}

/* ───────── Legal page ───────── */
.legal-hero {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem);
}
.legal-hero .display { margin-bottom: 1rem; }
.legal-hero p { color: var(--muted-on-ink); max-width: 40rem; }
.legal {
  display: grid;
  gap: 0;
  max-width: 52rem;
  padding-block: clamp(3rem, 6vw, 5rem);
}
.legal section {
  display: grid;
  gap: 0.5rem 2rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--rule);
}
.legal section:first-child { border-top: 3px solid var(--ink); }
@media (min-width: 760px) { .legal section { grid-template-columns: 13rem 1fr; } }
.legal h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.legal dl { margin: 0; display: grid; gap: 0.75rem; }
.legal dt {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.legal dd { margin: 0; }
.legal p:last-child { margin-bottom: 0; }
.legal a { font-weight: 700; }
.legal ul { margin: 0; padding-left: 1.25rem; }

/* High-contrast / forced colours */
@media (forced-colors: active) {
  .btn, .feature, .nav__cta, .road__tag, .kicker { border: 2px solid CanvasText; }
  .hero__title mark { forced-color-adjust: none; }
}
@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;
  }
}
