/* ===========================================================
   Axel Lohmann – Creative Technologist – twentysix
   Cinematic dark one-pager · corporate red/blue
   =========================================================== */

/* josefin-sans-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Josefin Sans';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/josefin-sans-v34-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* outfit-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/outfit-v15-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* outfit-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/outfit-v15-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* instrument-serif-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  src: url('../fonts/instrument-serif-v5-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* ---------- Design tokens ---------- */
:root {
  --bg: #06070b;
  --bg-soft: #0b0d13;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --glass: rgba(8, 9, 14, 0.66);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.2);

  --text: #f2f5f9;
  --text-soft: #c3cbd6;
  --text-dim: #7d8694;

  --red: #d31c1c;
  --red-bright: #ff4040;
  --blue: #2479ce;
  --blue-bright: #4da3ff;
  --gradient: linear-gradient(120deg, var(--blue-bright), var(--blue) 30%, var(--red) 70%, var(--red-bright));
  --gradient-text: linear-gradient(100deg, #66b4ff 5%, #b87bdc 50%, #ff6a5c 95%);

  --glow-red: rgba(211, 28, 28, 0.35);
  --glow-blue: rgba(36, 121, 206, 0.35);

  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-brand: 'Josefin Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  /* --font-serif: 'Engagement', Georgia, serif; */

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 20px;
  --header-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

/* Lenis momentum scrolling: while active, Lenis drives scroll itself, so the
   native CSS smooth-scroll must yield. When Lenis is off (reduced motion),
   the rule above keeps native smooth anchor scrolling. */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
}

::selection {
  background: var(--blue);
  color: #fff;
}

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 1000;
  background: var(--blue);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Typography helpers ---------- */
.serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  padding-inline: 0.1em;
  /* Prevent gradient cutoff on descenders */
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gradient);
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}


.section-head {
  margin-bottom: clamp(40px, 6vw, 72px);
  max-width: 780px;
}

/* Tension lead-in directly under a section title (e.g. Einsatzgebiete). */
.section-lead {
  margin-top: 20px;
  /* max-width: 36ch; */
  font-family: var(--font-sans);
  /* font-style: italic; */
  /* font-size: clamp(1.15rem, 2vw, 1.333rem); */
  line-height: 1.32;
  color: var(--text-soft);
  text-wrap: balance;
}

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.prose p {
  color: var(--text-soft);
  margin-bottom: 16px;
}

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

.inline-link {
  color: var(--text);
  background-image: var(--gradient);
  background-repeat: no-repeat;
  background-size: 100% 1.5px;
  background-position: 0 100%;
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}

.inline-link:hover {
  opacity: 0.75;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 300;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--gradient);
}

/* ---------- Background stage ---------- */
#bg-stage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  /* Use the LARGE viewport height so the fixed backdrop is always sized to the
     state with the mobile URL bar hidden. Anchoring at top + fixed height
     prevents the resize "jump" iOS Safari causes when toggling the URL bar
     (inset:0 / bottom:0 would otherwise reflow the element). */
  height: 100vh;
  height: 100lvh;
  z-index: 0;
  background: var(--bg);
  overflow: hidden;
}

.bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.1s ease;
  will-change: opacity, transform;
}

.bg-layer.active {
  opacity: 1;
  animation: bg-drift 18s var(--ease) forwards;
}

@keyframes bg-drift {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.07);
  }
}

.bg-vignette {
  background-blend-mode: color-burn;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 90% at 50% 0%, transparent 35%, rgba(6, 7, 11, 0.82) 100%),
    linear-gradient(180deg, rgba(6, 7, 11, 0.45) 0%, rgba(6, 7, 11, 0.62) 55%, rgba(6, 7, 11, 0.78) 100%);
}

.bg-grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Header ---------- */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s ease;
}

/* The scrolled blur lives on a pseudo-element, NOT on the header itself.
   backdrop-filter on an ancestor of .main-nav would turn the header into a
   containing block for position:fixed, breaking the full-screen mobile menu
   once the page is scrolled. The ::before keeps the blur out of that chain. */
#site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

#site-header.scrolled::before {
  opacity: 1;
}

#site-header.scrolled {
  border-bottom-color: var(--border);
}

.header-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 clamp(20px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  filter: drop-shadow(0px 0px 16px black);
}

.brand-signet {
  width: 38px;
  height: 38px;
  transition: transform 1.5s var(--ease);
}

.brand:hover .brand-signet {
  transform: rotate(360deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1;
  text-transform: uppercase;
}

.brand-name {
  padding-top: 5px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  font-family: var(--font-brand);
}

.brand-claim {
  font-size: 10px;
  letter-spacing: 0.235em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav ul {
  display: flex;
  gap: 26px;
}

.main-nav a:not(.btn) {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.main-nav a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.main-nav a:not(.btn):hover,
.main-nav a:not(.btn)[aria-current="true"] {
  color: var(--text);
}

.main-nav a:not(.btn):hover::after,
.main-nav a:not(.btn)[aria-current="true"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-burger {
  display: none;
  background: none;
  border: none;
  width: 30px;
  height: 22px;
  position: relative;
  cursor: pointer;
  z-index: 210;
}

.nav-burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.4s var(--ease);
}

.nav-burger span:nth-child(1) {
  top: 0;
}

.nav-burger span:nth-child(2) {
  top: 10px;
}

.nav-burger span:nth-child(3) {
  top: 20px;
}

.nav-burger[aria-expanded="true"] span:nth-child(1) {
  top: 10px;
  transform: rotate(45deg);
}

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

.nav-burger[aria-expanded="true"] span:nth-child(3) {
  top: 10px;
  transform: rotate(-45deg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s ease, border-color 0.35s ease;
}

.btn-arrow {
  transition: transform 0.35s var(--ease);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-primary {
  background: linear-gradient(120deg, var(--blue), var(--red));
  background-size: 102%;
  background-position: center;
  color: #fff;
  box-shadow: 0 6px 24px -6px var(--glow-blue), 0 6px 24px -6px var(--glow-red);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.25) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 0.7s var(--ease);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px -6px var(--glow-blue), 0 10px 32px -6px var(--glow-red);
}

.btn-primary:hover::before {
  transform: translateX(110%);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.btn-nav {
  padding: 10px 22px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Sections ---------- */
main {
  position: relative;
  z-index: 1;
}

section {
  position: relative;
  padding: clamp(90px, 12vw, 150px) 0;
  min-height: 90dvh;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 40px);
}

.hero-inner {
  text-align: center;
  max-width: 980px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 20px;
  margin-bottom: 32px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ddc78;
  box-shadow: 0 0 10px #3ddc78;
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(0.85);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

.hero-title {
  font-size: clamp(3.5rem, 12vw, 7rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin-bottom: 28px;
  text-wrap: balance;
}

.hero-title .serif-accent {
  font-size: 1.06em;
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-soft);
  max-width: 720px;
  margin: 0 auto 14px;
  text-wrap: balance;
}

.hero-claim {
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  color: var(--text-soft);
  margin-bottom: 40px;
}

.hero .btn-group {
  justify-content: center;
  margin-top: clamp(40px, 6vw, 64px);
  margin-bottom: clamp(48px, 7vw, 80px);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: clamp(28px, 5vw, 64px);
  flex-wrap: wrap;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.hero-stats strong {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-stats span:not([data-count]) {
  font-size: 13px;
  color: var(--text-dim);
}

.hero-stats strong span {
  font-size: inherit;
  color: inherit;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 24px;
  height: 42px;
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-hint-line {
  width: 2px;
  height: 9px;
  border-radius: 2px;
  background: var(--gradient);
  animation: scroll-hint 2s var(--ease) infinite;
}

@keyframes scroll-hint {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  70% {
    transform: translateY(14px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 0;
  }
}

.br-desktop {
  display: block;
}

@media (max-width: 700px) {
  .br-desktop {
    display: none;
  }
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 18px 0;
  -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;
  align-items: center;
  gap: 36px;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track span {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}

.marquee-track i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gradient);
  flex-shrink: 0;
}

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

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

/* ---------- Bento (Wofür man mich ruft) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 20px;
}

.bento-card {
  grid-column: span 5;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(12, 14, 20, 0.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
  min-height: 384px;
  display: flex;
  align-items: flex-end;
  transition: transform 0.5s var(--ease), border-color 0.5s ease, box-shadow 0.5s ease;
}

.bento-wide {
  grid-column: span 6;
}

.bento-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transform: scale(1.04);
  transition: opacity 0.6s ease, transform 0.8s var(--ease);
}

.bento-body {
  position: relative;
  z-index: 1;
  padding: clamp(22px, 3vw, 34px);
  background: linear-gradient(180deg, transparent, rgba(6, 7, 11, 0.92) 55%);
  width: 100%;
  padding-top: 90px;
  text-wrap: balance;
}

.card-num {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.bento-card h3 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 10px;
}

.bento-card p {
  color: var(--text-soft);
  font-size: 15px;
  max-width: 520px;
}

.bento-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: 0 24px 48px -18px rgba(0, 0, 0, 0.55);
}

.bento-card:hover .bento-img {
  opacity: 1;
  transform: scale(1);
}

.bento-card:nth-child(odd) {
  box-shadow: inset 3px 0 0 0 var(--blue);
}

.bento-card:nth-child(even) {
  box-shadow: inset 3px 0 0 0 var(--red);
}

.bento-card:nth-child(odd):hover {
  box-shadow: inset 3px 0 0 0 var(--blue), 0 24px 48px -18px rgba(0, 0, 0, 0.55);
}

.bento-card:nth-child(even):hover {
  box-shadow: inset 3px 0 0 0 var(--red), 0 24px 48px -18px rgba(0, 0, 0, 0.55);
}

/* ---------- Split / Arbeitsweise ---------- */
/* Extra scrim: the strategy-board backdrop is brighter than the others */
#arbeitsweise::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(6, 7, 11, 0.45);
  pointer-events: none;
}

#arbeitsweise .container {
  position: relative;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.split-sticky {
  position: sticky;
  top: calc(var(--header-h) + 40px);
}

.split-sticky .section-head {
  margin-bottom: 28px;
}

.lead-line {
  margin-top: 28px;
  font-size: clamp(2rem, 2.86vw, 2.5rem);
  text-wrap: balance;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.steps {
  position: relative;
  padding-left: 34.5px;
  counter-reset: step;
}

.steps::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--border);
}

.steps::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 10px;
  width: 2px;
  height: var(--progress, 0%);
  max-height: calc(100% - 20px);
  background: var(--gradient);
  transition: height 0.5s var(--ease);
}

/* Leuchtkopf: glühender Punkt an der Spitze der Fortschrittslinie
   (per JS eingefügt, --tip = Position der Linienspitze) */
.steps-comet {
  position: absolute;
  left: 8px;
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, rgba(255, 255, 255, 0.7) 35%, transparent 72%);
  box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.35), 0 0 24px 8px var(--comet-glow, var(--glow-blue));
  transform: translate(-50%, -50%) translateY(var(--tip, 10px));
  transition: transform 0.5s var(--ease), opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.steps.is-tracking .steps-comet {
  opacity: 1;
}

.steps-comet.is-red {
  --comet-glow: var(--glow-red);
}

.step {
  position: relative;
  /* über den .steps-Pseudo-Linien (::before/::after), damit Fortschritts-
     linie und Track hinter den Kreisen laufen statt darüber */
  z-index: 1;
  padding: 26px 28px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: border-color 0.4s ease, background 0.4s ease, transform 0.4s var(--ease), box-shadow 0.5s ease;
}

/* Akzentfarbe pro Phase: ungerade blau, gerade rot */
.step:nth-child(odd) {
  --step-color: var(--blue-bright);
  --step-glow: var(--glow-blue);
}

.step:nth-child(even) {
  --step-color: var(--red-bright);
  --step-glow: var(--glow-red);
}

/* last-of-type statt last-child: der Komet hängt als <span> am Listenende */
.step:last-of-type {
  margin-bottom: 0;
}

.step::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 34px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border-strong);
  transform: translateX(0.5px);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  z-index: 1;
}

/* Sobald die Fortschrittslinie den Kreis erreicht: vollflächig + Glow (bleibt) */
.step.lit::before {
  background: var(--step-color);
  border-color: var(--step-color);
  box-shadow: 0 0 12px var(--step-glow), 0 0 28px var(--step-glow);
  animation: dot-pop 0.55s var(--ease);
}

/* Pop über die separate scale-Eigenschaft, damit die Animation das
   translateX der Grundposition nicht überschreibt */
@keyframes dot-pop {
  0% { scale: 1; }
  45% { scale: 1.55; }
  100% { scale: 1; }
}

/* Aktive Kachel: die Phase, die die Linie gerade erreicht hat */
.step.active {
  border-color: color-mix(in srgb, var(--step-color) 55%, transparent);
  box-shadow: 0 0 38px -8px var(--step-glow), 0 0 90px -30px var(--step-glow);
}

/* Lichtimpuls: läuft beim Aktivieren vom Kreis in die Kachel */
.step-num::after {
  content: '';
  position: absolute;
  left: -22px;
  top: 43px;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--step-color), transparent);
  opacity: 0;
  pointer-events: none;
}

.step.active .step-num::after {
  animation: step-impulse 0.5s ease-out;
}

@keyframes step-impulse {
  0% { opacity: 0; transform: scaleX(0); }
  25% { opacity: 1; }
  60% { opacity: 1; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(1); }
}

/* Nova-Aufblitzen beim Aktivieren: kurzer Lichtschein, der vom Kreis
   her über die Kachel läuft und wieder verglüht */
.step::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(140% 160% at -6% 34%, var(--step-glow), transparent 58%);
  opacity: 0;
  pointer-events: none;
}

.step.active::after {
  /* kleiner Delay: erst kommt der Lichtimpuls an, dann zündet die Nova */
  animation: step-nova 1.1s var(--ease) 0.12s;
}

@keyframes step-nova {
  0% { opacity: 0; }
  18% { opacity: 1; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .step.lit::before,
  .step.active::after,
  .step.active .step-num::after {
    animation: none;
  }

  .steps-comet {
    display: none;
  }
}

/* :not(.active): die aktive Kachel behält ihren farbigen Glow-Zustand */
.step:not(.active):hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.step-num {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.step:nth-child(odd) .step-num {
  color: var(--blue-bright);
}

.step:nth-child(even) .step-num {
  color: var(--red-bright);
}

.step h3 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-soft);
  font-size: 15px;
}

/* ---------- Services / Leistungen ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

.service-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 30px 26px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.4s ease, box-shadow 0.5s ease;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0.55;
  transition: opacity 0.4s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 28px 48px -20px rgba(0, 0, 0, 0.6);
}

.service-card:hover::before {
  opacity: 1;
}

.service-featured {
  background: linear-gradient(160deg, rgba(36, 121, 206, 0.12), rgba(8, 9, 14, 0.7) 45%, rgba(211, 28, 28, 0.1));
}

.service-flag {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(120deg, var(--blue), var(--red));
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

/* Featured card: badge sits directly under the title */
.service-featured h3 {
  margin-bottom: 10px;
}

.service-card ul {
  flex: 1;
  margin-bottom: 22px;
}

.service-card li {
  text-wrap: balance;
  position: relative;
  padding: 8px 0 8px 22px;
  color: var(--text-soft);
  font-size: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card li:last-child {
  border-bottom: none;
}

.service-card li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gradient);
}

.service-incl {
  margin: 0 0 18px;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.45;
}

.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  background: none;
  border: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0;
  background-image: var(--gradient);
  background-repeat: no-repeat;
  background-size: 100% 1.5px;
  background-position: 0 100%;
  transition: opacity 0.2s ease;
}

.service-cta:hover {
  opacity: 0.8;
}

.service-cta:hover .btn-arrow {
  transform: translateX(4px);
}

.services-note {
  margin-top: 36px;
  text-align: center;
  color: var(--text-soft);
  font-size: 15px;
}

/* ---------- Topics / Schwerpunkte ---------- */
.topics {
  border-top: 1px solid var(--border);
}

.topic {
  display: flex;
  align-items: baseline;
  gap: clamp(18px, 3vw, 36px);
  padding: clamp(18px, 2.6vw, 26px) 6px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: padding-left 0.4s var(--ease);
}

.topic::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(90deg, rgba(36, 121, 206, 0.1), rgba(211, 28, 28, 0.07), transparent 70%);
  transform: translateX(-101%);
  transition: transform 0.5s var(--ease);
  pointer-events: none;
}

.topic:hover {
  padding-left: 18px;
}

.topic:hover::before {
  transform: translateX(0);
}

.topic-idx {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  flex-shrink: 0;
}

.topic-name {
  font-size: clamp(1.4rem, 3.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-soft);
  transition: color 0.4s ease;
}

.topic:hover .topic-name {
  color: var(--text);
}

.discretion {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 40px;
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--text-soft);
  font-size: 14.5px;
  max-width: 760px;
}

.discretion svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--blue-bright);
}

/* ---------- About / Über mich ---------- */
.about {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.about .section-head {
  margin-bottom: 28px;
}

.facts {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: clamp(0px, 4vw, 56px);
}

.fact {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 22px 26px;
  transition: transform 0.4s var(--ease), border-color 0.4s ease;
  text-wrap: balance;
}

.fact:hover {
  transform: translateX(6px);
  border-color: var(--border-strong);
}

.fact strong {
  display: block;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fact span {
  color: var(--text-soft);
  font-size: 14.5px;
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.contact .section-head {
  margin-bottom: 24px;
}

.contact-lead {
  color: var(--text-soft);
  margin-bottom: 28px;
  max-width: 520px;
}

.trust-list {
  margin-bottom: 28px;
}

.contact-assistant {
  max-width: 520px;
  margin-bottom: 20px;
  color: var(--text-soft);
  font-size: 15px;
}

.trust-list li {
  position: relative;
  padding: 9px 0 9px 32px;
  color: var(--text-soft);
  font-size: 15px;
}

.trust-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    var(--gradient) border-box;
  border: 1.5px solid transparent;
}

.trust-list li::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 18px;
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: rotate(-45deg);
}

.contact-alt {
  color: var(--text-dim);
  font-size: 15px;
}

/* Rechte Spalte: Chat und klassisches Formular direkt untereinander.
   align-self: stretch gibt der Spalte die volle Zeilenhöhe (statt nur
   Content-Höhe), damit der Chat wachsen kann, sobald das Formular weicht. */
.contact-side {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 40px);
  align-self: stretch;
}

.chat-col {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

/* ---------- KI Chat ---------- */
.chat-card {
  display: flex;
  flex-direction: column;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--border);
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 50vh;
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.chat-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.chat-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #3ddc78;
}

.chat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ddc78;
  box-shadow: 0 0 10px #3ddc78;
  animation: pulse 1.8s ease-in-out infinite;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 6px;
}

.chat-row {
  display: flex;
  width: 100%;
}

.chat-row.user {
  justify-content: flex-end;
}

.chat-row.bot {
  justify-content: flex-start;
}

.chat-bubble {
  display: inline-block;
  max-width: 82%;
  padding: 11px 16px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
  hyphens: auto;
}

.chat-row.bot .chat-bubble {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.chat-row.user .chat-bubble {
  background: linear-gradient(120deg, var(--blue), #2f6fb0);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-hint {
  margin-top: 16px;
  font-size: 11.5px;
  color: var(--text-dim);
  text-align: center;
  padding: 0 22px;
  opacity: 0.85;
}

.chat-hint .inline-link {
  color: var(--text-dim);
}

.chat-form {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

.chat-input {
  flex: 1;
  min-width: 0;
  padding: 13px 18px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.4;
  outline: none;
  resize: none;
  overflow-y: hidden;
  max-height: 120px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-input::-webkit-scrollbar {
  width: 6px;
}

.chat-input::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 6px;
}

.chat-input::placeholder {
  color: var(--text-dim);
}

.chat-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36, 121, 206, 0.2);
}

.chat-send {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--blue), var(--red));
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.chat-send svg {
  width: 19px;
  height: 19px;
}

.chat-send:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 16px -4px var(--glow-blue), 0 6px 16px -4px var(--glow-red);
}

.chat-send:active {
  transform: scale(0.96);
}

.chat-send:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

/* Typing indicator (bot "is writing" bubble) */
.chat-typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 0;
}

.chat-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-dim);
  animation: chat-typing 1.2s ease-in-out infinite;
}

.chat-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.chat-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes chat-typing {
  0%, 60%, 100% {
    opacity: 0.3;
    transform: translateY(0);
  }

  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

/* ---------- Alt-Kontakt (klassisches Formular) ---------- */
/* Wrapper trägt den Trenner-Text und die Kollaps-Logik; die Card selbst
   bleibt optisch an .chat-card angeglichen (Rahmen, Glass, Radius, Schatten). */
.alt-contact-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: opacity 0.3s ease, max-height 0.4s ease, margin 0.4s ease;
}

/* Sobald der Chat benutzt wurde, machen Trenner-Text + Formular Platz für den Chat */
.alt-contact-wrap.is-collapsed {
  overflow: hidden;
  max-height: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.alt-contact-lead {
  color: var(--text-soft);
  font-size: 15px;
  text-align: center;
}

.alt-contact {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

/* Kopfleiste wie .chat-head/.chat-title: kurzer Titel, gleiche Schrift */
.alt-contact-head {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.alt-contact-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 22px 22px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 13px;
  color: var(--text-dim);
}

.form-field input,
.form-field textarea {
  padding: 13px 18px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.4;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36, 121, 206, 0.2);
}

/* Honeypot: fürs Auge und die Tab-Reihenfolge unsichtbar, für Bots offen */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.form-status {
  font-size: 14px;
  color: var(--text-soft);
}

.form-status.is-error {
  color: var(--red-bright);
}

.form-status.is-success {
  color: #3ddc78;
}

.btn:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

@media (max-width: 620px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */
#site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: rgba(6, 7, 11, 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 28px;
  padding-bottom: 32px;
}

#site-footer .brand-signet {
  width: 30px;
  height: 30px;
}

#site-footer .brand-name {
  font-size: 14px;
}

.footer-copy {
  color: var(--text-dim);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--blue) 50%, var(--red) 50%);
}

/* ---------- Standard Content (Markdown-Seiten: Impressum, Datenschutz, ...) ---------- */
.standard-content {
  max-width: 760px;
  margin: 0 auto;
}

.standard-content h1,
.standard-content h2,
.standard-content h3,
.standard-content h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 1.6em 0 0.6em;
  text-wrap: balance;
}

.standard-content h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-top: 0;
}

.standard-content h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.75rem);
}

.standard-content h3 {
  font-size: 1.25rem;
}

.standard-content h4 {
  font-size: 1.05rem;
}

.standard-content p,
.standard-content li {
  color: var(--text-soft);
  line-height: 1.7;
}

.standard-content p {
  margin-bottom: 16px;
}

.standard-content ul,
.standard-content ol {
  margin: 0 0 20px;
  padding-left: 22px;
}

.standard-content ul {
  list-style: disc;
}

.standard-content ol {
  list-style: decimal;
}

.standard-content li {
  margin-bottom: 6px;
}

.standard-content a {
  color: var(--text);
  background-image: var(--gradient);
  background-repeat: no-repeat;
  background-size: 100% 1.5px;
  background-position: 0 100%;
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}

.standard-content a:hover {
  opacity: 0.75;
}

.standard-content blockquote {
  margin: 20px 0;
  padding: 4px 22px;
  border-left: 2px solid var(--border-strong);
  color: var(--text-dim);
}

.standard-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
}

.standard-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Mobile navigation kicks in early: between ~900px and the desktop width
     the inline nav would otherwise wrap and break itself, so switch to the
     burger overlay already at 1080px. */
  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 205;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 36px;
    background: rgba(6, 7, 11, 0.96);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 26px;
  }

  .main-nav a:not(.btn) {
    font-size: 22px;
    font-weight: 700;
  }

  .nav-burger {
    display: block;
  }
}

@media (max-width: 900px) {
  .bento-card, .bento-wide {
    grid-column: span 12;
    min-height: 312px;
  }

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

  .split-sticky {
    position: static;
  }

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

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

@media (max-width: 620px) {
  .services {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 20px 32px;
  }

  .btn-group .btn {
    width: 100%;
  }

  .topic-idx {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    width: 100%;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: space-between;
  }

  .footer-links a {
    font-size: clamp(11px, 3.2vw, 12px);
    white-space: nowrap;
  }
}

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

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

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

  .marquee-track {
    animation: none;
  }

  .bg-layer.active {
    animation: none;
    transform: none;
  }
}