﻿/*Vars*/
:root {
    --bg: #0a0a0a;
    --panel: #121213;
    --text: #eaeaea;
    --muted: #a9a9a9;
    --line: #252525;
    --acc: #8b5cf6;
    --acc2: #a78bfa;
    --grad: linear-gradient(90deg,#8b5cf6 0%,#22d3ee 50%,#a78bfa 100%);
    --glass: rgba(16,16,20,.35);
    --ff: 'Inter',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
    --ff-heading: 'Michroma','Inter',system-ui,sans-serif;
    --section-y: clamp(56px,14svh,96px);
    --hero-top-y: clamp(32px,10svh,72px);
    --space-1: 8px;
    --space-2: 12px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5: 32px;
    --space-6: 48px;
    --r2: 14px;
    --r3: 18px;
    --shadow-xl: 0 18px 50px rgba(0,0,0,.45);
    --glow: 0 8px 28px rgba(139,92,246,.25), inset 0 0 0 1px rgba(139,92,246,.14);
    --nav-h: 64px;
    --stroke: #fff;
    --stroke-width: 4.3;
    --duration: 7s;
    --stagger: .6s;
    --section-head-gap: clamp(24px, 5.2vh, 64px);
}

/*Base*/
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: radial-gradient(1200px 700px at 10% -10%,#1a1330 0%,transparent 60%),var(--bg);
    color: var(--text);
    font-family: var(--ff);
    line-height: 1.65;
    scroll-behavior: smooth;
    padding-top: 0 !important;
    overflow-x: clip;
}

.container {
    width: min(1400px,94%);
    margin-inline: auto;
}

h1, h2, h3 {
    letter-spacing: -.02em;
    margin: 0 0 var(--space-3);
    font-family: var(--ff-heading);
}

h1 {
    font-weight: 800;
    font-size: clamp(46px,8.6vw,120px);
    line-height: .92;
}

h2 {
    font-weight: 800;
    font-size: clamp(28px,3vw,48px);
    margin-bottom: var(--section-head-gap) !important;
}

h3 {
    font-weight: 700;
    font-size: clamp(20px,2vw,28px);
}

.section {
    padding-top: clamp(50px,8vh,100px);
    padding-bottom: clamp(70px,10vh,100px);
    text-align: center;
}

    .section + .section {
        border-top: 1px solid rgba(255,255,255,.03);
    }

.about-text {
    max-width: 72ch;
    margin-inline: auto;
    color: #d9d9ec;
}

/*Header / Nav*/
.site-header {
    position: fixed;
    top: 12px;
    left: 0;
    right: 0;
    z-index: 30;
    transition: transform .35s ease,opacity .25s ease;
    will-change: transform,opacity;
}

    .site-header.is-hidden {
        transform: translateY(calc(-100% - 24px));
        opacity: 0;
        pointer-events: none;
    }

.nav-shell {
    position: relative;
    width: min(1100px,96%);
    margin-inline: auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 16px;
    border: 1px solid rgba(160,160,255,.12);
    box-shadow: var(--shadow-xl), inset 0 0 0 1px rgba(255,255,255,.02);
    overflow: hidden;
    clip-path: inset(0 round 16px);
    isolation: isolate;
    background: transparent;
}

    .nav-shell::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.02)),var(--glass);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        pointer-events: none;
        z-index: 0;
    }

    .nav-shell > * {
        position: relative;
        z-index: 1;
    }

    .nav-shell.nav-mini {
        padding: 6px;
        grid-template-columns: 1fr;
        justify-items: center;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }

        .nav-shell.nav-mini::before {
            content: none;
        }

        .nav-shell.nav-mini .brand,
        .nav-shell.nav-mini .nav-links,
        .nav-shell.nav-mini .nav-toggle {
            display: none !important;
        }

.button-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 10px;
    border-radius: 12px;
    border: 1px solid rgba(160,160,255,.12);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
    overflow: hidden;
    clip-path: inset(0 round 12px);
    isolation: isolate;
    background: transparent;
    transition: padding .35s ease,gap .35s ease,box-shadow .25s ease,border-color .25s ease;
}

    .button-container::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.02)),var(--glass);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        pointer-events: none;
        z-index: 0;
    }

    .button-container > * {
        position: relative;
        z-index: 1;
    }

    .button-container:hover {
        padding: 0 16px;
        gap: 10px;
        border-color: #3a2b7a;
        box-shadow: inset 0 0 0 1px rgba(139,92,246,.18);
    }

.button {
    outline: 0 !important;
    border: 0 !important;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dcd3ff;
    font-weight: 700;
    font-size: .94rem;
    letter-spacing: .2px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    position: relative;
    transition: transform .25s ease,color .2s ease,background .25s ease,border-color .25s ease,box-shadow .25s ease;
}

    .button:hover, .button:focus-visible {
        transform: translateY(-2px);
        color: #fff;
        background: transparent;
        border-color: transparent;
        box-shadow: none;
        outline: none;
        text-shadow: 0 0 18px rgba(139,92,246,.35);
    }

    .button:active {
        transform: translateY(0);
    }

    .button.is-active {
        color: #fff;
        background: transparent;
        border-color: transparent;
        box-shadow: none;
        text-shadow: 0 0 20px rgba(167,139,250,.28);
    }

        .button.is-active::after {
            width: 72%;
        }

    .button::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 6px;
        height: 2px;
        width: 0%;
        transform: translateX(-50%);
        border-radius: 2px;
        background: var(--grad);
        transition: width .28s ease;
        will-change: width;
    }

    .button:hover::after, .button:focus-visible::after {
        width: 72%;
    }

@media (max-width:520px) {
    .nav-shell.nav-mini {
        padding: 5px;
    }

    .button-container {
        height: 44px;
        padding: 0 10px;
    }

    .button {
        height: 36px;
        padding: 0 10px;
        font-size: .9rem;
    }
}

/*Buttons (CTA)*/
.btn, .btn-outline {
    --btn-h: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: var(--btn-h);
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: .2px;
    text-decoration: none;
    border: 1px solid rgba(160,160,255,.12);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.02),var(--shadow-xl);
    transition: transform .22s ease,box-shadow .25s ease,background .45s ease,border-color .25s ease,filter .25s ease;
}

.btn {
    color: #fff;
    background: var(--grad);
    background-size: 220% 220%;
}

    .btn:hover, .btn:focus-visible {
        transform: translateY(-2px);
        background-position: 100% 50%;
        border-color: #3a2b7a;
        box-shadow: 0 12px 26px rgba(0,0,0,.45),0 0 0 1px rgba(139,92,246,.18) inset;
        outline: none;
    }

.btn-outline {
    color: #eaeaff;
    background: linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.02)),var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

    .btn-outline:hover, .btn-outline:focus-visible {
        transform: translateY(-2px);
        border-color: #3a2b7a;
        box-shadow: 0 12px 26px rgba(0,0,0,.45), 0 0 0 1px rgba(139,92,246,.18) inset;
        outline: none;
    }

@media (prefers-reduced-motion:reduce) {
    .btn, .btn-outline {
        transition: none
    }
}

/*Hero*/
.hero {
    position: relative;
    overflow: hidden;
}

    .hero.hero-centered {
        padding-top: calc(var(--hero-top-y) + 64px);
    }

.type-line {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    white-space: nowrap;
    text-shadow: 0 8px 40px rgba(0,0,0,.35);
}

.grad-name, .grad-name .glyph {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    background-size: 250% 250%;
    animation: gradient-pan var(--grad-speed,28s) ease-in-out infinite alternate;
    will-change: background-position;
}

@keyframes gradient-pan {
    0% {
        background-position: 0% 50%
    }

    100% {
        background-position: 100% 50%
    }
}

@media (prefers-reduced-motion:reduce) {
    .grad-name, .grad-name .glyph {
        animation: none !important
    }
}

.glyph {
    display: inline-block;
    opacity: 0;
    transform: translateY(8px);
    filter: blur(2px);
    transition: opacity .35s ease,transform .35s ease,filter .35s ease;
}

    .glyph.in {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }

.caret {
    width: 2px;
    height: 1em;
    background: #fff;
    margin-left: 2px;
    align-self: flex-end;
    animation: caret-blink .95s step-end infinite;
    opacity: .9;
}

    .caret.done {
        animation: caret-hide .25s ease forwards;
    }

@keyframes caret-blink {
    50% {
        opacity: 0
    }
}

@keyframes caret-hide {
    to {
        opacity: 0
    }
}

.tagline {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: var(--ff-heading);
    font-weight: 800;
    font-size: clamp(20px,3.8vw,35px);
    line-height: 1.05;
    letter-spacing: -.01em;
    color: #f5f4ff;
    margin: 10px 0 0;
    text-shadow: 0 8px 40px rgba(0,0,0,.35);
    position: relative;
    padding-bottom: 12px;
}

    .tagline::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
        width: clamp(56px,14vw,140px);
        height: 2px;
        border-radius: 2px;
        background: var(--grad);
        box-shadow: 0 6px 20px rgba(139,92,246,.35);
        opacity: .95;
    }

#tagSwap {
    position: relative;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
}

    #tagSwap::before, #tagSwap::after {
        content: none !important;
    }

#tagText {
    display: inline-block;
    white-space: inherit;
    line-height: 1;
}

#tagCaret {
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 3px;
    background: #fff;
    opacity: .9;
    vertical-align: -.05em;
    animation: caret-blink .95s step-end infinite;
}

@media (max-width:520px) {
    .tagline {
        font-size: clamp(16px,5.1vw,17px);
        padding-bottom: 10px;
    }

        .tagline::after {
            width: clamp(48px,22vw,100px);
        }
}

.hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.hero-social {
    margin: 16px auto 8px;
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

    .hero-social a {
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        border-radius: 999px;
        border: 1px solid rgba(160,160,255,.14);
        background: linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.02)),var(--glass);
        box-shadow: inset 0 0 0 1px rgba(255,255,255,.02),var(--shadow-xl);
        transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease;
    }

        .hero-social a:hover {
            transform: translateY(-2px);
            border-color: #3a2b7a;
            box-shadow: 0 10px 26px rgba(0,0,0,.45),0 0 0 1px rgba(139,92,246,.18) inset;
        }

    .hero-social i {
        font-size: 18px;
        color: #eaeaff;
    }

.mini-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
}

    .mini-stats .ms {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        height: 36px;
        padding: 0 12px;
        border-radius: 999px;
        border: 1px solid rgba(160,160,255,.12);
        background: linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.02)), var(--glass);
        box-shadow: inset 0 0 0 1px rgba(255,255,255,.02), var(--shadow-xl);
        color: #dcd3ff;
        font-weight: 700;
        transition: transform .18s ease, border-color .2s ease, box-shadow .2s ease;
    }

        .mini-stats .ms:hover {
            transform: translateY(-2px);
            border-color: #3a2b7a;
            box-shadow: 0 10px 26px rgba(0,0,0,.45), 0 0 0 1px rgba(139,92,246,.18) inset;
        }

        .mini-stats .ms i {
            font-size: 14px;
            color: #eaeaff;
            opacity: .95;
        }

    .mini-stats .ms-num {
        font-size: .98rem;
        color: #fff;
        line-height: 1;
    }

    .mini-stats .ms-label {
        font-size: .82rem;
        color: #cfcff2;
        line-height: 1;
    }

@media (max-width:520px) {
    .mini-stats {
        gap: 8px;
    }

        .mini-stats .ms {
            height: 34px;
            padding: 0 10px;
        }

        .mini-stats .ms-label {
            display: none;
        }
}

/*Dots canvas*/
#siteDots {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: .7;
}

/*Eyebrow*/
.eyebrow {
    display: block;
    margin: 0 0 12px;
    font-family: var(--ff-heading);
    font-weight: 800;
    text-transform: uppercase;
    font-size: clamp(16px,1.7vw,22px);
    letter-spacing: .18em;
    line-height: 1.1;
    color: #e7e5ff;
    opacity: .95;
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

    .eyebrow:hover {
        opacity: 1;
    }



/*Projects*/
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap: 18px;
    align-items: stretch;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 18px;
    text-align: center;
    border: 1px solid #26263a;
    border-radius: 16px;
    background: radial-gradient(400px 240px at 10% -20%,rgba(139,92,246,.08),transparent 60%),#13131a;
    color: inherit;
    text-decoration: none;
    box-shadow: var(--shadow-xl), inset 0 0 0 1px rgba(255,255,255,.02);
    transform-style: preserve-3d;
    transition: transform .18s ease,border-color .18s ease;
}

    .card:hover {
        border-color: #3a2b7a;
    }

    .card h3 {
        margin: 0 0 8px;
    }

    .card p {
        margin: 0 0 10px;
        color: #cfcff2;
    }

.chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: auto;
}

    .chips span {
        border: 1px solid #2a2a2a;
        border-radius: 999px;
        font-size: 12px;
        padding: 4px 8px;
        color: #dcd3ff;
        background: #171723;
    }

.tilt {
    transform-style: preserve-3d;
    transition: transform .18s ease;
}

.glare {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(220px 140px at var(--mx,50%) var(--my,30%),rgba(139,92,246,.18),transparent 60%);
    mix-blend-mode: screen;
}

/*Contact card*/
.contact-card {
    position: relative;
    width: min(560px,92%);
    height: clamp(140px,24vw,180px);
    margin-inline: auto;
    background: var(--panel);
    border-radius: var(--r3);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(160,160,255,.12);
}

.contact-bg {
    position: absolute;
    inset: 0;
    background: var(--grad);
}

    .contact-bg::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg,rgba(0,0,0,.18),rgba(0,0,0,.32));
    }

.contact-logo {
    position: absolute;
    right: 50%;
    bottom: 50%;
    transform: translate(50%,50%);
    transition: transform .6s ease,letter-spacing .6s ease;
    font-size: clamp(16px,1.4vw,18px);
    font-weight: 800;
    color: #fff;
    letter-spacing: 3px;
    text-shadow: 0 2px 10px rgba(0,0,0,.35);
    z-index: 2;
}

.contact-box {
    position: absolute;
    padding: 10px;
    text-align: right;
    background: rgba(255,255,255,.28);
    border-top: 2px solid rgba(255,255,255,.9);
    border-right: 1px solid rgba(255,255,255,.9);
    border-radius: 10% 13% 42% 0%/10% 12% 75% 0%;
    box-shadow: rgba(100,100,111,.36) -7px 7px 29px 0px;
    transform-origin: bottom left;
    transition: all 1s ease-in-out;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1;
}

    .contact-box i {
        color: rgba(255,255,255,.85);
        font-size: 20px;
        line-height: 1;
        transition: all .5s ease;
        filter: drop-shadow(0 2px 6px rgba(0,0,0,.3));
    }

.contact-card:hover .contact-box {
    bottom: 12px;
    left: 12px;
}

.contact-card:hover .contact-logo {
    transform: translate(180px,-50px);
    letter-spacing: 0;
}

.contact-box.box1 {
    width: 42%;
    height: 80%;
    bottom: -80%;
    left: -60%;
}

.contact-box.box2 {
    width: 30%;
    height: 58%;
    bottom: -58%;
    left: -44%;
    transition-delay: .15s;
}

.contact-box.box3 {
    width: 18%;
    height: 36%;
    bottom: -36%;
    left: -28%;
    transition-delay: .30s;
}

.contact-box.box4 {
    width: 10%;
    height: 18%;
    bottom: -18%;
    left: -14%;
    transition-delay: .45s;
}

/*Reveal*/
.reveal {
    opacity: 1;
    transform: none;
    filter: none;
}

html.js .reveal {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(3px);
    will-change: transform,opacity,filter;
}

.slide-up-fade {
    animation: slide-up-fade 1200ms cubic-bezier(.22,.61,.36,1) var(--delay,0ms) both;
}

@keyframes slide-up-fade {
    from {
        opacity: 0;
        transform: translateY(22px);
        filter: blur(3px)
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0)
    }
}

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

/*Footer / ToTop*/
.footer {
    padding: 28px 0;
    border-top: 1px solid var(--line);
    color: #bcbcd6;
    text-align: center;
}

.to-top {
    position: fixed;
    right: clamp(16px,2vw,24px);
    bottom: clamp(16px,2vw,24px);
    z-index: 999;
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 50%;
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(160,160,255,.12);
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    transform: translateY(8px) scale(.95);
    pointer-events: none;
    transition: opacity .3s ease,transform .3s ease,background .25s ease,box-shadow .25s ease,border-color .25s ease;
}

    .to-top.is-visible {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }

    .to-top:hover, .to-top:focus-visible {
        background: rgba(30,30,40,.55);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-color: #3a2b7a;
        box-shadow: 0 12px 26px rgba(0,0,0,.45), 0 0 0 1px rgba(139,92,246,.18) inset;
        outline: none;
    }

    .to-top:active {
        transform: translateY(1px) scale(.95);
    }

.nav-shell::before, .button-container::before {
    content: none !important
}

/*About (grundlayout)*/
.about-split {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(18px,3vw,28px);
    align-items: center;
    text-align: left;
}

.about-col {
    min-width: 0;
}

@media (max-width:900px) {
    .about-split {
        grid-template-columns: 1fr;
    }

    .about-artcol {
        order: 2;
    }

    .about-textcol {
        order: 1;
    }
}

/*SVG / Line-stage*/
.line-stage {
    position: relative;
    display: grid;
    place-items: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    overflow: visible;
    box-shadow: none;
}

#aboutStage svg {
    display: block;
    width: 100%;
    height: 90%;
    max-width: 520px;
}

.draw {
    animation: draw var(--duration) ease-out forwards;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0
    }
}

@media (prefers-reduced-motion:reduce) {
    .draw {
        animation: none !important;
        stroke-dasharray: none !important;
        stroke-dashoffset: 0 !important;
    }
}

#aboutStage svg path {
    stroke: var(--stroke) !important;
    stroke-width: var(--stroke-width) !important;
    fill: none !important;
}

/*Layout tweaks*/
#hero.section.hero {
    min-height: 100svh;
    display: grid;
    align-items: center;
}

@media (max-width:520px) {
    #hero.section.hero {
        align-items: start;
        min-height: auto;
        margin-bottom: 40px;
    }
}

@supports not (height:100svh) {
    #hero.section.hero {
        min-height: 100vh
    }
}

.hero.hero-centered {
    padding-bottom: clamp(10px,3vh,28px);
}

#about.section {
    padding-top: clamp(24px,4vh,40px);
}

.hero .tagline, .hero .hero-social, .hero .hero-cta {
    margin-bottom: 0;
}

#hero .container {
    display: grid;
    justify-items: center;
}

@media (max-width:900px) {
    .hero.hero-centered {
        padding-bottom: clamp(16px,4vh,36px);
    }

    #about.section {
        padding-top: clamp(28px,5vh,48px);
    }
}

/*Case page*/
.case-hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(120px,18svh,160px) clamp(36px,8svh,72px);
}

.case-breadcrumb {
    margin-bottom: 10px;
}

.crumb-link {
    color: #cfcff2;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

    .crumb-link:hover {
        text-decoration: underline;
    }

.case-title {
    font-family: var(--ff-heading);
    font-size: clamp(28px,4vw,40px);
    line-height: 1;
    margin: 6px 0 10px;
    text-shadow: 0 8px 40px rgba(0,0,0,.35);
}

.case-summary {
    color: #d9d9ec;
    max-width: 70ch;
    margin: 0 auto 12px;
}

.case-meta {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 6px 0 18px;
}

.meta-chip {
    border: 1px solid #2a2a2a;
    background: #171723;
    color: #dcd3ff;
    border-radius: 999px;
    padding: 6px 10px;
    font: 600 .9rem/1 var(--ff);
}

.techs em {
    font-style: normal;
    margin-left: 6px;
    opacity: .9;
}

.case-heroMedia {
    position: relative;
    width: min(1100px,94%);
    margin: 14px auto 0;
}

    .case-heroMedia canvas {
        position: absolute;
        inset: -10% -10% -20% -10%;
        z-index: 0;
        opacity: .65;
        pointer-events: none;
    }

.hero-shot, .shot, .panel {
    position: relative;
    border: 1px solid #26263a;
    border-radius: 16px;
    background: radial-gradient(400px 240px at 10% -20%,rgba(139,92,246,.08),transparent 60%), #13131a;
    box-shadow: var(--shadow-xl), inset 0 0 0 1px rgba(255,255,255,.02);
    overflow: hidden;
}

    .hero-shot img, .shot img {
        width: 100%;
        height: auto;
        display: block;
    }

.case-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 18px;
}

.container.two {
    width: min(1100px,94%);
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 16px;
    align-items: stretch;
    text-align: left;
}

.panel {
    padding: 18px;
}

    .panel h3 {
        margin: 0 0 10px;
    }

.bullets {
    margin: 0;
    padding-left: 18px;
    color: #cfcff2;
}

    .bullets li {
        margin: 6px 0;
    }

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
    gap: 16px;
    align-items: stretch;
}

.shot {
    aspect-ratio: 16/10;
    display: block;
}

@media (max-width:900px) {
    .container.two {
        grid-template-columns: 1fr;
    }

    .case-hero {
        padding-block: clamp(110px,16svh,140px) clamp(24px,6svh,48px);
    }
}

/*Contact form*/
.contact-wrap {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(16px,3.2vw,28px);
    align-items: center;
}

    .contact-wrap:not(:has(.contact-side)) {
        grid-template-columns: minmax(0, 760px);
        justify-content: center;
    }

@media (max-width:900px) {
    .contact-wrap {
        grid-template-columns: 1fr;
    }
}

.contact-form {
    position: relative;
    padding: clamp(16px,2.6vw,22px);
    border-radius: var(--r3);
    border: 1px solid rgba(160,160,255,.12);
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)), var(--glass);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.02), var(--shadow-xl);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-align: left;
    max-width: 760px;
    width: 100%;
    justify-self: center;
}

.f-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

    .f-row.two {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

@media (max-width:640px) {
    .f-row.two {
        grid-template-columns: 1fr;
    }
}

.f-col {
    display: grid;
    gap: 6px;
}

.contact-form label {
    font-weight: 700;
    letter-spacing: .2px;
    color: #eaeaff;
}

.contact-form .muted {
    color: var(--muted);
    font-weight: 600;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    border-radius: var(--r2);
    border: 1px solid #2a2a2a;
    background: #171723;
    color: var(--text);
    padding: 12px 12px;
    font: 600 1rem/1.35 var(--ff);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

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

    .contact-form input::placeholder, .contact-form textarea::placeholder {
        color: #9a98b6;
    }

    .contact-form input:focus-visible, .contact-form textarea:focus-visible {
        border-color: #3a2b7a;
        box-shadow: 0 0 0 1px rgba(139,92,246,.18) inset, 0 10px 26px rgba(0,0,0,.45);
        background: #19192a;
    }

.f-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 8px;
}

.contact-toast {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(160,160,255,.14);
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)), var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.02), var(--shadow-xl);
    color: #eaeaff;
    margin: 0 auto clamp(14px,2.6vw,18px);
    width: fit-content;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form input:active,
.contact-form textarea:active,
.contact-form input:valid,
.contact-form textarea:valid,
.contact-form input:user-invalid,
.contact-form textarea:user-invalid {
    background: #19192a;
    color: var(--text);
    caret-color: var(--text);
}

.contact-form input:-webkit-autofill,
.contact-form input:-webkit-autofill:hover,
.contact-form input:-webkit-autofill:focus,
.contact-form textarea:-webkit-autofill,
.contact-form textarea:-webkit-autofill:hover,
.contact-form textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text);
    caret-color: var(--text);
    -webkit-box-shadow: 0 0 0 1000px #171723 inset !important;
    box-shadow: 0 0 0 1000px #171723 inset !important;
    transition: background-color 9999s ease-in-out 0s;
}

.contact-form input:-moz-autofill, .contact-form textarea:-moz-autofill {
    box-shadow: 0 0 0 1000px #171723 inset !important;
    -moz-text-fill-color: var(--text);
    caret-color: var(--text);
}

.contact-form {
    color-scheme: dark;
}

/*Tech Simple*/
.tech-simple {
    width: min(1100px,96%);
    margin: 8px auto 0;
    display: grid;
    gap: 24px;
}

@media (min-width:900px) {
    .tech-simple {
        grid-template-columns: repeat(2,minmax(0,1fr));
        column-gap: clamp(24px,3vw,40px);
    }
}

.ts-group {
    text-align: center;
}

    .ts-group h3 {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin: 0 0 10px;
        font-family: var(--ff-heading);
        text-transform: uppercase;
        font-weight: 800;
        border-bottom: 1px solid var(--line);
        padding-bottom: 8px;
    }

        .ts-group h3 i {
            font-size: 16px;
            opacity: .9;
        }

.ts-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    justify-items: center;
}

.ts-item {
    display: grid;
    grid-template-columns: 26px auto;
    align-items: center;
    justify-content: center;
    justify-self: center;
    width: min(560px, 100%);
    padding: 6px 0;
    border-bottom: 1px dashed rgba(255,255,255,.08);
}

    .ts-item:last-child {
        border-bottom: none;
    }

    .ts-item i {
        font-size: 18px;
        color: var(--text);
        line-height: 1;
        margin-top: 2px;
        justify-self: center;
    }

    .ts-item > div {
        text-align: center;
    }

    .ts-item strong {
        color: var(--text);
        font-weight: 700;
    }

    .ts-item small {
        display: block;
        color: var(--muted);
        margin-top: 2px;
    }

@media (max-width:520px) {
    .ts-item {
        grid-template-columns: 1fr;
        justify-items: center;
        row-gap: 6px;
        width: 100%;
        gap: 8px;
    }

        .ts-item i {
            font-size: 17px;
        }

    .ts-group h3 {
        font-size: 13px;
    }
}

@media print {
    .ts-item i {
        display: none;
    }

    .ts-item {
        grid-template-columns: 1fr;
        border-color: #ccc;
    }

    body {
        color: #000;
    }
}

/*OM MIG*/
#about .about-split {
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: clamp(20px,3vw,32px);
    align-items: center;
    justify-items: center;
}

#about h2 {
    text-align: center;
    margin-bottom: var(--space-3);
}

#about .about-textcol {
    display: grid;
    justify-items: center;
}

#about .about-text {
    max-width: 66ch;
    margin-inline: auto;
    text-align: center;
    color: #d9d9ec;
}

#about ul.mini-stats {
    list-style: none;
    padding: 0;
    margin: 12px auto 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 16px;
    max-width: 66ch;
}

#about .line-stage {
    width: 100%;
    margin: 0;
    display: grid;
    place-items: center;
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
}

#about #aboutStage svg {
    width: min(100%,520px);
    height: auto;
}

@media (max-width:900px) {
    #about .about-split {
        grid-template-columns: 1fr;
        align-items: start;
    }

    #about .about-textcol {
        order: 1;
    }

    #about .about-artcol {
        order: 2;
    }

    #about .line-stage {
        margin-top: 12px;
    }

    #about #aboutStage svg {
        width: min(100%,360px);
    }
}

/*Hero: mobil-fixar (≤520px)*/
@media (max-width:520px) {
    h1 {
        font-size: clamp(36px,12vw,64px);
        line-height: 1;
    }

    .type-line {
        white-space: normal;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .tagline .rotator {
        display: inline-block;
        min-width: 12ch;
        text-align: center;
    }

    .hero.hero-centered {
        padding-top: clamp(110px,16vh,150px);
        padding-bottom: 16px;
    }

    .hero-cta {
        gap: 10px;
    }
}

/*TECH – centrering & listor*/
#tech .tech-simple {
    justify-items: center;
    text-align: center;
}

#tech .ts-group {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
    display: grid;
    justify-items: center;
    gap: 14px;
}

    #tech .ts-group h3 {
        width: 100%;
        margin: 0;
        padding: 6px 0 10px;
        border-bottom: 1px solid var(--line);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

#tech .ts-list {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#tech .ts-item {
    display: grid;
    grid-template-columns: 32px 1fr;
    align-items: center;
    column-gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255,255,255,.08);
}

    #tech .ts-item:last-child {
        border-bottom: none;
    }

    #tech .ts-item i {
        width: 28px;
        height: 28px;
        display: grid;
        place-items: center;
        border-radius: 8px;
        font-size: 14px;
        margin: 0;
        background: linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.02)), var(--glass);
        border: 1px solid rgba(160,160,255,.14);
        box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
    }

    #tech .ts-item > div {
        text-align: left;
    }

    #tech .ts-item strong {
        line-height: 1.12;
    }

    #tech .ts-item small {
        display: block;
        margin-top: 2px;
        color: var(--muted);
    }

@media (max-width:520px) {
    #tech .ts-list {
        max-width: 86%;
    }

    #tech .ts-item {
        grid-template-columns: 28px 1fr;
        padding: 8px 0;
    }
}

/*TECH: ikon-grid*/
#tech .tgrid {
    width: min(1100px, 96%);
    margin: 12px auto 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 22px 18px;
    justify-items: center;
}

#tech .tech {
    display: grid;
    justify-items: center;
    gap: 10px;
}

#tech .ti {
    width: clamp(72px, 8.8vw, 90px);
    height: clamp(72px, 8.8vw, 90px);
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.02)), var(--glass);
    border: 1px solid rgba(160,160,255,.14);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.02), var(--shadow-xl);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

    #tech .ti i {
        font-size: clamp(26px, 3.6vw, 34px);
        color: #eae6ff;
    }

#tech .tlabel {
    font: 700 .95rem/1.15 var(--ff);
    color: #eaeaff;
    text-align: center;
    letter-spacing: .2px;
}

#tech .tech:hover .ti {
    transform: translateY(-3px) scale(1.03);
    border-color: #3a2b7a;
    box-shadow: 0 12px 28px rgba(0,0,0,.45), 0 0 0 1px rgba(139,92,246,.18) inset;
}

#tech .ti::after {
    content: none !important;
}

@media (max-width:1100px) {
    #tech .tgrid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width:900px) {
    #tech .tgrid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width:680px) {
    #tech .tgrid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width:460px) {
    #tech .tgrid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Fix: mobilnav + hero*/
@media (max-width: 420px) {
    .button-container {
        width: 100%;
        height: auto;
        padding: 6px 8px;
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .button {
        flex: 0 0 auto;
        white-space: nowrap;
        height: 36px;
        padding: 0 12px;
        font-size: .9rem;
    }

    .hero.hero-centered {
        padding-top: calc(var(--hero-top-y) + 120px);
    }

    .site-header {
        top: max(6px, env(safe-area-inset-top));
    }
}

/*Mobile Nav*/
.mobile-nav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: max(10px, env(safe-area-inset-bottom));
    width: min(520px, 96%);
    z-index: 60;
    padding: 6px;
    border-radius: 14px;
    border: 1px solid rgba(160,160,255,.12);
    background: linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.02)), var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-xl), inset 0 0 0 1px rgba(255,255,255,.02);
    display: none;
}

    .mobile-nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: grid;
        grid-template-columns: repeat(5,1fr);
        gap: 4px;
    }

    .mobile-nav a {
        display: grid;
        justify-items: center;
        gap: 2px;
        text-decoration: none;
        padding: 6px 4px;
        border-radius: 10px;
        color: #dcd3ff;
        font-weight: 700;
        border: 1px solid transparent;
        transition: transform .15s ease, border-color .2s ease, background .2s ease, color .2s ease;
        white-space: nowrap;
    }

        .mobile-nav a i {
            font-size: 17px;
            line-height: 1;
            color: #eaeaff;
            opacity: .95;
        }

        .mobile-nav a span {
            font-size: 10px;
            letter-spacing: .15px;
        }

        .mobile-nav a:hover, .mobile-nav a:focus-visible {
            transform: translateY(-2px);
            border-color: #3a2b7a;
            box-shadow: 0 6px 16px rgba(0,0,0,.35), 0 0 0 1px rgba(139,92,246,.18) inset;
            outline: none;
            color: #fff;
        }

        .mobile-nav a.is-active {
            background: rgba(139,92,246,.10);
            border-color: #3a2b7a;
            color: #fff;
        }

@media (max-width: 640px) {
    .site-header {
        display: none;
    }

    .mobile-nav {
        display: block;
    }

    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom));
    }

    .to-top {
        display: none !important;
    }
}

@media (max-width: 400px) {
    .mobile-nav {
        padding: 5px;
    }

        .mobile-nav a {
            padding: 5px 4px;
        }

            .mobile-nav a i {
                font-size: 16px;
            }

            .mobile-nav a span {
                font-size: 9.5px;
            }

    body {
        padding-bottom: calc(60px + env(safe-area-inset-bottom));
    }
}


/*Projects: compact*/
.projects-compact .pc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
    gap: clamp(12px,2vw,18px);
    align-items: stretch;
}

.pcard {
    position: relative;
    display: grid;
    gap: 10px;
    height: 100%;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid #26263a;
    background: radial-gradient(380px 220px at 10% -20%,rgba(139,92,246,.08),transparent 60%),#13131a;
    box-shadow: var(--shadow-xl),inset 0 0 0 1px rgba(255,255,255,.02);
    transition: border-color .18s ease,transform .18s ease;
}

    .pcard:hover {
        border-color: #3a2b7a;
    }

.pc-body {
    display: grid;
    gap: 8px;
}

.pc-title {
    margin: 2px 0 0;
    font-size: clamp(18px,1.8vw,22px);
}

    .pc-title a {
        color: #fff;
        text-decoration: none;
    }

        .pc-title a:hover {
            text-decoration: underline;
        }

.pc-summary {
    margin: 0;
    color: #cfcff2;
    font-size: .95rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1em * 1.45 * 2);
}

.pc-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.pc-pill {
    border: 1px solid #2a2a2a;
    background: #171723;
    color: #dcd3ff;
    border-radius: 999px;
    padding: 3px 8px;
    font: 700 .78rem/1 var(--ff);
}

    .pc-pill.pc-more {
        opacity: .9;
    }

@media (max-width:520px) {
    .pc-summary {
        -webkit-line-clamp: 3;
        min-height: calc(1em * 1.45 * 3);
    }
}

.tools-section {
    padding: clamp(48px,8vh,90px) 0;
}

    .tools-section h2 {
        margin: 0 0 clamp(18px,4vh,28px);
    }

.tool-board {
    display: grid;
    gap: clamp(18px,3vw,28px);
    grid-template-columns: repeat(5, minmax(0,1fr));
}

@media (max-width: 1100px) {
    .tool-board {
        grid-template-columns: repeat(4, minmax(0,1fr));
    }
}

@media (max-width: 900px) {
    .tool-board {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }
}

@media (max-width: 640px) {
    .tool-board {
        display: none;
    }
}

.tool-badge {
    display: grid;
    place-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
    text-align: center;
    border: 1px solid var(--line);
    background: linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.02)), var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.02), var(--shadow-xl);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

    .tool-badge:hover {
        transform: translateY(-3px);
        border-color: rgba(139,92,246,.35);
        box-shadow: 0 14px 26px rgba(0,0,0,.32), 0 0 0 1px rgba(139,92,246,.18) inset;
    }

.tool-ico {
    height: 70px;
    display: grid;
    place-items: center;
}

    .tool-ico i {
        font-size: clamp(26px,3.6vw,34px);
        color: #eae6ff;
    }

.tool-name {
    font-weight: 800;
    font-size: .95rem;
    color: #fff;
    letter-spacing: .2px;
}

.tool-note {
    color: var(--muted);
    font-size: .88rem;
}

.tools-scroller {
    display: none;
}

@media (max-width:640px) {
    .tools-scroller {
        display: block;
        max-width: 1100px;
        margin: clamp(10px,3vh,16px) auto 0;
        overflow: hidden;
        -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
        mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
    }

        .tools-scroller .scroller__inner {
            display: flex;
            gap: clamp(14px,3.5vw,18px);
            padding-block: 8px;
            width: max-content;
            animation: tools-scroll 50s linear infinite;
        }

        .tools-scroller .tool-badge {
            min-width: clamp(210px, 72vw, 280px);
        }
}

.tools-scroller:hover .scroller__inner,
.tools-scroller:focus-within .scroller__inner {
    animation-play-state: paused;
}

@keyframes tools-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 24px));
    }

}

@media (prefers-reduced-motion: reduce) {
    .tools-scroller .scroller__inner {
        animation: none;
    }
}