/* Unero — kleurstelling ongewijzigd: slate-navy basis, blauw → paars accent */
:root {
    --bg: #0f172a;
    --bg-raised: #1e293b;
    --bg-sunken: #0b1222;
    --line: #334155;
    --line-soft: rgba(255, 255, 255, 0.08);
    --text: #e2e8f0;
    --text-soft: #cbd5e1;
    --text-mute: #94a3b8;
    --blue: #60a5fa;
    --blue-deep: #2563eb;
    --violet: #a78bfa;
    --violet-deep: #7c3aed;
    --grad: linear-gradient(135deg, var(--blue), var(--violet));
    --grad-solid: linear-gradient(135deg, var(--blue-deep), var(--violet-deep));
    --radius: 20px;
    --radius-sm: 12px;
    --wrap: 1120px;
    --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip {
    position: absolute; left: -999px; top: 8px; z-index: 2000;
    background: var(--bg-raised); color: var(--text); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.grad-text {
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Header ---------- */
.header {
    position: fixed; inset: 0 0 auto 0; z-index: 1000;
    height: var(--header-h);
    display: flex; align-items: center;
    transition: background .3s, backdrop-filter .3s, border-color .3s;
    border-bottom: 1px solid transparent;
}
.header.scrolled {
    background: rgba(15, 23, 42, .82);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom-color: var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 38px; width: auto; }
.brand span { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }

.nav-menu { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-link {
    display: block; padding: 9px 16px; border-radius: 999px;
    color: var(--text-soft); text-decoration: none; font-weight: 500; font-size: .95rem;
    transition: color .2s, background .2s;
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav-cta { background: var(--grad-solid); color: #fff; }
.nav-cta:hover { background: var(--grad-solid); filter: brightness(1.12); }

.hamburger {
    display: none; width: 44px; height: 44px; border-radius: 12px;
    background: transparent; border: 1px solid var(--line-soft); cursor: pointer;
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.hamburger span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .25s; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
    font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn-primary { background: var(--grad-solid); color: #fff; box-shadow: 0 8px 28px rgba(37, 99, 235, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(124, 58, 237, .45); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { border-color: var(--blue); background: rgba(96, 165, 250, .08); }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* ---------- Hero ---------- */
.hero {
    position: relative; isolation: isolate;
    padding: calc(var(--header-h) + 72px) 0 96px;
    min-height: 100svh; display: flex; align-items: center;
}
.hero::before { /* raster */
    content: ''; position: absolute; inset: 0; z-index: -2;
    background-image:
        linear-gradient(var(--line-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}
.hero::after { /* gloed */
    content: ''; position: absolute; z-index: -1; inset: 0;
    background:
        radial-gradient(520px 380px at 12% 18%, rgba(37, 99, 235, .28), transparent 70%),
        radial-gradient(560px 420px at 88% 70%, rgba(124, 58, 237, .26), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 7px 14px; border-radius: 999px;
    border: 1px solid var(--line); background: rgba(30, 41, 59, .6);
    color: var(--text-soft); font-size: .85rem; font-weight: 500;
}
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(96, 165, 250, .2); }

.hero h1 {
    margin: 24px 0 22px;
    font-size: clamp(2.6rem, 6.2vw, 4.75rem);
    line-height: 1.04; letter-spacing: -.035em; font-weight: 700;
}
.hero-lead { font-size: 1.2rem; color: var(--text-soft); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-visual { position: relative; }
.hero-frame {
    position: relative; border-radius: 28px; overflow: hidden;
    aspect-ratio: 4 / 5; border: 1px solid var(--line);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 8px rgba(255, 255, 255, .02);
    transform: rotate(2deg);
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(15, 23, 42, .75)); }
.hero-badge {
    position: absolute; left: -22px; bottom: 36px; z-index: 2;
    display: flex; align-items: center; gap: 12px;
    padding: 12px 18px 12px 12px; border-radius: 16px;
    background: rgba(30, 41, 59, .92); backdrop-filter: blur(10px);
    border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(0, 0, 0, .45);
    font-size: .9rem; font-weight: 600;
}
.hero-badge img { width: 36px; height: 36px; object-fit: contain; }
.hero-badge small { display: block; color: var(--text-mute); font-weight: 400; font-size: .78rem; }

/* ---------- Secties ---------- */
section { padding: 104px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.kicker { color: var(--blue); font-weight: 600; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; letter-spacing: -.03em; }
.section-head p { margin-top: 16px; color: var(--text-mute); font-size: 1.1rem; }

/* Over */
.about { background: var(--bg-sunken); border-block: 1px solid var(--line-soft); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-text p { color: var(--text-soft); font-size: 1.08rem; }
.about-text p + p { margin-top: 20px; }
.about-text .big { font-size: 1.5rem; line-height: 1.4; color: var(--text); font-weight: 500; letter-spacing: -.01em; }
.pillars { display: grid; gap: 16px; }
.pillar {
    display: flex; gap: 18px; padding: 24px; border-radius: var(--radius);
    background: var(--bg-raised); border: 1px solid var(--line);
    transition: transform .25s, border-color .25s;
}
.pillar:hover { transform: translateX(6px); border-color: rgba(96, 165, 250, .5); }
.pillar-icon {
    flex: none; width: 46px; height: 46px; border-radius: 14px;
    background: var(--grad-solid); display: grid; place-items: center; color: #fff;
}
.pillar-icon svg { width: 22px; height: 22px; }
.pillar h3 { font-size: 1.08rem; margin-bottom: 4px; }
.pillar p { color: var(--text-mute); font-size: .95rem; line-height: 1.55; }

/* Portfolio */
.projects { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.project {
    position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
    min-height: 420px; padding: 32px; border-radius: 28px; text-decoration: none;
    background: var(--bg-raised); border: 1px solid var(--line);
    transition: transform .3s, border-color .3s, box-shadow .3s;
}
.project:hover { transform: translateY(-6px); border-color: rgba(167, 139, 250, .6); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.project--wide { grid-column: span 7; }
.project--narrow { grid-column: span 5; }
.project-media { position: absolute; inset: 0; z-index: 0; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.project:hover .project-media img { transform: scale(1.05); }
.project-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 23, 42, .1) 20%, rgba(15, 23, 42, .93) 85%); }
.project--clock .project-media {
    background: radial-gradient(circle at 70% 30%, rgba(96, 165, 250, .35), transparent 60%), linear-gradient(135deg, #1e293b, #172554);
    display: grid; place-items: start end;
}
.project--clock .project-media img { width: 44%; height: auto; object-fit: contain; margin: 28px 32px 0 0; max-width: 220px; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .5)); }
.project > *:not(.project-media) { position: relative; z-index: 1; }
.tag {
    align-self: flex-start; margin-bottom: 14px; padding: 5px 12px; border-radius: 999px;
    font-size: .78rem; font-weight: 600; color: #fff; background: rgba(15, 23, 42, .6);
    border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(6px);
}
.tag--live { border-color: rgba(96, 165, 250, .6); color: var(--blue); }
.project h3 { font-size: 1.9rem; letter-spacing: -.02em; line-height: 1.15; }
.project p { margin-top: 8px; color: var(--text-soft); max-width: 30em; }
.project-link { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--blue); }
.project-link svg { width: 18px; height: 18px; transition: transform .25s; }
.project:hover .project-link svg { transform: translate(3px, -3px); }

/* Contact */
.contact { background: var(--bg-sunken); border-top: 1px solid var(--line-soft); position: relative; isolation: isolate; }
.contact::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(600px 360px at 90% 10%, rgba(124, 58, 237, .18), transparent 70%);
}
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
    margin-top: 28px; display: inline-flex; align-items: center; gap: 12px;
    color: var(--text); text-decoration: none; font-weight: 600; font-size: 1.1rem;
}

.form-card { padding: 36px; border-radius: 28px; background: var(--bg-raised); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--text-soft); }
.field input, .field textarea {
    width: 100%; padding: 14px 16px; border-radius: var(--radius-sm);
    border: 1px solid var(--line); background: rgba(15, 23, 42, .6); color: var(--text);
    font: inherit; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(96, 165, 250, .16); }
.field input::placeholder, .field textarea::placeholder { color: #64748b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin-top: 14px; font-size: .78rem; color: var(--text-mute); }
.form-note a { color: var(--text-soft); }
.form-error { display: none; margin-bottom: 18px; padding: 12px 16px; border-radius: var(--radius-sm); background: rgba(248, 113, 113, .1); border: 1px solid rgba(248, 113, 113, .4); color: #fca5a5; font-size: .93rem; }
.form-error.show { display: block; }
.form-success { display: none; text-align: center; padding: 40px 12px; }
.form-success.show { display: block; animation: rise .5s ease; }
.form-success .check { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--grad-solid); display: grid; place-items: center; }
.form-success .check svg { width: 30px; height: 30px; color: #fff; }
.form-success h3 { font-size: 1.5rem; margin-bottom: 6px; }
.form-success p { color: var(--text-soft); }

/* Footer */
.footer { padding: 36px 0; border-top: 1px solid var(--line-soft); color: var(--text-mute); font-size: .92rem; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer .brand img { height: 28px; }
.footer .brand span { font-size: 1.05rem; color: var(--text); }

/* Animaties */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .hero { min-height: 0; }
    .hero-visual { max-width: 420px; margin: 0 auto; width: 100%; }
    .hero-badge { left: 8px; }
    .project--wide, .project--narrow { grid-column: span 12; }
}

@media (max-width: 760px) {
    section { padding: 72px 0; }
    .hamburger { display: flex; }
    .nav-menu {
        position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
        padding: 16px 24px 24px; background: rgba(15, 23, 42, .98); backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--line-soft);
        transform: translateY(-120%); visibility: hidden; transition: transform .3s, visibility .3s;
    }
    .nav-menu.active { transform: none; visibility: visible; }
    .nav-link { padding: 14px 16px; font-size: 1.05rem; border-radius: 12px; }
    .nav-cta { text-align: center; margin-top: 8px; }
    .hero { padding-top: calc(var(--header-h) + 40px); }
    .hero-actions .btn { width: 100%; }
    .project { min-height: 340px; padding: 24px; }
    .project h3 { font-size: 1.5rem; }
    .form-card { padding: 24px; }
    .footer-row { flex-direction: column; text-align: center; }
}
