/* ---------- Fonts ---------- */
@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  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: "Sora";
  src: url("../fonts/sora-latin-ext.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #0E2A33;
  --ink-2: #133540;
  --ink-3: #1E4B58;
  --line: #163C48;
  --teal: #1795AD;
  --teal-deep: #0F6F82;
  --teal-bright: #33B2C9;
  --mist: #AFD1DE;
  --stone: #BAB7BA;
  --paper: #F6F8F9;
  --frost: #E6EFF3;

  --font: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-body: clamp(1.0625rem, 0.3vw + 1rem, 1.125rem);
  --fs-small: 0.9375rem;
  --fs-eyebrow: 0.8rem;
  --fs-h3: clamp(1.1875rem, 0.6vw + 1.05rem, 1.375rem);
  --fs-lead: clamp(1.1875rem, 1.2vw + 0.9rem, 1.625rem);
  --fs-h2: clamp(2rem, 4.5vw, 3.75rem);
  --fs-display: clamp(2.4rem, 6vw, 5.5rem);
  --fs-hero: clamp(2.4rem, 6vw, 6rem);
  --fs-num: clamp(2.5rem, 4vw, 3.5rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --section-pad: clamp(4rem, 10vw, 9rem);
  --gutter: 24px;
  --container: 1280px;
  --nav-h: 4.5rem;

  --radius: 20px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --ease: 200ms ease;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);   /* strong ease-out for entrances and transforms */
  --press: transform 160ms var(--ease-out);
}
@media (max-width: 399px) {
  :root { --gutter: 16px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
body {
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-weight: 700; line-height: 1.1; text-wrap: balance; }
p { text-wrap: pretty; }
address { font-style: normal; }

:focus-visible { outline: 2px solid var(--mist); outline-offset: 3px; border-radius: 4px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
html:not(.js) .js-only { display: none; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-pad); }
.section--tight-top { padding-top: 0; }
.split {
  display: grid;
  gap: var(--space-4) var(--space-6);
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
}
.split__head { position: sticky; top: calc(var(--nav-h) + var(--space-4)); }

/* ---------- Type ---------- */
.eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin-bottom: var(--space-2);
}
.display {
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  hyphens: manual;
}
.h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: var(--space-5);
  hyphens: manual;
}
.split .h2 { margin-bottom: 0; }
.h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.accent { color: var(--mist); }
.lead { font-size: var(--fs-lead); line-height: 1.4; font-weight: 400; letter-spacing: -0.01em; max-width: 30ch; }
.muted { color: var(--stone); font-size: var(--fs-small); }
.num {
  display: block;
  font-size: var(--fs-num);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--mist);
  font-variant-numeric: tabular-nums;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: var(--space-1) var(--space-2);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-pill);
  font-weight: 600;
}
.skip-link:focus { top: var(--space-1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 3.25rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-pill);
  font-size: 1.1875rem; /* 19px bold = large text: teal/paper passes 3:1 */
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: background-color var(--ease), color var(--ease), border-color var(--ease), var(--press);
}
.btn:active, .icon-link:active, .nav__toggle:active { transform: scale(.97); }
.btn .icon { transition: transform 200ms var(--ease-out); }
.btn span { white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover .icon { transform: translateX(4px); }
}
.btn--solid { background: var(--teal); color: var(--paper); }
.btn--solid:hover, .btn--solid:active { background: var(--teal-deep); }
.btn--ghost { border-color: var(--mist); color: var(--mist); }
.btn--ghost:hover { background: var(--mist); color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--ink-2); }
.mail:not([href]), .tel:not([href]) { display: none; }

/* ---------- Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ink-2) 80%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: var(--nav-h);
  transition: min-height var(--ease);
}
.nav__logo img { height: 28px; width: auto; transition: height var(--ease); }
.is-scrolled .nav { min-height: 3.5rem; }
.is-scrolled .nav__logo img { height: 24px; }
.nav__menu { display: flex; gap: var(--space-4); }
.nav__menu a {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--stone);
  transition: color var(--ease);
}
.nav__menu a:hover { color: var(--paper); }
.nav__toggle { display: none; }

@media (max-width: 759px) {
  .js .nav__toggle {
    display: grid;
    place-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    margin-right: -10px;
  }
  .nav__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--paper);
    border-radius: 2px;
    transition: transform var(--ease);
  }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .nav { flex-wrap: wrap; }
  .nav__menu { gap: var(--space-3); }
  .js .nav__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: var(--space-1) var(--gutter) var(--space-3);
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
  }
  .js .nav__toggle[aria-expanded="true"] + .nav__menu { display: flex; }
  .js .nav__menu a {
    display: block;
    padding-block: var(--space-2);
    border-bottom: 1px solid var(--line);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--paper);
  }
  .js .nav__menu li:last-child a { border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - var(--nav-h));
  display: grid;
  align-items: center;
  padding-block: clamp(3rem, 6vw, 5rem);
}
.hero::before { /* soft teal glow so a wide viewport doesn't read as empty */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(55% 60% at 78% 30%, color-mix(in srgb, var(--teal) 22%, transparent), transparent 70%);
  transform: translateY(calc(var(--sy, 0) * 0.35px));
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) { .hero::before { transform: none; } }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem) clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero__head { grid-column: 1 / -1; }
.hero .display { font-size: var(--fs-hero); }
.hero .lead { margin-bottom: var(--space-2); }
.hero__sub { color: var(--stone); max-width: 62ch; margin-bottom: var(--space-5); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.hero__photo {
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-3);
  outline: 1px solid var(--teal);
  outline-offset: 4px;
  overflow: hidden;
  background: var(--frost);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
/* Word mask: overflow:hidden moves an inline-block's baseline to its bottom edge, hence vertical-align: top;
   the padding/negative margin pair keeps descenders inside the mask without changing line height. */
.hero .w { display: block; overflow: hidden; vertical-align: top; padding-bottom: .15em; margin-bottom: -.15em; }
.hero .w > span { display: inline-block; }

/* Hero intro: start states only before main.js adds .is-ready, and only when motion is allowed */
@media (prefers-reduced-motion: no-preference) {
  .js .hero .w > span { transition: transform 700ms var(--ease-out); }
  .js .hero .w + .w > span { transition-delay: 80ms; }
  .js .hero :is(.eyebrow, .lead, .hero__sub, .hero__cta) { transition: opacity 700ms ease, transform 700ms var(--ease-out); }
  .js .hero .eyebrow { transition-delay: 300ms; }
  .js .hero .lead { transition-delay: 400ms; }
  .js .hero .hero__sub { transition-delay: 480ms; }
  .js .hero .hero__cta { transition-delay: 560ms; }
  .js .hero__photo { transition: opacity 900ms ease, transform 900ms var(--ease-out); }
  .js:not(.is-ready) .hero .w > span { transform: translateY(110%); }
  .js:not(.is-ready) .hero :is(.eyebrow, .lead, .hero__sub, .hero__cta) { opacity: 0; transform: translateY(16px); }
  .js:not(.is-ready) .hero__photo { opacity: 0; transform: scale(.97); }
}

/* ---------- Über uns ---------- */
.about { font-size: var(--fs-lead); line-height: 1.55; letter-spacing: -0.01em; max-width: 34ch; }

/* ---------- Radar ---------- */
/* the chart gets the whole row: heading top-left, chart large and centred below */
#kompetenzen .split { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
#kompetenzen .split__head { position: static; }
.radar { width: 100%; max-width: 980px; margin-inline: auto; }
.radar svg { width: 100%; }
.radar__hint { color: var(--stone); font-size: var(--fs-small); margin-top: var(--space-2); display: none; }
@media (hover: hover) and (pointer: fine) { .radar__hint { display: block; } }
.radar__shape, .radar__dots { transform-box: view-box; transform-origin: 400px 400px; }
.radar__shape { transition: transform 900ms var(--ease-out), opacity 600ms ease; }
.radar__dots { transition: opacity 400ms ease 600ms; }
.radar__hit { cursor: pointer; }
.radar line, .radar__dots circle, .radar__label { transition: stroke 200ms ease, stroke-opacity 200ms ease, r 200ms ease, fill 200ms ease; }
.radar line.is-active { stroke: var(--mist); stroke-opacity: 1; stroke-width: 2; }
.radar__dots circle.is-active { r: 9; }
.radar__label.is-active { fill: var(--mist); font-weight: 700; }
.radar__focus { pointer-events: none; opacity: 0; transition: opacity 200ms ease; }
.radar svg.has-active .radar__focus { opacity: 1; }
.radar svg.has-active .radar__label:not(.is-active) { fill: var(--stone); }
.js .radar.reveal:not(.is-visible) .radar__shape { transform: scale(.9); opacity: 0; }
.js .radar.reveal:not(.is-visible) .radar__dots { opacity: 0; }

/* ---------- Referenzen (marquee) ---------- */
.section--refs { padding-block: var(--space-6); border-block: 1px solid var(--line); }
.marquee {
  margin-top: var(--space-3);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
/* padding-right = gap, so each list is exactly half the track and -50% loops seamlessly */
.marquee ul { display: flex; gap: 4rem; padding-right: 4rem; }
.marquee li {
  position: relative;
  white-space: nowrap;
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--stone);
}
.marquee li::before {
  content: "";
  position: absolute;
  left: calc(-2rem - 3px);
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--teal);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards (Werte, Team) ---------- */
.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.cards .card { display: flex; flex-direction: column; gap: var(--space-2); }
.mark { /* the logo mark: three equal squares, teal on top of the gap between grey and mist */
  width: 48px;
  height: 32px;
  margin-bottom: var(--space-5);
  background:
    linear-gradient(var(--stone), var(--stone)) 0 16px / 16px 16px no-repeat,
    linear-gradient(var(--teal), var(--teal)) 16px 0 / 16px 16px no-repeat,
    linear-gradient(var(--mist), var(--mist)) 32px 16px / 16px 16px no-repeat;
}
.cards p { color: var(--stone); }

/* ---------- Leistungen ---------- */
.services { border-top: 1px solid var(--ink-3); }
.service {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  padding-block: clamp(1.25rem, 3vw, 2rem);
  border-bottom: 1px solid var(--ink-3);
  transition: transform 200ms var(--ease-out), color var(--ease);
}
.service::before { content: ""; width: 10px; height: 10px; background: var(--teal); }
@media (hover: hover) and (pointer: fine) {
  .service:hover { transform: translateX(8px); }
}
.service__title {
  font-size: clamp(1.1875rem, 1.6vw + 0.8rem, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.service .icon { color: var(--teal); }

/* ---------- Bands ---------- */
.band--mist { background: var(--mist); color: var(--ink); }
.band--mist .eyebrow { color: var(--ink); }
.band--mist :focus-visible { outline-color: var(--ink); }
.band--teal :focus-visible { outline-color: var(--paper); }
.quotes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-3); }
.quote {
  grid-column: span 2;
  position: relative;
  background: var(--paper);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  padding-top: clamp(3.5rem, 6vw, 4.5rem);
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.quote:nth-child(n + 4) { grid-column: span 3; }
.quote::before {
  content: "\201E";
  position: absolute;
  top: -0.3em;
  left: clamp(1.25rem, 2.6vw, 2rem);
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--teal);
}
.pull {
  margin-top: var(--space-6);
  max-width: 34ch;
  font-size: clamp(1.5rem, 2.6vw + 0.8rem, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
.member { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-2); }
.member img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: calc(var(--radius) - 8px);
  background: var(--paper);
  margin-bottom: var(--space-1);
}
.member .h3, .member .contact, .member noscript p, .member .icon-link { margin-inline: var(--space-1); }
.contact { display: grid; gap: var(--space-1); font-size: 0.875rem; }
.contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  color: var(--mist);
  overflow-wrap: break-word;
  transition: color var(--ease);
}
.contact a:hover { color: var(--paper); }
.contact .icon { flex: none; color: var(--stone); }
.contact a span { min-width: 0; overflow-wrap: anywhere; }
.tel span { font-variant-numeric: tabular-nums; }
.icon-link {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: auto;
  border: 1px solid var(--ink-3);
  border-radius: 50%;
  color: var(--mist);
  transition: background-color var(--ease), color var(--ease), border-color var(--ease), var(--press);
}
.member .icon-link { margin-left: var(--space-1); }
.icon-link:hover { background: var(--mist); border-color: var(--mist); color: var(--ink); }

/* ---------- Kontakt ---------- */
.band--teal { background: var(--teal); color: var(--paper); }
.kontakt { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.kontakt address { font-size: 1.5rem; line-height: 1.4; letter-spacing: -0.01em; } /* 24px: large text on teal */

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); color: var(--stone); font-size: var(--fs-small); }
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-5);
  padding-block: var(--space-5);
}
.footer img { height: 24px; width: auto; }
.footer ul { display: flex; gap: var(--space-3); margin-left: auto; }
.footer a { transition: color var(--ease); }
.footer a:hover { color: var(--paper); }

/* ---------- 404 ---------- */
.notfound { min-height: calc(100svh - var(--nav-h) - 8rem); display: grid; align-content: center; }
.notfound .display { margin-bottom: var(--space-5); }

/* ---------- Reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms var(--ease-out);
}
/* cards that enter together cascade 60ms apart */
.cards .card:nth-child(2), .team .member:nth-child(2), .quotes .quote:nth-child(2) { transition-delay: 60ms; }
.cards .card:nth-child(3), .team .member:nth-child(3), .quotes .quote:nth-child(3) { transition-delay: 120ms; }
.team .member:nth-child(4), .quotes .quote:nth-child(4) { transition-delay: 180ms; }
.quotes .quote:nth-child(5) { transition-delay: 240ms; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .js .service.reveal.is-visible:hover { transform: translateX(8px); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1099px) {
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote, .quote:nth-child(n + 4) { grid-column: auto; }
  .quote:last-child { grid-column: 1 / -1; }
}
@media (max-width: 759px) {
  .radar { margin-inline: calc(-1 * var(--gutter)); }
  .radar__label { font-size: 34px; }
  .split, .hero__grid, .cards, .quotes { grid-template-columns: minmax(0, 1fr); }
  .quote:last-child { grid-column: auto; }
  .split__head { position: static; }
  .mark { margin-bottom: var(--space-2); }
  .service { grid-template-columns: auto minmax(0, 1fr); }
  .service .icon { display: none; }
  .footer ul { margin-left: 0; }
}
@media (max-width: 759px) {
  :root { --fs-hero: clamp(1.75rem, 8.6vw, 4rem); } /* stacked hero: "Maßgeschneiderte" must fit on one line */
}
@media (max-width: 479px) {
  .team { grid-template-columns: minmax(0, 1fr); }
  .hero .display { hyphens: auto; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; }
  /* keep colour and opacity transitions, remove everything that moves */
  .js .reveal, .radar__shape, .radar__dots, .service, .btn, .icon-link, .nav__toggle, .btn .icon, .nav__toggle span, .nav, .nav__logo img {
    transition-property: opacity, color, background-color, border-color, fill, stroke, stroke-opacity !important;
  }
  .js .reveal { transform: none; }
  .service:hover, .btn:active, .icon-link:active, .btn:hover .icon { transform: none; }
  /* marquee becomes a static, fully readable list */
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { width: auto; }
  .marquee__track ul[aria-hidden] { display: none; }
  .marquee ul { flex-wrap: wrap; gap: var(--space-2) var(--space-5); padding-right: 0; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
}

/* ---------- Legal pages ---------- */
.legal { padding-block: clamp(3rem, 8vw, 6rem); }
.prose { max-width: 70ch; }
.prose h2 { font-size: var(--fs-h3); margin-top: var(--space-5); margin-bottom: var(--space-2); }
.prose h3 { font-size: var(--fs-body); font-weight: 600; margin-top: var(--space-4); margin-bottom: var(--space-1); }
.prose h4 { font-size: var(--fs-small); font-weight: 600; color: var(--mist); margin-top: var(--space-3); }
.prose p, .prose ul { color: var(--stone); margin-bottom: var(--space-2); }
.prose ul { list-style: disc; padding-left: 1.25rem; }
.prose a { color: var(--mist); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.prose a:hover { color: var(--paper); }
.prose strong { color: var(--paper); }
