:root {
  --hero-min-h: 100svh;
  /** Uniform scene darkening over parallax stack */
  --hero-scene-dim-a: 0.52;
  --color-text: #e8f0f4;
  --color-muted: rgba(232, 240, 244, 0.72);
  --header-h: 72px;
  /** Left navigation column width (glass on each `.site-sidebar__group`) */
  --sidebar-w: min(272px, 86vw);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 400;
  color: #0f1720;
  background: #344b5b;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  height: var(--header-h);
  background: transparent;
  border: none;
  box-shadow: none;
  pointer-events: none;
}

/** Viewport top-left: language (+ mobile menu) stay here; header rail stays in the main column on desktop. */
.site-header__left {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 101;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: var(--header-h);
  padding-left: clamp(0.35rem, 1.5vw, 0.85rem);
  padding-right: 0.5rem;
  pointer-events: none;
}

.site-header__left > * {
  pointer-events: auto;
}

.language-switcher {
  pointer-events: auto;
  max-width: min(9.5rem, 28vw);
  padding: 0.35rem 0.5rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text);
  text-shadow:
    0 0.12em 0.35em rgba(0, 0, 0, 0.75),
    0 0.02em 0.12em rgba(0, 0, 0, 0.55);
  background: rgba(6, 14, 22, 0.35);
  border: 1px solid rgba(232, 240, 244, 0.22);
  border-radius: 0.35rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.language-switcher:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.language-switcher:focus {
  outline: 2px solid rgba(125, 211, 252, 0.65);
  outline-offset: 2px;
}

.site-header a,
.site-header button {
  pointer-events: auto;
}

.site-header__menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.5rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  text-shadow:
    0 0.12em 0.35em rgba(0, 0, 0, 0.75),
    0 0.02em 0.12em rgba(0, 0, 0, 0.55);
  background: transparent;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.site-header__menu:hover {
  color: #fff;
}

.site-header__rail {
  display: none;
  flex-wrap: nowrap;
  gap: 0;
  align-items: center;
  justify-content: flex-end;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(0.62rem, 1vw, 0.78rem);
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.site-header__rail::-webkit-scrollbar {
  height: 4px;
}

.site-header__rail::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.site-header__rail a {
  flex-shrink: 0;
  color: rgba(232, 240, 244, 0.92);
  text-decoration: none;
  text-shadow:
    0 0.1em 0.32em rgba(0, 0, 0, 0.7),
    0 0.02em 0.08em rgba(0, 0, 0, 0.55);
  transition: color 0.2s ease;
}

.site-header__rail a:hover {
  color: #fff;
}

.site-header__rail-sep {
  flex-shrink: 0;
  margin: 0 0.35rem;
  color: rgba(232, 240, 244, 0.38);
  font-weight: 300;
  text-shadow:
    0 0.1em 0.32em rgba(0, 0, 0, 0.65),
    0 0.02em 0.08em rgba(0, 0, 0, 0.5);
}

@media (min-width: 1024px) {
  .site-header {
    left: var(--sidebar-w);
  }

  .site-header__rail {
    display: flex;
  }

  .site-header__menu {
    display: none;
  }
}

.site-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 94;
  background: rgba(6, 12, 22, 0.38);
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
}

body.nav-sidebar-open .site-nav-backdrop {
  display: block;
}

@media (min-width: 1024px) {
  .site-nav-backdrop {
    display: none !important;
  }
}

/** Outer column is transparent - glass styling lives on `.site-sidebar__group` only */
.site-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 95;
  width: var(--sidebar-w);
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: calc(var(--header-h) + 0.75rem) 0.75rem 1.75rem 0.875rem;
  background: transparent;
  border: none;
  box-shadow: none;
}

@media (prefers-reduced-transparency: reduce) {
  .site-sidebar__group {
    background: rgba(14, 20, 32, 0.88);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@supports not (
  (backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))
) {
  .site-sidebar__group {
    background: rgba(14, 20, 32, 0.9);
  }
}

@media (max-width: 1023px) {
  .site-sidebar {
    transform: translateX(-100%);
    transition: transform 0.22s ease;
  }

  body.nav-sidebar-open .site-sidebar {
    transform: translateX(0);
  }

  body.nav-sidebar-open {
    overflow: hidden;
  }
}

.site-sidebar__inner {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.site-sidebar__group {
  scroll-margin-top: calc(var(--header-h) + 12px);
  padding: 0.45rem 0.55rem 0.55rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(
      155deg,
      rgba(255, 255, 255, 0.11) 0%,
      rgba(255, 255, 255, 0.03) 48%,
      transparent 100%
    ),
    rgba(12, 20, 34, 0.32);
  backdrop-filter: blur(20px) saturate(1.32);
  -webkit-backdrop-filter: blur(20px) saturate(1.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 6px 28px rgba(0, 0, 0, 0.18);
}

.site-sidebar__group:last-of-type {
  margin-bottom: 0;
}

.site-sidebar__summary {
  cursor: pointer;
  list-style: none;
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: rgba(232, 240, 244, 0.95);
  padding: 0.4rem 0.15rem 0.2rem;
}

.site-sidebar__summary::-webkit-details-marker {
  display: none;
}

.site-sidebar__group[open] > .site-sidebar__summary {
  color: #fff;
}

.site-sidebar__list {
  margin: 0;
  padding: 0.15rem 0 0.15rem 0.6rem;
  list-style: none;
  border-left: 2px solid rgba(207, 17, 29, 0.45);
}

.site-sidebar__list li {
  margin: 0 0 0.38rem;
}

.site-sidebar__list a {
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.35;
  color: rgba(232, 240, 244, 0.72);
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-sidebar__list a:hover {
  color: rgba(232, 240, 244, 0.96);
}

.site-sidebar__group#section-engage .site-sidebar__list a {
  font-weight: 500;
  color: rgba(232, 240, 244, 0.82);
}

.site-sidebar__group#section-engage .site-sidebar__list a:hover {
  color: #cf111d;
}

.hero {
  position: relative;
  min-height: 100dvh;
  min-height: var(--hero-min-h);
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  background: #0d1b2e;
}

.hero__backdrop {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: auto;
  height: calc(100% + 6px);
  z-index: 0;
  background-color: #0d1b2e;
  pointer-events: none;
}

.hero__backdrop-shade {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: auto;
  height: calc(100% + 6px);
  z-index: 1;
  pointer-events: none;
  /* No extra darkening at top - avoids a second “cap” on top of the plate */
  background: transparent;
}

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

/** Sits above parallax stack; below hero copy */
.hero__scene-dim {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, var(--hero-scene-dim-a));
  pointer-events: none;
}

/** Left-aligned headline in the main column, beside the glass nav rail (not over the cards) */
.hero__title-wrap {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: clamp(1rem, 2.5vmin, 1.35rem);
  padding-top: calc(var(--header-h) + clamp(0.35rem, 1.5vmin, 0.85rem));
  padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
  padding-bottom: 1rem;
  padding-left: clamp(1rem, 4vw, 1.5rem);
  pointer-events: none;
}

@media (min-width: 1024px) {
  .hero__title-wrap {
    padding-left: calc(var(--sidebar-w) + clamp(0.75rem, 2vw, 1.5rem));
  }
}

/** Hero: brand lockup + German slogan - full width to right margin (inside wrap padding) */
.hero__title {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 100%;
  padding: 0;
  text-align: left;
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: inherit;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--color-text);
  text-shadow:
    0 0.06em 0.28em rgba(0, 0, 0, 0.55),
    0 0.02em 0.08em rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.hero__title-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: clamp(0.85rem, 2.5vmin, 1.35rem);
}

.hero__title-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: clamp(0.08em, 1.5vmin, 0.16em);
}

.hero__title-mark {
  display: block;
  font-size: clamp(3.4rem, 8.5vw, 5rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 0.98;
  color: #cf111d;
}

.hero__title-tail {
  display: block;
  max-width: 100%;
  white-space: normal;
  font-size: clamp(1.05rem, 3.4vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-text);
  line-height: 1.15;
}

.hero__title-lead {
  display: block;
  font-size: clamp(1.45rem, 4.2vw, 2.65rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.18;
  color: var(--color-text);
}

/** Claim fixed to exactly two lines (no third-line wrap on narrow viewports) */
.hero__title-lead-line {
  display: block;
}

.hero__title-tag {
  display: block;
  font-size: clamp(0.95rem, 2.4vw, 1.2rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #cf111d;
  line-height: 1.35;
}

.hero-intro-video {
  pointer-events: auto;
  width: auto;
  max-width: 100%;
}

.hero-intro-video__label {
  margin: 0 0 0.45rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(0.72rem, 1.55vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(232, 240, 244, 0.82);
}

.hero-intro-video__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  padding: 0.45rem 1rem 0.45rem 0.45rem;
  border: 1px solid rgba(232, 240, 244, 0.22);
  border-radius: 999px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--color-text);
  background: rgba(10, 14, 22, 0.45);
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.25);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.hero-intro-video__trigger:hover {
  transform: translateY(-1px);
  border-color: rgba(232, 240, 244, 0.35);
  background: rgba(14, 20, 32, 0.58);
}

.hero-intro-video__trigger:focus-visible {
  outline: 2px solid rgba(232, 240, 244, 0.9);
  outline-offset: 4px;
}

.hero-intro-video__play-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: #0f1720;
  background: rgba(232, 240, 244, 0.94);
  box-shadow: 0 0.15rem 0.65rem rgba(0, 0, 0, 0.35);
}

.hero-intro-video__play-icon {
  margin-left: 2px;
}

.hero-intro-video__cta {
  padding-right: 0.35rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(0.78rem, 1.65vw, 0.88rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (prefers-reduced-transparency: reduce) {
  .hero-intro-video__trigger {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(14, 20, 32, 0.88);
  }
}

/** Full-screen intro video dialog */
.hero-modal[hidden] {
  display: none !important;
}

.hero-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2rem);
}

.hero-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 18, 0.72);
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
}

.hero-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(92vw, 920px);
  max-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid rgba(232, 240, 244, 0.16);
  background: rgba(14, 20, 32, 0.94);
  box-shadow: 0 1.25rem 4rem rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.hero-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.85rem 0.65rem 1rem;
  border-bottom: 1px solid rgba(232, 240, 244, 0.1);
}

.hero-modal__title {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.hero-modal__close {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 1.45rem;
  line-height: 1;
  color: var(--color-text);
  background: transparent;
  border: 1px solid rgba(232, 240, 244, 0.22);
  border-radius: 8px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.hero-modal__close:hover {
  background: rgba(232, 240, 244, 0.08);
  border-color: rgba(232, 240, 244, 0.35);
}

.hero-modal__close:focus-visible {
  outline: 2px solid rgba(232, 240, 244, 0.85);
  outline-offset: 2px;
}

.hero-modal__body {
  padding: 0;
  background: #0a0e14;
}

.hero-modal__video {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(78vh, 720px);
  aspect-ratio: 16 / 9;
  object-fit: contain;
  vertical-align: middle;
}

@media (prefers-reduced-transparency: reduce) {
  .hero-modal__backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(8, 12, 20, 0.92);
  }
}

/** WebP stack + scroll factors (from `parallax.zip` Next demo) */
.hero__parallax-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
}

.hero__parallax-pic {
  display: block;
  margin: 0;
}

.hero__parallax-pic--cover {
  position: absolute;
  inset: 0;
}

.hero__parallax-pic--stack {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}

.hero__parallax-img {
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.hero__parallax-img--cover {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.hero__parallax-img--stack {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
}

.hero__parallax-fill {
  position: absolute;
  bottom: -400px;
  left: 0;
  right: 0;
  height: 400px;
  background: #0d1b2e;
  pointer-events: none;
}

.hero__parallax-grad {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 85%;
  pointer-events: none;
  z-index: 8;
  background: linear-gradient(to bottom, transparent, #0d1b2e);
}

.below-fold {
  margin-top: -10px;
  min-height: 70vh;
  padding-top: calc(10px + clamp(2rem, 5vw, 4rem));
  padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
  padding-bottom: clamp(2rem, 5vw, 4rem);
  /* Match `.hero__title-wrap` horizontal inset so titles align */
  padding-left: clamp(1rem, 4vw, 1.5rem);
  background:
    linear-gradient(rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.22)),
    #344b5b;
  color: var(--color-text);
}

@media (min-width: 1024px) {
  .below-fold {
    padding-left: calc(var(--sidebar-w) + clamp(0.75rem, 2vw, 1.5rem));
  }
}

.below-fold__title {
  margin: 0;
  max-width: 40rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.75rem, 4.2vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--color-text);
}

/** Long-form advisory explainer (e.g. sell-side) */
.service-block {
  margin-top: clamp(2.5rem, 5.5vw, 3.75rem);
  padding-top: clamp(2rem, 4.5vw, 2.75rem);
  max-width: 56rem;
  border-top: 1px solid rgba(232, 240, 244, 0.12);
}

.service-block__title {
  margin: 0 0 clamp(0.75rem, 2vw, 1rem);
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: 0.015em;
  color: var(--color-text);
}

.service-block__lede {
  margin: 0 0 clamp(1.5rem, 3.5vw, 2rem);
  font-size: clamp(1rem, 2.1vw, 1.12rem);
  line-height: 1.55;
  color: rgba(232, 240, 244, 0.92);
}

.service-block__subhead {
  margin: clamp(1.35rem, 3vw, 1.75rem) 0 0.5rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(1.02rem, 2.2vw, 1.18rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--color-text);
}

.service-block p {
  margin: 0 0 0.85rem;
  font-size: clamp(0.92rem, 1.9vw, 1.02rem);
  line-height: 1.6;
  color: rgba(232, 240, 244, 0.88);
}

/** In-page hash links: brand red for :link and :visited (no browser blue / purple) */
.below-fold .service-block a:any-link {
  color: #cf111d;
  text-decoration: none;
  font-weight: 600;
}

.below-fold .service-block a:any-link:hover,
.below-fold .service-block a:any-link:active,
.below-fold .service-block a:any-link:focus-visible {
  color: #e82935;
  text-decoration: none;
}

/**
 * Transactions & case studies — PDF note (editorial aside, matches long-form rhythm).
 */
.case-study-download {
  margin: clamp(0.85rem, 2.2vw, 1.15rem) 0 clamp(1.15rem, 2.8vw, 1.5rem);
  padding: 0.65rem 0 0.65rem clamp(0.85rem, 2vw, 1rem);
  border-left: 2px solid rgba(207, 17, 29, 0.55);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  max-width: 56rem;
}

.case-study-download__inner {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.case-study-download__mark {
  flex-shrink: 0;
  margin-top: 0.12rem;
  line-height: 0;
  color: rgba(232, 240, 244, 0.38);
}

.case-study-download__icon {
  display: block;
}

.case-study-download__body {
  min-width: 0;
}

.case-study-download__label {
  margin: 0 0 0.3rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(0.68rem, 1.45vw, 0.74rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(232, 240, 244, 0.55);
}

.case-study-download__desc {
  margin: 0 0 0.45rem;
  font-size: clamp(0.88rem, 1.8vw, 0.96rem);
  line-height: 1.55;
  color: rgba(232, 240, 244, 0.82);
}

.case-study-download__action {
  margin: 0;
  font-size: clamp(0.86rem, 1.75vw, 0.94rem);
  line-height: 1.5;
}

.case-study-download__meta {
  color: rgba(232, 240, 244, 0.48);
  font-weight: 400;
}

/** Same red link treatment as other in-section anchors (overrides global .service-block a) */
.case-study-download__cta {
  font-weight: 600;
  text-decoration: none;
}

.below-fold .service-block .case-study-download__cta:any-link {
  color: #cf111d !important;
  text-decoration: none;
  font-weight: 600;
}

.below-fold .service-block .case-study-download__cta:any-link:hover,
.below-fold .service-block .case-study-download__cta:any-link:active,
.below-fold .service-block .case-study-download__cta:focus-visible {
  color: #e82935 !important;
  text-decoration: none;
  background: transparent !important;
  border: none;
}

/** Careers — open positions grid */
.careers-open-intro {
  margin: 0 0 clamp(0.75rem, 2vw, 1rem);
  font-size: clamp(0.88rem, 1.8vw, 0.96rem);
  line-height: 1.55;
  color: rgba(232, 240, 244, 0.82);
}

.careers-open-grid {
  list-style: none;
  margin: 0 0 clamp(1.35rem, 3vw, 1.85rem);
  padding: 0;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}

@media (min-width: 640px) {
  .careers-open-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .careers-open-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.careers-open-card {
  margin: 0;
  padding: 0.8rem 0.95rem;
  border-radius: 11px;
  border: 1px solid rgba(232, 240, 244, 0.16);
  background: rgba(0, 0, 0, 0.18);
  height: 100%;
  min-height: 5.5rem;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 0.28rem;
  align-items: start;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.careers-open-card:hover {
  border-color: rgba(207, 17, 29, 0.45);
  background: rgba(0, 0, 0, 0.26);
}

.careers-open-card__level {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #cf111d;
}

.careers-open-card__title {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(0.86rem, 1.75vw, 0.95rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.015em;
  color: var(--color-text);
}

.careers-open-card__loc {
  font-size: clamp(0.76rem, 1.5vw, 0.84rem);
  line-height: 1.45;
  color: rgba(232, 240, 244, 0.62);
  min-width: 0;
  align-self: stretch;
}

.careers-open-card__btn {
  margin-top: 0;
  padding: 0.4em 0.85em;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(0.7rem, 1.35vw, 0.78rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 8px;
  border: 1px solid rgba(207, 17, 29, 0.42);
  background: rgba(207, 17, 29, 0.12);
  color: rgba(232, 240, 244, 0.88);
  cursor: pointer;
  justify-self: start;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    opacity 0.15s ease;
}

.careers-open-card__btn:hover {
  border-color: rgba(207, 17, 29, 0.65);
  background: rgba(207, 17, 29, 0.22);
}

.careers-open-card__btn:focus-visible {
  outline: 2px solid rgba(207, 17, 29, 0.85);
  outline-offset: 2px;
}

/** Careers job description dialog */
.careers-job-modal[hidden] {
  display: none !important;
}

.careers-job-modal {
  position: fixed;
  inset: 0;
  z-index: 235;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2rem);
}

.careers-job-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 18, 0.72);
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
}

.careers-job-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(92vw, 720px);
  max-height: min(88vh, 860px);
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid rgba(232, 240, 244, 0.16);
  background: rgba(14, 20, 32, 0.96);
  box-shadow: 0 1.25rem 4rem rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.careers-job-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
  padding: 0.75rem 0.85rem 0.75rem 1rem;
  border-bottom: 1px solid rgba(232, 240, 244, 0.1);
}

.careers-job-modal__head-text {
  min-width: 0;
  flex: 1;
}

.careers-job-modal__meta {
  margin: 0 0 0.35rem;
  font-size: clamp(0.78rem, 1.55vw, 0.86rem);
  line-height: 1.45;
  color: rgba(232, 240, 244, 0.62);
}

.careers-job-modal__title {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(0.98rem, 2.2vw, 1.14rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--color-text);
}

.careers-job-modal__close {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 1.45rem;
  line-height: 1;
  color: var(--color-text);
  background: transparent;
  border: 1px solid rgba(232, 240, 244, 0.22);
  border-radius: 8px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.careers-job-modal__close:hover {
  background: rgba(232, 240, 244, 0.08);
  border-color: rgba(232, 240, 244, 0.35);
}

.careers-job-modal__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 1.1rem 1.25rem 1rem;
  background: #0f141c;
}

.careers-job-modal__content {
  font-size: clamp(0.84rem, 1.65vw, 0.92rem);
  line-height: 1.58;
  color: rgba(232, 240, 244, 0.86);
}

.careers-job-modal__content p {
  margin: 0 0 0.55rem;
}

.careers-job-modal__content p:last-child {
  margin-bottom: 0;
}

.careers-job-modal__content ul {
  margin: 0 0 0.65rem;
  padding-left: 1.15rem;
}

.careers-job-modal__content li {
  margin-bottom: 0.35rem;
}

.careers-job-modal__content li:last-child {
  margin-bottom: 0;
}

.careers-job-modal__sub {
  margin: 1rem 0 0.4rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(232, 240, 244, 0.7);
}

.careers-job-modal__content a {
  color: rgba(232, 240, 244, 0.95);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.careers-job-modal__content a:hover {
  color: #cf111d;
}

@media (prefers-reduced-transparency: reduce) {
  .careers-job-modal__backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(8, 12, 20, 0.92);
  }
}

.service-block__list,
.service-block__steps {
  margin: 0 0 clamp(0.85rem, 2vw, 1.15rem);
  padding-left: 1.2rem;
  font-size: clamp(0.92rem, 1.9vw, 1.02rem);
  line-height: 1.55;
  color: rgba(232, 240, 244, 0.88);
}

.service-block__list li,
.service-block__steps li {
  margin-bottom: 0.45rem;
}

.service-block__steps {
  list-style-position: outside;
}

/** Metric counters - aligned with page inset via `.below-fold` padding */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3vw, 1.75rem);
  margin-top: clamp(2rem, 5vw, 3rem);
  max-width: 56rem;
}

@media (min-width: 640px) {
  .stat-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2.5vw, 1.5rem);
  }
}

.stat-card {
  margin: 0;
  padding: clamp(1.25rem, 3vw, 1.5rem) clamp(1rem, 2.5vw, 1.25rem);
  border: 1px solid rgba(232, 240, 244, 0.14);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.12);
}

.stat-card__value {
  margin: 0 0 0.5rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 2.65rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

.stat-card__unit {
  font-weight: 600;
  font-size: 0.58em;
  letter-spacing: 0.04em;
  opacity: 0.92;
}

.stat-card__kicker {
  margin: 0 0 0.35rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(0.85rem, 1.8vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(232, 240, 244, 0.88);
}

.stat-card__label {
  margin: 0;
  font-size: clamp(0.82rem, 1.7vw, 0.9rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--color-muted);
}

/** Single showcase card + horizontal mandate carousel */
.deal-showcase {
  margin-top: clamp(2.75rem, 6vw, 4rem);
  max-width: 56rem;
}

.deal-showcase__shell {
  padding: clamp(1.35rem, 3.5vw, 2rem) clamp(1.15rem, 3vw, 1.75rem);
  border: 1px solid rgba(232, 240, 244, 0.16);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.14);
}

.deal-showcase__header {
  margin-bottom: clamp(0.5rem, 1.2vw, 0.75rem);
}

.deal-showcase__chips {
  margin: 0 0 0.35rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(0.72rem, 1.55vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 240, 244, 0.78);
}

.deal-showcase__title {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.2;
  color: #cf111d;
  text-decoration: none;
}

.deal-carousel__viewport {
  overflow: hidden;
  border-radius: 12px;
  margin: 0 -0.15rem;
}

.deal-carousel__track {
  display: flex;
  flex-direction: row;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.deal-slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: 0 0.15rem 0.5rem;
  box-sizing: border-box;
}

.deal-slide__meta {
  margin: 0 0 0.35rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(0.68rem, 1.45vw, 0.76rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #cf111d;
}

.deal-slide__title {
  margin: 0 0 clamp(0.55rem, 1.4vw, 0.75rem);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(1.1rem, 2.6vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
  color: var(--color-text);
}

.deal-slide__body {
  font-size: clamp(0.88rem, 1.85vw, 0.98rem);
  line-height: 1.55;
  color: rgba(232, 240, 244, 0.9);
}

.deal-slide__body p {
  margin: 0 0 0.85rem;
}

.deal-slide__lede {
  font-size: clamp(0.92rem, 1.95vw, 1.02rem);
  color: var(--color-text);
}

.deal-slide__subhead {
  margin: 1rem 0 0.4rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(0.78rem, 1.65vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.deal-slide__list {
  margin: 0 0 0.85rem;
  padding-left: 1.15rem;
  color: rgba(232, 240, 244, 0.88);
}

.deal-slide__list li {
  margin-bottom: 0.35rem;
}

.deal-carousel__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: clamp(0.75rem, 2vw, 1rem);
  padding-top: 0.75rem;
  border-top: 1px solid rgba(232, 240, 244, 0.12);
}

.deal-carousel__status {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
}

.deal-carousel__status-sep {
  margin: 0 0.2em;
  opacity: 0.6;
}

.deal-carousel__btn {
  padding: 0.55rem 1.1rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text);
  background: rgba(207, 17, 29, 0.92);
  border: 1px solid rgba(207, 17, 29, 0.98);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.deal-carousel__btn:hover {
  background: #e01524;
  border-color: #e01524;
}

.deal-carousel__btn:focus-visible {
  outline: 2px solid rgba(232, 240, 244, 0.85);
  outline-offset: 3px;
}

.deal-carousel__btn--ghost {
  color: var(--color-text);
  background: transparent;
  border-color: rgba(232, 240, 244, 0.35);
}

.deal-carousel__btn--ghost:hover {
  background: rgba(232, 240, 244, 0.08);
  border-color: rgba(232, 240, 244, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .site-sidebar {
    transition: none !important;
  }

  .deal-carousel__track {
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  .hero__parallax-layer {
    will-change: auto;
  }

  .hero__backdrop {
    transform: none;
    filter: none;
  }
}

/** In-page targets (welcome wizard + rail) clear fixed header */
.service-block,
.placeholder-section {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.placeholder-section {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding-top: clamp(1.25rem, 3vw, 1.75rem);
  max-width: 56rem;
  border-top: 1px solid rgba(232, 240, 244, 0.1);
}

.placeholder-section__title {
  margin: 0 0 0.4rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(1.15rem, 2.6vw, 1.35rem);
  font-weight: 600;
  color: var(--color-text);
}

.placeholder-section__text {
  margin: 0;
  font-size: clamp(0.9rem, 1.9vw, 1rem);
  line-height: 1.5;
  color: var(--color-muted);
}

.placeholder-section .placeholder-section__text + .placeholder-section__text {
  margin-top: 0.65rem;
}

.placeholder-section__rich {
  margin: 0 0 clamp(0.65rem, 1.8vw, 0.9rem);
}

.placeholder-section__rich > .placeholder-section__text {
  margin: 0 0 0.75rem;
}

.placeholder-section__rich > .placeholder-section__text--einv-opener {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.55;
  color: rgba(232, 240, 244, 0.92);
}

.placeholder-section__subhead {
  margin: clamp(1.15rem, 2.8vw, 1.45rem) 0 0.45rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(0.98rem, 2vw, 1.12rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.28;
  color: var(--color-text);
}

.placeholder-section__list {
  margin: 0 0 0.2rem;
  padding-left: 1.15rem;
  font-size: clamp(0.9rem, 1.9vw, 1rem);
  line-height: 1.55;
  color: rgba(232, 240, 244, 0.88);
}

.placeholder-section__list li {
  margin-bottom: 0.45rem;
}

.placeholder-section__rich + .placeholder-section__text {
  margin-top: 0.35rem;
}

.below-fold .placeholder-section--einv a:any-link {
  color: #cf111d;
  text-decoration: none;
  font-weight: 600;
}

.below-fold .placeholder-section--einv a:any-link:hover,
.below-fold .placeholder-section--einv a:any-link:active,
.below-fold .placeholder-section--einv a:any-link:focus-visible {
  color: #e82935;
  text-decoration: none;
}

.placeholder-section--engage-mail .placeholder-mail-card--block {
  margin-top: 0.75rem;
  max-width: 24rem;
}

.placeholder-mail-card {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0.75rem 0.85rem;
  border-radius: 6px;
  border: 1px solid rgba(232, 240, 244, 0.14);
  background: rgba(232, 240, 244, 0.05);
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.placeholder-mail-card:hover {
  border-color: rgba(207, 17, 29, 0.45);
  background: rgba(232, 240, 244, 0.08);
  box-shadow: 0 0 0 1px rgba(207, 17, 29, 0.12);
}

.placeholder-mail-card:focus-visible {
  outline: 2px solid rgba(207, 17, 29, 0.65);
  outline-offset: 2px;
}

.placeholder-mail-card__title {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.placeholder-mail-card__note {
  font-size: clamp(0.82rem, 1.7vw, 0.92rem);
  line-height: 1.45;
  color: var(--color-muted);
}

.below-fold .placeholder-mail-card:hover .placeholder-mail-card__title {
  color: #e82935;
}

.transaction-flowchart-wrap {
  margin-top: clamp(1rem, 2.5vw, 1.35rem);
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 6px;
  background: rgba(232, 240, 244, 0.04);
  border: 1px solid rgba(232, 240, 244, 0.08);
}

.transaction-flowchart--native {
  display: block;
  width: min(100%, 920px);
  min-width: min(100%, 320px);
  margin: 0 auto;
}

.transaction-flowchart__svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 920px;
  margin: 0 auto;
}

.flow-node-shape {
  fill: rgba(248, 250, 252, 0.97);
  stroke: rgba(13, 27, 46, 0.4);
  stroke-width: 1.35;
}

.flow-fobj-inner {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2px 4px;
  font-size: clamp(7.5px, 1.65vw, 10px);
  font-family: "DM Sans", "Outfit", system-ui, sans-serif;
  font-weight: 500;
  line-height: 1.18;
  color: #0d1b2e;
  hyphens: auto;
  overflow-wrap: anywhere;
}

.flow-edge-label {
  font-size: clamp(8px, 1.5vw, 10.5px);
  font-family: "Outfit", system-ui, sans-serif;
  fill: rgba(232, 240, 244, 0.88);
  font-weight: 500;
  pointer-events: none;
}

/** Keeps short edge labels readable when near lines (e.g. Sell) */
.flow-edge-label--on-band {
  paint-order: stroke fill;
  stroke: rgba(13, 27, 46, 0.85);
  stroke-width: 2.5px;
}

.placeholder-section__text--etx-intro {
  margin-bottom: 0.5rem;
}

.flowchart-interact-hint--etx {
  margin: 0 0 0.65rem;
  font-size: clamp(0.88rem, 1.85vw, 0.95rem);
  line-height: 1.45;
  color: var(--color-muted);
}

.flowchart-interact-hint--etx .flow-hint {
  margin: 0;
}

.flow-edge {
  transition: opacity 0.25s ease;
}

.flow-node-hit {
  transition: opacity 0.25s ease;
}

.flow-hit {
  cursor: pointer;
  outline: none;
}

.flow-hit:focus-visible {
  stroke: rgba(232, 240, 244, 0.55);
  stroke-width: 2px;
}

.flow-node-hit:hover .flow-node-shape {
  stroke: rgba(13, 27, 46, 0.65);
  filter: brightness(1.03);
}

.flowchart-detail-panel {
  margin-top: clamp(1rem, 2.5vw, 1.35rem);
  padding: clamp(0.85rem, 2vw, 1.1rem);
  border-radius: 8px;
  background: rgba(14, 20, 32, 0.88);
  border: 1px solid rgba(232, 240, 244, 0.12);
  max-width: 56rem;
}

.flowchart-detail-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.flowchart-detail-panel__title {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  font-weight: 600;
  color: var(--color-text);
}

.flowchart-detail-panel__close {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--color-muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
}

.flowchart-detail-panel__close:hover {
  color: var(--color-text);
  background: rgba(232, 240, 244, 0.08);
}

.flow-detail-prose {
  font-size: clamp(0.88rem, 1.85vw, 0.95rem);
  line-height: 1.55;
  color: rgba(232, 240, 244, 0.88);
}

.flow-detail-prose p {
  margin: 0 0 0.65rem;
}

.flow-detail-prose p:last-child {
  margin-bottom: 0;
}

.flow-detail-prose ul {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
}

.flow-detail-prose li {
  margin-bottom: 0.4rem;
}

.flow-detail-prose strong {
  color: var(--color-text);
  font-weight: 600;
}

/** First-visit welcome: chat-style widget bottom-right, slides up */
.welcome-wizard[hidden] {
  display: none !important;
}

.welcome-wizard {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  left: auto;
  top: auto;
  z-index: 250;
  width: min(calc(100vw - 2rem), 22.5rem);
  max-width: 100%;
  pointer-events: none;
}

.welcome-wizard-float-actions[hidden] {
  display: none !important;
}

.welcome-wizard-float-actions {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  z-index: 249;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
}

.welcome-wizard-scroll-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  padding: 0;
  color: var(--color-text);
  background: rgba(16, 22, 34, 0.92);
  border: 1px solid rgba(232, 240, 244, 0.22);
  border-radius: 50%;
  box-shadow: 0 0.35rem 1.1rem rgba(0, 0, 0, 0.32);
  cursor: pointer;
}

.welcome-wizard-scroll-top:hover {
  border-color: rgba(207, 17, 29, 0.9);
  color: var(--color-text);
  background: rgba(22, 28, 40, 0.97);
}

.welcome-wizard-scroll-top:focus-visible {
  outline: 2px solid rgba(232, 240, 244, 0.85);
  outline-offset: 3px;
}

.welcome-wizard-reopen {
  padding: 0.55rem 1.05rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-text);
  background: rgba(16, 22, 34, 0.92);
  border: 1px solid rgba(207, 17, 29, 0.88);
  border-radius: 999px;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.38);
  cursor: pointer;
}

.welcome-wizard-reopen:hover {
  border-color: #e01524;
  background: rgba(22, 28, 40, 0.97);
}

.welcome-wizard-reopen:focus-visible {
  outline: 2px solid rgba(232, 240, 244, 0.85);
  outline-offset: 3px;
}

.welcome-wizard__backdrop {
  display: none;
}

.welcome-wizard__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: min(68vh, 520px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 18px 18px 6px 18px;
  border: 1px solid rgba(232, 240, 244, 0.2);
  background: rgba(16, 22, 34, 0.97);
  box-shadow:
    0 0.25rem 0 rgba(0, 0, 0, 0.12),
    0 1.25rem 3.5rem rgba(0, 0, 0, 0.45);
  pointer-events: auto;
  transform-origin: bottom right;
}

.welcome-wizard:not([hidden]) .welcome-wizard__panel {
  animation: welcome-wizard-chat-in 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes welcome-wizard-chat-in {
  from {
    opacity: 0;
    transform: translate3d(0, 110%, 0) scale(0.94);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.welcome-wizard__panel-inner {
  padding: clamp(1.35rem, 3.5vw, 1.75rem) clamp(1.15rem, 3vw, 1.5rem) clamp(1.25rem, 3vw, 1.5rem);
}

.welcome-wizard__skip {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  padding: 0.35rem 0.6rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(232, 240, 244, 0.75);
  background: transparent;
  border: 1px solid rgba(232, 240, 244, 0.22);
  border-radius: 6px;
  cursor: pointer;
}

.welcome-wizard__skip:hover {
  color: var(--color-text);
  border-color: rgba(232, 240, 244, 0.4);
}

.welcome-wizard__portrait {
  width: clamp(5.5rem, 22vmin, 7.5rem);
  height: clamp(5.5rem, 22vmin, 7.5rem);
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(232, 240, 244, 0.35);
  box-shadow: 0 0.35rem 1.5rem rgba(0, 0, 0, 0.45);
}

.welcome-wizard__portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.welcome-wizard__title {
  margin: 0 0 0.65rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(1.35rem, 3.2vw, 1.6rem);
  font-weight: 600;
  text-align: center;
  color: var(--color-text);
}

.welcome-wizard__title-mark {
  color: #cf111d;
}

.welcome-wizard__subtitle {
  margin: 0 0 0.75rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  font-weight: 600;
  color: var(--color-text);
}

.welcome-wizard__intro,
.welcome-wizard__prompt {
  margin: 0 0 0.75rem;
  font-size: clamp(0.9rem, 1.9vw, 0.98rem);
  line-height: 1.55;
  color: rgba(232, 240, 244, 0.88);
}

.welcome-wizard__prompt {
  font-weight: 500;
  color: var(--color-text);
}

.welcome-wizard__step-label {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 240, 244, 0.55);
}

.welcome-wizard__primary {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.65rem 1rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text);
  background: rgba(207, 17, 29, 0.95);
  border: 1px solid rgba(207, 17, 29, 1);
  border-radius: 10px;
  cursor: pointer;
}

.welcome-wizard__primary:hover {
  background: #e01524;
}

.welcome-wizard__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 420px) {
  .welcome-wizard__grid:not(.welcome-wizard__grid--dense) {
    grid-template-columns: 1fr 1fr;
  }

  .welcome-wizard__grid--dense {
    grid-template-columns: 1fr 1fr;
  }
}

.welcome-wizard__choice {
  padding: 0.55rem 0.65rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(0.78rem, 1.7vw, 0.86rem);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  color: var(--color-text);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(232, 240, 244, 0.18);
  border-radius: 10px;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.welcome-wizard__choice:hover {
  border-color: rgba(232, 240, 244, 0.35);
  background: rgba(232, 240, 244, 0.06);
}

.welcome-wizard__text-btn {
  display: block;
  margin: 0 auto;
  padding: 0.35rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(232, 240, 244, 0.65);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  background: none;
  border: none;
  cursor: pointer;
}

.welcome-wizard__text-btn:hover {
  color: var(--color-text);
}

@media (prefers-reduced-motion: reduce) {
  .welcome-wizard:not([hidden]) .welcome-wizard__panel {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

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

/** Site footer: four columns + legal bar (structure inspired by reference; styling matches MAAG) */
.site-footer {
  width: 100%;
  margin-top: 0;
  padding: 0;
  color: var(--color-text);
  background: linear-gradient(180deg, rgba(10, 16, 24, 0.28) 0%, #1f2d38 100%);
  border-top: 1px solid rgba(232, 240, 244, 0.1);
}

.site-footer__inner {
  /* Centered band with ~5–8% side margins (reference-style), generous vertical padding */
  --footer-x: clamp(1.35rem, 7vw, 6.5rem);
  box-sizing: border-box;
  width: min(100%, 120rem);
  max-width: 100%;
  margin-inline: auto;
  padding-block: clamp(2.75rem, 6vw, 4.25rem) clamp(2.5rem, 5.5vw, 3.75rem);
  padding-left: max(var(--footer-x), env(safe-area-inset-left, 0px));
  padding-right: max(var(--footer-x), env(safe-area-inset-right, 0px));
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 2.5rem);
  align-items: start;
}

@media (min-width: 640px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: minmax(12rem, 1.25fr) repeat(3, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 2.25rem);
  }
}

.site-footer__col {
  min-width: 0;
}

.site-footer__brand {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--color-text);
}

.site-footer__brand-mark {
  color: #cf111d;
}

.site-footer__tagline {
  margin: 0.45rem 0 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(232, 240, 244, 0.88);
}

.site-footer__lede {
  margin: 0.85rem 0 0;
  font-size: clamp(0.86rem, 1.7vw, 0.95rem);
  line-height: 1.55;
  color: rgba(232, 240, 244, 0.72);
}

.site-footer__heading {
  margin: 0 0 0.85rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(232, 240, 244, 0.58);
}

.site-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__list li {
  margin: 0 0 0.4rem;
}

.site-footer__list a {
  font-size: clamp(0.86rem, 1.65vw, 0.93rem);
  line-height: 1.35;
  color: rgba(232, 240, 244, 0.88);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}

.site-footer__list a:hover {
  color: #cf111d;
  border-bottom-color: rgba(207, 17, 29, 0.45);
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  color: rgba(232, 240, 244, 0.88);
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(232, 240, 244, 0.2);
  border-radius: 10px;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.site-footer__social-link:hover {
  color: var(--color-text);
  border-color: rgba(207, 17, 29, 0.75);
  background: rgba(14, 20, 32, 0.45);
}

.site-footer__social-icon {
  display: block;
}

.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding-top: clamp(1.15rem, 2.5vw, 1.5rem);
  border-top: 1px solid rgba(232, 240, 244, 0.12);
}

.site-footer__copyright {
  margin: 0;
  max-width: min(36rem, 100%);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.45;
  text-transform: uppercase;
  color: rgba(232, 240, 244, 0.48);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.65rem, 2vw, 1.15rem);
}

.site-footer__legal-link {
  display: inline-flex;
  align-items: center;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.25;
  color: rgba(232, 240, 244, 0.78);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}

.site-footer__legal-link:hover {
  color: #cf111d;
  border-bottom-color: rgba(207, 17, 29, 0.45);
}

button.site-footer__legal-link--btn {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  text-align: inherit;
  appearance: none;
  -webkit-appearance: none;
}

/** Legal modals: Impressum, Terms & Privacy (footer triggers) */
.footer-legal-modal[hidden] {
  display: none !important;
}

.footer-legal-modal {
  position: fixed;
  inset: 0;
  z-index: 230;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2rem);
}

.footer-legal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 18, 0.72);
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
}

.footer-legal-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(92vw, 640px);
  max-height: min(88vh, 820px);
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid rgba(232, 240, 244, 0.16);
  background: rgba(14, 20, 32, 0.96);
  box-shadow: 0 1.25rem 4rem rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.footer-legal-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
  padding: 0.65rem 0.85rem 0.65rem 1rem;
  border-bottom: 1px solid rgba(232, 240, 244, 0.1);
}

.footer-legal-modal__title {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.footer-legal-modal__close {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 1.45rem;
  line-height: 1;
  color: var(--color-text);
  background: transparent;
  border: 1px solid rgba(232, 240, 244, 0.22);
  border-radius: 8px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.footer-legal-modal__close:hover {
  background: rgba(232, 240, 244, 0.08);
  border-color: rgba(232, 240, 244, 0.35);
}

.footer-legal-modal__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 1.1rem 1.25rem 1rem;
  background: #0f141c;
}

.footer-legal-modal__meta {
  margin: 0 0 1rem;
  font-size: clamp(0.82rem, 1.6vw, 0.9rem);
  line-height: 1.55;
  color: rgba(232, 240, 244, 0.65);
}

.footer-legal-modal__content {
  font-size: clamp(0.84rem, 1.65vw, 0.92rem);
  line-height: 1.58;
  color: rgba(232, 240, 244, 0.86);
}

.footer-legal-modal__sub {
  margin: 1.15rem 0 0.4rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(232, 240, 244, 0.7);
}

.footer-legal-modal__sub:first-of-type {
  margin-top: 0;
}

.footer-legal-modal__content p {
  margin: 0 0 0.55rem;
}

.footer-legal-modal__content p:last-child {
  margin-bottom: 0;
}

.footer-legal-modal__content a {
  color: rgba(232, 240, 244, 0.95);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.footer-legal-modal__content a:hover {
  color: #cf111d;
}

@media (prefers-reduced-transparency: reduce) {
  .footer-legal-modal__backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(8, 12, 20, 0.92);
  }
}
