 *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

        :root {
            --bg: #0D0912;
            --bg2: #170F22;
            --ink: #F5F1FA;
            --ink-soft: #B6A9C9;
            --line: rgba(245, 241, 250, .13);
            --accent: #FF2E7E;
            --accent2: #7B2FF7;
            --accent-soft: rgba(255, 46, 126, .16);
            --sage: #2ED9A0;
            --card: #1B1224;

            /* cube-only palette (from source, kept unchanged) */
            --red: #FF5800;
            --blue: #0051A2;
            --yellow: #FFD500;
            --green: #009B48;
            --orange: #C41E3A;
            --dim: #7a7a99;
        }

        html { scroll-behavior: smooth; }

        body {
            font-family: 'Inter', sans-serif;
            background: var(--bg);
            color: var(--ink);
            overflow-x: hidden;
        }

        h1, h2, h3, .display { font-family: 'Bricolage Grotesque', sans-serif; }

        ::selection { background: var(--accent); color: #fff; }
        ::-webkit-scrollbar { width: 6px; }
        ::-webkit-scrollbar-track { background: var(--bg); }
        ::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

        a { color: inherit; }

        /* ── PRELOADER ── */
        #preloader {
            position: fixed; inset: 0; z-index: 99999;
            display: flex; flex-direction: column; align-items: center; justify-content: center;
            background: var(--bg);
            transition: opacity .6s ease, visibility .6s ease;
        }
        #preloader::before {
            content: '';
            position: absolute; inset: 0;
            background:
                radial-gradient(900px 520px at 85% -10%, rgba(255, 46, 126, .22), transparent 60%),
                radial-gradient(800px 480px at -10% 110%, rgba(123, 47, 247, .22), transparent 62%);
            pointer-events: none;
        }
        #preloader.hidden { opacity: 0; visibility: hidden; }

        .pl-ring {
            position: relative; width: 74px; height: 74px; margin-bottom: 26px;
        }
        .pl-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
        .pl-ring circle {
            fill: none; stroke-width: 3; stroke-linecap: round;
        }
        .pl-ring .track { stroke: var(--line); }
        .pl-ring .bar {
            stroke: var(--accent);
            stroke-dasharray: 208;
            stroke-dashoffset: 208;
            transition: stroke-dashoffset .25s ease;
            filter: drop-shadow(0 0 8px rgba(255, 46, 126, .55));
        }
        .pl-dot {
            position: absolute; top: 50%; left: 50%; width: 7px; height: 7px;
            margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--accent2);
            animation: plPulse 1.4s ease-in-out infinite;
        }
        @keyframes plPulse { 0%,100% { transform: scale(.85); opacity: .7; } 50% { transform: scale(1.25); opacity: 1; } }

        .pl-word {
            font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 1.05rem;
            letter-spacing: -.2px; color: var(--ink); margin-bottom: 6px;
        }
        .pl-word span { color: var(--accent); }
        .pl-pct {
            font-family: 'JetBrains Mono', monospace; font-size: .78rem; letter-spacing: 1px;
            color: var(--ink-soft);
        }

        /* ── PROGRESS ── */
        #progress {
            position: fixed; top: 0; left: 0; height: 2px; z-index: 9998;
            background: var(--accent); width: 0;
        }

        /* ── NAV ── */
        nav {
            position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
            padding: 26px 60px;
            display: flex; align-items: center; justify-content: space-between;
            mix-blend-mode: normal;
        }
        nav.scrolled {
            background: rgba(13, 9, 18, .82);
            backdrop-filter: blur(14px);
            border-bottom: 1px solid var(--line);
            padding: 18px 60px;
            transition: padding .3s ease;
        }

        .logo {
            font-family: 'Bricolage Grotesque', sans-serif;
            font-size: 1.05rem; font-weight: 700; letter-spacing: -.2px;
            text-decoration: none; color: var(--ink);
        }
        .logo span { color: var(--accent); }

        .nav-toggle {
            display: none; flex-direction: column; gap: 6px;
            background: transparent; border: none; cursor: pointer; padding: 4px; z-index: 1001;
        }
        .nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--ink); transition: transform .3s, opacity .3s; }
        .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
        .nav-toggle.active span:nth-child(2) { opacity: 0; }
        .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

        .nav-links { display: flex; align-items: center; gap: 42px; list-style: none; }
        .nav-links a {
            text-decoration: none; font-size: .86rem; font-weight: 500; color: var(--ink-soft);
            letter-spacing: .2px; transition: color .25s; position: relative;
        }
        .nav-links a:hover { color: var(--ink); }
        .nav-links a.active { color: var(--accent); }
        .nav-cta {
            padding: 9px 20px; border: 1px solid var(--ink); border-radius: 100px;
            font-size: .82rem !important; font-weight: 600 !important; color: var(--ink) !important;
            transition: background .25s, color .25s !important;
        }
        .nav-cta:hover { background: var(--accent); border-color: var(--accent); color: #fff !important; }

        /* ── HERO ── */
        #hero {
            position: relative; min-height: 100vh;
            display: flex; flex-direction: column; justify-content: center;
            padding: 140px 60px 200px; z-index: 1;
            overflow: hidden;
            background:
                radial-gradient(1100px 620px at 88% -8%, rgba(255, 46, 126, .38), transparent 60%),
                radial-gradient(900px 560px at -8% 105%, rgba(123, 47, 247, .34), transparent 62%),
                radial-gradient(700px 420px at 60% 40%, rgba(255, 46, 126, .12), transparent 65%),
                linear-gradient(165deg, #150C22 0%, #1E1030 40%, #0D0912 100%);
        }

        .hero-waves {
            position: absolute; inset: 0; z-index: 0; pointer-events: none;
            opacity: .55;
        }
        .hero-waves svg { width: 100%; height: 100%; }

        .hero-eyebrow {
            position: relative; z-index: 2;
            display: flex; align-items: center; gap: 10px;
            font-family: 'JetBrains Mono', monospace; font-size: .78rem; letter-spacing: .5px;
            color: var(--ink-soft); margin-bottom: 26px;
        }
        .hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); animation: blink 2.2s ease-in-out infinite; }
        @keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

        .hero-grid {
            display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: center;
            position: relative; z-index: 2;
        }

        .hero-copy {
            display: flex; flex-direction: column; align-items: flex-start; text-align: left;
        }

        .hero-name {
            font-size: clamp(2.4rem, 4.6vw, 4.6rem);
            font-weight: 700; line-height: 1; letter-spacing: -2px; color: var(--ink);
            white-space: nowrap;
        }
        .hero-name em {
            font-style: italic; font-weight: 500; color: var(--accent);
        }

        .hero-role {
            position: relative; z-index: 2;
            font-family: 'JetBrains Mono', monospace; font-size: clamp(1.05rem, 1.6vw, 1.3rem);
            font-weight: 500; letter-spacing: .3px; color: var(--ink-soft);
            margin-top: 18px; max-width: 480px;
        }
        .hero-role strong { color: var(--ink); font-weight: 600; }

        .hero-wave-bottom {
            position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
            height: clamp(160px, 28vh, 300px); pointer-events: none;
        }
        .hero-wave-bottom svg { width: 100%; height: 100%; display: block; }

        .about-role {
            display: inline-block; font-size: .82rem; font-weight: 600; letter-spacing: 1.5px;
            text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
            font-family: 'JetBrains Mono', monospace;
        }
        .about-lead { font-size: 1.02rem; color: var(--ink-soft); line-height: 1.75; margin-bottom: 20px; max-width: 560px; }

        .btn-p {
            padding: 13px 26px; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff;
            border: 1px solid transparent; border-radius: 100px; font: 600 .88rem 'Inter', sans-serif;
            cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
            transition: background .25s, color .25s, transform .25s, box-shadow .25s;
            box-shadow: 0 8px 26px rgba(255, 46, 126, .28);
        }
        .btn-p:hover { background: transparent; color: var(--ink); border-color: var(--accent); transform: translateY(-2px); box-shadow: none; }
        .btn-s {
            padding: 13px 26px; background: transparent; color: var(--ink);
            border: 1px solid var(--line); border-radius: 100px; font: 600 .88rem 'Inter', sans-serif;
            cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
            transition: all .25s;
        }
        .btn-s:hover { border-color: var(--ink); }
        .about-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

        /* ── 3D RUBIK'S CUBE (ported as-is) ── */
        #cubeWrapper {
            cursor: grab;
        }

        #cubeWrapper:active {
            cursor: grabbing;
        }

        .cube-wrapper {
            position: relative;
            z-index: 2;
            flex-shrink: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-top: 90px;
        }

        .cube-stage {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .cube-aura {
            position: absolute;
            inset: -80px;
            background: radial-gradient(circle at 50% 50%, rgba(255, 46, 126, .24) 0%, rgba(123, 47, 247, .16) 40%, transparent 70%);
            animation: aura 4s ease-in-out infinite;
            pointer-events: none;
            border-radius: 50%;
        }

        @keyframes aura {

            0%,
            100% {
                transform: scale(1);
                opacity: .8
            }

            50% {
                transform: scale(1.1);
                opacity: 1
            }
        }

        .cube-viewport {
            width: 240px;
            height: 240px;
            perspective: 960px;
            perspective-origin: 50% 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        #cubeScene {
            width: 0;
            height: 0;
            transform-style: preserve-3d;
            transform: rotateX(-22deg) rotateY(45deg);
            cursor: grab;
            will-change: transform;
        }

        #cubeScene:active {
            cursor: grabbing;
        }

        .cubie {
            position: absolute;
            width: 66px;
            height: 66px;
            margin: -33px 0 0 -33px;
            transform-style: preserve-3d;
        }

        .cubie-face {
            position: absolute;
            width: 66px;
            height: 66px;
            border-radius: 9px;
            border: 3px solid #050505;
            backface-visibility: visible;
        }

        .gloss {
            position: absolute;
            inset: 0;
            border-radius: 6px;
            background: linear-gradient(135deg, rgba(255, 255, 255, .27) 0%, transparent 52%);
            pointer-events: none;
            z-index: 1;
        }

        .shine {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 38%;
            border-radius: 0 0 6px 6px;
            background: rgba(0, 0, 0, .22);
            pointer-events: none;
            z-index: 1;
        }

        .fc-red {
            background: var(--red);
            box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .35), 0 0 12px var(--red);
        }

        .fc-orange {
            background: var(--orange);
            box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .35), 0 0 12px var(--orange);
        }

        .fc-blue {
            background: rgba(0, 81, 162, 1);
            box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .35), 0 0 12px rgba(0, 81, 162, .55);
        }

        .fc-green {
            background: rgba(0, 155, 72, 1);
            box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .35), 0 0 12px rgba(0, 155, 72, .55);
        }

        .fc-yellow,
        .cubie-face.fc-yellow {
            background: rgba(255, 213, 0, 1) !important;
            box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .35), 0 0 12px rgba(255, 213, 0, .55);
        }

        .fc-white,
        .cubie-face.fc-white {
            background: rgba(255, 255, 255, 1) !important;
            box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .15), 0 0 8px rgba(255, 255, 255, .3);
        }

        .fc-inner {
            background: transparent !important;
            box-shadow: none !important;
            border-color: transparent !important;
            opacity: 0;
        }

        .cube-ui {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 16px;
            margin-top: 104px;
            width: 100%;
            max-width: 320px;
        }

        .cube-status {
            font: 700 .8rem 'JetBrains Mono', monospace;
            color: var(--accent);
            letter-spacing: .6px;
            min-height: 1.2em;
            text-align: center;
        }

        .cube-btns {
            display: flex;
            gap: 10px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .cube-step-btns {
            margin-top: 0;
        }

        .cbtn-step {
            font-size: .76rem;
            padding: 6px 14px;
            opacity: .9;
        }

        .cbtn-step:hover:not(:disabled) {
            border-color: var(--blue);
            color: var(--blue);
        }

        .cbtn {
            padding: 8px 18px;
            border: 1px solid var(--line);
            background: var(--card);
            color: var(--ink-soft);
            border-radius: 8px;
            font: 600 .82rem 'Inter', sans-serif;
            cursor: pointer;
            transition: all .2s;
        }

        .cbtn:hover:not(:disabled) {
            border-color: var(--orange);
            color: var(--orange);
        }

        .cbtn.cbtn-solve {
            border-color: rgba(255, 46, 126, .45);
            color: var(--accent);
        }

        .cbtn.cbtn-solve:hover:not(:disabled) {
            border-color: var(--accent);
            color: var(--accent);
            background: rgba(255, 46, 126, .1);
        }

        .cbtn:disabled {
            opacity: .35;
            cursor: not-allowed;
        }

        .cube-hint {
            font-size: .74rem;
            color: var(--ink-soft);
            letter-spacing: .2px;
            text-align: center;
            line-height: 1.55;
        }

        .btn-m {
            transition: transform 0.1s ease-out;
        }

        .hero-marquee {
            margin-top: 60px; padding-top: 26px; border-top: 1px solid var(--line);
            display: flex; overflow: hidden; white-space: nowrap;
            position: relative; z-index: 2;
        }
        .marquee-track {
            display: flex; gap: 46px; animation: scrollMarquee 26s linear infinite;
            font-family: 'JetBrains Mono', monospace; font-size: .8rem; letter-spacing: 1px;
            text-transform: uppercase; color: var(--ink-soft);
        }
        .marquee-track span { display: flex; align-items: center; gap: 46px; }
        .marquee-track .sep { color: var(--accent); }
        @keyframes scrollMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

        /* ── SECTIONS ── */
        section { position: relative; z-index: 1; padding: 130px 60px; }

        .sec-label { display: flex; align-items: center; gap: 14px; margin-bottom: 56px; }
        .sec-label .idx { font-family: 'JetBrains Mono', monospace; font-size: .78rem; color: var(--accent); }
        .sec-label .rule { flex: 1; height: 1px; background: var(--line); }
        .sec-label .name { font-family: 'JetBrains Mono', monospace; font-size: .78rem; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-soft); }

        .sec-title { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 700; letter-spacing: -1.5px; margin-bottom: 60px; max-width: 780px; }
        .sec-title em { font-style: italic; color: var(--accent); font-weight: 500; }

        /* ── ABOUT ── */
        #about { background: var(--bg2); }

        .about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; max-width: 1180px; margin: 0 auto; }
        .about-grid.no-photo { grid-template-columns: 1fr; max-width: 820px; }

        .about-loc { font-size: .78rem; font-weight: 500; text-transform: none; letter-spacing: .2px; color: var(--ink-soft); }

        .about-text p { color: var(--ink-soft); line-height: 1.85; margin-bottom: 20px; font-size: 1.04rem; max-width: 560px; }
        .about-text strong { color: var(--ink); font-weight: 600; }

        .about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); margin-top: 44px; border: 1px solid var(--line); max-width: 560px; }
        .stat { background: var(--bg2); padding: 22px 16px; }
        .stat-n { font-family: 'Bricolage Grotesque', sans-serif; font-size: 2rem; font-weight: 700; color: var(--ink); }
        .stat-l { font-size: .72rem; color: var(--ink-soft); margin-top: 4px; letter-spacing: .3px; }

        /* ── EDUCATION / BACKGROUND ── */
        #education { background: var(--bg); }

        .edu-timeline {
            max-width: 900px; margin: 0 auto; position: relative;
            border-left: 1px solid var(--line); padding-left: 46px;
        }

        .edu-item { position: relative; padding-bottom: 54px; }
        .edu-item:last-child { padding-bottom: 0; }

        .edu-item::before {
            content: ''; position: absolute; left: -52px; top: 4px;
            width: 11px; height: 11px; border-radius: 50%;
            background: var(--bg); border: 2px solid var(--accent);
        }

        .edu-card {
            display: flex; gap: 24px; align-items: flex-start;
            background: var(--card); border: 1px solid var(--line); border-radius: 6px;
            padding: 28px 30px; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
        }
        .edu-card:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(255,46,126,.16); border-color: var(--accent); }

        .edu-logo {
            flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%;
            background: var(--bg2); border: 1px solid var(--line);
            display: flex; align-items: center; justify-content: center; overflow: hidden;
        }
        .edu-logo img { width: 100%; height: 100%; object-fit: cover; }
        .edu-logo .edu-icon { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; color: var(--accent); font-size: 1.1rem; }

        .edu-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
        .edu-year {
            font-family: 'JetBrains Mono', monospace; font-size: .72rem; letter-spacing: .5px;
            color: var(--accent); border: 1px solid rgba(255,46,126,.4); border-radius: 100px; padding: 3px 11px;
        }
        .edu-type {
            font-family: 'JetBrains Mono', monospace; font-size: .72rem; letter-spacing: 1px; text-transform: uppercase;
            color: var(--ink-soft);
        }
        .edu-title { font-size: 1.28rem; font-weight: 700; letter-spacing: -.3px; margin-bottom: 10px; }
        .edu-desc { color: var(--ink-soft); font-size: .93rem; line-height: 1.7; max-width: 620px; }
        .edu-desc + .edu-desc { margin-top: 8px; }

        /* ── SKILLS ── */
        #skills { background: var(--bg2); }
        .skills-list { max-width: 1000px; margin: 0 auto; border-top: 1px solid var(--line); }
        .skill-row {
            display: grid; grid-template-columns: 60px 1fr 1.4fr 90px; align-items: center; gap: 24px;
            padding: 26px 0; border-bottom: 1px solid var(--line); transition: padding-left .3s;
        }
        .skill-row:hover { padding-left: 12px; background: rgba(255, 46, 126, .07); }
        .skill-idx { font-family: 'JetBrains Mono', monospace; font-size: .78rem; color: var(--accent); }
        .skill-name { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.35rem; font-weight: 600; }
        .skill-desc { font-size: .88rem; color: var(--ink-soft); }
        .skill-pct { font-family: 'JetBrains Mono', monospace; font-size: .82rem; color: var(--ink-soft); text-align: right; }

        /* ── PROJECTS (dark rotatable carousel) ── */
        #projects {
            background: #0B0B12; color: #EDEBE6;
            border-radius: 28px; margin: 0 24px; padding-top: 100px; padding-bottom: 100px;
        }
        #projects .sec-label .rule { background: rgba(237,235,230,.14); }
        #projects .sec-label .name { color: rgba(237,235,230,.55); }
        #projects .sec-title { color: #EDEBE6; }

        .proj-carousel { max-width: 1180px; margin: 0 auto; }

        .proj-viewport { overflow: hidden; padding: 20px 0 44px; }
        .proj-track {
            display: flex; align-items: stretch; gap: 24px;
            transition: transform .55s cubic-bezier(.4,0,.2,1);
            cursor: grab; user-select: none;
        }
        .proj-track.dragging { transition: none; cursor: grabbing; }

        .proj-card-dark {
            flex: 0 0 340px; position: relative;
            background: #14141D; border: 1px solid rgba(237,235,230,.08);
            border-radius: 22px; padding: 0 0 30px;
            display: flex; flex-direction: column;
            opacity: .45; filter: saturate(.6);
            transform: scale(.92) translateY(10px);
            transition: opacity .5s ease, filter .5s ease, transform .5s ease, border-color .5s ease;
            overflow: hidden;
        }
        .proj-thumb {
            width: 100%; aspect-ratio: 16 / 10; overflow: hidden;
            background: #0B0B12; border-bottom: 1px solid rgba(237,235,230,.08);
        }
        .proj-thumb img {
            width: 100%; height: 100%; object-fit: cover; object-position: top;
            display: block; transition: transform .6s ease;
        }
        .proj-card-dark:hover .proj-thumb img { transform: scale(1.06); }
        .proj-body { padding: 26px 30px 0; display: flex; flex-direction: column; flex: 1; }
        .proj-card-dark::before {
            content: ''; position: absolute; top: -1px; left: 14px; right: 14px; height: 3px;
            border-radius: 100px;
            background: linear-gradient(90deg, var(--pAccent1), var(--pAccent2));
            opacity: .35; transition: opacity .5s ease;
        }
        .proj-card-dark.active {
            flex-basis: 380px; opacity: 1; filter: saturate(1);
            transform: scale(1) translateY(0);
            border-color: rgba(237,235,230,.14);
            box-shadow: 0 30px 70px rgba(0,0,0,.45);
        }
        .proj-card-dark.active::before { opacity: 1; }

        .proj-idx {
            font-family: 'JetBrains Mono', monospace; font-size: .78rem; letter-spacing: 1px;
            color: rgba(237,235,230,.4); margin-bottom: 14px;
        }
        .proj-card-dark.active .proj-idx { color: var(--pAccent1); }

        .proj-icon {
            width: 48px; height: 48px; border-radius: 50%;
            border: 1.5px solid var(--pAccent1); display: flex; align-items: center; justify-content: center;
            margin-bottom: 34px; flex-shrink: 0;
        }
        .proj-icon svg { width: 20px; height: 20px; stroke: var(--pAccent1); }

        .proj-dark-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -.4px; color: #EDEBE6; margin-bottom: 12px; }
        .proj-dark-desc { color: rgba(237,235,230,.5); font-size: .92rem; line-height: 1.65; margin-bottom: 26px; flex: 1; }

        .proj-dark-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
        .ptag-dark {
            font-family: 'JetBrains Mono', monospace; font-size: .7rem; font-weight: 700; letter-spacing: .3px;
            padding: 6px 14px; border-radius: 100px; border: 1px solid var(--pAccent1); color: var(--pAccent1);
        }

        .proj-dark-link {
            font-weight: 700; font-size: .9rem; color: var(--pAccent1); text-decoration: none;
            display: inline-flex; align-items: center; gap: 8px; margin-top: auto;
        }
        .proj-dark-link .arrow { transition: transform .25s; }
        .proj-card-dark:hover .proj-dark-link .arrow { transform: translateX(5px); }

        .proj-carousel-controls {
            display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 6px;
        }
        .proj-nav-btn {
            width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(237,235,230,.18);
            background: transparent; color: #EDEBE6; cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            transition: border-color .25s, background .25s, transform .2s;
        }
        .proj-nav-btn:hover { border-color: var(--accent); background: rgba(255,46,126,.1); }
        .proj-nav-btn:active { transform: scale(.92); }
        .proj-dots { display: flex; gap: 9px; }
        .proj-dot {
            width: 7px; height: 7px; border-radius: 50%; background: rgba(237,235,230,.22);
            border: none; cursor: pointer; padding: 0; transition: background .3s, transform .3s;
        }
        .proj-dot.active { background: var(--accent); transform: scale(1.35); }

        @media (max-width: 720px) {
            #projects { margin: 0; border-radius: 0; }
            .proj-card-dark { flex-basis: 78vw; }
            .proj-card-dark.active { flex-basis: 82vw; }
        }

        /* ── CONTACT ── */
        #contact { background: var(--bg2); }
        .contact-wrap { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; }

        .contact-intro .sec-title { margin-bottom: 24px; }
        .contact-intro p { color: var(--ink-soft); font-size: 1rem; line-height: 1.75; max-width: 380px; margin-bottom: 30px; }
        .contact-direct { display: flex; flex-direction: column; gap: 10px; margin-bottom: 34px; }
        .contact-direct a { font-family: 'JetBrains Mono', monospace; font-size: .88rem; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 6px; width: fit-content; transition: border-color .25s, color .25s; }
        .contact-direct a:hover { color: var(--accent); border-color: var(--accent); }

        .contact-trust { display: flex; flex-direction: column; gap: 16px; padding-top: 30px; border-top: 1px solid var(--line); max-width: 380px; }
        .contact-trust-item { display: flex; align-items: flex-start; gap: 12px; }
        .contact-trust-icon {
            flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px;
            background: var(--accent-soft); border: 1px solid rgba(255,46,126,.3);
            display: flex; align-items: center; justify-content: center;
        }
        .contact-trust-icon svg { width: 16px; height: 16px; stroke: var(--accent); }
        .contact-trust-text .t-title { font-size: .86rem; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
        .contact-trust-text .t-sub { font-size: .78rem; color: var(--ink-soft); line-height: 1.5; }

        .contact-form-card {
            background: var(--card); border: 1px solid var(--line); border-radius: 20px;
            padding: 36px 38px 32px; box-shadow: 0 30px 70px rgba(0,0,0,.28);
        }

        .contact-form { display: flex; flex-direction: column; gap: 24px; }
        .f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
        .f-grp { position: relative; }
        .f-grp label {
            display: flex; align-items: center; gap: 6px;
            font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .8px;
            color: var(--ink-soft); margin-bottom: 10px;
        }
        .f-grp .f-req { color: var(--accent); }
        .f-input-wrap { position: relative; }
        .f-input-wrap svg {
            position: absolute; left: 16px; top: 17px; width: 17px; height: 17px;
            stroke: var(--ink-soft); pointer-events: none; transition: stroke .25s;
        }
        .f-grp textarea + svg, .f-input-wrap.has-textarea svg { top: 17px; }
        .f-grp input, .f-grp textarea {
            width: 100%; padding: 14px 16px 14px 44px; background: rgba(255,255,255,.02);
            border: 1px solid var(--line); border-radius: 12px; color: var(--ink);
            font: .95rem 'Inter', sans-serif; transition: border-color .25s, background .25s, box-shadow .25s;
            outline: none;
        }
        .f-grp input:focus, .f-grp textarea:focus {
            border-color: var(--accent); background: #201530;
            box-shadow: 0 0 0 4px rgba(255, 46, 126, .12);
        }
        .f-grp input:focus ~ svg, .f-grp textarea:focus ~ svg { stroke: var(--accent); }
        .f-grp textarea { resize: vertical; min-height: 130px; padding-top: 14px; }

        .f-grp .f-error {
            display: none; align-items: center; gap: 6px;
            font-size: .76rem; color: var(--accent); margin-top: 8px; line-height: 1.4;
        }
        .f-grp .f-error svg { width: 13px; height: 13px; stroke: var(--accent); flex-shrink: 0; }
        .f-grp.invalid input, .f-grp.invalid textarea {
            border-color: var(--accent); background: rgba(255, 46, 126, .06);
        }
        .f-grp.invalid input:focus, .f-grp.invalid textarea:focus { box-shadow: 0 0 0 4px rgba(255, 46, 126, .12); }
        .f-grp.invalid .f-error { display: flex; }
        .f-grp.valid input, .f-grp.valid textarea { border-color: rgba(46, 217, 160, .5); }
        .f-grp.valid .f-input-wrap::after {
            content: ''; position: absolute; right: 16px; top: 17px; width: 17px; height: 17px;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232ED9A0' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
            background-repeat: no-repeat; pointer-events: none;
        }
        .f-grp.valid textarea ~ .f-input-wrap::after,
        .f-grp textarea.valid-check { display: none; }

        .f-counter {
            position: absolute; right: 2px; bottom: -20px;
            font-family: 'JetBrains Mono', monospace; font-size: .7rem; color: var(--ink-soft); opacity: .7;
        }
        .f-grp:has(textarea) { margin-bottom: 6px; }

        .f-btn {
            align-self: flex-start; padding: 14px 32px; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff;
            border: 1px solid transparent; border-radius: 100px; font: 600 .92rem 'Inter', sans-serif;
            cursor: pointer; transition: background .25s, color .25s, transform .25s, box-shadow .25s; margin-top: 6px;
            box-shadow: 0 8px 26px rgba(255, 46, 126, .28);
            display: inline-flex; align-items: center; gap: 9px;
        }
        .f-btn svg { width: 15px; height: 15px; stroke: currentColor; transition: transform .25s; }
        .f-btn:hover:not(:disabled) { background: transparent; color: var(--ink); border-color: var(--accent); transform: translateY(-2px); box-shadow: none; }
        .f-btn:hover:not(:disabled) svg { transform: translateX(3px); }
        .f-btn:disabled { opacity: .6; cursor: not-allowed; }

        .f-privacy { font-size: .74rem; color: var(--ink-soft); opacity: .7; line-height: 1.5; margin-top: -8px; }

        .f-grp input::placeholder, .f-grp textarea::placeholder { color: var(--ink-soft); opacity: .45; }

        .form-note { font-size: .82rem; min-height: 1.2em; display: flex; align-items: center; gap: 6px; }
        .form-note svg { width: 14px; height: 14px; flex-shrink: 0; }
        .form-note.ok { color: var(--sage); }
        .form-note.err { color: var(--accent); }

        @media (max-width: 540px) {
            .contact-form-card { padding: 26px 22px 24px; }
        }

        /* ── TOAST ── */
        #toastWrap {
            position: fixed; top: 24px; right: 24px; z-index: 100000;
            display: flex; flex-direction: column; gap: 12px;
            pointer-events: none;
        }
        .toast {
            pointer-events: auto;
            display: flex; align-items: flex-start; gap: 12px;
            min-width: 300px; max-width: 380px;
            background: #17101F; border: 1px solid var(--line); border-radius: 14px;
            padding: 16px 16px 16px 14px;
            box-shadow: 0 20px 50px rgba(0,0,0,.45);
            transform: translateX(120%); opacity: 0;
            transition: transform .45s cubic-bezier(.34,1.25,.64,1), opacity .35s ease;
        }
        .toast.show { transform: translateX(0); opacity: 1; }
        .toast.hide { transform: translateX(120%); opacity: 0; }
        .toast-icon {
            flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            margin-top: 1px;
        }
        .toast-icon svg { width: 15px; height: 15px; }
        .toast.ok .toast-icon { background: rgba(46,217,160,.15); }
        .toast.ok .toast-icon svg { stroke: var(--sage); }
        .toast.err .toast-icon { background: rgba(255,46,126,.15); }
        .toast.err .toast-icon svg { stroke: var(--accent); }
        .toast-body { flex: 1; }
        .toast-title { font: 700 .88rem 'Inter', sans-serif; color: var(--ink); margin-bottom: 3px; }
        .toast-msg { font-size: .8rem; color: var(--ink-soft); line-height: 1.5; }
        .toast-close {
            flex-shrink: 0; background: transparent; border: none; cursor: pointer;
            color: var(--ink-soft); padding: 2px; line-height: 0; transition: color .2s;
            margin-top: 1px;
        }
        .toast-close:hover { color: var(--ink); }
        .toast-bar {
            position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px;
            border-radius: 100px; overflow: hidden; background: rgba(245,241,250,.08);
        }
        .toast-bar::after {
            content: ''; display: block; height: 100%; width: 100%;
            transform-origin: left; animation: toastShrink 4.5s linear forwards;
        }
        .toast.ok .toast-bar::after { background: var(--sage); }
        .toast.err .toast-bar::after { background: var(--accent); }
        @keyframes toastShrink { from { transform: scaleX(1); } to { transform: scaleX(0); } }

        @media (max-width: 540px) {
            #toastWrap { left: 16px; right: 16px; top: 16px; }
            .toast { min-width: 0; max-width: none; width: 100%; }
        }

        /* ── FOOTER ── */
        footer {
            background: #08050D; color: rgba(248,245,240,.6);
            padding: 90px 60px 34px;
            position: relative; z-index: 1; overflow: hidden;
        }
        footer::before {
            content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
            background: linear-gradient(90deg, transparent, var(--accent), transparent);
        }
        footer::after {
            content: ''; position: absolute; top: -220px; left: 50%; transform: translateX(-50%);
            width: 640px; height: 420px; pointer-events: none;
            background: radial-gradient(circle, rgba(123,47,247,.20) 0%, transparent 70%);
        }

        .footer-inner { max-width: 1180px; margin: 0 auto; position: relative; z-index: 1; }

        .footer-grid {
            display: grid; grid-template-columns: 1.4fr .8fr .8fr 1fr; gap: 56px;
            padding-bottom: 56px; border-bottom: 1px solid rgba(248,245,240,.1); margin-bottom: 30px;
        }

        .footer-brand-col .footer-name { display: inline-block; margin-bottom: 16px; }
        .footer-blurb { font-size: .92rem; line-height: 1.75; max-width: 320px; color: rgba(248,245,240,.5); margin-bottom: 26px; }

        .footer-col-title {
            font-family: 'JetBrains Mono', monospace; font-size: .72rem; letter-spacing: 1.5px; text-transform: uppercase;
            color: rgba(248,245,240,.4); margin-bottom: 20px;
        }
        .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 13px; }
        .footer-col a {
            text-decoration: none; color: rgba(248,245,240,.68); font-size: .9rem;
            transition: color .25s, padding-left .25s; display: inline-block;
        }
        .footer-col a:hover { color: var(--ink); padding-left: 4px; }

        .footer-contact-item { font-family: 'JetBrains Mono', monospace; font-size: .84rem; color: rgba(248,245,240,.68); margin-bottom: 14px; word-break: break-word; }
        .footer-contact-item a { color: inherit; text-decoration: none; transition: color .25s; }
        .footer-contact-item a:hover { color: var(--accent); }

        .footer-name { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--ink); }
        .footer-name span { color: var(--accent); }
        .social-links { display: flex; gap: 14px; margin-top: 24px; }
        .social-icon {
            color: rgba(248,245,240,.65); text-decoration: none; transition: color .25s, transform .25s, border-color .25s, background .25s;
            display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
            border-radius: 50%; border: 1px solid rgba(248,245,240,.16);
        }
        .social-icon:hover { color: var(--ink); background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }

        .footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; font-size: .8rem; color: rgba(248,245,240,.42); }
        .footer-link { text-decoration: none; color: inherit; transition: color .25s; }
        .footer-link:hover { color: var(--ink); }
        .footer-bottom-links { display: flex; gap: 26px; flex-wrap: wrap; }

        .back-to-top {
            width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(248,245,240,.18);
            background: transparent; color: var(--ink); cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            transition: border-color .25s, background .25s, transform .25s;
            flex-shrink: 0;
        }
        .back-to-top:hover { border-color: var(--accent); background: rgba(255,46,126,.12); transform: translateY(-3px); }

        @media (max-width: 860px) {
            footer { padding: 70px 24px 26px; }
            .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 30px; }
        }
        @media (max-width: 540px) {
            .footer-grid { grid-template-columns: 1fr; }
            .footer-bottom { flex-direction: column; align-items: flex-start; }
        }

        /* ── SCROLL ANIMS ── */
        .up { opacity: 0; transform: translateY(36px); transition: opacity .8s ease, transform .8s ease; }
        .up.vis { opacity: 1; transform: none; }

        .spinner {
            display: inline-block; width: 13px; height: 13px; border: 2px solid rgba(248,245,240,.4);
            border-radius: 50%; border-top-color: var(--bg); animation: spin .8s linear infinite;
            margin-left: 8px; vertical-align: middle;
        }
        @keyframes spin { to { transform: rotate(360deg); } }

        /* ── RESPONSIVE ── */
        @media (max-width: 1080px) {
            .hero-grid { grid-template-columns: 1fr; }
            .cube-wrapper { transform: scale(.82); margin: 20px auto 0; }
            .about-grid { grid-template-columns: 1fr; }
            .proj-card { grid-template-columns: 1fr; }
            .proj-media { min-height: 160px; }
            .contact-wrap { grid-template-columns: 1fr; }
        }

        @media (max-width: 860px) {
            nav { padding: 20px 24px; }
            nav.scrolled { padding: 14px 24px; }
            .nav-toggle { display: flex; }
            .nav-links {
                position: fixed; top: 0; right: -100%; height: 100vh; width: 100%;
                background: var(--bg); flex-direction: column; align-items: center; justify-content: center;
                gap: 34px; transition: right .4s cubic-bezier(.4,0,.2,1); z-index: 1000; padding: 40px;
            }
            .nav-links.active { right: 0; }
            .nav-links a { font-size: 1.3rem; }

            #hero { padding: 120px 24px 130px; }
            .hero-name { white-space: normal; font-size: clamp(2.2rem, 9vw, 3rem); }
            .hero-copy { align-items: center; text-align: center; }
            .hero-marquee { margin-bottom: 20px; }
            .hero-wave-bottom { height: clamp(70px, 14vh, 130px); }
            section { padding: 90px 24px; }
            .skill-row { grid-template-columns: 40px 1fr; row-gap: 6px; }
            .skill-desc, .skill-pct { grid-column: 2; }
            .f-row { grid-template-columns: 1fr; }
            .edu-timeline { padding-left: 32px; }
            .edu-item::before { left: -38px; }
            .edu-card { flex-direction: column; }
        }

        @media (max-width: 460px) {
            #hero { padding-bottom: 105px; }
            .hero-wave-bottom { height: 60px; }
        }

        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
        }