/* Lenis smooth scroll */
html.lenis, html.lenis body {
    height: auto;
}
.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

/* Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --orange: #FF5500;
    --blue: #0066FF;
    --black: #000000;
    --white: #FFFFFF;
    --gray: #F5F5F5;
    --nav-pad: 2rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: var(--white);
    color: var(--black);
    overflow-x: hidden;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}

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

/* Navigation - Fixed Corners */
.nav-corners {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    padding: var(--nav-pad);
    pointer-events: none;
}

.nav-corners a {
    pointer-events: all;
    text-decoration: none;
    color: var(--black);
    font-weight: 700;
    font-size: clamp(0.85rem, 1.2vw, 1.1rem);
    transition: color 0.4s ease, opacity 0.3s ease;
}

/* Section-aware nav colour:
   white → black, orange → black, black → white, blue → white */
.nav-corners[data-bg="dark"] a { color: var(--white); }
.nav-corners[data-bg="light"] a { color: var(--black); }

.nav-corners a:hover {
    opacity: 0.6;
}

.nav-logo {
    position: absolute;
    top: var(--nav-pad);
    left: var(--nav-pad);
    font-weight: 900;
    font-size: clamp(1rem, 1.4vw, 1.3rem);
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
}

.logo-adur {
    display: inline-block;
    overflow: hidden;
    max-width: 4em;
    transition: max-width 0.4s ease, opacity 0.3s ease;
}

.logo-adur.collapsed {
    max-width: 0;
    opacity: 0;
}

.logo-ai {
    display: inline-block;
}

.nav-diensten {
    position: absolute;
    bottom: var(--nav-pad);
    left: var(--nav-pad);
    transition: top 0.4s ease, bottom 0.4s ease, left 0.4s ease, right 0.4s ease;
}

.nav-projecten {
    position: absolute;
    top: var(--nav-pad);
    right: var(--nav-pad);
}

.nav-contact {
    position: absolute;
    bottom: var(--nav-pad);
    right: var(--nav-pad);
    transition: top 0.4s ease, bottom 0.4s ease, left 0.4s ease, right 0.4s ease;
}

.nav-corners.cta-mode .nav-diensten {
    top: calc(var(--nav-pad) + 0.2rem);
    bottom: auto;
    left: calc(var(--nav-pad) + 7rem);
}

.nav-corners.cta-mode .nav-contact {
    top: calc(var(--nav-pad) + 0.2rem);
    bottom: auto;
    right: calc(var(--nav-pad) + 5rem);
}

.nav-corners.cta-mode .nav-projecten {
    top: calc(var(--nav-pad) + 0.2rem);
}

/* Hero Section - Chaotic Layout */
.hero {
    min-height: 100vh;
    min-height: 100svh;
        height: 100dvh;
    min-height: 100dvh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 5rem;
    overflow: hidden;
}

.hero-content {
    position: relative;
    width: 100%;
    max-width: 1400px;
}

.hero-text {
    font-size: clamp(2.4rem, 13vw, 11rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    text-align: center;
    position: relative;
    z-index: 100;
    mix-blend-mode: difference;
    color: var(--white);
}

.hero-line-1 {
    display: block;
    margin-bottom: 0.1em;
    overflow: visible;
}

.hero-line-2 {
    display: block;
    font-size: 0.75em;
}

.changing-word {
    display: inline-block;
    color: var(--orange);
    mix-blend-mode: normal;
    position: relative;
    text-align: center;
    transition: transform 0.3s ease;
    overflow: visible;
    white-space: nowrap;
    transform-origin: center center;
    max-width: 100%;
}

/* Floating Cards - Absolute Positioned */
.floating-card {
    --card-scale: 1;
    position: absolute;
    z-index: 5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, opacity 0.3s ease;
    background: var(--white);
}

.floating-card:hover {
    transform: scale(1.05) rotate(2deg);
}

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

.card-1 {
    top: -30%;
    left: 0%;
    width: calc(180px * var(--card-scale));
    height: calc(350px * var(--card-scale));
    transform: rotate(-8deg);
    border-radius: 0;
}

.card-2 {
    bottom: 80%;
    left: 20%;
    width: calc(200px * var(--card-scale));
    height: calc(320px * var(--card-scale));
    background: var(--gray);
    transform: rotate(3deg);
    border-radius: 0;
}

.card-3 { display: none; }

.card-poster {
    background: var(--black);
    color: var(--white);
    padding: 1rem;
}

.poster-header,
.poster-footer {
    background: var(--orange);
    color: var(--black);
    padding: 0.5rem 1rem;
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    text-align: center;
}

.poster-footer {
    margin-top: 0.5rem;
}

.card-poster img {
    width: 100%;
    height: 180px;
    margin: 0.5rem 0;
    object-fit: cover;
    display: block;
}

.card-4 {
    bottom: -105%;
    right: 30%;
    width: calc(220px * var(--card-scale));
    height: calc(380px * var(--card-scale));
    transform: rotate(-8deg);
    border-radius: 0;
}

.card-5 { display: none; }

.card-6 {
    top: 3%;
    right: -3%;
    width: calc(190px * var(--card-scale));
    height: calc(340px * var(--card-scale));
    transform: rotate(2deg);
    border-radius: 0;
}

.card-7 { display: none; }

/* Orange Block Accent */
.orange-block {
    position: absolute;
    top: -45%;
    right: 15%;
    width: 400px;
    height: 180px;
    background: var(--orange);
    z-index: 6;
    transform: rotate(-8deg);
    transition: opacity 0.3s ease;
}

.blue-block {
    position: absolute;
    bottom: -45%;
    left: 10%;
    width: 380px;
    height: 160px;
    background: var(--blue);
    z-index: 6;
    transform: rotate(3deg);
    transition: opacity 0.3s ease;
}

/* Safe zone visualization - oval area where cards avoid */
.hero-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 55%;
    border-radius: 50%;
    pointer-events: none;
    z-index: 7;
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    z-index: 100;
    color: var(--black);
    cursor: pointer;
    animation: bounceArrow 2s ease-in-out infinite;
    transition: opacity 0.3s ease;
}

@keyframes bounceArrow {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 10px); }
}


/* Asterisk Accents */
.asterisk {
    font-weight: 900;
    font-size: 1.2em;
}

.asterisk.orange { color: var(--orange); }
.asterisk.blue { color: var(--blue); }

/* Intro Text Section */
.intro-text {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    padding: 6rem 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.matrix-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.55;
}

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

.intro-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.intro-line {
    font-size: clamp(1.05rem, 2.4vw, 1.8rem);
    line-height: 1.5;
    margin: 0;
    text-wrap: pretty;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.intro-word {
    display: inline-block;
    will-change: filter, opacity;
}

/* What I Do Section */
.what-i-do {
    background: var(--orange);
    color: var(--black);
    padding: 8rem 2rem;
    position: relative;
}

.what-content {
    max-width: 1400px;
    margin: 0 auto;
}

.what-title {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 4rem;
    line-height: 1;
}

/* Services Showcase */
.services-showcase {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.service-row {
    padding: 3rem 0;
    border-top: 2px solid rgba(0,0,0,0.15);
    transition: padding 0.3s ease;
    cursor: default;
}

.service-row:last-child {
    border-bottom: 2px solid rgba(0,0,0,0.15);
}

.service-row:hover {
    padding-left: 1rem;
}

.service-name {
    font-size: clamp(1.75rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.service-row:hover .service-name {
    transform: translateX(0.5rem);
}

.service-pitch {
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: 1.2rem;
    text-wrap: pretty;
}

.service-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-keywords span {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 0.9rem;
    background: rgba(0,0,0,0.1);
    border-radius: 20px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.services-divider {
    padding: 4rem 0 1rem;
    margin-top: 1rem;
}

.services-divider-text {
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    opacity: 0.7;
    letter-spacing: -0.01em;
}

.service-row--small .service-name {
    font-size: clamp(1.4rem, 3.5vw, 2.4rem);
}

.service-row--small .service-pitch {
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
}


/* Use Cases Cylinder Section */
.cases-section {
    background: var(--black);
    color: var(--white);
    position: relative;
    /* 1vh header band + sticky 100vh cylinder + 200vh scroll for helix rotation */
    min-height: 300vh;
    overflow: clip;
}

.cases-header {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem 2rem 2rem;
}

.cases-title {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
}

.cases-subtitle {
    font-size: clamp(0.95rem, 1.4vw, 1.1rem);
    color: var(--white);
    opacity: 0.6;
    margin-top: 0.8rem;
    font-weight: 400;
    text-wrap: pretty;
}

.cylinder-wrap {
    height: 100vh;
    perspective: 1200px;
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    max-width: 1000px;
}

.cylinder {
    width: clamp(260px, 55vw, 440px);
    height: clamp(180px, 38vw, 300px);
    position: relative;
    transform-style: preserve-3d;
}

.cyl-card {
    position: absolute;
    width: clamp(260px, 55vw, 440px);
    height: clamp(180px, 38vw, 300px);
    top: 0;
    left: 0;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: var(--white);
    display: block;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

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

.cyl-card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cyl-card-label h3 {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    font-weight: 700;
}

.cyl-card-label span {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.7rem;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* Logo marquee - Tijdelijk verborgen, wacht op klantlogo's */
.logo-marquee-section {
    display: none;
    background: var(--black);
    padding: 0;
}

.logo-marquee {
    overflow: hidden;
    padding: 1rem 0;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.logo-marquee-track {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.logo-marquee-item {
    height: 40px;
    width: auto;
    opacity: 0.4;
    flex-shrink: 0;
}

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


/* CTA Section — Variant A: circle right */
.cta {
    background: var(--blue);
    color: var(--white);
    padding: clamp(2rem, 5vw, 5rem);
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Logo circle */
.cta-circle {
    position: absolute;
    width: min(550px, 50vw);
    height: min(550px, 50vw);
    top: 50%;
    right: -5%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
}

.cta-circle-text {
    font-weight: 900;
    font-size: clamp(2.5rem, 5vw, 5rem);
    color: rgba(255, 255, 255, 0.12);
    letter-spacing: 0.05em;
    user-select: none;
    white-space: nowrap;
}

.cta-circle-ast {
    color: var(--orange);
    opacity: 0.6;
}

/* Main content */
.cta-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.cta-title {
    font-size: clamp(3.5rem, 10vw, 8rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
}

.cta-title .orange { color: var(--orange); }

.cta-button {
    display: inline-block;
    background: var(--white);
    color: var(--black);
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 999px;
    font-size: clamp(0.95rem, 1.4vw, 1.1rem);
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    align-self: flex-start;
    position: relative;
    transition: transform 0.26s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.26s cubic-bezier(0.2, 0, 0.2, 1);
}

.cta-button::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    animation: ctaPulse 2.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes ctaPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55);
    }
    100% {
        box-shadow: 0 0 0 18px rgba(255, 255, 255, 0);
    }
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.cta-button:hover::after {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .cta-button::after { animation: none; }
}

/* Bottom bar: contact left, email right */
.cta-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    z-index: 1;
    padding-top: 2rem;
}

.cta-contact {
    font-size: 0.85rem;
    opacity: 0.4;
}

.cta-contact a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.26s;
}

.cta-contact a:hover { opacity: 0.7; }

.cta-email-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.cta-email-label {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.55;
}


/* Email form */
.email-form {
    display: flex;
    gap: 0;
    width: 100%;
}

.email-input {
    flex: 1;
    min-width: 0;
    padding: 0.8rem 1.3rem;
    border: none;
    border-radius: 999px 0 0 999px;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.12);
    border-right: none;
    transition: border-color 0.26s;
}

.email-input:focus {
    border-color: rgba(255,255,255,0.35);
}

.email-input::placeholder {
    color: rgba(255,255,255,0.35);
}

.email-submit {
    padding: 0.8rem 1.4rem;
    border: none;
    border-radius: 0 999px 999px 0;
    background: rgba(255,255,255,0.12);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
}

.email-submit:hover {
    background: rgba(255,255,255,0.22);
}

.email-form-wrap {
    position: relative;
}

/* Flying email text */
.email-flying-text {
    position: absolute;
    pointer-events: none;
    font-size: 0.95rem;
    color: var(--white);
    white-space: nowrap;
    opacity: 0;
    z-index: 5;
}

/* Input faded state */
.email-input.faded {
    color: transparent;
    transition: color 0.15s;
}

/* Button success state — same size, text swaps to checkmark */
.email-submit {
    position: relative;
    overflow: hidden;
    transition: background 0.3s cubic-bezier(0.2, 0, 0.2, 1);
}

.email-submit.success {
    background: rgba(255,255,255,0.25);
    pointer-events: none;
    color: transparent;
}

.email-submit.success::after {
    content: '\2713';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--white);
    animation: checkPop 0.4s 0.1s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes checkPop {
    from { transform: scale(0) rotate(-20deg); opacity: 0; }
    to { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Confetti canvas — covers the form wrap area */
#confetti-canvas {
    position: absolute;
    inset: -50px;
    width: calc(100% + 100px);
    height: calc(100% + 100px);
    pointer-events: none;
    z-index: 4;
}

.email-form.submitted .email-input,
.email-form.submitted .email-submit {
    pointer-events: none;
    opacity: 0.5;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Wide laptop: nudge floating-card positions for narrower viewports.
   Use a CSS scale variable (not !important transform) so it composes with
   GSAP parallax transforms instead of fighting them. Opacity stays full. */
@media (max-width: 1280px) {
    .floating-card { --card-scale: 0.7; }
    .card-1 { left: -5%; top: -32%; }
    .card-2 { left: 15%; bottom: 85%; }
    .card-4 { right: 25%; bottom: -115%; }
    .card-6 { right: -6%; }
    .orange-block { width: 240px; height: 110px; opacity: 0.6; top: -55%; right: 8%; }
    .blue-block { width: 240px; height: 100px; opacity: 0.6; bottom: -55%; left: 6%; }
}

/* Small laptop / large tablet */
@media (max-width: 1024px) {
    :root { --nav-pad: 1.5rem; }
    .floating-card { --card-scale: 0.55; }
    .card-1 { left: -10%; top: -38%; }
    .card-2 { left: 8%; bottom: 92%; }
    .card-4 { right: 18%; bottom: -125%; }
    .card-6 { right: -10%; top: -8%; }
    .orange-block { opacity: 0.5; top: -62%; }
    .blue-block { opacity: 0.5; bottom: -62%; }
    .what-i-do { padding: 6rem 1.75rem; }
    .cta { padding: clamp(3rem, 8vh, 6rem) 1.75rem; }
}

/* Logo marquee section sits between cases and CTA — keep it tight on desktop */
.logo-marquee-section { padding: 0; }

/* Tablet: floating cards hidden, helix → stack */
@media (max-width: 768px) {
    :root { --nav-pad: 1.25rem; }

    /* Hero: hide floating cards entirely */
    .floating-card,
    .orange-block,
    .blue-block {
        display: none !important;
    }

    /* Hero text: tighter scale */
    .hero {
        padding: 6rem 1.25rem 5rem;
        min-height: 100vh;
        min-height: 100svh;
        height: 100dvh;
    min-height: 100dvh;
    }
    .hero-text { font-size: clamp(3rem, 14vw, 6rem); }
    .hero-line-2 { font-size: 0.7em; }

    /* Intro */
    .intro-text { padding: 4rem 1.25rem; }

    /* Diensten */
    .what-i-do { padding: 5rem 1.25rem; }
    .what-title { margin-bottom: 2.5rem; }

    /* Cases: helix → horizontal swipeable carousel that fits the viewport */
    .cases-section {
        min-height: 100vh;
        min-height: 100svh;
        height: 100dvh;
    min-height: 100dvh;
        height: 100vh;
        height: 100svh;
        height: 100dvh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    .cases-header { padding: 4rem 1.25rem 1rem; flex-shrink: 0; }
    .cylinder-wrap {
        height: auto;
        perspective: none;
        position: relative;
        top: auto;
        max-width: none;
        padding: 0 0 2rem;
        flex: 1;
        display: flex;
        align-items: center;
        min-height: 0;
    }
    .cylinder {
        width: 100%;
        height: 100%;
        max-height: 60vh;
        transform-style: flat;
        transform: none !important;
        display: flex;
        flex-direction: row;
        gap: 1rem;
        padding: 0 1.25rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .cylinder::-webkit-scrollbar { display: none; }
    .cyl-card {
        position: relative;
        width: 80% !important;
        max-width: 360px;
        height: 100%;
        flex-shrink: 0;
        scroll-snap-align: center;
        top: auto;
        left: auto;
        transform: none !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
        opacity: 1 !important;
    }
    .cylinder {
        width: 100%;
        height: 100%;
        max-height: 60vh;
        transform-style: flat;
        transform: none !important;
        display: flex;
        flex-direction: row;
        gap: 1rem;
        padding: 0 1.25rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .cylinder::-webkit-scrollbar { display: none; }
    .cyl-card {
        position: relative;
        width: 80% !important;
        max-width: 360px;
        height: 100%;
        flex-shrink: 0;
        scroll-snap-align: center;
        top: auto;
        left: auto;
        transform: none !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
        opacity: 1 !important;
    }

    /* Logo marquee */
    .logo-marquee-item { height: 32px; }
    .logo-marquee-track { gap: 3rem; }

    /* CTA */
    .cta { padding: 3rem 1.25rem; }
    .cta-circle { width: min(400px, 60vw); height: min(400px, 60vw); right: -10%; }
    .cta-bottom { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
    .cta-email-wrap { align-items: flex-start; }
}

/* Mobile */
@media (max-width: 600px) {
    :root { --nav-pad: 1rem; }

    /* Smaller corner nav so it doesn't dominate */
    .nav-corners a { font-size: 0.85rem; }
    .nav-logo { font-size: 1rem; }

    /* Hero - leave room for fixed corner nav */
    .hero { padding: 5.5rem 1rem 5rem; }
    .hero-text { font-size: clamp(2.4rem, 13vw, 4rem); }
    .hero-line-1 .changing-word { display: inline-block; }

    /* Intro */
    .intro-text { padding: 3rem 1rem; }
    .intro-line { font-size: 1.05rem; }

    /* Diensten */
    .what-i-do { padding: 3.5rem 1rem; }
    .what-title { margin-bottom: 2rem; }
    .service-row { padding: 2rem 0; }
    .service-row:hover { padding-left: 0; }
    .service-row:hover .service-name { transform: none; }
    .service-name { margin-bottom: 0.6rem; }
    .service-pitch { font-size: 0.95rem; margin-bottom: 1rem; }
    .service-keywords span { font-size: 0.7rem; padding: 0.2rem 0.7rem; }

    /* Cases */
    .cases-header { padding: 3rem 1rem 1rem; }
    .cylinder { gap: 1rem; padding: 0 1rem; }
    .cyl-card { aspect-ratio: 16 / 10; }
    .cyl-card-label { padding: 1rem; gap: 0.6rem; }
    .cyl-card-label h3 { font-size: 0.95rem; }
    .cyl-card-label span { font-size: 0.6rem; padding: 0.2rem 0.55rem; }

    /* Logo marquee */
    .logo-marquee-item { height: 24px; }
    .logo-marquee-track { gap: 2rem; }
    .logo-marquee {
        -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
        mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    }

    /* CTA */
    .cta { padding: 2.5rem 1rem; }
    .cta-circle { width: min(300px, 70vw); height: min(300px, 70vw); right: -15%; }
    .cta-circle-text { font-size: 1.8rem; }
    .cta-title { font-size: clamp(2.8rem, 12vw, 5rem); margin-bottom: 1.5rem; }
    .cta-button { padding: 1rem 2.25rem; font-size: 1rem; }
    .cta-bottom { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
    .cta-email-wrap { align-items: flex-start; }
    .email-form { flex-direction: column; gap: 0.5rem; max-width: 300px; }
    .email-input { border-radius: 999px; border-right: 1px solid rgba(255,255,255,0.12); }
    .email-submit { border-radius: 999px; }

    /* Hide scroll indicator on mobile - takes too much space */
    .scroll-indicator { display: none; }
}

/* Very narrow phones */
@media (max-width: 380px) {
    :root { --nav-pad: 0.85rem; }
    .nav-corners a { font-size: 0.78rem; }
    .nav-logo { font-size: 0.95rem; }
    .hero-text { font-size: clamp(2.1rem, 12.5vw, 3rem); }
    .what-title, .cases-title { font-size: 2.6rem; }
    .service-name { font-size: 1.6rem; }
    .cta-title { font-size: 2.4rem; }
}

/* Short viewports (landscape phone) */
@media (max-height: 520px) and (orientation: landscape) {
    .hero { min-height: auto; padding: 5rem 1.5rem 4rem; }
    .scroll-indicator { display: none; }
    .cta { padding: 3rem 1rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .scroll-indicator { animation: none; }
}

/* Intake Modal */
.intake-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.intake-overlay.active {
    opacity: 1;
    visibility: visible;
}

.intake-modal {
    background: var(--white);
    color: var(--black);
    border-radius: 16px;
    width: 100%;
    max-width: 640px;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 1.75rem 2rem;
    position: relative;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s ease;
}

.intake-overlay.active .intake-modal {
    transform: translateY(0) scale(1);
}

.intake-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--black);
    opacity: 0.4;
    transition: opacity 0.2s;
    line-height: 1;
}

.intake-close:hover {
    opacity: 1;
}

.intake-header {
    margin-bottom: 1rem;
}

.intake-header h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
}

.intake-header p {
    font-size: 0.85rem;
    opacity: 0.6;
}

.intake-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.intake-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.intake-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.intake-field > label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.intake-field input,
.intake-field textarea,
.intake-field select {
    padding: 0.6rem 0.85rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    background: var(--white);
    color: var(--black);
    transition: border-color 0.2s;
    outline: none;
}

.intake-field input:focus,
.intake-field textarea:focus,
.intake-field select:focus {
    border-color: var(--blue);
}

.intake-field textarea {
    resize: vertical;
    min-height: 60px;
}

.intake-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23000' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.intake-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.15rem;
}

.intake-check {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0;
}

.intake-check input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.intake-check span {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    transition: all 0.2s;
    user-select: none;
}

.intake-check input:checked + span {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

.intake-check span:hover {
    border-color: var(--blue);
}

.intake-submit {
    margin-top: 0.5rem;
    padding: 1rem 2.5rem;
    background: var(--black);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    align-self: flex-start;
}

.intake-submit:hover {
    transform: translateY(-2px);
    background: #222;
}

.intake-success {
    display: none;
    text-align: center;
    padding: 2rem 0;
}

.intake-success.show {
    display: block;
}

.intake-success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.intake-success h3 {
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.intake-success p {
    font-size: 0.95rem;
    opacity: 0.6;
}

@media (max-width: 600px) {
    .intake-modal { padding: 1.75rem 1.25rem; }
    .intake-row { grid-template-columns: 1fr; }
    .intake-submit { width: 100%; text-align: center; }
}

/* Smooth Animations utility */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Formulier-bescherming + foutstaten ─────────────────── */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.intake-error {
    color: #cc0000;
    background: #ffeaea;
    border: 1px solid #cc0000;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 14px;
}

.intake-error[hidden] {
    display: none;
}

.intake-field input.error,
.intake-field textarea.error,
.intake-field select.error {
    border-color: #cc0000;
}

.email-input.error {
    border-color: #cc0000;
}

.email-submit.error {
    background: #cc0000;
}

.cf-turnstile {
    margin: 12px 0;
}
