/* =========================================================
   All Finance Holding AG – Stylesheet
   ========================================================= */

/* ---------- Font (lokal gehostet) ---------- */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/manrope-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/manrope-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Logo-Schrift: nur für den Schriftzug neben dem Logo (wie im Original-Logo) */
@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/bodonimoda-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #16163f;
  --ink-deep: #0d0d2b;
  --ink-soft: #2a2a5a;
  --gold: #d3b574;
  --gold-light: #ecdcb0;
  --gold-deep: #85672b;
  --sand: #eceef2;
  --paper: #f7f7f5;
  --white: #ffffff;
  --muted: #5e5e7a;
  --line: rgba(22, 22, 63, 0.12);
  --line-strong: rgba(22, 22, 63, 0.28);
  --line-light: rgba(255, 255, 255, 0.14);
  --on-dark-muted: rgba(255, 255, 255, 0.68);
  --error: #b3261e;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-logo: "Bodoni Moda", "Bodoni 72", Didot, "Didot LT STD", Georgia, serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --container: 1320px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --header-h: 84px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

/* Bildmarke: das goldene Quadrat aus dem Original-Logo, als Ausschnitt aus logo.png */
.logo-mark {
  aspect-ratio: 924 / 760;
  height: auto;
  object-fit: cover;
  object-position: 50% 59.6%;
}
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--ink); }

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

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

.skip {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
  transform: translateY(-200%);
  transition: transform 0.3s var(--ease-out);
}
.skip:focus { transform: none; }

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

/* ---------- Typography ---------- */
.display {
  margin: 0;
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-size: clamp(2.3rem, 5.2vw, 4.5rem);
  text-wrap: balance;
}
.display em,
.hero-title em,
.statement em,
.legal-hero h1 em {
  font-style: normal;
  font-weight: 300;
  color: var(--gold-deep);
}
.on-dark .display em,
.on-dark .hero-title em { color: var(--gold); }

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--muted);
  max-width: 36rem;
}
.on-dark .lead { color: var(--on-dark-muted); }

/* ---------- Buttons & Links ---------- */
.btn {
  --bg: var(--gold);
  --fg: var(--ink);
  --fill: var(--ink);
  --fill-fg: var(--white);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.5s var(--ease-out), color 0.45s var(--ease-out), box-shadow 0.45s;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--fill);
  transform: translateY(101%);
  transition: transform 0.55s var(--ease-out);
}
.btn:hover { color: var(--fill-fg); }
.btn:hover::before { transform: translateY(0); }
.btn svg {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  transition: transform 0.5s var(--ease-out);
}
.btn:hover svg { transform: translateX(4px); }

.btn--ghost {
  --bg: transparent;
  --fg: currentColor;
  --fill: var(--gold);
  --fill-fg: var(--ink);
  box-shadow: inset 0 0 0 1px currentColor;
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--gold); }
.on-dark .btn:not(.btn--ghost) { --fill: var(--white); --fill-fg: var(--ink); }
.btn--sm { padding: 0.8rem 1.25rem; font-size: 0.875rem; }

.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  padding-bottom: 0.2rem;
}
.link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: right;
}
.link:hover::after { animation: underline 0.9s var(--ease-out); }
.link svg { width: 1em; height: 1em; transition: transform 0.5s var(--ease-out); }
.link:hover svg { transform: translateX(4px); }

@keyframes underline {
  0%   { transform: scaleX(1); transform-origin: right; }
  45%  { transform: scaleX(0); transform-origin: right; }
  46%  { transform: scaleX(0); transform-origin: left; }
  100% { transform: scaleX(1); transform-origin: left; }
}

/* ---------- Page transition curtain ---------- */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: var(--ink-deep);
  transform: translateY(100%);
  pointer-events: none;
}
.curtain img {
  width: 64px;
  height: auto;
  opacity: 0;
  transform: translateY(14px);
}
.is-leaving .curtain {
  transform: none;
  transition: transform 0.55s var(--ease-in-out);
}
.is-leaving .curtain img {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s 0.25s, transform 0.6s var(--ease-out) 0.25s;
}
.is-entering .curtain { transform: none; }
.is-entering .curtain img { opacity: 1; transform: none; }
.is-entered .curtain {
  transform: translateY(-100%);
  transition: transform 0.85s var(--ease-in-out);
}
.is-entered .curtain img {
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity 0.3s, transform 0.5s var(--ease-out);
}

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 70;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  color: var(--ink);
  transition:
    transform 0.6s var(--ease-out),
    height 0.45s var(--ease-out),
    background-color 0.45s,
    color 0.45s,
    box-shadow 0.45s;
}
.site-header.is-dark { color: var(--white); }
.site-header.is-scrolled {
  height: 68px;
  background: rgba(247, 247, 245, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-scrolled.is-dark {
  background: rgba(13, 13, 43, 0.72);
  box-shadow: 0 1px 0 var(--line-light);
}
.site-header.is-hidden { transform: translateY(-100%); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: none;
}
.brand img {
  width: 44px;
  height: auto;
  transition: transform 0.8s var(--ease-out);
}
.brand:hover img { transform: rotate(-6deg) scale(1.05); }
/* Schriftzug wie im Original-Logo: «ALL FINANCE» in Didone-Serif, «H O L D I N G» gesperrt */
.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-logo);
  line-height: 1;
}
.brand-text b {
  font-weight: 500;
  font-size: 1.12rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.brand-text small {
  margin-top: 0.38rem;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.74em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: clamp(1.5rem, 2.8vw, 2.75rem);
  margin-left: auto;
}
.nav a {
  position: relative;
  padding: 0.35rem 0;
  font-size: 0.9rem;
  font-weight: 500;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.burger {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  margin-right: -8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.burger span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.6s var(--ease-out), top 0.6s var(--ease-out);
}
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 27px; }
.menu-open .burger span:nth-child(1) { top: 22.5px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 22.5px; transform: rotate(-45deg); }

.menu-open .site-header {
  color: var(--white);
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transform: none;
}

/* ---------- Mobile menu ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2.5rem;
  background: var(--ink-deep);
  color: var(--white);
  clip-path: circle(0% at calc(100% - 2.6rem) 2.6rem);
  visibility: hidden;
  transition: clip-path 0.8s var(--ease-in-out), visibility 0s linear 0.8s;
}
.menu.is-open {
  clip-path: circle(150% at calc(100% - 2.6rem) 2.6rem);
  visibility: visible;
  transition: clip-path 0.9s var(--ease-in-out), visibility 0s;
}
.menu nav { display: flex; flex-direction: column; gap: 0.5rem; }
.menu nav a {
  display: block;
  overflow: hidden;
  font-size: clamp(2.2rem, 10vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.15;
}
.menu nav a[aria-current="page"] { color: var(--gold); }
.menu nav a span {
  display: block;
  transform: translateY(110%);
  transition: transform 0.7s var(--ease-out);
}
.menu.is-open nav a span {
  transform: none;
  transition: transform 0.9s var(--ease-out) calc(0.3s + var(--i) * 0.07s);
}
.menu-foot {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-light);
  color: var(--on-dark-muted);
  opacity: 0;
  transition: opacity 0.4s;
}
.menu.is-open .menu-foot { opacity: 1; transition: opacity 0.8s 0.7s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: calc(var(--header-h) + 3rem) clamp(2.5rem, 7vh, 4.5rem);
  background: var(--ink-deep);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(90% 70% at 85% 10%, rgba(211, 181, 116, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(13, 13, 43, 0.35) 0%, rgba(13, 13, 43, 0.6) 55%, var(--ink-deep) 100%);
}
.hero-media {
  position: absolute;
  inset: -12% 0 -12% 0;
  z-index: 0;
  will-change: transform;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.15);
  opacity: 0.32;
  transform: scale(1.18);
  transition: transform 3s var(--ease-out), opacity 2s var(--ease-out);
}
.is-loaded .hero-media img { transform: scale(1); }

.hero-arc {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: transform 1.2s var(--ease-out);
}
.hero-arc path {
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.is-loaded .hero-arc path { stroke-dashoffset: 0; transition: stroke-dashoffset 2.8s var(--ease-in-out) 0.35s; }
.is-loaded .hero-arc path:nth-child(2) { transition-delay: 0.65s; }
.is-loaded .hero-arc path:nth-child(3) { transition-delay: 0.95s; }

.hero-inner { position: relative; z-index: 2; }

.hero-title {
  margin: 1.6rem 0 0;
  font-size: clamp(3.1rem, 8.6vw, 8rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.055em;
}
/* the mask is padded so umlauts and descenders (Ü, g, p) stay inside it */
.hero-title .line {
  display: block;
  overflow: hidden;
  padding: 0.14em 0.06em 0.24em 0;
  margin: -0.14em 0 -0.24em;
}
.hero-title .line > span { display: block; }
.js .hero-title .line > span {
  transform: translateY(140%) rotate(2deg);
  transform-origin: left bottom;
  transition: transform 1.4s var(--ease-out);
}
.js .hero-title .line:nth-child(2) > span { transition-delay: 0.12s; }
.is-loaded .hero-title .line > span { transform: none; }
.hero--home .hero-title .line:nth-child(2) { padding-left: clamp(0rem, 5vw, 6rem); }

.hero-bottom {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem 3rem;
  margin-top: clamp(2.5rem, 6vh, 4rem);
  padding-top: 2rem;
}
.hero-bottom::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: var(--line-light);
  transform-origin: left;
}
.js .hero-bottom::before { transform: scaleX(0); transition: transform 1.6s var(--ease-out) 0.6s; }
.is-loaded .hero-bottom::before { transform: scaleX(1); }
.hero-lead {
  margin: 0;
  max-width: 36rem;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--on-dark-muted);
}
.hero-lead strong { color: var(--white); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Sub-page hero */
.hero--page {
  min-height: clamp(520px, 78vh, 780px);
  min-height: clamp(520px, 78svh, 780px);
}
.hero--page .hero-title { font-size: clamp(2.3rem, 9.4vw, 7rem); }

.scroll-cue {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  color: var(--on-dark-muted);
  transform: translateY(-50%);
}
.scroll-cue span {
  position: relative;
  width: 1px;
  height: 64px;
  overflow: hidden;
  background: var(--line-light);
}
.scroll-cue span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  animation: cue 2.4s var(--ease-in-out) infinite;
}
@keyframes cue {
  0%   { transform: translateY(-100%); }
  50%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  padding-block: clamp(1.25rem, 2.5vw, 1.9rem);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: flex;
  align-items: center;
  gap: clamp(1.75rem, 3vw, 3rem);
  padding-right: clamp(1.75rem, 3vw, 3rem);
}
.marquee-item {
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  white-space: nowrap;
  transition: color 0.3s;
}
a.marquee-item:hover { color: var(--gold-deep); }
.marquee-dot {
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(5rem, 11vw, 9.5rem); position: relative; }
.section--dark { background: var(--ink-deep); color: var(--white); }
.section--sand { background: var(--sand); }

.section-head { max-width: 58rem; }
.section-head .lead { margin-top: 1.75rem; }
.section-head .link { margin-top: 2.25rem; }

/* Statement with scroll-linked highlight */
.statement {
  margin: 0;
  font-size: clamp(1.75rem, 3.8vw, 3.25rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.035em;
  text-wrap: pretty;
}
.js .statement .w { opacity: 0.14; transition: opacity 0.35s ease-out; }
.js .statement .w.is-lit { opacity: 1; }

/* About */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
  margin-top: clamp(4rem, 9vw, 8rem);
}
.about-visual { position: relative; }
.about-media {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  background: var(--sand);
}
.about-media-inner {
  position: absolute;
  inset: -10% 0;
  will-change: transform;
}
.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 50%;
}
.badge {
  position: absolute;
  right: clamp(-3rem, -4vw, -1rem);
  bottom: clamp(-3rem, -4vw, -1.5rem);
  width: clamp(120px, 14vw, 168px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink-deep);
  color: var(--gold);
  box-shadow: 0 24px 50px -20px rgba(13, 13, 43, 0.55);
}
.badge svg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* rotate inside the SVG so the spinning box never widens the page */
.badge svg g { transform-origin: 100px 100px; animation: spin 22s linear infinite; }
.badge text { font-family: var(--font); font-size: 12.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; fill: currentColor; }
.badge img { width: 38%; height: auto; }
@keyframes spin { to { transform: rotate(360deg); } }

.about-text .display { font-size: clamp(2.1rem, 4vw, 3.4rem); margin-bottom: 2rem; }
.about-text > p { color: var(--muted); max-width: 34rem; }

.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2.5rem 0;
  border-top: 1px solid var(--line);
}
.values li {
  padding-top: 1.1rem;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}
/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: clamp(5rem, 10vw, 8.5rem);
}
.stats--flush { margin-top: 0; }
.stat { position: relative; padding-top: 1.75rem; }
.stat-line {
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: var(--line-strong);
}
.stat-num {
  display: flex;
  align-items: flex-start;
  margin: 0;
  font-size: clamp(4rem, 8.5vw, 7.25rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}
.stat-num sup {
  margin: 0.1em 0 0 0.06em;
  font-size: 0.38em;
  font-weight: 300;
  line-height: 1;
  color: var(--gold-deep);
}
.stat-label {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---------- Holding network (home) ---------- */
.network {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  margin-top: clamp(4rem, 9vw, 7.5rem);
}
.network-visual {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1;
}
.network-svg { width: 100%; height: 100%; overflow: visible; }
.net-orbit { fill: none; stroke: var(--line); }
.net-orbit--inner { stroke-dasharray: 2 7; }
.net-line {
  fill: none;
  stroke: url(#netGold);
  stroke-width: 1;
  opacity: 0.6;
  transition: opacity 0.3s, stroke-width 0.3s;
}
.net-dot {
  fill: var(--paper);
  stroke: var(--gold-deep);
  stroke-width: 1.5;
  transition: opacity 0.3s, fill 0.3s;
}
.net-arc {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  transition: opacity 0.3s, stroke 0.3s;
}
.network-visual.has-active .net-line,
.network-visual.has-active .net-dot,
.network-visual.has-active .net-arc { opacity: 0.16; }
.network-visual.has-active .is-active { opacity: 1; }
.net-line.is-active { stroke-width: 1.8; }
.net-dot.is-active { fill: var(--gold); }
.net-arc.is-active { stroke: var(--gold-deep); }
.network-core {
  position: absolute;
  top: 31%;
  left: 31%;
  width: 38%;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 50%;
  background: var(--ink-deep);
  color: var(--white);
  box-shadow: 0 30px 60px -30px rgba(13, 13, 43, 0.6);
}
.network-num {
  font-size: clamp(2.6rem, 6vw, 4.75rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}
.network-label { margin-top: 0.4rem; font-size: 0.85rem; color: var(--on-dark-muted); }
.network-text .display { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 2rem; }
.network-legend { border-top: 1px solid var(--line); }
.network-legend a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  transition: color 0.25s;
}
.network-legend b { font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.network-legend a:hover,
.network-legend a.is-active { color: var(--gold-deep); }

/* ---------- Explore (home: links to sub-pages) ---------- */
.explore {
  position: relative;
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
}
.explore-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem 2rem;
  align-items: center;
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.explore-row::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--gutter) * -1);
  z-index: -1;
  background: var(--sand);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.7s var(--ease-out);
}
.explore-row:hover::before,
.explore-row:focus-visible::before { transform: scaleY(1); }
.explore-title {
  font-size: clamp(2rem, 4.6vw, 3.75rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
  transition: color 0.3s;
}
.explore-row:hover .explore-title { color: var(--gold-deep); }
.explore-text { margin: 0; color: var(--muted); max-width: 28rem; }
/* ---------- Services (dark) ---------- */
.services {
  margin-top: clamp(3.5rem, 7vw, 6rem);
  border-top: 1px solid var(--line-light);
}
.service {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1.25fr) 2.5rem;
  gap: 1.5rem 2rem;
  align-items: center;
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line-light);
  isolation: isolate;
}
.service-num {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold);
}
.service h3 {
  margin: 0;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.service p { margin: 0; color: var(--on-dark-muted); max-width: 30rem; }
.service-mark {
  justify-self: end;
  width: 14px;
  height: 14px;
  border: 1px solid var(--gold);
  background: var(--ink-deep);
  transform: rotate(45deg);
  position: relative;
  z-index: 1;
  transition: background-color 0.4s, box-shadow 0.4s;
}
.service.is-reached .service-mark {
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(211, 181, 116, 0.16);
}

/* the way through the four stations */
.services-wrap { position: relative; }
.services-path {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 6.5px;
  width: 1px;
  background: var(--line-light);
  pointer-events: none;
}
.services-path-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 60%, var(--gold-deep));
  transform-origin: top;
}

/* ---------- Companies (directory) ---------- */
/* all branches in one row; scrolls sideways where the row is wider than the page */
.companies-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}
.filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4em;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 0.25rem;
  /* scales with the window so all chips fit in one row on desktop */
  font-size: clamp(0.68rem, 1.05vw, 0.875rem);
}
.filters::-webkit-scrollbar { display: none; }
.filters.is-scrollable {
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
  mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.6em 0.95em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  font-size: 1em;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.chip:hover { border-color: var(--ink); }
.chip small { font-size: 0.85em; font-weight: 600; color: var(--muted); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip.is-active small { color: var(--gold); }
.companies-count { margin: 0; font-size: 0.9rem; color: var(--muted); white-space: nowrap; }
.companies-count b { color: var(--ink); font-weight: 600; }

.directory { margin-top: 2.5rem; }
.dir-head,
.dir-group {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  column-gap: 2.5rem;
}
.dir-head {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.dir-group[hidden] { display: none; }
.dir-group { padding-block: 1.75rem; border-bottom: 1px solid var(--line); }
.dir-title { margin: 0; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.dir-title span { margin-left: 0.3rem; font-weight: 400; color: var(--muted); }
.dir-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 0.15rem 1.5rem;
  padding-block: 0.65rem;
  border-top: 1px solid var(--line);
}
.dir-head .dir-row,
.dir-list .dir-row:first-child { border-top: 0; padding-top: 0; }
.dir-list .dir-row:last-child { padding-bottom: 0; }
.dir-name { font-weight: 600; }
.dir-type { color: var(--muted); }
.dir-label { display: none; }

.dir-group.is-hiding { opacity: 0; transition: opacity 0.2s; }
.dir-group.is-entering {
  animation: groupIn 0.5s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 40ms);
}
@keyframes groupIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 760px) {
  /* phones: keep chips large enough to tap; the row scrolls sideways */
  .filters { font-size: 0.875rem; }
  .dir-head { display: none; }
  .dir-group { grid-template-columns: 1fr; row-gap: 0.75rem; }
  .dir-row { grid-template-columns: 1fr; }
  .dir-label { display: inline; }
  .dir-lead { color: var(--muted); }
}

/* ---------- Branch explorer (Gesellschaften, built by graphics.js) ---------- */
/* the plain list stays as fallback without JavaScript */
.has-explorer .directory { display: none; }
.bx-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 2rem;
}
.bx-head .display { font-size: clamp(2rem, 4.4vw, 3.5rem); }
.bx-head p { margin: 0.75rem 0 0; color: var(--muted); }
.bx-back[hidden] { display: none; }

.bx-stage { position: relative; overflow: hidden; }
.bx-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.bx-tile {
  display: grid;
  align-content: space-between;
  gap: 1.75rem;
  min-height: 13rem;
  padding: clamp(1.25rem, 2.4vw, 2rem);
  border: 0;
  background: var(--paper);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.3s;
}
.bx-tile:hover,
.bx-tile:focus-visible { background: var(--white); }
.bx-name {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.bx-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.bx-meta small { font-size: 0.85rem; color: var(--muted); }
/* one diamond per company: the size of the branch at a glance */
.bx-dots { display: flex; gap: 6px; }
.bx-dots i {
  width: 8px;
  height: 8px;
  border: 1px solid var(--gold-deep);
  transform: rotate(45deg);
  transition: background-color 0.3s, border-color 0.3s;
}
.bx-tile:hover .bx-dots i,
.bx-tile:focus-visible .bx-dots i { background: var(--gold); border-color: var(--gold); }

/* exploded view */
.bx-burst { position: absolute; inset: 0; pointer-events: none; }
.bx-burst.is-open { pointer-events: auto; }
.bx-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bx-lines line { stroke: var(--gold); stroke-width: 1; }
.bx-hub,
.bx-card { position: absolute; left: 0; top: 0; visibility: hidden; }
.bx-hub {
  display: grid;
  place-content: center;
  gap: 0.35rem;
  width: 176px;
  aspect-ratio: 1;
  padding: 1rem;
  border-radius: 50%;
  background: var(--ink-deep);
  color: var(--white);
  text-align: center;
  box-shadow: 0 30px 60px -30px rgba(13, 13, 43, 0.6);
}
.bx-hub b { font-size: 1.15rem; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.bx-hub small { font-size: 0.8rem; color: var(--gold); }
.bx-card {
  width: 268px;
  padding: 1rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
}
/* company names always stay on one line */
.bx-card b { display: block; font-size: 1rem; font-weight: 600; line-height: 1.25; white-space: nowrap; }
.bx-card span { display: block; margin-top: 0.3rem; font-size: 0.88rem; line-height: 1.4; color: var(--muted); }
.bx-card small { display: block; margin-top: 0.6rem; font-size: 0.78rem; color: var(--gold-deep); }
/* small button to the company's own website */
.bx-web {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.8rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  transition: background-color 0.25s, border-color 0.25s;
}
.bx-web svg { width: 0.85rem; height: 0.85rem; flex: none; transition: transform 0.3s var(--ease-out); }
.bx-web:hover,
.bx-web:focus-visible { background: var(--gold); border-color: var(--gold); }
.bx-web:hover svg { transform: translate(2px, -2px); }
/* without JavaScript the company names in the list link to their websites */
a.dir-name { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
a.dir-name:hover { color: var(--gold-deep); }

@media (max-width: 900px) {
  .bx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .bx-hub { width: 140px; }
  .bx-card { width: min(300px, calc(100vw - 2 * var(--gutter) - 24px)); }
}
@media (max-width: 520px) {
  .bx-grid { grid-template-columns: 1fr; }
  .bx-tile { min-height: 0; }
}
/* ---------- CTA band ---------- */
.cta {
  position: relative;
  padding-block: clamp(6rem, 14vw, 11rem);
  background: var(--ink-deep);
  color: var(--white);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.cta-media {
  position: absolute;
  inset: -18% 0;
  z-index: -2;
  will-change: transform;
}
.cta-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  opacity: 0.5;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 80% at 50% 50%, rgba(13, 13, 43, 0.35), rgba(13, 13, 43, 0.85)),
    linear-gradient(180deg, rgba(13, 13, 43, 0.4), rgba(13, 13, 43, 0.4));
}
.cta .display { font-size: clamp(2.5rem, 6.5vw, 5.5rem); max-width: 15ch; margin-inline: auto; }
.cta p { margin: 1.75rem auto 2.5rem; max-width: 32rem; color: var(--on-dark-muted); font-size: 1.1rem; }

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}
.contact-intro .display { margin: 0 0 1.5rem; font-size: clamp(2rem, 3.6vw, 3rem); }
.contact-list { margin-top: 3rem; display: grid; gap: 1.6rem; }
.contact-list li { display: grid; grid-template-columns: 2.75rem 1fr; gap: 1rem; align-items: start; }
.contact-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold-deep);
  transition: background-color 0.4s, color 0.4s, border-color 0.4s, transform 0.6s var(--ease-out);
}
.contact-icon svg { width: 1.1rem; height: 1.1rem; }
.contact-list li:hover .contact-icon { background: var(--ink); color: var(--gold); border-color: var(--ink); transform: rotate(-8deg); }
.contact-list small {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.contact-list address { font-style: normal; }
.contact-list a { font-weight: 600; }

.form-card {
  padding: clamp(1.75rem, 4vw, 3.25rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 40px 80px -50px rgba(22, 22, 63, 0.35);
}
.form-card h2 { margin: 0 0 2rem; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.03em; }
.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.9rem 1.5rem;
}
.field { position: relative; }
.field--full { grid-column: 1 / -1; }
.field input,
.field textarea {
  width: 100%;
  padding: 1.45rem 0 0.6rem;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.02rem;
  outline: none;
  transition: border-color 0.3s;
}
.field textarea { min-height: 7.5rem; resize: vertical; line-height: 1.5; }
.field label {
  position: absolute;
  left: 0;
  top: 1.4rem;
  color: var(--muted);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.45s var(--ease-out), color 0.3s;
}
.field label i { font-style: normal; color: var(--gold-deep); }
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-1.25rem) scale(0.78);
  color: var(--gold-deep);
}
.field::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}
.field:has(textarea)::after { bottom: 6px; }
.field:focus-within::after { transform: scaleX(1); }
.field.is-invalid input,
.field.is-invalid textarea { border-bottom-color: var(--error); }
.field.is-invalid label { color: var(--error); }

.check {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.92rem;
  color: var(--muted);
  cursor: pointer;
}
.check input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  display: grid;
  place-items: center;
  width: 1.3rem;
  height: 1.3rem;
  margin: 0.1rem 0 0;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--white);
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s;
}
.check input::after {
  content: "";
  width: 0.38rem;
  height: 0.7rem;
  margin-top: -0.15rem;
  border: solid var(--ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.4s var(--ease-out);
}
.check input:checked { background: var(--gold); border-color: var(--gold); }
.check input:checked::after { transform: rotate(45deg) scale(1); }
.check a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.check i { font-style: normal; color: var(--gold-deep); }
.check.is-invalid { color: var(--error); }
.check.is-invalid input { border-color: var(--error); }

.form-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.form-foot small { color: var(--muted); font-size: 0.82rem; }
.form-status {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.95rem;
  min-height: 1.5em;
}
.form-status.is-error { color: var(--error); }
.form-status.is-success { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  padding-top: clamp(4rem, 8vw, 6.5rem);
  background: var(--ink-deep);
  color: var(--on-dark-muted);
  overflow: hidden;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}
.footer-logo { width: 116px; height: auto; }
.footer-claim {
  margin-top: 1.5rem;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.3;
  color: var(--white);
}
.footer-title {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
}
.footer-list { display: grid; gap: 0.55rem; }
.footer-list a { position: relative; transition: color 0.3s; }
.footer-list a:hover,
.footer-list a[aria-current="page"] { color: var(--white); }
.site-footer address { font-style: normal; }

.footer-bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-block: 1.6rem;
  border-top: 1px solid var(--line-light);
  font-size: 0.85rem;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-bottom a:hover,
.footer-bottom a[aria-current="page"] { color: var(--white); }
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.to-top span {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  transition: background-color 0.4s, color 0.4s, transform 0.6s var(--ease-out);
}
.to-top svg { width: 0.9rem; height: 0.9rem; }
.to-top:hover span { background: var(--gold); color: var(--ink); transform: translateY(-3px); }

/* ---------- Legal pages ---------- */
.legal-hero {
  padding: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}
.legal-hero h1 {
  margin: 1.25rem 0 0;
  font-size: clamp(2.6rem, 7.5vw, 5.75rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
}
.legal-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
  gap: 2rem 4rem;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(5rem, 10vw, 8rem);
}
.legal-toc { position: sticky; top: 100px; align-self: start; }
.legal-toc ol { display: grid; gap: 0.5rem; }
.legal-toc a {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.3s, transform 0.4s var(--ease-out);
}
.legal-toc a:hover,
.legal-toc a.is-active { color: var(--ink); transform: translateX(4px); }
.legal-toc a.is-active { font-weight: 600; }
.prose { max-width: 46rem; }
.prose h2 {
  margin: 3.5rem 0 1.25rem;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  scroll-margin-top: 100px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 2.25rem 0 0.6rem; font-size: 1.08rem; font-weight: 700; }
.prose h4 { margin: 1.5rem 0 0.4rem; font-size: 1rem; font-weight: 600; }
.prose p, .prose li { color: #3b3b5e; }
.prose ul { margin: 0 0 1.1em; padding-left: 1.2rem; list-style: none; }
.prose ul li { position: relative; padding-left: 0.4rem; margin-bottom: 0.3rem; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: -0.9rem;
  top: 0.7em;
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
}
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; word-break: break-word; }
.prose .caps { font-size: 0.92rem; letter-spacing: 0.01em; }
.legal-card {
  padding: 1.75rem;
  margin-bottom: 2.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.legal-card p:last-child { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .header-cta { display: none; }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .nav { display: none; }
  .burger { display: block; }
  .site-header.is-scrolled { height: 64px; }

  .legal-body { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .legal-toc ol { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

  .about,
  .contact { grid-template-columns: 1fr; }
  .about-visual { max-width: 560px; margin-right: 1.5rem; }
  .badge { right: -1.5rem; }

  .service { grid-template-columns: 3rem minmax(0, 1fr) 1.5rem; }
  .service p { grid-column: 2 / 3; }
  .service-mark { grid-row: 1; grid-column: 3; }

  .explore-row { grid-template-columns: 1fr; }

  .network { grid-template-columns: 1fr; }
  .network-visual { max-width: 460px; margin-inline: auto; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .scroll-cue { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hide-sm { display: none; }
  .hero-bottom { grid-template-columns: 1fr; }
  .hero--home .hero-title .line:nth-child(2) { padding-left: 0; }
  .hero-actions .btn { flex: 1 1 auto; }

  .values { grid-template-columns: 1fr; gap: 0; }
  .values li { padding-block: 0.9rem; border-bottom: 1px solid var(--line); }

  .stats { grid-template-columns: 1fr; gap: 0; }
  .stat { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; }
  .stat-num { font-size: clamp(3.25rem, 17vw, 4.5rem); }
  .stat-label { margin: 0; text-align: right; }

  .service { grid-template-columns: 2.25rem minmax(0, 1fr) 1rem; gap: 0.75rem 1rem; }


  .form { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .badge { width: 112px; right: -1rem; bottom: -1.75rem; }
  .about-visual { margin-right: 1rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .js .hero-title .line > span {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
  .js .statement .w { opacity: 1; }
  .marquee-track { animation: none; }
  .hero-arc path { stroke-dashoffset: 0; }
  .curtain { display: none; }
}
