/* ==========================================================================
   PETRIX transport&logistics
   Brand: navy #0A2047 + crimson #E22130, sampled from the wordmark.
   Type:  Archivo (heavy display caps, echoing the "PETRIX" lockup)
          IBM Plex Sans (body) · IBM Plex Mono (reference numbers, codes)

   Real photographs carry the hero and the services; the credentials, the
   layout and the type carry everything else.
   ========================================================================== */

:root {
  --navy-900: #050f26;
  --navy-800: #081a38;
  --navy: #0a2047;
  --navy-600: #14305f;
  --navy-400: #2c4a80;

  --red: #e22130;
  --red-hot: #f01825;
  --red-soft: #ff5f68;

  --paper: #f2f4f7;
  --white: #ffffff;
  --ink: #0a2047;
  --ink-soft: #4a5b76;
  --steel: #93a2bc;
  --hairline: rgba(255, 255, 255, 0.14);
  --hairline-dark: rgba(10, 32, 71, 0.12);

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  --shell: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --header-h: 104px;
  --header-h-scrolled: 69px;
  --radius: 18px;

  /* One spacing scale, used everywhere. */
  --space-1: 0.5rem;
  --space-2: 0.85rem;
  --space-3: 1.35rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: clamp(3.5rem, 8vw, 7rem);

  --measure: 68ch;

  --shadow-soft: 0 24px 60px -28px rgba(10, 32, 71, 0.45);
  --shadow-lift: 0 34px 70px -30px rgba(10, 32, 71, 0.55);
}

/* --------------------------------------------------------------- base --- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h-scrolled);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

p {
  margin: 0 0 1.1em;
  max-width: var(--measure);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

fieldset {
  min-width: 0;
}

.mono {
  font-family: var(--font-mono);
  font-variant-ligatures: none;
}

/* "ADSp" is an abbreviation with a lowercase p; uppercase headings must not
   silently turn it into "ADSP". */
.nocaps {
  text-transform: none;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--red);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
}

.skip-link:focus-visible {
  left: 1rem;
  top: 1rem;
}

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

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Anchor targets take focus only so it follows an in-page jump; they are not
   controls and need no ring. */
[tabindex="-1"]:focus {
  outline: none;
}

.section-navy :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: #fff;
}

/* ------------------------------------------------- language switching --- */
/* Every translatable string ships as three sibling nodes; only the one
   matching <html lang> renders. No flash, no JS text injection, and the
   document's lang attribute is always truthful for screen readers. */

[data-l] {
  display: none;
}

html[lang="sk"] [data-l="sk"],
html[lang="en"] [data-l="en"],
html[lang="de"] [data-l="de"] {
  display: revert;
}

/* --------------------------------------------------------------- type --- */

.display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.7rem, 4.4vw, 3.15rem);
  line-height: 1.03;
  letter-spacing: -0.025em;
  /* German compounds ("Straßenspedition") outgrow the hero column at every
     width below about 1230px, not only on phones — hyphenate at all sizes so
     the headline never force-breaks mid-word without a hyphen. Hyphenation
     follows <html lang>, which the switcher keeps truthful. */
  overflow-wrap: break-word;
  hyphens: auto;
  /* Only genuinely long compounds may be hyphenated, so the headline gets the
     safety net without breaking every other word it can. */
  hyphenate-limit-chars: 14 8 5;
}

.display em {
  font-style: normal;
  color: var(--red);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 var(--space-2);
  max-width: none;
}

.section-navy .eyebrow {
  color: var(--red-soft);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.55rem, 3.6vw, 2.9rem);
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

/* Signature detail: a skewed two-tone rule echoing the logo's twin swooshes. */
.section-title::after {
  content: "";
  display: block;
  width: 76px;
  height: 7px;
  margin-top: var(--space-3);
  transform: skewX(-26deg);
  background: linear-gradient(
    90deg,
    var(--red) 0 30px,
    transparent 30px 40px,
    var(--navy) 40px 100%
  );
}

.section-navy .section-title::after {
  background: linear-gradient(
    90deg,
    var(--red) 0 30px,
    transparent 30px 40px,
    #ffffff 40px 100%
  );
}

.lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
}

.section-navy .lead {
  color: #c3cee0;
}

/* ------------------------------------------------------------- links --- */
/* A red 2px underline reads as a spell-check error, so links are marked with
   a hairline in a muted tint of the surrounding text. Underline + weight, not
   colour alone, so the link is identifiable without the alarm signal. */

.link,
.credentials a,
.reasons a,
.contact-direct a,
.contact-address-note a,
.legal-dl a,
.legal-callout a {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
  text-decoration-color: rgba(10, 32, 71, 0.32);
  transition:
    color 0.2s ease,
    text-decoration-color 0.2s ease;
}

.link:hover,
.contact-direct a:hover,
.contact-address-note a:hover,
.legal-dl a:hover,
.legal-callout a:hover {
  color: var(--red);
  text-decoration-color: currentColor;
}

/* On navy the same idea, tinted the other way. */
.section-navy .credentials a,
.section-navy .reasons a,
.site-footer a.link {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.4);
}

.section-navy .credentials a:hover,
.section-navy .reasons a:hover,
.site-footer a.link:hover {
  color: var(--red-soft);
  text-decoration-color: currentColor;
}

/* ------------------------------------------------------------ buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.7rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.25s cubic-bezier(0.2, 0.7, 0.3, 1),
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 16px 34px -16px rgba(226, 33, 48, 0.75);
}

.btn-primary:hover {
  background: var(--red-hot);
  transform: translateY(-2px);
  box-shadow: 0 22px 42px -16px rgba(240, 24, 37, 0.8);
}

.btn-primary:active {
  transform: translateY(0);
  background: #c81b28;
  box-shadow: 0 8px 18px -12px rgba(200, 27, 40, 0.9);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.btn-ghost:active {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.16);
}

.btn-sm {
  padding: 0.65rem 1.2rem;
  font-size: 0.78rem;
  white-space: nowrap;
}

.btn-block {
  width: 100%;
}

/* ------------------------------------------------------------- header --- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgb(5, 15, 38);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-block: 1.35rem;
  transition: padding 0.3s ease;
}

/* The bar is tallest at the top of the page and shrinks on scroll. */
.site-header.is-scrolled {
  box-shadow: 0 12px 30px -20px rgba(0, 0, 0, 0.9);
}

.site-header.is-scrolled .header-inner {
  padding-block: 0.7rem;
}

.brand {
  display: block;
  flex: none;
  line-height: 0;
  border-radius: 7px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.brand img {
  display: block;
  width: auto;
  height: 60px;
  transition: height 0.3s ease;
}

.site-header.is-scrolled .brand img {
  height: 46px;
}

.brand:hover {
  transform: translateY(-1px);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}

/* At mobile widths the bar is brand | language | menu button. */
.header-inner > .lang-switch {
  margin-left: auto;
}

@media (min-width: 881px) {
  .header-inner > .lang-switch {
    margin-left: 0;
    padding-left: 1.25rem;
    border-left: 1px solid var(--hairline);
    border-radius: 0;
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
  }
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  position: relative;
  color: #dbe3f0;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.nav-list a:hover {
  color: #fff;
}

.nav-list a:hover::after {
  transform: scaleX(1);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: none;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(10, 32, 71, 0.35);
}

.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 3px 5px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
  transition:
    opacity 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.lang-switch button:hover {
  opacity: 0.95;
  background: rgba(255, 255, 255, 0.08);
}

.lang-switch button:active {
  background: rgba(255, 255, 255, 0.16);
}

.lang-switch button:focus-visible {
  opacity: 1;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.lang-switch button[aria-pressed="true"] {
  opacity: 1;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.85);
}

.lang-switch button[aria-pressed="true"]:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.22);
}

.flag-icon {
  display: block;
  width: 22px;
  height: 15px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
  flex: none;
}

.nav-toggle {
  display: none;
  flex: none;
  width: 44px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.nav-toggle:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  transition:
    transform 0.3s ease,
    opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------- hero --- */
/* One full-viewport composition: a still photograph of the truck, the
   headline block sitting low-left over a scrim that only covers the corner it
   needs, and a mono fact strip pinning the bottom edge. The frame keeps its
   contrast — the truck and its livery must read, not sit behind a veil. */

.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--navy-900);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Narrow crops must keep the trailer and its livery, not the empty road. */
  object-position: 60% 46%;
  pointer-events: none;
}

/* Only two layers, both anchored bottom-left: one behind the headline block,
   one thin footing under the fact strip that dissolves the photograph into
   the navy section below it. Everything above and to the right stays clear. */
.hero-ground {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      140% 92% at 6% 98%,
      rgba(5, 15, 38, 0.96) 0%,
      rgba(5, 15, 38, 0.86) 30%,
      rgba(5, 15, 38, 0.58) 52%,
      rgba(5, 15, 38, 0.24) 72%,
      transparent 90%
    ),
    linear-gradient(
      0deg,
      var(--navy-900) 0%,
      rgba(5, 15, 38, 0.72) 7%,
      rgba(5, 15, 38, 0.34) 16%,
      rgba(5, 15, 38, 0.08) 26%,
      transparent 38%
    );
}

/* Portrait crops put the copy over the middle of the frame, so the scrim has
   to be vertical there — still bottom-weighted, still open at the top. */
@media (max-width: 768px) {
  .hero-ground {
    background: linear-gradient(
      0deg,
      var(--navy-900) 0%,
      rgba(5, 15, 38, 0.92) 22%,
      rgba(5, 15, 38, 0.74) 42%,
      rgba(5, 15, 38, 0.4) 60%,
      rgba(5, 15, 38, 0.12) 78%,
      transparent 92%
    );
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-top: calc(var(--header-h) + clamp(1.5rem, 5vh, 3rem));
  padding-bottom: clamp(1.25rem, 3.5vh, 2.25rem);
}

/* Bottom-left, not centred: the scrim it sits on is a corner, not a veil. */
.hero-copy {
  margin-top: auto;
  padding-block: clamp(1.5rem, 4vh, 3rem) clamp(1rem, 3vh, 2rem);
  max-width: 46rem;
}

.hero .display {
  font-size: clamp(2rem, 5.6vw, 4.2rem);
  color: #fff;
  text-wrap: balance;
}

.hero-lead {
  max-width: 34ch;
  margin: clamp(1.25rem, 3vh, 2rem) 0 clamp(1.75rem, 4vh, 2.5rem);
  color: #dbe3f0;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.6;
}

.btn-lg {
  padding: 1.1rem 2.1rem;
  font-size: 0.95rem;
}

/* The strip is the bottom edge of the first screen — a full stop, not a
   teaser for what follows. */
.hero-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  /* .hero-copy owns the single auto margin that pushes the block down; a
     second one here would split the free space instead of pinning it. */
  margin-top: 0;
  padding-top: clamp(1rem, 2.5vh, 1.5rem);
  border-top: 1px solid var(--hairline);
}

.hero-strip-facts {
  margin: 0;
  max-width: none;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b6c4dc;
}

.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  padding: 0.35rem 0;
  transition: color 0.2s ease;
}

.hero-scroll:hover {
  color: var(--red-soft);
}

.hero-scroll-arrow {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.hero-scroll:hover .hero-scroll-arrow {
  transform: translateY(3px);
}

/* ----------------------------------------------------------- sections --- */

.section {
  padding-block: var(--space-6);
}

.section-paper {
  background: var(--paper);
}

.section-white {
  background: var(--white);
}

.section-navy {
  background: var(--navy-900);
  color: #fff;
}

.section-head {
  max-width: 52ch;
  margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
}

.section-head .lead {
  margin-top: var(--space-3);
  margin-bottom: 0;
}

/* ------------------------------------------------- certificates --- */
/* The two documented facts read as sentences, not as a badge wall; anything
   the client has not supplied yet sits below them, flagged on screen. */

.credentials {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--hairline);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.credentials > div {
  background: var(--navy-900);
  padding: var(--space-3) var(--space-3) var(--space-3) 0;
}

.credentials > div:nth-child(even) {
  padding-left: var(--space-3);
}

.credentials dt {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-soft);
  margin-bottom: 0.4rem;
}

.credentials dd {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.6;
  color: #c3cee0;
  max-width: 46ch;
}

.credentials strong {
  color: #fff;
  font-weight: 600;
}

/* ----------------------------------------------------------- services --- */
/* Weighted, not a grid of equals: the full load is the lead entry and the
   other six run under it as a numbered list, beside one framed photograph
   that follows whichever entry is hovered or focused. */

.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.services-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-self: stretch;
}

/* Seven entries make a tall column; the frame rides alongside it instead of
   stranding the side column at the top of the section, so the photograph is
   still on screen when the visitor reaches the seventh service. */
.services-figure {
  margin: 0;
  position: sticky;
  top: calc(var(--header-h-scrolled) + var(--space-3));
}

/* One frame, seven photographs stacked inside it. The frame holds the 16:9
   aspect of the sources, so nothing is cropped and a swap moves nothing. */
.services-gallery {
  position: relative;
  aspect-ratio: 16 / 9;
}

.services-photo {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}

/* Without the script the lead photograph is simply the one on show; with it,
   the entry under the pointer or the keyboard focus decides. */
.services-photo.is-default,
html.js .services-photo.is-current {
  opacity: 1;
}

html.js .services-photo.is-default:not(.is-current) {
  opacity: 0;
}

.services-btn {
  margin: 1rem auto;
}

.service-lead,
.service-row {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0 var(--space-3);
  align-items: start;
}

.service-lead {
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--hairline-dark);
}

.service-index {
  margin: 0;
  max-width: none;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--red);
  padding-top: 0.35rem;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.service-lead .service-index {
  font-size: 1.35rem;
}

.service-lead h3 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.service-lead .service-text {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin: 0;
}

.service-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-row {
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--hairline-dark);
  transition: background-color 0.3s ease;
}

/* The whole entry is the target, and a keyboard tab through the list has to
   read exactly like a pointer moving down it. */
.service-row:hover,
.service-row:focus-within,
.service-lead:hover,
.service-lead:focus-within {
  background: rgba(255, 255, 255, 0.6);
}

.service-row:hover .service-index,
.service-row:focus-within .service-index,
.service-lead:hover .service-index,
.service-lead:focus-within .service-index {
  transform: translateX(4px);
}

.service-row h3 {
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}

.service-row .service-text {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

/* ------------------------------------------------------------ o firme --- */

.reasons {
  list-style: none;
  margin: var(--space-5) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4) clamp(2rem, 4vw, 3.5rem);
}

.reasons li {
  padding-left: var(--space-3);
  border-left: 2px solid rgba(255, 255, 255, 0.14);
  position: relative;
}

.reasons li::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 0.55rem;
  width: 2px;
  height: 26px;
  background: var(--red);
}

.reasons h3 {
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.55rem;
}

.reasons p {
  margin: 0;
  color: #a9b8d0;
  font-size: 0.97rem;
}

/* Photographs are framed content, never a gradient-washed backdrop. The frame
   keeps its own navy ground, so a slow or failed load never flashes white. */
.photo-figure {
  margin: 0;
}

.photo-frame {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-600);
  border: 1px solid var(--hairline);
}

.section-paper .photo-frame,
.section-white .photo-frame {
  border-color: var(--hairline-dark);
  box-shadow: var(--shadow-soft);
}

.photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-caption {
  margin: var(--space-1) 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}

.section-paper .photo-caption {
  color: var(--ink-soft);
}

/* ------------------------------------------------------------ contact --- */

.contact-block-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--space-3);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
}

.contact-address {
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.7;
}

.contact-address strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.contact-address-note {
  margin: var(--space-3) 0 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  min-height: 360px;
  background: var(--navy-600);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

/* Two people, both on screen at once — no pager, no hidden cards. */
.contact-people {
  margin-top: var(--space-5);
}

.people-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.person-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-4);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--navy-900);
  color: #fff;
  transition: border-color 0.25s ease;
}

.person-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.person-card p {
  margin: 0;
  max-width: none;
}

.person-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 1.85rem);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.person-role {
  margin-top: 0.35rem !important;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-soft);
}

.person-lines {
  margin: 0;
  display: grid;
  gap: var(--space-3);
}

.person-lines div {
  padding-top: var(--space-3);
  border-top: 1px solid var(--hairline);
}

.person-lines dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.35rem;
}

.person-lines dd {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.person-lines a {
  color: #fff;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  transition:
    color 0.2s ease,
    text-decoration-color 0.2s ease;
}

.person-lines a:hover {
  color: var(--red-soft);
  text-decoration-color: currentColor;
}

/* ----------------------------------------------------------- partners --- */
/* Equal tiles: no partner outranks another. A tile holds either the name set
   in display type or, once supplied, the partner's official logo. */

.partner-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: var(--space-3);
}

.partner-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: clamp(104px, 14vw, 132px);
  padding: var(--space-3);
  border: 1px solid var(--hairline-dark);
  border-radius: var(--radius);
  background: var(--paper);
  text-align: center;
  transition:
    border-color 0.25s ease,
    transform 0.25s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.partner-tile:hover {
  border-color: rgba(10, 32, 71, 0.3);
  transform: translateY(-2px);
}

.partner-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.partner-entity {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.partner-logo {
  display: block;
  max-width: 100%;
  width: auto;
  height: 40px;
  object-fit: contain;
}

/* Optical balance: the wide DHL bar would dominate at the same height. */
.partner-logo--dsv {
  height: 42px;
}

.partner-logo--raben {
  height: 38px;
}

.partner-logo--dhl {
  height: 26px;
}

.partner-tile .partner-entity {
  margin-top: 0.35rem;
}

/* ------------------------------------------------------------ careers --- */
/* The client's three questions lead, numbered like the services; the open
   position sits beside them as a navy card that ends in one action: e-mail
   the CV. */

.careers-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.careers-questions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
  counter-reset: careers-q;
}

.careers-questions li {
  counter-increment: careers-q;
  position: relative;
  padding: var(--space-3) 0 0 3.25rem;
  border-top: 1px solid var(--hairline-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.3;
  color: var(--ink);
}

.careers-questions li::before {
  content: "0" counter(careers-q);
  position: absolute;
  left: 0;
  top: calc(var(--space-3) + 0.2em);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--red);
}

.careers-verdict {
  margin: var(--space-4) 0 var(--space-3);
  padding: var(--space-3) 0 0;
  border-top: 2px solid var(--navy);
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.careers-verdict em {
  font-style: normal;
  color: var(--red);
}

.careers-about {
  color: var(--ink-soft);
  margin: 0;
}

.job-card {
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  border-radius: var(--radius);
  background: var(--navy-900);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.job-card p {
  max-width: none;
}

.job-kicker,
.job-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.job-kicker {
  color: var(--red-soft);
}

.job-label {
  color: var(--steel);
  margin-top: var(--space-4);
}

.job-title {
  font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}

.job-terms {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
}

.job-terms li {
  position: relative;
  padding: 0.8rem 0 0.8rem 1.5rem;
  border-top: 1px solid var(--hairline);
  color: #dbe3f0;
}

.job-terms li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.45rem;
  width: 0.7rem;
  height: 3px;
  background: var(--red);
  transform: skewX(-26deg);
}

.job-mail {
  margin: var(--space-3) 0 0;
  font-size: 0.9rem;
  color: #a9b8d0;
  text-align: center;
}

.job-mail a {
  color: #fff;
  font-weight: 500;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.job-mail a:hover {
  color: var(--red-soft);
  text-decoration-color: currentColor;
}

@media (max-width: 960px) {
  .careers-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------ enquiry form --- */
/* Five fields: where from, where to, what it is, who you are, where to
   answer. Nothing else — the rest is settled in the reply. */

.contact-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-top: var(--space-5);
}

.contact-form-intro p {
  color: var(--ink-soft);
}

.contact-direct {
  font-size: 0.92rem;
}

.contact-direct a {
  white-space: nowrap;
}

.contact-form {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--hairline-dark);
  box-shadow: var(--shadow-soft);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 var(--space-3);
}

.field {
  margin-bottom: var(--space-3);
}

.field > label {
  display: block;
  margin-bottom: 0.45rem;
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--navy);
}

.req {
  color: var(--red);
  font-weight: 600;
  padding-left: 0.1em;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.82rem 1rem;
  border: 1px solid rgba(10, 32, 71, 0.16);
  border-radius: 12px;
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.field input:hover,
.field textarea:hover {
  border-color: rgba(10, 32, 71, 0.3);
  background: var(--white);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  background: var(--white);
  border-color: var(--red);
}

/* Validation shows only after the visitor has actually had a go at a field. */
.field input:user-invalid,
.field textarea:user-invalid,
.field.is-invalid input,
.field.is-invalid textarea {
  border-color: var(--red);
  background: rgba(226, 33, 48, 0.04);
}

.field input:user-valid {
  border-color: rgba(10, 32, 71, 0.28);
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.hint {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
  max-width: none;
}

.form-footer {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--hairline-dark);
}

.form-footnote {
  margin: var(--space-2) 0 0;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.form-note {
  margin: 0 0 var(--space-3);
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.form-status {
  margin: 0 0 var(--space-3);
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  min-height: 0;
  transition: none;
}

.form-status[data-state="error"],
.form-status[data-state="success"] {
  padding: 0.8rem 1rem;
  border-radius: 10px;
}

.form-status[data-state="error"] {
  background: rgba(226, 33, 48, 0.09);
  border-left: 3px solid var(--red);
  color: #a3121e;
}

.form-status[data-state="success"] {
  background: rgba(10, 32, 71, 0.06);
  border-left: 3px solid var(--navy);
  color: var(--navy);
}

/* ----------------------------------------------------- exchange IDs --- */
/* Compact: the numbers a dispatcher looks us up by, and nothing else. */

.exchange {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--hairline-dark);
}

.exchange-note {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.exchange-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  gap: var(--space-2) var(--space-3);
}

.exchange-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--hairline-dark);
}

.exchange-label {
  flex: none;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.exchange-value {
  margin-right: auto;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--navy);
  overflow-wrap: anywhere;
}

.copy-btn {
  flex: none;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--hairline-dark);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease;
}

.copy-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

.copy-btn:active {
  background: rgba(226, 33, 48, 0.08);
}

.copy-btn[data-state="done"] {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.copy-feedback {
  margin: var(--space-2) 0 0;
  min-height: 1.4em;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}

.copy-feedback[data-state="error"] {
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.85rem;
}

/* ------------------------------------------------------------- footer --- */

.site-footer {
  background: var(--navy-900);
  color: #fff;
  padding-top: clamp(3rem, 6vw, 4.5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: var(--space-5);
}

.footer-brand img {
  display: block;
  width: auto;
  height: 52px;
  border-radius: 7px;
}

.footer-tag {
  margin: var(--space-3) 0 var(--space-3);
  max-width: 34ch;
  font-size: 0.92rem;
  color: #9fb0cb;
}

.footer-head {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-soft);
  margin-bottom: var(--space-2);
}

.footer-facts,
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-facts li {
  font-size: 0.82rem;
  line-height: 1.75;
  color: #b6c3d8;
}

.footer-links {
  margin-top: var(--space-3);
  display: grid;
  gap: 0.55rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: #fff;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  transition:
    color 0.2s ease,
    text-decoration-color 0.2s ease;
}

.footer-links a:hover {
  color: var(--red-soft);
  text-decoration-color: currentColor;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  padding-block: var(--space-3);
  border-top: 1px solid var(--hairline);
}

.footer-base-only {
  border-top: 0;
  padding-block: var(--space-4);
}

.footer-base p {
  margin: 0;
  max-width: none;
  font-size: 0.8rem;
  color: var(--steel);
}

/* -------------------------------------------------------- legal pages --- */

.legal-main {
  padding-top: calc(var(--header-h) + 2.5rem);
  padding-bottom: var(--space-6);
  background: var(--paper);
}

.legal-head {
  max-width: 80ch;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: var(--space-4);
}

.legal-toc a {
  padding: 0.45rem 1rem;
  border: 1px solid var(--hairline-dark);
  border-radius: 999px;
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-decoration: none;
  color: var(--navy);
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

.legal-toc a:hover {
  border-color: var(--red);
  color: var(--red);
}

.legal-section {
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  /* Adds to the html scroll-padding so a TOC jump leaves air under the bar,
     as the padded sections of the home page do. */
  scroll-margin-top: 1.5rem;
}

.legal-h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  overflow-wrap: break-word;
}

.legal-callout {
  max-width: 74ch;
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-4);
  background: var(--white);
  border-left: 4px solid var(--red);
  border-radius: 0 14px 14px 0;
  box-shadow: var(--shadow-soft);
}

.legal-callout p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--ink-soft);
  max-width: none;
}

.clause {
  max-width: 82ch;
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.clause-label {
  margin: 0 0 var(--space-2);
  max-width: none;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}

.clause-text {
  margin: 0;
  max-width: none;
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--ink);
  hyphens: auto;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-3);
}

.legal-dl {
  margin: 0;
  padding: var(--space-4);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.legal-dl dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.3rem;
}

.legal-dl dd {
  margin: 0 0 var(--space-3);
  font-size: 0.98rem;
  line-height: 1.55;
}

.legal-dl dd:last-child {
  margin-bottom: 0;
}

.back-link {
  margin-top: var(--space-4);
}

.back-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--hairline-dark);
  border-radius: 999px;
  background: var(--white);
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

.back-link a:hover {
  color: var(--red);
  border-color: var(--red);
}

/* ------------------------------------------------------------- motion --- */

html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.7, 0.3, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------- responsive --- */

@media (min-width: 1440px) {
  :root {
    --shell: 1280px;
  }
}

@media (max-width: 1340px) {
  .header-inner {
    gap: 1rem;
  }

  .nav-list {
    gap: 1.1rem;
  }

  .nav-list a {
    font-size: 0.84rem;
  }
}

@media (max-width: 1080px) {
  .nav-list {
    gap: 1rem;
  }

  .nav-list a {
    font-size: 0.8rem;
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 90px;
    --header-h-scrolled: 90px;
  }

  /* Keep the rendered bar height in step with --header-h. */
  .brand img,
  .site-header.is-scrolled .brand img {
    height: 46px;
  }

  .services-grid,
  .contact-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  /* Full width means the list no longer runs beside the photograph — and a
     tap is not a hover. Only the lead photograph is rendered here, which
     also keeps the other six from ever being fetched on a phone. */
  .services-figure {
    position: static;
  }

  .services-photo:not(.is-default) {
    display: none;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 880px) {
  .nav-toggle {
    display: flex;
  }

  /* The panel hangs off the bottom edge of the header bar. */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    margin: 0;
    padding: 1.75rem var(--gutter) 3rem;
    background: var(--navy-900);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.28s ease,
      transform 0.28s ease,
      visibility 0.28s;
  }

  .nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
    /* Opening must not wait on visibility, or the first link cannot take
       focus yet; only closing keeps it until the fade has finished. */
    transition:
      opacity 0.28s ease,
      transform 0.28s ease,
      visibility 0s;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list li {
    border-bottom: 1px solid var(--hairline);
  }

  .nav-list a {
    display: block;
    padding: 0.95rem 0;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
  }

  .nav-list a::after {
    display: none;
  }

  /* The panel is anchored to --header-h, so the bar must not shrink while it
     is open — otherwise a navy gap appears above the menu. */
  .site-header.is-scrolled .header-inner {
    padding-block: 1.35rem;
  }
}

@media (max-width: 900px) {
  .contact-grid,
  .people-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .credentials {
    grid-template-columns: minmax(0, 1fr);
  }

  .credentials > div,
  .credentials > div:nth-child(even) {
    padding-left: 0;
  }

  .service-lead,
  .service-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .service-index,
  .service-lead .service-index {
    padding-top: 0;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 1rem;
  }

  /* Narrow enough that section headings can outgrow their column too. */
  .section-title,
  .legal-h2 {
    hyphens: auto;
  }

  .hero-inner {
    padding-top: calc(var(--header-h) + 2rem);
  }

  .hero-copy .btn {
    width: 100%;
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .contact-map,
  .contact-map iframe {
    min-height: 300px;
  }

  .clause,
  .legal-dl {
    padding: var(--space-3);
  }
}

/* Locks the page behind the open mobile menu instead of letting it scroll. */
html.nav-open,
html.nav-open body {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* -------------------------------------------------------------- print --- */
/* The legal page is the one people actually print or file. */

@media print {
  :root {
    --header-h: 0px;
    --header-h-scrolled: 0px;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 10.5pt;
    line-height: 1.5;
  }

  .site-header,
  .nav,
  .skip-link,
  .legal-toc,
  .back-link,
  .footer-grid,
  .lang-switch,
  .contact-map,
  .copy-btn,
  .contact-form {
    display: none !important;
  }

  .legal-main,
  .section-paper,
  .section-white {
    background: #fff;
    padding-top: 0;
  }

  .clause,
  .legal-dl,
  .legal-callout {
    box-shadow: none;
    border: 1px solid #999;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .legal-grid {
    grid-template-columns: 1fr 1fr;
  }

  .legal-h2,
  .section-title {
    color: #000;
  }

  .section-title::after {
    display: none;
  }

  a {
    text-decoration: none;
    color: #000;
  }

  .site-footer {
    background: #fff;
    color: #000;
    border-top: 1px solid #999;
  }

  .footer-base p {
    color: #000;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
  }
}
