/* Selbst gehostete Schriften (kein Google-Fonts-Request -> kein IP-Transfer an
   Dritte, DSGVO-konform). Space Grotesk (Variable Font, Achse wght) deckt 300–700
   aus einer Datei ab; Space Mono (400/700) fuer technische Zahlen. Subset: latin
   (U+0000–00FF inkl. ä/ö/ü/ß). */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/space-grotesk-latin-wght-normal.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: "Space Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/space-mono-400-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: "Space Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/space-mono-700-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;
}

:root {
  --blue: #005ea8;
  --blue-deep: #004b8d;
  --cyan: #11a7d7;
  --pale-blue: #b9d1e8;
  --profile-blue: #2b7a96; /* dunkler -> 4.8:1 auf Weiss (war #4f94ad / 3.36:1) */
  --number-blue: #589ab5;
  --line-blue: #a7cae4;
  --surface: #ffffff;
  --surface-soft: #f7fafc;
  --text: var(--blue);     /* Fliesstext im Marken-Blau (User-Praeferenz: kein Schwarz) */
  --header-height: 72px;
  --page-pad: clamp(20px, 5vw, 72px);
  --font-sans: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "Segoe UI", monospace;
  color-scheme: light;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--surface);
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow-x: clip;
}

/* Native Scrollbar bleibt sichtbar: Position-Anzeige + Drag-to-scroll sind
   wichtige Kontrollen. Die dekorative .scroll-line wird stattdessen ausgeblendet
   (siehe unten), um doppelte Anzeigen am rechten Rand zu vermeiden. */

body {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.45;
  color: var(--text);
  background: var(--surface);
}

img {
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--blue);
  color: var(--surface);
  border: 1px solid var(--blue-deep);
  transform: translateY(-150%);
  transition: transform 200ms ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--surface);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .skip-link { transition: none; }
}

/* Scrim hinter dem offenen Mobile-Menue: dunkelt den Seiteninhalt ab
   (Ebenentrennung) und schliesst das Menue per Klick ausserhalb. */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 15;
  background: rgba(8, 20, 30, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 240ms ease, visibility 0s linear 240ms;
}

body.nav-open .nav-scrim {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 240ms ease, visibility 0s linear 0s;
}

@media (min-width: 761px) {
  .nav-scrim { display: none; } /* Desktop hat kein Overlay-Menue */
}

@media (prefers-reduced-motion: reduce) {
  .nav-scrim { transition: none; }
}

a,
button {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--blue); /* Blau statt Cyan: 6.5:1 -> erfuellt 3:1 fuer Focus-Indikatoren */
  outline-offset: 4px;
}

.section-inner {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding-inline: var(--page-pad);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 10px var(--page-pad);
  border-bottom: 1px solid var(--line-blue);
  background: rgba(255, 255, 255, 0.97);
  transition: min-height 420ms cubic-bezier(0.4, 0, 0.2, 1),
              background-color 320ms ease,
              box-shadow 320ms ease,
              backdrop-filter 320ms ease;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  transition: opacity 300ms ease;
}

.logo-link:hover {
  opacity: 0.75;
}

.logo {
  display: block;
  width: auto;
  height: 44px;
  transform-origin: left center;
  transition: transform 420ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Initialer Scroll-Zustand beim Laden ohne Animation setzen (kein Puls beim Neuladen) */
.site-header.fx-no-anim,
.site-header.fx-no-anim .logo {
  transition: none !important;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 10px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: border-color 240ms ease;
}

.menu-button:hover {
  border-color: var(--line-blue);
}

.menu-button span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--blue);
  transform-origin: center;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
              opacity 180ms ease;
}

.site-header.is-open .menu-button span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-open .menu-button span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.2);
}

.site-header.is-open .menu-button span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}

.site-nav a {
  position: relative;
  border-bottom: 2px solid transparent;
  padding-block: 8px;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 420ms cubic-bezier(0.65, 0, 0.35, 1);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

main {
  min-width: 0;
}

section {
  scroll-margin-top: var(--header-height);
}

/* Hero + Leistungs-Anker teilen einen durchgehenden Hintergrund, damit die
   SiGeKo/SiFa/Zertifizierungen-Hexe auf derselben Grafik sitzen wie der Hero
   (nahtloses Verschmelzen, keine Trennlinie dazwischen). */
.hero-stack {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface) 0%, #fbfdff 100%);
}

/* Technisches Zeichnungsblatt: Rahmen + Passkreuze zeichnen sich beim Laden ein. */
.sheet-frame {
  position: absolute;
  inset: clamp(14px, 2vw, 30px);
  z-index: 0;
  pointer-events: none;
}

.sf-line {
  position: absolute;
  background: var(--line-blue);
}

.sf-top-left  { top: 0; left: 0; width: 50%; height: 1px; transform: scaleX(0); transform-origin: right center; }
.sf-top-right { top: 0; right: 0; width: 50%; height: 1px; transform: scaleX(0); transform-origin: left center; }
.sf-right     { top: 0; right: 0; width: 1px; height: 100%; transform: scaleY(0); transform-origin: center bottom; }
.sf-bottom    { bottom: 0; left: 0; width: 100%; height: 1px; transform: scaleX(0); transform-origin: left center; }
.sf-left      { top: 0; left: 0; width: 1px; height: 100%; transform: scaleY(0); transform-origin: center top; }

.sf-inner {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(167, 202, 232, 0.5);
  opacity: 0;
}

/* Passkreuze (Registermarken) in den oberen Blattecken. */
.sheet-reg {
  position: absolute;
  width: 16px;
  height: 16px;
  opacity: 0;
}

.sheet-reg::before,
.sheet-reg::after {
  content: "";
  position: absolute;
  background: var(--cyan);
}

.sheet-reg::before { left: 7px; top: 0; width: 1px; height: 16px; }
.sheet-reg::after { top: 7px; left: 0; width: 16px; height: 1px; }
.sheet-reg-tl { left: -7px; top: -7px; }
.sheet-reg-tr { right: -8px; top: -7px; }

@keyframes sf-draw-x { to { transform: scaleX(1); } }
@keyframes sf-draw-y { to { transform: scaleY(1); } }
@keyframes sf-fade { to { opacity: 1; } }

/* Oben gleichzeitig aus der Mitte nach links + rechts, dann nur links weiter
   nach unten, über den Boden und rechts wieder hoch (CCW). */
/* Gestrafft: Gesamtsequenz endet ~1.7s statt ~2.55s (wirkt praeziser statt zaeh). */
.sf-top-left  { animation: sf-draw-x 0.28s ease forwards 0.08s; }
.sf-top-right { animation: sf-draw-x 0.28s ease forwards 0.08s; }
.sf-left      { animation: sf-draw-y 0.38s ease forwards 0.34s; }
.sf-bottom    { animation: sf-draw-x 0.42s ease forwards 0.66s; }
.sf-right     { animation: sf-draw-y 0.36s ease forwards 1.00s; }
.sf-inner     { animation: sf-fade 0.32s ease forwards 1.30s; }
.sheet-reg    { animation: sf-fade 0.28s ease forwards 1.45s; }

@media (prefers-reduced-motion: reduce) {
  .sf-line { transform: none; animation: none; }
  .sf-inner,
  .sheet-reg { opacity: 1; animation: none; }
}

.top-area {
  position: relative;
  z-index: 1;
}

.top-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-items: center;
  min-height: clamp(460px, 43vw, 620px);
  padding-block: clamp(48px, 6vw, 84px) clamp(42px, 5vw, 72px);
  text-align: center;
}

.hero-brand {
  align-self: center;
  width: min(820px, 100%);
}

.hero-logo {
  display: block;
  width: min(560px, 100%);
  height: auto;
  margin: 0 auto;
}

.hero-tagline {
  margin: 26px 0 12px;
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--blue);
}

.hero-subline {
  max-width: 580px;
  margin: 0 auto;
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 720px;
  margin: 26px auto 0;
  padding: 0;
  list-style: none;
}

.hero-proof li {
  display: inline-flex;
  align-items: center;
  /* Globale Listenregel `li + li { margin-top: 12px }` neutralisieren -- sonst
     bekommt jedes Pill ausser dem ersten 12px Top-Margin, wodurch das erste
     Pill (SiGeKo) bei align-items:stretch hoeher gezogen/versetzt wird. */
  margin-top: 0;
  min-height: 34px;
  border: 1px solid rgba(0, 94, 168, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  padding: 7px 12px;
  color: var(--blue-deep);
  font-size: 14px;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 24px auto 0;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--blue);
  background: rgba(255, 255, 255, 0.86);
  padding: 12px 18px;
  color: var(--blue);
  text-align: center;
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1),
              background-color 420ms cubic-bezier(0.16, 1, 0.3, 1),
              color 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-button::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 1px;
  margin-left: 0;
  background: currentColor;
  transition: width 420ms cubic-bezier(0.16, 1, 0.3, 1),
              margin-left 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-button:hover,
.hero-button:focus-visible {
  background: var(--surface-soft);
  transform: scale(1.025);
}

.hero-button:hover::after,
.hero-button:focus-visible::after {
  width: 18px;
  margin-left: 10px;
}

.hero-button-primary {
  background: var(--blue);
  color: var(--surface);
}

.hero-button-primary:hover,
.hero-button-primary:focus-visible {
  background: var(--blue-deep);
  color: var(--surface);
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 700;
  line-height: 1.2;
}

.service-anchors {
  position: relative;
  isolation: isolate;
  z-index: 1;
  border-bottom: 1px solid var(--line-blue);
  background: transparent;
}

.service-anchors .section-inner {
  position: relative;
  z-index: 1;
}

.anchor-scroll {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: center;
  gap: clamp(20px, 4vw, 54px);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  scroll-behavior: smooth;
  scroll-padding-inline: var(--page-pad);
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
  padding-block: 34px clamp(58px, 6vw, 88px);
}

.anchor-scroll::-webkit-scrollbar,
.service-points::-webkit-scrollbar {
  display: none;
}

.hex-anchor {
  position: relative;
  isolation: isolate;
  z-index: 1;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  background: transparent;
  scroll-snap-align: center;
  scroll-snap-stop: normal;
  /* Kein min-width: Box umschliesst das Emblem -> bei konstantem gap sind die
     Abstaende zwischen den Buttons immer exakt gleich (Kundenwunsch), unabhaengig
     von Label-/Viewport-Breite. (Mobile hatte min-width:0 bereits.) */
  min-width: 0;
  min-height: clamp(112px, 13vw, 162px);
  transform: scale(1);
  transform-origin: center;
  transition: transform 460ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hex-emblem {
  display: block;
  width: auto;
  height: clamp(110px, 13vw, 162px);
  overflow: visible; /* Eck-Klammern dürfen beim Hover über die viewBox ragen */
}

.hex-emblem .he-bg {
  fill: var(--surface);
}

.hex-emblem .he-label {
  fill: var(--blue);
}

.hex-anchor:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 6px;
}

.hex-anchor:hover,
.hex-anchor:focus-visible {
  transform: scale(1.055);
}

/* 6 Eck-Klammern: sitzen in Ruhe auf den Hex-Ecken (unsichtbar) und poppen beim
   Hover radial nach außen über den Hex hinaus. Geometrie steckt als 6 polylines
   im SVG (index.html). Strich ist non-scaling, bleibt also konstant dünn. */
.hex-frame {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(1);
  opacity: 0;
  transition: opacity 350ms ease,
              transform 550ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hex-frame polyline {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.8;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hex-anchor:hover .hex-frame,
.hex-anchor:focus-visible .hex-frame {
  opacity: 0.95;
  transform: scale(1.593); /* Abstand 90 (= (R+90)/R bei R≈151,7) */
}

/* Hex-Reihe "konstruiert sich beim Erreichen" (Trigger: scroll-fx.js).
   Nur mit JS (.has-fx) starten die Embleme verborgen und bauen sich gestaffelt auf.
   Ohne JS / bei Reduced-Motion sind sie sofort sichtbar. */
.has-fx .service-anchors .hex-emblem {
  opacity: 0;
  transform: scale(0.94);
  transform-origin: center;
  transition: opacity 450ms ease,
              transform 550ms cubic-bezier(0.16, 1, 0.3, 1);
}

.has-fx .service-anchors .hex-anchor.is-built .hex-emblem {
  opacity: 1;
  transform: scale(1);
}

/* Kurzes Aufblitzen der Eck-Klammern als Konstruktionsmarken waehrend des Aufbaus. */
.has-fx .service-anchors .hex-anchor.is-building .hex-frame {
  opacity: 0.9;
  transform: scale(1.42);
}

@media (prefers-reduced-motion: reduce) {
  .has-fx .service-anchors .hex-emblem {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.service-section,
.reference-section,
.profile-section {
  border-bottom: 1px solid var(--line-blue);
  padding-block: clamp(54px, 8vw, 118px);
  background: var(--surface);
}

.service-section.alt,
.profile-section {
  background: var(--surface-soft);
}

.section-split,
.reference-grid,
.profile-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.4fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.section-split {
  align-items: stretch;
}

.section-rail,
.section-main {
  min-width: 0;
}

.section-rail {
  align-self: stretch;
}

/* Voller Fachbegriff als Untertitel unter dem Kurztitel (SiGeKo / FaSi-SiFa).
   Kundenwunsch: ausgeschriebene Bezeichnung am Titel zeigen. */
.rail-full {
  margin: 10px 0 0;
  color: var(--number-blue);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
  max-width: 24ch;
}

.section-main {
  align-self: start;
}

h2 {
  margin-bottom: 0;
  color: var(--profile-blue);
  font-size: clamp(40px, 7vw, 92px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.015em; /* grosse Light-Grade brauchen etwas engeres Tracking */
  -webkit-hyphens: auto;
  hyphens: auto;
  overflow-wrap: break-word;
}

.section-title-long {
  font-size: clamp(38px, 4.4vw, 60px);
  -webkit-hyphens: none;
  hyphens: none;
  overflow-wrap: normal;
}

.service-section-wide-title .section-split {
  grid-template-columns: minmax(420px, 0.95fr) minmax(0, 1.45fr);
}

h3 {
  margin-bottom: 22px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.22;
}

.intro-columns {
  display: block;
  max-width: 64ch;
}

.intro-columns p,
.profile-copy p {
  margin-bottom: 0;
}

.intro-columns p:first-child {
  color: var(--blue-deep);
  font-size: clamp(19px, 1.9vw, 23px);
  line-height: 1.4;
}

.intro-columns p + p {
  margin-top: 18px;
}

.service-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 46px);
  margin-top: clamp(42px, 7vw, 78px);
}

.proof-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line-blue);
  background: var(--blue);
  color: var(--surface);
  padding-block: clamp(44px, 6vw, 82px);
  --grid-x: 0px;
  --grid-y: 0px;
}

.proof-band::before {
  content: '';
  position: absolute;
  /* Slight overscan so the few-px parallax drift never reveals an uncovered
     edge strip; overflow:hidden on .proof-band clips the excess. */
  inset: -12px;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: 0.42;
  pointer-events: none;
  transform: translate(var(--grid-x), var(--grid-y));
}

.proof-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.6fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: start;
}

.proof-kicker {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.proof-band h2 {
  color: var(--surface);
  font-size: clamp(34px, 4.8vw, 64px);
}

.proof-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.42);
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  padding: 0;
  list-style: none;
}

.proof-list li {
  position: relative;
  min-width: 0;
  margin-top: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  padding: 18px clamp(14px, 2vw, 22px);
}

.proof-list li:first-child {
  border-left: 0;
}

.proof-label {
  display: block;
  color: var(--surface);
  font-size: clamp(17px, 1.45vw, 21px);
  font-weight: 700;
  line-height: 1.2;
}

.proof-meta {
  display: block;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

/* Vergangene Projekte: Einsatzfelder-Projektindex (Awwwards "project index").
   Nur echte Felder aus der Copy, keine erfundenen Referenzen. Weiss-auf-Blau
   im Proof-Band; Hover laesst die Zeile einruecken + cyan Linie wachsen. */
.projects-index {
  position: relative;
  z-index: 1;
  margin-top: clamp(34px, 5vw, 60px);
}

.projects-index .proof-kicker {
  margin-bottom: 4px;
}

.projects-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.42);
}

.projects-item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: clamp(14px, 3vw, 48px);
  margin-top: 0;
  padding: clamp(16px, 1.9vw, 26px) 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  color: var(--surface);
}

.projects-num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85); /* 5.26:1 auf --blue -> erfuellt AA fuer 14px */
  font-variant-numeric: tabular-nums;
}

.projects-field {
  min-width: 0;
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 300;
  line-height: 1.12;
  transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

.projects-tag {
  align-self: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.85); /* 5.26:1 auf --blue -> erfuellt AA fuer 13px */
}

.projects-item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 540ms cubic-bezier(0.22, 1, 0.36, 1);
}

.projects-item:hover .projects-field,
.projects-item:focus-within .projects-field {
  transform: translateX(clamp(8px, 1.4vw, 22px));
}

.projects-item:hover::after,
.projects-item:focus-within::after {
  transform: scaleX(1);
}

@media (max-width: 760px) {
  .projects-item {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    padding: 16px 0;
  }

  .projects-tag {
    grid-column: 2;
    align-self: start;
    margin-top: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .projects-field {
    transition: none;
  }

  .projects-item::after {
    transition: none;
  }
}

.service-list {
  margin-top: clamp(42px, 7vw, 78px);
  border-top: 1px solid var(--blue);
  padding-top: 22px;
}

.service-list ul {
  margin: 0;
  columns: 2;
  column-gap: clamp(28px, 5vw, 64px);
}

.service-list li {
  break-inside: avoid;
}

.term {
  color: var(--blue-deep);
  font-weight: 700;
}

.service-point ul,
.service-list ul {
  list-style: none;
  padding-left: 0;
}

.service-point ul li,
.service-list ul li {
  position: relative;
  padding-left: 1.5em;
}

.service-point ul li::before,
.service-list ul li::before {
  content: "";
  position: absolute;
  top: 0.5em;
  left: 0;
  width: 9px;
  height: 10px;
  background: var(--blue);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.service-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 46px);
  margin-top: clamp(42px, 7vw, 78px);
}

.service-group {
  min-width: 0;
  border-top: 1px solid var(--blue);
  padding-top: 18px;
}

.service-group h4 {
  margin-top: 0;
}

.cert {
  border-top: 1px solid var(--blue);
}

.cert summary {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0;
  color: var(--blue-deep);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.cert summary::-webkit-details-marker {
  display: none;
}

.cert summary::after {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-left: auto;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(45deg);
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cert[open] summary::after {
  transform: rotate(225deg);
}

.cert-body {
  padding: 0 0 18px;
}

@media (prefers-reduced-motion: reduce) {
  .cert summary::after {
    transition: none;
  }
}

.service-point {
  min-width: 0;
  border-top: 1px solid var(--blue);
  padding-top: 18px;
}

.point-number {
  display: block;
  color: var(--number-blue);
  font-size: clamp(98px, 12vw, 162px);
  font-weight: 700;
  line-height: 0.88;
}

@media (min-width: 761px) {
  .section-rail .rail-sticky {
    position: sticky;
    top: calc(var(--header-height) + 24px);
  }

  /* Der Hex selbst ist bei allen drei Anchors gleich gross; nur das Label
     (SiGeKo/SiFa/Zertifizierungen) zieht die SVG-Box je nach Textlaenge
     unterschiedlich breit, wodurch der Abstand zwischen den Hex-Formen
     ungleich wirkt. Box auf die reine Hex-Breite festlegen (Verhaeltnis
     aus dem gerenderten Hex empirisch ermittelt); das Label darf optisch
     darueber hinausragen, ohne die Flex-Gaps zu beeinflussen. */
  .hex-anchor {
    width: calc(clamp(110px, 13vw, 162px) * 0.8693);
    justify-content: flex-start;
  }

  .hex-emblem {
    flex-shrink: 0;
  }

  .service-point .point-number {
    transition: color 300ms ease;
  }
  .service-point:hover .point-number {
    color: var(--blue);
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .service-section-wide-title .section-split {
    grid-template-columns: 1fr;
  }

  .service-section-wide-title .section-rail .rail-sticky {
    position: static;
  }
}

h4 {
  margin: 24px 0 18px;
  font-size: clamp(20px, 2.2vw, 27px);
  font-weight: 700;
  line-height: 1.2;
}

ul {
  margin: 18px 0 0;
  padding-left: 1.1em;
}

li + li {
  margin-top: 12px;
}

dl {
  margin: 18px 0 0;
}

dt {
  margin-top: 16px;
  font-weight: 700;
}

dd {
  margin: 6px 0 0;
}

.service-point p + p {
  margin-top: 18px;
}

.contact-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}

.contact-actions button,
.contact-actions .contact-button,
.site-footer a {
  min-height: 46px;
  border: 1px solid var(--blue);
  background: transparent;
  padding: 12px 18px;
  cursor: pointer;
  transition: background-color 520ms cubic-bezier(0.33, 1, 0.68, 1),
              border-color 520ms cubic-bezier(0.33, 1, 0.68, 1),
              color 520ms cubic-bezier(0.33, 1, 0.68, 1);
}

.contact-actions button:hover,
.contact-actions button:focus-visible,
.contact-actions .contact-button:hover,
.contact-actions .contact-button:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  background: var(--pale-blue);
}

.profile-copy dl {
  margin-top: 28px;
}

.cred-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 32px);
  margin: 28px 0;
  border-top: 1px solid var(--line-blue);
  border-bottom: 1px solid var(--line-blue);
  padding: 22px 0;
  list-style: none;
}

.cred-stats li {
  margin-top: 0;
}

.stat-num {
  display: block;
  color: var(--blue);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 300;
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.3;
}

.contact-actions button,
.contact-actions .contact-button {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.contact-actions .contact-button-primary {
  flex: 2 1 0;
}

.contact-actions button:not(.contact-button-primary) {
  border-color: var(--line-blue);
}

.contact-actions .contact-button-primary {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--surface);
}

.contact-actions .contact-button-primary:hover,
.contact-actions .contact-button-primary:focus-visible {
  background: var(--surface-soft);
  color: var(--text);
}

.site-footer {
  position: relative;
  isolation: isolate;
  background: var(--surface);
  padding-block: 34px;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.footer-grid p {
  margin: 0;
  font-weight: 700;
}

.site-footer nav {
  display: flex;
  gap: 12px;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.legal-hero {
  border-bottom: 1px solid var(--line-blue);
  background: var(--surface);
}

.legal-hero .section-inner {
  padding-block: clamp(54px, 8vw, 112px);
}

.legal-hero p {
  width: min(760px, 100%);
  margin: 18px 0 0;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
}

.legal-content {
  padding-block: clamp(48px, 7vw, 96px);
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.6fr) minmax(0, 1.4fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: start;
}

.legal-meta {
  border-top: 1px solid var(--blue);
  padding-top: 18px;
  font-size: 16px;
}

.legal-meta p {
  margin-bottom: 0;
}

.legal-meta p + p {
  margin-top: 14px;
}

.legal-sections {
  min-width: 0;
}

.legal-section {
  border-top: 1px solid var(--line-blue);
  padding-top: 24px;
}

.legal-section + .legal-section {
  margin-top: 34px;
}

.legal-section h2 {
  margin-bottom: 16px;
  color: var(--blue);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
}

.legal-section h3 {
  margin: 24px 0 12px;
  font-size: 21px;
}

.legal-section p {
  margin-bottom: 0;
}

.legal-section p + p,
.legal-section ul + p {
  margin-top: 16px;
}

.legal-data {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr);
  gap: 10px 20px;
  margin: 18px 0 0;
}

.legal-data dt {
  margin: 0;
  font-weight: 700;
}

.legal-data dd {
  margin: 0;
}

.legal-note {
  border-left: 3px solid var(--blue);
  padding-left: 18px;
  font-size: 16px;
}

@media (max-width: 1120px) {
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .proof-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
  }

  .proof-list li:nth-child(odd) {
    border-left: 0;
  }

  .proof-list li:nth-child(n + 3) {
    border-top: 0;
  }

  .proof-list li:nth-child(2n + 3) {
    z-index: 1;
  }

  .proof-list li:nth-child(2n + 3)::before {
    content: '';
    position: absolute;
    top: 0;
    right: calc(-100% - 1px);
    left: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.28);
    pointer-events: none;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 64px;
    --page-pad: 20px;
  }

  body {
    font-size: 16px;
  }

  .site-header {
    position: fixed;
    right: 0;
    left: 0;
    min-height: var(--header-height);
    padding-block: 8px;
  }

  main {
    padding-top: var(--header-height);
  }

  .site-header.is-open {
    min-height: 64px;
  }

  .logo {
    width: auto;
    height: 36px;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    display: grid;
    gap: 0;
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    border-bottom: 1px solid var(--line-blue);
    background: var(--surface);
    transform: translate3d(0, -12px, 0);
    backface-visibility: hidden;
    opacity: 0;
    transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
                opacity 240ms ease,
                visibility 0s linear 320ms;
    visibility: hidden;
    pointer-events: none;
  }

  .site-header.is-open .site-nav {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
                opacity 240ms ease,
                visibility 0s linear 0s;
  }

  .site-nav a {
    border-top: 1px solid var(--line-blue);
    border-bottom: 0;
    padding: 16px var(--page-pad);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 260ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .site-nav a::after {
    content: none;
  }

  .site-header.is-open .site-nav a {
    opacity: 1;
    transform: translateY(0);
  }

  .site-header:not(.is-open) .site-nav a:nth-child(1) { transition-delay: 180ms; }
  .site-header:not(.is-open) .site-nav a:nth-child(2) { transition-delay: 140ms; }
  .site-header:not(.is-open) .site-nav a:nth-child(3) { transition-delay: 100ms; }
  .site-header:not(.is-open) .site-nav a:nth-child(4) { transition-delay: 60ms; }
  .site-header:not(.is-open) .site-nav a:nth-child(5) { transition-delay: 0ms; }

  .site-header.is-open .site-nav a:nth-child(1) { transition-delay: 60ms; }
  .site-header.is-open .site-nav a:nth-child(2) { transition-delay: 100ms; }
  .site-header.is-open .site-nav a:nth-child(3) { transition-delay: 140ms; }
  .site-header.is-open .site-nav a:nth-child(4) { transition-delay: 180ms; }
  .site-header.is-open .site-nav a:nth-child(5) { transition-delay: 220ms; }

  .top-grid,
  .section-split,
  .reference-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .service-section-wide-title .section-split {
    grid-template-columns: 1fr;
  }

  .top-grid {
    min-height: auto;
    gap: 22px;
    justify-items: start;
    padding-block: 44px 34px;
    text-align: left;
  }

  h1 {
    font-size: 24px;
  }

  .anchor-scroll {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.9fr) minmax(0, 1.55fr);
    align-items: center;
    justify-items: center;
    justify-content: stretch;
    gap: 8px;
    overflow: hidden;
    scroll-snap-type: none;
    touch-action: auto;
    scroll-padding-inline: var(--page-pad);
    padding-block: 18px 46px;
  }

  .hex-anchor {
    flex: 0 0 auto;
    scroll-snap-align: none;
    width: 100%;
    min-width: 0;
    min-height: clamp(64px, 18vw, 78px);
    overflow: hidden;
  }

  .hex-emblem {
    width: 100%;
    height: clamp(64px, 18vw, 78px);
  }

  .hex-anchor-wide {
    min-width: 0;
  }

  .hero-logo {
    width: min(420px, 100%);
    margin: 0;
  }

  .hero-subline {
    margin: 0;
  }

  .hero-proof {
    justify-content: flex-start;
    gap: 7px;
    margin-top: 22px;
  }

  .hero-proof li {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 13px;
  }

  .hero-actions {
    justify-content: flex-start;
    width: 100%;
    margin-top: 20px;
  }

  .hero-button {
    flex: 1 1 100%;
    min-height: 44px;
    padding-inline: 14px;
  }

  .service-section,
  .reference-section,
  .profile-section {
    padding-block: 44px;
  }

  .profile-section {
    padding-bottom: 18px;
  }

  h2 {
    font-size: 36px;
  }

  .section-title-long {
    font-size: 34px;
    overflow-wrap: break-word;
  }

  h3 {
    margin-bottom: 18px;
    font-size: 23px;
  }

  .section-split {
    gap: 22px;
  }

  .proof-band {
    padding-block: 40px;
  }

  .proof-grid {
    gap: 24px;
  }

  .proof-band h2 {
    font-size: 35px;
  }

  .proof-list {
    grid-template-columns: 1fr;
  }

  .proof-list li,
  .proof-list li:nth-child(odd) {
    border-left: 0;
  }

  .proof-list li,
  .proof-list li:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    padding: 14px 0;
  }

  .proof-list li:nth-child(2n + 3)::before {
    content: none;
  }

  .proof-list li:first-child {
    border-top: 0;
  }

  .proof-meta {
    margin-top: 8px;
  }

  .service-points-wrap {
    position: relative;
    margin: 34px calc(var(--page-pad) * -1) 0;
  }

  .service-points-wrap::before,
  .service-points-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 8px;
    width: 40px;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 200ms ease;
  }

  .service-points-wrap::before {
    left: 0;
    background: linear-gradient(to left, transparent, var(--surface));
  }

  .service-points-wrap::after {
    right: 0;
    background: linear-gradient(to right, transparent, var(--surface));
  }

  .service-section.alt .service-points-wrap::before {
    background: linear-gradient(to left, transparent, var(--surface-soft));
  }

  .service-section.alt .service-points-wrap::after {
    background: linear-gradient(to right, transparent, var(--surface-soft));
  }

  .service-points-wrap.can-scroll-left::before {
    opacity: 1;
  }

  .service-points-wrap.can-scroll-right::after {
    opacity: 1;
  }

  .service-points {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    scroll-behavior: smooth;
    scroll-padding-inline: var(--page-pad);
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
    padding: 0 var(--page-pad) 8px;
  }

  .service-point {
    flex: 0 0 min(340px, calc(100vw - var(--page-pad) * 2 - 36px));
    scroll-snap-align: start;
    padding-top: 14px;
  }

  .point-number {
    font-size: 104px;
  }

  .service-list ul {
    columns: 1;
  }

  .service-groups {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .cred-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  h4 {
    margin: 18px 0 14px;
    font-size: 20px;
  }

  ul {
    padding-left: 1em;
  }

  .contact-actions,
  .footer-grid,
  .site-footer nav {
    flex-direction: column;
  }

  .contact-actions button,
  .contact-actions .contact-button,
  .site-footer a {
    width: 100%;
  }

  .legal-hero .section-inner {
    padding-block: 44px 34px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .legal-data {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .legal-data dd + dt {
    margin-top: 12px;
  }

  .footer-grid {
    align-items: center;
  }

  .footer-grid p {
    text-align: center;
  }

  .site-footer nav {
    align-items: center;
    gap: 8px;
  }

  .site-footer a {
    width: auto;
    min-width: 200px;
    min-height: 44px;
    padding-block: 10px;
  }

  .site-footer {
    padding-block: 16px 20px;
  }
}

/* ============================================================
   Scroll-Effekte
   ============================================================ */

.brand-line {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100dvh;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.brand-line-hex {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.brand-line-footer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}

.scroll-line {
  /* Ausgeblendet zugunsten der nativen Scrollbar (nicht draggable + Dopplung). */
  display: none;
  --scroll-line-top: var(--header-height);
  --scroll-thumb-height: 80px;
  --scroll-thumb-y: 0px;
  --scroll-line-width: 4px;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: var(--scroll-line-width);
  pointer-events: none;
}

.scroll-line::before,
.scroll-line__thumb {
  position: absolute;
  right: 0;
  width: var(--scroll-line-width);
}

.scroll-line::before {
  content: "";
  top: var(--scroll-line-top);
  bottom: 0;
  background: var(--line-blue);
}

.scroll-line__thumb {
  top: var(--scroll-line-top);
  height: var(--scroll-thumb-height);
  background: var(--blue);
  transform: translateY(var(--scroll-thumb-y));
  will-change: transform, height;
}

.brand-line__anchor-left,
.brand-line__anchor-right,
.brand-line__vertical,
.brand-line__hex-segment,
.brand-line__hex-arc,
.brand-line__hex-connector,
.brand-line__footer-segment,
.brand-line__footer-edge,
.brand-line__footer-connector {
  stroke: var(--blue);
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: miter;
  fill: none;
}

/* Section-Node sitzt als DOM-Kind in der scrollenden Section und markiert den
   Abzweig-Punkt der Marken-Linie. left == Achse der vertikalen Linie (stroke/2),
   top == Mitte des 2px-Dividers. So bleibt er nativ am Divider verankert -- kein
   Versatz nach Header-Shrink, kein Nachziehen beim Scrollen. */
.has-fx .section-node {
  position: absolute;
  top: 1px;
  left: 1px;
  z-index: 2;
  box-sizing: border-box;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--blue);
  opacity: 0.82;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: background-color 240ms cubic-bezier(0.22, 1, 0.36, 1),
              opacity 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.has-fx .section-node.is-reached {
  background: var(--blue);
  opacity: 1;
}

@media (min-width: 761px) {
  .has-fx .site-footer a {
    border-color: transparent;
  }
}

@media (max-width: 760px) {
  .scroll-line {
    display: none;
  }

  .brand-line-footer {
    display: none;
  }

  .brand-line__anchor-left,
  .brand-line__anchor-right,
  .brand-line__vertical,
  .brand-line__hex-segment,
  .brand-line__hex-arc,
  .brand-line__hex-connector,
  .brand-line__footer-segment,
  .brand-line__footer-edge,
  .brand-line__footer-connector {
    stroke-width: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-node {
    display: none;
  }
}

.has-fx .reveal-target {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 560ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--stagger-index, 0) * 90ms + 200ms);
  will-change: opacity, transform;
}

.has-fx .reveal-target.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Sanftes "Einrasten" der sticky Rail-Titel (SiGeKo etc.): sobald der Titel
   oben andockt, blendet er leicht ab, damit das starre Mitscrollen weniger
   hart wirkt. filter:opacity statt opacity, weil opacity/transform bereits
   von der Reveal-Animation belegt sind (sonst Cascade-Konflikt).
   .is-stuck wird in scroll-fx.js gesetzt. Werte sind bewusst dezent/tunbar. */
.has-fx .section-rail .rail-sticky.is-stuck {
  filter: opacity(0.72);
}

.section-rail .rail-sticky {
  transition: filter 340ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .section-rail .rail-sticky {
    transition: none;
  }
  .has-fx .section-rail .rail-sticky.is-stuck {
    filter: none;
  }
}

.has-fx .reveal-target:focus-within {
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}

.has-fx .reveal-target.list-reveal > li,
.has-fx .reveal-target .list-reveal > li {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 420ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc((var(--stagger-index, 0) * 90ms) + 300ms + (var(--list-index, 0) * 55ms));
}

.has-fx .reveal-target.list-reveal.is-revealed > li,
.has-fx .reveal-target.is-revealed .list-reveal > li {
  opacity: 1;
  transform: translateY(0);
}

.has-fx .reveal-target.list-reveal:focus-within > li,
.has-fx .reveal-target:focus-within .list-reveal > li {
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}

@media (prefers-reduced-motion: reduce) {
  .has-fx .reveal-target {
    transition-delay: 0s !important;
  }

  .has-fx .reveal-target.list-reveal > li,
  .has-fx .reveal-target .list-reveal > li {
    opacity: 1;
    transform: none;
    transition: none;
    transition-delay: 0s !important;
  }
}

@media (max-width: 760px) {
  .has-fx .reveal-target.list-reveal > li,
  .has-fx .reveal-target .list-reveal > li {
    transition-delay: calc((var(--stagger-index, 0) * 70ms) + 180ms + (var(--list-index, 0) * 45ms));
  }
}

.has-fx .section-divider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
  opacity: 0.55;
  transform: scale3d(0, 1, 1);
  transform-origin: left center;
  transition: transform 1300ms cubic-bezier(0.16, 1, 0.3, 1),
              opacity 700ms ease-out;
  will-change: transform, opacity;
  pointer-events: none;
}

.has-fx .section-divider.is-grown {
  opacity: 1;
  transform: scale3d(1, 1, 1);
}

.has-fx .service-section,
.has-fx .reference-section,
.has-fx .profile-section {
  position: relative;
  border-bottom: none;
}

.has-fx .top-area,
.has-fx .service-anchors,
.has-fx .site-header {
  border-bottom: none;
}

@media (max-width: 760px) {
  .has-fx .section-divider {
    height: 1px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .has-fx .section-divider {
    opacity: 1;
    transform: scale3d(1, 1, 1);
    transition: none;
  }
}

.has-fx .site-header.is-scrolled {
  min-height: 60px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px -12px rgba(0, 94, 168, 0.25);
}

.has-fx .site-header.is-scrolled .logo {
  transform: scale(0.8);
}

.has-fx .site-header.is-open.is-scrolled {
  min-height: var(--header-height);
}

.has-fx .site-header.is-open.is-scrolled .logo {
  transform: none;
}

@media (max-width: 760px) {
  .has-fx .site-header.is-scrolled {
    min-height: 64px;
  }

  .has-fx .site-header.is-scrolled .logo {
    transform: none;
  }

  .has-fx .site-header.is-open,
  .has-fx .site-header.is-open.is-scrolled {
    min-height: 64px;
    transition: background-color 320ms ease,
                box-shadow 320ms ease,
                backdrop-filter 320ms ease;
  }
}

@media (min-width: 761px) {
  .site-header {
    gap: 24px;
  }
}
