/* ══════════════════════════════════════════
   TOKENS
══════════════════════════════════════════ */
:root {
    --bg: #0b0b0b;
    --bg-light: #111111;
    --bg-card: #141414;
    --border: #1e1e1e;
    --orange: #ff6b35;
    --orange-2: #ff8c5a;
    --orange-dim: rgba(255, 107, 53, 0.10);
    --text: #ffffff;
    --muted: #666;
    --dim: #222;
    --font: 'Inter', system-ui, sans-serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --sidebar-w: 300px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    cursor: none;
    /* hide default cursor */
}

a {
    text-decoration: none;
    color: inherit;
    cursor: none;
}

img {
    display: block;
    max-width: 100%;
}

ul {
    list-style: none;
}

button {
    cursor: none;
}

/* ══════════════════════════════════════════
   CUSTOM CURSOR
══════════════════════════════════════════ */
#cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--orange);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
    mix-blend-mode: normal;
}

#cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(255, 107, 53, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.25s var(--ease), height 0.25s var(--ease),
        border-color 0.25s, background 0.2s;
}

body.cursor-hover #cursor-dot {
    width: 12px;
    height: 12px;
    background: #fff;
}

body.cursor-hover #cursor-ring {
    width: 56px;
    height: 56px;
    border-color: var(--orange);
    background: rgba(255, 107, 53, 0.05);
}

body.cursor-click #cursor-dot {
    width: 5px;
    height: 5px;
}

/* ══════════════════════════════════════════
   SCROLLBAR
══════════════════════════════════════════ */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--orange);
}

/* ══════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════ */
.fade-up {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.stats-row .stat:nth-child(1) {
    transition-delay: 0.0s;
}

.stats-row .stat:nth-child(2) {
    transition-delay: 0.1s;
}

.stats-row .stat:nth-child(3) {
    transition-delay: 0.2s;
}

/* Noise grain overlay on entire site */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-size: 180px;
    opacity: 0.025;
    pointer-events: none;
    z-index: 9990;
}

/* ══════════════════════════════════════════
   TOP NAV (mobile)
══════════════════════════════════════════ */
#topnav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    height: 60px;
    background: rgba(11, 11, 11, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    align-items: center;
    padding: 0 20px;
    justify-content: space-between;
}

.topnav-logo {
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 4px;
}

.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--ease) 0.3s;
}

.mobile-drawer {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 499;
    background: rgba(11, 11, 11, 0.98);
    border-bottom: 1px solid var(--border);
}

.mobile-drawer a {
    padding: 16px 24px;
    font-size: 1rem;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    transition: color 0.2s, padding-left 0.2s;
}

.mobile-drawer a:hover {
    color: var(--orange);
    padding-left: 32px;
}

.mobile-drawer a:last-child {
    border-bottom: none;
}

.mobile-drawer.open {
    display: flex;
}

/* ══════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════ */
.layout {
    display: flex;
    min-height: 100vh;
}

/* ══ SIDEBAR ══ */
.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid var(--border);
    background: var(--bg-light);
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 44px 28px 36px;
    min-height: 100%;
}

/* Avatar */
.avatar-wrap {
    position: relative;
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
}

/* outer glow ring */
.avatar-wrap::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(var(--orange), transparent, var(--orange-2), transparent, var(--orange));
    animation: spin-ring 4s linear infinite;
    z-index: 0;
}

/* mask so edge is clean */
.avatar-wrap::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--bg-light);
    z-index: 1;
}

@keyframes spin-ring {
    to {
        transform: rotate(360deg);
    }
}

.avatar-ring {
    display: none;
}

/* replaced by ::before */
.avatar-img,
.avatar-fallback {
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
}

.avatar-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--orange);
}

/* Name / bio */
.sidebar-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.sidebar-name {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.flame {
    font-size: 1.15rem;
}

.sidebar-bio {
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
    line-height: 1.75;
    margin-bottom: 24px;
    max-width: 210px;
}

/* Socials */
.sidebar-socials {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.sidebar-socials a {
    color: var(--muted);
    transition: color 0.2s, transform 0.2s;
}

.sidebar-socials a:hover {
    color: var(--orange);
    transform: translateY(-4px);
}

/* Nav */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 2px;
    margin-top: auto;
}

.snav-link {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.83rem;
    font-weight: 500;
    color: var(--muted);
    transition: background 0.2s, color 0.2s, padding-left 0.2s;
    position: relative;
}

.snav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 2px;
    height: 60%;
    background: var(--orange);
    border-radius: 2px;
    transition: transform 0.2s;
}

.snav-link:hover,
.snav-link.active {
    background: var(--orange-dim);
    color: var(--orange);
    padding-left: 20px;
}

.snav-link:hover::before,
.snav-link.active::before {
    transform: translateY(-50%) scaleY(1);
}

/* ══ MAIN ══ */
.main {
    flex: 1;
    min-width: 0;
    padding: 0 60px;
}

/* ══════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════ */
.section {
    padding: 96px 0;
    border-bottom: 1px solid var(--border);
}

.section:last-of-type {
    border-bottom: none;
}

/* Giant two-tone headings */
.section-heading {
    margin-bottom: 56px;
}

.sh-tag {
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 4px;
}

.sh-big {
    font-size: clamp(3.5rem, 7vw, 6rem);
    font-weight: 900;
    line-height: 1.0;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.sh-dim {
    color: var(--dim);
}

/* Scramble text cursor blink */
.scramble-active {
    border-right: 3px solid var(--orange);
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero-section {
    padding-top: 72px;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* ambient glow that follows cursor */
.hero-ambient {
    position: absolute;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
    transition: top 0.8s var(--ease), left 0.8s var(--ease);
}

.hero-section>*:not(.hero-ambient) {
    position: relative;
    z-index: 1;
}

.hero-available {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.06em;
    margin-bottom: 20px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.5);
    animation: pulse-ring 2s ease infinite;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.6);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 107, 53, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
    }
}

.big-label {
    font-size: clamp(2.6rem, 5.5vw, 5.2rem);
    font-weight: 900;
    line-height: 1.0;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.big-label-dim {
    color: var(--dim);
    margin-bottom: 24px;
}

.hero-sub {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.75;
    max-width: 500px;
    margin-bottom: 44px;
}

/* Stats */
.stats-row {
    display: flex;
    gap: 44px;
    margin-bottom: 44px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-n {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--orange);
    letter-spacing: -0.04em;
    line-height: 1;
}

.stat-l {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    max-width: 110px;
    line-height: 1.4;
}

/* Buttons */
.hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.btn-orange {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--orange);
    color: #fff;
    font-family: var(--font);
    font-weight: 700;
    font-size: 0.875rem;
    padding: 13px 28px;
    border-radius: 100px;
    border: none;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
    will-change: transform;
}

.btn-orange:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(255, 107, 53, 0.45);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 13px 28px;
    border-radius: 100px;
    border: 1px solid #2a2a2a;
    color: var(--muted);
    transition: border-color 0.2s, color 0.2s, transform 0.3s var(--ease);
}

.btn-ghost:hover {
    border-color: var(--muted);
    color: var(--text);
    transform: translateY(-3px);
}

/* Scroll hint */
.hero-scroll-hint {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-line {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, var(--orange), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {

    0%,
    100% {
        width: 40px;
        opacity: 1;
    }

    50% {
        width: 20px;
        opacity: 0.4;
    }
}

/* ══════════════════════════════════════════
   3D TILT CARDS
══════════════════════════════════════════ */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* ══════════════════════════════════════════
   PROJECTS
══════════════════════════════════════════ */
.project-list {
    display: flex;
    flex-direction: column;
}

.proj-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 16px;
    margin: 0 -16px;
    border-top: 1px solid var(--border);
    border-radius: 8px;
    transition: background 0.25s, box-shadow 0.25s;
}

.proj-row:last-child {
    border-bottom: 1px solid var(--border);
}

.proj-row:hover {
    background: var(--bg-light);
    box-shadow: inset 3px 0 0 var(--orange);
}

.proj-left {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    flex: 1;
}

.proj-num {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--orange);
    letter-spacing: 0.1em;
    padding-top: 4px;
    flex-shrink: 0;
}

.proj-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.proj-desc {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 14px;
    max-width: 520px;
}

.proj-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.proj-chips span {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--orange);
    background: var(--orange-dim);
    border: 1px solid rgba(255, 107, 53, 0.2);
    padding: 4px 10px;
    border-radius: 100px;
}

.proj-arrow {
    font-size: 1.4rem;
    color: var(--muted);
    flex-shrink: 0;
    margin-top: 2px;
    transition: color 0.2s, transform 0.25s var(--ease);
}

.proj-row:hover .proj-arrow {
    color: var(--orange);
    transform: translate(5px, -5px);
}

/* ══════════════════════════════════════════
   JOURNEY
══════════════════════════════════════════ */
.journey-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.journey-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 32px;
    padding: 28px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.journey-item:hover {
    border-color: var(--orange);
    box-shadow: 0 0 0 1px var(--orange), 0 8px 40px rgba(255, 107, 53, 0.08);
}

.ji-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 3px;
}

.ji-date {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.04em;
}

.ji-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--orange);
    background: var(--orange-dim);
    border: 1px solid rgba(255, 107, 53, 0.2);
    padding: 4px 10px;
    border-radius: 100px;
    width: fit-content;
}

.ji-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.ji-sub {
    font-size: 0.78rem;
    color: var(--orange);
    font-weight: 600;
    margin-bottom: 10px;
}

.ji-desc {
    font-size: 0.83rem;
    color: var(--muted);
    line-height: 1.7;
}

/* ══════════════════════════════════════════
   TECH STACK
══════════════════════════════════════════ */
.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
    transition: padding-left 0.25s var(--ease);
    border-radius: 4px;
}

.tech-item:nth-child(odd) {
    padding-right: 40px;
    border-right: 1px solid var(--border);
}

.tech-item:nth-child(even) {
    padding-left: 40px;
}

.tech-item:nth-last-child(-n+2) {
    border-bottom: none;
}

.tech-item:hover {
    background: var(--bg-light);
}

.tech-item:nth-child(odd):hover {
    padding-left: 12px;
}

.tech-item:nth-child(even):hover {
    padding-left: 52px;
}

.tech-item img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    flex-shrink: 0;
}

.tech-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 3px;
}

.tech-item p {
    font-size: 0.75rem;
    color: var(--muted);
}

/* ══════════════════════════════════════════
   CONTACT
══════════════════════════════════════════ */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 620px;
}

.cf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.cf-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cf-group label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.cf-group input,
.cf-group textarea {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: var(--font);
    font-size: 0.9rem;
    padding: 14px 16px;
    outline: none;
    resize: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cf-group input::placeholder,
.cf-group textarea::placeholder {
    color: #333;
}

.cf-group input:focus,
.cf-group textarea:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
    padding: 40px 0;
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}

/* ══════════════════════════════════════════
   MOBILE PROFILE CARD (hero, mobile-only)
══════════════════════════════════════════ */
.mobile-profile {
    display: none;
    /* hidden on desktop */
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 28px;
}

.mobile-profile-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 15%;
    flex-shrink: 0;
    border: 2px solid var(--orange);
}

.mobile-profile-fallback {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    border: 2px solid var(--orange);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--orange);
    flex-shrink: 0;
}

.mobile-profile-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-profile-name {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text);
}

.mobile-profile-role {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 960px) {
    .sidebar {
        display: none;
    }

    #topnav {
        display: flex;
    }

    .layout {
        display: block;
    }

    .main {
        padding: 80px 24px 0;
    }

    .section {
        padding: 72px 0;
    }

    .big-label {
        font-size: 2.4rem;
    }

    .sh-big {
        font-size: 3rem;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .tech-item:nth-child(odd),
    .tech-item:nth-child(even) {
        padding-left: 0;
        padding-right: 0;
        border-right: none;
    }

    .tech-item:nth-last-child(-n+2) {
        border-bottom: 1px solid var(--border);
    }

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

    .journey-item {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .cf-row {
        grid-template-columns: 1fr;
    }

    body {
        cursor: auto;
    }

    a,
    button {
        cursor: auto;
    }

    #cursor-dot,
    #cursor-ring {
        display: none;
    }
}

@media (max-width: 540px) {
    .stats-row {
        gap: 24px;
    }

    .proj-left {
        flex-direction: column;
        gap: 8px;
    }
}

/* ══════════════════════════════════════════
   SIDEBAR — MAGAZINE STYLE
══════════════════════════════════════════ */
.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid var(--border);
    /* dot grid background */
    background-color: #0e0e0e;
    background-image: radial-gradient(circle, #252525 1px, transparent 1px);
    background-size: 22px 22px;
    display: flex;
    flex-direction: column;
}

/* ── Full-bleed photo header ── */
.sidebar-photo-header {
    position: relative;
    width: 100%;
    height: 280px;
    flex-shrink: 0;
    overflow: hidden;
}

.sidebar-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    display: block;
}

.sidebar-photo-fallback {
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    font-size: 5rem;
    font-weight: 900;
    color: var(--orange);
}

/* gradient: transparent top → solid bg at bottom */
.sidebar-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.15) 40%,
            rgba(13, 13, 13, 0.97) 100%);
}

/* name/role text overlaid at bottom */
.sidebar-photo-text {
    position: absolute;
    bottom: 14px;
    left: 18px;
    right: 18px;
    z-index: 2;
}

.sidebar-name {
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9);
}

.flame {
    font-size: 0.95rem;
}

.sidebar-role {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--orange);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 4px;
}

/* animated "Available" corner ribbon */
.sidebar-corner-tag {
    position: absolute;
    top: 16px;
    right: 0;
    background: var(--orange);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 5px 14px 5px 10px;
    clip-path: polygon(8px 0%, 100% 0%, 100% 100%, 0% 100%);
    animation: tag-glow 2.5s ease-in-out infinite;
}

@keyframes tag-glow {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(255, 107, 53, 0.5);
    }

}

/* ── Inner content ── */
.sidebar-inner {
    display: flex;
    flex-direction: column;
    padding: 18px 18px 32px;
    flex: 1;
}

/* Mini stats strip */
.sidebar-stats {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.sidebar-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 12px 4px;
}

.sidebar-stat-div {
    width: 1px;
    height: 28px;
    background: var(--border);
    flex-shrink: 0;
}

.ss-n {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--orange);
    letter-spacing: -0.03em;
    line-height: 1;
}

.ss-l {
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.sidebar-bio {
    font-size: 0.77rem;
    color: var(--muted);
    line-height: 1.72;
    margin-bottom: 18px;
}

/* Socials */
.sidebar-socials {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
}

.sidebar-socials a {
    color: var(--muted);
    transition: color 0.2s, transform 0.2s;
}

.sidebar-socials a:hover {
    color: var(--orange);
    transform: translateY(-3px);
}

/* Nav */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 2px;
    margin-top: auto;
}

.snav-link {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--muted);
    transition: background 0.2s, color 0.2s, padding-left 0.2s;
    position: relative;
}

.snav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 2px;
    height: 60%;
    background: var(--orange);
    border-radius: 2px;
    transition: transform 0.2s;
}

.snav-link:hover,
.snav-link.active {
    background: var(--orange-dim);
    color: var(--orange);
    padding-left: 20px;
}

.snav-link:hover::before,
.snav-link.active::before {
    transform: translateY(-50%) scaleY(1);
}

/* ══════════════════════════════════════════
   RESPONSIVE — TABLET & MOBILE
══════════════════════════════════════════ */

/* ── ≤ 960px: hide sidebar, show mobile top nav ── */
@media (max-width: 960px) {

    /* Hide desktop sidebar */
    .sidebar {
        display: none !important;
    }

    /* Show top nav */
    #topnav {
        display: flex !important;
    }

    /* Switch layout to single column */
    .layout {
        display: block;
    }

    /* Main content: add top padding for fixed nav */
    .main {
        padding: 80px 28px 0;
    }

    /* Hero section */
    .hero-section {
        min-height: auto;
        padding-top: 40px;
        padding-bottom: 60px;
    }

    /* Show mobile profile card */
    .mobile-profile {
        display: flex;
    }

    .big-label {
        font-size: clamp(2rem, 9vw, 3.2rem);
    }

    .big-label-dim {
        font-size: clamp(1.8rem, 8vw, 3rem);
    }

    .hero-sub {
        font-size: 0.92rem;
    }

    .stats-row {
        gap: 24px;
    }

    .stat-n {
        font-size: 2rem;
    }

    /* Sections */
    .section {
        padding: 64px 0;
    }

    .sh-big {
        font-size: clamp(2.6rem, 10vw, 4rem);
    }

    .section-heading {
        margin-bottom: 36px;
    }

    /* Project rows */
    .proj-row {
        margin: 0;
        padding: 24px 0;
        flex-wrap: wrap;
    }

    .proj-row:hover {
        background: none;
        padding-left: 0;
        padding-right: 0;
        margin: 0;
        box-shadow: inset 3px 0 0 var(--orange);
    }

    /* Journey */
    .journey-item {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 22px 20px;
    }

    .ji-left {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    /* Tech stack — single column */
    .tech-grid {
        grid-template-columns: 1fr;
    }

    .tech-item:nth-child(odd),
    .tech-item:nth-child(even) {
        padding-left: 0;
        padding-right: 0;
        border-right: none;
    }

    .tech-item:nth-last-child(-n+2) {
        border-bottom: 1px solid var(--border);
    }

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

    .tech-item:nth-child(odd):hover,
    .tech-item:nth-child(even):hover {
        padding-left: 8px;
    }

    /* Contact form */
    .cf-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        max-width: 100%;
    }

    /* Disable custom cursor on touch devices */
    body {
        cursor: auto;
    }

    a,
    button {
        cursor: auto;
    }

    #cursor-dot,
    #cursor-ring {
        display: none !important;
    }

    /* Disable magnetic & tilt on touch */
    .magnetic {
        transform: none !important;
    }

    .tilt-card {
        transform: none !important;
    }
}

/* ── ≤ 600px: small phones ── */
@media (max-width: 600px) {

    .main {
        padding: 72px 18px 0;
    }

    .big-label {
        font-size: clamp(1.8rem, 10vw, 2.6rem);
    }

    .big-label-dim {
        font-size: clamp(1.6rem, 9vw, 2.4rem);
    }

    .sh-big {
        font-size: clamp(2.2rem, 11vw, 3.2rem);
    }

    .stats-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .hero-ctas {
        flex-direction: column;
        gap: 12px;
    }

    .btn-orange,
    .btn-ghost {
        width: 100%;
        justify-content: center;
    }

    .proj-left {
        flex-direction: column;
        gap: 10px;
    }

    .proj-chips {
        gap: 6px;
    }

    .section {
        padding: 52px 0;
    }
}