/* 
 * encounters — Design Practice Website
 * CSS Architecture: Custom Properties → Base → Layout → Components → Utilities
 */

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
    /* Colors — Minimal, sophisticated with accent colors */
    --color-bg: #FAFAFA;
    --color-surface: #FFFFFF;
    --color-text: #1A1A1A;
    --color-text-secondary: #666666;
    --color-accent: #1A1A1A;
    --color-border: #E5E5E5;
    
    /* Accent Colors */
    --color-petrol: #2A6B7C;
    --color-petrol-light: #3D8A9C;
    --color-petrol-dark: #1E4F5C;
    --color-rust: #C45B3E;
    --color-rust-light: #D97B5E;
    --color-rust-dark: #A24832;
    
    /* Placeholder now uses petrol tones */
    --color-placeholder: #C8D9DD;
    
    /* Typography */
    --font-primary: 'UntitledSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --font-size-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
    --font-size-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --font-size-lg: clamp(1.25rem, 1rem + 1vw, 1.75rem);
    --font-size-xl: clamp(1.75rem, 1.25rem + 2vw, 3rem);
    --font-size-hero: clamp(3rem, 2rem + 8vw, 10rem);
    
    /* Spacing */
    --space-xs: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
    --space-sm: clamp(0.75rem, 0.6rem + 0.75vw, 1.25rem);
    --space-md: clamp(1.5rem, 1rem + 2vw, 3rem);
    --space-lg: clamp(3rem, 2rem + 4vw, 6rem);
    --space-xl: clamp(5rem, 3rem + 8vw, 12rem);
    
    /* Layout */
    --max-width: 1440px;
    --gutter: clamp(1.5rem, 4vw, 4rem);
    --nav-height: 4rem;
    --nav-height-scrolled: 6.5rem;
    
    /* Effects */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 60px rgba(0,0,0,0.1);
    
    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration-fast: 150ms;
    --duration-base: 300ms;
    --duration-slow: 600ms;
    
    /* Z-index layers */
    --z-base: 1;
    --z-elevated: 10;
    --z-nav: 100;
    --z-modal: 1000;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

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

button {
    font-family: inherit;
    font-size: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

ul, ol {
    list-style: none;
}

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

/* Optimize image loading */
img[loading="lazy"] {
    content-visibility: auto;
}

/* Video optimization - WebM and MP4 support */
video {
    will-change: opacity, transform;
}

address {
    font-style: normal;
}

/* Selection */
::selection {
    background-color: var(--color-text);
    color: var(--color-bg);
}

/* ============================================
   CURSOR GLOW (Desktop depth effect)
   ============================================ */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26,26,26,0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: var(--z-base);
    transform: translate(-50%, -50%);
    transition: opacity var(--duration-base) var(--ease-out);
    opacity: 0;
}

body:hover .cursor-glow {
    opacity: 1;
}

@media (max-width: 940px) {
    .cursor-glow {
        display: none;
    }
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-nav);
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: border-color var(--duration-base) var(--ease-out),
                box-shadow var(--duration-base) var(--ease-out);
}

.nav.scrolled {
    border-bottom-color: var(--color-border);
    box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}

.nav.scrolled .nav-inner {
    background: rgba(255, 255, 255, 0.33);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-sm) var(--gutter);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    background: transparent;
}

/* Nav Logo - hidden by default, appears when hero scrolls out */
.nav-logo {
    opacity: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity var(--duration-base) var(--ease-out),
                transform var(--duration-base) var(--ease-out);
    margin-right: var(--space-md);
    flex-shrink: 0;
}

.nav.scrolled .nav-logo {
    opacity: 1;
}

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

.nav-logo-letter {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-text);
    line-height: 1;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

/* Nav Left - menu items */
.nav-left {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex: 1;
}

/* Nav Right - language toggle */
.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}


.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    padding: 0.5rem;
    margin: -0.5rem;
}

.lang-toggle .lang-de {
    color: var(--color-text);
}

html[data-lang="en"] .lang-toggle .lang-de {
    color: var(--color-text-secondary);
}

html[data-lang="en"] .lang-toggle .lang-en {
    color: var(--color-text);
}

/* ============================================
   MOBILE HAMBURGER MENU - Plus/Minus Design
   ============================================ */

/* Hide hamburger on desktop */
.nav-hamburger {
    display: none;
}

/* The +/- icon container */
.hamburger-line {
    display: none;
}

/* ============================================
   MOBILE NAVIGATION (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    
    /* Nav stays at top */
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
    }
    
    /* Nav container - use CSS Grid for precise control */
    .nav-inner {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        align-items: center;
        background: transparent;
        gap: 0;
    }
    
    /* Row 1: "encounters" logo - top left */
    .nav-logo {
        grid-column: 1;
        grid-row: 1;
        margin-right: 0;
    }
    
    /* Row 1: +/- button - top right */
    .nav-hamburger {
        display: flex;
        justify-content: center;
        align-items: center;
        grid-column: 2;
        grid-row: 1;
        width: 40px;
        height: 40px;
        padding: 0;
        background: transparent;
        border: none;
        cursor: pointer;
        position: relative;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* The two lines that form + and - */
    .hamburger-line {
        display: block;
        position: absolute;
        width: 16px;
        height: 1.5px;
        background: var(--color-text);
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        transition: opacity 0.2s ease;
    }
    
    /* Vertical line (makes the +) */
    .hamburger-line:last-child {
        transform: translate(-50%, -50%) rotate(90deg);
    }
    
    /* When menu is open: vertical line fades out, leaving just - */
    .nav-hamburger.active .hamburger-line:last-child {
        opacity: 0;
    }
    
    /* Hover color */
    .nav-hamburger:hover .hamburger-line {
        background: var(--color-petrol);
    }
    
    .nav.scrolled .nav-logo,
    .nav-logo-visible-always .nav-logo {
        opacity: 1;
    }
    
    /* Hide desktop D/E toggle */
    .nav-right {
        display: none;
    }
    
    /* Row 2: Submenu - spans full width, below header row */
    .nav-left {
        display: none;
        grid-column: 1 / -1;
        grid-row: 2;
        flex-direction: column;
        padding: 0.25rem 0;
        background: transparent;
        width: 100%;
    }
    
    /* Show submenu when open */
    .nav-left.nav-open {
        display: flex;
    }
    
    /* Menu links - compact, right-aligned */
    .nav-left a {
        padding: 0.35rem var(--gutter);
        font-size: var(--font-size-base);
        text-align: right;
        border-bottom: none;
    }
    
    .nav-left a:last-of-type {
        border-bottom: none;
    }
    
    /* D/E toggle inside menu - compact, right-aligned */
    .nav-left .mobile-lang-toggle {
        display: flex;
        justify-content: flex-end;
        padding: 0.35rem var(--gutter);
        margin-top: 0.25rem;
    }
    
    /* Lock body scroll when menu open */
    body.nav-menu-open {
        overflow: hidden;
    }
    
    /* Hero adjustments for mobile */
    .hero-text {
        font-size: clamp(2.5rem, 10vw, 6rem);
    }
    
    /* Intro section adjustments */
    .intro-subtitle,
    .intro-text {
        font-size: var(--font-size-lg);
    }
}

/* Mobile language toggle - hidden on desktop */
.mobile-lang-toggle {
    display: none;
}

/* Legal Pages (Imprint, Privacy) */
.legal-page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: calc(var(--space-xl) + 60px) var(--gutter) var(--space-xl);
    min-height: 100vh;
}

.legal-page h1 {
    font-size: var(--font-size-xl);
    font-weight: 500;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

.legal-content {
    font-size: var(--font-size-base);
    line-height: 1.8;
    max-width: 640px;
}

.legal-content p {
    margin-bottom: var(--space-md);
    color: var(--color-text-secondary);
}

.legal-content p:first-child {
    color: var(--color-text);
}

.legal-content h2 {
    font-size: var(--font-size-base);
    font-weight: 500;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.legal-content a {
    color: var(--color-petrol);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

.legal-content a:hover {
    color: var(--color-petrol-dark);
}

.legal-back {
    margin-top: var(--space-xl);
}

.legal-back a {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

.legal-back a:hover {
    color: var(--color-petrol);
}

/* Nav always visible on sub-pages */
.nav-logo-visible-always .nav-logo {
    opacity: 1;
}

.nav-logo-visible-always .nav-inner {
    background: rgba(255, 255, 255, 0.33);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    position: relative;
    overflow: hidden;
    background: var(--color-bg);
}

/* Mesh Canvas Background */
.mesh-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 100%;
    position: relative;
    z-index: 1;
}

.hero-text {
    font-size: var(--font-size-hero);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1;
    display: flex;
    justify-content: center;
    gap: 0.02em;
    user-select: none;
    transition: opacity var(--duration-slow) var(--ease-out),
                transform var(--duration-slow) var(--ease-out);
}

.hero-text.fading {
    opacity: 0;
    transform: translateY(-20px);
}

.hero-text .letter {
    display: inline-block;
    transition: transform var(--duration-slow) var(--ease-out);
    will-change: transform;
}

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

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
}

.scroll-line {
    display: block;
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-petrol), transparent);
    animation: scrollPulse 2s var(--ease-in-out) infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   INTRO SECTION
   ============================================ */
.intro {
    padding: var(--space-xl) var(--gutter);
    display: flex;
    justify-content: center;
    background: rgba(255, 255, 255, 0.33);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.intro-content {
    max-width: 900px;
    text-align: center;
}

.intro-subtitle {
    font-size: var(--font-size-lg);
    font-weight: 500;
    color: var(--color-petrol);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--duration-slow) var(--ease-out),
                transform var(--duration-slow) var(--ease-out);
    will-change: opacity, transform;
}

.intro-text {
    font-size: var(--font-size-xl);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin: 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--duration-slow) var(--ease-out),
                transform var(--duration-slow) var(--ease-out);
    will-change: opacity, transform;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects {
    padding: var(--space-xl) var(--gutter) var(--space-md) var(--gutter);
}

.section-header {
    max-width: var(--max-width);
    margin: 0 auto var(--space-lg);
}

.section-header h2 {
    font-size: var(--font-size-lg);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-lg);
}

/* Projects Carousel */
.projects-carousel {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
    /* Enable smooth touch interactions */
    touch-action: pan-y pinch-zoom;
    -webkit-user-select: none;
    user-select: none;
}

.projects-carousel-container {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 600px;
    overflow: hidden;
    cursor: grab;
}

.projects-carousel-container:active {
    cursor: grabbing;
}

.project-carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration-slow) var(--ease-out),
                visibility var(--duration-slow) var(--ease-out);
}

.project-carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

.project-carousel-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

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

.project-carousel-image img,
.project-carousel-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.project-carousel-image img {
    opacity: 1;
    transition: opacity var(--duration-base) var(--ease-out);
    z-index: 1;
}

.project-carousel-image video {
    opacity: 0;
    transition: opacity var(--duration-base) var(--ease-out);
    z-index: 0;
}

.project-carousel-slide.active .project-carousel-image video.playing {
    opacity: 1;
    z-index: 2;
}

.project-carousel-slide.active .project-carousel-image video.playing ~ img {
    opacity: 0;
    z-index: 0;
}

.project-carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    pointer-events: none;
    z-index: 3;
}

.project-carousel-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: var(--space-lg);
    z-index: 4;
    pointer-events: none;
}

.project-carousel-title {
    font-size: clamp(3rem, 8vw + 1rem, 7rem);
    font-weight: 500;
    color: white;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: var(--space-md);
}

.project-carousel-subtitle {
    font-size: var(--font-size-xl);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: -0.01em;
}

/* Carousel Navigation */
/* Slideshow Navigation - Mesh-inspired */
.slideshow-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: var(--space-md);
    padding: var(--space-sm) 0;
}

.slideshow-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(42, 107, 124, 0.3);
    padding: 0;
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-out);
    position: relative;
}

.slideshow-dot.active {
    background: var(--color-petrol);
    box-shadow: 0 0 0 3px rgba(42, 107, 124, 0.2);
    transform: scale(1.2);
}

.dot-node {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
}

.slideshow-connector {
    width: 30px;
    height: 1px;
    background: rgba(42, 107, 124, 0.25);
    transition: all var(--duration-base) var(--ease-out);
}

.slideshow-dot:hover:not(.active) {
    background: var(--color-petrol-light);
    transform: scale(1.3);
}

.slideshow-dot:active {
    transform: scale(1);
}

@media (max-width: 940px) {
    .projects-carousel-container {
        height: 70vh;
        min-height: 500px;
    }
}

@media (max-width: 600px) {
    .projects-carousel-container {
        height: 60vh;
        min-height: 400px;
    }
    
    .project-carousel-title {
        font-size: clamp(2rem, 6vw + 1rem, 4rem);
    }
    
    .projects-carousel-nav {
        bottom: var(--space-md);
    }
    
    .slideshow-dot {
        width: 8px;
        height: 8px;
    }
    
    .slideshow-connector {
        width: 20px;
    }
}

/* Project Card */
.project-card {
    position: relative;
}

.project-link {
    display: block;
}

.project-image {
    position: relative;
    height: 400px;
    max-height: 400px;
    overflow: hidden;
    background: var(--color-surface);
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--duration-base) var(--ease-out),
                transform var(--duration-base) var(--ease-out);
}

@media (max-width: 940px) {
    .project-image {
        height: 350px;
        max-height: 350px;
    }
}

@media (max-width: 600px) {
    .project-image {
        height: 300px;
        max-height: 300px;
    }
}

.project-card:hover .project-image {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background-color: var(--color-placeholder);
    background-image: 
        radial-gradient(circle at 30% 40%, rgba(42, 107, 124, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(196, 91, 62, 0.08) 0%, transparent 40%);
    transition: transform var(--duration-slow) var(--ease-out);
}

.project-card:hover .placeholder-image {
    transform: scale(1.03);
}

.project-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 26, 26, 0);
    transition: background var(--duration-base) var(--ease-out);
}

.project-card:hover .project-overlay {
    background: rgba(42, 107, 124, 0.75);
}

.project-view {
    color: white;
    font-size: var(--font-size-sm);
    padding: 0.75rem 1.5rem;
    border: 1px solid white;
    border-radius: 100px;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--duration-base) var(--ease-out);
}

.project-card:hover .project-view {
    opacity: 1;
    transform: translateY(0);
}

.project-info {
    padding: var(--space-sm) 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
}

.project-title {
    font-size: var(--font-size-base);
    font-weight: 500;
    flex: 1;
    min-width: 60%;
}

.project-meta {
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
}

.project-type {
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
}

/* Project Card with Image */
.project-image {
    position: relative;
}

.project-image img,
.project-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--duration-base) var(--ease-out),
                transform var(--duration-slow) var(--ease-out);
}

.project-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-base) var(--ease-out);
}

.project-card:hover .project-image img {
    opacity: 0;
}

.project-card:hover .project-image .project-video {
    opacity: 1;
}

.project-card:hover .project-image img,
.project-card:hover .project-image video {
    transform: scale(1.03);
}

/* Project Badge (e.g., "1st Place") */
.project-badge {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    font-size: var(--font-size-xs);
    font-weight: 500;
    color: white;
    background: var(--color-rust);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    z-index: 2;
}

/* Featured Project - same height as regular projects */
.project-card.featured .project-image {
    height: 400px;
    max-height: 400px;
}

@media (max-width: 940px) {
    .project-card.featured .project-image {
        height: 350px;
        max-height: 350px;
    }
}

@media (max-width: 600px) {
    .project-card.featured .project-image {
        height: 300px;
        max-height: 300px;
    }
}

/* Project Tags */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.project-tags .tag {
    font-size: var(--font-size-xs);
    color: var(--color-petrol);
    background: rgba(42, 107, 124, 0.08);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

/* ============================================
   PRAXIS / PRACTICE SECTION
   ============================================ */
.praxis {
    padding: var(--space-xl) var(--gutter);
    background: var(--color-surface);
}

.praxis-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

@media (max-width: 940px) {
    .praxis-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

.praxis-block h2 {
    font-size: var(--font-size-lg);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-sm);
}

.praxis-text p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
    max-width: 540px;
    line-height: 1.7;
}

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

.praxis-list {
    margin: var(--space-sm) 0;
}

.praxis-list li {
    color: var(--color-text-secondary);
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.praxis-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--color-petrol);
}

/* Client Logos - Subtle display in Kontext section */
.client-logos-label {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-top: var(--space-md);
    margin-bottom: var(--space-xs);
}

.client-logos {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(2rem, 4vw, 3.5rem);
    margin: 0;
    padding: var(--space-sm) 0;
}

.client-logos img {
    height: 50px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: opacity var(--duration-base) var(--ease-out);
}

@media (max-width: 940px) {
    .client-logos {
        gap: clamp(1.5rem, 3vw, 2.5rem);
    }
    
    .client-logos img {
        height: 40px;
        max-width: 100px;
    }
}

@media (max-width: 600px) {
    .client-logos {
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    
    .client-logos img {
        height: 35px;
        max-width: 80px;
    }
}

/* ============================================
   NETWORK SECTION (Unified Team & Collaborations)
   ============================================ */
.network {
    padding: var(--space-xl) var(--gutter) var(--space-md) var(--gutter);
    background: var(--color-bg);
}

.network-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.network-subtitle {
    font-size: var(--font-size-lg);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-sm);
}

.network-subtitle:not(:first-of-type) {
    margin-top: var(--space-lg);
}

.network-intro {
    font-size: var(--font-size-base);
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    max-width: 800px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

@media (max-width: 940px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.team-member {
    display: flex;
    flex-direction: column;
}

.team-image {
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 4px;
    background: var(--color-placeholder);
    margin-bottom: var(--space-sm);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: filter var(--duration-base) var(--ease-out),
                transform var(--duration-slow) var(--ease-out);
}

.team-member:hover .team-image img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.team-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.team-name {
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--color-text);
}

.team-role {
    font-size: var(--font-size-sm);
    color: var(--color-petrol);
    font-weight: 500;
}

.team-bio {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-top: var(--space-xs);
}

.team-links {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-sm);
}

.team-email,
.team-social {
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    transition: color var(--duration-fast) var(--ease-out);
}

.team-email:hover,
.team-social:hover {
    color: var(--color-petrol);
}

/* ============================================
   WERKLISTE / COMPLETE WORKS ACCORDION
   ============================================ */
.werkliste {
    padding: 0 var(--gutter) var(--space-md);
    background: var(--color-bg);
}

.werkliste-details {
    max-width: var(--max-width);
    margin: 0 auto;
}

.werkliste-summary {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-base);
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    user-select: none;
    padding: var(--space-sm) 0;
    transition: color var(--duration-fast) var(--ease-out);
}

.werkliste-summary:hover {
    color: var(--color-petrol);
}

.werkliste-summary::-webkit-details-marker {
    display: none;
}

.werkliste-icon {
    transition: transform var(--duration-base) var(--ease-out);
    color: var(--color-petrol);
}

.werkliste-details[open] .werkliste-icon {
    transform: rotate(180deg);
}

.werkliste-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: var(--space-sm);
    padding-bottom: var(--space-lg);
}

.werkliste-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.werkliste-item {
    font-size: var(--font-size-base);
    font-weight: 400;
    color: var(--color-text);
    transition: color var(--duration-fast) var(--ease-out);
    line-height: 1.6;
}

.werkliste-item:hover {
    color: var(--color-petrol);
}

.werkliste-type {
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.werkliste-title {
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--color-text);
}

.werkliste-location {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    text-align: right;
}

.werkliste-badge {
    font-size: var(--font-size-xs);
    color: var(--color-rust);
    font-weight: 500;
    padding: 0.2rem 0.5rem;
    background: rgba(196, 91, 62, 0.1);
    border-radius: 4px;
    margin-left: var(--space-xs);
}

@media (max-width: 600px) {
    .werkliste-item {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
    
    .werkliste-year {
        order: 1;
    }
    
    .werkliste-type {
        order: 2;
    }
    
    .werkliste-title {
        order: 3;
    }
    
    .werkliste-location {
        order: 4;
        text-align: left;
    }
    
    .werkliste-badge {
        order: 5;
        align-self: flex-start;
        margin-left: 0;
        margin-top: 0.25rem;
    }
}

/* ============================================
   COLLABORATIONS SECTION
   ============================================ */
.collaborators-intro {
    font-size: var(--font-size-base);
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: var(--space-md);
    max-width: 800px;
}

.collaborations-text {
    margin-bottom: var(--space-xl);
    max-width: 800px;
}

.collaborations-text p {
    font-size: var(--font-size-base);
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}

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

.collaborations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm) var(--space-lg);
    margin-bottom: var(--space-lg);
}

.collaborator-item {
    display: flex;
    align-items: flex-start;
}

.collaborator-link {
    text-decoration: none;
    color: var(--color-text);
    font-size: var(--font-size-base);
    font-weight: 500;
    transition: color var(--duration-fast) var(--ease-out);
    line-height: 1.5;
}

.collaborator-link:hover {
    color: var(--color-petrol);
}

.collaborations-outro {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-top: var(--space-md);
    margin-bottom: 0;
}

@media (max-width: 940px) {
    .collaborations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm) var(--space-md);
    }
}

@media (max-width: 600px) {
    .collaborations-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    padding: var(--space-md) var(--gutter) var(--space-xl) var(--gutter);
    background: var(--color-surface);
}

.contact-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    align-items: end;
}

@media (max-width: 940px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
}

.contact-text h2 {
    font-size: var(--font-size-lg);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-sm);
}

.contact-text p {
    color: var(--color-text-secondary);
    font-size: var(--font-size-base);
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}

.contact-email {
    display: inline-block;
    font-size: var(--font-size-base);
    font-weight: 500;
    margin-top: var(--space-xs);
    position: relative;
    color: var(--color-text);
}

.contact-email::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-petrol);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--duration-base) var(--ease-out);
}

.contact-email:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.contact-newsletter {
    display: flex;
    align-items: flex-end;
}

/* Newsletter */
.newsletter {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.newsletter h3 {
    font-size: var(--font-size-sm);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.newsletter-text {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xs);
    line-height: 1.7;
}

.newsletter-form {
    margin-top: var(--space-xs);
}

.newsletter-input-group {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.newsletter-input-group input {
    flex: 1;
    min-width: 200px;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 100px;
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    background: var(--color-surface);
    color: var(--color-text);
    transition: border-color var(--duration-fast) var(--ease-out);
}

.newsletter-input-group input:focus {
    outline: none;
    border-color: var(--color-rust);
}

.btn-newsletter {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--color-rust);
    border-radius: 100px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    background: transparent;
    color: var(--color-rust);
    transition: all var(--duration-base) var(--ease-out);
    white-space: nowrap;
}

.btn-newsletter:hover {
    background: var(--color-rust);
    color: var(--color-bg);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: var(--space-md) var(--gutter);
    background: var(--color-petrol-dark);
    color: rgba(255, 255, 255, 0.9);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: var(--space-lg);
    margin-bottom: var(--space-sm);
    align-items: start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-brand-name {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: rgba(255, 255, 255, 1);
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.footer-subtitle {
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.4;
}

.footer-location {
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.4;
}

.footer-links-primary,
.footer-links-secondary {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
}

.footer-links-primary {
    min-width: 100px;
}

.footer-links-secondary {
    min-width: 90px;
}

.footer-link {
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
    line-height: 1.4;
}

.footer-link:hover {
    color: rgba(255, 255, 255, 1);
}

.footer-bottom {
    padding-top: var(--space-sm);
}

.footer-copy {
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.footer-lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.8);
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color var(--duration-fast) var(--ease-out);
    text-decoration: none;
    font-family: inherit;
}

.footer-lang-toggle:hover {
    color: rgba(255, 255, 255, 1);
}

.footer-lang-toggle .lang-de {
    color: rgba(255, 255, 255, 1);
}

html[data-lang="en"] .footer-lang-toggle .lang-de {
    color: rgba(255, 255, 255, 0.7);
}

html[data-lang="en"] .footer-lang-toggle .lang-en {
    color: rgba(255, 255, 255, 1);
}

@media (max-width: 940px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
    
    .footer-links-primary,
    .footer-links-secondary {
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--space-xs);
    }
}

@media (max-width: 600px) {
    .footer-main {
        gap: var(--space-xs);
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--duration-slow) var(--ease-out),
                transform var(--duration-slow) var(--ease-out);
}

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

/* Staggered children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--duration-base) var(--ease-out),
                transform var(--duration-base) var(--ease-out);
}

.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 50ms; }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 100ms; }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 150ms; }
.reveal-stagger.revealed > *:nth-child(5) { transition-delay: 200ms; }
.reveal-stagger.revealed > *:nth-child(6) { transition-delay: 250ms; }

.reveal-stagger.revealed > * {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   UTILITIES
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .project-video,
    .project-hero video {
        display: none;
    }
}

/* Performance optimizations */
.project-image,
.project-hero-image,
.gallery-item {
    contain: layout style paint;
}

/* GPU acceleration for smooth animations */
.project-card,
.project-image,
.hero-text .letter {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* ============================================
   MOBILE TEXT SIMPLIFICATION
   Standard text size for all content on mobile
   ============================================ */
@media (max-width: 768px) {
    /* Base text size for mobile - 16px standard */
    :root {
        --font-size-mobile: 1rem;
        --font-size-mobile-sm: 0.875rem;
    }
    
    /* All body text uses standard size */
    .intro-text,
    .intro-subtitle,
    .praxis-block p,
    .praxis-list li,
    .network-intro,
    .network-subtitle,
    .collaborators-intro,
    .collaborations-text p,
    .collaborations-outro,
    .team-bio,
    .team-role,
    .team-name,
    .werkliste-item,
    .werkliste-title,
    .werkliste-location,
    .project-title,
    .project-meta,
    .project-type,
    .contact-text,
    .contact-text p,
    .newsletter-text,
    .legal-content,
    .legal-content p,
    .legal-content h2,
    .section-header h2,
    .praxis-block h2 {
        font-size: var(--font-size-mobile) !important;
    }
    
    /* Slightly smaller for meta/secondary text */
    .team-links a,
    .project-tags .tag,
    .werkliste-type,
    .werkliste-badge,
    .collaborator-link,
    .footer-link,
    .footer-copyright {
        font-size: var(--font-size-mobile-sm) !important;
    }
    
    /* Navigation links - standard size */
    .nav-left a {
        font-size: var(--font-size-mobile) !important;
    }
    
    /* Keep hero "encounters" large - this is the exception */
    .hero-text {
        font-size: clamp(2.5rem, 12vw, 5rem) !important;
    }
    
    /* Carousel subtitle - slightly larger for readability */
    .project-carousel-subtitle {
        font-size: 1.25rem !important;
    }
    
    /* Line heights for mobile readability */
    .intro-text,
    .praxis-block p,
    .network-intro,
    .collaborators-intro,
    .team-bio,
    .contact-text p {
        line-height: 1.6 !important;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .hero-text {
        font-size: clamp(2rem, 14vw, 4rem) !important;
    }
    
    .project-carousel-subtitle {
        font-size: 1.1rem !important;
    }
}
