/* ==========================================================================
   MadeIn3D - Main Stylesheet (Multi-page version)
   ========================================================================== */

:root {
    --color-bg: #ffffff;
    --color-bg-elevated: #f5f6f7;
    --color-bg-card: #eceef0;
    --color-surface: #e2e5e8;

    --color-text: #111317;
    --color-text-muted: #4b5563;
    --color-text-subtle: #9ca3af;

    --color-accent: #0284c7;
    --color-accent-hover: #0369a1;
    --color-accent-subtle: rgba(6, 182, 212, 0.15);
    --color-accent-glow: rgba(6, 182, 212, 0.0);

    --color-secondary: #f59e0b;

    --color-border: #d1d5db;
    --color-border-light: #e5e7eb;
    
    --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Space Mono', monospace;
    
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3.5rem;
    --text-6xl: 4.5rem;
    
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    --container-max: 1200px;
    --header-height: 72px;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px var(--color-accent-glow);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
    
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

/* --------------------------------------------------------------------------
   Base & Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Hide scrollbar on index pages while keeping scroll functionality */
html.page-index::-webkit-scrollbar { display: none; }
html.page-index { -ms-overflow-style: none; scrollbar-width: none; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-display);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
}

/* Noise texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 10000;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    overflow-x: hidden;
}
.hidden { display: none !important; }

h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.2; }

/* --------------------------------------------------------------------------
   Page Layout (for multi-page)
   -------------------------------------------------------------------------- */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

.page-content {
    flex: 1;
    padding-top: var(--header-height);
    overflow-x: hidden;
    width: 100%;
}

/* Page header for inner pages */
.page-header {
    padding: var(--space-4xl) 0 var(--space-2xl);
    text-align: center;
    position: relative;
    background: var(--color-bg-elevated);
    overflow-x: hidden;
    width: 100%;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(6, 182, 212, 0.25) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.25) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
    opacity: 0.85;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: var(--text-5xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.page-title-accent {
    color: var(--color-accent);
}

.page-subtitle {
    font-size: var(--text-xl);
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Section Titles
   -------------------------------------------------------------------------- */
.section-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.section-subtitle { 
    font-size: var(--text-lg); 
    color: var(--color-text-muted); 
    text-align: center; 
    margin-bottom: var(--space-3xl); 
    max-width: 600px; 
    margin-left: auto; 
    margin-right: auto; 
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: var(--space-sm); 
    padding: var(--space-md) var(--space-xl); 
    font-size: var(--text-base); 
    font-weight: 500; 
    border-radius: var(--radius-md); 
    transition: all var(--transition-base); 
    white-space: nowrap;
    position: relative;
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-secondary {
    background: rgba(0,0,0,0.03);
    color: var(--color-text);
    border: 1px solid var(--color-border-light);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.btn-secondary:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: rgba(6, 182, 212, 0.06);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.btn-icon { width: 18px; height: 18px; }
.btn-submit { width: 100%; padding: var(--space-lg); font-size: var(--text-lg); margin-top: var(--space-lg); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
    border-bottom-color: var(--color-border);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.logo { display: flex; align-items: center; }
.logo-img { height: 32px; width: auto; border-radius: var(--radius-sm); }

.nav { display: flex; align-items: center; gap: var(--space-xl); }
.nav-link { 
    font-size: var(--text-sm); 
    font-weight: 500; 
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
    position: relative;
}
.nav-link:hover { color: var(--color-text); }
.nav-link.active { color: var(--color-accent); }
.nav-link::after { 
    content: ''; 
    position: absolute; 
    bottom: -4px; 
    left: 0; 
    width: 0; 
    height: 2px; 
    background: var(--color-accent); 
    box-shadow: 0 0 10px var(--color-accent-glow); 
    transition: width var(--transition-base); 
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-link-cta {
    background: var(--color-accent);
    color: #fff;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.nav-link-cta::after { display: none; }
.nav-link-cta:hover { background: var(--color-accent-hover); }
.nav-link-cta.active { color: #fff; background: var(--color-accent-hover); }

.lang-switcher { display: flex; gap: var(--space-xs); margin-left: var(--space-lg); }
.lang-btn {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    padding: var(--space-xs) var(--space-md);
    color: var(--color-text-subtle);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1;
}
.lang-btn:hover { color: var(--color-text); border-color: var(--color-border); }
.lang-btn.active { color: var(--color-accent); border-color: var(--color-accent); }

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
    cursor: pointer;
    z-index: 1001;
}
.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all var(--transition-base);
}
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* --------------------------------------------------------------------------
   Hero (Homepage only)
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    padding-bottom: 6rem;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }

.hero-grid {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 0%, var(--color-bg) 100%),
        linear-gradient(rgba(6, 182, 212, 0.28) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.28) 1px, transparent 1px);
    background-size: 100% 100%, 60px 60px, 60px 60px;
    transform: perspective(500px) rotateX(60deg);
    transform-origin: center top;
    top: 40%;
    height: 120%;
    opacity: 1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
    top: 10%;
    right: -10%;
    animation: float 8s ease-in-out infinite;
}

.hero-bg::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
    bottom: 20%;
    left: -5%;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, transparent 0%, var(--color-bg) 70%);
    z-index: 0;
}

.hero-content { position: relative; z-index: 2; max-width: 800px; }

.hero-title,
.hero-subtitle,
.hero-cta {
    will-change: transform;
}

.hero-title {
    font-size: 5.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-xl);
    letter-spacing: -0.03em;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}
.hero-title span { display: block; }
.hero-title-accent {
    color: var(--color-accent);
}

.hero-subtitle {
    font-size: var(--text-2xl);
    color: var(--color-text-muted); 
    margin-bottom: var(--space-2xl); 
    max-width: 550px;
}

.hero-cta { display: flex; gap: var(--space-md); flex-wrap: wrap; }

/* 3D Cube */
.hero-model {
    position: absolute;
    right: 3%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

/* Three.js Benchy canvas */
#benchy-canvas {
    width: 360px;
    height: 360px;
    display: block;
}




/* --------------------------------------------------------------------------
   Services - Alternating Split Layout
   -------------------------------------------------------------------------- */
.services {
    padding: var(--space-3xl) 0;
    background: var(--color-bg);
    position: relative;
    overflow-x: hidden;
    width: 100%;
}

.service-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
    position: relative;
    width: 100%;
    max-width: 100%;
}

.service-block:nth-child(even) {
    direction: rtl;
}

.service-block:nth-child(even) > * {
    direction: ltr;
}

.service-visual {
    position: relative;
    background: var(--color-bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.service-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(6, 182, 212, 0.25) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.25) 1px, transparent 1px);
    background-size: 30px 30px;
}

.service-block:nth-child(odd) .service-visual {
    border-right: 1px solid var(--color-border);
}

.service-block:nth-child(even) .service-visual {
    border-left: 1px solid var(--color-border);
}

.service-visual-icon {
    width: 150px;
    height: 150px;
    color: var(--color-accent);
    opacity: 0.8;
    position: relative;
    z-index: 1;
}

.service-visual-glow {
    display: none;
}

.service-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-3xl);
    position: relative;
}

.service-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.service-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
    line-height: 1.1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.service-title-accent {
    color: var(--color-accent);
}

.service-desc {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
    line-height: 1.8;
    max-width: 500px;
}

.service-features {
    list-style: none;
    margin-bottom: var(--space-xl);
}

.service-features li {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
    padding-left: var(--space-lg);
    position: relative;
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
}

/* --------------------------------------------------------------------------
   Services - Homepage two-column cards (no visual panel)
   -------------------------------------------------------------------------- */
.services-home {
    padding: var(--space-4xl) 0;
    background: var(--color-bg-elevated);
}

.services-home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    max-width: 960px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.service-home-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl) var(--space-2xl) var(--space-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-md);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.service-home-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-border-light);
}

.service-home-icon { display: none; }

.service-home-card .service-title {
    font-size: var(--text-2xl);
}

.service-home-card .service-desc {
    margin-bottom: 0;
    max-width: 360px;
}

.service-home-card .btn {
    margin-top: var(--space-sm);
}

/* --------------------------------------------------------------------------
   Services - Two column split (diensten/services page)
   -------------------------------------------------------------------------- */
.services-split {
    padding: var(--space-4xl) 0;
}

.services-split-inner {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    align-items: stretch;
    overflow: hidden;
}

.service-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    padding: var(--space-2xl) 0;
    overflow: hidden;
    min-width: 0;
    transition: opacity 0.05s linear;
}

.service-col-num {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 0.1em;
}

.service-col-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.service-col-desc {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    line-height: 1.7;
}

.service-col-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    flex: 1;
}

.service-col .btn {
    margin-top: auto;
    align-self: flex-start;
}

.service-col-features li {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    padding-left: var(--space-xl);
    position: relative;
}

.service-col-features li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

/* Divider */
.services-divider {
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: var(--space-2xl) 0;
    align-self: stretch;
}

.services-divider-line {
    width: 1px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--color-accent) 15%,
        var(--color-accent) 85%,
        transparent 100%
    );
    position: relative;
}

.services-divider-node {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-bg), 0 0 0 4px var(--color-accent);
    animation: divider-pulse 2.5s ease-in-out infinite;
    cursor: grab;
    touch-action: none;
}

.services-divider-node.dragging {
    cursor: grabbing;
    animation-play-state: paused;
}

@keyframes divider-pulse {
    0%, 100% { box-shadow: 0 0 0 3px var(--color-bg), 0 0 0 4px var(--color-accent), 0 0 0 4px rgba(2, 132, 199, 0.4); }
    50%       { box-shadow: 0 0 0 3px var(--color-bg), 0 0 0 4px var(--color-accent), 0 0 0 10px rgba(2, 132, 199, 0); }
}

/* kept for homepage cards */
.services-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}


@media (max-width: 768px) {
    .services-home-grid,
    .services-page-grid {
        grid-template-columns: 1fr;
    }
    .services-split-inner {
        grid-template-columns: 1fr;
    }
    .services-divider {
        padding: 0 0 var(--space-xl);
        align-items: center;
        flex-direction: row;
    }
    .services-divider-line {
        width: 100%;
        height: 1px;
        background: linear-gradient(
            to right,
            transparent 0%,
            var(--color-accent) 15%,
            var(--color-accent) 85%,
            transparent 100%
        );
    }
    .services-divider-node {
        top: 50%;
        left: 50%;
    }
    .services-home {
        padding: var(--space-3xl) 0;
    }
}

/* Legacy card styles for homepage preview */
.services-grid {
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: var(--space-xl); 
    max-width: 900px; 
    margin: 0 auto;
}

.service-card { 
    position: relative; 
    background: linear-gradient(145deg, var(--color-bg-card), var(--color-bg-elevated));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg); 
    padding: var(--space-2xl);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.service-card:hover { 
    border-color: var(--color-border-light);
    transform: translateY(-8px); 
    box-shadow: var(--shadow-xl), 0 0 30px rgba(0,0,0,0.3);
}

.service-card-featured { 
    border-color: rgba(6, 182, 212, 0.4);
    background: linear-gradient(145deg, var(--color-bg-card), rgba(6, 182, 212, 0.06));
}

.service-card-featured::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.08), transparent 60%);
    pointer-events: none;
}

.service-badge { 
    position: absolute; 
    top: var(--space-md); 
    right: var(--space-md); 
    font-family: var(--font-mono); 
    font-size: var(--text-xs); 
    color: var(--color-accent); 
    background: var(--color-accent-subtle);
    padding: var(--space-xs) var(--space-sm); 
    border-radius: var(--radius-sm);
    box-shadow: none;
}

.service-icon { 
    width: 64px; 
    height: 64px; 
    color: var(--color-accent);
    margin-bottom: var(--space-lg);
}

/* --------------------------------------------------------------------------
   Process Teaser (homepage 3-step)
   -------------------------------------------------------------------------- */
.process-teaser {
    padding: var(--space-3xl) 0;
    background: var(--color-bg-elevated);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.page-index .process-teaser::before,
.page-index .usecases-strip::before,
.page-index .footer::before {
    display: none;
}

.process-teaser-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2xl);
}

.process-teaser-step {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    will-change: transform;
}

.process-teaser-num {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-accent);
}

.process-teaser-text {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Use Cases Strip (homepage)
   -------------------------------------------------------------------------- */
.usecases-strip {
    padding: var(--space-xl) 0;
    border-bottom: 1px solid var(--color-border);
    position: relative;
    z-index: 1;
}

.usecases-strip-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.usecases-strip-item {
    font-size: var(--text-sm);
    color: var(--color-text-subtle);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a.usecases-strip-item:hover {
    color: var(--color-accent);
}

.usecases-strip-item:not(:last-child)::after {
    content: '·';
    margin-left: var(--space-lg);
}

@media (max-width: 768px) {
    .process-teaser-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl);
    }
}

@media (max-width: 480px) {
    .process-teaser-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Materials Strip (homepage compact version)
   -------------------------------------------------------------------------- */
.materials-strip {
    padding: var(--space-2xl) 0;
    background: var(--color-bg-elevated);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    overflow-x: hidden;
    width: 100%;
}

.materials-strip-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.materials-strip-label {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--color-text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.materials-strip-list {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
    justify-content: center;
}

.materials-strip-item {
    font-family: var(--font-mono);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-accent);
    transition: all var(--transition-base);
}

.materials-strip-item:hover {
    transform: scale(1.05);
}

.materials-strip-more {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.materials-strip-more:hover {
    color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Materials - Alternating Split Layout (like services but smaller)
   -------------------------------------------------------------------------- */
.materials {
    padding: var(--space-3xl) 0;
    position: relative;
    background: var(--color-bg-elevated);
    overflow-x: hidden;
    width: 100%;
}

.material-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 280px;
    position: relative;
    width: 100%;
    max-width: 100%;
}

.material-block:nth-child(even) {
    direction: rtl;
}

.material-block:nth-child(even) > * {
    direction: ltr;
}

.material-visual {
    position: relative;
    background: var(--color-bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.material-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(6, 182, 212, 0.25) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6, 182, 212, 0.25) 1px, transparent 1px);
    background-size: 20px 20px;
}

.material-block:nth-child(odd) .material-visual {
    border-right: 1px solid var(--color-border);
}

.material-block:nth-child(even) .material-visual {
    border-left: 1px solid var(--color-border);
}

.material-visual-name {
    font-family: var(--font-mono);
    font-size: var(--text-6xl);
    font-weight: 700;
    color: var(--color-accent);
    position: relative;
    z-index: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.material-visual-glow {
    display: none;
}

.material-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-2xl);
    position: relative;
}

.material-title {
    font-size: var(--text-2xl);
    font-weight: 600;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.material-desc {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.material-tags {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.material-tag {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-text-subtle);
    background: var(--color-bg-elevated);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

.material-block-other .material-visual {
    border-style: dashed;
    background: transparent;
}

.material-block-other .material-visual-name {
    color: var(--color-text-muted);
    text-shadow: none;
    font-size: var(--text-4xl);
}

/* --------------------------------------------------------------------------
   Materials - Table Layout
   -------------------------------------------------------------------------- */
.materials-table-section {
    padding: var(--space-4xl) 0;
}

.materials-table {
    width: 100%;
    border-collapse: collapse;
}

.materials-table thead th {
    text-align: left;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-subtle);
    padding: var(--space-sm) var(--space-lg);
    border-bottom: 2px solid var(--color-border);
}

.materials-table tbody tr {
    border-bottom: 1px solid var(--color-border-light);
    transition: background var(--transition-fast);
}

.materials-table tbody tr:hover {
    background: var(--color-bg-elevated);
}

.materials-table td {
    padding: var(--space-xl) var(--space-lg);
    vertical-align: top;
}

.mat-abbr {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: var(--text-2xl);
    color: var(--color-accent);
    white-space: nowrap;
    width: 90px;
}

.mat-name {
    display: block;
    font-weight: 600;
    font-size: var(--text-base);
    margin-bottom: var(--space-xs);
}

.mat-desc {
    display: block;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.6;
    max-width: 380px;
}

.mat-temp {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-muted);
    white-space: nowrap;
    width: 80px;
}

.materials-note {
    margin-top: var(--space-xl);
    font-size: var(--text-sm);
    color: var(--color-text-subtle);
}

.materials-note a {
    color: var(--color-accent);
    text-decoration: none;
}

.materials-note a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Material Filter Bar
   -------------------------------------------------------------------------- */
.mat-filter-bar {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--space-xl);
}

.mat-filter-btn {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: var(--space-xs) var(--space-md);
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: 2px;
    transition: all var(--transition-base);
}

.mat-filter-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.mat-filter-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.materials-table tbody tr {
    transition: background var(--transition-fast), opacity 0.3s ease;
}


/* --------------------------------------------------------------------------
   Material Property Bars
   -------------------------------------------------------------------------- */
.mat-profiles-section {
    padding: var(--space-4xl) 0;
    background: var(--color-bg-elevated);
    border-top: 1px solid var(--color-border);
}

.mat-profiles-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.mat-profiles-header-row,
.mat-profile-row {
    display: grid;
    grid-template-columns: 60px 1fr 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.mat-profiles-header-row span {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--color-text-subtle);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mat-profile-name {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-accent);
}

.mat-profile-bar-wrap {
    height: 3px;
    background: var(--color-border);
    border-radius: 2px;
    overflow: hidden;
}

.mat-profile-bar {
    height: 100%;
    width: 0;
    background: var(--color-accent);
    border-radius: 2px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.mat-profiles-section.animate .mat-profile-bar {
    width: var(--bar-w);
}

.mat-profiles-grid .mat-profile-row:nth-child(2) .mat-profile-bar { transition-delay: 0s; }
.mat-profiles-grid .mat-profile-row:nth-child(3) .mat-profile-bar { transition-delay: 0.12s; }
.mat-profiles-grid .mat-profile-row:nth-child(4) .mat-profile-bar { transition-delay: 0.24s; }
.mat-profiles-grid .mat-profile-row:nth-child(5) .mat-profile-bar { transition-delay: 0.36s; }
.mat-profiles-grid .mat-profile-row:nth-child(6) .mat-profile-bar { transition-delay: 0.48s; }

@media (max-width: 768px) {
    .mat-profiles-header-row,
    .mat-profile-row {
        grid-template-columns: 48px 1fr 1fr 1fr;
        gap: var(--space-md);
    }
}

@media (max-width: 480px) {
    .mat-profiles-header-row,
    .mat-profile-row {
        grid-template-columns: 40px 1fr 1fr;
    }
    /* Hide temperature column on very small screens */
    .mat-profiles-header-row span:last-child,
    .mat-profile-row .mat-profile-bar-wrap:last-child {
        display: none;
    }
}

@media (max-width: 768px) {
    .materials-table thead { display: none; }
    .materials-table tbody tr {
        display: grid;
        grid-template-columns: 80px 1fr;
        gap: var(--space-sm);
        padding: var(--space-lg) 0;
    }
    .materials-table td {
        padding: var(--space-xs) var(--space-md);
    }
    .mat-abbr { font-size: var(--text-xl); }
    .mat-temp { grid-column: 2; }
    .col-tags { grid-column: 2; }
}


/* Legacy grid for homepage fallback */
.materials-grid {
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: var(--space-md);
}

.material-card { 
    background: linear-gradient(145deg, var(--color-bg-card), var(--color-bg));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md); 
    padding: var(--space-xl);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.material-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

.material-card:hover { 
    border-color: var(--color-accent);
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.material-name { 
    font-family: var(--font-mono); 
    font-size: var(--text-2xl); 
    font-weight: 700; 
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.material-card-other {
    background: transparent;
    border-style: dashed;
    border-color: var(--color-border);
}
.material-card-other:hover { background: rgba(6, 182, 212, 0.04); }
.material-card-other .material-name { color: var(--color-text); text-shadow: none; }

/* Material detail (for materials page) */
.material-detail {
    margin-bottom: var(--space-2xl);
}

.material-detail-header {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.material-detail-name {
    font-family: var(--font-mono);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--color-accent);
}

.material-detail-content {
    color: var(--color-text-muted);
    line-height: 1.8;
}

.material-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.material-spec {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.material-spec-label {
    font-size: var(--text-sm);
    color: var(--color-text-subtle);
    margin-bottom: var(--space-xs);
}

.material-spec-value {
    font-family: var(--font-mono);
    font-size: var(--text-lg);
    color: var(--color-text);
}

/* --------------------------------------------------------------------------
   Process / Werkwijze
   -------------------------------------------------------------------------- */
.process {
    padding: var(--space-4xl) 0;
    background: var(--color-bg-elevated);
    position: relative;
    overflow-x: hidden;
    width: 100%;
}

.process-timeline { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: var(--space-lg); 
    position: relative;
}

.process-timeline::before { 
    content: ''; 
    position: absolute; 
    top: 32px; 
    left: 12%; 
    right: 12%; 
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-border), var(--color-border), transparent);
    box-shadow: none;
}

.process-step { text-align: center; position: relative; }

.process-number { 
    font-family: var(--font-mono); 
    font-size: var(--text-3xl); 
    font-weight: 700; 
    color: var(--color-accent);
    background: var(--color-bg);
    width: 64px; 
    height: 64px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin: 0 auto var(--space-lg);
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    position: relative;
    z-index: 1;
    box-shadow: none;
    transition: all var(--transition-base);
}

.process-step:hover .process-number {
    transform: scale(1.1);
    box-shadow: none;
}

.process-step-title { font-size: var(--text-lg); margin-bottom: var(--space-sm); }
.process-step-desc { font-size: var(--text-sm); color: var(--color-text-muted); max-width: 200px; margin: 0 auto; }

/* --------------------------------------------------------------------------
   Portfolio
   -------------------------------------------------------------------------- */
.portfolio {
    padding: var(--space-4xl) 0;
    background: var(--color-bg);
    overflow-x: hidden;
    width: 100%;
}

.portfolio-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: var(--space-lg);
}

.portfolio-item { 
    aspect-ratio: 4 / 3; 
    background: linear-gradient(145deg, var(--color-bg-elevated), var(--color-bg-card));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    position: relative;
}

.portfolio-item:hover { 
    border-color: var(--color-accent);
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.8) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
    display: flex;
    align-items: flex-end;
    padding: var(--space-lg);
}

.portfolio-item:hover .portfolio-item-overlay {
    opacity: 1;
}

.portfolio-item-title {
    font-size: var(--text-lg);
    font-weight: 600;
}

.portfolio-placeholder { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-style: dashed;
    grid-column: 1 / -1;
    background: transparent;
}

.portfolio-placeholder-content { font-size: var(--text-lg); color: var(--color-text-subtle); }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact {
    padding: var(--space-4xl) 0;
    background: var(--color-bg);
    position: relative;
    overflow-x: hidden;
    width: 100%;
}

.contact::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(6, 182, 212, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.contact-form {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    background: linear-gradient(145deg, var(--color-bg-card), var(--color-bg-elevated));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow-x: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    width: 100%;
    max-width: 100%;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    min-width: 0;
    max-width: 100%;
}
.form-group-full { grid-column: 1 / -1; }
.form-group label { font-size: var(--text-sm); font-weight: 500; color: var(--color-text-muted); }

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    max-width: 100%;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: var(--space-md);
    color: var(--color-text);
    transition: all var(--transition-fast);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.form-group input:focus, 
.form-group textarea:focus, 
.form-group select:focus { 
    outline: none;
    border-color: var(--color-accent);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.form-group select { cursor: pointer; }
.form-group input[type="file"] { padding: var(--space-sm); }
.form-hint { font-size: var(--text-xs); color: var(--color-text-subtle); }

.form-message { 
    max-width: 700px; 
    margin: var(--space-xl) auto 0; 
    padding: var(--space-lg); 
    border-radius: var(--radius-md); 
    text-align: center; 
}
.form-success { background: rgba(6, 182, 212, 0.08); border: 1px solid var(--color-accent); color: var(--color-accent); }
.form-error { background: rgba(245, 158, 11, 0.1); border: 1px solid var(--color-secondary); color: var(--color-secondary); }

/* Contact info (for contact page) */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.contact-info-card {
    background: linear-gradient(145deg, var(--color-bg-card), var(--color-bg-elevated));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-base);
}

.contact-info-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    color: var(--color-accent);
    margin: 0 auto var(--space-md);
}

.contact-info-title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
}

.contact-info-value {
    color: var(--color-text-muted);
}

.contact-info-value a {
    color: var(--color-accent);
    transition: color var(--transition-fast);
}

.contact-info-value a:hover {
    color: var(--color-accent-hover);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg-elevated);
    overflow-x: hidden;
    width: 100%;
    position: relative;
    z-index: 1;
}

.footer-inner { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap; 
    gap: var(--space-lg); 
}

.footer-tagline { font-size: var(--text-sm); color: var(--color-text-subtle); margin-top: var(--space-sm); }

.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-xs); }
.footer .logo-img { background: #ffffff; border-radius: var(--radius-sm); }
.footer-copy { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--color-text-subtle); }

.footer-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}
.footer-links a { font-size: var(--text-sm); color: var(--color-text-muted); text-decoration: none; transition: color var(--transition-fast); }
.footer-links a:hover { color: var(--color-accent); }
.footer-links a:first-child { color: var(--color-accent); }
.footer-links a:first-child:hover { color: var(--color-accent-hover); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-model {
        top: 3.5rem;
        right: 5%;
        bottom: auto;
        transform: scale(0.5);
        transform-origin: top right;
        opacity: 0.5;
        z-index: 0;
    }
    #benchy-canvas { width: 280px; height: 280px; }
    .hero-title { font-size: var(--text-5xl); }
    .page-title { font-size: var(--text-4xl); }
    
    .service-block,
    .material-block {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .service-block:nth-child(even),
    .material-block:nth-child(even) {
        direction: ltr;
    }
    
    .service-visual {
        min-height: 300px;
    }
    
    .material-visual {
        min-height: 200px;
    }
    
    .service-block:nth-child(odd) .service-visual,
    .service-block:nth-child(even) .service-visual,
    .material-block:nth-child(odd) .material-visual,
    .material-block:nth-child(even) .material-visual {
        border-right: none;
        border-left: none;
        border-bottom: 1px solid var(--color-border);
    }
}

@media (max-width: 768px) {
    :root { --header-height: 60px; }

    /* Tighter container on mobile */
    .container { padding: 0 var(--space-md); }

    /* Mobile nav */
    .nav {
        display: none !important;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        width: 100%;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
        background: var(--color-bg);
        border-bottom: 1px solid var(--color-border);
        flex-direction: column;
        align-items: stretch;
        padding: var(--space-lg);
        gap: var(--space-sm);
        z-index: 100000;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    .nav.active { display: flex !important; }
    .nav-link {
        width: 100%;
        text-align: left;
        padding: var(--space-sm) var(--space-md);
        font-size: var(--text-base);
    }
    .nav-link-cta {
        width: 100%;
        text-align: center;
        padding: var(--space-md);
        margin-top: var(--space-xs);
    }
    .lang-switcher { margin-left: auto; margin-right: var(--space-sm); }
    .mobile-menu-toggle { display: flex; }

    /* Hero — shorter, cube decorative in background */
    .hero {
        min-height: 85vh;
        padding-bottom: var(--space-3xl);
        align-items: flex-start;
        padding-top: calc(var(--header-height) + var(--space-2xl));
    }
    .hero-content { max-width: 100%; }
    .hero-title { font-size: var(--text-4xl); }
    .hero-subtitle { font-size: var(--text-base); }
    .hero-grid { transform: perspective(300px) rotateX(50deg); }

    /* Inner page headers */
    .page-header { padding: var(--space-2xl) 0 var(--space-xl); }
    .page-title { font-size: var(--text-3xl); }
    .page-subtitle { font-size: var(--text-base); }

    /* Reduce section padding globally */
    .services-split,
    .process,
    .materials-table-section,
    .mat-profiles-section,
    .portfolio-section,
    .contact-section { padding: var(--space-3xl) 0; }

    /* Services split — no slider on mobile, just stacked */
    .services-split-inner { grid-template-columns: 1fr; }
    .service-col { padding: var(--space-xl) 0; }
    .service-col-title { font-size: var(--text-2xl); }
    .services-divider {
        padding: 0 0 var(--space-xl);
        align-items: center;
        flex-direction: row;
    }
    .services-divider-line {
        width: 100%;
        height: 1px;
        background: linear-gradient(to right, transparent 0%, var(--color-accent) 15%, var(--color-accent) 85%, transparent 100%);
    }
    .services-divider-node { top: 50%; left: 50%; cursor: grab; }

    /* Process steps */
    .process-teaser { padding: var(--space-xl) 0; }
    .process-step-title { font-size: var(--text-base); }

    /* Other */
    .service-content { padding: var(--space-xl); }
    .service-title { font-size: var(--text-2xl); }
    .material-name { font-size: var(--text-2xl); }
    .section-title { font-size: var(--text-2xl); }

    .services-grid { grid-template-columns: 1fr; }
    .materials-grid { grid-template-columns: repeat(2, 1fr); }
    .process-timeline { grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }
    .process-timeline::before { display: none; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }

    .contact-form { padding: var(--space-lg); }
    .footer-inner { flex-direction: column; text-align: center; gap: var(--space-md); }
    .footer-brand { align-items: center; }
    .footer-links { flex-direction: column; align-items: center; gap: var(--space-sm); }

    /* Material profile bars — tighter labels */
    .mat-profiles-header-row,
    .mat-profile-row {
        grid-template-columns: 44px 1fr 1fr 1fr;
        gap: var(--space-md);
    }
}

@media (max-width: 480px) {
    .hero { min-height: 75vh; }
    .hero-title { font-size: var(--text-3xl); }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; justify-content: center; }
    .page-title { font-size: var(--text-2xl); }
    .page-subtitle { font-size: var(--text-sm); }

    .service-visual { min-height: 200px; }
    .service-visual-icon { width: 100px; height: 100px; }
    .service-content { padding: var(--space-xl); }
    .service-title { font-size: var(--text-xl); }

    .material-visual { min-height: 150px; }
    .material-visual-name { font-size: var(--text-4xl); }
    .material-content { padding: var(--space-lg); }

    .contact-form { padding: var(--space-md); }

    .materials-grid { grid-template-columns: 1fr; }
    .process-timeline { grid-template-columns: 1fr; }
    .section-title { font-size: var(--text-xl); }

    /* Mat profiles: hide temperature column, keep just name + 2 bars */
    .mat-profiles-header-row,
    .mat-profile-row { grid-template-columns: 44px 1fr 1fr; }
    .mat-profiles-header-row span:last-child,
    .mat-profile-row .mat-profile-bar-wrap:last-child { display: none; }

    .lang-btn { font-size: var(--text-xs); padding: var(--space-xs) var(--space-sm); }
    .logo-img { height: 26px; }

    /* Process teaser: single column on very small screens */
    .process-teaser-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
}

/* --------------------------------------------------------------------------
   Large Screen Scaling — 1920px / 2K / 4K
   Everything is rem-based, so scaling html font-size scales the whole site.
   Container max grows to avoid a narrow strip on wide displays.
   -------------------------------------------------------------------------- */
@media (min-width: 1920px) {
    html { font-size: 18px; }
    :root { --container-max: 1440px; }
}

@media (min-width: 2560px) {
    html { font-size: 22px; }
    :root { --container-max: 1920px; }
}

@media (min-width: 3840px) {
    html { font-size: 28px; }
    :root { --container-max: 2560px; }
}