/*
Theme Name: Maiva
Theme URI: https://maiva.ch
Author: Marco Zihlmann
Description: KI-Erlebnisse & Upskilling – Custom Portfolio Theme
Version: 1.0.0
Text Domain: maiva
*/

/* ─── LEGALLY COOKIE BANNER OVERRIDE ─── */
/* Style the banner */
#cookieConsent,
.cookie.banner {
  font-family: inherit !important;
  background: #02084b !important;
  color: rgba(255,255,255,0.85) !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
  animation: cookieSlideUp 0.5s cubic-bezier(0.22,1,0.36,1) both !important;
}
#cookieConsent .container {
  max-width: 1080px !important;
}
/* Buttons */
#cookieConsent button,
.cookie.banner button {
  border-radius: 100px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  padding: 10px 24px !important;
  transition: opacity 0.15s !important;
  cursor: pointer !important;
}
#cookieConsent button[class*="accept"],
#cookieConsent button:last-of-type,
.cookie.banner button[class*="accept"] {
  background: #fff !important;
  color: #02084b !important;
  border: none !important;
}
#cookieConsent button[class*="accept"]:hover { opacity: 0.85 !important; }
#cookieConsent button:not([class*="accept"]):first-of-type,
.cookie.banner button:not([class*="accept"]):first-of-type {
  background: transparent !important;
  color: rgba(255,255,255,0.7) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
}
#cookieConsent button:not([class*="accept"]):first-of-type:hover {
  border-color: rgba(255,255,255,0.5) !important;
  color: #fff !important;
}
/* Links inside banner */
#cookieConsent a,
.cookie.banner a:not(.logo) {
  color: rgba(255,255,255,0.6) !important;
}
/* Hide branding / powered-by */
#cookieConsent a.logo,
#cookieConsent a[href*="legally-ok"],
#cookieConsent a[href*="legally"],
#cookieConsent a[aria-label="Logo"],
div#cookieConsent a.logo,
div#cookieConsent .container a.logo,
div.cookie a.logo,
a.logo[href*="legally-ok"],
a.logo[href*="legally"] {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  pointer-events: none !important;
}
/* Slide-up animation */
@keyframes cookieSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
  #cookieConsent,
  .cookie.banner {
    font-size: 13px !important;
  }
}

/* ─── SCROLL PROGRESS BAR ─── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: #9aa6ff;
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 9999;
  transition: transform 0.08s linear;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1);
  will-change: opacity, transform;
}
.reveal-in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ─── HERO ANIMATION ─── */
.hero-fade {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.hero-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-rotate {
  display: inline-block;
  color: var(--accent);
  transition: opacity 0.35s, transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.hero-rotate.out {
  opacity: 0;
  transform: translateY(12px);
}
.hero-rotate.in {
  opacity: 1;
  transform: translateY(0);
}

.hero-rotate .cursor {
  display: inline-block;
  width: 3px;
  margin-left: 2px;
  background: var(--accent);
  animation: blink 0.7s step-end infinite;
  vertical-align: baseline;
  height: 0.85em;
}

@keyframes blink {
  50% { opacity: 0; }
}


  :root {
    --bg:        #f5f5f8;
    --bg-warm:   #eeedf4;
    --bg-card:   #ffffff;
    --border:    #dddce6;
    --border-h:  #c4c2d2;
    --text-1:    #16151f;
    --text-2:    #5c5a6e;
    --text-3:    #8f8da0;
    --text-4:    #c0bed0;
    --black:     #16151f;
    --white:     #ffffff;
    --accent:    #5b6af0;
    --accent-bg: #eef0fe;
    --font: 'League Spartan', -apple-system, BlinkMacSystemFont, sans-serif;
    --header-bg: #02084b;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }

  /* Skip link (a11y) */
  .skip-link {
    position: absolute; top: -100px; left: 16px;
    background: var(--accent); color: white;
    padding: 8px 16px; border-radius: 0 0 8px 8px;
    font-size: 13px; font-weight: 600;
    z-index: 9999; transition: top 0.2s;
    text-decoration: none;
  }
  .skip-link:focus { top: 0; }

  /* Focus visible (a11y) */
  :focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
  a:focus:not(:focus-visible),
  button:focus:not(:focus-visible) { outline: none; }

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

  /* ─── NAV ─── */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    background: var(--header-bg);
    border-bottom: none;
    transition: background 0.45s ease, height 0.45s ease, padding 0.45s ease;
  }
  nav.is-scrolled {
    background: transparent !important;
    padding: 0 24px;
    pointer-events: none;
  }
  nav.is-scrolled .nav-logo { pointer-events: auto; }

  .nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
  }

  .nav-logo-img {
    height: 36px;
    width: auto;
    display: block;
    transition: opacity 0.45s ease, transform 0.45s ease;
  }
.nav-logo-icon { display: none; height: 44px; }
  nav.is-scrolled .nav-logo-full { display: none; }
  nav.is-scrolled .nav-logo-icon { display: block; }
  nav .nav-links,
  nav .nav-cta { transition: opacity 0.45s ease, transform 0.45s ease; }
  nav.is-scrolled .nav-links,
  nav.is-scrolled .nav-cta { opacity: 0; pointer-events: none; transform: translateX(16px); }

  nav .nav-links a { color: rgba(255,255,255,0.78); }
  nav .nav-links a:hover { color: #fff; background: rgba(255,255,255,0.08); }
  nav .btn-nav-ghost {
    color: rgba(255,255,255,0.85);
    background: transparent;
    border-color: rgba(255,255,255,0.25);
  }
  nav .btn-nav-ghost:hover { color: #fff; border-color: rgba(255,255,255,0.6); }
  nav .btn-nav-primary {
    background: #fff;
    color: var(--header-bg);
  }

  .nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2px;
  }

  .nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-2);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
  }
  .nav-links a:hover { color: var(--text-1); background: var(--bg-warm); }

  .nav-cta { display: flex; align-items: center; gap: 8px; }

  .btn-nav-ghost {
    font-size: 13px; font-weight: 500;
    color: var(--text-2); text-decoration: none;
    padding: 6px 16px; border-radius: 100px;
    border: 1px solid var(--border);
    background: var(--white);
    transition: color 0.15s, border-color 0.15s;
  }
  .btn-nav-ghost:hover { color: var(--text-1); border-color: var(--border-h); }

  .btn-nav-primary {
    font-size: 13px; font-weight: 600;
    color: var(--white); background: var(--black);
    text-decoration: none; padding: 7px 18px;
    border-radius: 100px;
    transition: opacity 0.15s;
  }
  .btn-nav-primary:hover { opacity: 0.82; }

  /* ─── HERO ─── */
  h1 { font-weight: 600; }

  .hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
    background: var(--header-bg);
    color: #fff;
  }
  .hero .hero-heading { color: #fff; }
  .hero .hero-sub { color: rgba(255,255,255,0.72); }
  .hero .hero-rotate { color: #9aa6ff; }
  .hero .hero-rotate .cursor { background: #9aa6ff; }
  .hero .proof-label { color: rgba(255,255,255,0.55); }
  .hero .proof-grid { background: transparent; border: none; }
  .hero .proof-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
  }
  .hero .proof-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.22);
  }
  .hero .proof-card-project { color: #9aa6ff; }
  .hero .proof-card-text { color: rgba(255,255,255,0.78); }
  .hero .proof-card-text strong { color: #fff; }
  .hero .btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.28);
  }
  .hero .btn-ghost:hover { border-color: rgba(255,255,255,0.6); }
  .hero .btn-primary {
    background: #fff;
    color: var(--header-bg);
  }

  .hero-image-strip {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 220px;
    overflow: hidden;
    opacity: 0.18;
    mask-image: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    pointer-events: none;
    will-change: transform;
  }
  .hero-strip-img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 40%;
    filter: grayscale(0.4);
  }

  /* ─── SCROLL ZOOM TRANSITION ─── */
  .scroll-zoom-wrap {
    position: relative;
    overflow: hidden;
  }
  .scroll-zoom-inner {
    will-change: transform, border-radius;
    transform: scale(0.85);
    border-radius: 32px;
    overflow: hidden;
    transform-origin: center top;
  }


  .hero-content { position: relative; z-index: 1; max-width: 740px; }

  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px; font-weight: 500;
    color: var(--text-2);
    padding: 4px 14px 4px 6px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: var(--white);
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeUp 0.4s ease 0.05s forwards;
  }

  .hero-badge-tag {
    font-size: 11px; font-weight: 600;
    color: var(--white);
    background: var(--accent);
    padding: 2px 8px;
    border-radius: 100px;
  }

  .hero-heading {
    font-size: clamp(44px, 7.5vw, 92px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.05em;
    color: var(--black);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.4s ease 0.1s forwards;
  }
  .hero-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 0.4s ease 0.05s forwards;
  }
  .hero-metric {
    color: #9aa6ff;
    font-variant-numeric: tabular-nums;
  }

  .hero-sub {
    font-size: 18px; font-weight: 400;
    color: var(--text-2);
    max-width: 460px;
    line-height: 1.65;
    margin: 0 auto 36px;
    opacity: 0;
    animation: fadeUp 0.4s ease 0.17s forwards;
  }

  .hero-actions {
    display: flex; align-items: center;
    gap: 12px; justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.4s ease 0.24s forwards;
  }

  .btn-primary {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 14px; font-weight: 600;
    color: var(--white); background: var(--black);
    text-decoration: none;
    padding: 11px 24px; border-radius: 100px;
    transition: opacity 0.15s, transform 0.15s;
  }
  .btn-primary:hover { opacity: 0.84; transform: translateY(-1px); }

  .btn-ghost {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 14px; font-weight: 500;
    color: var(--text-1); background: var(--white);
    text-decoration: none;
    padding: 11px 24px; border-radius: 100px;
    border: 1px solid var(--border);
    transition: border-color 0.15s, transform 0.15s;
  }
  .btn-ghost:hover { border-color: var(--border-h); transform: translateY(-1px); }

  /* ─── HERO IMAGE STRIP ─── */
  .hero-images {
    position: relative; z-index: 1;
    margin-top: 72px;
    width: 100%; max-width: 1120px;
    opacity: 0;
    animation: fadeUp 0.5s ease 0.35s forwards;
  }

  .proof-label {
    font-size: 11px; color: var(--text-3);
    margin-bottom: 22px; letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .proof-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
  }

  .proof-card {
    background: transparent;
    border: none;
    border-radius: 16px;
    padding: 32px 28px;
    text-align: left;
    transition: transform 0.25s;
  }
  .proof-card:hover {
    transform: translateY(-3px);
  }

  .proof-card-project {
    font-size: 11px; font-weight: 600;
    color: #9aa6ff; text-transform: uppercase;
    letter-spacing: 0.1em; margin-bottom: 14px;
  }

  .proof-card-text {
    font-size: 14px; color: rgba(255,255,255,0.75); line-height: 1.65;
  }
  .proof-card-text strong { color: #fff; font-weight: 600; }

  /* ─── OFFER SLIDER (Mobile) / GRID (Desktop) ─── */
  .offer-dots { display: none; }

  /* ─── PROOF MOBILE SWIPER ─── */
  .proof-mobile { display: none; }
  @media (max-width: 768px) {
    .hero .hero-images { display: none !important; }
    .proof-mobile {
      display: block;
      background: var(--bg);
      padding: 32px 0 5px;
      overflow: hidden;
      position: relative;
    }
    .proof-mobile-label {
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--text-3);
      text-align: center;
      margin: 0 20px 18px;
    }
    .proof-mobile-track {
      display: flex;
      gap: 16px;
      padding: 0 20px;
      transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
      will-change: transform;
      touch-action: pan-y;
    }
    .proof-mobile-card {
      flex: 0 0 calc(100% - 40px);
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 18px;
      padding: 28px 24px;
      box-shadow: 0 2px 12px rgba(20, 20, 60, 0.04);
      min-height: 150px;
    }
    .proof-mobile-project {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 12px;
    }
    .proof-mobile-text {
      font-size: 14px;
      line-height: 1.6;
      color: var(--text-2);
    }
    .proof-mobile-text strong { color: var(--text-1); font-weight: 600; }
    .proof-mobile-dots {
      display: flex;
      justify-content: center;
      gap: 8px;
      margin-top: 16px;
    }
    .proof-mobile-dot {
      width: 7px; height: 7px;
      border-radius: 50%;
      border: none;
      background: rgba(20,20,60,0.2);
      padding: 0;
      cursor: pointer;
      transition: width 0.3s ease, background 0.3s ease;
    }
    .proof-mobile-dot.is-active {
      width: 24px;
      border-radius: 4px;
      background: var(--accent);
    }
  }

  /* ─── SECTION ─── */
  .section { max-width: 1080px; margin: 0 auto; padding: 80px 28px; }

  .section-eyebrow {
    font-size: 12px; font-weight: 500;
    color: var(--accent); margin-bottom: 10px;
    display: flex; align-items: center; gap: 8px;
  }
  .section-eyebrow::before {
    content: ''; width: 14px; height: 2px;
    background: var(--accent); border-radius: 2px;
  }

  .section-heading {
    font-size: clamp(24px, 3.5vw, 38px);
    font-weight: 700; letter-spacing: -0.03em;
    color: var(--black); line-height: 1.1;
    margin-bottom: 12px;
  }

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

  .section-desc {
    font-size: 16px; color: var(--text-2);
    max-width: 46ch; line-height: 1.7;
  }

  hr { border: none; border-top: 1px solid var(--border); }

  /* ─── HORIZONTAL SCROLL STORYTELLING ─── */
  .hscroll {
    position: relative;
    background: var(--header-bg);
    color: #fff;
    overflow: clip;
  }
  .hscroll-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    align-items: center;
  }
  .hscroll-track {
    display: flex;
    height: 100%;
    will-change: transform;
    transform: translate3d(0,0,0);
  }
  .hscroll-slide {
    flex: 0 0 100vw;
    height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 5rem;
    align-items: center;
    padding: 100px 8vw 120px;
    color: #fff;
    text-decoration: none;
    box-sizing: border-box;
  }
  .hscroll-slide-img {
    width: 100%;
    max-height: 72vh;
    aspect-ratio: 4/3;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
    transform: scale(0.94);
    opacity: 0.55;
    transition: transform 0.8s cubic-bezier(0.22,1,0.36,1), opacity 0.8s cubic-bezier(0.22,1,0.36,1);
  }
  .hscroll-slide-img img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 1.2s cubic-bezier(0.22,1,0.36,1);
  }
  .hscroll-slide.is-active .hscroll-slide-img {
    transform: scale(1);
    opacity: 1;
  }
  .hscroll-slide.is-active .hscroll-slide-img img {
    transform: scale(1.04);
  }
  .hscroll-slide:first-child .hscroll-slide-img,
  .hscroll-slide:first-child .hscroll-slide-body {
    opacity: 1;
    transform: none;
  }
  .hscroll-slide-body {
    min-width: 0;
    max-width: 520px;
    transform: translateY(20px);
    opacity: 0.4;
    transition: transform 0.8s cubic-bezier(0.22,1,0.36,1), opacity 0.8s cubic-bezier(0.22,1,0.36,1);
  }
  .hscroll-slide.is-active .hscroll-slide-body {
    transform: translateY(0);
    opacity: 1;
  }
  .hscroll-slide-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9aa6ff;
    margin-bottom: 20px;
  }
  .hscroll-slide-title {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.04;
    margin-bottom: 20px;
    color: #fff;
  }
  .hscroll-slide-desc {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255,255,255,0.72);
    max-width: 42ch;
    margin-bottom: 24px;
  }
  .hscroll-slide-tags {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px;
  }
  .hscroll-slide .proj-pill {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.12);
  }
  .hscroll-slide-cta {
    display: inline-flex;
    font-size: 14px; font-weight: 600;
    color: #9aa6ff;
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(154,166,255,0.4);
    transition: color 0.2s, border-color 0.2s;
  }
  .hscroll-slide:hover .hscroll-slide-cta {
    color: #fff; border-color: #fff;
  }
  .hscroll-progress {
    position: absolute;
    left: 8vw; right: 8vw; bottom: 48px;
    height: 2px;
    background: rgba(255,255,255,0.12);
    overflow: hidden;
    z-index: 3;
  }
  .hscroll-progress-bar {
    display: block;
    width: 100%; height: 100%;
    background: #9aa6ff;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.15s linear;
  }
  .hscroll-counter {
    position: absolute;
    right: 8vw; bottom: 64px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.7);
    font-variant-numeric: tabular-nums;
    z-index: 3;
  }
  .hscroll-counter .hscroll-sep { color: rgba(255,255,255,0.3); margin: 0 4px; }
  .hscroll-counter .hscroll-current { color: #fff; }

  @media (max-width: 900px) {
    .hscroll-slide {
      grid-template-columns: 1fr;
      gap: 1.5rem;
      padding: 90px 24px 90px;
      align-content: center;
    }
    .hscroll-slide-img {
      max-height: 38vh;
      aspect-ratio: 4/3;
      order: 2;
    }
    .hscroll-slide-body {
      order: 1;
      max-width: 100%;
      text-align: left;
    }
    .hscroll-slide-title {
      font-size: clamp(28px, 7vw, 40px);
    }
    .hscroll-slide-desc {
      font-size: 15px;
      max-width: 100%;
    }
    .hscroll-slide-tag {
      margin-bottom: 12px;
    }
    .hscroll-progress {
      left: 24px; right: 24px; bottom: 28px;
    }
    .hscroll-counter {
      right: 24px; bottom: 44px;
      font-size: 11px;
    }
  }


  /* ─── ABOUT ─── */
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 48px;
  }

  .about-image {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    position: relative;
    box-shadow: none;
  }

  .about-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
  }
  .about-image:hover img { transform: scale(1.03); }

  .about-text {}

  .about-quote {
    font-size: 20px; font-weight: 500;
    color: var(--black);
    letter-spacing: -0.02em;
    line-height: 1.45;
    margin-bottom: 20px;
  }

  .about-body {
    font-size: 15px; color: var(--text-2);
    line-height: 1.75; margin-bottom: 28px;
  }

  .about-tags {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 28px;
  }

  .about-tag {
    font-size: 12px; font-weight: 500;
    color: var(--accent);
    background: var(--accent-bg);
    padding: 4px 12px; border-radius: 100px;
  }

  /* ─── OFFER ─── */
  .offer-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1px; background: var(--border);
    border: 1px solid var(--border);
    border-radius: 14px; overflow: hidden;
    margin-top: 48px;
  }

  .offer-card {
    background: var(--white); padding: 40px;
    transition: background 0.15s;
  }
  .offer-card:hover { background: #fdfcfa; }

  .offer-card-image {
    width: 100%; height: 200px;
    border-radius: 10px; overflow: hidden;
    margin-bottom: 28px;
    position: relative;
  }

  .offer-card-image img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform 0.4s ease;
  }
  .offer-card:hover .offer-card-image img { transform: scale(1.04); }

  .offer-card-lottie {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-warm, #eeedf4);
  }
  .offer-card-lottie svg,
  .offer-card-lottie canvas {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
  }

  .offer-card-eyebrow {
    font-size: 11px; font-weight: 600;
    color: var(--accent); text-transform: uppercase;
    letter-spacing: 0.08em; margin-bottom: 10px;
  }

  .offer-card-heading {
    font-size: 22px; font-weight: 700;
    letter-spacing: -0.025em; color: var(--black);
    margin-bottom: 10px; line-height: 1.2;
  }

  .offer-card-desc {
    font-size: 14px; color: var(--text-2);
    line-height: 1.7; margin-bottom: 24px; max-width: 36ch;
  }

  .offer-list { list-style: none; margin-bottom: 28px; }
  .offer-list li {
    font-size: 13px; color: var(--text-2);
    padding: 8px 0; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 10px;
  }
  .offer-list li::before {
    content: ''; width: 4px; height: 4px;
    border-radius: 50%; background: var(--accent); flex-shrink: 0;
  }

  .btn-offer {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600;
    color: var(--white); background: var(--black);
    text-decoration: none;
    padding: 9px 20px; border-radius: 100px;
    transition: opacity 0.15s;
  }
  .btn-offer:hover { opacity: 0.82; }

  /* ─── WORK / PROJEKTE ─── */
  /* ─── PROJECT SHOWCASE ─── */
  .proj-showcase { margin-top: 48px; display: flex; flex-direction: column; gap: 20px; }

  /* Hero / featured project */
  .proj-hero {
    display: grid; grid-template-columns: 3fr 2fr;
    border-radius: 20px; overflow: hidden;
    background: var(--bg-warm); min-height: 420px;
    border: 1px solid var(--border);
    text-decoration: none; color: var(--text-1);
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s;
    position: relative;
  }
  .proj-hero:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
  .proj-hero-img { position: relative; overflow: hidden; }
  .proj-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(0.22,1,0.36,1); }
  .proj-hero:hover .proj-hero-img img { transform: scale(1.05); }
  .proj-hero-overlay {
    padding: 40px; display: flex; flex-direction: column; justify-content: center;
  }
  .proj-hero-tag {
    font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--accent); margin-bottom: 16px;
  }
  .proj-hero-title {
    font-size: 28px; font-weight: 700; letter-spacing: -0.03em;
    line-height: 1.2; margin-bottom: 12px;
  }
  .proj-hero-desc {
    font-size: 14px; color: var(--text-2); line-height: 1.65; margin-bottom: 20px;
  }
  .proj-hero-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
  .proj-pill {
    font-size: 11px; padding: 3px 10px; border-radius: 100px;
    background: var(--bg); color: var(--text-3);
    border: 1px solid var(--border);
  }
  .proj-hero-cta {
    font-size: 13px; font-weight: 600; color: var(--accent);
    transition: color 0.15s;
  }
  .proj-hero:hover .proj-hero-cta { color: var(--text-1); }

  /* Regular project cards – grid of 3 */
  .proj-showcase > .proj-card:first-of-type { margin-top: 0; }
  .proj-showcase { display: grid; grid-template-columns: 1fr; gap: 20px; }
  .proj-showcase .proj-hero { grid-column: 1 / -1; }
  .proj-showcase .proj-card { break-inside: avoid; }

  /* After the hero, display remaining cards in a row */
  @supports (display: grid) {
    .proj-showcase {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
      margin-top: 48px;
    }
    .proj-showcase .proj-hero { grid-column: 1 / -1; }
  }

  .proj-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px; overflow: hidden;
    text-decoration: none; color: inherit;
    transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s, border-color 0.3s;
    display: flex; flex-direction: column;
    position: relative;
  }
  .proj-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.08);
    border-color: var(--accent);
  }

  .proj-card-img {
    aspect-ratio: 2/1; overflow: hidden; position: relative;
  }
  .proj-card-img img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
  }
  .proj-card:hover .proj-card-img img { transform: scale(1.08); }
  .proj-card-img-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.04) 0%, transparent 50%);
  }

  .proj-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
  .proj-card-tag {
    font-size: 10px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--accent); margin-bottom: 10px;
  }
  .proj-card-title {
    font-size: 17px; font-weight: 700; color: var(--black);
    letter-spacing: -0.02em; margin-bottom: 8px; line-height: 1.25;
  }
  .proj-card-desc {
    font-size: 13px; color: var(--text-2); line-height: 1.65; margin-bottom: 16px; flex: 1;
  }
  .proj-card-tags { display: flex; flex-wrap: wrap; gap: 5px; }
  .proj-card-tags .proj-pill {
    background: var(--bg); color: var(--text-3);
    border-color: var(--border);
  }
  .proj-card-arrow {
    position: absolute; top: 16px; right: 16px;
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,0.85); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; color: var(--text-2);
    opacity: 0; transform: translate(-4px, 4px);
    transition: all 0.25s cubic-bezier(0.22,1,0.36,1);
    border: 1px solid rgba(255,255,255,0.5);
  }
  .proj-card:hover .proj-card-arrow { opacity: 1; transform: translate(0,0); }

  /* ─── TESTIMONIAL ─── */
  .testimonial-section {
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .testimonial-inner {
    max-width: 1080px; margin: 0 auto;
    padding: 72px 28px;
  }

  .testimonial-card {
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg);
    display: flex; flex-direction: column;
    gap: 20px;
  }

  .testimonial-quote {
    font-size: 16px; color: var(--text-1);
    line-height: 1.7; font-style: italic;
    letter-spacing: -0.01em;
  }

  .testimonial-quote::before { content: '"'; }
  .testimonial-quote::after  { content: '"'; }

  .testimonial-author {
    display: flex; align-items: center; gap: 12px;
    padding-top: 8px; border-top: 1px solid var(--border);
  }

  .testimonial-avatar {
    width: 40px; height: 40px;
    border-radius: 50%; overflow: hidden;
    background: var(--bg-warm); flex-shrink: 0;
  }

  .testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }

  .testimonial-name {
    font-size: 13px; font-weight: 600; color: var(--black); line-height: 1.3;
  }

  .testimonial-role { font-size: 12px; color: var(--text-3); }

  /* ─── LEISTUNGEN ─── */
  /* ─── MARQUEE ─── */
  .marquee {
    overflow: hidden;
    margin-top: 48px;
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  }

  .marquee-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: marqueeScroll 35s linear infinite;
  }
  .marquee:hover .marquee-track {
    animation-play-state: paused;
  }

  @keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }

  .marquee-card {
    flex-shrink: 0;
    width: 340px;
    padding: 32px;
    background: var(--header-bg);
    border-radius: 16px;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s;
    cursor: default;
  }
  .marquee-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
  }

  .marquee-icon {
    font-size: 34px;
    display: block;
    margin-bottom: 22px;
    transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
  }
  .marquee-card:hover .marquee-icon {
    transform: scale(1.15);
  }

  .marquee-num {
    position: absolute; top: 22px; right: 24px;
    font-size: 11px; font-weight: 600;
    color: rgba(255,255,255,0.2);
    font-variant-numeric: tabular-nums;
  }

  .marquee-title {
    font-size: 20px; font-weight: 700; color: var(--white);
    letter-spacing: -0.02em; margin-bottom: 10px; line-height: 1.25;
  }
  .marquee-desc {
    font-size: 11px; color: rgba(255,255,255,0.55);
    line-height: 1.6;
  }
  .marquee-num { font-size: 12px; }

  /* ─── TIMELINE ─── */
  .timeline {
    position: relative;
    margin-top: 56px;
    padding-bottom: 20px;
  }

  /* Center line */
  .timeline-line {
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 2px;
    background: var(--border);
    transform: translateX(-50%);
  }
  .timeline-line-fill {
    width: 100%;
    height: 0%;
    background: var(--accent);
    border-radius: 1px;
    transition: height 0.05s linear;
  }

  /* Item */
  .timeline-item {
    position: relative;
    width: 50%;
    padding: 0 48px 64px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1), transform 0.6s cubic-bezier(0.22,1,0.36,1);
  }
  .timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Left items */
  .timeline-left {
    left: 0;
    text-align: right;
    padding-right: 48px;
    padding-left: 0;
  }

  /* Right items */
  .timeline-right {
    left: 50%;
    text-align: left;
    padding-left: 48px;
    padding-right: 0;
  }

  /* Dot on the line */
  .timeline-dot {
    position: absolute;
    top: 4px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    z-index: 2;
    transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s;
  }
  .timeline-item.visible .timeline-dot {
    border-color: var(--accent);
    box-shadow: 0 0 0 6px var(--accent-bg);
  }
  .timeline-dot-icon {
    font-size: 20px;
    transition: transform 0.3s;
  }
  .timeline-item:hover .timeline-dot-icon {
    transform: scale(1.2);
  }
  .timeline-item:hover .timeline-dot {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px var(--accent-bg), 0 4px 16px rgba(91,106,240,0.15);
  }

  /* Dot positioning */
  .timeline-left .timeline-dot {
    right: -22px;
  }
  .timeline-right .timeline-dot {
    left: -22px;
  }

  /* Card */
  .timeline-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s, border-color 0.3s;
  }
  .timeline-item:hover .timeline-card {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.06);
    border-color: var(--accent);
  }

  .timeline-num {
    font-size: 11px; font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.06em;
    display: block;
    margin-bottom: 8px;
  }
  .timeline-title {
    font-size: 18px; font-weight: 700;
    color: var(--black);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    line-height: 1.2;
  }
  .timeline-desc {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.65;
    margin-bottom: 14px;
  }
  .timeline-duration {
    display: inline-block;
    font-size: 12px; font-weight: 600;
    color: var(--accent);
    background: var(--accent-bg);
    padding: 4px 12px;
    border-radius: 100px;
  }

  /* Responsive */
  @media (max-width: 768px) {
    .timeline-line { left: 20px; }
    .timeline-item { width: 100%; left: 0 !important; text-align: left !important; padding-left: 56px !important; padding-right: 0 !important; }
    .timeline-dot { left: -2px !important; right: auto !important; }
  }

  /* ─── CTA ─── */
  .cta-section {
    background: var(--header-bg);
    padding: 80px 28px;
  }
  .cta-section .btn-cta-primary {
    color: var(--header-bg);
  }

  .cta-inner {
    max-width: 1080px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4rem; align-items: center;
  }

  .cta-image {
    border-radius: 14px; overflow: hidden;
    aspect-ratio: 4/3;
  }

  .cta-image img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(0.85); }

  .cta-text {}

  .cta-heading {
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 700; letter-spacing: -0.03em;
    color: var(--white); line-height: 1.1; margin-bottom: 16px;
  }

  .cta-sub {
    font-size: 16px; color: rgba(255,255,255,0.55);
    max-width: 38ch; line-height: 1.65; margin-bottom: 32px;
  }

  /* ─── CTA FORM LAYOUT ─── */
  .cta-form-layout {
    max-width: 1080px;
    margin: 0 auto;
    padding: 80px 28px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: start;
  }
  .cta-form-contact {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .cta-email-link {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.15s;
  }
  .cta-email-link:hover { color: #fff; }
  .cta-linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.15s;
  }
  .cta-linkedin-link svg { color: #0A66C2; }
  .cta-linkedin-link:hover { color: #fff; }

  /* ─── CF7 FORM STYLING ─── */
  .cta-form-wrap .wpcf7-form { display: block; }
  .cf7-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .cf7-field { display: flex; flex-direction: column; gap: 6px; }
  .cf7-full { margin-top: 16px; }
  .cf7-field label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .cf7-field input[type="text"],
  .cf7-field input[type="email"],
  .cf7-field input[type="tel"],
  .cf7-field select,
  .cf7-field textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-family: var(--font);
    font-size: 14px;
    transition: border-color 0.2s, background 0.2s;
    outline: none;
  }
  .cf7-field input::placeholder,
  .cf7-field textarea::placeholder {
    color: rgba(255,255,255,0.3);
  }
  .cf7-field input:focus,
  .cf7-field select:focus,
  .cf7-field textarea:focus {
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.1);
  }
  .cf7-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
  }
  .cf7-field select option {
    background: var(--header-bg);
    color: #fff;
  }
  .cf7-field textarea {
    min-height: 120px;
    resize: vertical;
  }
  .cf7-submit {
    margin-top: 24px;
  }
  .btn-cf7,
  .cf7-submit input[type="submit"] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    color: var(--header-bg);
    background: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 100px;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.15s;
  }
  .btn-cf7:hover,
  .cf7-submit input[type="submit"]:hover {
    opacity: 0.92;
    transform: translateY(-1px);
  }
  .cf7-trust {
    margin-top: 16px;
    font-size: 12px;
    color: rgba(255,255,255,0.35);
  }
  .wpcf7-response-output {
    border: none !important;
    padding: 12px 16px !important;
    margin: 16px 0 0 !important;
    border-radius: 10px !important;
    font-size: 13px;
  }
  .wpcf7-mail-sent-ok,
  .wpcf7 form.sent .wpcf7-response-output {
    background: rgba(34,197,94,0.15) !important;
    color: #4ade80 !important;
  }
  .wpcf7-validation-errors,
  .wpcf7 form.invalid .wpcf7-response-output {
    background: rgba(239,68,68,0.15) !important;
    color: #f87171 !important;
  }
  .wpcf7-not-valid-tip {
    font-size: 11px;
    color: #f87171;
    margin-top: 4px;
  }
  .wpcf7-spinner {
    margin-left: 12px;
  }
  @media (max-width: 768px) {
    .cta-form-layout {
      grid-template-columns: 1fr;
      gap: 2.5rem;
      padding: 56px 20px;
    }
    .cf7-grid {
      grid-template-columns: 1fr;
    }
  }

  /* ─── FOOTER (global) ─── */
  footer[role="contentinfo"] {
    border-top: 1px solid var(--border);
    background: var(--bg);
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    z-index: 1 !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    width: 100% !important;
    order: 999 !important;
  }
  footer[role="contentinfo"] .footer-inner,
  footer[role="contentinfo"] .footer-links,
  footer[role="contentinfo"] .footer-links a,
  footer[role="contentinfo"] .footer-social {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
  }
  .footer-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 32px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
  }
  .footer-copy {
    font-size: 13px; color: var(--text-2); font-weight: 500;
    text-align: center;
    flex: 1;
  }
  footer[role="contentinfo"] .footer-links {
    display: flex;
    gap: 24px;
    background: transparent !important;
    position: static !important;
    height: auto !important;
    padding: 0 !important;
    border: none !important;
  }
  footer[role="contentinfo"] .footer-links a {
    font-size: 13px;
    color: var(--text-2);
    background: transparent;
    text-decoration: none;
    font-weight: 500;
    padding: 0;
    transition: color 0.15s;
  }
  footer[role="contentinfo"] .footer-links a:hover {
    color: var(--header-bg);
    background: transparent;
  }
  .footer-social {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--header-bg);
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s;
  }
  .footer-social:hover { transform: translateY(-2px); background: #0A66C2; }

  /* ─── LEGAL PAGES (Impressum, Datenschutz) ─── */
  .legal-main { background: var(--bg); }
  .legal-hero {
    background: var(--header-bg);
    padding: 140px 28px 80px;
    color: #fff;
  }
  .legal-hero-inner {
    max-width: 880px;
    margin: 0 auto;
  }
  .legal-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: #fff;
  }
  .legal-content {
    padding: 64px 28px 96px;
  }
  .legal-content-inner {
    max-width: 880px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-1);
  }
  .legal-content-inner h1,
  .legal-content-inner h2,
  .legal-content-inner h3,
  .legal-content-inner h4 {
    letter-spacing: -0.02em;
    color: var(--black);
  }
  .legal-content-inner h1 { font-size: 28px; margin: 48px 0 16px; }
  .legal-content-inner h2 { font-size: 22px; margin: 40px 0 14px; }
  .legal-content-inner h3 { font-size: 18px; margin: 32px 0 12px; }
  .legal-content-inner h4 { font-size: 15px; margin: 24px 0 10px; font-weight: 600; }
  .legal-content-inner h1:first-child { margin-top: 0; display: none; }
  .legal-content-inner p { margin-bottom: 14px; color: var(--text-2); }
  .legal-content-inner a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
  }
  .legal-content-inner a:hover { color: var(--text-1); }
  .legal-content-inner ul, .legal-content-inner ol {
    margin: 0 0 16px 24px;
  }
  .legal-content-inner li {
    margin-bottom: 6px;
    color: var(--text-2);
  }
  .legal-content-inner #jmdcontent { font-size: 15px; line-height: 1.7; }
  .legal-content-inner #jmdcontent h1 { display: none; }
  /* ─── RECAPTCHA BADGE (hide everywhere except forms) ─── */
  .grecaptcha-badge { visibility: hidden !important; }

  /* ─── CONTACT POPUP MODAL ─── */
  .modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }
  .modal-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }
  .modal-box {
    background: var(--header-bg);
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 580px;
    width: 100%;
    position: relative;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
    max-height: 90vh;
    overflow-y: auto;
  }
  .modal-overlay.is-open .modal-box {
    transform: translateY(0) scale(1);
  }
  .modal-close {
    position: absolute;
    top: 16px; right: 20px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    transition: color 0.2s;
  }
  .modal-close:hover { color: #fff; }
  .modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
  }
  .modal-sub {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    margin-bottom: 28px;
  }
  .modal-form .cf7-grid {
    grid-template-columns: 1fr 1fr;
  }
  @media (max-width: 520px) {
    .modal-box { padding: 32px 20px; border-radius: 18px; }
    .modal-form .cf7-grid { grid-template-columns: 1fr; }
  }

  /* ─── BLOG GRID (Archive) ─── */
  .blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 32px;
  }
  .blog-card {
    text-decoration: none !important;
    color: var(--text-1);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s;
  }
  .blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  }
  .blog-card * { text-decoration: none !important; }
  .blog-card-image { aspect-ratio: 16/9; overflow: hidden; }
  .blog-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
  .blog-card:hover .blog-card-image img { transform: scale(1.04); }
  .blog-card-cat {
    font-size: 11px; font-weight: 600;
    color: var(--accent); text-transform: uppercase;
    letter-spacing: 0.1em; margin-bottom: 8px; display: block;
  }
  .blog-card-title {
    font-size: 20px; font-weight: 700; letter-spacing: -0.02em;
    line-height: 1.2; margin-bottom: 8px; color: var(--black);
    text-decoration: underline !important;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: var(--border);
  }
  .blog-card:hover .blog-card-title { text-decoration-color: var(--accent) !important; }
  .blog-card-excerpt { font-size: 14px; color: var(--text-2); line-height: 1.55; margin-bottom: 12px; text-decoration: none !important; }
  .blog-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
  }
  .blog-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-3);
    margin-top: auto;
    padding-top: 12px;
  }
  .blog-card-meta-sep { opacity: 0.4; }
  .blog-card-no-image {
    background: var(--header-bg);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .blog-card-icon { font-size: 32px; color: rgba(255,255,255,0.3); }
  .blog-hero-sub {
    font-size: 17px;
    color: rgba(255,255,255,0.6);
    margin-top: 16px;
    max-width: 50ch;
    line-height: 1.6;
  }
  .blog-pagination { margin-top: 48px; text-align: center; }
  .blog-pagination .nav-links { display: inline-flex; gap: 8px; list-style: none; }
  .blog-pagination a, .blog-pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 14px;
    border-radius: 10px; font-size: 14px; font-weight: 500;
    text-decoration: none; transition: background 0.15s, color 0.15s;
  }
  .blog-pagination a { color: var(--text-2); background: #fff; border: 1px solid var(--border); }
  .blog-pagination a:hover { background: var(--header-bg); color: #fff; border-color: var(--header-bg); }
  .blog-pagination .current { background: var(--header-bg); color: #fff; }
  /* ─── BLOG FILTERS ─── */
  .blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
    margin-bottom: 8px;
  }
  .blog-filter-btn {
    font-size: 13px;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-2);
    cursor: pointer;
    transition: all 0.15s;
  }
  .blog-filter-btn:hover {
    border-color: var(--border-h);
    color: var(--text-1);
  }
  .blog-filter-btn.active {
    background: var(--header-bg);
    color: #fff;
    border-color: var(--header-bg);
  }

  /* Blog card hidden by filter */
  .blog-card.is-hidden {
    display: none;
  }

  /* Underline only on title, not on excerpt/meta */
  .blog-card-excerpt { text-decoration: none !important; }
  .blog-card-meta, .blog-card-meta * { text-decoration: none !important; }
  .blog-card-cat { text-decoration: none !important; }

  @media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; gap: 20px; }
    .blog-card { border-radius: 14px; }
    .blog-card-body { padding: 18px; }
    .blog-card-title { font-size: 17px; }
    .blog-card-excerpt { font-size: 13px; margin-bottom: 8px; }
    .blog-hero-sub { font-size: 15px; margin-top: 12px; }
    .blog-filters { gap: 6px; margin-top: 16px; }
    .blog-filter-btn { font-size: 12px; padding: 5px 14px; }
  }

  /* ─── BLOG / CASE STUDY ─── */
  .blog-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9aa6ff;
    margin-bottom: 20px;
  }
  .blog-meta {
    margin-top: 20px;
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .blog-meta-sep { opacity: 0.4; }
  .blog-hero-image {
    max-width: 960px;
    margin: -40px auto 0;
    padding: 0 28px;
    position: relative;
    z-index: 2;
  }
  .blog-hero-image img {
    width: 100%;
    border-radius: 16px;
    display: block;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  }
  .blog-content {
    margin-top: 48px;
  }
  .blog-content h2 { margin-top: 48px; }
  .blog-content h3 { margin-top: 36px; }
  .blog-content img {
    max-width: 100%;
    border-radius: 10px;
    margin: 24px 0;
  }
  .blog-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 12px 24px;
    margin: 24px 0;
    font-style: italic;
    color: var(--text-2);
    background: var(--accent-bg);
    border-radius: 0 10px 10px 0;
  }
  .blog-cta-bottom {
    background: var(--header-bg);
    padding: 64px 28px;
    margin-top: 80px;
    text-align: center;
  }
  .blog-cta-inner {
    max-width: 560px;
    margin: 0 auto;
  }
  .blog-cta-inner h2 {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
  }
  .blog-cta-inner p {
    font-size: 16px;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
    margin-bottom: 28px;
  }
  .blog-cta-inner .btn-primary {
    background: #fff;
    color: var(--header-bg);
  }

  @media (max-width: 768px) {
    .footer-inner { flex-direction: column; align-items: flex-start; padding: 24px 16px; }
    .footer-links { gap: 18px; }
    .legal-hero { padding: 100px 20px 48px; }
    .legal-content { padding: 40px 20px 64px; }
    .blog-hero-image { padding: 0 16px; margin-top: -24px; }
    .blog-cta-bottom { padding: 48px 20px; margin-top: 56px; }
  }


  /* ─── ANIMATIONS ─── */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* ─── RESPONSIVE ─── */
  /* ─── HAMBURGER & MOBILE MENU ─── */
  .nav-hamburger { display: none; }
  .mobile-menu { display: none; }

  @media (max-width: 768px) {
    .nav-hamburger {
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 5px;
      width: 40px; height: 40px;
      background: none; border: none;
      cursor: pointer;
      z-index: 201;
      padding: 8px;
      -webkit-tap-highlight-color: transparent;
    }
    .nav-hamburger span {
      display: block;
      width: 22px; height: 2px;
      background: #fff;
      border-radius: 2px;
      transition: transform 0.3s, opacity 0.3s;
    }
    .nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
    .nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .mobile-menu {
      display: block;
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      z-index: 199;
      background: var(--header-bg);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
    }
    .mobile-menu.is-open {
      opacity: 1;
      pointer-events: auto;
    }
    .mobile-menu-inner {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      height: 100%;
      padding: 72px 32px 48px;
    }
    .mobile-menu-links {
      list-style: none;
      padding: 0; margin: 0;
      text-align: center;
    }
    .mobile-menu-links li { margin-bottom: 8px; }
    .mobile-menu-links a {
      font-size: 24px;
      font-weight: 600;
      color: #fff;
      text-decoration: none;
      padding: 12px 24px;
      display: block;
      border-radius: 12px;
      transition: background 0.15s;
    }
    .mobile-menu-links a:hover { background: rgba(255,255,255,0.08); }
    .mobile-menu-cta {
      margin-top: 40px;
      display: flex;
      align-items: center;
    }
    .mobile-menu-cta .btn-nav-primary {
      background: #fff;
      color: var(--header-bg);
      padding: 12px 36px;
      font-size: 16px;
      font-weight: 600;
      border-radius: 100px;
      text-decoration: none;
    }
  }

  @media (max-width: 768px) {
    nav { padding: 0 16px; }
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .hero { padding: 88px 16px 0; }
    .hero-sub { font-size: 16px; }
    .proof-grid { grid-template-columns: 1fr; }
    .section { padding: 56px 16px; }
    .about-grid, .cta-inner { grid-template-columns: 1fr; }

    /* Keep nav visible on mobile when scrolled (hamburger needs it) */
    nav.is-scrolled { opacity: 1; pointer-events: auto; background: var(--header-bg) !important; }
    nav.is-scrolled .nav-links,
    nav.is-scrolled .nav-cta { display: none; }

    /* Services slider on mobile */
    #angebot { background: #fff; }
    #angebot .section { padding-left: 0; padding-right: 0; overflow: hidden; }
    #angebot .section-eyebrow,
    #angebot .section-heading,
    #angebot .section-desc { padding-left: 16px; padding-right: 16px; }
    #angebot .offer-grid {
      display: flex;
      grid-template-columns: none;
      gap: 16px;
      padding: 0 16px;
      margin: 32px 0 0;
      background: transparent;
      border: none;
      border-radius: 0;
      transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
      will-change: transform;
      touch-action: pan-y;
      overflow: visible;
    }
    #angebot .offer-card {
      flex: 0 0 calc(100vw - 32px);
      min-width: 0;
      background: #fff;
    }
    .offer-dots {
      display: flex;
      justify-content: center;
      gap: 8px;
      margin-top: 20px;
    }
    .offer-dots button {
      width: 7px; height: 7px;
      border-radius: 50%;
      border: none;
      background: rgba(20,20,60,0.2);
      padding: 0;
      cursor: pointer;
      transition: width 0.3s ease, background 0.3s ease;
    }
    .offer-dots button.is-active {
      width: 24px;
      border-radius: 4px;
      background: var(--accent);
    }

    /* About: Heading → Image → Rest */
    .about-grid { display: flex; flex-direction: column; gap: 24px; }
    .about-text { display: contents; }
    .about-text .section-eyebrow { order: 1; }
    .about-text .section-heading { order: 2; margin-bottom: 8px; }
    .about-image { order: 3; }
    .about-text .about-quote { order: 4; }
    .about-text .about-body { order: 5; }
    .about-text .btn-primary { order: 6; align-self: flex-start; }

    /* Horizontal Projects → vertical on mobile with Title → Image → Body order */
    .hscroll-slide { display: flex; flex-direction: column; gap: 16px; }
    .hscroll-slide-body { display: contents; }
    .hscroll-slide-body .hscroll-slide-tag { order: 1; }
    .hscroll-slide-body .hscroll-slide-title { order: 2; }
    .hscroll-slide-img { order: 3; }
    .hscroll-slide-body .hscroll-slide-desc { order: 4; }
    .hscroll-slide-body .hscroll-slide-tags { order: 5; }
    .hscroll-slide-body .hscroll-slide-cta { order: 6; }
    .proj-showcase { grid-template-columns: 1fr !important; }
    .proj-hero { grid-template-columns: 1fr; min-height: auto; }
    .proj-hero-img { height: 220px; }
    .proj-hero-overlay { padding: 28px; }
    .testimonial-inner { grid-template-columns: 1fr; padding: 48px 16px; }
    .marquee-card { width: 260px; padding: 22px; }
    .process-grid { grid-template-columns: 1fr 1fr; }
  }

  @media (max-width: 480px) {
    .marquee-card { width: 240px; }
    .process-grid { grid-template-columns: 1fr; }
  }


  /* old proc-card styles removed – replaced by cinema */
