body {
    margin: 0;
    padding: 0;
    font-family: "Manrope", Arial, Helvetica, sans-serif;
    background: #120e22;
    color: #fff;
}

.wrapper {
    position: relative;
}

html, body {
    overflow-x: hidden;
}

svg.parallax {
    display: block;
    width: 100%;
    height: 100vh;
    position: fixed;
    z-index: 3;
    top: 0;
    left: 0;
}

.scrollElement {
    position: absolute;
    min-height: 5800px;
    height: 5800px;
    width: 100%;
    top: 0;
    z-index: 4;
    pointer-events: none;
}

.btn {
    position: fixed;
    bottom: 5%;
    right: 0px;
    transform: translateX(-50%);
    border: 1px solid #fff;
    border-radius: 5px;
    font-size: 0.9rem;
    padding: 0.5rem 0.7em;
    background-color: transparent;
    color: #ffffff;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    -webkit-font-smoothing: antialiased;
    cursor: pointer;
    transition: all .3s;
    z-index: 11;
}

.btn:hover {
    background: #ffffff;
    color: #1B1734;
}

#info,
#info2,
.svg-intro text,
.svg-footer text {
    font-family: "Space Grotesk", "Manrope", Arial, Helvetica, sans-serif;
}

/* Desktop/mobile hero+footer-varianten in de SVG. Default: desktop tonen,
   mobile verbergen. Op telefoon (<=720px) wisselt dat om. */
.hero-mobile,
.footer-mobile {
    display: none;
}

.hero-mobile-overlay,
.stack-scroll-cue,
.footer-card-mobile,
.footer-mobile-mountain-mask {
    display: none;
}

@media (max-width: 720px) {
    #info,
    #info2 {
        display: none;
    }

    .hero-desktop,
    .footer-desktop {
        display: none;
    }
    .hero-mobile,
    .footer-mobile {
        display: inline;
    }
}

@media (max-width: 720px) {
    .hero-mobile-overlay {
        --hero-mobile-arrow-opacity: 0.56;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 9;
        display: block;
        width: 100%;
        min-height: 100vh;
        height: 100svh;
        box-sizing: border-box;
        color: #fff;
        text-align: center;
        pointer-events: none;
    }

    .hero-mobile-overlay.is-scroll-bound {
        position: fixed;
    }

    .hero-mobile-overlay__stage {
        position: absolute;
        inset: 0;
        display: flex;
        box-sizing: border-box;
        padding: max(200px, calc(env(safe-area-inset-top) + 108px)) 20px 84px;
        align-items: flex-start;
        justify-content: center;
        overflow: hidden;
        -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 68%, rgba(0, 0, 0, 0.82) 76%, rgba(0, 0, 0, 0.22) 86%, transparent 94%);
        mask-image: linear-gradient(to bottom, #000 0%, #000 68%, rgba(0, 0, 0, 0.82) 76%, rgba(0, 0, 0, 0.22) 86%, transparent 94%);
    }

    .hero-mobile-overlay__inner {
        display: flex;
        width: min(100%, 420px);
        align-items: center;
        flex-direction: column;
        gap: 14px;
        text-shadow: 0 12px 34px rgba(18, 14, 34, 0.36);
    }

    .hero-mobile-overlay__photo {
        width: 126px;
        height: 126px;
        margin-bottom: 8px;
        border: 4px solid rgba(255, 255, 255, 0.8);
        border-radius: 50%;
        object-fit: cover;
        box-shadow: 0 20px 48px rgba(18, 14, 34, 0.32);
    }

    .hero-mobile-overlay__title {
        margin: 0;
        color: #fff;
        font-family: "Space Grotesk", "Manrope", Arial, Helvetica, sans-serif;
        font-size: 2.95rem;
        font-weight: 800;
        letter-spacing: 0;
        line-height: 0.94;
    }

    .hero-mobile-overlay__title span {
        display: block;
        white-space: nowrap;
    }

    .hero-mobile-overlay__subtitle,
    .hero-mobile-overlay__meta {
        max-width: 20rem;
        margin: 0;
        color: rgba(255, 255, 255, 0.92);
        font-size: 1.02rem;
        font-weight: 700;
        line-height: 1.45;
    }

    .hero-mobile-overlay__meta {
        max-width: 18rem;
        color: rgba(255, 255, 255, 0.94);
        font-size: 0.94rem;
        font-weight: 750;
        text-shadow: 0 8px 22px rgba(18, 14, 34, 0.48);
    }

    .hero-mobile-overlay__scroll {
        display: flex;
        margin-top: 14px;
        align-items: center;
        flex-direction: column;
        gap: 7px;
        color: rgba(255, 255, 255, 0.9);
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-shadow: 0 8px 20px rgba(18, 14, 34, 0.5);
        text-transform: uppercase;
    }

    .hero-mobile-overlay__scroll.hero-reveal {
        animation:
            heroBlurReveal 1.1s cubic-bezier(0.22, 1, 0.36, 1) both,
            mobileSwipeFloat 1.55s ease-in-out infinite;
        animation-delay: 1.25s, 2.25s;
    }

    .hero-mobile-overlay__scroll span,
    .hero-mobile-overlay__finger {
        opacity: var(--hero-mobile-arrow-opacity);
    }

    .hero-mobile-overlay__finger {
        display: grid;
        width: 30px;
        height: 30px;
        place-items: center;
        color: currentColor;
    }

    .hero-mobile-overlay__finger svg {
        display: block;
        width: 100%;
        height: 100%;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 1.7;
    }

    .footer-card-mobile {
        position: relative;
        z-index: 9;
        display: flex;
        width: min(calc(100vw - 28px), 430px);
        min-height: 640px;
        min-height: min(82svh, 700px);
        box-sizing: border-box;
        margin: 74px auto max(90px, 14svh);
        padding: 34px 24px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 14px;
        border: 1px solid rgba(255, 219, 158, 0.84);
        border-radius: 22px;
        background: #fff7ec;
        color: #17142c;
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
        text-align: center;
        pointer-events: auto;
    }

    .portfolio-site.has-mobile-footer-reveal {
        padding-bottom: 128vh;
        padding-bottom: 128svh;
    }

    .footer-card-mobile.is-scroll-bound {
        display: flex;
        position: fixed;
        top: 52%;
        left: 50%;
        z-index: 920;
        margin: 0;
        opacity: 1;
        transform: translate(-50%, 110vh);
        visibility: visible;
        will-change: transform, opacity;
    }

    .footer-mobile-mountain-mask.is-scroll-bound {
        position: fixed;
        right: 0;
        bottom: -1px;
        left: 0;
        z-index: 950;
        display: block;
        height: 18vh;
        height: 18svh;
        background: linear-gradient(180deg, #151025 0%, #090713 78%);
        clip-path: polygon(0 42%, 9% 35%, 21% 45%, 34% 30%, 48% 40%, 62% 26%, 78% 34%, 91% 18%, 100% 24%, 100% 100%, 0 100%);
        opacity: 0;
        pointer-events: none;
        transform: translateY(12vh);
        visibility: visible;
        will-change: transform, opacity;
    }

    .footer-card-mobile__photo {
        width: 112px;
        height: 112px;
        margin-bottom: 8px;
        border: 4px solid #ffdb9e;
        border-radius: 50%;
        object-fit: cover;
        box-shadow: 0 16px 34px rgba(18, 14, 34, 0.18);
    }

    .footer-card-mobile__kicker,
    .footer-card-mobile__small {
        margin: 0;
        font-weight: 800;
        line-height: 1.45;
    }

    .footer-card-mobile__kicker {
        color: #8c4a10;
        font-family: "Space Grotesk", "Manrope", Arial, Helvetica, sans-serif;
        font-size: 0.76rem;
        letter-spacing: 0;
        text-transform: uppercase;
    }

    .footer-card-mobile__title {
        width: 100%;
        margin: 0 0 8px;
        color: #17142c;
        font-family: "Space Grotesk", "Manrope", Arial, Helvetica, sans-serif;
        font-size: 1.54rem;
        font-weight: 800;
        letter-spacing: 0;
        line-height: 1.08;
    }

    .footer-card-mobile__title span {
        display: block;
        white-space: nowrap;
    }

    .footer-card-mobile__link {
        color: #1d4ed8;
        font-size: 1.06rem;
        font-weight: 800;
        line-height: 1.35;
        overflow-wrap: anywhere;
        text-decoration: none;
        pointer-events: auto;
    }

.footer-card-mobile__link:hover {
    text-decoration: underline;
}

.footer-card-mobile__link--social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-card-mobile__link--social .linkedin-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
}

.footer-card-mobile__link--social .linkedin-icon svg {
    width: 14px;
    height: 14px;
}

.footer-card-mobile__small {
    max-width: 18rem;
    margin-top: 10px;
    color: rgba(23, 20, 44, 0.68);
    font-size: 0.92rem;
    }
}

@media (min-width: 390px) and (max-width: 720px) {
    .hero-mobile-overlay__title {
        font-size: 3.18rem;
    }

    .footer-card-mobile__title {
        font-size: 1.62rem;
    }
}

@media (max-width: 374px) {
    .hero-mobile-overlay__photo {
        width: 116px;
        height: 116px;
    }

    .hero-mobile-overlay__title {
        font-size: 2.82rem;
    }

    .hero-mobile-overlay__subtitle {
        font-size: 0.98rem;
    }

    .footer-card-mobile__title {
        font-size: 1.5rem;
    }

    .footer-card-mobile {
        width: min(calc(100vw - 24px), 430px);
        padding-right: 22px;
        padding-left: 22px;
    }
}

@keyframes mobileSwipeFloat {
    0%, 100% {
        transform: translateY(3px);
    }
    50% {
        transform: translateY(-7px);
    }
}

@keyframes stackScrollCueFloat {
    0%, 100% {
        transform: translateY(6px) rotate(-2deg);
    }
    50% {
        transform: translateY(-12px) rotate(2deg);
    }
}

@keyframes stackScrollCueWiggle {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-2px) rotate(-1.5deg);
    }
    75% {
        transform: translateY(2px) rotate(1.5deg);
    }
}

@keyframes stackScrollCueBounce {
    0%, 100% {
        transform: translateY(0) scale(1) rotate(4deg);
    }
    40% {
        transform: translateY(-10px) scale(1.12) rotate(-6deg);
    }
    70% {
        transform: translateY(2px) scale(0.96) rotate(2deg);
    }
}


.svg-intro-title-mobile {
    fill: #fff;
    font-size: 26px;
    font-weight: 800;
    font-family: "Space Grotesk", "Manrope", Arial, Helvetica, sans-serif;
}

.svg-intro-line-mobile {
    fill: rgba(255, 255, 255, 0.94);
    font-size: 9px;
    font-weight: 700;
    font-family: "Space Grotesk", "Manrope", Arial, Helvetica, sans-serif;
}

.svg-intro-small-mobile {
    fill: rgba(255, 255, 255, 0.82);
    font-size: 7.5px;
    font-weight: 600;
    font-family: "Space Grotesk", "Manrope", Arial, Helvetica, sans-serif;
}

.svg-footer-kicker-mobile {
    fill: #8c4a10;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: "Space Grotesk", "Manrope", Arial, Helvetica, sans-serif;
}

.svg-footer-title-mobile {
    fill: #17142c;
    font-size: 12px;
    font-weight: 800;
    font-family: "Space Grotesk", "Manrope", Arial, Helvetica, sans-serif;
}

.svg-footer-line-mobile {
    fill: #1d4ed8;
    font-size: 9px;
    font-weight: 700;
    font-family: "Space Grotesk", "Manrope", Arial, Helvetica, sans-serif;
}

.svg-footer-icon-text-mobile {
    fill: #fff;
    font-size: 7px;
    font-weight: 800;
    font-family: "Space Grotesk", "Manrope", Arial, Helvetica, sans-serif;
}

.svg-footer-small-mobile {
    fill: rgba(23, 20, 44, 0.72);
    font-size: 7.5px;
    font-weight: 600;
    font-family: "Space Grotesk", "Manrope", Arial, Helvetica, sans-serif;
}

.svg-intro-title {
    fill: #fff;
    font-size: 37px;
    font-weight: 800;
}

.hero-reveal {
    opacity: 0;
    filter: blur(18px);
    transform: translateY(8px);
    transform-box: fill-box;
    transform-origin: 50% 50%;
    animation: heroBlurReveal 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-reveal--1 { animation-delay: 0.15s; }
.hero-reveal--2 { animation-delay: 0.45s; }
.hero-reveal--3 { animation-delay: 0.75s; }
.hero-reveal--4 { animation-delay: 1.0s; }
.hero-reveal--5 { animation-delay: 1.25s; }

@keyframes heroBlurReveal {
    0% {
        opacity: 0;
        filter: blur(18px);
        transform: translateY(8px);
    }
    60% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-reveal {
        animation: none;
        opacity: 1;
        filter: none;
        transform: none;
    }

    .language-fab__toggle,
    .language-fab__option {
        transition-duration: 0.01ms;
    }
}

.svg-intro-line {
    fill: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    font-weight: 700;
}

.svg-intro-small {
    fill: rgba(255, 255, 255, 0.82);
    font-size: 11px;
    font-weight: 600;
}

.svg-footer-title {
    fill: #17142c;
    font-size: 16px;
    font-weight: 800;
    paint-order: stroke;
    stroke: rgba(255, 255, 255, 0.34);
    stroke-width: 0.8px;
}

.svg-footer-kicker {
    fill: #8c4a10;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.svg-footer-line {
    fill: #1d4ed8;
    font-size: 10px;
    font-weight: 700;
}

.svg-footer-icon-text {
    fill: #fff;
    font-size: 7px;
    font-weight: 800;
}

.svg-footer-small {
    fill: rgba(23, 20, 44, 0.72);
    font-size: 8.5px;
    font-weight: 600;
}

.portfolio-site {
    position: relative;
    z-index: 8;
    width: min(920px, calc(100% - 32px));
    margin: 0 auto;
    padding: 96vh 0 10vh;
    pointer-events: none;
}

.portfolio-site a,
.portfolio-site button,
.portfolio-site img,
.portfolio-footer a {
    pointer-events: auto;
}

.portfolio-nav {
    position: sticky;
    top: 18px;
    z-index: 20;
    display: flex;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(18, 14, 34, 0.52);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px);
    pointer-events: auto;
}

.portfolio-nav a {
    border-radius: 999px;
    padding: 9px 13px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.88rem;
    font-weight: 750;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.portfolio-nav a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transform: translateY(-1px);
}

/* -------------------- Floating navbar pill -------------------- */
.glass-nav {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 10px 9px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 6px 22px rgba(8, 6, 24, 0.18);
    font-family: "Manrope", Arial, Helvetica, sans-serif;
}

.glass-nav__brand {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid #1a1235;
    color: #1a1235;
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    margin-left: -10px;
    margin-right: 4px;
    box-shadow: 0 2px 6px rgba(8, 6, 24, 0.12);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.glass-nav__brand:hover {
    background: #1a1235;
    color: #fff;
}

.glass-nav__links {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.glass-nav__links a {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border-radius: 999px;
    color: rgba(26, 18, 53, 0.72);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.glass-nav__links a:hover {
    background: rgba(26, 18, 53, 0.07);
    color: #1a1235;
}

.glass-nav__cta {
    background: #1a1235;
    color: #fff !important;
    padding: 9px 16px !important;
}

.glass-nav__cta:hover {
    background: #2a1f4d !important;
    color: #fff !important;
}

/* -------------------- Contact overlay -------------------- */
.contact-overlay {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: grid;
    place-items: center;
    padding: 18px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.26s ease, visibility 0s linear 0.26s;
    font-family: "Manrope", Arial, Helvetica, sans-serif;
}

.contact-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

.contact-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 13, 38, 0);
    backdrop-filter: blur(0) saturate(1);
    -webkit-backdrop-filter: blur(0) saturate(1);
    transition: background 0.38s ease, backdrop-filter 0.42s ease, -webkit-backdrop-filter 0.42s ease;
}

.contact-overlay.is-open .contact-overlay__backdrop {
    background: rgba(18, 13, 38, 0.48);
    backdrop-filter: blur(18px) saturate(1.1);
    -webkit-backdrop-filter: blur(18px) saturate(1.1);
}

.contact-dialog {
    position: relative;
    display: grid;
    width: min(520px, calc(100vw - 36px));
    max-height: calc(100dvh - 36px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 255, 0.94));
    color: #1a1235;
    box-shadow: 0 30px 90px rgba(15, 10, 35, 0.3);
    padding: 0;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.34s cubic-bezier(0.2, 1, 0.22, 1);
}

.contact-overlay.is-open .contact-dialog {
    transform: translateY(0) scale(1);
}

.contact-dialog.is-success {
    min-height: 420px;
}

.contact-dialog__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(26, 18, 53, 0.08);
    color: #1a1235;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.contact-dialog__close:hover {
    background: rgba(26, 18, 53, 0.14);
    transform: rotate(6deg);
}

.contact-dialog__close svg,
.contact-form__submit svg,
.contact-success__mark svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-dialog__intro {
    padding: 28px 72px 18px 26px;
    border-bottom: 1px solid rgba(26, 18, 53, 0.08);
    background:
        radial-gradient(280px 130px at 10% 0%, rgba(34, 211, 238, 0.16), transparent 70%),
        radial-gradient(260px 140px at 92% 10%, rgba(244, 114, 182, 0.14), transparent 68%);
}

.contact-dialog__spark {
    display: inline-grid;
    width: 38px;
    height: 38px;
    margin-bottom: 12px;
    border-radius: 14px;
    background: conic-gradient(from 180deg, #22d3ee, #7c5cff, #f472b6, #34d399, #22d3ee);
    box-shadow: 0 16px 32px rgba(124, 92, 255, 0.22);
    animation: contactWiggle 3.2s ease-in-out infinite;
}

.contact-dialog__kicker {
    margin: 0 0 7px;
    color: #6b5bd7;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-dialog h2 {
    margin: 0;
    color: #1a1235;
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: 1.65rem;
    line-height: 1.12;
    letter-spacing: 0;
}

.contact-dialog__intro p:last-child {
    max-width: 500px;
    margin: 10px 0 0;
    color: rgba(26, 18, 53, 0.68);
    font-size: 0.95rem;
    line-height: 1.55;
    font-weight: 650;
}

.contact-form {
    display: grid;
    gap: 13px;
    max-height: min(540px, calc(100dvh - 220px));
    overflow: auto;
    padding: 20px 26px 26px;
    margin: 0;
}

.contact-form__trap {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.contact-form__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 13px;
}

.contact-form label {
    display: grid;
    gap: 8px;
}

.contact-form label span {
    color: rgba(26, 18, 53, 0.72);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(26, 18, 53, 0.14);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.74);
    color: #1a1235;
    font: inherit;
    font-size: 1rem;
    font-weight: 650;
    outline: 0;
    padding: 13px 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-form textarea {
    min-height: 128px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(124, 92, 255, 0.72);
    background: #fff;
    box-shadow: 0 0 0 5px rgba(124, 92, 255, 0.12);
}

.contact-form__hint {
    min-height: 20px;
    margin: -2px 0 0;
    color: rgba(26, 18, 53, 0.58);
    font-size: 0.88rem;
    font-weight: 700;
}

.contact-form__hint.is-error {
    color: #d52755;
}

.contact-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 16px;
    background: #1a1235;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    box-shadow: 0 16px 36px rgba(26, 18, 53, 0.24);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.contact-form__submit:hover {
    transform: translateY(-2px);
    background: #2a1f4d;
    box-shadow: 0 20px 44px rgba(26, 18, 53, 0.3);
}

.contact-form__submit.is-loading svg {
    animation: contactArrow 0.7s ease-in-out infinite;
}

.contact-success {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    padding: 28px;
    border-radius: inherit;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(241, 253, 249, 0.94));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    text-align: center;
    overflow: hidden;
}

.contact-dialog.is-success .contact-success {
    opacity: 1;
    visibility: visible;
    animation: contactSuccessIn 0.46s cubic-bezier(0.2, 1, 0.22, 1) both;
}

.contact-success__mark {
    display: grid;
    width: 68px;
    height: 68px;
    place-items: center;
    border-radius: 24px;
    background: linear-gradient(135deg, #34d399, #22d3ee);
    color: #fff;
    box-shadow: 0 18px 40px rgba(34, 211, 238, 0.3);
    animation: contactPop 0.6s cubic-bezier(0.2, 1, 0.22, 1) both;
}

.contact-success__mark svg {
    width: 34px;
    height: 34px;
}

.contact-success h2 {
    font-size: 2rem;
}

.contact-success p {
    margin: 0;
    color: rgba(26, 18, 53, 0.68);
    font-size: 1rem;
    font-weight: 800;
}

.contact-success__dot {
    position: absolute;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    opacity: 0;
    animation: contactDot 0.9s ease-out 0.1s both;
}

.contact-success__dot--1 {
    top: 24%;
    left: 20%;
    background: #f472b6;
}

.contact-success__dot--2 {
    top: 18%;
    right: 23%;
    background: #22d3ee;
    animation-delay: 0.18s;
}

.contact-success__dot--3 {
    right: 18%;
    bottom: 24%;
    background: #34d399;
    animation-delay: 0.26s;
}

body.contact-lock {
    overflow: hidden;
}

@keyframes contactWiggle {
    0%, 100% { transform: rotate(-4deg) scale(1); }
    50% { transform: rotate(6deg) scale(1.06); }
}

@keyframes contactArrow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

@keyframes contactSuccessIn {
    from { opacity: 0; transform: scale(0.94); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes contactPop {
    from { transform: scale(0.7) rotate(-10deg); }
    to { transform: scale(1) rotate(0); }
}

@keyframes contactDot {
    0% { opacity: 0; transform: translateY(20px) scale(0.4); }
    35% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-44px) scale(1.4); }
}

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

.contact-dialog.contact-dialog--chat {
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: min(440px, calc(100vw - 48px));
    min-height: min(620px, calc(100dvh - 64px));
    max-height: min(640px, calc(100dvh - 64px));
}

.chat-dialog__header {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 18px 64px 17px 20px;
    border-bottom: 1px solid rgba(26, 18, 53, 0.08);
    background:
        radial-gradient(220px 120px at 8% 0%, rgba(34, 211, 238, 0.18), transparent 72%),
        radial-gradient(220px 130px at 94% 12%, rgba(244, 114, 182, 0.15), transparent 70%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(247, 249, 255, 0.86));
}

.chat-dialog__avatar {
    display: grid;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(from 180deg, #22d3ee, #7c5cff, #f472b6, #34d399, #22d3ee);
    color: #fff;
    box-shadow: 0 16px 34px rgba(124, 92, 255, 0.24);
    animation: chatAvatarBreathe 3s ease-in-out infinite;
}

.chat-dialog__avatar svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.chat-dialog__kicker {
    margin: 0 0 4px;
    color: #6b5bd7;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.chat-dialog__header h2 {
    margin: 0;
    font-size: 1.34rem;
    line-height: 1.1;
}

.chat-dialog__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    color: rgba(26, 18, 53, 0.62);
    font-size: 0.82rem;
    font-weight: 850;
}

.chat-dialog__status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.16);
    animation: chatStatusPulse 1.8s ease-out infinite;
}

.chat-dialog__log {
    display: flex;
    min-height: 0;
    overflow: auto;
    flex-direction: column;
    gap: 10px;
    padding: 18px 22px;
    background: rgba(247, 249, 255, 0.6);
    scroll-padding: 18px;
    overscroll-behavior: contain;
}

.chat-row {
    display: flex;
    width: 100%;
}

.chat-row--bot {
    justify-content: flex-start;
}

.chat-row--user {
    justify-content: flex-end;
}

.chat-bubble {
    max-width: 82%;
    padding: 11px 14px;
    border-radius: 18px;
    font-size: 0.95rem;
    font-weight: 750;
    line-height: 1.48;
    overflow-wrap: anywhere;
    white-space: pre-line;
    word-break: break-word;
}

.chat-bubble--bot {
    border: 1px solid rgba(26, 18, 53, 0.08);
    border-top-left-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    color: #1a1235;
    box-shadow: 0 12px 28px rgba(24, 18, 52, 0.08);
}

.chat-bubble--user {
    border-top-right-radius: 8px;
    background: linear-gradient(135deg, #7c5cff, #22d3ee);
    color: #fff;
    box-shadow: 0 14px 30px rgba(34, 211, 238, 0.24);
}

.chat-bubble--error {
    border-color: rgba(213, 39, 85, 0.22);
    color: #8b1734;
}

.chat-bubble--success {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-color: rgba(52, 211, 153, 0.28);
    background: linear-gradient(135deg, rgba(241, 253, 249, 0.98), rgba(255, 255, 255, 0.96));
}

.chat-bubble__check {
    display: grid;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 11px;
    background: linear-gradient(135deg, #34d399, #22d3ee);
    color: #fff;
    box-shadow: 0 10px 22px rgba(34, 211, 238, 0.24);
}

.chat-bubble__check svg,
.chat-dialog__send svg,
.chat-fab svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chat-bubble--enter {
    animation: chatBubbleEnter 0.22s ease-out both;
}

.chat-typing {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 5px;
    width: max-content;
    padding: 13px 15px;
    border: 1px solid rgba(26, 18, 53, 0.08);
    border-radius: 18px 18px 18px 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 28px rgba(24, 18, 52, 0.08);
}

.chat-typing span {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(124, 92, 255, 0.72);
    animation: chatTypingDot 0.9s ease-in-out infinite;
}

.chat-typing span:nth-child(2) {
    animation-delay: 120ms;
}

.chat-typing span:nth-child(3) {
    animation-delay: 240ms;
}

.chat-dialog__composer {
    position: sticky;
    bottom: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border-top: 1px solid rgba(26, 18, 53, 0.08);
    background: rgba(255, 255, 255, 0.96);
}

.chat-dialog__field {
    display: block;
    min-width: 0;
}

.chat-dialog__field input {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid rgba(26, 18, 53, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.86);
    color: #1a1235;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    outline: 0;
    padding: 13px 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.chat-dialog__field input:focus {
    border-color: rgba(124, 92, 255, 0.72);
    background: #fff;
    box-shadow: 0 0 0 5px rgba(124, 92, 255, 0.18);
}

.chat-dialog__field input.is-invalid {
    border-color: rgba(213, 39, 85, 0.52);
    animation: chatInputShake 0.12s ease-in-out;
}

.chat-dialog__send {
    position: relative;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c5cff, #22d3ee);
    color: #fff;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(34, 211, 238, 0.26);
    transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.2s ease;
}

.chat-dialog__send::after {
    content: "";
    position: absolute;
    inset: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.26);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.chat-dialog__send:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 38px rgba(34, 211, 238, 0.32);
}

.chat-dialog__send:active {
    transform: scale(0.94);
}

.chat-dialog__send:active::after {
    opacity: 1;
    transform: scale(1.7);
}

.chat-dialog__send:disabled,
.chat-dialog__composer.is-disabled {
    cursor: default;
}

.chat-dialog__send:disabled {
    opacity: 0.58;
    transform: none;
}

.chat-fab {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 1250;
    display: grid;
    width: 60px;
    height: 60px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c5cff, #22d3ee 58%, #34d399);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 18px 42px rgba(15, 10, 35, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.32);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.chat-fab::before,
.chat-fab::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}

.chat-fab::before {
    box-shadow: 0 0 0 8px rgba(34, 211, 238, 0.08);
}

.chat-fab::after {
    border: 1px solid rgba(34, 211, 238, 0.5);
    animation: chatFabPing 3s ease-out infinite;
}

.chat-fab:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 22px 48px rgba(15, 10, 35, 0.38), inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

.chat-fab__icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
}

.chat-fab svg {
    width: 28px;
    height: 28px;
    fill: rgba(255, 255, 255, 0.16);
    stroke-width: 2;
}

.chat-fab__badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.18);
}

@keyframes chatAvatarBreathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

@keyframes chatStatusPulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.32); }
    70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

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

@keyframes chatTypingDot {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
    40% { transform: translateY(-4px); opacity: 1; }
}

@keyframes chatInputShake {
    0%, 100% { transform: translateX(0); }
    33% { transform: translateX(-5px); }
    66% { transform: translateX(5px); }
}

@keyframes chatFabPing {
    0% { opacity: 0.42; transform: scale(1); }
    70%, 100% { opacity: 0; transform: scale(1.55); }
}

@media (max-width: 720px) {
    #contact-overlay {
        padding: 0;
        align-items: end;
        place-items: end center;
    }

    .contact-dialog.contact-dialog--chat {
        width: 100vw;
        max-width: none;
        height: 100dvh;
        min-height: 100dvh;
        max-height: 100dvh;
        border-radius: 24px 24px 0 0;
        transform: translateY(22px) scale(1);
    }

    .chat-dialog__header {
        padding: max(16px, env(safe-area-inset-top)) 62px 14px 16px;
    }

    .chat-dialog__avatar {
        width: 42px;
        height: 42px;
    }

    .chat-dialog__header h2 {
        font-size: 1.2rem;
    }

    .chat-dialog__log {
        min-height: 0;
        padding: 16px;
    }

    .chat-bubble {
        max-width: 86%;
        font-size: 0.93rem;
    }

    .chat-dialog__composer {
        padding: 11px 12px calc(11px + env(safe-area-inset-bottom));
    }

    .chat-dialog__field input {
        min-height: 48px;
        font-size: 16px;
    }

    .chat-dialog__send {
        width: 48px;
        height: 48px;
    }

    .chat-fab {
        right: max(16px, env(safe-area-inset-right));
        bottom: max(20px, env(safe-area-inset-bottom));
        width: 56px;
        height: 56px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .chat-bubble--enter,
    .chat-fab,
    .chat-fab::after,
    .chat-dialog__avatar,
    .chat-dialog__send,
    .chat-dialog__send::after,
    .chat-dialog__field input {
        animation: none;
        transition: none;
    }

    .chat-bubble--enter {
        transform: none;
    }

    .chat-typing span {
        animation-duration: 0.01ms;
    }
}

/* -------------------- Floating language bubbles -------------------- */
.language-fab {
    position: fixed;
    left: max(18px, env(safe-area-inset-left));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 1200;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    pointer-events: none;
}

.language-fab__toggle,
.language-fab__option {
    position: absolute;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #fff;
    font-family: "Space Grotesk", "Manrope", Arial, Helvetica, sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(7, 5, 18, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.35);
    cursor: pointer;
    isolation: isolate;
    overflow: hidden;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
    transition: transform 0.34s cubic-bezier(0.2, 1, 0.22, 1), opacity 0.24s ease, filter 0.24s ease, box-shadow 0.24s ease;
}

.language-fab__toggle {
    z-index: 4;
}

.language-fab__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    border: 0;
    clip: rect(0 0 0 0);
    overflow: hidden;
    white-space: nowrap;
}

.language-fab__options {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.language-fab__option {
    opacity: 0;
    filter: blur(8px) saturate(0.8);
    transform: translate3d(0, 0, 0) scale(0.58);
}

.language-fab.is-open .language-fab__option {
    opacity: 1;
    filter: blur(0) saturate(1.08);
    pointer-events: auto;
}

.language-fab.is-open .language-fab__option:nth-child(1) {
    transform: translate3d(0, -76px, 0) scale(1);
    transition-delay: 20ms;
}

.language-fab.is-open .language-fab__option:nth-child(2) {
    transform: translate3d(58px, -58px, 0) scale(1);
    transition-delay: 70ms;
}

.language-fab.is-open .language-fab__option:nth-child(3) {
    transform: translate3d(76px, 0, 0) scale(1);
    transition-delay: 120ms;
}

.language-fab.is-open .language-fab__toggle {
    transform: scale(0.92) rotate(8deg);
    box-shadow: 0 10px 24px rgba(7, 5, 18, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.language-fab__toggle:hover,
.language-fab__option:hover {
    transform: translate3d(0, -3px, 0) scale(1.04);
}

.language-fab.is-open .language-fab__option:nth-child(1):hover {
    transform: translate3d(0, -79px, 0) scale(1.05);
}

.language-fab.is-open .language-fab__option:nth-child(2):hover {
    transform: translate3d(61px, -61px, 0) scale(1.05);
}

.language-fab.is-open .language-fab__option:nth-child(3):hover {
    transform: translate3d(79px, -3px, 0) scale(1.05);
}

.flag-nl {
    background: linear-gradient(180deg, #ae1c28 0 33.33%, #fff 33.33% 66.66%, #21468b 66.66% 100%);
}

.flag-en {
    background: linear-gradient(27deg, transparent 0 44%, #fff 44% 49%, #c8102e 49% 53%, #fff 53% 58%, transparent 58%), linear-gradient(153deg, transparent 0 44%, #fff 44% 49%, #c8102e 49% 53%, #fff 53% 58%, transparent 58%), linear-gradient(90deg, transparent 0 39%, #fff 39% 45%, #c8102e 45% 55%, #fff 55% 61%, transparent 61%), linear-gradient(180deg, transparent 0 38%, #fff 38% 45%, #c8102e 45% 55%, #fff 55% 62%, transparent 62%), #012169;
}

.flag-tr {
    background-color: #e30a17;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800'%3E%3Crect width='1200' height='800' fill='%23e30a17'/%3E%3Ccircle cx='500' cy='400' r='200' fill='%23fff'/%3E%3Ccircle cx='560' cy='400' r='160' fill='%23e30a17'/%3E%3Cpath fill='%23fff' d='M720 400l171.19-55.62-105.82 145.62V310l105.82 145.62z'/%3E%3C/svg%3E");
    background-position: center;
    background-size: cover;
}

.flag-de {
    background: linear-gradient(180deg, #000 0 33.33%, #dd0000 33.33% 66.66%, #ffce00 66.66% 100%);
}

@media (max-width: 720px) {
    .glass-nav {
        top: 22px;
        gap: 4px;
        padding: 9px 8px 9px 16px;
        max-width: calc(100% - 20px);
    }
    .glass-nav__brand {
        width: 32px;
        height: 32px;
        font-size: 0.78rem;
        margin-left: -8px;
        margin-right: 4px;
    }
    .glass-nav__links {
        gap: 0;
    }
    .glass-nav__links a {
        padding: 9px 10px;
        font-size: 0.78rem;
    }
    .glass-nav__cta {
        padding: 9px 12px !important;
    }

    .language-fab {
        left: max(14px, env(safe-area-inset-left));
        bottom: max(14px, env(safe-area-inset-bottom));
    }
}

@media (max-width: 460px) {
    .glass-nav {
        top: 20px;
        padding: 8px 6px 8px 12px;
        max-width: calc(100% - 14px);
    }
    .glass-nav__brand {
        width: 30px;
        height: 30px;
        font-size: 0.72rem;
        margin-left: -6px;
        margin-right: 2px;
    }
    .glass-nav__links a {
        padding: 8px 8px;
        font-size: 0.72rem;
        font-weight: 650;
    }
    .glass-nav__cta {
        padding: 8px 10px !important;
    }
}

@media (max-width: 380px) {
    .glass-nav {
        top: 18px;
        padding: 8px 5px 8px 10px;
    }
    .glass-nav__brand {
        width: 28px;
        height: 28px;
        font-size: 0.68rem;
        margin-left: -4px;
        margin-right: 0;
    }
    .glass-nav__links a {
        padding: 7px 7px;
        font-size: 0.68rem;
    }
    .glass-nav__cta {
        padding: 7px 9px !important;
    }
}

.portfolio-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(230px, 330px) minmax(0, 1fr);
    gap: clamp(24px, 5vw, 72px);
    align-items: center;
    min-height: calc(100vh - 74px);
    padding: clamp(42px, 7vw, 92px) 0 8vh;
}

.intro-orbit {
    position: absolute;
    inset: 12% auto auto 7%;
    width: min(52vw, 560px);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    opacity: 0.7;
    pointer-events: none;
    animation: drift 11s ease-in-out infinite;
}

.intro-orbit span {
    position: absolute;
    border-radius: 50%;
}

.intro-orbit span:first-child {
    inset: 16%;
    border: 1px solid rgba(255, 219, 158, 0.22);
}

.intro-orbit span:last-child {
    width: 16px;
    height: 16px;
    top: 18%;
    right: 19%;
    background: #ffdb9e;
    box-shadow: 0 0 35px rgba(255, 219, 158, 0.9);
    animation: pulseDot 2.8s ease-in-out infinite;
}

.hero-panel,
.profile-card,
.portfolio-section,
.portfolio-footer {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(18, 14, 34, 0.58);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(18px);
}

.hero-panel {
    position: relative;
    padding: clamp(24px, 5vw, 56px);
    overflow: hidden;
}

.hero-panel::before,
.portfolio-section::before,
.portfolio-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 28%, rgba(255, 219, 158, 0.08));
    pointer-events: none;
}

.portfolio-section,
.portfolio-footer,
.profile-card {
    position: relative;
    overflow: hidden;
}

.hero-panel > *,
.portfolio-section > *,
.portfolio-footer > *,
.profile-card > * {
    position: relative;
    z-index: 1;
}

.kicker {
    margin: 0 0 14px;
    color: #ffdb9e;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-panel h1,
.portfolio-section h2 {
    font-family: "Space Grotesk", "Manrope", Arial, Helvetica, sans-serif;
    margin: 0;
    letter-spacing: 0;
}

.hero-panel h1 {
    max-width: 820px;
    font-size: clamp(4rem, 9vw, 8.6rem);
    line-height: 0.86;
    text-wrap: balance;
}

.hero-panel p:not(.kicker),
.copy-block p,
.work-card p,
.stack-grid p,
.portfolio-footer p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.04rem;
    line-height: 1.7;
}

.hero-panel p:not(.kicker) {
    max-width: 720px;
    margin: 24px 0 0;
}

.hero-subtitle {
    font-size: clamp(1.08rem, 1.55vw, 1.3rem) !important;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero-actions a,
.copy-block a,
.footer-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 750;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.hero-actions a:first-child,
.copy-block a,
.footer-actions a:first-child {
    background: #fff;
    color: #1B1734;
}

.copy-block a {
    justify-self: center;
    width: fit-content;
    margin-top: 4px;
    border-color: rgba(255, 219, 158, 0.46);
    background: linear-gradient(135deg, #fff7ec 0%, #ffdb9e 100%);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22), 0 0 28px rgba(255, 219, 158, 0.16);
}

.copy-block a::after {
    content: "→";
    margin-left: 9px;
    transition: transform 0.22s ease;
}

.hero-actions a:hover,
.copy-block a:hover,
.footer-actions a:hover {
    transform: translateY(-2px);
}

.copy-block a:hover::after {
    transform: translateX(4px);
}

.profile-card {
    width: min(100%, 330px);
    justify-self: center;
    margin: 0;
    border-radius: 999px 999px 8px 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(18, 14, 34, 0.66));
    animation: floatProfile 6s ease-in-out infinite;
}

.profile-card img {
    width: 100%;
    border: 10px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: center top;
    box-shadow: 0 18px 65px rgba(0, 0, 0, 0.32);
}

.profile-card figcaption {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 18px 22px 22px;
    text-align: center;
}

.profile-card strong {
    font-size: 1.1rem;
}

.profile-card span {
    color: rgba(255, 255, 255, 0.7);
}

.intro-strip {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(18, 14, 34, 0.42);
    backdrop-filter: blur(16px);
}

.intro-strip span {
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
    font-weight: 750;
}

.portfolio-section {
    margin-top: clamp(32px, 7vh, 72px);
    padding: clamp(24px, 5vw, 52px);
}

.glass-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: center;
}

.section-lead {
    font-family: "Space Grotesk", "Manrope", Arial, Helvetica, sans-serif;
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.8rem);
    line-height: 1.13;
    font-weight: 760;
}

.pill-row,
.stack-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill-row span {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.08);
    font-weight: 700;
}

.section-title {
    max-width: 760px;
    margin-bottom: 28px;
}

.portfolio-section h2 {
    font-size: clamp(2rem, 4vw, 4.4rem);
    line-height: 1;
}

.work-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.work-card,
.stack-grid div {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.24s ease, background 0.24s ease, border-color 0.24s ease;
}

.work-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(18px, 3vw, 26px);
}

.work-card > * {
    position: relative;
    z-index: 1;
}

.work-card .project-capture {
    grid-row: 1 / span 5;
    align-self: center;
    margin: 0;
}

.work-card.wide {
    display: block;
}

.work-card::after {
    content: "";
    position: absolute;
    z-index: 0;
    inset: auto -20% -55% 30%;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 219, 158, 0.18), transparent 65%);
    transition: transform 0.24s ease, opacity 0.24s ease;
}

.work-card:hover,
.work-card.is-active {
    transform: translateY(-6px);
    border-color: rgba(255, 219, 158, 0.44);
    background: rgba(255, 255, 255, 0.12);
}

.work-card:hover::after,
.work-card.is-active::after {
    transform: translateY(-20px);
}

.project-capture {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    height: 280px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    background: #17142c;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.project-capture::before {
    content: none;
}

.project-capture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 0%;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    transition:
        object-position var(--scroll-duration, 6s) cubic-bezier(0.33, 0, 0.67, 1),
        box-shadow 0.24s ease;
}

.work-card:hover .project-capture img,
.work-card:focus-visible .project-capture img,
.work-card.is-active .project-capture img {
    object-position: 50% 100%;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.4);
}

.work-card.wide {
    grid-column: 1 / -1;
}

.work-card em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 44px;
    margin: 24px auto 0;
    padding: 0 18px;
    border: 1px solid rgba(255, 219, 158, 0.46);
    border-radius: 8px;
    background: linear-gradient(135deg, #fff7ec 0%, #ffdb9e 100%);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22), 0 0 28px rgba(255, 219, 158, 0.16);
    color: #1B1734;
    font-style: normal;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.work-card em::after {
    content: "→";
    margin-left: 9px;
    transition: transform 0.22s ease;
}

.work-card:hover em,
.work-card.is-active em {
    transform: translateY(-2px);
}

.work-card:hover em::after,
.work-card.is-active em::after {
    transform: translateX(4px);
}

.work-card span {
    color: #ffdb9e;
    font-weight: 800;
}

.work-card h3,
.stack-grid h3 {
    font-family: "Space Grotesk", "Manrope", Arial, Helvetica, sans-serif;
    margin: 14px 0 10px;
    font-size: 1.28rem;
    line-height: 1.18;
}

.work-card p,
.stack-grid p,
.copy-block p {
    margin: 0;
}

.split-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.copy-block {
    display: grid;
    gap: 18px;
}

.copy-block a {
    width: fit-content;
}

.stack-grid {
    display: grid;
    grid-template-columns: 1fr;
}

/* -------------------- Meer over mij -------------------- */
.about-section {
    overflow: visible;
}

.about-intro {
    max-width: 680px;
    margin: 18px auto 32px;
    font-family: "Space Grotesk", "Manrope", Arial, Helvetica, sans-serif;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1.05rem, 1.4vw, 1.18rem);
    font-weight: 500;
    line-height: 1.7;
    text-align: center;
    text-wrap: balance;
}

.about-linkedin {
    display: flex;
    width: fit-content;
    max-width: min(100%, 520px);
    margin: -10px auto 34px;
    padding: 12px 16px 12px 12px;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(10, 102, 194, 0.2), rgba(255, 255, 255, 0.07));
    color: #fff;
    text-align: left;
    text-decoration: none;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
}

.about-linkedin:hover {
    transform: translateY(-2px) scale(1);
    border-color: rgba(255, 219, 158, 0.42);
    background: linear-gradient(135deg, rgba(10, 102, 194, 0.28), rgba(255, 255, 255, 0.1));
}

.linkedin-icon {
    display: inline-grid;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 8px;
    background: #0a66c2;
    color: #fff;
    box-shadow: 0 10px 22px rgba(10, 102, 194, 0.3);
}

.linkedin-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

.about-linkedin__text {
    display: grid;
    gap: 2px;
}

.about-linkedin__text strong {
    font-family: "Space Grotesk", "Manrope", Arial, Helvetica, sans-serif;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.2;
}

.about-linkedin__text small {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.8rem;
    font-weight: 650;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(140px, auto);
    align-items: start;
    gap: 14px;
}

.about-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    overflow: hidden;
    transition: transform 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}

.about-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 90% at 0% 0%, rgba(255, 219, 158, 0.18), transparent 55%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.about-tile:hover,
.about-tile.is-active {
    transform: translateY(-4px);
    border-color: rgba(255, 219, 158, 0.4);
    background: rgba(255, 255, 255, 0.09);
}

.about-tile:hover::before,
.about-tile.is-active::before {
    opacity: 1;
}

.about-tile__kicker {
    position: relative;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #ffdb9e;
    z-index: 1;
}

.about-tile__title {
    position: relative;
    margin: 0;
    font-family: "Space Grotesk", "Manrope", Arial, Helvetica, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    z-index: 1;
}

.about-tile__hint {
    position: relative;
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.82rem;
    z-index: 1;
}

/* Tile placements (bento) */
.about-tile--age      { grid-column: span 2; }
.about-tile--traits   { grid-column: span 4; }
.about-tile--code     { grid-column: span 6; }
.about-tile--sport    { grid-column: span 2; }
.about-tile--music    { grid-column: span 2; }
.about-tile--cars     { grid-column: span 2; }
.about-tile--network  { grid-column: span 2; }
.about-tile--talk     { grid-column: span 4; }

/* Age tile */
.about-age {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 10px;
    z-index: 1;
}

.about-age__number {
    font-family: "Space Grotesk", "Manrope", Arial, Helvetica, sans-serif;
    font-size: clamp(3.6rem, 6vw, 5.2rem);
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, #fff7ec 0%, #ffdb9e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.about-age__label {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    font-weight: 600;
}

/* Traits */
.about-trait-stack {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 6px;
    z-index: 1;
}

.about-trait {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.about-trait i {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #ffdb9e;
    box-shadow: 0 0 12px rgba(255, 219, 158, 0.7);
    animation: aboutDotPulse 2.4s ease-in-out infinite;
}

.about-trait:nth-child(2) i { animation-delay: 0.4s; }
.about-trait:nth-child(3) i { animation-delay: 0.8s; }

@keyframes aboutDotPulse {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50%      { transform: scale(1.35); opacity: 1; }
}

/* Code tile */
.about-code {
    position: relative;
    margin: 0;
    font-family: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
    z-index: 1;
    white-space: pre;
}

.about-code__line { display: block; }
.tok-kw  { color: #c98bff; }
.tok-var { color: #ffdb9e; }
.tok-fn  { color: #7fd5ff; }
.tok-str { color: #b1f0c2; }

.about-code__cursor {
    display: inline-block;
    width: 7px;
    height: 1em;
    margin-left: 4px;
    background: #ffdb9e;
    vertical-align: text-bottom;
    animation: aboutCaret 1s steps(1) infinite;
}

@keyframes aboutCaret {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Sport pulse */
.about-pulse {
    position: relative;
    height: 60px;
    color: #ffdb9e;
    z-index: 1;
}

.about-pulse--small {
    width: 60%;
    height: 32px;
    margin: 0 auto 0 0;
}

.about-pulse svg {
    width: 100%;
    height: 100%;
    display: block;
}

.about-pulse path {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: aboutPulseDraw 3.6s ease-in-out infinite;
}

@keyframes aboutPulseDraw {
    0%   { stroke-dashoffset: 600; }
    55%  { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -600; }
}

/* Music notes */
.about-notes {
    position: relative;
    height: 60px;
    z-index: 1;
    overflow: hidden;
}

.about-note {
    position: absolute;
    bottom: -10px;
    font-size: 1.5rem;
    color: #ffdb9e;
    text-shadow: 0 0 12px rgba(255, 219, 158, 0.55);
    opacity: 0;
    animation: aboutNoteFloat 4.2s ease-in-out infinite;
}

.about-note--1 { left: 6%;  animation-delay: 0.0s;  font-size: 1.4rem; }
.about-note--2 { left: 24%; animation-delay: 0.7s;  font-size: 1.8rem; }
.about-note--3 { left: 44%; animation-delay: 1.4s;  font-size: 1.3rem; }
.about-note--4 { left: 64%; animation-delay: 2.1s;  font-size: 1.7rem; }
.about-note--5 { left: 82%; animation-delay: 2.8s;  font-size: 1.5rem; }

@keyframes aboutNoteFloat {
    0%   { opacity: 0; transform: translate(0, 0) rotate(-6deg); }
    15%  { opacity: 1; }
    70%  { opacity: 0.9; }
    100% { opacity: 0; transform: translate(8px, -54px) rotate(10deg); }
}

/* Cars / road */
.about-road {
    position: relative;
    height: 60px;
    z-index: 1;
    overflow: hidden;
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.about-road__line {
    position: absolute;
    left: -30%;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #ffdb9e 50%, transparent);
    animation: aboutRoad 1.6s linear infinite;
}

.about-road__line:nth-child(1) { top: 22%; width: 36%; animation-delay: 0.0s; }
.about-road__line:nth-child(2) { top: 50%; width: 28%; animation-delay: 0.3s; opacity: 0.7; }
.about-road__line:nth-child(3) { top: 76%; width: 42%; animation-delay: 0.6s; opacity: 0.5; }

@keyframes aboutRoad {
    0%   { transform: translateX(0); }
    100% { transform: translateX(330%); }
}

/* Network */
.about-nodes {
    position: relative;
    height: 60px;
    z-index: 1;
}

.about-nodes__lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    stroke: rgba(255, 219, 158, 0.45);
    stroke-width: 1;
    fill: none;
}

.about-node {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #ffdb9e;
    box-shadow: 0 0 14px rgba(255, 219, 158, 0.7);
    animation: aboutNode 2.6s ease-in-out infinite;
}

.about-node:nth-child(1) { top: 16%; left: 12%; animation-delay: 0.0s; }
.about-node:nth-child(2) { top: 24%; left: 78%; animation-delay: 0.5s; }
.about-node:nth-child(3) { top: 72%; left: 24%; animation-delay: 1.0s; }
.about-node:nth-child(4) { top: 74%; left: 82%; animation-delay: 1.5s; }

@keyframes aboutNode {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.45); }
}

/* Talk bubbles */
.about-bubbles {
    position: relative;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    z-index: 1;
}

.about-bubble {
    padding: 9px 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.92rem;
    opacity: 0;
    animation: aboutBubble 4s ease-in-out infinite;
}

.about-bubble--a { animation-delay: 0.2s; border-bottom-left-radius: 4px; }
.about-bubble--b {
    animation-delay: 2s;
    border-bottom-right-radius: 4px;
    background: linear-gradient(135deg, rgba(255, 219, 158, 0.22), rgba(255, 154, 118, 0.18));
    border-color: rgba(255, 219, 158, 0.42);
}

@keyframes aboutBubble {
    0%   { opacity: 0; transform: translateY(8px); }
    15%  { opacity: 1; transform: translateY(0); }
    65%  { opacity: 1; transform: translateY(0); }
    85%  { opacity: 0; transform: translateY(-4px); }
    100% { opacity: 0; transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
    .about-trait i,
    .about-pulse path,
    .about-note,
    .about-road__line,
    .about-node,
    .about-code__cursor,
    .about-bubble {
        animation: none !important;
    }
    .about-bubble,
    .about-note { opacity: 1; }
}

.portfolio-footer {
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
    gap: 28px;
    width: min(1180px, calc(100% - 32px));
    margin: 8vh auto 14vh;
    padding: clamp(24px, 5vw, 52px);
}

.portfolio-footer h2 {
    font-family: "Space Grotesk", "Manrope", Arial, Helvetica, sans-serif;
    max-width: 760px;
    margin: 0;
    font-size: clamp(2rem, 4vw, 4.2rem);
    line-height: 1;
}

.footer-actions {
    display: grid;
    gap: 12px;
    align-content: end;
}

.footer-meta {
    grid-column: 1 / -1;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.62) !important;
    font-size: 0.94rem !important;
}

.motion-item {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.motion-item.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.about-linkedin.motion-item.is-visible:hover {
    transform: translateY(-2px) scale(1);
}

@keyframes floatProfile {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

@keyframes drift {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    50% {
        transform: translate3d(18px, -12px, 0) rotate(7deg);
    }
}

@keyframes pulseDot {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.45);
        opacity: 0.55;
    }
}

/* MARK: ---0-490 Mobile */
@media (max-width: 490px) {

    #text,
    #arrow {
        transform-origin: 50% 50%;
        transform: translateY(-120px) scale(0.8);
    }

    #info2 {
        transform-origin: 50% 50%;
        transform: translateY(-120px) scale(0.8);
    }
}

@media (max-width: 860px) {
    .portfolio-site {
        width: min(100% - 20px, 680px);
        padding: 88vh 0 8vh;
    }

    .portfolio-hero,
    .glass-section,
    .split-section,
    .stack-grid,
    .work-grid {
        grid-template-columns: 1fr;
    }

    .work-card {
        grid-template-columns: 1fr;
    }

    .work-card .project-capture {
        height: clamp(200px, 52vw, 300px);
        margin: 0 0 6px;
    }

    .about-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: minmax(120px, auto);
        gap: 10px;
    }

    .about-tile--age,
    .about-tile--traits,
    .about-tile--code,
    .about-tile--sport,
    .about-tile--music,
    .about-tile--cars,
    .about-tile--network,
    .about-tile--talk {
        grid-column: span 2;
        grid-row: span 1;
    }

    .about-tile--age {
        grid-row: span 2;
    }

    .portfolio-hero {
        min-height: auto;
        padding-top: 48px;
    }

    .hero-panel h1 {
        font-size: clamp(3.2rem, 17vw, 5.2rem);
    }

    .hero-actions a,
    .footer-actions a {
        width: 100%;
    }

    .portfolio-nav {
        justify-content: flex-start;
        width: 100%;
        overflow-x: auto;
        border-radius: 8px;
    }

    .profile-card {
        width: min(78vw, 320px);
        order: -1;
    }

    .portfolio-footer {
        grid-template-columns: 1fr;
        width: min(100% - 20px, 680px);
    }

    .portfolio-section {
        padding: 22px 18px;
        margin-top: 56px;
    }

    .section-lead {
        font-size: clamp(1.3rem, 5.4vw, 2rem);
    }

    .portfolio-section h2 {
        font-size: clamp(1.7rem, 7vw, 2.6rem);
        line-height: 1.05;
    }

    .work-card h3,
    .stack-grid h3 {
        font-size: 1.15rem;
    }

    .work-card p,
    .stack-grid p,
    .copy-block p,
    .hero-panel p:not(.kicker),
    .portfolio-footer p {
        font-size: 0.96rem;
        line-height: 1.6;
    }

    .about-intro {
        font-size: 1rem;
        margin: 6px auto 22px;
    }

    .about-tile {
        padding: 14px;
        gap: 8px;
    }

    .about-age__number {
        font-size: clamp(2.8rem, 11vw, 3.8rem);
    }

    .about-trait {
        font-size: 0.72rem;
        padding: 4px 9px;
    }

    .about-code {
        font-size: 0.78rem;
    }
}

/* Phone-specific layout tuning — laat de originele parallax intact */
@media (max-width: 720px) {
    /* Make content panels solid op de telefoon, anders schemert de
       parallax-SVG door de halfdoorzichtige panels heen en zie je de
       hero-tekst over de werkkaarten lopen. */
    .portfolio-site {
        padding-top: 126vh;
        padding-top: 126svh;
    }

    .hero-panel,
    .profile-card,
    .portfolio-section,
    .portfolio-footer {
        background: #17132f;
    }

    .glass-section {
        background: #17132f;
    }

    #projecten {
        border-color: rgba(255, 255, 255, 0.24);
        background: rgba(36, 30, 68, 0.68);
        box-shadow: 0 20px 70px rgba(0, 0, 0, 0.18);
        backdrop-filter: blur(14px);
    }

    #projecten::before {
        display: block;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 34%, rgba(255, 219, 158, 0.06));
    }

    /* Pill-row should wrap cleanly without horizontal overflow */
    .pill-row span {
        font-size: 0.82rem;
        padding: 8px 10px;
    }

    .intro-strip {
        padding: 10px;
        gap: 6px;
    }

    .intro-strip span {
        font-size: 0.82rem;
        padding: 6px 10px;
    }

    .stack-scroll-cue {
        display: flex;
        position: relative;
        z-index: 9;
        width: fit-content;
        margin: clamp(150px, 34svh, 280px) auto 0;
        align-items: center;
        flex-direction: column;
        gap: 14px;
        color: #fff;
        text-align: center;
        text-shadow: 0 8px 20px rgba(18, 14, 34, 0.42);
        pointer-events: none;
    }

    .stack-scroll-cue__label {
        display: inline-flex;
        align-items: baseline;
        gap: 8px;
        font-family: "Space Grotesk", "Manrope", Arial, Helvetica, sans-serif;
        font-size: 1.45rem;
        font-weight: 800;
        letter-spacing: -0.01em;
        line-height: 1;
        text-transform: none;
        transform: rotate(-3.5deg);
    }

    .stack-scroll-cue__word {
        display: inline-block;
        background: linear-gradient(135deg, #ffe8a8 0%, #ffb27a 55%, #ff6fa3 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: stackScrollCueWiggle 1.6s ease-in-out infinite;
    }

    .stack-scroll-cue__word--up {
        font-size: 1.85rem;
        transform-origin: bottom left;
        animation: stackScrollCueBounce 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
    }

    .stack-scroll-cue__gesture {
        display: grid;
        width: 54px;
        height: 54px;
        place-items: center;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        opacity: 0.95;
        animation: stackScrollCueFloat 1.4s ease-in-out infinite;
    }

    .stack-scroll-cue__gesture svg {
        display: block;
        width: 30px;
        height: 30px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 1.8;
    }

    .stack-scroll-cue--second {
        margin: clamp(60px, 14svh, 120px) auto clamp(28px, 6svh, 56px);
        transform: rotate(2deg);
    }

    .stack-scroll-cue--second .stack-scroll-cue__label {
        font-size: 1.2rem;
        transform: rotate(-2deg);
    }

    .stack-scroll-cue--second .stack-scroll-cue__word--up {
        font-size: 1.5rem;
    }

    .stack-scroll-cue--second .stack-scroll-cue__gesture {
        width: 44px;
        height: 44px;
    }

    .stack-scroll-cue--second .stack-scroll-cue__gesture svg {
        width: 24px;
        height: 24px;
    }

}

@media (max-width: 460px) {
    .contact-overlay {
        padding: 10px;
        align-items: end;
        place-items: end center;
    }

    .contact-dialog {
        width: 100%;
        max-height: calc(100dvh - 20px);
        border-radius: 22px 22px 18px 18px;
        transform: translateY(26px) scale(0.98);
    }

    .contact-dialog.is-success {
        min-height: 360px;
    }

    .contact-dialog__intro {
        padding: 22px 62px 15px 18px;
    }

    .contact-dialog__spark {
        width: 34px;
        height: 34px;
        border-radius: 12px;
    }

    .contact-dialog h2 {
        font-size: 1.42rem;
        line-height: 1.14;
    }

    .contact-dialog__intro p:last-child {
        font-size: 0.9rem;
        line-height: 1.45;
    }

    .contact-form {
        max-height: calc(100dvh - 190px);
        padding: 16px 16px 18px;
        gap: 12px;
    }

    .contact-form__grid {
        grid-template-columns: 1fr;
    }

    .contact-form input,
    .contact-form textarea {
        border-radius: 14px;
        font-size: 0.95rem;
        padding: 12px 13px;
    }

    .contact-form textarea {
        min-height: 116px;
    }

    .contact-form__submit {
        min-height: 50px;
    }

    .portfolio-site {
        width: min(100% - 16px, 680px);
    }

    .portfolio-section {
        padding: 20px 14px;
        margin-top: 48px;
        border-radius: 10px;
    }

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

    .about-tile--age,
    .about-tile--traits,
    .about-tile--code,
    .about-tile--sport,
    .about-tile--music,
    .about-tile--cars,
    .about-tile--network,
    .about-tile--talk {
        grid-column: span 1;
    }

    .about-tile--age {
        grid-row: auto;
    }

    .work-card .project-capture {
        height: clamp(180px, 50vw, 240px);
    }

    .work-card {
        padding: 18px;
    }

    .section-title {
        margin-bottom: 18px;
    }

    .kicker {
        font-size: 0.72rem;
    }

    .portfolio-footer {
        width: min(100% - 16px, 680px);
        padding: 22px 16px;
        margin: 6vh auto 10vh;
    }

    .pill-row {
        gap: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-dialog,
    .contact-overlay,
    .contact-dialog__spark,
    .contact-success,
    .contact-success__mark,
    .contact-success__dot,
    .contact-form__submit.is-loading svg {
        animation: none;
        transition: none;
    }

    .profile-card,
    .intro-orbit,
    .intro-orbit span:last-child,
    .stack-scroll-cue__gesture {
        animation: none;
    }

    .motion-item {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
