/* ============================================================================
   MIKE HILLEBRAND MEDIA - Main CSS
   Azurio Template Design System | GSAP Compatible
   ============================================================================ */

/* ============================================================================
   1. CSS VARIABLES & DESIGN TOKENS
   ============================================================================ */

:root {
    /* Colors - Logo-based scheme */
    --primary: #e50c7e;          /* Pink from logo */
    --primary-dark: #c30a6a;
    --secondary: #010101;         /* Black from logo */
    --accent: #98F160;            /* Lime green backup */
    --bg-light: #ffffff;          /* Day-Mode: reinweißer Hintergrund */
    --bg-dark: #000000;           /* Night-Mode-Akzent: schwarz */
    --text-dark: #000000;         /* Day-Mode: schwarze Schrift */
    --text-light: #666666;
    --border: #e0e0e0;

    /* Typography */
    --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-base: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 24px;
    --font-size-2xl: 32px;
    --font-size-3xl: 48px;
    --font-size-4xl: 64px;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;
    --spacing-4xl: 96px;

    /* Transitions & Animations */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 50;
    --z-fixed: 1000;
    --z-modal: 2000;
}

[data-theme="dark"] {
    --bg-light: #000000;          /* Night-Mode: schwarzer Hintergrund */
    --bg-dark: #000000;
    --text-dark: #ffffff;         /* Night-Mode: weiße Schrift */
    --text-light: #aaaaaa;
}

/* ============================================================================
   2. RESET & BASE STYLES
   ============================================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    color-scheme: light dark;
}

.preloader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #070707;
    z-index: 3000;
    pointer-events: all;
}

.preloader-inner {
    width: min(420px, calc(100% - 48px));
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    text-align: center;
}

/* "MH"-Brand + Copy raus – die Bilder-Thumbnail + Balken reichen */
.preloader-brand,
.preloader-copy {
    display: none;
}

.preloader-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: var(--spacing-md);
}

.preloader-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, rgba(229,12,126,1) 0%, rgba(255,255,255,1) 100%);
    border-radius: 999px;
    transform-origin: left center;
}

.preloader-percent {
    color: white;
    letter-spacing: 0.18em;
    font-size: 0.95rem;
}

/* Live-Thumbnail des gerade geladenen Bildes (Azurio-Stil) */
.preloader-thumb {
    width: clamp(220px, 32vw, 360px);
    height: clamp(160px, 22vw, 240px);
    margin: 0 auto var(--spacing-xl);
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.preloader-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.preloader-thumb.is-loaded {
    opacity: 1;
}

/* Aktuell ladende Datei (mono, klein, gedimmt) */
.preloader-asset {
    margin-top: 0.6rem;
    font-family: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, monospace;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.55);
    min-height: 1.2em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: center;
}

.page-transition {
    position: fixed;
    inset: 0;
    background: #070707;
    opacity: 0;
    pointer-events: none;
    z-index: 2999;
}

.barba-container {
    min-height: 100vh;
}

@media (prefers-reduced-motion: reduce) {
    .preloader-inner,
    .overlay-window,
    .page-transition {
        transition: none !important;
        animation: none !important;
    }
}

body {
    font-family: var(--font-sans);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ============================================================================
   3. LOGO CONTAINER
   ============================================================================ */

.logo-container {
    position: fixed;
    top: 0;
    left: 0;
    width: auto;
    height: 100vh;
    z-index: var(--z-fixed);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: var(--spacing-lg);
    pointer-events: none;
}

.logo-link {
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    aspect-ratio: 1;
    transition: transform var(--transition-normal);
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    filter: none;
}

/* Logo-Glitch: nur während der Animation aktiv (von scrambleLogo() getoggelt) */
.logo-svg.is-glitching {
    will-change: transform, filter, clip-path;
    backface-visibility: hidden;
    transform-origin: left center;
    mix-blend-mode: normal;   /* sauberer Glitch statt Multiply-Matsch */
}

.hero-header-controls {
    position: fixed;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    z-index: calc(var(--z-fixed) + 10);
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.header-link {
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    text-decoration: none;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    padding: 0.5rem;
    border: none;
    border-radius: 0;
    background: transparent;
    color: white;
    cursor: pointer;
    transition: transform var(--transition-normal), background var(--transition-normal), color var(--transition-normal);
}

.icon-button:hover,
.icon-button:focus-visible {
    transform: none;
    background: transparent;
}

.theme-toggle .theme-icon,
.theme-toggle .theme-icon path {
    fill: #ffffff;
}

/* Burger-Icon: nur ZWEI Balken, ca. doppelt so lang (44px statt 22px).
   .burger-lines selbst ist unsichtbar – die zwei Balken kommen aus ::before/::after. */
.burger-lines {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 0;
    background: transparent;
}

.burger-lines::before,
.burger-lines::after {
    content: '';
    position: absolute;
    left: 0;
    width: 44px;
    height: 2px;
    background: white;
    transition: transform 0.35s var(--ease-out, cubic-bezier(0.4, 0, 0.2, 1));
}

.burger-lines::before { top: -7px; }
.burger-lines::after  { top: 7px; }

/* Active (X): die beiden Balken laufen zur Mitte und rotieren ins Kreuz */
.hamburger.active .burger-lines::before {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.active .burger-lines::after {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== Fullscreen Burger-Overlay (Azurio-Stil) ===== */
.overlay-menu {
    position: fixed;
    inset: 0;
    z-index: 2995;
    background: #0a0a0a;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;          /* opacity/visibility werden von GSAP (autoAlpha) gesteuert */
    padding: 0;
}

.overlay-menu.active {
    pointer-events: auto;
}

    .overlay-window {
        position: relative;             /* Container für den frei beweglichen Floater */
        width: 100%;
        height: 100%;
        overflow: hidden;
        border: none;
        border-radius: 0;
        background: #0a0a0a;
        box-shadow: none;
        clip-path: inset(0 0 0 0);     /* von GSAP für den Top-Down-Reveal animiert */
    }

    .overlay-grid {
        display: grid;
        grid-template-columns: 38% 62%;
        height: 100%;
    }

    /* --- Linke Hälfte: Bild / Deko --- */
    .overlay-preview {
        position: relative;
        overflow: hidden;
        background: #050505;
        display: flex;
        align-items: flex-end;
        justify-content: flex-start;
        padding: var(--spacing-3xl);
    }

    /* Vollflächiges BG-Element der linken Spalte – funktioniert für <img> UND <video> */
    .overlay-preview-image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        opacity: 0.55;
        z-index: 0;
    }

    /* Floater (10_trail) – darf sich per Maus-Parallaxe FREI über das ganze Burger-Overlay bewegen.
       Der Wrap zentriert + die Parallaxe (gsap.to x/y) addiert den Offset. */
    .overlay-kosmonaut-wrap {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        pointer-events: none;
        z-index: 5;
        will-change: transform;
    }
    .overlay-kosmonaut {
        width: clamp(180px, 22vw, 320px);
        height: auto;
        display: block;
        opacity: 0.9;
        will-change: transform;
        filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
    }

    .overlay-preview-label {
        position: relative;
        z-index: 1;
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.75rem;
        letter-spacing: 0.32em;
        text-transform: uppercase;
    }

    /* --- Rechte Hälfte: Navigation + Infos --- */
    .overlay-panel {
        position: relative;
        padding: clamp(2.5rem, 5vw, 4.5rem) clamp(2.5rem, 6vw, 6rem);
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: clamp(1.75rem, 3vw, 3rem);
    }

    .overlay-close {
        position: absolute;
        top: clamp(1.5rem, 3vw, 2.5rem);
        right: clamp(1.5rem, 3vw, 2.5rem);
        font-size: 3.2rem;
        line-height: 1;
        color: rgba(255, 255, 255, 0.8);
        background: none;
        border: none;
        cursor: pointer;
        transition: color var(--transition-normal), transform var(--transition-normal);
    }

    .overlay-close:hover,
    .overlay-close:focus-visible {
        color: #fff;
        transform: rotate(90deg);
    }

    .overlay-tagline {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        font-size: 0.7rem;
        letter-spacing: 0.32em;
        text-transform: uppercase;
    }

    .overlay-tagline span:first-child { color: rgba(255, 255, 255, 0.85); }
    .overlay-tagline span + span     { color: rgba(255, 255, 255, 0.4); }

    /* --- Nav-Links: nummeriert, groß, mit Pfeil + Trennlinie --- */
    .overlay-nav {
        display: flex;
        flex-direction: column;
    }

    .overlay-nav-link {
        display: flex;
        align-items: baseline;
        gap: clamp(1rem, 2.5vw, 2rem);
        padding: clamp(0.7rem, 1.6vw, 1.3rem) 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.13);
        color: #fff;
        text-decoration: none;
        text-transform: none;
        letter-spacing: 0;
        transition: opacity var(--transition-normal);
    }
    .overlay-nav > .overlay-nav-link:first-child,
    .overlay-nav > .overlay-nav-group:first-child > .overlay-nav-link { border-top: 1px solid rgba(255, 255, 255, 0.13); }
    .overlay-nav-link::after { display: none; }   /* keine zusätzliche Unterstreichung */
    .overlay-nav-link--no-border { border-bottom: none; }

    /* Sub-Menü (z. B. Project-Detail-Seiten unter „Works") – kleiner, weiß, eingerückt */
    .overlay-nav-group {
        border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    }
    .overlay-nav-sub {
        list-style: none;
        margin: 0;
        padding: 0 0 clamp(0.8rem, 1.4vw, 1.4rem) clamp(2.5rem, 6vw, 5.5rem);
        display: flex;
        flex-direction: column;
        gap: clamp(0.4rem, 0.8vw, 0.6rem);
    }
    .overlay-nav-sub li { margin: 0; }
    .overlay-nav-sub a {
        display: inline-block;
        color: #fff;
        text-decoration: none;
        font-size: clamp(1rem, 1.45vw, 1.2rem);
        font-weight: 500;
        line-height: 1.4;
        opacity: 0.72;
        transition: opacity var(--transition-normal), transform var(--transition-normal);
    }
    .overlay-nav-sub a:hover {
        opacity: 1;
        transform: translateX(0.3rem);
    }

    .overlay-nav-num {
        flex: 0 0 auto;
        color: rgba(255, 255, 255, 0.4);
        font-size: 0.8rem;
        letter-spacing: 0.1em;
        transform: translateY(-0.15em);
    }

    .overlay-nav-label {
        flex: 1 1 auto;
        font-size: clamp(2.4rem, 5.5vw, 5rem);
        font-weight: 700;
        line-height: 1;
        transition: transform var(--transition-normal);
    }

    .overlay-nav-arrow {
        flex: 0 0 auto;
        font-size: clamp(1.2rem, 2vw, 1.8rem);
        color: rgba(255, 255, 255, 0.5);
        opacity: 0;
        transform: translateX(-12px);
        transition: opacity var(--transition-normal), transform var(--transition-normal);
    }

    .overlay-nav-link:hover .overlay-nav-label { transform: translateX(0.5rem); }
    .overlay-nav-link:hover .overlay-nav-arrow { opacity: 1; transform: translateX(0); }
    .overlay-nav-link:hover .overlay-nav-num   { color: rgba(255, 255, 255, 0.7); }

    /* --- Info-Spalte: E-Mail + Social-Pixel-Icons --- */
    .overlay-info {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-end;
        justify-content: space-between;
        gap: var(--spacing-xl);
    }

    .overlay-info-col {
        display: grid;
        gap: 0.35rem;
        color: rgba(255, 255, 255, 0.6);
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .overlay-info-col a {
        color: #fff;
        text-decoration: none;
    }

    .overlay-socials {
        display: flex;
        align-items: center;
        gap: 0.7rem;
    }

    .overlay-social {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        color: rgba(255, 255, 255, 0.55);
        border: 1px solid rgba(255, 255, 255, 0.16);
        background: transparent;
        transition: color var(--transition-normal), border-color var(--transition-normal), transform var(--transition-normal);
    }

    .overlay-social:hover,
    .overlay-social:focus-visible {
        color: #fff;
        border-color: rgba(255, 255, 255, 0.6);
        transform: translateY(-2px);
    }

    .overlay-social .px-icon {
        width: 20px;
        height: 20px;
        fill: currentColor;
        shape-rendering: crispEdges;
    }

    /* --- Footer des Overlays --- */
    .overlay-footer {
        display: flex;
        justify-content: space-between;
        gap: var(--spacing-md);
        color: rgba(255, 255, 255, 0.35);
        font-size: 0.75rem;
        letter-spacing: 0.04em;
    }

    @media (max-width: 940px) {
        .overlay-grid {
            grid-template-columns: 1fr;
            grid-template-rows: 1fr;
        }

        .overlay-preview { display: none; }

        .overlay-panel {
            justify-content: flex-start;
            padding-top: clamp(4.5rem, 12vw, 6rem);
            overflow-y: auto;
        }
    }

    @media (max-width: 560px) {
        .overlay-nav-label { font-size: 2.2rem; }
        .overlay-info { flex-direction: column; align-items: flex-start; }
        .overlay-footer { flex-direction: column; gap: 0.25rem; }
    }

body { overflow-x: hidden; }

.hero {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

/* Hero Video Background */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 30% 50%, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.8) 100%);
    z-index: 2;
}

/* Hero Left - Label */
.hero-left {
    position: absolute;
    top: auto;
    bottom: clamp(32px, 8vh, 82px);
    left: var(--spacing-xl);
    transform: none;
    z-index: 10;
    color: white;
    font-weight: 600;
    letter-spacing: 2px;
    font-size: var(--font-size-sm);
}

.hero-label {
    display: block;
    opacity: 0.8;
    animation: fadeInDown 0.8s ease 0.2s both;
    color: white;
    text-decoration: none;
}

/* Hero Center - Main Content */
.hero-center {
    position: absolute;
    bottom: var(--spacing-4xl);
    left: var(--spacing-xl);
    z-index: 10;
    text-align: left;
    color: white;
    max-width: 640px;
}

.hero-main {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -2px;
    animation: fadeInUp 0.8s ease both;
    margin: 0;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    opacity: 0.9;
    letter-spacing: 0.5px;
    animation: fadeInUp 0.8s ease 0.1s both;
    margin: 0;
}

/* Hero Right - Scroll Text & Shapes */
.hero-right {
    position: absolute;
    top: 50%;
    right: var(--spacing-xl);
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--spacing-3xl);
}

.scroll-text {
    color: white;
    font-size: var(--font-size-sm);
    font-weight: 600;
    letter-spacing: 1.5px;
    opacity: 0.8;
    animation: fadeInUp 0.8s ease 0.3s both;
}

/* 3D Geometric Shapes */
.hero-shapes {
    position: absolute;
    bottom: var(--spacing-4xl);
    right: var(--spacing-xl);
    z-index: 10;
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.shape {
    width: 80px;
    height: 80px;
    animation: fadeInUp 0.8s ease 0.4s both;
    object-fit: contain;
    transition: transform 0.1s ease;
}

/* Pink Sphere - 02_trail.webp */
.shape.sphere {
    /* Position automatically handled by flexbox */
}

/* Brown-Pink Cube - 06_trail.webp */
.shape.cube {
    /* Position automatically handled by flexbox */
}

/* Cyan Pyramid - details02.webp */
.shape.pyramid {
    /* Position automatically handled by flexbox */
    filter: drop-shadow(10px 10px 20px rgba(0, 212, 212, 0.3));
}

/* Hover Circle */
.hero-hover-circle {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity var(--transition-fast);
    mix-blend-mode: screen;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================================
   5. FEATURED PROJECTS SECTION
   ============================================================================ */

/* ===== Mission-Section (Azurio-Stil, dunkel, mit Riesen-Marquee am Fuß) ===== */
.mission-section {
    position: relative;
    background: #0a0a0a;
    color: #fff;
    overflow: hidden;
    padding: clamp(80px, 12vw, 120px) 5% 0;
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(2rem, 6vw, 6rem);
    align-items: start;
    max-width: 1500px;
}

.mission-left {
    display: flex;
    flex-direction: column;
}

.mission-heading {
    margin: 0;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    line-height: 1;
    color: #fff;
}

.mission-label {
    align-self: flex-start;
    margin-top: clamp(2.5rem, 8vw, 7rem);
    font-family: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #888;
}

.mission-right {
    padding-top: clamp(0.4rem, 1.6vw, 1.6rem);
}

.mission-text {
    margin: 0;
    max-width: 640px;
    font-size: clamp(1.15rem, 1.6vw, 1.5rem);
    line-height: 1.55;
    color: #fff;
}

.mission-text .dimmed {
    color: #6a6a6a;   /* lesbar auf #0a0a0a; hellt beim Scrollen auf #fff auf */
}

.mission-tags {
    margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
    font-family: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, monospace;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #888;
    line-height: 1.9;
}

.mission-marquee {
    position: relative;
    z-index: 0;
    display: flex;
    align-items: flex-end;
    flex-wrap: nowrap;
    margin-top: calc(clamp(40px, 8vw, 90px) + 35px);
    margin-left: -5%;
    margin-right: -5%;
    margin-bottom: -0.18em;
    font-size: clamp(8rem, 20vw, 20rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1;
    color: #ffffff;                 /* gleicher Weißton wie die Selected-Work-Schrift darunter – sauberer Anschluss */
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
    transform: translateY(0);
    will-change: transform;
}

/* jeder Buchstabe sitzt in einer eigenen overflow:clip-Maske → fährt von unten rein */
.mission-marquee .char-mask {
    position: relative;
    display: inline-block;
    overflow: clip;
    height: 1em;
    line-height: 1;
}

.mission-marquee .char {
    display: inline-block;
    white-space: pre;               /* erhält das &nbsp; für Leerzeichen */
    line-height: 1;
    will-change: transform, opacity;
}

[data-theme="light"] .mission-section {
    background: #0a0a0a;            /* Mission bleibt bewusst dunkel, auch im Light-Mode */
}

@media (max-width: 900px) {
    .mission-grid {
        grid-template-columns: 1fr;
        gap: clamp(1.5rem, 5vw, 2.5rem);
    }
    .mission-label { margin-top: clamp(1rem, 4vw, 2rem); }
    .mission-right { padding-top: 0; }
    .mission-marquee { transform: translateY(0); }
}

/* ===== Permanenter, progressiver Blur am unteren Viewport-Rand (8-Schicht-Technik) ===== */
.blur-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px;
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.35s ease;
}

/* solange der Hero-Slider gepinnt ist: kein Bottom-Blur im Header */
body.hero-pinned .blur-container {
    opacity: 0;
}

.blur-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.blur-1 {
    z-index: 1;
    -webkit-backdrop-filter: blur(0.078125px);
            backdrop-filter: blur(0.078125px);
    -webkit-mask-image: linear-gradient(rgba(0,0,0,0) 0%, rgba(0,0,0,1) 12.5%, rgba(0,0,0,1) 25%, rgba(0,0,0,0) 37.5%);
            mask-image: linear-gradient(rgba(0,0,0,0) 0%, rgba(0,0,0,1) 12.5%, rgba(0,0,0,1) 25%, rgba(0,0,0,0) 37.5%);
}
.blur-2 {
    z-index: 2;
    -webkit-backdrop-filter: blur(0.15625px);
            backdrop-filter: blur(0.15625px);
    -webkit-mask-image: linear-gradient(rgba(0,0,0,0) 12.5%, rgba(0,0,0,1) 25%, rgba(0,0,0,1) 37.5%, rgba(0,0,0,0) 50%);
            mask-image: linear-gradient(rgba(0,0,0,0) 12.5%, rgba(0,0,0,1) 25%, rgba(0,0,0,1) 37.5%, rgba(0,0,0,0) 50%);
}
.blur-3 {
    z-index: 3;
    -webkit-backdrop-filter: blur(0.3125px);
            backdrop-filter: blur(0.3125px);
    -webkit-mask-image: linear-gradient(rgba(0,0,0,0) 25%, rgba(0,0,0,1) 37.5%, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 62.5%);
            mask-image: linear-gradient(rgba(0,0,0,0) 25%, rgba(0,0,0,1) 37.5%, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 62.5%);
}
.blur-4 {
    z-index: 4;
    -webkit-backdrop-filter: blur(0.625px);
            backdrop-filter: blur(0.625px);
    -webkit-mask-image: linear-gradient(rgba(0,0,0,0) 37.5%, rgba(0,0,0,1) 50%, rgba(0,0,0,1) 62.5%, rgba(0,0,0,0) 75%);
            mask-image: linear-gradient(rgba(0,0,0,0) 37.5%, rgba(0,0,0,1) 50%, rgba(0,0,0,1) 62.5%, rgba(0,0,0,0) 75%);
}
.blur-5 {
    z-index: 5;
    -webkit-backdrop-filter: blur(1.25px);
            backdrop-filter: blur(1.25px);
    -webkit-mask-image: linear-gradient(rgba(0,0,0,0) 50%, rgba(0,0,0,1) 62.5%, rgba(0,0,0,1) 75%, rgba(0,0,0,0) 87.5%);
            mask-image: linear-gradient(rgba(0,0,0,0) 50%, rgba(0,0,0,1) 62.5%, rgba(0,0,0,1) 75%, rgba(0,0,0,0) 87.5%);
}
.blur-6 {
    z-index: 6;
    -webkit-backdrop-filter: blur(2.5px);
            backdrop-filter: blur(2.5px);
    -webkit-mask-image: linear-gradient(rgba(0,0,0,0) 62.5%, rgba(0,0,0,1) 75%, rgba(0,0,0,1) 87.5%, rgba(0,0,0,0) 100%);
            mask-image: linear-gradient(rgba(0,0,0,0) 62.5%, rgba(0,0,0,1) 75%, rgba(0,0,0,1) 87.5%, rgba(0,0,0,0) 100%);
}
.blur-7 {
    z-index: 7;
    -webkit-backdrop-filter: blur(5px);
            backdrop-filter: blur(5px);
    -webkit-mask-image: linear-gradient(rgba(0,0,0,0) 75%, rgba(0,0,0,1) 87.5%, rgba(0,0,0,1) 100%);
            mask-image: linear-gradient(rgba(0,0,0,0) 75%, rgba(0,0,0,1) 87.5%, rgba(0,0,0,1) 100%);
}
.blur-8 {
    z-index: 8;
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    -webkit-mask-image: linear-gradient(rgba(0,0,0,0) 87.5%, rgba(0,0,0,1) 100%);
            mask-image: linear-gradient(rgba(0,0,0,0) 87.5%, rgba(0,0,0,1) 100%);
}

/* ===== Selected Work (Azurio-Stil, helle Liste mit Maus-Follow-Preview) ===== */
.selected-work {
    position: relative;
    background: #0a0a0a;
    color: #fff;
    padding: clamp(60px, 9vw, 110px) 5%;
}

.sw-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: clamp(1.5rem, 5vw, 4rem);
    margin-bottom: clamp(40px, 7vw, 90px);
}

.sw-title {
    margin: 0;
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 700;
    line-height: 1;
    color: #fff;
}

.sw-intro {
    margin: 0.4rem 0 0;
    max-width: 320px;
    justify-self: end;
    font-size: 1.1rem;
    line-height: 1.5;
    color: #fff;
}

.sw-intro .sw-dim { color: #8a8a8a; }   /* gedimmt, aber lesbar auf #0a0a0a */

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

.sw-row {
    display: grid;
    grid-template-columns: minmax(110px, 0.8fr) minmax(240px, 2.4fr) minmax(150px, 1fr) minmax(100px, 0.8fr);
    gap: clamp(1rem, 3vw, 3rem);
    align-items: start;
    padding: clamp(20px, 2.6vw, 32px) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    text-decoration: none;
    color: inherit;
}

.sw-list .sw-item:last-child .sw-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

/* andere Zeilen dimmen, wenn eine gehovert wird */
.sw-item { transition: opacity 0.3s ease; }
.sw-list:hover .sw-item { opacity: 0.3; }
.sw-list:hover .sw-item:hover { opacity: 1; }

.sw-cat,
.sw-tags,
.sw-date {
    font-family: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    line-height: 1.75;
    color: #9a9a9a;                 /* hellgrau – lesbar auf dem dunklen #0a0a0a */
}

.sw-name {
    font-size: clamp(1.6rem, 3.2vw, 2.6rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.01em;
}

.sw-name-a { display: block; color: #fff; }
.sw-name-b { display: block; color: #7a7a7a; transition: color 0.3s ease; }
.sw-item:hover .sw-name-b { color: #fff; }

/* Footer der Section: Pixel-Plus links, [ ALL WORKS ] + Bild rechts */
.sw-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    margin-top: clamp(40px, 7vw, 90px);
}

.sw-cross {
    display: grid;
    grid-template-columns: repeat(3, clamp(10px, 1.2vw, 16px));
    grid-template-rows: repeat(3, clamp(10px, 1.2vw, 16px));
    gap: clamp(3px, 0.4vw, 5px);
}
.sw-cross span { background: #ccc; }
.sw-cross span:nth-child(1) { grid-area: 1 / 2; }
.sw-cross span:nth-child(2) { grid-area: 2 / 1; }
.sw-cross span:nth-child(3) { grid-area: 2 / 2; }
.sw-cross span:nth-child(4) { grid-area: 2 / 3; }
.sw-cross span:nth-child(5) { grid-area: 3 / 2; }

.sw-allworks {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: clamp(0.8rem, 1.6vw, 1.2rem);
}

.sw-allworks-label {
    font-family: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, monospace;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
}

.sw-allworks-img {
    display: block;
    width: clamp(180px, 22vw, 320px);
}
.sw-allworks-img img {
    width: 100%;
    height: clamp(220px, 26vw, 380px);
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* Maus-Follow-Preview-Bild */
.sw-preview {
    position: fixed;
    left: 0;
    top: 0;
    pointer-events: none;
    z-index: 1200;
    opacity: 0;
    transition: opacity 0.35s ease;
    will-change: transform;
}
.sw-preview img {
    width: 350px;
    height: 260px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    transform: scale(0.85);
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sw-preview.is-active { opacity: 1; }
.sw-preview.is-active img { transform: scale(1); }

.sw-preview-cta {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fff;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@media (max-width: 860px) {
    .sw-header { grid-template-columns: 1fr; }
    .sw-intro { justify-self: start; }
    .sw-row {
        grid-template-columns: 1fr 1fr;
        row-gap: 0.6rem;
    }
    .sw-name { grid-column: 1 / -1; order: -1; }
    .sw-date { text-align: right; }
    .sw-preview { display: none; }
    .sw-list:hover .sw-item { opacity: 1; }
}

/* ===== Stack Cards: Services (CSS-sticky → stapeln beim Scrollen) ===== */
.stack-cards {
    position: relative;
    background: #0a0a0a;
}

.stack-card {
    position: -webkit-sticky;   /* Safari ≤15 */
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    isolation: isolate;             /* eigener Stacking-Context, spätere Card paint-on-top */
    background: #0a0a0a;
}

/* Zoom-buffer: erste Karte hat Abstand zur zweiten, damit Zoom 100% fertig ist bevor nächste Karte erscheint */
.stack-card:first-child {
    margin-bottom: 300px;
}


/* LAYER 1: Bild/Video fullscreen */
.card__image {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.card__image img,
.card__image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform-origin: center center;
    will-change: transform;          /* JS setzt den Scale-Startzustand und scrubt 1.08 → 1.0 */
}

/* LAYER 2: dunkles Overlay */
.card__cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(0, 0, 0, 0.34);
}

/* LAYER 3: Marquee-Hintergrundtext – liegt jetzt HINTER Bild + Overlay (z-index:0),
   damit das Card-Bild den Lauftext sauber verdeckt (sonst lag der Text unschön darüber). */
.card__marquees {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    pointer-events: none;
}
.marquee-row {
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    font-size: clamp(7rem, 18vw, 18rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.07);
    text-transform: uppercase;
    will-change: transform;
    animation: marqueeScroll 18s linear infinite;
}
.marquee-row span { display: inline-block; }
.marquee-mid    { animation-duration: 26s; }
.marquee-bottom { animation-duration: 21s; animation-direction: reverse; }

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

/* LAYER 4: Content */
.card__content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(120px, 220px) 1fr minmax(120px, 220px);
    align-items: center;
    gap: clamp(1rem, 3vw, 3rem);
    padding: clamp(40px, 6vw, 64px) 5%;
}

.card__tags-left,
.card__tags-right {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-family: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, monospace;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);   /* lesbar auch auf hellen Bildstellen */
}
.card__tags-right { text-align: right; }

.card__title {
    align-self: flex-end;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1rem, 2vw, 1.6rem);
    text-align: center;
}
.card__title h2 {
    margin: 0;
    font-size: clamp(3rem, 7vw, 6.5rem);
    font-weight: 700;
    line-height: 1.05;
    color: #fff;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45);
}
.card__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: #fff;
    font-size: 1.3rem;
    text-decoration: none;
    transition: background var(--transition-normal), color var(--transition-normal), transform var(--transition-normal);
}
.card__link:hover,
.card__link:focus-visible {
    background: #fff;
    color: #0a0a0a;
    transform: translateX(4px);
}

@media (max-width: 760px) {
    .card__content {
        grid-template-columns: 1fr;
        align-items: flex-end;
        gap: clamp(1.5rem, 5vw, 2.5rem);
    }
    .card__tags-left  { order: 2; flex-direction: row; flex-wrap: wrap; gap: 0.4rem 1rem; }
    .card__tags-right { display: none; }
    .card__title { order: 1; align-items: flex-start; text-align: left; }
}

.featured-projects {
    padding: var(--spacing-4xl) var(--spacing-xl);
    background: var(--bg-light);
}

.featured-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-2xl);
}

.featured-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    height: auto;
}

.featured-link {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    border-radius: 8px;
}

.featured-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

.featured-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-xl);
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: all var(--transition-normal);
}

.featured-link:hover .featured-content {
    transform: translateY(0);
    opacity: 1;
}

.featured-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.featured-desc {
    font-size: var(--font-size-sm);
    opacity: 0.9;
    margin-bottom: var(--spacing-md);
}

.featured-tag {
    font-size: var(--font-size-xs);
    background: var(--primary);
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 20px;
    display: inline-block;
}

/* ============================================================================
   6. STUDIO SECTION (THE STUDIO / MISSION)
   ============================================================================ */

.studio-section {
    padding: var(--spacing-4xl) var(--spacing-xl);
    background: white;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.studio-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.studio-link {
    font-size: var(--font-size-sm);
    color: var(--primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.studio-link:hover {
    color: var(--primary-dark);
}

.studio-heading {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin: var(--spacing-xl) 0;
    letter-spacing: -2px;
}

.studio-text {
    font-size: var(--font-size-lg);
    line-height: 1.8;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================================================
   7. SELECTED WORK SECTION
   ============================================================================ */

/* (duplikat-Regel .selected-work entfernt — die echte Definition mit dark-Theme steht weiter oben) */

.selected-header {
    max-width: 1400px;
    margin: 0 auto var(--spacing-3xl);
    text-align: center;
}

.selected-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    letter-spacing: -1px;
}

.selected-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.work-grid {
    max-width: 1400px;
    margin: 0 auto var(--spacing-2xl);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-2xl);
}

.work-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    background: #000;
    transition: transform var(--transition-normal);
}

.work-card:hover {
    transform: translateY(-10px);
}

.work-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.work-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.work-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.work-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-lg);
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
}

.work-category {
    font-size: var(--font-size-xs);
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.work-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.tag {
    font-size: var(--font-size-xs);
    background: rgba(229, 12, 126, 0.2);
    color: var(--primary);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 4px;
    border: 1px solid var(--primary);
}

.work-date {
    font-size: var(--font-size-xs);
    opacity: 0.7;
    display: block;
}

.work-footer {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

/* ============================================================================
   8. SERVICES SECTION
   ============================================================================ */

.services-section {
    padding: var(--spacing-4xl) var(--spacing-xl);
    background: white;
    border-top: 1px solid var(--border);
}

.services-intro {
    max-width: 1400px;
    margin: 0 auto var(--spacing-3xl);
    font-size: var(--font-size-lg);
    color: var(--text-light);
    text-align: center;
}

.service-card {
    max-width: 1400px;
    margin: 0 auto var(--spacing-3xl);
    padding-bottom: var(--spacing-3xl);
    border-bottom: 1px solid var(--border);
}

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

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.service-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
}

.service-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.service-link:hover {
    color: var(--primary-dark);
}

.service-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.service-list li {
    padding-left: var(--spacing-lg);
    position: relative;
    font-size: var(--font-size-base);
    color: var(--text-light);
}

.service-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* ============================================================================
   9. PROCESS SECTION
   ============================================================================ */

.process-section {
    padding: var(--spacing-4xl) var(--spacing-xl);
    background: var(--bg-light);
    border-top: 1px solid var(--border);
}

.process-header {
    max-width: 1400px;
    margin: 0 auto var(--spacing-3xl);
}

.process-intro {
    font-size: var(--font-size-lg);
    color: var(--text-light);
    max-width: 800px;
}

.process-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-2xl);
}

.process-card {
    padding: var(--spacing-xl);
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all var(--transition-normal);
}

.process-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.process-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
}

.process-description {
    font-size: var(--font-size-base);
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
}

.process-timeline {
    font-size: var(--font-size-sm);
    color: var(--primary);
    font-weight: 600;
}

/* ============================================================================
   10. CTA SECTION
   ============================================================================ */

.cta-section {
    padding: var(--spacing-4xl) var(--spacing-xl);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    letter-spacing: -1px;
}

.cta-subtitle {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-2xl);
    opacity: 0.95;
}

/* ============================================================================
   11. BUTTONS
   ============================================================================ */

.btn {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: 50px;
    font-weight: 600;
    font-size: var(--font-size-base);
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-normal);
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border-color: var(--text-dark);
}

.btn-secondary:hover {
    background: var(--text-dark);
    color: white;
}

/* ============================================================================
   12. TEXT SCRAMBLER EFFECT
   ============================================================================ */

.scramble-char {
    color: var(--primary);
    font-weight: 600;
    animation: scramblePulse 0.1s infinite alternate;
}

@keyframes scramblePulse {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* ============================================================================
   13. FOOTER
   ============================================================================ */

.footer {
    background: var(--secondary);
    color: white;
    padding: var(--spacing-3xl) var(--spacing-xl) var(--spacing-lg);
}

.footer-top {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
    padding-bottom: var(--spacing-2xl);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-section h4 {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-lg);
    font-weight: 700;
}

.footer-section p {
    font-size: var(--font-size-sm);
    opacity: 0.7;
    margin-bottom: var(--spacing-md);
}

.footer-logo {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: block;
    margin-bottom: var(--spacing-md);
}

.footer-section a {
    display: block;
    color: white;
    text-decoration: none;
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-md);
    transition: color var(--transition-fast);
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    font-size: var(--font-size-xs);
    opacity: 0.5;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem 1.5rem;
}

.footer-bottom p { margin: 0; }

.footer-legal a {
    color: inherit;
    text-decoration: none;
    margin: 0 0.25rem;
    transition: opacity var(--transition-normal);
}

.footer-legal a:hover { opacity: 0.7; }

/* Impressum / Datenschutz – Legal-Inhaltsseiten */
.legal-section {
    padding: clamp(40px, 8vw, 100px) 5%;
}

.legal-inner {
    max-width: 900px;
    margin: 0 auto;
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    line-height: 1.7;
}

.legal-inner h2 {
    margin: clamp(2rem, 4vw, 3rem) 0 0.75rem;
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    font-weight: 700;
    line-height: 1.2;
}

.legal-inner h3 {
    margin: 1.5rem 0 0.5rem;
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    font-weight: 600;
}

.legal-inner p { margin: 0 0 1rem; }

.legal-inner a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-inner a:hover { opacity: 0.8; }

.legal-note {
    margin-top: clamp(2.5rem, 5vw, 4rem);
    padding: 1rem 1.25rem;
    border-left: 3px solid var(--primary);
    background: rgba(229, 12, 126, 0.08);
    font-size: 0.85rem;
    line-height: 1.5;
    border-radius: 0 8px 8px 0;
}

/* Legal-Links im Burger-Overlay (kleiner, dezent) */
.overlay-info-legal {
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5) !important;
    text-decoration: none;
    transition: color var(--transition-normal);
}
.overlay-info-legal:hover { color: rgba(255, 255, 255, 0.85) !important; }

/* ============================================================================
   13. RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 1024px) {
    .nav-menu {
        gap: var(--spacing-lg);
    }

    .hero {
        height: 80vh;
    }

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

    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .service-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-light);
        width: 100%;
        text-align: center;
        transition: left var(--transition-normal);
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        gap: var(--spacing-lg);
        padding: var(--spacing-xl) 0;
        justify-content: flex-start;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .theme-toggle {
        display: none;
    }

    .hero-content {
        padding-left: var(--spacing-lg);
        max-width: 100%;
    }

    .hero-image {
        width: 100%;
    }

    .featured-grid,
    .work-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .featured-projects,
    .studio-section,
    .selected-work,
    .services-section,
    .process-section,
    .cta-section {
        padding: var(--spacing-2xl) var(--spacing-md);
    }

    .selected-title,
    .cta-title {
        font-size: var(--font-size-2xl);
    }

    .studio-heading {
        font-size: var(--font-size-2xl);
    }

    .service-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }

    .footer-top {
        gap: var(--spacing-xl);
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 var(--spacing-md);
        gap: var(--spacing-md);
    }

    .nav-logo {
        font-size: var(--font-size-lg);
    }

    .hero {
        min-height: 500px;
    }

    .hero-cta {
        font-size: var(--font-size-lg);
    }

    .selected-title,
    .studio-heading {
        font-size: var(--font-size-xl);
    }

    .process-grid {
        gap: var(--spacing-lg);
    }

    .work-card,
    .featured-item {
        aspect-ratio: auto;
        height: 300px;
    }
}

/* ============================================================================
   14. DARK MODE
   ============================================================================ */

[data-theme="dark"] .navbar {
    background: var(--bg-dark);
}

/* Light-Mode: Navbar-Schrift dunkel, sonst weiß auf hellem Hintergrund = unsichtbar */
[data-theme="light"] .nav-logo,
[data-theme="light"] .nav-link {
    color: #0a0a0a;
}
[data-theme="light"] .navbar.scrolled {
    background: rgba(238, 234, 232, 0.92);
}

[data-theme="dark"] .featured-projects,
[data-theme="dark"] .process-section {
    background: var(--bg-dark);
}
/* .selected-work / .mission-section / .stack-cards sind in BEIDEN Modi bewusst dunkel (#0a0a0a) – Azurio-Editorial-Look, vom Toggle unabhängig */

[data-theme="dark"] .studio-section,
[data-theme="dark"] .services-section {
    background: var(--bg-dark);
    border-color: rgba(255,255,255,0.1);
    color: var(--text-dark);
}

[data-theme="dark"] .process-card {
    background: #1a1a1a;
    border-color: rgba(255,255,255,0.1);
}

/* ============================================================================
   15. ANIMATIONS (GSAP-compatible)
   ============================================================================ */

/* Slide up keyframe for hero text */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.line-content {
    animation: slideUp 0.8s ease-out backwards;
}

/* Stagger delay */
.work-card:nth-child(2) { animation-delay: 0.1s; }
.work-card:nth-child(3) { animation-delay: 0.2s; }
.work-card:nth-child(4) { animation-delay: 0.3s; }
.work-card:nth-child(5) { animation-delay: 0.4s; }
.work-card:nth-child(6) { animation-delay: 0.5s; }

/* ============================================================================
   16. AZURIO MOTION PASS - STRUCTURE REPAIR & INTERACTION LAYER
   ============================================================================ */

:root {
    --surface: rgba(255, 255, 255, 0.72);
    --surface-dark: rgba(13, 13, 13, 0.72);
    --line: rgba(20, 20, 20, 0.14);
    --line-dark: rgba(255, 255, 255, 0.12);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html.lenis,
html.lenis body {
    height: auto;
}

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

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

a {
    color: inherit;
}

a,
button,
.work-card,
.featured-item,
.service-card,
.blog-card,
.filter-btn {
    -webkit-tap-highlight-color: transparent;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    padding: 18px clamp(18px, 3vw, 40px);
    pointer-events: none;
}

.nav-container {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: clamp(18px, 3vw, 42px);
    width: min(1440px, 100%);
    margin: 0 auto;
    pointer-events: auto;
}

.nav-logo {
    color: white;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.26em;
    font-size: 0.95rem;
}

/* Logo-Bild in der Navbar (statt "MH"-Text), darf weiter den Glitch-Hover bekommen */
.nav-container .nav-logo.logo-link {
    height: auto;
    aspect-ratio: auto;
    padding: 0;
    display: inline-flex;
    align-items: center;
}
.nav-container .nav-logo.logo-link:hover { transform: none; }
.nav-container .nav-logo .logo-svg {
    height: 38px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: normal;
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(18px, 2.5vw, 34px);
}

.nav-link,
.header-link {
    position: relative;
    color: white;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-decoration: none;
}

.nav-link::after,
.header-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.35em;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.45s var(--ease-out);
}

.nav-link:hover::after,
.header-link:hover::after {
    transform: scaleX(1);
    transform-origin: left center;
}

.nav-cta {
    color: var(--primary);
}

.hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 0;
    background: transparent;
    color: white;
    cursor: pointer;
}

/* 3-Span-Variante des Hamburgers (auf Subseiten ohne .burger-lines):
   nur 2 lange Balken — der mittlere Span wird ausgeblendet, die anderen werden 44px breit. */
.hamburger span {
    display: block;
    width: 44px;
    height: 2px;
    background: currentColor;
    margin: 5px 0;
    transition: transform 0.35s var(--ease-out), opacity 0.25s ease;
}

.hamburger span:nth-child(2) {
    display: none;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.theme-toggle {
    border: 0;
    background: transparent;
    color: white;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.logo-container,
.hero-header-controls {
    mix-blend-mode: difference;
}

.hero {
    isolation: isolate;
    color: white;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.06) 48%, rgba(0, 0, 0, 0.52)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent 34%);
}

.hero-content,
.hero-image {
    position: relative;
    z-index: 8;
}

.hero-content {
    width: min(980px, calc(100% - 40px));
    margin: 0 auto;
    padding: 18vh 0 12vh;
}

.hero-image {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.hero-image video,
.hero-image img,
.hero-video video,
.featured-item-image video,
.work-card-image video,
.work-card-image img,
.blog-image video,
.gallery-main video,
.gallery-grid video,
.services-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-title,
.services-title,
.works-title,
.selected-title,
.cta-title,
.studio-heading {
    text-wrap: balance;
}

.hero-title {
    font-size: clamp(4.2rem, 13vw, 13rem);
    line-height: 0.82;
    letter-spacing: -0.055em;
    max-width: 11ch;
    text-transform: uppercase;
}

.hero-subtitle {
    max-width: 56ch;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.76);
}

.hero-label {
    color: white;
    text-decoration: none;
}

.hero-hover-circle {
    width: 16px;
    height: 16px;
    border: 0;
    background: var(--primary);
    z-index: 3001;
    opacity: 0;
}

.featured-projects,
.works-section,
.services-section,
.selected-work,
.studio-section,
.process-section,
.portfolio-content,
.blog-content,
.contact-section,
.project-content {
    padding: clamp(86px, 12vw, 170px) clamp(18px, 4vw, 68px);
}

.featured-list {
    width: min(1440px, 100%);
    margin: 0 auto;
    display: grid;
    gap: clamp(28px, 5vw, 80px);
}

.featured-item {
    display: grid;
    grid-template-columns: minmax(240px, 0.82fr) minmax(320px, 1.18fr);
    gap: clamp(24px, 5vw, 88px);
    align-items: center;
    min-height: min(78vh, 760px);
    overflow: visible;
    aspect-ratio: auto;
}

.featured-item:nth-child(even) {
    grid-template-columns: minmax(320px, 1.18fr) minmax(240px, 0.82fr);
}

.featured-item:nth-child(even) .featured-item-content {
    order: 2;
}

.featured-item:nth-child(even) .featured-item-image {
    order: 1;
}

.featured-item-content {
    position: -webkit-sticky;
    position: sticky;
    top: 130px;
    align-self: start;
    z-index: 2;
}

.featured-category,
.work-category,
.featured-meta-item {
    display: inline-block;
    color: var(--primary);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.featured-item-title {
    margin: 18px 0 24px;
    font-size: clamp(2.5rem, 6vw, 7rem);
    line-height: 0.95;
    letter-spacing: -0.055em;
    max-width: 9ch;
}

.featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    color: var(--text-light);
}

.featured-item-image {
    display: block;
    position: relative;
    overflow: hidden;
    min-height: clamp(380px, 56vw, 760px);
    background: #0f0f0f;
    text-decoration: none;
}

.featured-item:nth-child(1) .featured-item-image {
    border-radius: 0 80px 0 0;
}

.featured-item:nth-child(2) .featured-item-image {
    border-radius: 80px 0 0 0;
}

.featured-item:nth-child(3) .featured-item-image {
    border-radius: 0 0 80px 0;
}

.featured-item-image::after,
.work-card-image::after {
    content: attr(data-cursor-text);
    position: absolute;
    left: 18px;
    bottom: 18px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.9);
    color: #111;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.featured-item-image:hover::after,
.work-card-image:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.services-section {
    position: relative;
    background: var(--secondary);
    color: white;
    overflow: clip;
}

.services-hero {
    position: absolute;
    inset: 0;
    opacity: 0.22;
}

.services-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #050505 0%, rgba(5, 5, 5, 0.76) 44%, rgba(5, 5, 5, 0.92) 100%);
}

.services-content {
    position: relative;
    z-index: 2;
    width: min(1440px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(240px, 0.72fr) minmax(360px, 1.28fr);
    gap: clamp(28px, 6vw, 92px);
    align-items: start;
}

.services-title {
    position: -webkit-sticky;
    position: sticky;
    top: 120px;
    font-size: clamp(3.3rem, 8vw, 9rem);
    line-height: 0.88;
    letter-spacing: -0.06em;
    max-width: 7ch;
}

.services-intro {
    grid-column: 1;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.68);
    text-align: left;
}

.services-grid {
    grid-column: 2;
    display: grid;
    gap: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.services-grid .service-card {
    margin: 0;
    padding: clamp(28px, 4vw, 52px);
    max-width: none;
    border: 0;
    background: rgba(8, 8, 8, 0.88);
}

.service-card {
    transition: transform 0.45s var(--ease-out), background 0.45s var(--ease-out), border-color 0.45s var(--ease-out);
}

.service-card:hover {
    transform: translateX(18px);
}

.services-grid .service-title {
    position: static;
    max-width: none;
    font-size: clamp(1.45rem, 2.6vw, 2.9rem);
    letter-spacing: -0.035em;
    line-height: 1;
    color: white;
}

.service-desc,
.service-list li {
    color: rgba(255, 255, 255, 0.68);
}

.works-section {
    background: var(--bg-light);
}

.works-header {
    width: min(1440px, 100%);
    margin: 0 auto clamp(40px, 7vw, 92px);
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.works-title {
    font-size: clamp(3rem, 8vw, 9rem);
    line-height: 0.86;
    letter-spacing: -0.06em;
    max-width: 8ch;
}

.works-link,
.read-more,
.back-link,
.service-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.works-grid,
.blog-grid {
    width: min(1440px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(18px, 3vw, 44px);
}

.works-grid .work-card {
    aspect-ratio: auto;
    min-height: 420px;
    border-radius: 0;
}

.works-grid .work-card:nth-child(6n+1),
.works-grid .work-card:nth-child(6n+4) {
    grid-column: span 7;
    min-height: 620px;
}

.works-grid .work-card:nth-child(6n+2),
.works-grid .work-card:nth-child(6n+3),
.works-grid .work-card:nth-child(6n+5),
.works-grid .work-card:nth-child(6n+6) {
    grid-column: span 5;
}

.work-card-image,
.work-card-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
}

.work-card-content,
.work-card-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: clamp(22px, 3vw, 40px);
    z-index: 2;
    color: white;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent);
}

.work-title {
    font-size: clamp(1.6rem, 3vw, 3.5rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.portfolio-content,
.blog-content,
.contact-section,
.project-content {
    background: var(--bg-light);
}

.portfolio-intro,
.contact-grid,
.project-details,
.project-gallery {
    width: min(1240px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.filter-buttons {
    width: min(1240px, 100%);
    margin: 0 auto 44px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text-dark);
    padding: 10px 14px;
    font: inherit;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.filter-btn.active,
.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.blog-card,
.skill-category,
.project-info,
.project-stats,
.contact-form-wrapper,
.contact-info-wrapper,
.faq-item,
.stat {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: clamp(24px, 3vw, 42px);
}

.blog-card {
    grid-column: span 4;
}

.blog-image {
    height: 280px;
    overflow: hidden;
    margin: calc(clamp(24px, 3vw, 42px) * -1) calc(clamp(24px, 3vw, 42px) * -1) 28px;
    position: relative;
}

.blog-category {
    position: absolute;
    left: 18px;
    bottom: 18px;
    background: var(--primary);
    color: white;
    padding: 7px 10px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(320px, 1.05fr) minmax(260px, 0.95fr);
    gap: clamp(24px, 4vw, 56px);
}

.form-group {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-dark);
    padding: 14px 16px;
    font: inherit;
}

.project-gallery {
    display: grid;
    gap: 24px;
    margin-bottom: 64px;
}

.gallery-main {
    height: min(72vh, 760px);
    overflow: hidden;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.gallery-grid video {
    aspect-ratio: 1;
}

.project-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    padding: 0;
    overflow: hidden;
}

.stat {
    border: 0;
    border-right: 1px solid var(--line);
}

.stat:last-child {
    border-right: 0;
}

.btn {
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-weight: 800;
}

.btn:active,
.filter-btn:active,
.icon-button:active,
.hamburger:active {
    transform: translateY(1px) scale(0.98);
}

.page-transition {
    transform: scaleY(0);
    transform-origin: bottom center;
    opacity: 1;
}

.page-transition.is-visible {
    pointer-events: auto;
}

.mh-cursor,
.mh-cursor-trail {
    position: fixed;
    left: 0;
    top: 0;
    pointer-events: none;
    z-index: 3100;
    transform: translate3d(-100px, -100px, 0);
}

.mh-cursor {
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 999px;
    background: white;
    mix-blend-mode: difference;
}

.mh-cursor::after {
    content: attr(data-label);
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    background: #0b0b0b;
    padding: 9px 12px;
    min-width: max-content;
    opacity: 0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    transition: opacity 0.25s ease;
}

.mh-cursor.has-label::after {
    opacity: 1;
}

.mh-cursor.is-hovering {
    width: 58px;
    height: 58px;
    margin: -29px 0 0 -29px;
    border: 1px solid white;
    background: transparent;
}

.mh-cursor-trail {
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 999px;
    mix-blend-mode: difference;
}

.mh-trail-image {
    position: fixed;
    width: 110px;
    height: 110px;
    object-fit: cover;
    pointer-events: none;
    z-index: 200;
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(0.72) rotate(-4deg);
}

.mhm-word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
}

.mhm-word > span {
    display: inline-block;
    transform: translateY(110%) rotate(3deg);
}

.reveal-ready {
    visibility: hidden;
}

.is-transitioning {
    cursor: wait;
}

[data-theme="dark"] .portfolio-content,
[data-theme="dark"] .blog-content,
[data-theme="dark"] .contact-section,
[data-theme="dark"] .project-content,
[data-theme="dark"] .works-section {
    background: var(--bg-dark);
}

[data-theme="dark"] .blog-card,
[data-theme="dark"] .skill-category,
[data-theme="dark"] .project-info,
[data-theme="dark"] .project-stats,
[data-theme="dark"] .contact-form-wrapper,
[data-theme="dark"] .contact-info-wrapper,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .stat {
    background: var(--surface-dark);
    border-color: var(--line-dark);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--line-dark);
    color: white;
}

@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
    body.mh-cursor-enabled,
    body.mh-cursor-enabled a,
    body.mh-cursor-enabled button,
    body.mh-cursor-enabled input,
    body.mh-cursor-enabled textarea,
    body.mh-cursor-enabled select {
        cursor: none;
    }
}

@media (max-width: 1024px) {
    .featured-item,
    .featured-item:nth-child(even),
    .services-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .featured-item:nth-child(even) .featured-item-content,
    .featured-item:nth-child(even) .featured-item-image {
        order: initial;
    }

    .featured-item-content,
    .services-title {
        position: static;
    }

    .services-grid,
    .services-intro {
        grid-column: auto;
    }

    .blog-card,
    .works-grid .work-card,
    .works-grid .work-card:nth-child(n) {
        grid-column: span 6;
    }

    .gallery-grid,
    .project-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 14px 16px;
    }

    .nav-container {
        grid-template-columns: auto auto auto;
        justify-content: space-between;
    }

    .nav-menu {
        position: fixed;
        top: 76px;
        left: 16px;
        right: 16px;
        display: grid;
        justify-items: start;
        gap: 16px;
        padding: 24px;
        background: rgba(10, 10, 10, 0.94);
        border: 1px solid rgba(255, 255, 255, 0.12);
        transform: translateY(-16px);
        opacity: 0;
        pointer-events: none;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
        left: 16px;
    }

    .hero-header-controls {
        gap: 14px;
    }

    .header-link,
    .theme-toggle {
        display: none;
    }

    .logo-link {
        height: 78px;
    }

    .hero-title {
        font-size: clamp(3.6rem, 21vw, 8rem);
    }

    .hero-left,
    .hero-right,
    .hero-shapes {
        display: none;
    }

    .featured-item,
    .works-grid .work-card,
    .works-grid .work-card:nth-child(n),
    .blog-card {
        grid-column: 1 / -1;
        min-height: 360px;
    }

    .works-header {
        display: grid;
        align-items: start;
    }

    .overlay-menu {
        padding: 0;
    }
}

@media (max-width: 520px) {
    .featured-projects,
    .works-section,
    .services-section,
    .selected-work,
    .studio-section,
    .process-section,
    .portfolio-content,
    .blog-content,
    .contact-section,
    .project-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .featured-item-image,
    .works-grid .work-card,
    .blog-image {
        min-height: 310px;
    }

    .project-stats,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================================================
   SHOWCASE SLIDER (Swiper) + LIGHTBOX
   =================================================================== */

.showcase-section {
    background: var(--secondary);
    color: #fff;
    overflow: clip;
}

.showcase-header {
    width: min(1440px, 100%);
    margin: 0 auto clamp(36px, 6vw, 80px);
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.showcase-title {
    font-size: clamp(2.6rem, 7vw, 7rem);
    line-height: 0.88;
    letter-spacing: -0.06em;
    max-width: 9ch;
}

.showcase-sub {
    max-width: 38ch;
    color: rgba(255, 255, 255, 0.62);
    text-align: right;
}

.showcase-swiper {
    width: 100%;
    overflow: visible;
}

.showcase-swiper .swiper-slide {
    width: clamp(280px, 42vw, 620px);
    height: clamp(360px, 52vw, 680px);
}

.showcase-card {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
    background: #0d0d0d;
}

.showcase-card img,
.showcase-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
}

.showcase-card:hover img,
.showcase-card:hover video {
    transform: scale(1.06);
}

.showcase-card-label {
    position: absolute;
    left: 18px;
    bottom: 18px;
    right: 18px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    z-index: 2;
}

.showcase-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 45%);
    z-index: 1;
    opacity: 0.85;
}

.showcase-controls {
    width: min(1440px, 100%);
    margin: clamp(28px, 4vw, 48px) auto 0;
    display: flex;
    align-items: center;
    gap: 18px;
}

.showcase-prev,
.showcase-next {
    width: 54px;
    height: 54px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}

.showcase-prev:hover,
.showcase-next:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.showcase-progress {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.showcase-progress span {
    position: absolute;
    inset: 0;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left center;
}

/* Lightbox */
.mh-lightbox {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 5vw, 80px);
    background: rgba(5, 5, 5, 0.94);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease-out), visibility 0.4s;
}

.mh-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.mh-lightbox-stage {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    transform: scale(0.94);
    transition: transform 0.45s var(--ease-out);
}

.mh-lightbox.is-open .mh-lightbox-stage {
    transform: scale(1);
}

.mh-lightbox-stage img,
.mh-lightbox-stage video {
    display: block;
    max-width: 100%;
    max-height: 84vh;
    object-fit: contain;
    background: #000;
}

.mh-lightbox-close {
    position: absolute;
    top: -52px;
    right: 0;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
}

.mh-lightbox-close:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.mh-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
}

.mh-lightbox-nav:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.mh-lightbox-prev { left: clamp(8px, 2vw, 28px); }
.mh-lightbox-next { right: clamp(8px, 2vw, 28px); }

[data-lightbox] {
    cursor: pointer;
}

@media (max-width: 768px) {
    .showcase-header { display: grid; }
    .showcase-sub { text-align: left; }
    .mh-lightbox-nav { display: none; }
}

/* ===================================================================
   HERO — pin + zoom (.slide-bg) + fade-out (.slide-content) + horizontaler
   Slide (.slide-2). HTML-Struktur exakt wie vorgegeben; GSAP in setupHeroPin().
   =================================================================== */

.hero-pin-section {
    position: relative;
    width: 100%;
    height: 100vh;          /* Wichtig für das Pinning */
    overflow: hidden !important;
    background: #000;
}

.hero-slide {
    position: absolute !important;   /* legt alle Slides deckungsgleich übereinander */
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;                    /* immer volle Bildschirmbreite, egal was der Container macht */
    height: 100vh;
    z-index: 1;
}

/* Medien (Video/Bild) füllen den ganzen Slide */
.hero-slide > video,
.hero-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    will-change: transform;          /* wird in der Timeline separat gezoomt */
}

.slide-bg video,
.slide-bg iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
    display: block;
}

/* schwarze Blende / Scrim ausgeschaltet – Slides zeigen die Medien clean.
   Lesbarkeit des Slide-1-Texts läuft jetzt über text-shadow. */

.slide-content {
    position: relative;
    z-index: 10;            /* Text liegt immer über dem Bild */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: white;
    text-align: center;
    gap: clamp(12px, 1.6vw, 20px);
    padding: clamp(20px, 4vw, 64px);
}

.slide-1 .slide-content { will-change: opacity; }

/* Slide-Link (Bild/Video) füllt den ganzen Slide */
.slide-link {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
}

.slide-link img,
.slide-link video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Schiebt Slide 2 & 3 initial nach rechts aus dem Bild; GSAP holt sie nacheinander rein */
.slide-2 {
    transform: translateX(100%);
    will-change: transform;
    z-index: 5;             /* fährt von rechts über Slide 1 herein */
}

.slide-3 {
    transform: translateX(100%);
    will-change: transform;
    z-index: 10;            /* fährt von rechts über Slide 2 herein */
}

.slide-3::after { display: none; }   /* Live-Demo-Iframe ohne Scrim-Overlay */

/* Iframe-Wrapper + unsichtbares Overlay (fängt Klicks ab → Scroll-Flow bleibt heil) */
.iframe-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.iframe-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;             /* über dem Iframe */
    background: transparent;
    cursor: inherit;
}

/* Hero-Titel kompakter als die großen .hero-title-Regeln der Unterseiten */
.hero-pin-section .slide-content .hero-title {
    margin: 0;
    font-size: clamp(2.6rem, 7vw, 6rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    max-width: 18ch;
}

.hero-pin-section .slide-content p {
    margin: 0;
    max-width: 46ch;
    color: rgba(255, 255, 255, 0.82);
}

/* "Scroll to Explore" – gleiche Schriftart/Größe wie der restliche Text */
.scroll-explore-btn {
    margin-top: clamp(16px, 3vw, 32px);
    color: #fff;
    text-decoration: none;
    font: inherit;
    font-size: var(--font-size-sm);
    font-weight: 600;
    letter-spacing: 1.5px;
    opacity: 0.85;
    transition: opacity 0.25s ease;
}

.scroll-explore-btn:hover { opacity: 1; }

/* --- Slide-1-Overlay: [ALL WORK] links-center, Scroll-Cue rechts-center,
       H1 + Subline unten-rechts, Parallax-Bilder unten-links. Alles faded beim Scrollen aus. --- */

/* Links-Center & Rechts-Center: kurze Text-Links */
.slide-1 .hero-all-work,
.slide-1 .scroll-cue {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    color: #fff;
    text-decoration: none;
    font: inherit;
    font-size: var(--font-size-sm);
    font-weight: 600;
    letter-spacing: 1.5px;
    opacity: 0.85;
    transition: opacity 0.25s ease;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
    white-space: nowrap;
}
.slide-1 .hero-all-work { left: 5%; }
.slide-1 .scroll-cue    { right: 5%; }
.slide-1 .hero-all-work:hover,
.slide-1 .scroll-cue:hover { opacity: 1; }

/* H1 + Subline in einem Slide (gilt für Slide 1/2/3) – beide loopen den Scramble-Effekt via initLoopScramble */
.hero-slide .hero-headline {
    position: absolute;
    bottom: 5%;
    left: 5%;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: clamp(8px, 1vw, 14px);
    pointer-events: none;        /* Klicks gehen durch zum darunterliegenden .slide-cover-Link */
}

.hero-slide .hero-headline-title {
    margin: 0;
    white-space: nowrap;          /* H1 darf nicht umbrechen */
    font-size: clamp(2.2rem, 6.5vw, 7rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.hero-slide .hero-headline-title .hl-accent { color: var(--primary); }   /* z. B. "LABS" eingefärbt */

.hero-slide .hero-subline {
    margin: 0;
    font-family: var(--font-mono, monospace);
    font-size: clamp(0.9rem, 1.4vw, 1.15rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    min-height: 1.4em;        /* verhindert Layout-Shift während des Scramble-Loops */
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

/* Scramble-Zeichen in der Hero-Sektion weiß statt der globalen --primary-Farbe */
.hero-slide .hero-headline-title .scramble-char,
.hero-slide .hero-subline .scramble-char { color: #fff; }

/* Slide-Cover: Bild/Video als klickbarer Projekt-Link mit "View Project"-Hover (pinkfarbener Kreis, weiße Schrift) */
.slide-cover {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
    text-decoration: none;
    z-index: 2;
}
.slide-cover img,
.slide-cover video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.2s cubic-bezier(.16,1,.3,1), filter 0.4s ease;
}
.slide-cover:hover img,
.slide-cover:hover video { transform: scale(1.04); filter: brightness(0.78); }

.slide-cover-cta {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    z-index: 3;
    width: clamp(110px, 13vw, 168px);
    height: clamp(110px, 13vw, 168px);
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: grid;
    place-items: center;
    text-align: center;
    font-weight: 800;
    font-size: clamp(0.8rem, 1.1vw, 1rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.15;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s cubic-bezier(.16,1,.3,1), transform 0.35s cubic-bezier(.16,1,.3,1);
}
.slide-cover:hover .slide-cover-cta { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* 3 kleine Parallax-Bilder – nur in Slide 1 (folgen der Maus, siehe initHeroParallax) */
.slide-1 .hero-parallax {
    position: absolute;
    bottom: 5%;
    right: 5%;
    z-index: 3;
    display: flex;
    gap: 20px;
    align-items: center;
    pointer-events: none;
}
.hero-parallax-img {
    width: clamp(40px, 5vw, 64px);
    height: auto;
    display: block;
    will-change: transform, opacity;
    user-select: none;
    -webkit-user-drag: none;
}

@media (max-width: 768px) {
    .hero-slide .hero-headline-title { font-size: clamp(1.5rem, 8vw, 2.6rem); }
    .slide-1 .hero-parallax { gap: 12px; bottom: 14px; right: 14px; }
}

/* Auto-hide header chrome (logo, Say Hello, Night/Day) inside the horizontal section */
.logo-container,
.hero-header-controls .header-link,
.hero-header-controls .theme-toggle {
    transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}

body.chrome-min .logo-container,
body.chrome-min .hero-header-controls .header-link,
body.chrome-min .hero-header-controls .theme-toggle {
    opacity: 0;
    transform: translateY(-14px);
    pointer-events: none;
}

/* Project gallery Swiper */
.gallery-wrap { position: relative; }

.gallery-swiper { width: 100%; overflow: visible; }

.gallery-swiper .swiper-slide {
    width: clamp(240px, 32vw, 420px);
}

.gallery-item {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #0d0d0d;
    cursor: pointer;
}

.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s var(--ease-out);
}

.gallery-item:hover video { transform: scale(1.05); }

.gallery-main {
    position: relative;
    cursor: pointer;
}

.gallery-controls {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.gallery-prev,
.gallery-next {
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text-dark);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}

.gallery-prev:hover,
.gallery-next:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ============================================================================
   14. LIGHT-MODE DEFENSIVE OVERRIDES
   Sektionen, die `var(--bg-light)` als Hintergrund haben, werden im Light-Mode
   beige (#EEEAE8). Hartcodierte weiße Texte würden dort unlesbar – darum hier
   bewusst auf `var(--text-dark)` zurückbiegen. Sektionen, die immer dunkel sind
   (Hero, Mission, Stack-Cards, Selected-Work, CTA, Footer) bleiben unangetastet.
   ============================================================================ */
[data-theme="light"] .works-section,
[data-theme="light"] .works-section *,
[data-theme="light"] .featured-projects,
[data-theme="light"] .featured-projects *,
[data-theme="light"] .services-section,
[data-theme="light"] .services-section *,
[data-theme="light"] .about-content,
[data-theme="light"] .about-content *,
[data-theme="light"] .skills-section,
[data-theme="light"] .skills-section *,
[data-theme="light"] .tools-section,
[data-theme="light"] .tools-section *,
[data-theme="light"] .values-section,
[data-theme="light"] .values-section *,
[data-theme="light"] .blog-content,
[data-theme="light"] .blog-content *,
[data-theme="light"] .contact-section,
[data-theme="light"] .contact-section *,
[data-theme="light"] .faq-section,
[data-theme="light"] .faq-section *,
[data-theme="light"] .project-content,
[data-theme="light"] .project-content *,
[data-theme="light"] .project-gallery,
[data-theme="light"] .project-gallery *,
[data-theme="light"] .project-details,
[data-theme="light"] .project-details *,
[data-theme="light"] .legal-section,
[data-theme="light"] .legal-section *,
[data-theme="light"] .portfolio-content,
[data-theme="light"] .portfolio-content *,
[data-theme="light"] .works-header,
[data-theme="light"] .works-header * {
    color: var(--text-dark);
}

/* Akzent-Farben (pink) explizit zurückgeben — sollen NICHT durch Override geschluckt werden */
[data-theme="light"] .works-section .work-category,
[data-theme="light"] .works-section .featured-category,
[data-theme="light"] .services-section .service-title,
[data-theme="light"] .about-content .stat-number,
[data-theme="light"] .blog-content .blog-category,
[data-theme="light"] .faq-section .faq-icon,
[data-theme="light"] .contact-section a[href^="mailto:"],
[data-theme="light"] .contact-section a[href^="tel:"],
[data-theme="light"] .legal-section a {
    color: var(--primary);
}

/* Form-Inputs im Light-Mode: weißer Hintergrund + dunkler Text */
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(10, 10, 10, 0.15);
    color: var(--text-dark);
}

[data-theme="light"] .form-group input::placeholder,
[data-theme="light"] .form-group textarea::placeholder {
    color: rgba(10, 10, 10, 0.45);
}

/* Sektionen, die in beiden Modi DUNKEL bleiben sollen (Hero/Mission/Stack/Selected/CTA): hier weiß zurück */
[data-theme="light"] .hero,
[data-theme="light"] .hero *:not(.back-link),
[data-theme="light"] .hero-pin-section,
[data-theme="light"] .hero-pin-section *,
[data-theme="light"] .mission-section,
[data-theme="light"] .mission-section h2,
[data-theme="light"] .mission-section .mission-heading,
[data-theme="light"] .mission-section .mission-text,
[data-theme="light"] .stack-cards,
[data-theme="light"] .stack-card,
[data-theme="light"] .stack-card *,
[data-theme="light"] .selected-work,
[data-theme="light"] .selected-work *:not(.sw-name-b):not(.sw-cat):not(.sw-tags):not(.sw-date):not(.sw-dim),
[data-theme="light"] .cta-section,
[data-theme="light"] .cta-section * {
    color: #fff;
}

[data-theme="light"] .mission-text .dimmed { color: #6a6a6a; }
[data-theme="light"] .sw-name-b           { color: #7a7a7a; }
[data-theme="light"] .sw-cat,
[data-theme="light"] .sw-tags,
[data-theme="light"] .sw-date             { color: #9a9a9a; }
[data-theme="light"] .sw-dim              { color: #8a8a8a; }
