/* ================================================================
   DUSK PORTFOLIO
   ================================================================ */

:root {
    --void:     #04030d;
    --surface:  rgba(255,255,255,0.035);
    --border:   rgba(255,255,255,0.08);

    --neon:     #ff2d78;
    --neon-rgb: 255,45,120;
    --neon2:    #ff2d78;
    --neon2-rgb:255,45,120;
    --cyan:     #00ffe7;
    --cyan-rgb: 0,255,231;
    --violet:   #ff2d78;
    --amber:    #24fb52;

    --text:     #ede9f6;
    --text-mid: rgba(237,233,246,0.55);
    --text-lo:  rgba(237,233,246,0.22);

    --ff-d: 'Bebas Neue', sans-serif;
    --ff-b: 'Syne', sans-serif;
    --ff-m: 'JetBrains Mono', monospace;

    --pad: clamp(24px, 5vw, 72px);
    --max-w: 1400px;
}

/* ── RESET ──────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
    font-family: var(--ff-b);
    background: var(--void);
    color: var(--text);
    overflow-x: hidden;
    cursor: none;
}
@media (pointer:coarse) {
    body, a, button { cursor: auto; }
}

/* ── CURSOR ─────────────────────── */
#cursor-dot {
    position: fixed;
    width: 6px; height: 6px;
    background: var(--neon);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%,-50%);
    box-shadow: 0 0 8px var(--neon), 0 0 20px rgba(var(--neon-rgb),.5);
}
#cursor-ring {
    position: fixed;
    width: 30px; height: 30px;
    border: 1.5px solid rgba(var(--neon-rgb),.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%,-50%);
    transition: width .18s ease, height .18s ease,
                border-color .18s ease, box-shadow .18s ease;
}
#cursor-ring.hovered {
    width: 48px; height: 48px;
    border-color: var(--cyan);
    box-shadow: 0 0 12px var(--cyan);
}
@media (pointer:coarse) { #cursor-dot, #cursor-ring { display:none; } }

/* ── PARTICLE CANVAS ────────────── */
#bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ── GRID FLOOR ─────────────────── */
.grid-floor {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(var(--neon-rgb),.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--neon-rgb),.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* ── SCANLINES ──────────────────── */
.scanlines {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0, transparent 3px,
        rgba(0,0,0,.055) 3px, rgba(0,0,0,.055) 4px
    );
}

/* ── UTILITIES ──────────────────── */
.mono   { font-family: var(--ff-m); }
.accent { color: var(--neon); }

/* ── GLITCH ─────────────────────── */
.glitch { position:relative; display:inline-block; }
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute; inset:0;
    background: transparent;
    color: inherit;
}
.glitch::before {
    color: #00ffe7;
    animation: gA 4s infinite steps(1); opacity:0;
}
.glitch::after {
    color: #ff2d78;
    animation: gB 4s infinite steps(1); opacity:0;
}
@keyframes gA {
    0%,88%,100% { opacity:0; transform:translateX(0); }
    89% { opacity:.9; transform:translateX(-6px); clip-path:polygon(0 8%,100% 8%,100% 32%,0 32%); }
    91% { opacity:0; }
    93% { opacity:.7; transform:translateX(5px);  clip-path:polygon(0 58%,100% 58%,100% 76%,0 76%); }
    95% { opacity:0; }
}
@keyframes gB {
    0%,85%,100% { opacity:0; transform:translateX(0); }
    86% { opacity:.8; transform:translateX(7px);  clip-path:polygon(0 40%,100% 40%,100% 62%,0 62%); }
    88% { opacity:0; }
    94% { opacity:.6; transform:translateX(-5px); clip-path:polygon(0 3%,100% 3%,100% 20%,0 20%); }
    96% { opacity:0; }
}

/* ── CURSOR BLINK ───────────────── */
.cursor-blink {
    color: var(--neon);
    animation: cblink .8s step-end infinite;
}
@keyframes cblink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ═══════════════════════════════════
   HERO
═══════════════════════════════════ */
#hero {
    position: relative;
    z-index: 3;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 36px var(--pad) 80px;
    overflow: hidden;
}

/* corner accent lines — fills dead space in hero corners */
#hero::before,
#hero::after {
    content: '';
    position: absolute;
    pointer-events: none;
    z-index: 0;
}
/* top-left L bracket */
#hero::before {
    top: 28px; left: var(--pad);
    width: 80px; height: 80px;
    border-top: 1px solid rgba(var(--neon-rgb),.25);
    border-left: 1px solid rgba(var(--neon-rgb),.25);
    animation: cornerFade 3s ease-in-out infinite alternate;
}
/* bottom-right L bracket */
#hero::after {
    bottom: 96px; right: var(--pad);
    width: 80px; height: 80px;
    border-bottom: 1px solid rgba(var(--cyan-rgb),.2);
    border-right: 1px solid rgba(var(--cyan-rgb),.2);
    animation: cornerFade 3s 1.5s ease-in-out infinite alternate;
}
@keyframes cornerFade {
    0%   { opacity:.3; }
    100% { opacity:1; }
}

/* floating orbs in hero empty space */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.hero-orb-1 {
    width: 6px; height: 6px;
    background: var(--neon);
    box-shadow: 0 0 12px var(--neon), 0 0 24px rgba(var(--neon-rgb),.6);
    top: 22%; left: 12%;
    animation: orbFloat1 7s ease-in-out infinite;
}
.hero-orb-2 {
    width: 4px; height: 4px;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan), 0 0 16px rgba(var(--cyan-rgb),.5);
    bottom: 28%; left: 18%;
    animation: orbFloat2 9s ease-in-out infinite;
}
.hero-orb-3 {
    width: 5px; height: 5px;
    background: var(--violet);
    box-shadow: 0 0 10px var(--violet), 0 0 20px rgba(168,85,247,.5);
    top: 35%; right: 8%;
    animation: orbFloat1 11s 2s ease-in-out infinite;
}
.hero-orb-4 {
    width: 3px; height: 3px;
    background: var(--neon);
    box-shadow: 0 0 8px var(--neon);
    bottom: 22%; right: 18%;
    animation: orbFloat2 8s 1s ease-in-out infinite;
}
@keyframes orbFloat1 {
    0%,100% { transform: translate(0,0); }
    33%     { transform: translate(12px,-18px); }
    66%     { transform: translate(-8px,10px); }
}
@keyframes orbFloat2 {
    0%,100% { transform: translate(0,0); }
    40%     { transform: translate(-14px,12px); }
    70%     { transform: translate(10px,-8px); }
}

.hero-bg-text {
    position: absolute;
    font-family: var(--ff-d);
    font-size: min(38vw, 520px);
    color: transparent;
    -webkit-text-stroke: 1px rgba(var(--neon-rgb),.06);
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    animation: bgBreath 8s ease-in-out infinite;
    letter-spacing: -.02em;
    z-index: 0;
}
@keyframes bgBreath {
    0%,100% { -webkit-text-stroke-color: rgba(var(--neon-rgb),.04); }
    50%     { -webkit-text-stroke-color: rgba(var(--neon2-rgb),.13); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: clamp(32px, 5vw, 80px);
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 18px;
    animation: sL .8s cubic-bezier(.16,1,.3,1) both;
}
@keyframes sL { from{opacity:0;transform:translateX(-40px)} to{opacity:1;transform:translateX(0)} }

/* status + clock */
.status-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .7rem;
    color: var(--text-mid);
    letter-spacing: .06em;
    flex-wrap: wrap;
}
.status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 10px #22c55e, 0 0 22px rgba(34,197,94,.7);
    animation: sp 2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes sp {
    0%,100%{box-shadow:0 0 8px #22c55e,0 0 18px rgba(34,197,94,.5)}
    50%{box-shadow:0 0 18px #22c55e,0 0 36px rgba(34,197,94,.9)}
}
.live-clock { color: var(--cyan); margin-left:auto; }

/* name — big, solid white so glitch fires visibly */
.hero-name {
    font-family: var(--ff-d);
    font-size: clamp(7.5rem, 18vw, 200px);
    line-height: .85;
    letter-spacing: -.01em;
    color: #ffffff;
    text-shadow:
        0 0 30px rgba(255,45,120,.45),
        0 0 80px rgba(255,45,120,.18),
        0 0 160px rgba(255,45,120,.08);
}

.hero-sub {
    display: flex; align-items: center; gap: 10px;
    font-size: clamp(.9rem, 1.6vw, 1.15rem);
}
.hero-sub .mono { color: var(--neon); font-size:.9em; }
.hero-handle { font-weight:700; color:var(--text-mid); letter-spacing:.04em; }

.hero-desc {
    font-size: clamp(.85rem, 1.2vw, 1rem);
    color: var(--text-mid);
    line-height: 1.8;
    border-left: 2px solid var(--neon);
    padding-left: 14px;
    min-height: 3.6em;
}

/* socials */
.hero-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}
.hsocial {
    display: flex; align-items:center; gap:7px;
    padding: 8px 16px;
    border-radius: 3px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-mid);
    text-decoration: none;
    font-size: .78rem;
    font-family: var(--ff-m);
    letter-spacing: .04em;
    transition: border-color .2s, color .2s, background .2s, transform .2s, box-shadow .2s;
    position: relative;
    overflow: hidden;
    will-change: transform;
}
.hsocial::after {
    content:'';
    position:absolute; bottom:0; left:0; right:0;
    height:1px;
    background:linear-gradient(90deg,var(--neon),var(--cyan));
    transform:scaleX(0); transform-origin:left;
    transition:transform .25s ease;
}
.hsocial:hover::after { transform:scaleX(1); }
.hsocial:hover {
    border-color:rgba(var(--neon-rgb),.45);
    color:var(--text);
    background:rgba(var(--neon-rgb),.06);
}
.hsocial img { width:15px;height:15px;border-radius:3px;object-fit:cover; }

/* ── PFP ────────────────────────── */
.hero-right {
    flex-shrink:0;
    animation: sR .8s .12s cubic-bezier(.16,1,.3,1) both;
}
@keyframes sR { from{opacity:0;transform:translateX(40px)} to{opacity:1;transform:translateX(0)} }

.pfp-container {
    position: relative;
    width: clamp(200px, 26vw, 360px);
    aspect-ratio: 1;
}

.pfp-ring-outer {
    position:absolute; inset:-10px;
    border-radius:50%;
    background:conic-gradient(var(--neon),var(--violet),var(--cyan),var(--neon));
    animation:spinR 8s linear infinite;
    z-index:0;
    -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#fff calc(100% - 2px));
            mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#fff calc(100% - 2px));
}
.pfp-ring-inner {
    position:absolute; inset:-20px;
    border-radius:50%;
    background:conic-gradient(var(--cyan),var(--neon),var(--violet),var(--cyan));
    animation:spinR 14s linear infinite reverse;
    z-index:0; opacity:.35;
    -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 2px),#fff calc(100% - 1px));
            mask:radial-gradient(farthest-side,transparent calc(100% - 2px),#fff calc(100% - 1px));
}
@keyframes spinR { to{transform:rotate(360deg)} }

.pfp-container::before {
    content:''; position:absolute; inset:-28px; border-radius:50%;
    background:radial-gradient(circle,rgba(var(--neon-rgb),.2) 0%,transparent 70%);
    z-index:0; animation:gPulse 4s ease-in-out infinite;
}
@keyframes gPulse { 0%,100%{opacity:.6;transform:scale(1)} 50%{opacity:1;transform:scale(1.07)} }

.pfp-corner {
    position:absolute; width:20px;height:20px;
    border-color:var(--neon); border-style:solid; z-index:4;
}
.pfp-corner.tl{top:-4px;left:-4px;border-width:2px 0 0 2px}
.pfp-corner.tr{top:-4px;right:-4px;border-width:2px 2px 0 0}
.pfp-corner.bl{bottom:-4px;left:-4px;border-width:0 0 2px 2px}
.pfp-corner.br{bottom:-4px;right:-4px;border-width:0 2px 2px 0}

.pfp-img {
    position:relative; z-index:3;
    width:100%; height:100%;
    object-fit:cover; display:block;
    border-radius:50%;
    padding:5px; background:var(--void);
    filter:saturate(.9) contrast(1.05);
    transition:filter .3s;
}
.pfp-container:hover .pfp-img { filter:saturate(1.2) contrast(1.1); }

.pfp-glitch-1,.pfp-glitch-2 {
    position:absolute; inset:5px;
    background:url('images/pfp.jpg') center/cover no-repeat;
    border-radius:50%; opacity:0; pointer-events:none; z-index:4;
}
.pfp-glitch-1 { filter:hue-rotate(180deg) saturate(2); mix-blend-mode:screen; animation:pG1 7s infinite steps(1); }
.pfp-glitch-2 { filter:hue-rotate(90deg) saturate(3);  mix-blend-mode:screen; animation:pG2 7s infinite steps(1); }
@keyframes pG1 {
    0%,91%,100%{opacity:0}
    92%{opacity:.28;transform:translateX(-7px);clip-path:polygon(0 20%,100% 20%,100% 40%,0 40%)}
    94%{opacity:0}
    96%{opacity:.2;transform:translateX(5px);clip-path:polygon(0 65%,100% 65%,100% 80%,0 80%)}
    98%{opacity:0}
}
@keyframes pG2 {
    0%,88%,100%{opacity:0}
    89%{opacity:.22;transform:translateX(9px);clip-path:polygon(0 44%,100% 44%,100% 62%,0 62%)}
    91%{opacity:0}
    95%{opacity:.18;transform:translateX(-5px);clip-path:polygon(0 5%,100% 5%,100% 18%,0 18%)}
    97%{opacity:0}
}

.pfp-scanline-wrap {
    position:absolute; inset:5px; border-radius:50%; overflow:hidden; z-index:5; pointer-events:none;
}
.pfp-scanline-beam {
    position:absolute; left:0;right:0; height:3px;
    background:linear-gradient(to right,transparent,rgba(var(--cyan-rgb),.55),transparent);
    top:-5%; animation:scanP 4s linear infinite;
}
@keyframes scanP { from{top:-5%} to{top:105%} }

.pfp-label {
    position:absolute; bottom:-26px; left:0;
    font-size:.65rem; color:var(--neon); letter-spacing:.1em; opacity:.7; z-index:4;
}

/* scroll cue — prominent */
.scroll-cue {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 4;
    animation: fuIn 1s 1.2s both;
}
@keyframes fuIn {
    from{opacity:0;transform:translateX(-50%) translateY(10px)}
    to{opacity:1;transform:translateX(-50%) translateY(0)}
}
.scroll-cue-label {
    font-family: var(--ff-m);
    font-size: .62rem;
    letter-spacing: .25em;
    color: rgba(var(--neon-rgb),.7);
    text-transform: uppercase;
}
.scroll-mouse {
    width: 22px; height: 36px;
    border: 2px solid rgba(var(--neon-rgb),.5);
    border-radius: 12px;
    position: relative;
    display: flex;
    justify-content: center;
    padding-top: 6px;
    box-shadow: 0 0 12px rgba(var(--neon-rgb),.2), inset 0 0 8px rgba(var(--neon-rgb),.05);
}
.scroll-mouse::before {
    /* side glow lines */
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 16px;
    border: 1px solid rgba(var(--neon-rgb),.12);
}
.scroll-wheel {
    width: 3px; height: 7px;
    background: var(--neon);
    border-radius: 2px;
    box-shadow: 0 0 6px var(--neon);
    animation: wheelDrop 1.6s ease-in-out infinite;
}
@keyframes wheelDrop {
    0%   { transform: translateY(0);   opacity: 1; }
    60%  { transform: translateY(10px); opacity: 0; }
    61%  { transform: translateY(0);   opacity: 0; }
    100% { transform: translateY(0);   opacity: 1; }
}
.scroll-arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.scroll-arrows span {
    display: block;
    width: 10px; height: 10px;
    border-right: 2px solid var(--neon);
    border-bottom: 2px solid var(--neon);
    transform: rotate(45deg);
    animation: arrowFade 1.6s ease-in-out infinite;
    box-shadow: 2px 2px 4px rgba(var(--neon-rgb),.3);
}
.scroll-arrows span:nth-child(1) { animation-delay: 0s;   opacity: .3; }
.scroll-arrows span:nth-child(2) { animation-delay: .15s; opacity: .6; }
.scroll-arrows span:nth-child(3) { animation-delay: .3s;  opacity: .9; }
@keyframes arrowFade {
    0%,100% { opacity: .2; }
    50%     { opacity: 1; }
}

/* ═══════════════════════════════════
   SECTION DIVIDERS
═══════════════════════════════════ */
.section-divider {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 4px var(--pad);
    margin: 0 auto;
    max-width: calc(var(--max-w) + var(--pad) * 2);
    width: 100%;
}
.div-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    position: relative;
    overflow: hidden;
}
.div-line::after {
    content:'';
    position:absolute; top:0; left:-100%; width:60%;
    height:100%;
    background:linear-gradient(90deg,transparent,rgba(var(--neon-rgb),.6),transparent);
    animation:divScan 4s ease-in-out infinite;
}
@keyframes divScan { 0%{left:-60%} 100%{left:160%} }
.div-label {
    font-size:.62rem;
    letter-spacing:.2em;
    color:var(--text-lo);
    flex-shrink:0;
}

/* ═══════════════════════════════════
   PANELS
═══════════════════════════════════ */
.panel {
    position: relative; z-index:3;
    padding: 20px var(--pad) 48px;
    width: 100%;
}

.panel > *:not(.games-track-wrap):not(.games-hint) {
    max-width: var(--max-w);
    margin-left: auto;
    margin-right: auto;
}

.panel-tag {
    font-size: .65rem;
    letter-spacing: .22em;
    color: var(--neon);
    margin-bottom: 8px;
    text-transform: uppercase;
}
.panel-heading {
    font-family: var(--ff-d);
    font-size: clamp(2.8rem, 7vw, 7.5rem);
    line-height: .92;
    color: var(--text);
    margin-bottom: 36px;
    letter-spacing: .01em;
}
.stroke-text {
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 2px var(--neon);
}

/* reveal */
.reveal {
    opacity: 0; transform:translateY(36px);
    transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}
.reveal.visible { opacity:1; transform:translateY(0); }

/* ═══════════════════════════════════
   ABOUT
═══════════════════════════════════ */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(32px, 6vw, 80px);
    align-items: start;
}
.about-copy p {
    font-size: clamp(.85rem, 1.1vw, .98rem);
    color: var(--text-mid);
    line-height: 1.85;
    margin-bottom: 14px;
}
.about-highlight {
    color: var(--text) !important;
    font-weight: 600 !important;
    border-left: 2px solid var(--cyan);
    padding-left: 12px;
}

/* trait bars */
.trait-list { display:flex; flex-direction:column; gap:0; }
.trait {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.trait:first-child { border-top:1px solid var(--border); }
.trait-num { font-size:.6rem; color:var(--text-lo); }
.trait-name { font-size:.82rem; font-weight:600; letter-spacing:.03em; color:var(--text-mid); }
.trait-bar {
    width: 80px;
    height: 3px;
    background: rgba(255,255,255,.07);
    border-radius: 2px;
    overflow: hidden;
}
.trait-bar span {
    display:block;
    height:100%;
    width: 0;
    background: linear-gradient(90deg, var(--neon), var(--cyan));
    border-radius:2px;
    transition: width 1.2s cubic-bezier(.16,1,.3,1);
}
.reveal.visible .trait-bar span { width: var(--w); }

/* ═══════════════════════════════════
   COUNTDOWN
═══════════════════════════════════ */
.countdown-wrap {
    display: flex; align-items:flex-end;
    gap: clamp(4px, 1.5vw, 16px);
    flex-wrap: wrap;
}
.cd-block {
    display:flex; flex-direction:column; align-items:center;
    min-width: clamp(72px, 10vw, 130px);
}
.cd-digits {
    font-family: var(--ff-d);
    font-size: clamp(3rem, 8vw, 7.5rem);
    line-height:1;
    background:linear-gradient(150deg,var(--text) 40%,var(--neon));
    -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
    transition:transform .1s ease;
    letter-spacing:.01em;
}
.cd-digits.tick { transform:scale(1.06); }
.cd-unit { font-size:.6rem; letter-spacing:.2em; color:var(--text-lo); margin-top:3px; }
.cd-colon {
    font-family:var(--ff-d);
    font-size:clamp(2.5rem,6vw,6.5rem);
    color:var(--neon); line-height:1;
    margin-bottom:14px; opacity:.4;
    animation:blink 1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:.4} 50%{opacity:.1} }
.cd-tagline { font-size:.72rem; color:var(--text-lo); letter-spacing:.08em; margin-top:20px; }

/* ═══════════════════════════════════
   PROJECTS
═══════════════════════════════════ */
.project-row { display:flex; flex-direction:column; gap:16px; }
.project-item {
    position:relative;
    display:flex; gap:clamp(16px,3vw,48px); align-items:flex-start;
    padding:clamp(20px,2.5vw,36px) clamp(20px,3vw,40px);
    border:1px solid var(--border);
    background:var(--surface); backdrop-filter:blur(8px);
    transition:border-color .3s, box-shadow .3s;
    overflow:hidden;
}
.project-item::before {
    content:''; position:absolute; top:0;left:0;
    width:3px; height:0;
    background:linear-gradient(to bottom,var(--neon),var(--cyan));
    transition:height .35s ease;
}
.project-item:hover::before { height:100%; }
.project-item:hover {
    border-color:rgba(var(--neon-rgb),.3);
    box-shadow:0 0 60px rgba(var(--neon-rgb),.05), inset 0 0 60px rgba(var(--neon-rgb),.02);
}
.project-corner-deco {
    position:absolute; bottom:14px;right:14px;
    width:18px;height:18px;
    border-right:1px solid var(--neon);
    border-bottom:1px solid var(--neon);
    opacity:.25; transition:opacity .3s;
}
.project-item:hover .project-corner-deco { opacity:.9; }
.project-num {
    font-size:clamp(2rem,4vw,4rem);
    color:rgba(var(--neon-rgb),.1); line-height:1;
    min-width:clamp(48px,6vw,80px);
    transition:color .3s;
}
.project-item:hover .project-num { color:rgba(var(--neon-rgb),.22); }
.project-body { flex:1; }
.project-status {
    display:flex; align-items:center; gap:7px;
    font-size:.64rem; letter-spacing:.15em;
    color:var(--amber); margin-bottom:10px;
}
.pstatus-dot {
    width:6px;height:6px; border-radius:50%;
    background:var(--amber); box-shadow:0 0 7px var(--amber);
    animation:sp 1.5s ease-in-out infinite;
}
.project-body h3 {
    font-family:var(--ff-d);
    font-size:clamp(1.6rem,3vw,2.8rem);
    color:var(--text); margin-bottom:8px;
}
.project-body p {
    font-size:clamp(.82rem,1.1vw,.95rem);
    color:var(--text-mid); line-height:1.72;
    margin-bottom:16px; max-width:680px;
}
.project-pills { display:flex; flex-wrap:wrap; gap:7px; }
.project-pills span {
    padding:3px 11px;
    border:1px solid var(--border);
    font-family:var(--ff-m); font-size:.68rem;
    color:var(--text-lo); letter-spacing:.05em; transition:all .2s;
}
.project-item:hover .project-pills span {
    border-color:rgba(var(--neon-rgb),.3);
    color:var(--text-mid);
}

/* ═══════════════════════════════════
   GAMES — 3D CAROUSEL
═══════════════════════════════════ */
.panel-games { padding-bottom: 60px; overflow: hidden; }

.carousel-scene {
    width: 100%;
    height: clamp(260px, 35vw, 420px);
    perspective: 1000px;
    position: relative;
    margin: 0 auto;
    max-width: var(--max-w);
    cursor: grab;
}

.carousel-stage {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    /* rotation driven by JS via --angle custom property */
    transform: rotateY(var(--angle, 0deg));
    transition: transform 0s linear;
    will-change: transform;
}

.game-card {
    position: absolute;
    width: clamp(120px, 15vw, 190px);
    aspect-ratio: 7/10;
    top: 50%;
    left: 50%;
    margin-left: calc(clamp(120px, 15vw, 190px) / -2);
    margin-top: calc(clamp(120px, 15vw, 190px) * 10 / 7 / -2);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 6px;
    backface-visibility: hidden;
    transition: border-color .3s, box-shadow .3s;
    cursor: pointer;
}

.game-card:hover {
    border-color: rgba(var(--neon-rgb),.55);
    box-shadow: 0 0 28px rgba(var(--neon-rgb),.25);
}

.game-card::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(var(--neon-rgb),.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity .3s;
}
.game-card:hover::after { opacity: 1; }

.game-card img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    filter: saturate(.75) brightness(.95);
    transition: filter .3s;
}
.game-card:hover img { filter: saturate(1.2) brightness(1.05); }

/* floor reflection line */
.carousel-scene::after {
    content: '';
    position: absolute;
    bottom: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--neon-rgb),.3), transparent);
    pointer-events: none;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.carousel-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-mid);
    font-family: var(--ff-m);
    font-size: .75rem;
    letter-spacing: .08em;
    padding: 7px 18px;
    cursor: pointer;
    transition: all .2s ease;
    border-radius: 3px;
}
.carousel-btn:hover {
    border-color: rgba(var(--neon-rgb),.45);
    color: var(--text);
    background: rgba(var(--neon-rgb),.07);
}

.carousel-hint {
    font-size: .62rem;
    letter-spacing: .14em;
    color: var(--text-lo);
    font-family: var(--ff-m);
}

/* ═══════════════════════════════════
   FOOTER
═══════════════════════════════════ */
#footer {
    position:relative; z-index:3;
    padding:56px var(--pad) 44px;
    border-top:1px solid var(--border);
    text-align:center;
}
.footer-inner {
    display:flex; flex-direction:column; align-items:center; gap:8px;
    max-width: var(--max-w);
    margin: 0 auto;
}
.footer-name {
    font-family:var(--ff-d);
    font-size:clamp(3.5rem,10vw,9rem); line-height:1;
    color:transparent;
    -webkit-text-stroke:1px rgba(var(--neon-rgb),.22);
    animation:bgBreath 7s ease-in-out infinite;
}
.footer-meta, .footer-credits { font-size:.68rem; color:var(--text-lo); letter-spacing:.1em; }
.footer-credits { opacity:.45; }

/* ═══════════════════════════════════
   MINECRAFT / JOIN SECTION
═══════════════════════════════════ */
.mc-grid {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: clamp(24px, 4vw, 60px);
    align-items: center;
    max-width: 860px;
}

.mc-divider-vert {
    background: linear-gradient(to bottom, transparent, var(--border), transparent);
    height: 160px;
    align-self: center;
}

.mc-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: clamp(24px, 3vw, 40px);
    border: 1px solid var(--border);
    background: var(--surface);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
    transition: border-color .3s, box-shadow .3s;
}
.mc-card::before {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 3px; height: 0;
    background: linear-gradient(to bottom, var(--neon), var(--cyan));
    transition: height .35s ease;
}
.mc-card:hover::before { height: 100%; }
.mc-card:hover {
    border-color: rgba(var(--neon-rgb), .3);
    box-shadow: 0 0 50px rgba(var(--neon-rgb), .05);
}

.mc-card-icon {
    font-size: 2rem;
    line-height: 1;
}

.mc-card-label {
    font-size: .62rem;
    letter-spacing: .22em;
    color: var(--neon);
    text-transform: uppercase;
}

.mc-ip {
    font-family: var(--ff-m);
    font-size: clamp(1rem, 2.2vw, 1.4rem);
    color: var(--cyan);
    letter-spacing: .06em;
    word-break: break-all;
}

.mc-copy-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-mid);
    font-size: .72rem;
    letter-spacing: .1em;
    padding: 7px 16px;
    cursor: pointer;
    align-self: flex-start;
    transition: all .2s;
    border-radius: 3px;
}
.mc-copy-btn:hover {
    border-color: rgba(var(--cyan-rgb), .5);
    color: var(--cyan);
    background: rgba(var(--cyan-rgb), .06);
}

.mc-copy-confirm {
    font-size: .65rem;
    letter-spacing: .12em;
    color: var(--amber);
    opacity: 0;
    transition: opacity .3s;
    margin-top: -8px;
}
.mc-copy-confirm.show { opacity: 1; }

.mc-desc {
    font-size: clamp(.82rem, 1.1vw, .92rem);
    color: var(--text-mid);
    line-height: 1.72;
}

.mc-discord-btn {
    display: inline-block;
    align-self: flex-start;
    padding: 9px 20px;
    border: 1px solid rgba(var(--neon-rgb), .35);
    background: rgba(var(--neon-rgb), .05);
    color: var(--text);
    text-decoration: none;
    font-size: .75rem;
    letter-spacing: .1em;
    border-radius: 3px;
    transition: all .25s;
    position: relative;
    overflow: hidden;
}
.mc-discord-btn::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--neon), var(--cyan));
    transform: scaleX(0); transform-origin: left;
    transition: transform .25s ease;
}
.mc-discord-btn:hover::after { transform: scaleX(1); }
.mc-discord-btn:hover {
    border-color: rgba(var(--neon-rgb), .6);
    background: rgba(var(--neon-rgb), .1);
    box-shadow: 0 0 20px rgba(var(--neon-rgb), .12);
}

@media (max-width: 600px) {
    .mc-grid {
        grid-template-columns: 1fr;
    }
    .mc-divider-vert {
        display: none;
    }
}

/* ═══════════════════════════════════
   RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 860px) {
    .hero-content {
        grid-template-columns:1fr;
        text-align:center;
        gap:32px;
        justify-items:center;
    }
    .hero-left { align-items:center; }
    .hero-desc { border-left:none; border-top:2px solid var(--neon); padding:10px 0 0; }
    .hero-socials { justify-content:center; }
    .live-clock { display:none; }
    .pfp-container { width:clamp(150px,48vw,230px); }
    .about-grid { grid-template-columns:1fr; gap:28px; }
    .trait-bar { width:60px; }
}

@media (max-width: 560px) {
    :root { --pad:18px; }
    #hero { padding-top:70px; }
    .hero-name { font-size:clamp(4rem,20vw,7rem); }
    .hero-bg-text { font-size:52vw; }
    .pfp-container { width:clamp(130px,50vw,190px); }
    .countdown-wrap { gap:4px; justify-content:center; }
    .cd-block { min-width:64px; }
    .cd-digits { font-size:clamp(2.2rem,11vw,3.2rem); }
    .cd-colon { font-size:clamp(1.8rem,8vw,2.8rem); margin-bottom:12px; }
    .project-item { flex-direction:column; gap:10px; }
    .project-num { font-size:2rem; min-width:unset; }
    .panel-heading { font-size:clamp(2.2rem,11vw,4rem); margin-bottom:24px; }
    .panel { padding-top:24px; padding-bottom:36px; }
    .game-card { width:clamp(110px,38vw,160px); }
    .trait-bar { display:none; }
}