/* ==========================================================================
   Kantra – shared stylesheet
   Order: fonts → tokens → base → layout → components → pages → footer
   Every size, space and grey comes from the tokens below.
   ========================================================================== */

/* ---------- Fonts (self-hosted, no Google servers) ---------- */
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Colour: black and cobalt on white; cobalt is the only accent */
  --blue: #004aad;
  --black: #111111;
  --text-2: #555555;
  --bg: #ffffff;
  --bg-section: #f4f4f4;
  --bg-dark: #111111;
  --bg-graphite: #404040;   /* dark grey surfaces: Portfolio blocks, contact panel */
  --graphite-line: #5a5a5a; /* hairlines on dark grey */
  --line: #e2e2e2;       /* light hairlines inside content */
  --rule: #d4d4d4;       /* panel borders, list rules */
  --input: #8a8a8a;      /* form field borders, 3:1 against white */
  --sep: #b0b0b0;        /* breadcrumb and link separators */
  --dark-line: #333333;  /* hairlines on dark surfaces */
  --dark-muted: #b8b8b8; /* labels on dark surfaces, 4.5:1 on dark grey */
  --dark-text: #d4d4d4;  /* text on dark surfaces */
  --error: #ce0909;

  /* Type */
  --font-head: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --fs-h1: clamp(2.25rem, 4vw, 3rem);
  --fs-h2: clamp(1.625rem, 2.4vw, 2rem);
  --fs-h3: 1.375rem;
  --fs-lead: 1.25rem;
  --fs-body: 1.125rem;
  --fs-small: 0.875rem;

  /* Space */
  --space-l: clamp(64px, 7vw, 96px); /* standard sections */
  --space-m: clamp(40px, 5vw, 56px); /* bands: page head, teasers, CTA, sub-page content */
  --space-s: clamp(28px, 3vw, 32px); /* office band */
  --gap: clamp(16px, 2vw, 24px);

  /* Shape and layout */
  --radius: 2px;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --bar-w: 44px;
  --bar-h: 4px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--black);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--blue);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--black);
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
h1,
h2,
h3,
dt {
  text-wrap: balance;
}
h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 400;
  color: var(--black);
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}
h1 {
  font-size: var(--fs-h1);
  line-height: 1.12;
}
h2 {
  font-size: var(--fs-h2);
  line-height: 1.2;
}
h3 {
  font-size: var(--fs-h3);
  line-height: 1.3;
  letter-spacing: 0;
}
p {
  margin: 0 0 1em;
  text-wrap: pretty;
}
.sep {
  color: var(--sep);
  margin: 0 8px;
}
.nowrap {
  white-space: nowrap;
}
/* Keep a phrase together only where there is room for it */
@media (min-width: 600px) {
  .nowrap-md {
    white-space: nowrap;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* Signature: the blue bar from the logo, one size everywhere.
   Used under H1 and under section headings, never under card or list titles. */
.bar::after {
  content: "";
  display: block;
  width: var(--bar-w);
  height: var(--bar-h);
  background: var(--blue);
  margin-top: 0.45em;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  padding: var(--space-l) 0;
}
.section--m {
  padding: var(--space-m) 0;
}
.section--s {
  padding: var(--space-s) 0;
}
.section--grey {
  background: var(--bg-section);
}
.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(16px, 6vw, 96px);
  align-items: start;
}
.split p {
  color: var(--text-2);
}
@media (max-width: 820px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  text-decoration: none;
  padding: 15px 28px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn:hover,
.btn:focus-visible {
  background: var(--black);
  color: #fff;
}
.btn--small {
  padding: 10px 18px;
  font-size: 0.9375rem;
}
/* Quieter variant for the header, so it does not compete with the hero button */
.btn--outline {
  background: transparent;
  color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}
.btn--outline:hover,
.btn--outline:focus-visible {
  background: var(--blue);
  color: #fff;
}

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--blue);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 76px;
}
.logo {
  display: block;
  flex-shrink: 0;
}
.logo img {
  height: 38px;
  width: auto;
}
.nav {
  margin-left: auto;
}
.nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}
.nav a {
  display: block;
  color: var(--black);
  text-decoration: none;
  font-size: 0.975rem;
  padding: 26px 0 23px;
  border-bottom: 3px solid transparent;
}
.nav a:hover {
  color: var(--blue);
}
.nav a[aria-current="page"] {
  border-bottom-color: var(--blue);
}
.nav-toggle {
  display: none;
}
@media (max-width: 820px) {
  .site-header .wrap {
    gap: 16px;
    min-height: 64px;
  }
  .logo img {
    height: 30px;
  }
  .header-cta {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    background: none;
    border: 1px solid var(--black);
    border-radius: var(--radius);
    padding: 8px 12px;
    font: 600 0.9375rem var(--font-body);
    color: var(--black);
    cursor: pointer;
  }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 2px solid var(--blue);
  }
  .nav.is-open {
    display: block;
  }
  .nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 20px;
  }
  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav a[aria-current="page"] {
    border-bottom: 1px solid var(--line);
    box-shadow: inset 4px 0 0 var(--blue);
    padding-left: 14px;
  }
  .nav .nav-cta {
    display: block;
    margin-top: 16px;
  }
  .nav .nav-cta .btn {
    color: #fff;
    text-align: center;
    padding: 15px 28px;
    border-bottom: 0;
  }
}
@media (min-width: 821px) {
  .nav .nav-cta {
    display: none;
  }
}

/* ---------- Hero (Home): full-width photo, floating white panel ----------
   The photo fills the hero as a background; the panel stays in the flow,
   so the hero grows with it when visitors use a larger default font. */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(460px, 70vh, 680px);
  background: var(--bg-dark);
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 73% 61%;
}
.hero__wrap {
  position: relative;
  width: 100%;
  padding-top: 40px;
  padding-bottom: 40px;
}
/* Wide enough for a two-line headline, but always left of the ship (≈73% of the photo width) */
.hero__panel {
  max-width: min(720px, calc(73vw - 110px));
  background: #fff;
  color: var(--text-2);
  padding: clamp(32px, 4.5vw, 56px);
}
.hero__panel h1 {
  margin-bottom: 0.7em;
}
.hero__panel p {
  max-width: 30rem;
  margin: 0 0 30px;
}
@media (max-width: 1000px) {
  .hero {
    display: block;
    min-height: 0;
    background: #fff;
  }
  .hero__img {
    position: static;
    height: clamp(240px, 45vw, 420px);
  }
  .hero__wrap {
    padding: 0;
  }
  .hero__panel {
    max-width: none;
    margin: 0;
    padding: 32px var(--gutter) 48px;
  }
}

/* ---------- Sub-page header: grey band, breadcrumb, H1 with bar ---------- */
.page-head {
  background: var(--bg-section);
  border-bottom: 1px solid var(--line);
  padding: var(--space-m) 0;
}
.crumbs {
  display: flex;
  gap: 10px;
  font-size: var(--fs-small);
  color: var(--text-2);
  margin-bottom: 24px;
}
.crumbs a {
  color: var(--text-2);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--blue);
  text-decoration: underline;
}
.crumbs span[aria-hidden] {
  color: var(--sep);
}
.crumbs [aria-current] {
  color: var(--black);
}
.page-head h1 {
  margin: 0;
}

/* ---------- Panel: the one box style of the site ----------
   White, thin border, cobalt top edge. Dark variant for contact details. */
.panel {
  background: #fff;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--blue);
  padding: clamp(24px, 3vw, 36px);
  color: var(--text-2);
}
.panel--dark {
  background: var(--bg-graphite);
  border-color: var(--bg-graphite);
  border-top-color: var(--blue);
  color: var(--dark-text);
}
.panel--dark h2,
.panel--dark h3 {
  color: #fff;
}
.panel--dark :focus-visible {
  outline-color: #fff;
}

/* Teaser panels linking to other pages */
.teasers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}
.teaser {
  display: block;
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.teaser:hover,
.teaser:focus-visible {
  color: var(--text-2);
  border-color: var(--blue);
}
.teaser h2 {
  margin-bottom: 0.4em;
}
.teaser p {
  margin-bottom: 18px;
}
.teaser__link {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 700px) {
  .teasers {
    grid-template-columns: 1fr;
  }
}

/* ---------- Product categories (Portfolio) ----------
   A plain 2x2 table: white cells divided by hairline rules, no colour accents. */
.categories {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.categories li {
  min-height: clamp(150px, 15vw, 190px);
  padding: clamp(24px, 3vw, 40px);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  color: var(--text-2);
}
.section.categories-section {
  padding-top: 0;
}
.categories-section h2.bar {
  margin-bottom: var(--space-s);
}
.categories h3 {
  margin-bottom: 0.4em;
}
.categories p {
  margin: 0;
}
@media (max-width: 700px) {
  .categories {
    grid-template-columns: 1fr;
  }
  .categories li {
    min-height: 0;
  }
}

/* ---------- Key figures (Home) ----------
   Dark grey band with large white numbers. */
.figures {
  position: relative;
  overflow: hidden;
  background: var(--bg-graphite);
  color: var(--dark-text);
}
/* Faint world map behind the figures */
.figures__map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  opacity: 0.07;
  pointer-events: none;
}
.figures .wrap {
  position: relative;
}
.figures__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.figures__list li {
  padding: 0 clamp(16px, 3vw, 40px);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}
.figures__list li:first-child {
  padding-left: 0;
  border-left: 0;
}
.figures__value {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
  color: #fff;
  margin-bottom: 0.3em;
}
.figures__label {
  display: block;
}
@media (max-width: 700px) {
  .figures__list {
    grid-template-columns: 1fr;
  }
  .figures__list li {
    padding: var(--space-s) 0 0;
    margin-top: var(--space-s);
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }
  .figures__list li:first-child {
    padding-top: 0;
    margin-top: 0;
    border-top: 0;
  }
}

/* ---------- Page head with photo (Expertise, About) or blue tint (Contact) ----------
   The black-and-white photo sits faded on the right and blends into the grey
   page head towards the heading, so the text stays on a calm background.
   The tint variant has no photo: the grey fades into the Kantra blue of the logo. */
.page-head--image,
.page-head--tint {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(220px, 24vw, 320px);
}
.page-head--tint {
  background-image: linear-gradient(
    90deg,
    rgba(0, 74, 173, 0) 30%,
    rgba(0, 74, 173, 0.12) 50%,
    rgba(0, 74, 173, 0.4) 70%,
    rgba(0, 74, 173, 0.75) 87%,
    var(--blue) 100%
  );
}
.page-head__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
  opacity: 0.55;
}
.page-head--image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    var(--bg-section) 0%,
    var(--bg-section) 30%,
    rgba(244, 244, 244, 0.75) 55%,
    rgba(244, 244, 244, 0.15) 100%
  );
}
.page-head--image .wrap,
.page-head--tint .wrap {
  position: relative;
  z-index: 2;
  width: 100%;
}
@media (max-width: 700px) {
  .page-head--image::after {
    background: rgba(244, 244, 244, 0.7);
  }
}

/* ---------- Reach map (About) ----------
   Quiet grey map with Germany a shade darker; Wolfsburg marked in the brand blue. */
.section.reach {
  padding-top: 0;
}
.reach__map {
  margin: 0;
}
.reach__canvas {
  position: relative;
}
.reach__canvas img {
  width: 100%;
  height: auto;
}
.reach__pin {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 2px #fff, 0 0 0 9px rgba(0, 74, 173, 0.16);
}
.reach__label {
  position: absolute;
  margin: -0.7em 0 0 16px;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--black);
  text-shadow: 0 0 3px #fff, 0 0 3px #fff;
  white-space: nowrap;
}
.reach__map figcaption {
  margin-top: 16px;
  color: var(--text-2);
}

/* ---------- Activities: two areas side by side ---------- */
/* Same columns and gap as the teaser panels below, so the blue lines align */
.activities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}
.activity {
  border-top: 3px solid var(--blue);
  padding: clamp(24px, 3vw, 32px) clamp(0px, 4vw, 56px) 0 0;
}
.activity h2 {
  margin-bottom: 0.6em;
}
.activity p {
  margin: 0;
  color: var(--text-2);
}
@media (max-width: 700px) {
  .activities {
    grid-template-columns: 1fr;
    gap: var(--space-s);
  }
  .activity {
    padding-right: 0;
  }
}

/* ---------- CTA band ---------- */
.cta-band {
  border-top: 1px solid var(--line);
}
.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 {
  margin: 0;
}
.cta-band p {
  color: var(--text-2);
  margin: 12px 0 0;
}

/* ---------- About ---------- */
.about-text {
  max-width: 46rem;
  color: var(--text-2);
}
.statement + .statement {
  margin-top: clamp(24px, 3vw, 36px);
}
.statement h2 {
  max-width: 30rem;
}
.statement p {
  margin: 0;
}
.about-text__links {
  margin: 1.6em 0 0;
}

/* ---------- Office: address, photo and static map in one row ----------
   No embedded map service, so no third-party requests. */
.office__row {
  display: grid;
  grid-template-columns: minmax(max-content, 4fr) minmax(0, 3fr) minmax(0, 7fr);
  grid-template-rows: minmax(0, 1fr);
  height: 216px;
  overflow: hidden;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.office__info {
  background: #fff;
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.office__label {
  font-size: var(--fs-small);
  color: var(--text-2);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.office__address {
  font-family: var(--font-head);
  font-style: normal;
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--black);
  white-space: nowrap;
}
.office__link {
  font-size: 0.9375rem;
}
.office__photo,
.office__map img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.office__map {
  position: relative;
  margin: 0;
  min-width: 0;
  min-height: 0;
  height: 100%;
}
/* Licence credit sits in the map corner, like on online maps */
.office__credit {
  position: absolute;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
  color: var(--text-2);
  padding: 2px 8px;
  white-space: nowrap;
}
.office__credit a {
  color: inherit;
}
@media (max-width: 760px) {
  .office__row {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 160px;
    height: auto;
  }
  .office__info {
    grid-column: 1 / -1;
  }
  .office__photo,
  .office__map {
    height: 160px;
  }
  .office__credit {
    font-size: 0.6875rem;
    padding: 1px 6px;
  }
}

/* ---------- Contact: dark details panel beside the form panel ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: var(--gap);
  align-items: stretch;
}
.contact__list {
  margin: 0;
  border-bottom: 1px solid var(--graphite-line);
}
.contact__list div {
  padding: 18px 0;
  border-top: 1px solid var(--graphite-line);
}
.contact__list dt {
  font-size: var(--fs-small);
  color: var(--dark-muted);
  margin-bottom: 4px;
}
.contact__list dd {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.15rem;
  line-height: 1.45;
  color: #fff;
}
.contact__list a {
  color: #fff;
  text-decoration: none;
}
.contact__list a:hover {
  color: #fff;
  text-decoration: underline;
}
.contact__form {
  scroll-margin-top: 100px;
}
@media (max-width: 860px) {
  .contact {
    grid-template-columns: 1fr;
  }
}

/* Form fields */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.field {
  margin-bottom: 20px;
}
.field label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--black);
  background: #fff;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  padding: 11px 12px;
}
.field textarea {
  resize: vertical;
  min-height: 140px;
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 0;
  border-color: var(--blue);
}
.field--check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.field--check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--blue);
}
.field--check label {
  font-weight: 400;
  color: var(--text-2);
  margin: 0;
}
.form-note {
  font-size: var(--fs-small);
  color: var(--text-2);
  margin: 0 0 20px;
}
/* Honeypot: hidden from people, visible to bots */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  padding: 14px 16px;
  margin-bottom: 24px;
  background: var(--bg-section);
  border-left: 3px solid var(--blue);
}
.form-status--error {
  border-left-color: var(--error);
}
/* Receives focus only programmatically (so screen readers announce it);
   focusing scrolls it into view below the sticky header */
.form-status {
  scroll-margin-top: 110px;
}
.form-status:focus {
  outline: none;
}
@media (max-width: 560px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Legal pages and 404 ---------- */
.legal {
  max-width: 46rem;
  color: var(--text-2);
}
.legal > :first-child {
  margin-top: 0;
}
.legal h2 {
  font-size: var(--fs-h3);
  line-height: 1.3;
  letter-spacing: 0;
  margin: 2em 0 0.5em;
}
.legal ul {
  margin: 0 0 1em;
  padding-left: 1.25em;
}
.legal li + li {
  margin-top: 0.25em;
}
.legal__title {
  font-family: var(--font-head);
  font-size: var(--fs-lead);
  color: var(--black);
}
/* Art. 21 GDPR: the right to object must stand apart from the other information */
.legal__notice {
  margin: 0 0 1em;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--blue);
}
.legal__notice p:last-child {
  margin-bottom: 0;
}
.legal__updated {
  margin-top: 2.5em;
  font-size: var(--fs-small);
}
/* Terms: English and German version on one page */
.legal__part {
  scroll-margin-top: 110px;
}
.legal__part + .legal__part {
  margin-top: 4em;
  padding-top: 2.5em;
  border-top: 1px solid var(--rule);
}
.legal__jump {
  font-size: var(--fs-small);
}
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: 28px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-dark);
  color: var(--dark-text);
  font-size: 0.9375rem;
  padding: 56px 0 32px;
}
.site-footer a {
  color: #fff;
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
  color: #fff;
}
.site-footer :focus-visible {
  outline-color: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--dark-line);
}
.footer-brand {
  margin: 0;
}
.footer-brand img {
  width: 120px;
  height: auto;
}
.footer-tagline {
  margin-top: 16px;
}
.site-footer h2 {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
  color: #fff;
  margin-bottom: 14px;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li {
  margin-bottom: 8px;
}
.site-footer address {
  font-style: normal;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
}
.footer-bottom p {
  margin: 0;
}
.footer-bottom ul {
  display: flex;
  gap: 24px;
}
.footer-bottom li {
  margin: 0;
}
@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Motion ----------
   Three quiet moments, all off for visitors who prefer reduced motion:
   on Home the logo bar under the headline draws once while the photo settles,
   the mobile menu unfolds, and in-page jumps and form messages ease in. */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .hero {
    overflow: hidden;
  }
  .hero__img {
    animation: hero-settle 1.6s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
  }
  .hero__panel .bar::after {
    transform-origin: left center;
    animation: bar-draw 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) 0.35s backwards;
  }

  /* Browsers without @starting-style simply open the menu without the fade */
  @media (max-width: 820px) {
    .nav {
      opacity: 0;
      transform: translateY(-6px);
      transition-property: opacity, transform, display;
      transition-duration: 0.2s;
      transition-timing-function: ease-out;
      transition-behavior: allow-discrete;
    }
    .nav.is-open {
      opacity: 1;
      transform: none;
    }
    @starting-style {
      .nav.is-open {
        opacity: 0;
        transform: translateY(-6px);
      }
    }
  }

  .form-status:not([hidden]) {
    animation: fade-in 0.35s ease-out backwards;
  }
}
@keyframes hero-settle {
  from {
    transform: scale(1.04);
    filter: blur(3px);
  }
  to {
    transform: none;
    filter: none;
  }
}
@keyframes bar-draw {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
