/* ============================================================
   MHN — Portfolio
   Premium glassmorphism theme · indigo → violet → pink
   ============================================================ */

:root {
    --bg: #0a0a0f;
    --bg-soft: #12121a;
    --bg-tertiary: #1a1a27;
    --text: #ffffff;
    --text-dim: #a0a0b8;
    --text-muted: #6b6b85;

    --accent: #6366f1;
    --accent-2: #8b5cf6;
    --accent-3: #ec4899;
    --success: #10b981;

    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-soft: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);

    --glass: rgba(255, 255, 255, 0.02);
    --glass-hover: rgba(255, 255, 255, 0.04);
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);

    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    --shadow-btn: 0 4px 20px rgba(99, 102, 241, 0.4);
    --shadow-btn-hover: 0 6px 30px rgba(99, 102, 241, 0.6);

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Poppins', 'Inter', sans-serif;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --container: 1240px;
}

[data-theme="light"] {
    --bg: #f8f9ff;
    --bg-soft: #eef0fb;
    --bg-tertiary: #e4e7f7;
    --text: #0f0f1a;
    --text-dim: #3d3d5c;
    --text-muted: #6b6b8f;

    --accent: #4f46e5;
    --accent-2: #7c3aed;
    --accent-3: #db2777;

    --gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%);
    --gradient-soft: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);

    --glass: rgba(255, 255, 255, 0.7);
    --glass-hover: rgba(255, 255, 255, 0.9);
    --line: rgba(79, 70, 229, 0.14);
    --line-strong: rgba(79, 70, 229, 0.28);

    --shadow-card: 0 8px 32px rgba(79, 70, 229, 0.10);
    --shadow-glow: 0 0 40px rgba(79, 70, 229, 0.22);
    --shadow-btn: 0 4px 20px rgba(79, 70, 229, 0.30);
    --shadow-btn-hover: 0 6px 30px rgba(79, 70, 229, 0.45);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

::selection { background: rgba(99, 102, 241, 0.35); color: var(--text); }

/* Gradient text helper — the signature accent of this theme */
.serif,
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-display);
    font-style: normal;
    font-weight: 800;
}

.mono {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.section { padding: clamp(4.5rem, 10vw, 8rem) 0; }

/* ---------- Grain ---------- */
.noise {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9997;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="light"] .noise { opacity: 0.025; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    /* Must sit above .menu-overlay: .nav creates a stacking context, so the
       burger's own z-index can never lift it above a higher sibling. Without
       this the close (X) button is painted under the open menu. */
    z-index: 1002;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
[data-theme="light"] .nav { background: rgba(248, 249, 255, 0.85); }
[data-theme="light"] .nav.scrolled { background: rgba(248, 249, 255, 0.97); }

.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 1.15rem clamp(1.25rem, 4vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.nav-logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 0.02em;
    display: flex;
    align-items: baseline;
    gap: 2px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo-copy { font-size: 0.7rem; }

.nav-links { display: flex; gap: 2.2rem; }
.nav-link {
    color: var(--text-dim);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.3rem 0;
    transition: color 0.2s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 2px;
    border-radius: 2px;
    background: var(--gradient);
    transition: width 0.3s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 0.9rem; }

.theme-btn {
    width: 42px; height: 42px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 1rem;
    color: var(--text-dim);
    transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s;
}
.theme-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--accent);
    color: var(--accent);
    transform: rotate(20deg);
}
[data-theme="light"] .theme-btn { background: rgba(79, 70, 229, 0.06); }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

.nav-cta {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    background: var(--gradient);
    color: #fff;
    box-shadow: var(--shadow-btn);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
    display: inline-block;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-btn-hover); }

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 42px; height: 42px;
    align-items: center;
    z-index: 1002;
}
.burger span {
    display: block;
    width: 24px; height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform 0.35s var(--ease);
}
.burger.open span:first-child { transform: translateY(4px) rotate(45deg); }
.burger.open span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Mobile overlay */
.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1001;
    /* Fully opaque: backdrop-filter is unreliable on mobile browsers, and any
       alpha here lets the page bleed through behind the menu. */
    background: var(--bg);
    display: flex;
    flex-direction: column;
    /* Top-aligned and scrollable rather than centred: once the list is taller
       than the viewport, centring pushes the first item up behind the fixed
       header with no way to reach it. The top padding clears that header. */
    justify-content: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 5.5rem clamp(1.5rem, 8vw, 4rem) 2.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
[data-theme="light"] .menu-overlay { background: var(--bg); }
.menu-overlay.open { opacity: 1; visibility: visible; }
.menu-link {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 7vw, 2.6rem);
    font-weight: 700;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--line);
    transition: color 0.3s, padding-left 0.3s;
}
.menu-link span {
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.menu-link:hover { padding-left: 0.6rem; }
.menu-foot {
    margin-top: 2rem;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.menu-foot a { transition: color 0.3s; }
.menu-foot a:hover { color: var(--accent); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 8rem 0 4.5rem;
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}
.orb-1 {
    width: 500px; height: 500px;
    background: var(--accent);
    top: -200px; left: -180px;
}
.orb-2 {
    width: 400px; height: 400px;
    background: var(--accent-2);
    bottom: -150px; right: -140px;
    animation-delay: 7s;
}
.orb-3 {
    width: 350px; height: 350px;
    background: var(--accent-3);
    top: 45%; left: 55%;
    animation-delay: 14s;
    opacity: 0.2;
}
[data-theme="light"] .orb { opacity: 0.18; }
[data-theme="light"] .orb-3 { opacity: 0.12; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -50px) scale(1.1); }
    66% { transform: translate(-50px, 50px) scale(0.9); }
}

.hero .container { position: relative; z-index: 1; }

.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: clamp(2rem, 5vh, 3rem);
}
.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1.2rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
}
[data-theme="light"] .hero-status { background: rgba(79, 70, 229, 0.08); }
.status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--success);
    flex: 0 0 auto;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.25); }
}
.hero-meta { color: var(--text-muted); }

.hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.6rem, 7.6vw, 6rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
}
.hero-title .serif { font-size: 1em; }
.stroke {
    color: transparent;
    -webkit-text-stroke: 2px var(--accent-2);
}
/* overflow masks the reveal slide; the padding keeps descenders (g, y, p)
   from being clipped by that mask */
.line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.14em;
    margin-bottom: -0.14em;
}
.line-inner { display: inline-block; }

.hero-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2.5rem;
    margin-top: clamp(2.5rem, 6vh, 4rem);
    flex-wrap: wrap;
}
/* min-width:0 lets these flex items shrink below their content width so long
   names/labels wrap instead of pushing the row past the viewport */
.hero-left, .hero-desc, .hero-actions { min-width: 0; max-width: 100%; }
.hero-left { display: flex; flex-direction: column; gap: 1.1rem; }
.hero-card-text { min-width: 0; }
.hero-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 100%;
    padding: 0.8rem 1.5rem 0.8rem 0.8rem;
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--line);
    border-radius: 50px;
    box-shadow: var(--shadow-card);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.hero-card:hover { border-color: var(--accent); box-shadow: var(--shadow-glow); }
.hero-photo {
    width: 60px; height: 60px;
    border-radius: 50%;
    object-fit: cover;
    padding: 2px;
    background: var(--gradient);
}
.hero-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.3;
}
.hero-role { color: var(--text-muted); margin-top: 2px; font-size: 0.72rem; }

.hero-links { display: flex; gap: 1.5rem; padding-left: 0.5rem; flex-wrap: wrap; }
.hero-links a {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.3s;
}
.hero-links a:hover { color: var(--accent); }

.hero-desc {
    max-width: 400px;
    color: var(--text-dim);
    font-size: 1rem;
}
.hero-desc strong { color: var(--text); font-weight: 600; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 50px;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s, border-color 0.3s;
    white-space: nowrap;
}
.btn-fill {
    background: var(--gradient);
    color: #fff;
    box-shadow: var(--shadow-btn);
}
.btn-fill:hover { transform: translateY(-2px); box-shadow: var(--shadow-btn-hover); }
.btn-fill svg { transition: transform 0.3s var(--ease); }
.btn-fill:hover svg { transform: translate(3px, -3px); }
.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line-strong);
    color: var(--text);
}
.btn-ghost:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: var(--accent);
    transform: translateY(-2px);
}
[data-theme="light"] .btn-ghost { background: rgba(79, 70, 229, 0.05); }

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-muted);
    z-index: 1;
}
.scroll-line {
    display: block;
    width: 56px; height: 2px;
    border-radius: 2px;
    background: var(--line-strong);
    position: relative;
    overflow: hidden;
}
.scroll-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient);
    animation: scrollSlide 2s var(--ease) infinite;
}
@keyframes scrollSlide {
    0% { transform: translateX(-100%); }
    55% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 1.25rem 0;
    overflow: hidden;
    background: var(--bg-soft);
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}
.marquee-track span {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
    padding-right: 0.5rem;
}
.marquee-track i {
    font-style: normal;
    padding: 0 0.7rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ============================================================
   SECTION HEADS
   ============================================================ */
.section-head { margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1.1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    color: var(--accent);
    margin-bottom: 1.3rem;
}
[data-theme="light"] .section-tag { background: rgba(79, 70, 229, 0.08); }
.section-tag span { opacity: 0.75; }
.section-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3.4rem);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

/* ============================================================
   WORK
   ============================================================ */
.work-featured {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1.5rem, 3vw, 2rem);
}
.project {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--line);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: border-color 0.4s ease, transform 0.4s var(--ease), box-shadow 0.4s ease, background 0.4s;
}
.project:hover {
    background: var(--glass-hover);
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
}

.project-visual {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9.5;
    overflow: hidden;
}
.project[data-tone="a"] .project-visual {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #a855f7 100%);
}
.project[data-tone="b"] .project-visual {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 55%, #8b5cf6 100%);
}
.project[data-tone="c"] .project-visual {
    background: linear-gradient(135deg, #8b5cf6 0%, #c026d3 55%, #ec4899 100%);
}
.project[data-tone="d"] .project-visual {
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 55%, #f59e0b 100%);
}
.project[data-tone="e"] .project-visual {
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 55%, #8b5cf6 100%);
}
.project-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(10, 10, 15, 0.42) 0%, transparent 28%),
        linear-gradient(180deg, transparent 52%, rgba(10, 10, 15, 0.72) 100%);
}

.project-index {
    position: absolute;
    top: 1.3rem; left: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    z-index: 3;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}
/* Real project screenshots sit beneath the gradient tint, which keeps the
   overlay index, pill and arrow readable whatever the shot contains. */
.project-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    z-index: 1;
    transition: transform 0.7s var(--ease);
}
.project:hover .project-img { transform: scale(1.04); }

.project-pill {
    position: absolute;
    bottom: 1.3rem; left: 1.5rem;
    z-index: 3;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.45rem 0.95rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
}

.project-arrow {
    position: absolute;
    top: 1.2rem; right: 1.2rem;
    z-index: 3;
    width: 44px; height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    color: #6366f1;
    transform: scale(0);
    transition: transform 0.35s var(--ease);
}
.project-visual:hover .project-arrow { transform: scale(1); }

.project-info { padding: clamp(1.5rem, 2.5vw, 2rem); }
.project-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
}
.project-desc { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 1.3rem; }
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.4rem;
}
.project-tags li {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.4rem 0.85rem;
    border-radius: 50px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: var(--accent);
    text-transform: none;
    letter-spacing: 0;
}
[data-theme="light"] .project-tags li { background: rgba(79, 70, 229, 0.07); }
.project-link {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s var(--ease);
}
.project-link:hover { transform: translateX(4px); }

/* Spotlight — full-width flagship */
.project.spotlight {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
}
.project.spotlight .project-visual {
    aspect-ratio: auto;
    min-height: 400px;
    height: 100%;
}
.project.spotlight .project-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.8rem, 3.5vw, 3rem);
}
.project.spotlight .project-title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.spotlight-tag {
    display: inline-block;
    width: fit-content;
    margin-bottom: 1rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: rgba(236, 72, 153, 0.12);
    border: 1px solid rgba(236, 72, 153, 0.3);
    color: var(--accent-3);
}

/* More projects */
.work-more { margin-top: clamp(3rem, 6vw, 5rem); }
.more-label {
    color: var(--text-muted);
    margin-bottom: 1.6rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.more-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.more-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.3rem;
}
.more-media {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    overflow: hidden;
    margin: -0.4rem -0.4rem 0.5rem;
    background: var(--bg-tertiary);
}
.more-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s var(--ease);
}
.more-card:hover .more-media img { transform: scale(1.06); }

.more-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    box-shadow: var(--shadow-card);
    transition: border-color 0.35s, transform 0.35s var(--ease), box-shadow 0.35s, background 0.35s;
}
.more-card:hover {
    background: var(--glass-hover);
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
}
.more-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}
.more-card:hover .more-top svg { color: var(--accent); }
.more-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
}
.more-card p { color: var(--text-dim); font-size: 0.88rem; flex: 1; }
.more-tags { color: var(--text-muted); font-size: 0.68rem; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials { background: var(--bg-soft); }
.t-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.3rem;
}
.t-card {
    position: relative;
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--line);
    border-radius: 1.5rem;
    padding: 2.8rem 1.9rem 1.9rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-card);
    transition: border-color 0.35s, transform 0.35s var(--ease), box-shadow 0.35s, background 0.35s;
}
.t-card:hover {
    background: var(--glass-hover);
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
}
.t-mark {
    position: absolute;
    top: 1rem; left: 1.6rem;
    font-family: var(--font-display);
    font-size: 3.5rem;
    line-height: 1;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.t-card blockquote {
    font-size: 0.97rem;
    line-height: 1.75;
    color: var(--text-dim);
    flex: 1;
}
.t-card figcaption {
    margin-top: 1.6rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.t-card figcaption strong {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
}
.t-card figcaption .mono { color: var(--accent); font-size: 0.68rem; }
.t-note { margin-top: 2.2rem; color: var(--text-muted); text-align: center; }
.t-note a {
    font-weight: 600;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: start;
}
.about-lead {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.3vw, 1.6rem);
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: -0.01em;
    margin-bottom: 1.3rem;
}
.about-body { color: var(--text-dim); max-width: 56ch; font-size: 1rem; }
.about-body strong { color: var(--text); font-weight: 600; }

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
    margin-top: 2.8rem;
}
.stat {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: 1.6rem 1.2rem;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: border-color 0.35s, transform 0.35s var(--ease), box-shadow 0.35s, background 0.35s;
}
.stat:hover {
    background: var(--glass-hover);
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}
.stat-num {
    display: block;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    letter-spacing: -0.02em;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label { color: var(--text-muted); display: block; margin-top: 0.4rem; font-size: 0.7rem; }

.edu-title {
    color: var(--text-muted);
    margin-bottom: 1.6rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.edu-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.edu-list { position: relative; }
.edu-item {
    display: flex;
    gap: 1.4rem;
    padding: 1.3rem 0;
    border-bottom: 1px solid var(--line);
}
.edu-item:last-child { border-bottom: none; }
.edu-year {
    flex: 0 0 96px;
    padding-top: 4px;
    font-size: 0.7rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.edu-item h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
}
.edu-item p { color: var(--text-muted); font-size: 0.9rem; }

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--bg-soft); }
.service-list { display: flex; flex-direction: column; }
.service-row {
    display: grid;
    grid-template-columns: 72px 1fr 1.1fr;
    gap: 1.5rem;
    align-items: baseline;
    padding: 1.9rem 1rem;
    border-bottom: 1px solid var(--line);
    border-radius: 1rem;
    transition: background 0.35s, transform 0.35s var(--ease);
}
.service-row:first-child { border-top: 1px solid var(--line); }
.service-row:hover {
    background: var(--glass-hover);
    transform: translateX(8px);
}
.service-num {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 0.9rem;
}
.service-row h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.15rem, 2.2vw, 1.5rem);
    letter-spacing: -0.01em;
}
.service-row p { color: var(--text-dim); font-size: 0.95rem; }

/* ============================================================
   SKILLS
   ============================================================ */
.skills-rows { display: flex; flex-direction: column; }
.skill-row {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    padding: 2.2rem 0;
    border-bottom: 1px solid var(--line);
    align-items: start;
}
.skill-row:first-child { border-top: 1px solid var(--line); }
.skill-row-head { display: flex; align-items: baseline; gap: 1rem; }
.skill-row-head span {
    font-size: 0.85rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.skill-row-head h3 {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -0.01em;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.chip {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    background: var(--glass);
    border: 1px solid var(--line);
    color: var(--text-dim);
    transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease), background 0.3s, box-shadow 0.3s;
    cursor: default;
}
.chip:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: var(--accent);
    color: var(--text);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.25);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { text-align: center; position: relative; overflow: hidden; }
.contact::before {
    content: '';
    position: absolute;
    bottom: -30%; left: 50%;
    transform: translateX(-50%);
    width: 700px; height: 700px;
    max-width: 120vw;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, transparent 62%);
    pointer-events: none;
}
.contact .container { position: relative; z-index: 1; }
.contact .section-tag { margin-bottom: 1.6rem; }
.contact-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 2.6rem;
}
.contact-mail {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1rem, 2.8vw, 1.7rem);
    letter-spacing: -0.01em;
    padding: 1rem 2.2rem;
    border-radius: 50px;
    background: var(--gradient);
    color: #fff;
    box-shadow: var(--shadow-btn);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
    max-width: 100%;
    overflow-wrap: anywhere;
}
.contact-mail:hover { transform: translateY(-3px); box-shadow: var(--shadow-btn-hover); }
.contact-mail svg { flex: 0 0 auto; transition: transform 0.3s var(--ease); }
.contact-mail:hover svg { transform: translate(3px, -3px); }

.contact-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    margin-top: clamp(3rem, 6vw, 4.5rem);
    text-align: left;
}
.c-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: 1.6rem;
    box-shadow: var(--shadow-card);
    transition: border-color 0.35s, transform 0.35s var(--ease), box-shadow 0.35s, background 0.35s;
}
.c-card:hover {
    background: var(--glass-hover);
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}
.c-card span {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.68rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.c-card p {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    overflow-wrap: anywhere;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    border-top: 1px solid var(--line);
    padding: 2rem 0;
    background: var(--bg-soft);
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--text-muted);
}
.back-top { transition: color 0.3s; }
.back-top:hover { color: var(--accent); }

/* ============================================================
   REVEALS
   ============================================================ */
.js .fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .fade-up.in { opacity: 1; transform: translateY(0); }
.js .line .line-inner {
    transform: translateY(110%);
    transition: transform 0.9s var(--ease);
}
.js .line.in .line-inner { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .js .fade-up, .js .line .line-inner { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .more-grid { grid-template-columns: repeat(2, 1fr); }
    .skill-row { grid-template-columns: 200px 1fr; }
    .t-grid { grid-template-columns: 1fr; }
    .contact-cards { grid-template-columns: repeat(2, 1fr); }
    .project.spotlight { grid-template-columns: 1fr; }
    .project.spotlight .project-visual { aspect-ratio: 16 / 9.5; min-height: 0; }
}

@media (max-width: 860px) {
    .nav-links, .nav-cta { display: none; }
    .burger { display: flex; }

    .work-featured { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .contact-cards { grid-template-columns: 1fr; }
    .skill-row { grid-template-columns: 1fr; gap: 1rem; padding: 1.8rem 0; }
    .service-row { grid-template-columns: 52px 1fr; padding: 1.6rem 0.8rem; }
    .service-row p { grid-column: 2; }
    .service-row:hover { transform: translateX(4px); }

    .hero-bottom { flex-direction: column; align-items: stretch; }
    .hero-desc { max-width: 100%; }
    .hero-role { letter-spacing: 0.06em; }
    .hero-links { gap: 1.1rem; }
    .hero-scroll { display: none; }
    .orb { filter: blur(60px); }
    .orb-1 { width: 320px; height: 320px; }
    .orb-2 { width: 280px; height: 280px; }
    .orb-3 { width: 240px; height: 240px; }
}

@media (max-width: 560px) {
    .more-grid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr; }
    .stats .stat:first-child { grid-column: span 2; }
    .hero-title { font-size: clamp(2.3rem, 11vw, 3.2rem); }
    .footer-inner { justify-content: center; text-align: center; }
    .btn { padding: 0.9rem 1.6rem; }
    .contact-mail { padding: 0.9rem 1.4rem; font-size: 0.95rem; }
}
