/* ═══════════════════════════════
   BAS WITMOND — PORTFOLIO
   ═══════════════════════════════ */

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

/* ─── Variables ─── */
:root {
    --bg:      #0b0b09;
    --sur:     #111110;
    --sur2:    #1a1a18;
    --text:    #f4f0e8;
    --muted:   #888480;
    --dim:     #2a2820;
    --accent:  #d5ff47;
    --border:  rgba(244, 240, 232, 0.07);
    --font:    'Space Grotesk', sans-serif;
    --mono:    'Space Mono', monospace;
    --eout:    cubic-bezier(0.16, 1, 0.3, 1);
    --einout:  cubic-bezier(0.87, 0, 0.13, 1);
}

html {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body          { overflow-x: hidden; cursor: none; }
body.loading  { overflow: hidden; }
a             { color: inherit; text-decoration: none; }
::selection   { background: var(--accent); color: var(--bg); }

::-webkit-scrollbar       { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--dim); }

/* Scroll progress — thin accent line on left edge */
.scroll-prog {
    position: fixed;
    left: 0; top: 0;
    width: 2px; height: 0%;
    background: var(--accent);
    z-index: 9996;
    pointer-events: none;
    transition: height 0.08s linear;
}


/* ═══════════════════════════════
   GRAIN
   ═══════════════════════════════ */
.grain {
    position: fixed;
    inset: -10%;
    width: 120%; height: 120%;
    pointer-events: none;
    z-index: 9997;
    opacity: 0.035;
    will-change: transform;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 160px;
    animation: grainMove 1.8s steps(1) infinite;
}

@keyframes grainMove {
    0%  { transform: translate(0,0); }
    33% { transform: translate(-2%,2%); }
    66% { transform: translate(2%,-1%); }
}


/* ═══════════════════════════════
   CURSOR
   ═══════════════════════════════ */
.c-dot {
    position: fixed;
    width: 5px; height: 5px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%,-50%);
    transition: width 0.25s var(--eout), height 0.25s var(--eout);
}

.c-dot.hov { width: 9px; height: 9px; }

.c-ring {
    position: fixed;
    width: 32px; height: 32px;
    border: 1px solid rgba(244,240,232,0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%,-50%);
    transition: width 0.4s var(--eout), height 0.4s var(--eout),
                border-color 0.3s, background 0.3s;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}

.c-ring.hov {
    width: 52px; height: 52px;
    border-color: rgba(213,255,71,0.5);
}

/* Card hover — donkere card */
.c-ring.card-hov {
    width: 44px; height: 44px;
    border-color: rgba(213,255,71,0.7);
    border-width: 1.5px;
}
.c-dot.card-hov { background: var(--accent); }

/* Card hover — lime card */
.c-ring.card-lime {
    width: 44px; height: 44px;
    border-color: rgba(11,11,9,0.5);
    border-width: 1.5px;
}
.c-dot.card-lime { background: var(--bg); }

.crl { display: none; }


/* ═══════════════════════════════
   LOADER — lime panels split
   ═══════════════════════════════ */
.loader {
    position: fixed; inset: 0;
    z-index: 9000;
    display: flex; flex-direction: column;
    pointer-events: none;
}

.loader-half {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent);
    transition: transform 0.9s var(--einout);
}

.loader-top    { align-items: flex-end;    padding-bottom: 2rem; }
.loader-bottom { align-items: flex-start;  padding-top: 2rem; }

.loader.done .loader-top    { transform: translateY(-100%); }
.loader.done .loader-bottom { transform: translateY(100%); }

.loader-name {
    font-size: clamp(1rem, 3.5vw, 2.5rem);
    font-weight: 700; letter-spacing: 0.35em;
    color: var(--bg); opacity: 0.45;
}

.loader-bar-wrap {
    width: clamp(180px, 28vw, 360px);
    height: 1px; background: rgba(11,11,9,0.2);
}

.loader-bar {
    height: 100%; background: var(--bg);
    width: 0%; transition: width 0.25s var(--eout);
}


/* ═══════════════════════════════
   NAV
   ═══════════════════════════════ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 800;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.5rem 2.5rem;
    opacity: 0; transition: opacity 0.6s var(--eout);
}

.nav.vis { opacity: 1; }

.nav-brand {
    font-size: 0.8rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--text); transition: color 0.2s;
}
.nav-brand:hover { color: var(--accent); }

.nav-links {
    display: flex; align-items: center; gap: 2rem;
}

.nav-link {
    font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--muted); transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }

.lang-btn {
    font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--muted);
    background: none; border: 1px solid rgba(244,240,232,0.18);
    padding: 0.4rem 0.75rem; border-radius: 20px;
    cursor: pointer; transition: color 0.2s, border-color 0.2s;
    font-family: var(--mono);
}
.lang-btn:hover { color: var(--text); border-color: rgba(244,240,232,0.4); }

.nav-cta {
    color: var(--text);
    border: 1px solid rgba(244,240,232,0.18);
    padding: 0.44rem 1.1rem;
    border-radius: 100px;
    font-size: 0.68rem;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.nav-cta:hover {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}



/* ═══════════════════════════════
   HERO
   ═══════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex; flex-direction: column; justify-content: flex-end;
    /* subtle dot grid */
    background-image: radial-gradient(rgba(244,240,232,0.065) 1px, transparent 1px);
    background-size: 28px 28px;
    position: relative;
    overflow: hidden;
}

/* Fade dots toward bottom so name stays clean */
.hero::before {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 55%;
    background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
    pointer-events: none; z-index: 0;
}

/* ── Name ── */
.hero-name-wrap {
    padding: 0 1.5rem;
    line-height: 0.85;
    position: relative; z-index: 1;
    overflow: hidden;
}

.hero-name {
    display: block;
    font-size: 17vw; /* set by JS */
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 0.88;
    white-space: nowrap;
    transition: opacity 0.1s linear;
}

/* Per-letter clip-path reveal */
.nc {
    display: inline-block;
    clip-path: inset(0 100% 0 0);
    cursor: none;
    transition:
        clip-path 0.65s var(--eout),
        color 0.2s,
        transform 0.35s var(--eout);
}

.ns { display: inline-block; width: 0.28em; }

.hero-name-wrap.revealed .nc {
    clip-path: inset(0 0% 0 0);
    transition-delay: calc(var(--i) * 0.09s);
}

/* Hover: one letter, clean */
.nc:hover {
    color: var(--accent);
    transform: skewX(-8deg) scaleY(1.06);
    transition-delay: 0s !important;
}

/* Breathe wave */
@keyframes breathe {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-8px); }
}

.hero-name.wave .nc {
    animation: breathe 8s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.3s);
    transform-origin: bottom center;
    will-change: transform;
}

.hero-name.wave .nc:hover {
    animation-play-state: paused;
    color: var(--accent);
    transform: skewX(-8deg) scaleY(1.08) !important;
}

/* ── Info below name — inspired by reference ── */
.hero-sub {
    position: relative; z-index: 1;
    opacity: 0;
    animation: fadeUp 0.8s var(--eout) 1.8s forwards;
}

@keyframes fadeUp {
    from { opacity:0; transform:translateY(12px); }
    to   { opacity:1; transform:none; }
}

.hero-disc {
    text-align: center;
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.22em; color: var(--muted);
    text-transform: uppercase;
    padding: 1.2rem 2.5rem 1rem;
}

.hero-rule {
    width: 100%; height: 1px;
    background: rgba(244,240,232,0.1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s var(--eout);
}

.hero-rule.draw { transform: scaleX(1); }

.hero-strip {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.9rem 2.5rem 3rem;
}

.hs-l {
    display: flex; flex-direction: column; gap: 0.18rem;
}

.hs-l span {
    font-size: 0.62rem; font-weight: 700;
    letter-spacing: 0.12em; color: var(--muted);
    text-transform: uppercase;
}

.hs-r {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.62rem; font-weight: 700;
    letter-spacing: 0.12em; color: var(--muted);
    text-transform: uppercase;
    position: relative; cursor: default;
}

.avdot {
    position: relative;
    width: 7px; height: 7px;
    background: var(--accent);
    border-radius: 50%; flex-shrink: 0;
    animation: glow-pulse 2.4s ease-out infinite;
}

@keyframes glow-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(213,255,71,0.7); }
    60%  { box-shadow: 0 0 0 7px rgba(213,255,71,0); }
    100% { box-shadow: 0 0 0 0 rgba(213,255,71,0); }
}

/* ── Available badge (hover) ── */
.avail-badge {
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    background: #0e0e0d;
    border: 1px solid rgba(213,255,71,0.25);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 100;
}
.avail-badge::after {
    content: '';
    position: absolute;
    top: 100%; right: 16px;
    border: 6px solid transparent;
    border-top-color: rgba(213,255,71,0.25);
}
.avail-badge-row {
    display: flex; align-items: center; gap: 0.5rem;
    margin-bottom: 0.3rem;
}
.avail-badge-dot {
    width: 7px; height: 7px;
    background: #4eff91; border-radius: 50%; flex-shrink: 0;
}
.avail-badge-title {
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.06em;
    color: #4eff91;
}
.avail-badge-sub {
    font-size: 0.58rem; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--muted);
    padding-left: 1.1rem;
}
.hs-r:hover .avail-badge {
    opacity: 1;
    transform: translateY(0);
}


/* ═══════════════════════════════
   MARQUEE
   ═══════════════════════════════ */
.marquee-block {
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 0.8rem 0;
    background: var(--sur);
}

.mtrack {
    display: flex; gap: 2.5rem;
    white-space: nowrap;
    font-size: 0.65rem; font-weight: 700; letter-spacing: 0.2em; color: var(--muted);
    animation: marqueeAnim 24s linear infinite;
}

.msep { color: var(--accent); }

@keyframes marqueeAnim {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}


/* ═══════════════════════════════
   SECTIONS — shared
   ═══════════════════════════════ */
.section {
    padding: 7rem 2.5rem;
    max-width: 1440px;
    margin: 0 auto;
}

.section-head { margin-bottom: 1rem; }

.work-split-hd {
    border-bottom: 1px solid var(--border);
    margin-bottom: 3rem;
    padding-bottom: 1rem;
}

.work-split-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: clamp(3.5rem, 8vw, 9rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 0.9;
    text-transform: uppercase;
}

.work-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 3rem;
}

.work-head-l { flex-shrink: 0; }

.work-head-r {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.6rem;
    padding-bottom: 0.2rem;
}

.work-head-desc {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--muted);
    max-width: 260px;
    text-align: right;
}

.work-head-count {
    font-size: 0.58rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    font-family: var(--mono);
}

.section-lbl {
    display: block;
    font-size: 0.62rem; font-weight: 700;
    letter-spacing: 0.2em; color: var(--muted);
    font-family: var(--mono); margin-bottom: 1.2rem;
}

.section-title {
    font-size: clamp(3rem, 5.5vw, 5.5rem);
    font-weight: 700; letter-spacing: -0.03em; line-height: 1;
}


/* ═══════════════════════════════
   PROJECTS
   ═══════════════════════════════ */
#work { max-width: 100%; padding-top: 2.5rem; padding-bottom: 4rem; }
#work .section-head { margin-bottom: 2rem; }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.pcard { grid-column: span 6; cursor: none; }

.pcard-media {
    position: relative; overflow: hidden;
    border-radius: 4px; aspect-ratio: 4/3;
    border-top: 2px solid transparent;
    will-change: transform;
    transition: transform 0.6s var(--eout), box-shadow 0.5s var(--eout), border-color 0.3s;
}

.pcard:hover .pcard-media {
    box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}

/* Echte foto in kaart */
.pcard-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    background: #0f0f0d;
    transition: transform 0.7s var(--eout);
    display: block;
}
.pcard:hover .pcard-img { transform: scale(1.03); }

/* Clean placeholder */
.pph {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 0.8rem;
    transition: transform 0.7s var(--eout);
    overflow: hidden;
}

.pcard:hover .pph { transform: scale(1.04); }

.pcard-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    background: #141410;
    transition: transform 0.5s var(--eout);
}

.pcard:hover .pcard-img { transform: scale(1.04); }

/* ── Laptop mockup ── */
.laptop-mock {
    position: absolute; inset: 0;
    background: #0d0d0b;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 4% 6%;
    transition: transform 0.5s var(--eout);
}

.pcard:hover .laptop-mock { transform: scale(1.04); }

/* ── Card phone mockup ── */
.card-phone {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: #0d0d0b;
    transition: transform 0.5s var(--eout);
}
.pcard:hover .card-phone { transform: scale(1.04); }

.cp-mock {
    height: 82%;
    aspect-ratio: 9 / 16;
    max-width: 55%;
    background: #1c1c1e;
    border-radius: 28px;
    border: 6px solid #2c2c2e;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 20px 50px rgba(0,0,0,0.65);
    overflow: hidden;
    display: flex; flex-direction: column;
}

.cp-top {
    height: 22px; flex-shrink: 0;
    background: #1c1c1e;
    display: flex; align-items: flex-start; justify-content: center;
}

.cp-island {
    width: 56px; height: 16px;
    background: #000; border-radius: 0 0 12px 12px;
}

.cp-screen {
    flex: 1; min-height: 0;
    background: #080810; overflow: hidden;
}

.cp-screen img {
    width: 100%; height: 100%;
    display: block;
    object-fit: cover;
    object-position: 35% top;
}

.cp-bottom {
    height: 18px; flex-shrink: 0;
    background: #1c1c1e;
    display: flex; align-items: center; justify-content: center;
}

.cp-home {
    width: 50px; height: 3px;
    background: rgba(255,255,255,0.2); border-radius: 2px;
}

.lm-lid {
    width: 78%;
    background: #252523;
    border-radius: 5px 5px 0 0;
    padding: 2.5% 2.5% 2%;
    border: 1.5px solid rgba(255,255,255,0.1);
    border-bottom-color: rgba(255,255,255,0.05);
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    display: flex; flex-direction: column;
    align-items: center; gap: 3px;
}

.lm-cam {
    width: 4px; height: 4px;
    background: rgba(255,255,255,0.18);
    border-radius: 50%;
    margin-bottom: 1px;
}

.lm-screen {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #040404;
    border-radius: 2px;
    overflow: hidden;
}

.lm-shot {
    display: block;
    width: 100%; height: 100%;
    object-fit: cover;
}

.lm-base {
    width: 85%;
    height: 9px;
    background: linear-gradient(to bottom, #2a2a28, #1e1e1c);
    border-radius: 0 0 5px 5px;
    border: 1.5px solid rgba(255,255,255,0.07);
    border-top: none;
}

/* ── Phone mockup ── */
.phone-mock {
    position: absolute; inset: 0;
    background: #0d0d0b;
    display: flex;
    align-items: center; justify-content: center;
    transition: transform 0.5s var(--eout);
}

.pcard:hover .phone-mock { transform: scale(1.04); }

.pm-frame {
    height: 74%;
    aspect-ratio: 9 / 19.5;
    background: #1e1e1c;
    border-radius: 24px;
    border: 1.5px solid rgba(255,255,255,0.12);
    box-shadow: 0 16px 48px rgba(0,0,0,0.75), inset 0 1px 0 rgba(255,255,255,0.07);
    padding: 6% 5% 5%;
    display: flex; flex-direction: column;
    align-items: center; gap: 5px;
}

.pm-notch {
    width: 30%; height: 5px;
    background: #0a0a08;
    border-radius: 10px;
    flex-shrink: 0;
}

.pm-screen {
    width: 100%; flex: 1;
    background: #020202;
    border-radius: 12px;
    overflow: hidden;
}

.pm-shot {
    display: block;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* ── Meesterproef wide card bg image ── */
.pcw-bg-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.18;
    transition: opacity 0.5s;
}

.pcard-wide:hover .pcw-bg-img { opacity: 0.28; }

/* ── Card badge (image cards) ── */
.pcard-badge {
    position: absolute;
    bottom: 1rem; left: 1rem;
    display: flex; align-items: center; gap: 0.5rem;
    background: rgba(11,11,9,0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    padding: 0.35rem 0.65rem;
    pointer-events: none;
}

.pb-num {
    font-size: 0.5rem; font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--accent);
    font-family: var(--mono);
}

.pb-title {
    font-size: 0.7rem; font-weight: 600;
    color: var(--text);
    letter-spacing: 0.03em;
}

/* Lime cards — dark text */
.pph-lime .pph-num { color: rgba(11,11,9,0.18); }
.pph-lime .pph-cat { color: rgba(11,11,9,0.55); }

.pph-num {
    font-size: 5rem; font-weight: 700;
    letter-spacing: -0.06em; line-height: 1;
    color: rgba(244,240,232,0.55);
    user-select: none;
    transition: transform 0.55s var(--eout), color 0.4s;
}

.pcard:hover .pph-num {
    transform: scale(2.4);
    color: rgba(244,240,232,0.12);
}

.pph-lime .pph-num { color: rgba(11,11,9,0.45); }
.pcard:hover .pph-lime .pph-num { color: rgba(11,11,9,0.1); }

.pph-cat {
    font-size: 0.58rem; font-weight: 700;
    letter-spacing: 0.22em; color: var(--muted);
    user-select: none;
    transition: opacity 0.3s, transform 0.4s var(--eout);
}

.pcard:hover .pph-cat {
    opacity: 0;
    transform: translateY(-6px);
}


/* Card title turns accent on hover */
.pcard:hover .pcard-meta h3 { color: var(--accent); }

/* Consistente rand — lime cards: donker, donkere cards: lime */
.pcard:nth-child(4):hover .pcard-media { border-color: rgba(11,11,9,0.55); }
.pcard:nth-child(1):hover .pcard-media { border-color: var(--accent); }

.pcard:nth-child(2):hover .pcard-media,
.pcard:nth-child(3):hover .pcard-media,
.pcard:nth-child(5):hover .pcard-media { border-color: var(--accent); }

/* ── Wide card: De Meesterproef ── */
.pcard-wide { grid-column: span 12; }

.pcard-wide .pcard-media {
    aspect-ratio: 16 / 5;
    background: #0e0e0c;
}

.pcard-wide:hover .pcard-media { border-color: var(--accent); }

.pcw-center {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 0.8rem;
    text-align: center;
}

/* Wide card: text left, mockup right */
.pcard-wide .pcw-center {
    right: 46%;
    align-items: flex-start;
    text-align: left;
    padding-left: 4rem;
}

.pcw-mock-right {
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 46%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 5% 6%;
    pointer-events: none;
    transition: transform 0.5s var(--eout);
}

.pcard-wide:hover .pcw-mock-right { transform: scale(1.03); }

.pcw-label {
    font-size: 0.6rem; font-weight: 700;
    letter-spacing: 0.22em; color: var(--muted);
    font-family: var(--mono); text-transform: uppercase;
}

.pcw-heading {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700; color: var(--text);
    line-height: 1; margin: 0;
    transition: color 0.3s;
}

.pcard-wide:hover .pcw-heading { color: var(--accent); }

.pcw-status {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.72rem; color: var(--muted);
    font-family: var(--mono); letter-spacing: 0.06em;
}

.pcw-ghost {
    position: absolute; right: 2.5rem; top: 50%;
    transform: translateY(-50%);
    font-size: clamp(6rem, 12vw, 11rem);
    font-weight: 700; color: rgba(255,255,255,0.025);
    line-height: 1; font-family: var(--mono);
    pointer-events: none; user-select: none;
    transition: color 0.5s;
}

.pcard-wide:hover .pcw-ghost { color: rgba(213,255,71,0.04); }

.pcard-meta {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 0.85rem 0 0;
}

.pcard-meta h3 { font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em; transition: color 0.25s; }

.pcard-info {
    display: flex; gap: 1.5rem;
    font-size: 0.65rem; color: var(--muted); font-family: var(--mono);
}




/* ═══════════════════════════════
   BENTO GRID
   ═══════════════════════════════ */
.bento-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 10px;
    margin-bottom: 4rem;
}

.bento-card {
    background: var(--sur);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    transition: border-color 0.25s;
}

.bento-card:hover { border-color: rgba(244,240,232,0.15); }

.bento-big  { grid-column: 1; grid-row: 1 / span 2; }
.bento-wide { grid-column: 2 / span 2; grid-row: 2; }
.bento-sm   { grid-row: 1; }
.bento-accent { background: rgba(213,255,71,0.05); border-color: rgba(213,255,71,0.15); }

.bento-label {
    font-size: 0.55rem; font-weight: 700;
    letter-spacing: 0.22em; color: var(--muted);
    font-family: var(--mono); text-transform: uppercase;
}

.bento-quote {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700; letter-spacing: -0.03em;
    line-height: 1.1; color: var(--text);
    margin: 0;
}

.bento-icon {
    font-size: 1.6rem;
}

.bento-val {
    font-size: 1rem; font-weight: 600;
    color: var(--text);
}

.bento-tags {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
}

.bento-tags span {
    font-size: 0.72rem; font-weight: 600;
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--muted);
}

.bento-avail {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.75rem; font-weight: 700;
    color: var(--accent); font-family: var(--mono);
    letter-spacing: 0.06em;
}

/* ═══════════════════════════════
   ABOUT
   ═══════════════════════════════ */
#about { border-top: 1px solid var(--border); }

.about-cols {
    display: grid; grid-template-columns: 3fr 2fr;
    gap: 5rem; align-items: start; margin-bottom: 4rem;
}

.about-left { display: flex; flex-direction: column; gap: 1.4rem; }

.about-lead {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 400; line-height: 1.75;
    color: var(--text);
}

.about-left p:not(.about-lead) {
    font-size: 1rem; font-weight: 300;
    line-height: 1.85; color: rgba(244,240,232,0.65);
}

.about-right { padding-top: 0.25rem; }

.skills-wrap { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.5rem; }

.stag {
    font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em;
    padding: 0.38rem 0.85rem;
    border: 1px solid var(--border); border-radius: 100px;
    color: var(--muted); cursor: none;
    transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.stag:hover { border-color: var(--accent); color: var(--bg); background: var(--accent); }

/* ── About statement ── */
.about-statement {
    margin-bottom: 3.5rem;
}

.about-big {
    font-size: clamp(3rem, 6.5vw, 6rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.06;
    color: var(--text);
}

.about-big em {
    font-style: italic;
    color: var(--accent);
}

/* ── About stats ── */
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-bottom: 3rem;
}

.astat {
    padding: 2.2rem 2.5rem 2.2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

/* accent line that draws in */
.astat::before {
    content: '';
    position: absolute;
    top: -1px; left: 0;
    height: 2px;
    width: 0;
    background: var(--accent);
    transition: width 0.7s var(--eout) calc(var(--si, 0) * 0.1s);
}
.astat.in-view::before { width: 2.8rem; }

.astat-label {
    font-size: 0.52rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
    font-family: var(--mono);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.4s ease calc(0.15s + var(--si, 0) * 0.1s),
                transform 0.4s ease calc(0.15s + var(--si, 0) * 0.1s);
}
.astat.in-view .astat-label { opacity: 1; transform: translateY(0); }

.astat-num {
    font-size: clamp(3.8rem, 6.5vw, 7.5rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 0.85;
    color: var(--text);
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s var(--eout) calc(0.25s + var(--si, 0) * 0.1s),
                transform 0.55s var(--eout) calc(0.25s + var(--si, 0) * 0.1s);
}
.astat.in-view .astat-num { opacity: 1; transform: translateY(0); }

/* ── About facts ── */
.about-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    border-top: 1px solid var(--border);
    padding-top: 2.5rem;
    margin-bottom: 3rem;
}

.af-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.af-num {
    font-size: 0.55rem; font-weight: 700;
    letter-spacing: 0.3em; color: var(--accent);
    font-family: var(--mono);
}

.af-text {
    font-size: 0.95rem; font-weight: 300;
    line-height: 1.75; color: rgba(244,240,232,0.65);
}

/* ── Skills/Programs grid ── */
.ab-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 2.5rem;
}

.ab-block {
    padding: 2.5rem 0;
}

.ab-block:first-child {
    border-right: 1px solid var(--border);
    padding-right: 4rem;
}

.ab-block:last-child {
    padding-left: 4rem;
}

.ab-label {
    display: block;
    font-size: 0.58rem; font-weight: 700;
    letter-spacing: 0.2em; color: var(--muted);
    font-family: var(--mono); text-transform: uppercase;
    margin-bottom: 1.6rem;
}

.ab-list {
    list-style: none;
}

.ab-list li {
    font-size: 1.2rem; font-weight: 600;
    color: var(--text);
    padding: 0.8rem 0 0.8rem 0.9rem;
    border-bottom: 1px solid var(--border);
    border-left: 2px solid transparent;
    letter-spacing: -0.02em;
    transition: color 0.2s, border-left-color 0.25s;
    cursor: default;
}

.ab-list li:last-child { border-bottom: none; }

.ab-list li:hover {
    color: var(--accent);
    border-left-color: var(--accent);
}

/* Currently block */
.currently-block {
    border-top: 1px solid var(--border);
    padding-top: 0;
    margin-top: 2rem;
}

.cb-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    gap: 2rem;
    align-items: baseline;
}

.cb-key {
    font-size: 0.58rem; font-weight: 700;
    letter-spacing: 0.2em; color: var(--muted);
    font-family: var(--mono); text-transform: uppercase;
}

.cb-val {
    font-size: 0.92rem; font-weight: 400;
    color: rgba(244,240,232,0.72);
    line-height: 1.5;
}

.cb-accent { color: var(--accent); }


/* ═══════════════════════════════
   CONTACT
   ═══════════════════════════════ */
.contact-section {
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.contact-inner {
    display: flex; flex-direction: column;
    gap: 2rem;
}

.contact-inner .section-lbl { margin-bottom: 0; }

.contact-heading {
    font-size: clamp(3.8rem, 9vw, 8.5rem);
    font-weight: 700; letter-spacing: -0.04em; line-height: 0.9;
    margin-top: 0.5rem;
}

.contact-cta {
    display: inline-flex; align-items: center; gap: 1.2rem;
    font-size: clamp(1.15rem, 2.8vw, 2.1rem);
    font-weight: 600; letter-spacing: -0.02em;
    color: var(--text);
    border-bottom: 1.5px solid rgba(244,240,232,0.18);
    padding-bottom: 0.55rem;
    align-self: flex-start;
    transition: color 0.25s, border-color 0.25s;
    cursor: none;
}
.contact-cta:hover { color: var(--accent); border-color: var(--accent); }

.cta-arr {
    opacity: 0.5;
    transition: transform 0.35s var(--eout), opacity 0.25s;
}
.contact-cta:hover .cta-arr { transform: translateX(8px); opacity: 1; }

.contact-secondary {
    display: flex; align-items: center; gap: 0.9rem;
    flex-wrap: wrap;
    font-size: 0.84rem; font-weight: 500;
    color: var(--muted);
}

.cs-link { color: var(--muted); transition: color 0.2s; }
.cs-link:hover { color: var(--text); }

.cs-dot { opacity: 0.25; }

.cs-avail {
    display: flex; align-items: center; gap: 0.45rem;
}

.footer {
    display: flex; justify-content: space-between;
    font-size: 0.65rem; color: var(--muted);
    padding-top: 2rem; padding-bottom: 2.5rem;
    border-top: 1px solid var(--border);
    font-family: var(--mono);
}


/* ═══════════════════════════════
   PROJECT OVERLAY — case study
   ═══════════════════════════════ */
.proj-overlay {
    position: fixed; inset: 0;
    z-index: 8000;
    background: var(--bg);
    transform: translateY(102%);
    transition: transform 0.75s var(--eout);
    overflow: hidden;
}

.proj-overlay.open { transform: translateY(0); }

.po-close { display: none; }

.po-back {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 1.6rem 2.5rem;
    font-family: var(--mono); font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: rgba(244,240,232,0.55); background: none; border: none;
    cursor: none;
    transition: color 0.2s;
    opacity: 0;
}
.proj-overlay.open .po-back { opacity: 1; transition: opacity 0.3s 0.5s, color 0.2s; }
.po-back:hover { color: var(--text); }

.po-scroll {
    height: 100%; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.po-content {
    padding-bottom: 8rem;
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.55s var(--eout) 0.45s, transform 0.55s var(--eout) 0.45s;
}
.proj-overlay.open .po-content { opacity: 1; transform: none; }

.po-sweep { display: none; }

/* ── Scroll reveal ── */
.po-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s var(--eout), transform 0.65s var(--eout);
    transition-delay: calc(var(--ri, 0) * 0.08s);
}
.po-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.po-reveal.is-past {
    opacity: 0;
    transform: translateY(-16px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    transition-delay: 0s;
}

.po-content.po-exit {
    opacity: 0 !important;
    transform: translateY(16px) !important;
    transition: opacity 0.22s ease, transform 0.22s ease !important;
}
.po-content.po-enter {
    opacity: 0 !important;
    transform: translateY(20px) !important;
    transition: opacity 0.4s var(--eout), transform 0.4s var(--eout) !important;
}

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

.po-hero-r .po-browser,
.po-hero-r .po-phone-mock {
    animation: floatMockup 5s ease-in-out infinite;
    will-change: transform;
}

/* ── Hero: split layout ── */
.po-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 90vh;
    border-bottom: 1px solid var(--border);
}

.po-hero-l {
    padding: 5rem 4rem 4rem;
    display: flex; flex-direction: column;
    border-right: 1px solid var(--border);
}

.po-hero-cat {
    display: block;
    font-size: 0.58rem; font-weight: 700; letter-spacing: 0.22em;
    text-transform: uppercase; color: var(--muted);
    font-family: var(--mono); margin-bottom: 3rem;
}

.po-num-ghost {
    font-size: clamp(7rem, 14vw, 18rem);
    font-weight: 700; line-height: 0.85;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(213,255,71,0.18);
    text-stroke: 1.5px rgba(213,255,71,0.18);
    letter-spacing: -0.05em;
    margin-bottom: -0.3em;
    pointer-events: none;
}

.po-title {
    font-size: clamp(4rem, 7vw, 9rem);
    font-weight: 700; letter-spacing: -0.04em; line-height: 0.88;
    color: var(--text); margin-bottom: 2.5rem;
}

.po-tagline {
    font-size: 1.05rem; font-weight: 400; line-height: 1.75;
    color: rgba(244,240,232,0.65);
    max-width: 420px; margin-bottom: auto; padding-bottom: 3rem;
}

.po-hero-foot {
    display: flex; align-items: center;
    justify-content: space-between; flex-wrap: wrap;
    gap: 1.2rem; margin-bottom: 2rem;
}

.po-meta-item { display: flex; flex-direction: column; gap: 0.35rem; }

.po-meta-lbl {
    font-size: 0.5rem; font-weight: 700; letter-spacing: 0.24em;
    color: var(--muted); font-family: var(--mono); text-transform: uppercase;
}

.po-role { font-size: 0.9rem; color: rgba(244,240,232,0.7); }

.po-live-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em;
    color: var(--accent);
    border: 1px solid rgba(213,255,71,0.35); border-radius: 100px;
    padding: 0.55rem 1.3rem;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
    cursor: none;
}
.po-live-btn:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.po-live-arr { transition: transform 0.3s var(--eout); }
.po-live-btn:hover .po-live-arr { transform: translate(3px,-3px); }

.po-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }

.po-tag {
    font-size: 0.55rem; font-weight: 700; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--muted);
    border: 1px solid var(--border); border-radius: 100px;
    padding: 0.32rem 0.9rem; font-family: var(--mono);
}

.po-hero-r {
    padding: 3rem;
    display: flex; align-items: center; justify-content: center;
    background: var(--sur);
}

/* ── Phone mockup ── */
.po-phone-mock {
    width: 300px;
    height: calc(90vh - 6rem);
    max-height: 780px;
    display: flex; flex-direction: column;
    background: #1c1c1e;
    border-radius: 48px;
    border: 10px solid #2c2c2e;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.1),
        inset 0 0 0 1px rgba(255,255,255,0.04),
        0 40px 100px rgba(0,0,0,0.75);
    overflow: hidden;
}

.po-phone-top {
    height: 36px; flex-shrink: 0;
    background: #1c1c1e;
    display: flex; align-items: flex-start; justify-content: center;
}

.po-phone-island {
    width: 100px; height: 26px;
    background: #000;
    border-radius: 0 0 18px 18px;
}

.po-phone-screen {
    flex: 1; min-height: 0;
    background: #111; overflow: hidden;
}

.po-phone-screen img {
    width: 100%; height: 100%;
    display: block;
    object-fit: cover;
    object-position: 35% top;
}

.po-phone-bottom {
    height: 32px; flex-shrink: 0;
    background: #1c1c1e;
    display: flex; align-items: center; justify-content: center;
}

.po-phone-home {
    width: 110px; height: 5px;
    background: rgba(255,255,255,0.22); border-radius: 3px;
}

/* ── Browser / mockup frame ── */
.po-browser {
    width: 100%;
    border-radius: 10px; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 28px 70px rgba(0,0,0,0.6);
}

.po-bc {
    display: flex; align-items: center; gap: 0.45rem;
    padding: 0.55rem 1rem;
    background: #1e1e1c;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.po-bc-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,0.14); flex-shrink: 0;
}

.po-bc-url {
    height: 16px; flex: 1;
    background: rgba(255,255,255,0.06);
    border-radius: 100px;
    max-width: 200px; margin: 0 auto;
}

.po-bc-body { background: #111110; overflow: hidden; }

.po-bc-body img {
    width: 100%; height: auto;
    display: block; object-fit: contain;
    object-position: top center;
}

/* ── Split section header ── */
.po-split-hd {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 3.5rem 4rem 2.5rem;
    border-bottom: 1px solid var(--border);
}

.po-split-hd span {
    font-size: clamp(3rem, 5.5vw, 7rem);
    font-weight: 700; letter-spacing: -0.04em; line-height: 0.88;
    color: var(--text); text-transform: uppercase;
}

/* ── Process grid ── */
.po-proc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0;
    border-bottom: 1px solid var(--border);
}

.po-proc-item {
    padding: 3.5rem 4rem;
    border-bottom: 1px solid var(--border);
}

.po-proc-item:nth-child(odd) {
    border-right: 1px solid var(--border);
}

.po-proc-num {
    display: block;
    font-size: 1.8rem; font-weight: 700; letter-spacing: -0.04em;
    color: var(--accent); font-family: var(--mono);
    margin-bottom: 1.2rem; line-height: 1;
}

.po-proc-heading {
    font-size: 0.95rem; font-weight: 700; letter-spacing: 0.04em;
    text-transform: uppercase; color: var(--text); margin-bottom: 0.8rem;
}

.po-proc-body {
    font-size: 0.9rem; font-weight: 300;
    line-height: 1.82; color: rgba(244,240,232,0.5);
}

/* ── Work images ── */
.po-work-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 3rem 4rem;
    align-items: start;
}

.po-work-grid .po-browser:only-child,
.po-work-grid .po-browser:last-child:nth-child(odd),
.po-work-grid .po-work-tile:only-child,
.po-work-grid .po-work-tile:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.po-work-tile {
    display: flex;
    flex-direction: column;
}

.po-work-label {
    text-align: center;
    font-size: 0.6rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 0.6rem;
    font-weight: 500;
}

/* ── Typografie sectie ── */
.po-typo-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 3rem 4rem;
}

.po-type-card {
    background: #080807;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.po-type-left {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid var(--border);
}

.po-type-name {
    font-size: 0.58rem;
    letter-spacing: 0.22em;
    color: var(--muted);
    font-family: var(--mono);
    text-transform: uppercase;
}

.po-type-big {
    font-size: clamp(2.2rem, 5vw, 5.5rem);
    font-weight: 800;
    line-height: 0.88;
    letter-spacing: -0.04em;
    color: var(--text);
}

.po-type-right {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.po-type-scale {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.po-type-scale-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.po-type-scale-row:first-child {
    border-top: 1px solid var(--border);
}

.po-type-wlabel {
    font-size: 0.55rem;
    letter-spacing: 0.18em;
    color: var(--muted);
    text-transform: uppercase;
    font-family: var(--mono);
}

.po-type-wsample {
    font-size: 1.4rem;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1;
}

.po-type-scale-row:nth-child(1) .po-type-wsample { font-size: 1.1rem; opacity: 0.7; }
.po-type-scale-row:nth-child(2) .po-type-wsample { font-size: 1.3rem; opacity: 0.85; }
.po-type-scale-row:nth-child(3) .po-type-wsample { font-size: 1.6rem; opacity: 1; }

.po-type-rule {
    height: 1px;
    background: var(--border);
    margin: 1.8rem 0 1.2rem;
}

.po-type-tagline {
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    font-family: var(--mono);
    margin-bottom: 0.6rem;
}

.po-type-desc {
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--muted);
}

.po-type-body-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    border-top: 1px solid var(--border);
    align-items: center;
}

.po-type-body-meta {
    padding: 1.8rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    border-right: 1px solid var(--border);
}

.po-type-usage {
    font-size: 0.52rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    font-family: var(--mono);
}

.po-type-body-col {
    padding: 1.8rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    border-right: 1px solid var(--border);
}

.po-type-body-col:last-child {
    border-right: none;
}

.po-type-body-col:nth-child(2) .po-type-wsample { font-size: 0.85rem; opacity: 0.6; }
.po-type-body-col:nth-child(3) .po-type-wsample { font-size: 1rem;    opacity: 0.8; }
.po-type-body-col:nth-child(4) .po-type-wsample { font-size: 1.1rem;  opacity: 1; }

/* ── Kleurpalet sectie ── */
.po-palette-grid {
    display: flex;
    gap: 1.5rem;
    padding: 3rem 4rem;
}

.po-swatch {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.po-swatch-color {
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.po-swatch-pct {
    position: absolute;
    bottom: 0.5rem;
    right: 0.6rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgba(0,0,0,0.35);
}

.po-swatch-hex {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
}

.po-swatch-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}

.po-work-grid.phone-grid {
    grid-template-columns: repeat(3, 1fr);
    background: #0d0d0b;
    justify-items: center;
    align-items: end;
    padding: 4rem 5rem;
    gap: 2rem;
}

.po-work-phone {
    width: 100%;
    max-width: 260px;
    aspect-ratio: 9 / 16;
    background: #1c1c1e;
    border-radius: 36px;
    border: 8px solid #2c2c2e;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 30px 70px rgba(0,0,0,0.7);
    overflow: hidden;
    display: flex; flex-direction: column;
}
.po-wp-top {
    height: 24px; flex-shrink: 0;
    background: #1c1c1e;
    display: flex; align-items: flex-start; justify-content: center;
}
.po-wp-island {
    width: 60px; height: 18px;
    background: #000; border-radius: 0 0 14px 14px;
}
.po-wp-screen {
    flex: 1; min-height: 0;
    background: #0a0a10; overflow: hidden;
}
.po-wp-screen img {
    width: 100%; height: 100%;
    display: block; object-fit: cover;
    object-position: 35% top;
}
.po-wp-bottom {
    height: 20px; flex-shrink: 0;
    background: #1c1c1e;
    display: flex; align-items: center; justify-content: center;
}
.po-wp-home {
    width: 54px; height: 4px;
    background: #3a3a3c; border-radius: 2px;
}

.po-bc-body .po-work-img {
    width: 100%; height: auto;
    display: block; object-fit: contain;
    object-position: top center;
}

.po-bc-body--fixed .po-work-img {
    height: 100%; object-fit: cover;
    object-position: top 5%;
}

.po-work-grid.constrained .po-browser .po-bc-body {
    aspect-ratio: var(--grid-aspect, 16 / 10);
}

.po-work-grid.constrained .po-bc-body .po-work-img {
    height: 100%; object-fit: cover;
    object-position: top center;
}

.po-work-grid.constrained .po-work-expo .po-work-img {
    object-position: center 55%;
}

.po-work-video {
    width: 100%; height: 100%;
    display: block; object-fit: cover;
}

.po-browser-video .po-bc {
    display: none;
}

.po-browser-video .po-bc-body {
    aspect-ratio: 4 / 3;
}

.po-browser-video .po-work-video {
    height: 100%;
}

.po-work-expo {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
}

.po-work-grid.constrained .po-work-expo .po-bc-body {
    aspect-ratio: 3 / 1;
}


.po-work-caption {
    margin-top: 1.4rem;
    font-size: 0.9rem; font-weight: 300;
    line-height: 1.82; color: rgba(244,240,232,0.5);
    max-width: 720px;
}

/* ── Prototype button ── */
.po-proto-wrap {
    padding: 3rem 4rem 5rem;
    border-top: 1px solid var(--border);
    display: flex; justify-content: center;
}

.po-proto-btn {
    display: inline-flex; align-items: center; gap: 0.6rem;
    font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text);
    border: 1px solid var(--border); border-radius: 100px;
    padding: 0.9rem 2.2rem;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
    cursor: none;
}
.po-proto-btn:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.po-proto-arr { transition: transform 0.3s var(--eout); }
.po-proto-btn:hover .po-proto-arr { transform: translate(3px,-3px); }

/* ── Next project ── */
.po-next {
    padding: 3rem 4rem 4rem;
    border-top: 1px solid var(--border);
    cursor: none;
    transition: background 0.3s;
}
.po-next:hover { background: rgba(213,255,71,0.03); }

.po-next-lbl {
    display: block;
    font-size: 0.56rem; font-weight: 700; letter-spacing: 0.24em;
    text-transform: uppercase; color: var(--muted);
    font-family: var(--mono); margin-bottom: 1.2rem;
}

.po-next-row {
    display: flex; align-items: center; justify-content: space-between;
}

.po-next-title {
    font-size: clamp(3rem, 7vw, 9rem);
    font-weight: 700; letter-spacing: -0.04em; line-height: 0.88;
    color: var(--text); text-transform: uppercase;
    transition: color 0.25s;
}
.po-next:hover .po-next-title { color: var(--accent); }

.po-next-arr {
    font-size: 2.5rem; color: var(--accent);
    transition: transform 0.35s var(--eout);
}
.po-next:hover .po-next-arr { transform: translate(10px,-10px); }

/* ── Quote ── */
.po-quote-block {
    padding: 4rem 4rem 4.5rem;
    border-top: 1px solid var(--border);
}

.po-quote-text {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 300; font-style: italic;
    letter-spacing: -0.01em; line-height: 1.5;
    color: rgba(244,240,232,0.75);
    border-left: 2px solid var(--accent);
    padding-left: 2rem; margin-bottom: 1.2rem;
    max-width: 680px;
}
.po-quote-text::before { content: none; }
.po-quote-text::after  { content: none; }

.po-quote-sub {
    font-size: 0.82rem; font-weight: 300;
    line-height: 1.7; color: rgba(244,240,232,0.3);
    padding-left: 2rem; max-width: 480px;
}


/* ═══════════════════════════════
   BACK TO TOP
   ═══════════════════════════════ */
.back-top-wrap {
    display: flex;
    justify-content: center;
    padding-bottom: 2.5rem;
}

.back-top {
    width: 52px; height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(244,240,232,0.15);
    background: transparent;
    display: flex; align-items: center; justify-content: center;
    cursor: none;
    color: var(--muted);
    transition: border-color 0.25s, color 0.25s, transform 0.25s var(--eout);
}

.back-top:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

/* ═══════════════════════════════
   SPLIT TEXT REVEAL
   ═══════════════════════════════ */
.word-wrap {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    padding-top: 0.15em;
    padding-bottom: 0.25em;
    padding-right: 0.08em;
}

.word-inner {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.word-inner.up { transform: translateY(0); }


/* ═══════════════════════════════
   REVEAL
   ═══════════════════════════════ */
.ri {
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.75s var(--eout), transform 0.75s var(--eout);
}
.ri.in { opacity: 1; transform: none; }

.pcard.ri {
    transform: translateY(55px) scale(0.97);
    transition: opacity 0.9s var(--eout), transform 0.9s var(--eout);
}


/* ═══════════════════════════════
   MAGNETIC
   ═══════════════════════════════ */
.magnetic { transition: transform 0.4s var(--eout); }


/* ═══════════════════════════════
   SCROLL IMAGE JOURNEY
   ═══════════════════════════════ */
.simg-journey {
    height: 145vh;
    position: relative;
    overflow: hidden;
}

.simg-sticky {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.simg-frame {
    width: 48vw;
    max-width: 640px;
    aspect-ratio: 3/4;
    border-radius: 4px;
    overflow: hidden;
    will-change: transform;
    transform-origin: center center;
    flex-shrink: 0;
}

.simg-ph {
    width: 100%; height: 100%;
    background: var(--sur);
    display: flex; align-items: center; justify-content: center;
    position: relative;
}

.simg-ph::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(244,240,232,0.045) 1px, transparent 1px);
    background-size: 22px 22px;
}

.simg-ph::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(160deg, transparent 40%, rgba(11,11,9,0.55));
}

.simg-lbl {
    font-size: 0.58rem; font-weight: 700; letter-spacing: 0.3em;
    color: var(--muted); font-family: var(--mono);
    position: relative; z-index: 1;
}

.simg-caption {
    display: flex; gap: 3rem;
    opacity: 0;
    transition: opacity 0.6s var(--eout);
}

.simg-caption.vis { opacity: 1; }

.simg-cap-line {
    font-size: 0.6rem; font-weight: 700;
    letter-spacing: 0.18em; color: var(--muted);
    font-family: var(--mono); text-transform: uppercase;
}


/* ═══════════════════════════════
   RESPONSIVE
   ═══════════════════════════════ */
@media (max-width: 900px) {
    .projects-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .pcard { grid-column: span 1; }
    .about-cols  { grid-template-columns: 1fr; gap: 2rem; }
    .cb-row { grid-template-columns: 140px 1fr; }
    .about-facts { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .ab-block:first-child { padding-right: 2rem; }
    .ab-block:last-child  { padding-left: 2rem; }
    .ab-list li { font-size: 1rem; }
}

@media (max-width: 640px) {
    .nav { padding: 1.2rem 1.5rem; }
    .nav-link:not(.nav-cta) { display: none; }
    .lang-btn { display: block; }
    .about-facts { grid-template-columns: 1fr; gap: 2rem; }
    .about-big { font-size: clamp(2.4rem, 9vw, 4rem); }
    .ab-grid { grid-template-columns: 1fr; }
    .ab-block:first-child { border-right: none; padding-right: 0; border-bottom: 1px solid var(--border); }
    .ab-block:last-child { padding-left: 0; }
    .simg-journey { height: 200vh; }
    .simg-frame { width: 90vw; }
    .cb-row { grid-template-columns: 1fr; gap: 0.3rem; }
    .cb-key { margin-bottom: 0; }
    .contact-secondary { gap: 0.7rem; font-size: 0.76rem; }
    .po-header { flex-direction: column; gap: 1.5rem; }
    .po-hr { text-align: left; }
    .hero-strip { flex-direction: column; gap: 0.8rem; align-items: flex-start; padding-bottom: 2.5rem; }
    .projects-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .pcard, .pcard:nth-child(3), .pcard:nth-child(4) { grid-column: span 1; }
    .pcard-wide { grid-column: span 1; }
    .pcard-wide .pcard-media { aspect-ratio: 4 / 3; }
    .pcw-inner { padding: 0 1.5rem; }
    .pcw-ghost { font-size: 5rem; right: 1.5rem; }
    .section { padding: 3rem 1.5rem; }
    .tsb-track span { font-size: 3rem; }
    .menu-inner { padding: 4rem 1.5rem 2rem; }
    .menu-foot  { left: 1.5rem; flex-direction: column; gap: 0.5rem; }
    body { cursor: auto; }
    .c-dot, .c-ring { display: none; }

    /* Project overlay mobile */
    .po-hero { grid-template-columns: 1fr; min-height: unset; }
    .po-hero-l { padding: 2rem 1.5rem; border-right: none; border-bottom: 1px solid var(--border); }
    .po-hero-r { padding: 1.5rem; }
    .po-title { font-size: clamp(2.2rem, 10vw, 4rem); }
    .po-split-hd { padding: 2rem 1.5rem 1.5rem; flex-direction: column; gap: 0; }
    .po-split-hd span { font-size: clamp(2rem, 10vw, 4rem); }
    .po-work-grid { grid-template-columns: 1fr; padding: 1.5rem; gap: 1rem; }
    .po-work-grid .po-browser:last-child:nth-child(odd) { grid-column: span 1; }
    .po-work-tile { grid-column: span 1; }
    .po-proc-grid { grid-template-columns: 1fr; padding: 1.5rem; gap: 1rem; }
    .po-palette-grid { padding: 1.5rem; gap: 1rem; flex-wrap: wrap; }
    .po-swatch { flex: 1 1 calc(50% - 0.5rem); min-width: 120px; }
    .po-typo-grid { padding: 1.5rem; }
    .po-type-card { grid-template-columns: 1fr; }
    .po-type-left { border-right: none; border-bottom: 1px solid var(--border); }
    .po-type-body-row { grid-template-columns: 1fr 1fr; }
    .po-type-body-meta { grid-column: 1 / -1; border-right: none; border-bottom: 1px solid var(--border); }
    .po-quote-block { padding: 2rem 1.5rem; }
    .po-proto-wrap { padding: 1.5rem; }
    .po-next { padding: 2rem 1.5rem; }
    .work-split-title { font-size: clamp(2rem, 8vw, 3.5rem); }
    .about-stats { grid-template-columns: 1fr 1fr; gap: 0; }
    .astat { padding: 1.5rem 1rem 1.5rem 0; }
    .astat-num { font-size: clamp(2.8rem, 12vw, 5rem); }
    .astat:nth-child(3) { grid-column: span 2; border-top: 1px solid var(--border); padding-top: 1.5rem; }
}
