/* =========================================================
   FONTS — point these at your local /fonts folder.
   Put this file next to a "fonts" folder containing:
   Pixelta.ttf, nerdropol lattice.otf, ka1.ttf
   ========================================================= */
@font-face {
    font-family: 'Pixelta';
    src: url('/fonts/Pixelta.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Nerdropol Lattice';
    src: url('/fonts/nerdropol\ lattice.otf') format('opentype');
    font-display: swap;
}

@font-face {
    font-family: 'Ka1';
    src: url('/fonts/ka1.ttf') format('truetype');
    font-display: swap;
}

/* =========================================================
   TOKENS — refreshed arcade palette
   ========================================================= */
:root {
    --void: #08060f;
    --void-2: #0d0b1c;
    --panel: #14112a;
    --panel-hi: #1d1938;
    --line: rgba(255, 255, 255, .07);
    --ink: #f3efff;
    --dim: #9089b8;

    --magenta: #ff2f74;
    --cyan: #29f2ea;
    --yellow: #ffcb3d;
    --violet: #8a5cff;
    --lime: #4dff8f;

    --px: 4px;
    /* base pixel unit */

    --f-display: 'Pixelta', 'Press Start 2P', monospace;
    --f-head: 'Nerdropol Lattice', 'Press Start 2P', monospace;
    --f-body: 'Ka1', 'VT323', monospace;

    /* pixel-star cursor for interactive elements, drawn as a data-uri so no
       external asset is required. Black star, chunky/blocky (no anti-alias). */
    --cursor-star:
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" shape-rendering="crispEdges"><path fill="black" d="M13 2h2v3h-2zM13 21h2v3h-2zM2 13v2h3v-2zM21 13v2h3v-2zM6 6h2v2H6zM18 18h2v2h-2zM18 6h2v2h-2zM6 18h2v2H6zM11 8h4v1h1v1h1v4h-1v1h-1v1h-4v-1h-1v-1H9V9h1V8zM11 10h4v4h-4z"/></svg>') 14 14, pointer;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

::selection {
    background: var(--magenta);
    color: var(--void);
}

body {
    background: var(--void);
    color: var(--ink);
    font-family: var(--f-head);
    font-size: 19px;
    line-height: 1.6;
    overflow-x: hidden;
    image-rendering: pixelated;
    cursor: url('icon.png'), auto;
}

/* every clickable / interactive surface gets the pixel star cursor */
a,
button,
.pbtn,
.nav-cta,
.cart-link,
.submit-btn,
.tag,
.foot-social a,
.burger-btn,
input[type="submit"],
[role="button"] {
    cursor: var(--cursor-star);
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: .001s !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001s !important;
    }
}

h1,
h2,
h3 {
    font-family: var(--f-display);
    letter-spacing: .02em;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: var(--f-body);
    background: none;
    border: none;
}

/* pixel border helper: chunky stepped border via layered box-shadow */
.pixel-border {
    border: var(--px) solid var(--ink);
    box-shadow:
        var(--px) var(--px) 0 0 var(--void),
        calc(var(--px)*2) calc(var(--px)*2) 0 0 var(--magenta);
    image-rendering: pixelated;
}

.eyebrow {
    font-family: var(--f-head);
    font-size: 13px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--cyan);
    display: flex;
    align-items: center;
    gap: 10px;
}

.eyebrow::before {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--cyan);
    box-shadow: 0 0 0 3px rgba(41, 242, 234, .2);
}

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
}

section {
    position: relative;
    padding: 120px 0;
}

/* =========================================================
   SCANLINES + VIGNETTE (global CRT overlay)
   ========================================================= */
.crt-overlay {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    background:
        repeating-linear-gradient(to bottom,
            rgba(0, 0, 0, 0.18) 0px,
            rgba(0, 0, 0, 0.18) 1px,
            transparent 1px,
            transparent 3px);
    mix-blend-mode: overlay;
    opacity: .5;
    animation: flicker 6s infinite;
}

@keyframes flicker {

    0%,
    96%,
    100% {
        opacity: .45;
    }

    97% {
        opacity: .2;
    }

    98% {
        opacity: .55;
    }
}

.vignette {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 9997;
    box-shadow: inset 0 0 220px rgba(0, 0, 0, .85);
}

/* particle canvas */
#pixel-field {
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: .6;
}

/* cursor spark trail — elite ambient touch, purely decorative pixels
   drawn by script.js; never intercepts pointer events */
#cursor-trail {
    position: fixed;
    inset: 0;
    z-index: 9996;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    #cursor-trail {
        display: none;
    }
}

/* =========================================================
   BOOT SCREEN
   ========================================================= */
#boot {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--void);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    transition: opacity .5s steps(6), transform .5s steps(6);
}

#boot.hide {
    opacity: 0;
    transform: scale(1.03);
    pointer-events: none;
}

.boot-logo {
    font-family: var(--f-display);
    font-size: 22px;
    color: var(--ink);
    letter-spacing: .08em;
    text-align: center;
}

.boot-logo span {
    color: var(--magenta);
}

.boot-console {
    width: min(420px, 80vw);
    font-family: var(--f-body);
    font-size: 16px;
    color: var(--cyan);
    min-height: 90px;
}

.boot-console div {
    opacity: 0;
    animation: typeIn .3s forwards;
}

.boot-bar {
    width: min(420px, 80vw);
    height: 22px;
    border: 2px solid var(--ink);
    padding: 3px;
}

.boot-bar-fill {
    height: 100%;
    width: 0%;
    background: repeating-linear-gradient(90deg, var(--magenta) 0 8px, var(--yellow) 8px 16px);
    transition: width 1.8s steps(20);
}

.boot-hint {
    font-family: var(--f-head);
    font-size: 11px;
    color: var(--dim);
    letter-spacing: .1em;
    animation: blink 1s steps(1) infinite;
}

@keyframes typeIn {
    to {
        opacity: 1;
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* =========================================================
   NAV
   ========================================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    background: rgba(8, 6, 15, .75);
    backdrop-filter: blur(6px);
    border-bottom: 2px solid var(--line);
}

nav {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    font-family: var(--f-display);
    font-size: 15px;
    display: flex;
    gap: 8px;
    align-items: center;
    white-space: nowrap;
}

.logo .dot {
    width: 10px;
    height: 10px;
    background: var(--yellow);
    display: inline-block;
    animation: blink 1.4s steps(1) infinite;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
    font-family: var(--f-head);
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.nav-links a {
    position: relative;
    padding-bottom: 6px;
    color: var(--dim);
    transition: color .15s;
}

.nav-links a:hover {
    color: var(--ink);
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 0;
    background: var(--magenta);
    transition: width .2s steps(5);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    font-family: var(--f-head);
    font-size: 11px;
    letter-spacing: .08em;
    padding: 10px 16px;
    background: var(--magenta);
    color: var(--void);
    border: 2px solid var(--ink);
    box-shadow: 3px 3px 0 var(--ink);
    transition: transform .1s, box-shadow .1s;
    display: inline-block;
}

.nav-cta:hover {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--ink);
}

.mobile-only {
    display: none;
}

/* pixel hamburger — three chunky bars that morph into an X */
.burger-btn {
    display: none;
    width: 40px;
    height: 34px;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 4px;
    z-index: 600;
}

.burger-bar {
    display: block;
    width: 100%;
    height: 4px;
    background: var(--ink);
    box-shadow: 2px 2px 0 var(--magenta);
    transition: transform .25s steps(4), opacity .2s, background .2s;
}

.burger-btn[aria-expanded="true"] .burger-bar:nth-child(1) {
    transform: translateY(15px) rotate(45deg);
    background: var(--cyan);
}

.burger-btn[aria-expanded="true"] .burger-bar:nth-child(2) {
    opacity: 0;
}

.burger-btn[aria-expanded="true"] .burger-bar:nth-child(3) {
    transform: translateY(-15px) rotate(-45deg);
    background: var(--cyan);
}

.nav-scrim {
    position: fixed;
    inset: 0;
    background: rgba(8, 6, 15, .7);
    z-index: 450;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}

body.nav-open .nav-scrim {
    opacity: 1;
    pointer-events: auto;
}

/* =========================================================
   TICKER — arcade marquee, the page's signature strip
   ========================================================= */
.ticker {
    position: fixed;
    top: 71px;
    left: 0;
    right: 0;
    z-index: 490;
    height: 30px;
    overflow: hidden;
    background: var(--yellow);
    border-bottom: 2px solid var(--ink);
}

.ticker-track {
    display: flex;
    gap: 60px;
    white-space: nowrap;
    height: 100%;
    align-items: center;
    animation: ticker-scroll 16s linear infinite;
    padding-left: 60px;
}

.ticker-track span {
    font-family: var(--f-head);
    font-size: 11px;
    letter-spacing: .1em;
    color: var(--void);
}

@keyframes ticker-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 160px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.hero-greet {
    font-family: var(--f-head);
    font-size: 15px;
    color: var(--yellow);
    letter-spacing: .05em;
    min-height: 20px;
    transition: opacity .5s;
}

.hero-greet.fade-out {
    opacity: 0;
}

.hero-name {
    font-family: var(--f-display);
    font-size: clamp(34px, 6.4vw, 78px);
    line-height: 1.15;
    margin: 14px 0 18px;
    position: relative;
    display: inline-block;
    color: var(--ink);
}

.hero-name .accent {
    color: var(--cyan);
}

.hero-name:hover {
    animation: glitch .35s steps(2) infinite;
}

@keyframes glitch {
    0% {
        text-shadow: 0 0 var(--magenta), 0 0 var(--cyan);
    }

    20% {
        text-shadow: -3px 0 var(--magenta), 3px 0 var(--cyan);
    }

    40% {
        text-shadow: 3px 1px var(--magenta), -3px -1px var(--cyan);
    }

    60% {
        text-shadow: -2px -2px var(--magenta), 2px 2px var(--cyan);
    }

    100% {
        text-shadow: 0 0 var(--magenta), 0 0 var(--cyan);
    }
}

.hero-role {
    font-family: var(--f-body);
    font-size: 22px;
    color: var(--dim);
    margin-bottom: 30px;
    min-height: 30px;
}

.hero-role .cursor-blink {
    display: inline-block;
    width: 11px;
    height: 22px;
    background: var(--magenta);
    margin-left: 4px;
    vertical-align: -4px;
    animation: blink .8s steps(1) infinite;
}

.hero-desc {
    max-width: 480px;
    color: var(--dim);
    margin-bottom: 38px;
    font-size: 18px;
}

.btn-row {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.pbtn {
    font-family: var(--f-head);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 16px 26px;
    border: 2px solid var(--ink);
    background: var(--ink);
    color: var(--void);
    box-shadow: 5px 5px 0 var(--magenta);
    transition: transform .08s steps(2), box-shadow .08s steps(2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pbtn.ghost {
    background: transparent;
    color: var(--ink);
    box-shadow: 5px 5px 0 var(--cyan);
}

.pbtn:hover {
    transform: translate(3px, 3px);
    box-shadow: 2px 2px 0 var(--magenta);
}

.pbtn.ghost:hover {
    box-shadow: 2px 2px 0 var(--cyan);
}

.pbtn:active {
    transform: translate(5px, 5px);
    box-shadow: 0 0 0 transparent;
}

/* terminal mockup */
.term {
    background: var(--panel);
    border: 2px solid var(--ink);
    box-shadow: 8px 8px 0 var(--violet);
    min-height: 320px;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.term-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 2px solid var(--ink);
    background: var(--void-2);
}

.term-bar span {
    width: 12px;
    height: 12px;
    display: block;
}

.term-bar em {
    margin-left: auto;
    font-style: normal;
    font-family: var(--f-head);
    font-size: 10px;
    color: var(--dim);
    letter-spacing: .05em;
}

.term-bar span:nth-child(1) {
    background: var(--magenta);
}

.term-bar span:nth-child(2) {
    background: var(--yellow);
}

.term-bar span:nth-child(3) {
    background: var(--cyan);
}

.term-body {
    padding: 22px;
    font-size: 15px;
    color: var(--cyan);
    white-space: pre-wrap;
    min-height: 230px;
}

.term-body .k {
    color: var(--violet);
}

.term-body .s {
    color: var(--yellow);
}

.term-body .c {
    color: var(--dim);
}

.term-cursor {
    display: inline-block;
    width: 9px;
    height: 16px;
    background: var(--cyan);
    animation: blink .8s steps(1) infinite;
    vertical-align: -2px;
}

.scroll-hint {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--f-head);
    font-size: 10px;
    color: var(--dim);
    letter-spacing: .1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-hint .arrow {
    width: 12px;
    height: 12px;
    border-right: 3px solid var(--cyan);
    border-bottom: 3px solid var(--cyan);
    transform: rotate(45deg);
    animation: bounce 1.4s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0) rotate(45deg);
    }

    50% {
        transform: translateY(8px) rotate(45deg);
    }
}

/* =========================================================
   SECTION HEADS
   ========================================================= */
.sec-head {
    margin-bottom: 56px;
}

.sec-title {
    font-size: clamp(28px, 4vw, 44px);
    margin-top: 12px;
}

/* =========================================================
   ABOUT / STATUS PANEL
   ========================================================= */
.about-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 60px;
}

.status-panel {
    background: var(--panel);
    border: 2px solid var(--ink);
    box-shadow: 6px 6px 0 var(--cyan);
    padding: 26px;
    transition: box-shadow .2s, transform .2s;
}

.status-panel:hover {
    box-shadow: 9px 9px 0 var(--cyan);
    transform: translate(-3px, -3px);
}

.status-title {
    font-family: var(--f-head);
    font-size: 13px;
    color: var(--yellow);
    letter-spacing: .1em;
    margin-bottom: 22px;
}

.stat {
    margin-bottom: 20px;
}

.stat-label {
    display: flex;
    justify-content: space-between;
    font-family: var(--f-body);
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--ink);
}

.stat-track {
    height: 16px;
    border: 2px solid var(--ink);
    padding: 2px;
    background: var(--void-2);
}

.stat-fill {
    height: 100%;
    width: 0%;
    background: repeating-linear-gradient(90deg, var(--magenta) 0 6px, var(--violet) 6px 12px);
    transition: width 1.2s steps(14);
}

.about-copy p {
    color: var(--dim);
    margin-bottom: 18px;
    font-size: 18px;
}

.about-copy strong {
    color: var(--ink);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.tag {
    font-family: var(--f-head);
    font-size: 11px;
    letter-spacing: .06em;
    padding: 8px 12px;
    border: 2px solid var(--ink);
    color: var(--cyan);
    transition: transform .15s, background .15s, color .15s;
}

.tag:hover {
    background: var(--cyan);
    color: var(--void);
    transform: translateY(-4px) rotate(-2deg);
}

/* =========================================================
   PROJECTS — cartridges
   ========================================================= */
.proj-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
}

.cart {
    position: relative;
    background: var(--panel);
    border: 2px solid var(--ink);
    padding: 0 0 22px;
    clip-path: polygon(0 0, 70% 0, 78% 6%, 100% 6%, 100% 100%, 0 100%);
    box-shadow: 6px 6px 0 var(--line);
    transform-style: preserve-3d;
    transition: box-shadow .2s, transform .1s;
    overflow: hidden;
    will-change: transform;
}

.cart::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, .08) 50%, transparent 60%);
    transform: translateX(-120%);
    transition: transform .5s;
    pointer-events: none;
}

.cart:hover::before {
    transform: translateX(120%);
}

.cart:hover {
    box-shadow: 10px 10px 0 var(--magenta);
}

.cart-label {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f-display);
    font-size: 15px;
    text-align: center;
    padding: 0 16px;
    color: var(--void);
}

.cart-body {
    padding: 20px 22px 0;
}

.cart-tag {
    font-family: var(--f-head);
    font-size: 10px;
    letter-spacing: .1em;
    color: var(--yellow);
    margin-bottom: 10px;
    display: block;
}

.cart-title {
    font-size: 19px;
    margin-bottom: 10px;
    font-family: var(--f-head);
}

.cart-desc {
    color: var(--dim);
    font-size: 16px;
    margin-bottom: 18px;
}

.cart-stack {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.cart-stack span {
    font-size: 11px;
    font-family: var(--f-head);
    color: var(--cyan);
    border: 1px solid var(--cyan);
    padding: 4px 8px;
}

.cart-link {
    font-family: var(--f-head);
    font-size: 12px;
    letter-spacing: .08em;
    color: var(--ink);
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.cart-link .blip {
    width: 8px;
    height: 8px;
    background: var(--magenta);
    animation: blink 1s steps(1) infinite;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-box {
    background: var(--panel);
    border: 2px solid var(--ink);
    box-shadow: 8px 8px 0 var(--violet);
    padding: 44px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
}

.contact-box h3 {
    font-family: var(--f-head);
    font-size: 14px;
    color: var(--yellow);
    letter-spacing: .1em;
    margin-bottom: 18px;
}

.dialog-lines p {
    font-size: 16px;
    color: var(--dim);
    margin-bottom: 14px;
}

.dialog-lines span {
    color: var(--cyan);
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    font-family: var(--f-head);
    font-size: 11px;
    letter-spacing: .08em;
    color: var(--dim);
    margin-bottom: 8px;
}

.field input,
.field textarea {
    width: 100%;
    background: var(--void-2);
    border: 2px solid var(--ink);
    color: var(--ink);
    padding: 12px 14px;
    font-family: var(--f-body);
    font-size: 16px;
    cursor: url('icon.png'), auto;
}

.field input:focus,
.field textarea:focus {
    outline: 2px solid var(--magenta);
}

.field textarea {
    resize: vertical;
    min-height: 90px;
}

.submit-btn {
    font-family: var(--f-head);
    font-size: 12px;
    letter-spacing: .08em;
    padding: 14px 22px;
    background: var(--magenta);
    color: var(--void);
    border: 2px solid var(--ink);
    box-shadow: 5px 5px 0 var(--ink);
    width: 100%;
    transition: transform .08s, box-shadow .08s;
}

.submit-btn:hover {
    transform: translate(3px, 3px);
    box-shadow: 2px 2px 0 var(--ink);
}

.sent-msg {
    margin-top: 14px;
    font-family: var(--f-head);
    font-size: 12px;
    color: var(--cyan);
    opacity: 0;
    transition: opacity .3s;
}

.sent-msg.show {
    opacity: 1;
}

/* =========================================================
   FOOTER + PIXEL SOCIAL ICONS
   ========================================================= */
footer {
    padding: 50px 0;
    border-top: 2px solid var(--line);
}

.foot-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.foot-copy {
    font-family: var(--f-body);
    color: var(--dim);
    font-size: 15px;
}

.foot-social {
    display: flex;
    gap: 14px;
}

.pix-icon {
    width: 42px;
    height: 42px;
    border: 2px solid var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--panel);
    transition: background .15s, transform .15s, box-shadow .15s;
    box-shadow: 3px 3px 0 var(--line);
}

.pix-icon svg {
    width: 18px;
    height: 18px;
    fill: var(--ink);
    shape-rendering: crispEdges;
    transition: fill .15s;
}

.pix-icon:hover {
    transform: translateY(-5px) rotate(-3deg);
    box-shadow: 3px 8px 0 var(--magenta);
}

.pix-github:hover {
    background: var(--violet);
}

.pix-linkedin:hover {
    background: var(--cyan);
}

.pix-linkedin:hover svg {
    fill: var(--void);
}

.pix-instagram:hover {
    background: var(--magenta);
}

.pix-email:hover {
    background: var(--yellow);
}

.pix-email:hover svg {
    fill: var(--void);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width:900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .proj-grid {
        grid-template-columns: 1fr;
    }

    .contact-box {
        grid-template-columns: 1fr;
        padding: 28px;
    }

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: inline-block;
        margin-top: 12px;
    }

    .burger-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(78vw, 320px);
        background: var(--panel);
        border-left: 2px solid var(--ink);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 26px;
        padding: 0 40px;
        transform: translateX(100%);
        transition: transform .3s steps(6);
        z-index: 550;
        font-size: 16px;
    }

    body.nav-open .nav-links {
        transform: translateX(0);
    }

    .ticker {
        top: 65px;
    }

    .hero {
        padding-top: 150px;
    }

    section {
        padding: 84px 0;
    }
}

@media (max-width:520px) {
    body {
        font-size: 16px;
    }

    .wrap {
        padding: 0 20px;
    }

    .contact-box {
        padding: 20px;
    }

    .term {
        min-height: 260px;
    }
}

/* reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s steps(8), transform .6s steps(8);
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

/* ==================================================
   SKILLS INVENTORY GRID
================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.skill-card {
    background: var(--bg-surface, #14141c);
    /* Un bordo spesso per richiamare i pixel */
    border: 2px solid var(--border-color, #2a2a3c);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    text-align: center;
    cursor: crosshair;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    /* Ombra dura stile retro-gaming */
    box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 0.6);
}

.skill-card:hover {
    transform: translate(-4px, -4px);
    /* Colore Cyan (o Magenta) tipico delle interfacce cyberpunk/retro */
    border-color: var(--cyan, #0ff);
    box-shadow: 8px 8px 0px 0px var(--magenta, #f0f);
}

.skill-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Effetto "bottone incassato" 8-bit */
    border: 2px solid #2a2a3c;
    border-bottom-color: rgba(255, 255, 255, 0.2);
    border-right-color: rgba(255, 255, 255, 0.2);
    border-top-color: rgba(0, 0, 0, 0.8);
    border-left-color: rgba(0, 0, 0, 0.8);

    color: var(--accent, #fff);
    /* Le icone diventeranno del colore dell'accento */
    transition: color 0.2s;
}

.skill-card:hover .skill-icon {
    color: var(--cyan, #0ff);
    background: rgba(0, 255, 255, 0.05);
}

.skill-name {
    font-family: 'VT323', monospace;
    font-size: 1.3rem;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* =========================================================
   🛠️ FIX: RENDE I LINK CLICCABILI SOVRASCRIVENDO EVENTUALI OVERLAY
   ========================================================= */
a,
.pix-icon,
.foot-social a,
.nav-links a,
.cart-link,
.pbtn,
button,
[role="button"] {
    pointer-events: auto !important;
    position: relative;
    z-index: 1000;
}

/* Assicura che le icone social (che sono link) abbiano un z-index ancora più alto */
.pix-icon {
    z-index: 1001 !important;
}

/* Se hai un overlay generale (es. #cursor-trail) che potrebbe bloccare,
   forziamo anche i genitori diretti a far passare i click */
.foot-social,
.nav-links,
.hero .btn-row,
.contact-box form {
    pointer-events: auto !important;
}