:root {
    --ink: #10163a;
    --paper: #eef2ff;
    --blue: #2f4bff;
    --sun: #ffd23f;
    --coral: #ff5c8a;
    --mint: #5eead4;
    --grid: rgba(47, 75, 255, .12);
}

* {
    box-sizing: border-box;
    margin: 0
}

html {
    scroll-behavior: smooth
}

body {
    font-family: "Bricolage Grotesque", system-ui, sans-serif;
    color: var(--ink);
    line-height: 1.6;
    background-color: var(--paper);
    background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 40px 40px;
    overflow-x: hidden
}

a {
    color: inherit
}

:focus-visible {
    outline: 3px solid var(--coral);
    outline-offset: 3px
}

.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .8rem 1.5rem;
    background: rgba(238, 242, 255, .85);
    backdrop-filter: blur(8px);
    border-bottom: 2px solid var(--ink)
}

.logo {
    font-weight: 800;
    font-size: 1.3rem;
    text-decoration: none;
    display: inline-block;
    transition: transform .3s
}

.logo:hover {
    transform: rotate(-12deg) scale(1.15)
}

.nav nav {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap
}

.nav nav a {
    text-decoration: none;
    font-weight: 600
}

.nav nav a:hover {
    text-decoration: underline wavy var(--coral);
    text-underline-offset: 6px
}

.hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    align-content: center;
    gap: 2rem;
    padding: 7rem 1.5rem 4rem;
    max-width: 1100px;
    margin: auto
}

.hero-inner {
    position: relative;
    z-index: 2
}

.hello {
    font-weight: 600;
    font-size: 1.2rem
}

h1 {
    font-size: clamp(3rem, 10vw, 7.5rem);
    line-height: .95;
    font-weight: 800;
    letter-spacing: -.03em;
    margin: .4rem 0 1rem
}

.intro {
    font-size: 1.3rem;
    max-width: 34ch;
    margin-bottom: 1.8rem
}

.btn {
    display: inline-block;
    background: var(--sun);
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
    padding: .8rem 1.5rem;
    border: 2px solid var(--ink);
    border-radius: 999px;
    box-shadow: 4px 4px 0 var(--ink);
    transition: transform .15s, box-shadow .15s
}

.btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--ink)
}

.btn:active {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 var(--ink)
}

.code {
    position: relative;
    z-index: 2;
    justify-self: start;
    background: var(--ink);
    color: #d7defa;
    font: 500 .95rem/1.6 ui-monospace, Menlo, monospace;
    padding: 1.2rem 1.5rem;
    border-radius: 14px 14px 14px 0;
    box-shadow: 6px 6px 0 var(--blue);
    white-space: pre-wrap
}

.code .k {
    color: var(--mint)
}

.code .s {
    color: var(--sun)
}

.code .n {
    color: var(--coral)
}

.shape {
    position: absolute;
    z-index: 1;
    will-change: transform;
    pointer-events: none
}

.s-circle {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: var(--coral);
    right: 6%;
    top: 14%;
    border: 2px solid var(--ink)
}

.s-tri {
    width: 0;
    height: 0;
    border-left: 70px solid transparent;
    border-right: 70px solid transparent;
    border-bottom: 120px solid var(--mint);
    right: 26%;
    top: 52%
}

.s-plus {
    font-size: 6rem;
    font-weight: 800;
    color: var(--blue);
    right: 4%;
    top: 60%;
    line-height: 1
}

.s-ring {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 14px solid var(--sun);
    right: 30%;
    top: 12%
}

.s-squig {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--blue);
    right: 14%;
    top: 84%;
    letter-spacing: -.1em
}

.sec {
    position: relative;
    max-width: 1000px;
    margin: auto;
    padding: 6rem 1.5rem
}

h2 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 2rem;
    display: inline-block;
    background: linear-gradient(transparent 62%, var(--sun) 62%)
}

.ghost {
    position: absolute;
    right: 0;
    top: 2rem;
    font-size: clamp(10rem, 28vw, 22rem);
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 2px var(--blue);
    opacity: .25;
    z-index: -1;
    user-select: none
}

.over p {
    font-size: 1.25rem;
    max-width: 60ch;
    margin-bottom: 1rem
}

.skills {
    display: grid;
    gap: 1.6rem
}

.skills h3 {
    font-size: 1rem;
    margin-bottom: .6rem
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem
}

.chip {
    padding: .4rem 1rem;
    border: 2px solid var(--ink);
    border-radius: 999px;
    font-weight: 600;
    background: #fff;
    transition: transform .2s, background .2s
}

.chip:hover {
    background: var(--mint);
    transform: rotate(-4deg) scale(1.08)
}

.chip:nth-child(even):hover {
    background: var(--coral);
    transform: rotate(4deg) scale(1.08)
}

.tijdlijn {
    list-style: none;
    padding: 0 0 0 2rem;
    border-left: 3px dashed var(--blue);
    display: grid;
    gap: 2rem
}

.tijdlijn li {
    position: relative
}

.tijdlijn li::before {
    content: "";
    position: absolute;
    left: -2.6rem;
    top: .3rem;
    width: 1.1rem;
    height: 1.1rem;
    background: var(--sun);
    border: 2px solid var(--ink);
    border-radius: 50%
}

.tijdlijn .per {
    font-weight: 800;
    color: var(--blue)
}

.tijdlijn h3 {
    font-size: 1.4rem
}

.tijdlijn .plek {
    font-weight: 600
}

.projecten {
    display: grid;
    gap: 2.5rem
}

.project {
    background: #fff;
    border: 2px solid var(--ink);
    border-radius: 6px 28px 6px 28px;
    padding: 1.6rem;
    max-width: 620px;
    box-shadow: 8px 8px 0 var(--c, var(--coral));
    transition: transform .2s, box-shadow .2s
}

.project:nth-child(even) {
    margin-left: auto;
    border-radius: 28px 6px 28px 6px
}

.project:hover {
    transform: translate(-3px, -3px);
    box-shadow: 11px 11px 0 var(--c, var(--coral))
}

.project h3 {
    font-size: 1.6rem
}

.project p {
    margin: .5rem 0 1rem
}

.project .tags {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem
}

.project .tags span {
    font-size: .85rem;
    background: var(--paper);
    border: 1.5px solid var(--ink);
    border-radius: 6px;
    padding: .1rem .6rem
}

.project a {
    font-weight: 800
}

.contact {
    text-align: center;
    padding-bottom: 7rem
}

.contact p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem
}

.links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1.8rem
}

.links a {
    font-weight: 600
}

footer {
    text-align: center;
    padding: 2rem;
    border-top: 2px solid var(--ink);
    background: var(--ink);
    color: var(--paper)
}

@media (max-width:700px) {
    .nav nav {
        gap: .7rem;
        font-size: .9rem
    }

    .s-circle {
        width: 130px;
        height: 130px
    }

    .s-tri,
    .s-squig {
        display: none
    }

    .project:nth-child(even) {
        margin-left: 0
    }
}

@media (prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    * {
        transition: none !important
    }
}

/* ===== Excentriek ===== */
h1 .L {
    display: inline-block;
    transition: transform .25s cubic-bezier(.3, 1.8, .5, 1), color .2s
}

h1 .L:hover {
    transform: translateY(-.12em) rotate(-9deg) scale(1.12);
    color: var(--blue)
}

h1 .L:nth-child(3n):hover {
    color: var(--coral)
}

h1 .L:nth-child(3n+1):hover {
    color: var(--mint);
    -webkit-text-stroke: 2px var(--ink)
}

.s-badge {
    width: 120px;
    height: 120px;
    left: min(58%, 540px);
    top: 8%;
    display: grid;
    place-items: center;
    background: var(--sun);
    font-weight: 800;
    font-size: 1.5rem;
    clip-path: polygon(50% 0, 60% 12%, 75% 7%, 78% 22%, 93% 25%, 88% 40%, 100% 50%, 88% 60%, 93% 75%, 78% 78%, 75% 93%, 60% 88%, 50% 100%, 40% 88%, 25% 93%, 22% 78%, 7% 75%, 12% 60%, 0 50%, 12% 40%, 7% 25%, 22% 22%, 25% 7%, 40% 12%)
}

.marquee {
    overflow: hidden;
    background: var(--ink);
    color: var(--sun);
    transform: rotate(-2.2deg);
    margin: 3rem -3rem;
    border-block: 4px solid var(--coral);
    padding: .8rem 0;
    font-weight: 800;
    font-size: clamp(1.4rem, 3vw, 2rem);
    white-space: nowrap
}

.marquee #marquee {
    display: inline-block;
    animation: scroll 40s linear infinite
}

.marquee span {
    margin-right: 1.4rem
}

.marquee span::after {
    content: "✦";
    margin-left: 1.4rem;
    color: var(--mint)
}

.marquee:hover #marquee {
    animation-play-state: paused
}

@keyframes scroll {
    to {
        transform: translateX(-50%)
    }
}

h2 {
    background: var(--ink);
    color: var(--sun);
    padding: .05em .45em .12em;
    transform: rotate(-2deg);
    box-shadow: 7px 7px 0 var(--coral)
}

#skills h2 {
    transform: rotate(1.8deg);
    box-shadow: 7px 7px 0 var(--blue)
}

#ervaring h2 {
    transform: rotate(-1deg);
    box-shadow: 7px 7px 0 var(--mint)
}

#projecten h2 {
    transform: rotate(2deg)
}

.contact h2 {
    transform: rotate(-3deg)
}

#over {
    transform: rotate(.6deg)
}

.project {
    position: relative;
    cursor: pointer;
    transform: rotate(var(--r, 0deg))
}

.project:hover {
    transform: rotate(0deg) translate(-4px, -4px) scale(1.02)
}

.stamp {
    position: absolute;
    top: -1.1rem;
    right: -.9rem;
    background: var(--sun);
    border: 2px solid var(--ink);
    border-radius: 50%;
    width: 4.2rem;
    height: 4.2rem;
    display: grid;
    place-items: center;
    font-weight: 800;
    transform: rotate(14deg);
    transition: transform .3s
}

.project:hover .stamp {
    transform: rotate(-14deg) scale(1.15)
}

.project .open {
    font: inherit;
    font-weight: 800;
    background: var(--ink);
    color: var(--paper);
    border: 0;
    border-radius: 999px;
    padding: .5rem 1.2rem;
    cursor: pointer
}

.project .open::after {
    content: " +"
}

.blob {
    position: fixed;
    left: 0;
    top: 0;
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    border-radius: 50%;
    background: var(--coral);
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 50;
    opacity: 0;
    transition: width .25s, height .25s, margin .25s
}

.blob.big {
    width: 84px;
    height: 84px;
    margin: -42px 0 0 -42px;
    background: var(--mint)
}

/* Popup */
dialog {
    border: 3px solid var(--ink);
    border-radius: 10px 44px 10px 44px;
    padding: 0;
    width: min(760px, 92vw);
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    color: var(--ink);
    box-shadow: 14px 14px 0 var(--ink);
    margin: auto
}

dialog::backdrop {
    background: rgba(16, 22, 58, .72);
    backdrop-filter: blur(4px)
}

dialog[open] {
    animation: pop .45s cubic-bezier(.2, 1.6, .4, 1)
}

@keyframes pop {
    from {
        transform: scale(.55) rotate(-7deg);
        opacity: 0
    }
}

.dlg-close {
    position: sticky;
    top: .8rem;
    float: right;
    margin: .8rem .8rem 0 0;
    z-index: 2;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    border: 2px solid var(--ink);
    background: var(--coral);
    font: 800 1.6rem/1 inherit;
    cursor: pointer;
    transition: transform .25s
}

.dlg-close:hover {
    transform: rotate(90deg) scale(1.1)
}

.dlg-hero {
    height: 170px;
    margin-bottom: -2.8rem;
    display: grid;
    place-items: center;
    border-bottom: 3px solid var(--ink);
    background-image: repeating-linear-gradient(45deg, rgba(16, 22, 58, .14) 0 10px, transparent 10px 20px)
}

.dlg-hero span {
    font-size: 9rem;
    font-weight: 800;
    line-height: 1;
    color: var(--paper);
    -webkit-text-stroke: 3px var(--ink);
    transform: rotate(-8deg) translateY(1rem)
}

.dlg-txt {
    padding: 2rem 2rem 2.2rem
}

.dlg-txt .meta {
    display: flex;
    gap: .6rem;
    align-items: center;
    margin-bottom: .4rem;
    font-weight: 600
}

.dlg-txt .meta b {
    background: var(--sun);
    border: 2px solid var(--ink);
    border-radius: 6px;
    padding: 0 .5rem
}

.dlg-txt h3 {
    font-size: 2.2rem;
    line-height: 1.1;
    margin-bottom: 1rem
}

.dlg-txt p {
    margin-bottom: .8rem;
    max-width: 60ch
}

.dlg-txt ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: grid;
    gap: .4rem
}

.dlg-txt li {
    padding-left: 1.6rem;
    position: relative
}

.dlg-txt li::before {
    content: "+";
    position: absolute;
    left: 0;
    font-weight: 800;
    color: var(--coral)
}

.dlg-txt .tags {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin: 1rem 0 1.6rem
}

.dlg-txt .tags span {
    font-size: .85rem;
    background: var(--paper);
    border: 1.5px solid var(--ink);
    border-radius: 6px;
    padding: .1rem .6rem
}

@media (max-width:700px) {
    .s-badge {
        left: auto;
        right: 6%;
        top: 6%;
        width: 90px;
        height: 90px;
        font-size: 1.1rem
    }

    .marquee {
        margin: 2rem -3rem
    }

    .dlg-txt {
        padding: 1.5rem 1.2rem
    }
}

@media (prefers-reduced-motion:reduce) {
    .marquee #marquee {
        animation: none
    }

    dialog[open] {
        animation: none
    }
}