:root {
  --navy: #040442;
  --hero-deep: #010220;
  --red: #e90032;
  --flag-red: #ae1c28;
  --flag-blue: #21468b;
  --text-muted: #e5e5ec;
  --content-max: 1280px;
  --body-color: #1F222D;
  --body-font-family: "Roboto Flex", system-ui, sans-serif;
  --body-font-size: 1rem;
  --body-line-height: 170%;
  --body-font-weight: 300;
  --body-font-variation-settings: "GRAD" 0, "XOPQ" 96, "XTRA" 495, "YOPQ" 79,
    "YTAS" 750, "YTDE" -198, "YTFI" 730, "YTLC" 527, "YTUC" 712, "slnt" 0,
    "wdth" 100;
  --section-h2-size: clamp(2.5rem, 4.6vw, 4.5rem);

  /* Figma entrance timing (single 3s master timeline) */
  --card-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --card-duration: 0.64s;
  --bg-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* High-contrast keyboard focus — never remove without a visible replacement */
:root {
  --focus-ring: 2px solid var(--red);
  --focus-ring-offset: 3px;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: #fff;
  color: #1f222d;
  font-family: "Roboto Flex", sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-radius: 0 0 8px 8px;
  transform: translateY(-120%);
  transition: transform 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

.brand:focus-visible,
.menu a:focus-visible,
.menu-dropdown-toggle:focus-visible,
.menu-dropdown-panel a:focus-visible,
.footer-logo:focus-visible,
.footer-links a:focus-visible,
.footer-contact-cta:focus-visible,
a.card:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

#main-content:focus {
  outline: none;
}

body {
  min-height: 100vh;
  background-color: var(--navy);
  background-image: radial-gradient(
    ellipse 90% 70% at 50% 0%,
    #040442 0%,
    #020221 72%
  );
  color: #fff;
  font-family: var(--body-font-family);
  font-size: var(--body-font-size);
  font-style: normal;
  font-weight: var(--body-font-weight);
  font-variation-settings: var(--body-font-variation-settings);
  line-height: var(--body-line-height);
  position: relative;
}

h2 {
  line-height: 1.1;
}

/* ---------- Hero section wrapper (contains the navy area + stripes) ---------- */
.hero-section {
  position: relative;
  /* Pull the hero up behind the (transparent) navbar so the video shows
     through the menu instead of a solid navy strip. */
  margin-top: -80px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--hero-deep);
  /* Soft brand-navy ambient light under the video */
  background-image:
    radial-gradient(
      ellipse 75% 55% at 70% 35%,
      rgba(4, 4, 66, 0.55) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 90% 70% at 50% 0%,
      #040442 0%,
      var(--hero-deep) 72%
    );
}

/* Looping background video, sitting behind the navy overlay.
   Oversized and shifted up so overflow:hidden on .hero-section clips the
   "TOELEVERING ONLINE" watermark in the video's top-right corner. The section
   is always taller than 16:9 (it stacks the hero + country cards), so with
   object-fit:cover the full video HEIGHT is shown and the width is centre-
   cropped. The watermark sits at ~0-11% from the top and ~80-96% from the
   left; shifting up 24% (of a 132%-tall element => visible top starts at
   0.24/1.32 = 18.2% of the frame) drops the whole watermark band above the
   clip line, while the centre-crop also removes it horizontally. */
.hero-video {
  position: absolute;
  top: -24%;
  left: -16%;
  width: 132%;
  height: 132%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* Hide the browser's built-in play/pause, PiP and start-playback overlays
   so the background video shows no controls and cannot be stopped. */
.hero-video::-webkit-media-controls,
.hero-video::-webkit-media-controls-enclosure,
.hero-video::-webkit-media-controls-panel,
.hero-video::-webkit-media-controls-play-button,
.hero-video::-webkit-media-controls-start-playback-button,
.hero-video::-webkit-media-controls-timeline,
.hero-video::-webkit-media-controls-current-time-display,
.hero-video::-webkit-media-controls-time-remaining-display,
.hero-video::-webkit-media-controls-mute-button,
.hero-video::-webkit-media-controls-toggle-closed-captions-button,
.hero-video::-webkit-media-controls-volume-slider {
  display: none !important;
  -webkit-appearance: none;
  appearance: none;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Navy "wallpaper" that stays solid behind the headline (left) and fades
   toward the right / red stripes so the video is clearly recognizable there.
   Brand #040442 as belichtingskleur: soft ambient glows + horizontal wash
   (keeps text readable without flattening the video). */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 55% 70% at 12% 45%,
      rgba(4, 4, 66, 0.5) 0%,
      transparent 68%
    ),
    radial-gradient(
      ellipse 50% 45% at 92% 75%,
      rgba(4, 4, 66, 0.32) 0%,
      transparent 60%
    ),
    linear-gradient(
      110deg,
      var(--hero-deep) 0%,
      rgba(4, 4, 66, 0.94) 30%,
      rgba(4, 4, 66, 0.7) 48%,
      rgba(4, 4, 66, 0.4) 72%,
      rgba(4, 4, 66, 0.22) 100%
    );
}

/* ---------- Background diagonal vectors ---------- */
/* Reproduces the Figma "Main Content" clip box (right-anchored, scales with viewport).
   All units are vw / % so the stripes scale proportionally on resize. */
.bg-vectors {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 79.63vw; /* 1376 / 1728 */
  height: 44.85vw; /* 775 / 1728 */
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
  transform-origin: bottom right;
  animation: bgRise 1.2s var(--bg-ease) both;
}

/* SVG placed at Figma's natural scale/offset inside the clip box.
   height:auto + viewBox aspect-ratio keeps diagonals at a true 45°. */
.bg-vectors img {
  position: absolute;
  left: 6.47%;
  top: -3.45%;
  width: 161.36%;
  height: auto;
  aspect-ratio: 2220.26 / 1205.16;
  max-width: none;
  display: block;
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* White version, applied once the page is scrolled */
.navbar.scrolled {
  background-color: #fff;
  border-bottom-color: #e5e7eb;
}

.navbar.scrolled .menu a {
  color: #1F222D;
}

.navbar.scrolled .menu a:hover {
  color: var(--red);
}

.navbar-inner {
  max-width: var(--content-max);
  height: 80px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.logo {
  width: clamp(70px, 5.8vw, 100px);
  height: auto;
  aspect-ratio: 100 / 46;
  display: block;
  transition: opacity 0.3s ease;
}

/* Two logos crossfade between navy (white logo) and white (colored logo) navbar */
.logo--dark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.navbar.scrolled .logo--light {
  opacity: 0;
}

.navbar.scrolled .logo--dark {
  opacity: 1;
}

/* Dark navbar when scrolled over the navy timeline section */
.navbar.scrolled.navbar--on-dark {
  background-color: #010220;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.navbar.scrolled.navbar--on-dark .menu a {
  color: #fff;
}

.navbar.scrolled.navbar--on-dark .menu a:hover {
  color: var(--red);
}

.navbar.scrolled.navbar--on-dark .logo--light {
  opacity: 1;
}

.navbar.scrolled.navbar--on-dark .logo--dark {
  opacity: 0;
}

.menu {
  display: flex;
  gap: 32px;
  align-items: center;
}

.menu a {
  color: #fff;
  text-decoration: none;
  font-family: "Roboto Flex", sans-serif;
  font-weight: 500;
  font-variation-settings: normal;
  font-size: 16px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.menu a:hover {
  color: var(--red);
}

.menu-dropdown {
  position: relative;
}

.menu-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-family: "Roboto Flex", sans-serif;
  font-weight: 500;
  font-variation-settings: normal;
  font-size: 16px;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease;
}

.menu-dropdown-toggle:hover,
.menu-dropdown.is-open .menu-dropdown-toggle {
  color: var(--red);
}

.menu-dropdown-chevron {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.menu-dropdown.is-open .menu-dropdown-chevron {
  transform: rotate(-135deg) translateY(-2px);
}

.menu-dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 240px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--hero-deep);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  z-index: 60;
}

.menu-dropdown-panel[hidden] {
  display: none;
}

.menu-dropdown-panel a,
.menu-dropdown-soon {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  font-family: "Roboto Flex", sans-serif;
  font-variation-settings: normal;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  color: #fff;
  transition: background 0.2s ease, color 0.2s ease;
}

.menu-dropdown-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  flex-shrink: 0;
}

.menu-dropdown-label {
  flex: 1;
  min-width: 0;
}

.menu-dropdown-launch {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.menu-dropdown-panel a:hover .menu-dropdown-launch {
  opacity: 1;
}

.menu-dropdown-panel a:hover,
.menu-dropdown-panel a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--red);
}

.menu-dropdown-panel a:focus-visible {
  outline-offset: -2px;
}

.menu-dropdown-soon {
  color: rgba(255, 255, 255, 0.45);
  cursor: default;
}

.navbar.scrolled .menu-dropdown-toggle {
  color: #1F222D;
}

.navbar.scrolled.navbar--on-dark .menu-dropdown-toggle {
  color: #fff;
}

/* White Countries panel on the scrolled (white) menubar */
.navbar.scrolled:not(.navbar--on-dark) .menu-dropdown-panel {
  background: #fff;
  border-color: #e5e7eb;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.navbar.scrolled:not(.navbar--on-dark) .menu-dropdown-panel a,
.navbar.scrolled:not(.navbar--on-dark) .menu-dropdown-soon {
  color: #1F222D;
}

.navbar.scrolled:not(.navbar--on-dark) .menu-dropdown-panel a:hover,
.navbar.scrolled:not(.navbar--on-dark) .menu-dropdown-panel a:focus-visible {
  background: rgba(31, 34, 45, 0.05);
  color: var(--red);
}

.navbar.scrolled:not(.navbar--on-dark) .menu-dropdown-soon {
  color: rgba(31, 34, 45, 0.45);
}

.navbar.scrolled:not(.navbar--on-dark) .menu-dropdown-launch {
  filter: brightness(0);
  opacity: 0.55;
}

.navbar.scrolled:not(.navbar--on-dark) .menu-dropdown-panel a:hover .menu-dropdown-launch {
  opacity: 0.85;
}

#about-provix,
#timeline,
#platform {
  scroll-margin-top: 80px;
}

/* ---------- Layout ---------- */
main {
  position: relative;
  z-index: 3;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}

.hero-section > main {
  width: 100%;
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-top: 120px;
  min-height: 0;
}

  .hero-text {
    flex: 1 1 560px;
    min-width: 0;
    max-width: 722px;
  }

.title {
  font-family: "Raleway", sans-serif;
  font-weight: 800;
  line-height: 0.96;
  font-size: clamp(3.125rem, calc(1.5rem + 5.25vw), 6.5rem);
  letter-spacing: 2px;
}

.title .line {
  display: block;
  color: #fff;
}

.title .accent {
  color: var(--red);
}

.lead {
  margin-top: clamp(12px, 2vh, 24px);
  max-width: 512px;
  color: var(--text-muted);
  font-family: var(--body-font-family);
  font-size: var(--body-font-size);
  font-weight: var(--body-font-weight);
  font-variation-settings: var(--body-font-variation-settings);
  line-height: var(--body-line-height);
}

.hero-image {
  flex: 0 1 558px;
  max-width: 558px;
}

.hero-carousel {
  position: relative;
  width: 100%;
  background: transparent;
}

.hero-carousel-viewport {
  overflow: hidden;
  width: 100%;
  height: clamp(240px, 42vw, 485px);
  background: transparent;
}

.hero-carousel-track {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: transparent;
  /* -100% is relative to the track's border box (= viewport height) */
  transform: translate3d(0, calc(var(--hero-slide, 0) * -100%), 0);
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  backface-visibility: hidden;
}

.hero-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
  border-radius: 8px;
}

.hero-carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  background: transparent;
  image-rendering: auto;
  border-radius: 8px;
  transform: scale(1);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) {
  .hero-carousel-slide:hover img {
    transform: scale(1.04);
  }
}

/* Keyboard equivalent: focused slide, wrapping link, or carousel dots */
.hero-carousel-slide:focus-within img,
a:focus-within .hero-carousel-slide img,
.hero-carousel:has(.hero-carousel-dot:focus-visible)
  .hero-carousel-slide[aria-hidden="false"]
  img {
  transform: scale(1.04);
}

.hero-carousel-dots {
  position: absolute;
  top: 50%;
  right: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
}

.hero-carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-carousel-dot:hover {
  background: rgba(255, 255, 255, 0.55);
}

.hero-carousel-dot.is-active {
  background: var(--red);
  transform: scale(1.15);
}

.hero-carousel-dot:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

/* ---------- Country / glass cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 72px 0 112px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 12px 32px 0 rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform-origin: center;
  will-change: transform;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.35s ease, border-color 0.35s ease;
}

a.card,
a.card:link,
a.card:visited,
a.card:hover,
a.card:focus,
a.card:focus-visible,
a.card:active {
  text-decoration: none;
  color: inherit;
}

/* Grow on hover / keyboard focus (links only) */
.card:hover,
a.card:focus-visible {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 22px 48px 0 rgba(0, 0, 0, 0.22);
}

.card--no-hover {
  cursor: default;
}

.card--no-hover:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 12px 32px 0 rgba(0, 0, 0, 0.1);
}

/* First card has a solid white border in the design */
.card:first-child {
  border-color: #fff;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.card-title {
  flex: 1 1 0;
  min-width: 0;
  font-family: "Raleway", sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 36px;
  color: #fff;
}

.card-logo {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  height: 32px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  display: block;
}

/* Wider dual-tone TO mark — slightly shorter so it fits the card header */
.card-logo--to {
  height: 22px;
}

.ext-link {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.flag {
  flex-shrink: 0;
}

.flag-img {
  width: 24px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
  display: block;
}

.flag-fr {
  width: 32px;
  height: 20px;
}

/* Dutch flag built from stripes */
.flag-nl {
  width: 24px;
  height: 16px;
  border-radius: 2px;
  overflow: hidden;
  border: 0.5px solid rgba(255, 255, 255, 0.25);
  display: flex;
  flex-direction: column;
}

.flag-nl span {
  flex: 1 1 0;
  width: 100%;
}

.flag-nl-red {
  background: var(--flag-red);
}

.flag-nl-white {
  background: #fff;
}

.flag-nl-blue {
  background: var(--flag-blue);
}

.divider {
  height: 1px;
  width: 100%;
  background: rgba(255, 255, 255, 0.2);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.location {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pin {
  width: 14px;
  height: 14px;
  display: block;
}

.location span {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

.badge {
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- Stats section (counters, revealed on scroll) ---------- */
.stats {
  background: #fff;
}

.stats-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px;
  /* entrance state (revealed by .in-view) */
  opacity: 0;
  transform: translateY(24px) scale(0.92);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i) * 0.12s);
}

.stats.in-view .stat {
  opacity: 1;
  transform: none;
}

.stat-number {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 60px;
  line-height: 60px;
  color: var(--red);
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  margin-top: 12px;
  font-family: "Roboto Flex", sans-serif;
  font-weight: 400;
  font-variation-settings: normal;
  font-size: 12px;
  line-height: 16px;
  color: #1F222D;
  opacity: 0.45;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2.4px;
}

/* ---------- About section ---------- */
.about {
  position: relative;
  background: #fff;
  color: var(--body-color);
  overflow: hidden;
}

.about-inner {
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 120px 24px;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 72px;
  align-items: start;
}

/* About Provix / platform: copy left, media right on desktop (DOM order) */
.about-inner--with-media {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}

.about-copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.about-copy .about-title {
  margin-top: 24px;
}

.about-copy .about-body {
  max-width: 38rem;
}

.about-media-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: stretch;
  min-width: 0;
}

/* Platform: pair + panorama share one column width / gaps */
.about-media-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: stretch;
  min-width: 0;
  width: 100%;
}

.about-media-stack .about-media-pair {
  grid-column: 1 / -1;
  display: contents;
}

.about-media-stack .about-media--panorama {
  grid-column: 1 / -1;
}

.about-media {
  margin: 0;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: 560px;
  background: #e8eaef;
}

.about-media-pair .about-media {
  width: 100%;
  max-height: none;
  aspect-ratio: 3 / 4;
}

.about-media-stack .about-media--office,
.about-media-stack .about-media--hq {
  width: 100%;
  max-height: none;
  aspect-ratio: 4 / 5;
  min-height: 0;
}

.about-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  transform: scale(1);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) {
  .about-media:hover img {
    transform: scale(1.04);
  }
}

/* Match hover zoom for keyboard users when media sits inside a focusable link */
a:focus-within .about-media img,
.about-media:focus-within img {
  transform: scale(1.04);
}

.about-media--floor img {
  object-position: 42% 45%;
}

/* Wide HQ / exterior shots (platform section) */
.about-media--landscape {
  aspect-ratio: 4 / 3;
  max-height: 480px;
}

.about-media--landscape img {
  object-position: 55% 45%;
}

.about-media--office img {
  object-position: 52% 42%;
}

.about-media--hq img {
  object-position: 55% 45%;
}

.about-media--panorama {
  aspect-ratio: 21 / 8;
  max-height: 280px;
  width: 100%;
}

.about-media--panorama img {
  object-position: 50% 48%;
}

.about-platform .about-title {
  margin-top: 0;
}

.about-platform .about-inner--with-media {
  padding-bottom: 120px;
  align-items: start;
}

/* Soft brand-edge fade so the photo sits in the navy system */
.about-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(31, 34, 45, 0.08) 0%,
    transparent 42%
  );
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "Roboto Flex", sans-serif;
  font-weight: 500;
  font-variation-settings: normal;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
}

.eyebrow-line {
  width: 40px;
  height: 2px;
  background: var(--red);
}

.about-title {
  margin-top: 24px;
  font-family: "Raleway", sans-serif;
  font-weight: 800;
  font-size: var(--section-h2-size);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #1F222D;
}

.about-title .accent {
  color: var(--red);
}

.about-body p {
  color: var(--body-color);
  font-family: var(--body-font-family);
  font-size: var(--body-font-size);
  font-weight: var(--body-font-weight);
  font-variation-settings: var(--body-font-variation-settings);
  line-height: var(--body-line-height);
  --reveal-opacity: 1;
}

.about-body p + p {
  margin-top: 22px;
}

/* Scroll reveal — section chrome + quiet body-text stagger */
.about-head,
.about-media {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-media {
  transition-delay: 0.22s;
}

.about-media-pair .about-media:nth-child(2) {
  transition-delay: 0.34s;
}

.about-media-stack .about-media--panorama {
  transition-delay: 0.42s;
}

.about-body p,
.footer-tagline {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-body p:nth-child(1) {
  transition-delay: 0.12s;
}

.about-body p:nth-child(2) {
  transition-delay: 0.24s;
}

.about-body p:nth-child(3) {
  transition-delay: 0.36s;
}

.about-body p:nth-child(4) {
  transition-delay: 0.48s;
}

.about.in-view .about-head,
.about.in-view .about-media {
  opacity: 1;
  transform: none;
}

.about.in-view .about-body p,
.site-footer.in-view .footer-tagline {
  opacity: var(--reveal-opacity, 1);
  transform: none;
}

/* ---------- Timeline / milestones (scroll-driven) ---------- */
.timeline {
  background-color: var(--hero-deep);
  /* Soft #040442 belichtingskleur — ambient navy wash, not a flat fill */
  background-image:
    radial-gradient(
      ellipse 80% 60% at 20% 30%,
      rgba(4, 4, 66, 0.75) 0%,
      transparent 65%
    ),
    radial-gradient(
      ellipse 55% 50% at 90% 70%,
      rgba(4, 4, 66, 0.4) 0%,
      transparent 60%
    );
}

.timeline-scroll {
  /* Milestones + 1.5 viewport buffer — matches Figma Make scroll runway */
  height: calc((var(--steps, 6) + 1.5) * 100vh);
  position: relative;
}

.timeline-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  contain: layout style;
}

.timeline-layout {
  flex: 1;
  display: flex;
  flex-direction: row-reverse;
  min-height: 0;
}

.timeline-content {
  flex: 1;
  align-self: stretch;
  min-width: 0;
  min-height: 100%;
  background-color: #010220;
  background-image: radial-gradient(
    ellipse 120% 90% at 0% 40%,
    rgba(4, 4, 66, 0.55) 0%,
    transparent 70%
  );
  padding: calc(36px + 80px) 48px 28px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.timeline-head {
  margin-bottom: 24px;
  flex-shrink: 0;
}

.timeline-eyebrow {
  margin-bottom: 14px;
}

.timeline-title {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: var(--section-h2-size);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
}

.timeline-title .accent {
  color: var(--red);
}

.timeline-track-wrap {
  --tl-track-w: 40px;
  --tl-track-gap: 20px;
  --tl-year-w: 6rem;
  --tl-content-gap: 20px;
  --tl-row-gap: clamp(8px, 1.2vh, 12px);
  --tl-track-line: 2px;
  display: flex;
  align-items: stretch;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.timeline-track-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: var(--tl-track-w);
  min-width: var(--tl-track-w);
  margin-right: var(--tl-track-gap);
  flex-shrink: 0;
  align-self: stretch;
}

.timeline-track {
  position: relative;
  width: var(--tl-track-line);
  flex: 1;
  min-height: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--tl-track-line);
}

/* Red progress fill: top of track → active year (JS sets --timeline-marker-top) */
.timeline-track::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: var(--timeline-marker-top, 0px);
  background: var(--red);
  border-radius: inherit;
  /* No CSS transition — JS follows the year each frame so fill + ball stay synced */
  pointer-events: none;
}

/* Red marker on the track, centered on the current year/title */
.timeline-track::after {
  content: "";
  position: absolute;
  left: 50%;
  top: var(--timeline-marker-top, 0px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .timeline-track::before,
  .timeline-track::after {
    transition: none;
  }

  .timeline-rows {
    transition: none;
  }
}

.timeline-rows {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: clamp(4px, 0.8vh, 10px);
  /* Always top-aligned; JS picker offset centers the active year when
     possible, but clamps so the first milestone stays at the top. */
  justify-content: flex-start;
  align-self: stretch;
  width: 100%;
  transform: translate3d(0, var(--tl-picker-offset, 0px), 0);
  /* Snap with scroll — a long ease made milestone changes feel delayed
     and forced a 600ms JS marker follow loop on every step. */
  transition: none;
}

.timeline-rows.is-overflowing {
  justify-content: flex-start;
}

.timeline-row {
  display: grid;
  grid-template-columns: var(--tl-year-w) minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: baseline;
  column-gap: var(--tl-content-gap);
  row-gap: var(--tl-row-gap);
  align-content: start;
  padding: clamp(12px, 1.8vh, 20px) 0;
  /* Hug title + full body; do not force equal row heights */
  flex: 0 0 auto;
  min-height: 0;
  height: auto;
  position: relative;
  overflow: visible;
  opacity: 0.2;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

@media (hover: hover) {
  .timeline-row:not(.is-current):hover {
    opacity: 0.45;
  }

  .timeline-row.is-active:not(.is-current):hover {
    opacity: 0.85;
  }
}

.timeline-row:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
  opacity: 0.85;
}

.timeline-row.is-active {
  opacity: 1;
}

/* Progress fill lives only on `.timeline-track` (JS `--timeline-marker-top`).
   A per-row ::before would paint red through the whole current row and leave
   the ball sitting mid-bar instead of at the tip. */
.timeline-row.is-current::before {
  content: none;
}

.timeline-year {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  grid-column: 1;
  /* Share the title row only — do not center against title+detail */
  grid-row: 1;
  align-self: baseline;
  min-width: 0;
}

.timeline-year-text {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 2.5vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.2);
  transition: color 0.15s ease;
}

.timeline-row.is-active .timeline-year-text {
  color: #fff;
}

.timeline-row.is-current .timeline-year-text {
  color: var(--red);
}

.timeline-row-title {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  min-width: 0;
  align-self: baseline;
  justify-self: start;
  font-family: "Raleway", sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.25;
  color: #fff;
}

.timeline-soon {
  margin-left: 8px;
  font-family: "Raleway", sans-serif;
  font-weight: 600;
  font-size: 0.62rem;
  color: var(--red);
  border: 1px solid rgba(233, 0, 50, 0.4);
  padding: 2px 7px;
  border-radius: 100px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: middle;
}

.timeline-row-detail {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  padding: 0;
  min-width: 0;
  align-self: start;
  justify-self: start;
  font-family: var(--body-font-family);
  font-size: var(--body-font-size);
  font-weight: var(--body-font-weight);
  font-variation-settings: var(--body-font-variation-settings);
  line-height: var(--body-line-height);
  color: rgba(255, 255, 255, 0.45);
  /* Inactive rows stay compact; current row reveals full body below */
  display: none;
  overflow: visible;
  max-height: none;
}

.timeline-row.is-current .timeline-row-detail {
  display: block;
}

.timeline-media {
  width: 50vw;
  height: 100%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.timeline-media-item {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  border-radius: 8px;
  overflow: hidden;
}

.timeline-media-item.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.timeline-media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Portrait team shot — keep faces/car in frame */
.timeline-media-item[data-index="3"] img {
  object-position: center 28%;
}

/* Product doors — favor the opening and interior */
.timeline-media-item[data-index="1"] img {
  object-position: center 40%;
}

@media (hover: hover) {
  .timeline-media-item:hover img {
    transform: scale(1.04);
  }
}

/* Keyboard: show + zoom the milestone image tied to the focused timeline row
   (images stay non-tabbable; rows are the focusable controls). */
.timeline-media-item.is-focus-zoom {
  opacity: 1;
  z-index: 2;
}

.timeline-media-item.is-focus-zoom img {
  transform: scale(1.04);
}

.timeline-media-item::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Bottom caption wash + soft left/edge navy tint toward #040442 */
  background:
    linear-gradient(
      to right,
      rgba(4, 4, 66, 0.38) 0%,
      transparent 32%
    ),
    linear-gradient(
      to top,
      rgba(4, 4, 66, 0.9) 0%,
      rgba(4, 4, 66, 0.28) 42%,
      rgba(4, 4, 66, 0.08) 68%,
      transparent 82%
    );
}

.timeline-media-item figcaption {
  position: absolute;
  bottom: 40px;
  left: 40px;
  z-index: 1;
}

.timeline-media-vectors {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(42%, 320px);
  aspect-ratio: 991 / 951;
  height: auto;
  overflow: hidden;
  z-index: 3;
  pointer-events: none;
}

/* SVG already cropped to the corner tip; keep viewBox aspect so 45° stays true */
.timeline-media-vectors img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom right;
}

.timeline-media-year {
  display: block;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 5.5rem);
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
}

.timeline-media-title {
  display: block;
  margin-top: 8px;
  font-family: "Raleway", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.04em;
}

/* ---------- Animations (from Figma motion) ---------- */
@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bgRise {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.card--anim {
  opacity: 1;
  animation: cardIn var(--card-duration) var(--card-ease) backwards;
  animation-delay: var(--delay);
}

/* Desktop: prefer one viewport when space allows; grow past 100vh
   rather than letting cards overlap headline/lead text. */
@media (min-width: 1025px) {
  .hero-section {
    min-height: 100vh;
  }

  .hero-section > main {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .hero {
    flex: 1 0 auto;
    gap: 40px;
    /* 80px sticky navbar + ≥40px gap to content */
    padding-top: calc(80px + 40px);
    /* ≥40px gap between hero content and country cards */
    padding-bottom: 40px;
  }

  .hero-image {
    flex: 0 1 min(558px, 46%);
    max-width: min(558px, 46%);
    display: flex;
    align-items: center;
  }

  .hero-carousel {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-carousel-viewport {
    width: 100%;
    height: min(52vh, 485px);
  }

  .cards {
    flex-shrink: 0;
    gap: clamp(12px, 1.4vw, 20px);
    padding: 0 0 clamp(32px, 4vh, 56px);
  }

  .card {
    gap: clamp(12px, 1.5vh, 18px);
    padding: clamp(16px, 2vh, 22px);
  }

  .card-logo {
    height: 28px;
  }

  .card-logo--to {
    height: 18px;
  }
}

/* Short desktop viewports: tighten spacing; details stay unclipped */
@media (min-width: 1025px) and (max-height: 960px) {
  .timeline-content {
    padding-top: calc(20px + 80px);
    padding-bottom: 16px;
  }

  .timeline-head {
    margin-bottom: clamp(10px, 1.8vh, 16px);
  }

  .timeline-row {
    padding: clamp(10px, 1.6vh, 16px) 0;
  }

  .timeline-row-title {
    font-size: 1.1rem;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 120px;
    gap: 32px;
  }

  .hero-text {
    flex-basis: auto;
    max-width: 100%;
  }

  .lead {
    max-width: 100%;
  }

  .hero-image {
    display: none;
  }

  .cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 40px 0 72px;
  }

  .card {
    gap: 14px;
    padding: 16px;
  }

  .card-title {
    font-size: 13px;
    line-height: 1.35;
  }

  .card-logo {
    height: 22px;
  }

  .card-logo--to {
    height: 14px;
  }

  .ext-link {
    width: 16px;
    height: 16px;
  }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-number {
    font-size: 48px;
    line-height: 48px;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 88px 24px;
  }

  .about-inner--with-media {
    gap: 36px;
    align-items: stretch;
  }

  .about-media-pair {
    order: -1;
    gap: 10px;
  }

  .about-media-stack {
    order: -1;
    gap: 10px;
  }

  /* Platform: text first, images below (DOM order) */
  .about-platform .about-media-stack {
    order: 0;
  }

  .about-media {
    max-height: 420px;
    aspect-ratio: 16 / 11;
    order: -1;
  }

  .about-media-pair .about-media {
    order: initial;
    width: 100%;
    height: 220px;
    max-height: none;
    aspect-ratio: auto;
  }

  .about-media-stack .about-media--office,
  .about-media-stack .about-media--hq {
    order: initial;
    width: 100%;
    height: 220px;
    max-height: none;
    aspect-ratio: auto;
  }

  .about-media img {
    object-position: 50% 22%;
  }

  .about-media--floor img {
    object-position: 42% 45%;
  }

  .about-media--landscape {
    max-height: 360px;
    aspect-ratio: 16 / 10;
  }

  .about-media--landscape img {
    object-position: 55% 45%;
  }

  .about-platform .about-inner--with-media {
    padding-bottom: 88px;
  }

  .about-media--panorama {
    width: 100%;
    height: 160px;
    max-height: none;
    aspect-ratio: auto;
  }

  .about-media--office img {
    object-position: 52% 40%;
  }

  /* Mobile/tablet sticky pin + Apple-style date picker:
     media capped on top; rows live in a focus window with room for
     full current-row copy. Shorter runway than desktop so milestones
     advance with less scroll (JS also sets height from the same formula). */
  .timeline-scroll {
    height: calc((var(--steps, 6) * 0.7 + 0.4) * 100vh);
  }

  .timeline-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    contain: layout style;
  }

  .timeline-content {
    padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .timeline-head {
    margin-bottom: 8px;
    flex-shrink: 0;
  }

  .timeline-title {
    font-size: clamp(1.45rem, 5.2vw, 2rem);
  }

  .timeline-layout {
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
  }

  /* Cap media so head + current row (title + full detail) always fit */
  .timeline-media {
    width: 100%;
    height: 32vh;
    max-height: 280px;
    min-height: 160px;
    flex-shrink: 0;
    order: -1;
  }

  .timeline-media-vectors {
    width: min(48%, 230px);
  }

  .timeline-media-year {
    font-size: clamp(2.4rem, 9vw, 3.6rem);
  }

  .timeline-track-wrap {
    --tl-track-w: 24px;
    --tl-track-gap: 20px;
    --tl-year-w: 5rem;
    --tl-content-gap: 12px;
    --tl-row-gap: 8px;
    /* Clear edge fades so first/last milestones stay fully readable */
    --tl-picker-start-inset: clamp(56px, 12vh, 96px);
    --tl-picker-end-inset: clamp(56px, 12vh, 96px);
    flex: 1 1 auto;
    /* Room for year + wrapping title + multi-line detail at center */
    min-height: 11rem;
    overflow: hidden;
    align-items: stretch;
    /* No mask-image on mobile — expensive on Safari during sticky scroll.
       Soft fades via cheap overlays instead (see ::before/::after). */
    -webkit-mask-image: none;
    mask-image: none;
    position: relative;
  }

  .timeline-track-wrap::before,
  .timeline-track-wrap::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 5%;
    z-index: 2;
    pointer-events: none;
  }

  .timeline-track-wrap::before {
    top: 0;
    background: linear-gradient(to bottom, #010220, transparent);
  }

  .timeline-track-wrap::after {
    bottom: 0;
    background: linear-gradient(to top, #010220, transparent);
  }

  .timeline-track-col {
    width: var(--tl-track-w);
    min-width: var(--tl-track-w);
    margin-right: var(--tl-track-gap);
    align-self: stretch;
  }

  .timeline-track {
    height: 100%;
    flex: none;
  }

  /* Marker position comes from JS (--timeline-marker-top) on mobile too —
     year/title center, not a fixed 50% (rows have unequal heights). */

  .timeline-rows {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    align-self: flex-start;
    width: 100%;
    gap: 6px;
    justify-content: flex-start;
    transform: translate3d(0, var(--tl-picker-offset, 0px), 0);
    transition: none;
  }

  .timeline-row {
    grid-template-columns: var(--tl-year-w) minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: baseline;
    column-gap: var(--tl-content-gap);
    row-gap: var(--tl-row-gap);
    align-content: start;
    padding: 14px 0;
    flex: 0 0 auto;
    min-height: 0;
    height: auto;
    overflow: visible;
    opacity: 0.22;
    transform: scale(0.86);
    transform-origin: left top;
    /* No ease during scroll-driven class toggles — avoids fighting rapid steps */
    transition: none;
  }

  .timeline-media-item {
    transition: opacity 0.28s ease;
  }

  /* Apple wheel: only current is bright; adjacent softer; rest dim */
  .timeline-row.is-active {
    opacity: 0.22;
  }

  .timeline-row.is-adjacent {
    opacity: 0.5;
    transform: scale(0.93);
  }

  .timeline-row.is-current {
    opacity: 1;
    transform: scale(1);
  }

  .timeline-year {
    grid-row: 1;
    align-self: baseline;
  }

  .timeline-year-text {
    font-size: clamp(1.45rem, 5vw, 1.85rem);
  }

  .timeline-row.is-active .timeline-year-text {
    color: rgba(255, 255, 255, 0.28);
  }

  .timeline-row.is-adjacent .timeline-year-text {
    color: rgba(255, 255, 255, 0.55);
  }

  .timeline-row.is-current .timeline-year-text {
    color: var(--red);
  }

  .timeline-row-title {
    font-size: 1.05rem;
    line-height: 1.25;
  }

  .timeline-row:not(.is-current) .timeline-row-title {
    color: rgba(255, 255, 255, 0.55);
  }

  /* Non-current details hidden so the picker stays compact */
  .timeline-row-detail {
    display: none;
    max-height: none;
    opacity: 1;
    overflow: visible;
    padding: 0;
    margin: 0;
  }

  .timeline-row.is-current .timeline-row-detail {
    display: block;
    /* Natural height — hug full body; never truncate */
    overflow: visible;
    max-height: none;
    padding-bottom: 4px;
  }
}

/* Short phones: shrink media further so picker content stays fully visible */
@media (max-width: 1024px) and (max-height: 720px) {
  .timeline-media {
    height: 26vh;
    max-height: 200px;
    min-height: 120px;
  }

  .timeline-content {
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .timeline-track-wrap {
    min-height: 9.5rem;
  }

  .timeline-row {
    padding: 12px 0;
  }
}

@media (max-width: 1024px) and (prefers-reduced-motion: reduce) {
  .timeline-rows {
    transform: none;
    transition: none;
  }

  .timeline-row {
    transition: none;
    opacity: 1;
    transform: none;
  }

  .timeline-row-detail {
    display: block;
    max-height: none;
    opacity: 1;
    overflow: visible;
    padding-bottom: 4px;
  }

  .timeline-track-wrap {
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .timeline-rows {
    transform: none;
    transition: none;
  }
}

/* Narrow tablets / phones: stack country cards in one column */
@media (max-width: 780px) {
  .cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .navbar-inner {
    height: auto;
    padding: 16px;
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  .menu {
    gap: 16px;
  }

  .menu a {
    font-size: 14px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 40px 0 72px;
  }

  .bg-vectors {
    width: 150vw;
    height: 84.5vw;
  }

  .stat {
    padding: 32px 12px;
  }

  .stat-number {
    font-size: 38px;
    line-height: 38px;
  }

  .stat-label {
    letter-spacing: 1.6px;
  }

  .about-inner {
    padding: 64px 16px;
    gap: 24px;
  }

  .about-media-pair .about-media,
  .about-media-stack .about-media--office,
  .about-media-stack .about-media--hq {
    height: 180px;
    max-height: none;
    aspect-ratio: auto;
  }

  .about-media--panorama {
    height: 120px;
    max-height: none;
    aspect-ratio: auto;
  }

  .timeline-media {
    height: 30vh;
    max-height: 240px;
    min-height: 140px;
  }

  .timeline-row {
    padding: 14px 0;
  }

  .timeline-row-title {
    font-size: 1rem;
  }

  .timeline-media-item figcaption {
    bottom: 20px;
    left: 20px;
  }
}

/* ---------- Partner logo marquee (sits with footer on navy) ---------- */
.logo-marquee {
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px 0;
  overflow: hidden;
}

.logo-marquee-viewport {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}

.logo-marquee-track {
  display: flex;
  width: max-content;
  animation: logo-marquee-scroll 45s linear infinite;
}

.logo-marquee-list {
  display: flex;
  align-items: center;
  gap: clamp(40px, 6vw, 72px);
  list-style: none;
  padding: 0 clamp(20px, 3vw, 36px);
  margin: 0;
  flex-shrink: 0;
}

.logo-marquee-list li {
  flex-shrink: 0;
}

.logo-marquee-list img {
  display: block;
  height: clamp(28px, 4vw, 40px);
  width: auto;
  max-width: clamp(100px, 14vw, 160px);
  object-fit: contain;
  opacity: 0.72;
  filter: brightness(0) invert(1);
  transition: opacity 0.25s ease;
}

.logo-marquee-list img:hover {
  opacity: 1;
}

@keyframes logo-marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 560px) {
  .logo-marquee {
    padding: 22px 0;
  }

  .logo-marquee-list {
    gap: 32px;
  }
}

/* ---------- Site footer ---------- */
.site-footer {
  background: var(--navy);
  border-top: none;
}

.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 64px 24px 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px 56px;
  align-items: start;
}

.footer-brand {
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-col--contact {
  min-width: 0;
  flex: 1 1 260px;
  max-width: 340px;
}

.footer-contact {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  min-width: 0;
  margin-top: 14px;
}

.footer-contact-portrait {
  margin: 0;
  width: 96px;
  height: 96px;
  border-radius: 4px;
  overflow: hidden;
  background: transparent;
  flex-shrink: 0;
}

.footer-contact-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  border-radius: 4px;
}

.footer-contact-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  flex: 1 1 140px;
}

.footer-contact-name {
  margin: 0;
  font-family: var(--body-font-family);
  font-size: var(--body-font-size);
  font-weight: 700;
  font-variation-settings: var(--body-font-variation-settings);
  line-height: var(--body-line-height);
  color: #fff;
}

.footer-contact-role {
  margin: 0;
  font-family: var(--body-font-family);
  font-size: var(--body-font-size);
  font-weight: var(--body-font-weight);
  font-variation-settings: var(--body-font-variation-settings);
  line-height: var(--body-line-height);
  color: rgba(255, 255, 255, 0.62);
}

.footer-contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-family: var(--body-font-family);
  font-size: var(--body-font-size);
  font-weight: var(--body-font-weight);
  font-variation-settings: var(--body-font-variation-settings);
  line-height: var(--body-line-height);
  min-width: 0;
  transition: color 0.2s ease;
}

.footer-contact-cta-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--red);
}

.footer-contact-cta span {
  overflow-wrap: anywhere;
}

.footer-contact-cta:hover,
.footer-contact-cta:focus-visible {
  color: var(--red);
}

.footer-logo {
  display: inline-flex;
}

.footer-logo img {
  width: clamp(70px, 5.8vw, 100px);
  height: auto;
  display: block;
}

.footer-tagline {
  margin-top: 16px;
  color: var(--text-muted);
  --reveal-opacity: 0.72;
  font-family: var(--body-font-family);
  font-size: var(--body-font-size);
  font-weight: var(--body-font-weight);
  font-variation-settings: var(--body-font-variation-settings);
  line-height: var(--body-line-height);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 6vw, 80px);
}

.footer-heading {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
}

.footer-links {
  margin-top: 16px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-family: var(--body-font-family);
  font-size: var(--body-font-size);
  font-weight: var(--body-font-weight);
  font-variation-settings: var(--body-font-variation-settings);
  line-height: var(--body-line-height);
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--red);
}

.footer-soon {
  color: rgba(255, 255, 255, 0.38);
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}

.footer-copy,
.footer-meta {
  font-family: "Roboto Flex", sans-serif;
  font-weight: 400;
  font-variation-settings: normal;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-brand {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .footer-inner {
    padding: 48px 16px 24px;
  }

  .footer-nav {
    flex-direction: column;
    gap: 32px;
  }

  .footer-col--contact {
    order: -1;
    flex: 1 1 auto;
    max-width: none;
  }

  .footer-contact {
    flex-wrap: wrap;
  }

  .footer-contact-portrait {
    width: 88px;
    height: 88px;
  }

  .footer-bottom {
    margin-top: 40px;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .card--anim,
  .bg-vectors {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .stat {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card {
    transition: background 0.35s ease, border-color 0.35s ease;
  }

  .card:hover,
  a.card:focus-visible {
    transform: none;
  }

  .hero-carousel-slide:hover img,
  .hero-carousel-slide:focus-within img,
  a:focus-within .hero-carousel-slide img,
  .hero-carousel:has(.hero-carousel-dot:focus-visible)
    .hero-carousel-slide[aria-hidden="false"]
    img,
  .about-media:hover img,
  a:focus-within .about-media img,
  .about-media:focus-within img,
  .timeline-media-item:hover img,
  .timeline-media-item.is-focus-zoom img {
    transform: none;
  }

  .about-head,
  .about-media,
  .about-body p,
  .footer-tagline {
    opacity: var(--reveal-opacity, 1);
    transform: none;
    transition: none;
  }

  .about-head,
  .about-media {
    opacity: 1;
  }

  .logo-marquee-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 24px 40px;
  }

  .logo-marquee-list[aria-hidden="true"] {
    display: none;
  }

  .logo-marquee-list {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 16px;
  }

  .hero-carousel-track {
    transition: none;
  }

  .about-media img,
  .timeline-media-item img,
  .hero-carousel-slide img {
    transition: none;
    transform: none;
  }

  .about-media:hover img,
  .timeline-media-item:hover img,
  .timeline-media-item.is-focus-zoom img,
  .hero-carousel-slide:hover img {
    transform: none;
  }

  .timeline-scroll {
    height: auto;
  }

  .timeline-sticky {
    position: relative;
    top: auto;
    height: auto;
    min-height: 100vh;
  }

  .timeline-row {
    opacity: 1;
  }

  .timeline-row-detail {
    display: block;
    overflow: visible;
    max-height: none;
  }

  .timeline-rows {
    transform: none;
    justify-content: flex-start;
  }

  .timeline-media-item {
    opacity: 0;
    position: absolute;
  }

  .timeline-media-item.is-visible {
    opacity: 1;
    position: relative;
  }
}
