@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ─── Modern Reset & Core ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { 
    scroll-behavior: smooth; 
    font-size: 16px; /* Base for rem */
}

:root {
    --bg: #000000;
    --bg-elevated: #0a0a0a;
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --text-dim: rgba(255, 255, 255, 0.4);
    --accent: #ffffff;
    --border: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.2);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-blur: blur(20px);
    
    --font-main: 'Outfit', sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --transition: 0.6s var(--ease);
    
    --vfx-glow: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(255,255,255,0.06), transparent 40%);
    --gold: #d4d4dc;
    --gold-glow: rgba(212, 212, 220, 0.35);
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    cursor: none;
    position: relative;
}

@media (max-width: 1024px) {
    body { cursor: auto; }
    #cursor, #cursor-blur { display: none !important; }
}

/* ─── Sleek Minimal Dot + Ring Cursor ─── */
#cursor {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  transition: width 0.2s, height 0.2s, background 0.2s;
}

#cursor-blur {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  will-change: transform;
  transition: width 0.2s, height 0.2s, border-color 0.2s;
}

body.cursor-hover #cursor { width: 12px; height: 12px; background: var(--gold, #f59e0b); }
body.cursor-hover #cursor-blur { width: 48px; height: 48px; border-color: rgba(245,158,11,0.5); }

.cursor-spark {
    position: fixed;
    pointer-events: none;
    z-index: 10001;
    background: var(--gold);
    border-radius: 50%;
    mix-blend-mode: screen;
    box-shadow: 0 0 5px var(--gold-glow);
    transition: transform 0.4s cubic-bezier(0.1, 0.8, 0.3, 1), opacity 0.4s ease;
}



/* ─── Custom Scrollbar ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--text-dim); border-radius: 10px; }

.brand-logo {
    max-height: 50px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1.5rem;
    filter: opacity(0.85);
    transition: all 0.5s var(--ease);
}

.branding-card:hover .brand-logo {
    filter: opacity(1) drop-shadow(0 0 12px rgba(212, 212, 220, 0.4));
    transform: scale(1.08);
}

.branding-card:hover {
    border-color: var(--gold);
    background: rgba(212, 212, 220, 0.04);
    box-shadow: 0 0 30px rgba(212, 212, 220, 0.1), 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-6px) scale(1.03);
}

.brand-name {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-dim);
    transition: color 0.3s var(--ease);
}

.branding-card:hover .brand-name {
    color: var(--gold);
}

/* ─── Brand Carousel ─── */
.brand-carousel-wrapper {
    position: relative;
    width: 100%;
    padding: 0 0 3rem;
    user-select: none;
}

.brand-carousel-track-outer {
    overflow: hidden;
    width: 100%;
    /* Fade edges */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.brand-carousel-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: brandScroll 28s linear infinite;
    will-change: transform;
}

.brand-carousel-track:hover,
.brand-carousel-wrapper:hover .brand-carousel-track {
    animation-play-state: paused;
}

@keyframes brandScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* 50% = original set width (half of total) */
}

.brand-slide {
    flex: 0 0 220px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.brand-slide:hover {
    transform: translateY(-10px) scale(1.04);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Prev / Next buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
    backdrop-filter: blur(10px);
}
.carousel-btn:hover {
    background: rgba(212, 212, 220, 0.15);
    border-color: var(--gold);
    transform: translateY(-60%) scale(1.1);
}
.carousel-btn--prev { left: 2rem; }
.carousel-btn--next { right: 2rem; }

/* Dot indicators */
.brand-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 2rem;
}
.brand-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: background 0.3s var(--ease), transform 0.3s var(--ease), width 0.3s var(--ease);
    cursor: pointer;
}
.brand-dot.active {
    background: var(--gold);
    width: 20px;
    border-radius: 3px;
    transform: scaleY(1.1);
}


/* ─── Layout Utils ─── */
.container { 
    max-width: 1440px; 
    margin: 0 auto; 
    padding: 0 5vw; 
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Word Reveal Animation ─── */
.word-reveal {
    display: inline-block;
    overflow: hidden;
    /* Must match the parent line-height so the clip box
       is never taller than one line — prevents inter-line bleed */
    line-height: 1.1;
    /* Extra bottom clearance so descenders aren't clipped
       during the slide-up translateY animation */
    padding-bottom: 0.08em;
    /* Use baseline alignment; bottom causes a fractional-px
       misalignment when line-height < 1 */
    vertical-align: baseline;
}

.word-inner {
    display: inline-block;
    /* Start fully below the clip boundary */
    transform: translateY(105%);
    transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
    /* Keep it on the same baseline plane as its siblings */
    vertical-align: top;
    line-height: 1.1;
}

.word-inner.visible {
    transform: translateY(0);
}

/* ─── Gradient Text (Hero Title) ───
   Before splitText runs: the h1 text is direct, so background-clip:text
   on the parent works fine. After splitText, all text moves into
   .word-inner children — background-clip:text only clips the PARENT's
   background to the parent's OWN text (now empty), and -webkit-text-fill-color
   transparent IS inherited, making child text invisible with no gradient to show.
   Fix: drop the gradient from the parent, give each .word-inner its own clip. */
.gradient-text {
    /* Plain white fallback while text is still in the h1 directly
       (before splitText fires). No -webkit-text-fill-color so children
       don't silently inherit a transparent fill they can't resolve. */
    color: #ffffff;
}

/* Each word-span carries its own gradient so background-clip:text
   clips correctly to THAT span's text characters, not the empty parent. */
.gradient-text .word-inner {
    background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.82) 55%, rgba(212, 212, 220,0.95) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent; /* fallback for non-webkit */
}


/* ─── Cinematic Bento Reveal ─── */
.reveal-bento {
    opacity: 0;
    transform: perspective(1000px) rotateX(15deg) translateY(60px) scale(0.9);
    clip-path: inset(100% 0 0 0);
    transition: 
        opacity 1.2s var(--ease),
        transform 1.2s var(--ease),
        clip-path 1.2s var(--ease);
}
.reveal-bento.visible {
    opacity: 1;
    transform: perspective(1000px) rotateX(0) translateY(0) scale(1);
    clip-path: inset(0 0 0 0);
}

/* Gold Sweep Flare */
.reveal-bento::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(212, 212, 220, 0.4),
        transparent
    );
    transform: skewX(-25deg);
    z-index: 5;
    pointer-events: none;
}
.reveal-bento.visible::after {
    animation: goldSweep 1.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    animation-delay: 0.8s;
}

@keyframes goldSweep {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* ─── Glassmorphism Component ─── */
.glass-card {
    background: var(--glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: 28px;
    transition: var(--transition);
}
.glass-card:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.05);
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.timeline-content:hover {
    transform: scale(1.02);
}

/* ─── Navbar ─── */
.nav {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 20px;
}
.nav-logo {
    flex: 1;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.nav-logo::before {
    content: '';
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 4px;
}
.nav-links {
    flex: 2;
    display: flex;
    justify-content: center;
    gap: 2rem;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}
.nav-links a:hover { color: #fff; }
.nav-cta-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}
.btn-nav-cta {
    background: #fff;
    color: #000;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}
.btn-nav-cta:hover { transform: scale(1.05); opacity: 0.9; }

.magnetic {
    display: inline-block;
    transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ─── Hero ─── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 10;
    position: relative;
}

#hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.4;
}

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 7rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
}

.hero-desc {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn-primary {
    background: #fff;
    color: #000;
    padding: 1rem 2.5rem;
    border-radius: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}
.btn-secondary {
    background: transparent;
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}
.btn-primary:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(255,255,255,0.1); }
.btn-secondary:hover { background: rgba(255,255,255,0.05); border-color: #fff; }

/* ─── Wavy Background ─── */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.5;
}

/* ─── Meet Section ─── */
.meet-section {
    padding: 150px 0;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 8vw;
    align-items: center;
}

.meet-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
}

.meet-bio {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.meet-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.meet-tag {
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.meet-image-container {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: var(--bg-elevated);
}

.meet-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1) blur(0);
    transition: filter 0.8s var(--ease), transform 0.8s var(--ease);
}

.meet-image.loading {
    filter: grayscale(100%) blur(20px);
}
.meet-image-container:hover .meet-image { filter: grayscale(0%) contrast(1); transform: scale(1.05); }

/* ─── Services Section ─── */
.section-header {
    margin-bottom: 4rem;
    text-align: center;
}
.section-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
    display: block;
    text-align: center;
}
.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    text-align: center;
}

.skill-tabs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.skill-tab {
    padding: 0.6rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.skill-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.skill-tab.active {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.service-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.service-name {
    font-size: 1.5rem;
    font-weight: 600;
}

.service-card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ─── Client Reviews ─── */
.reviews-section {
    padding: 150px 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.review-card {
    padding: 2.5rem;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-elevated);
    overflow: hidden;
}

.review-info h4 { font-size: 1.1rem; font-weight: 600; }
.review-info p { font-size: 0.85rem; color: var(--text-dim); }

.review-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.review-rating {
    display: flex;
    gap: 4px;
    color: #d4d4dc;
    font-size: 0.85rem;
}

/* ─── Toolkit Grids ─── */
.toolkit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.toolkit-card {
    background: var(--glass);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    padding: 2rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    border-radius: 24px;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.toolkit-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 255, 255, 0.05);
}

.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    transition: transform 0.3s var(--ease);
}

.toolkit-card:hover .tool-icon {
    transform: scale(1.2) rotate(5deg);
}

.tool-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.skill-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
}

.skill-progress {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #fff, var(--text-dim));
    border-radius: 10px;
    transition: width 1.5s var(--ease);
}

.toolkit-card[data-category="vfx"] .skill-progress { background: linear-gradient(90deg, #9333ea, #a855f7); }
.toolkit-card[data-category="3d"] .skill-progress { background: linear-gradient(90deg, #06b6d4, #22d3ee); }
.toolkit-card[data-category="video"] .skill-progress { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.toolkit-card[data-category="design"] .skill-progress { background: linear-gradient(90deg, #ec4899, #f472b6); }

.tool-level {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 100px;
}

/* ─── Education Timeline ─── */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto;
    padding: 2rem 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--border);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    padding: 1rem 3rem;
    position: relative;
    width: 50%;
    opacity: 0;
    transition: all 1s var(--ease);
}

.timeline-item[data-side="left"] { left: 0; transform: translateX(-100px); }
.timeline-item[data-side="right"] { left: 50%; transform: translateX(100px); }

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    top: 2rem;
    z-index: 1;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.timeline-item[data-side="left"] .timeline-dot { right: -10px; }
.timeline-item[data-side="right"] .timeline-dot { left: -10px; }

.timeline-content {
    padding: 2rem;
    position: relative;
}

.timeline-year {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dim);
    margin-bottom: 0.8rem;
    display: block;
}

.timeline-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; left: 0 !important; padding-left: 70px; transform: translateX(50px) !important; }
    .timeline-dot { left: 21px !important; }
}

/* ─── Stat Bars ─── */
.stat-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 1rem auto 0 auto;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    width: 0;
    transition: width 2s cubic-bezier(0.19, 1, 0.22, 1);
}

.vfx-stat .stat-fill { background: #9333ea; }
.design-stat .stat-fill { background: #ec4899; }
.video-stat .stat-fill { background: #f59e0b; }
.social-stat .stat-fill { background: #06b6d4; }

/* ─── Insight Highlight (Instagram) ─── */
.insight-container {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
    border-radius: 40px;
    padding: 5vw;
    display: flex;
    align-items: center;
    gap: 5vw;
    margin: 100px 0;
}

/* ─── Footer Stats ─── */
.footer-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    border-top: 1px solid var(--border);
    padding: 5rem 0;
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-item h3 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ─── Footer ─── */
.footer {
    padding: 5rem 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* ─── Cinematic Loader ─── */
#loader {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.loader-bg-top, .loader-bg-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50.5%; /* Slight overlap to avoid gap */
    background: #000;
    transition: transform 1.2s cubic-bezier(0.85, 0, 0.15, 1);
}
.loader-bg-top { top: 0; }
.loader-bg-bottom { bottom: 0; }

.loader-content {
    position: relative;
    z-index: 10;
    text-align: center;
    opacity: 1;
    transition: opacity 0.5s ease;
}
.loader-logo {
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: #fff;
    margin-bottom: 1rem;
}
.loader-line {
    width: 0;
    height: 2px;
    background: var(--gold);
    margin: 0 auto;
    transition: width 0.8s var(--ease);
}

body.loaded #loader .loader-bg-top { transform: translateY(-100%); transition-delay: 0.5s; }
body.loaded #loader .loader-bg-bottom { transform: translateY(100%); transition-delay: 0.5s; }
body.loaded #loader .loader-content { opacity: 0; transform: scale(1.1); transition: opacity 0.5s ease, transform 0.8s var(--ease); }

/* ─── Audio Toggle ─── */
.audio-btn {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 1000;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}
.audio-btn:hover { background: rgba(255,255,255,0.1); border-color: var(--gold); }
.audio-label { letter-spacing: 0.1em; color: var(--text-dim); }

/* ─── Section Scanlines ─── */
.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    height: 2px;
    box-shadow: 0 0 10px var(--gold-glow);
}
.reveal.visible ~ .scanline {
    animation: scanlineWipe 2s var(--ease) forwards;
}
@keyframes scanlineWipe {
    0% { width: 0; left: 0; opacity: 1; }
    50% { width: 100%; left: 0; opacity: 1; }
    100% { width: 100%; left: 0; opacity: 0; }
}

/* ─── Hero Blob ─── */
.hero-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--gold) 0%, #ff8c00 30%, transparent 70%);
    filter: blur(100px);
    opacity: 0.1;
    z-index: 0;
    border-radius: 40% 60% 70% 30% / 50% 60% 30% 60%;
    animation: blobMorph 15s infinite alternate ease-in-out;
    mix-blend-mode: screen;
}
@keyframes blobMorph {
    0% { border-radius: 40% 60% 70% 30% / 50% 60% 30% 60%; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
    33% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; transform: translate(-50%, -50%) scale(1.1) rotate(120deg); }
    66% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; transform: translate(-50%, -50%) scale(0.9) rotate(240deg); }
    100% { border-radius: 40% 60% 70% 30% / 50% 60% 30% 60%; transform: translate(-50%, -50%) scale(1) rotate(360deg); }
}

/* ─── Animated Film Grain ─── */
.noise-overlay {
    position: fixed;
    inset: -50%;
    width: 200%;
    height: 200%;
    z-index: 9998;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
    animation: grainShift 0.15s steps(2) infinite;
}
@keyframes grainShift {
    0% { transform: translate(0,0); }
    33% { transform: translate(-2%, -3%); }
    66% { transform: translate(3%, 1%); }
    100% { transform: translate(-1%, 2%); }
}

/* ─── 3D Flip Skill Cards ─── */
.toolkit-card-3d {
    perspective: 1200px;
    height: 320px;
    width: 100%;
}
.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
}
.toolkit-card-3d:hover .card-inner { transform: rotateY(-180deg); }
.card-front, .card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border-radius: 28px;
    background: var(--glass);
    border: 1px solid var(--border);
}
.card-back {
    transform: rotateY(-180deg);
    background: rgba(212, 212, 220, 0.08);
    border-color: var(--gold-glow);
    text-align: center;
}
.card-back p { font-size: 0.95rem; line-height: 1.6; color: #fff; font-weight: 500; }

/* ─── Bento Grid Showcase ─── */
.projects-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 360px;
    gap: 20px;
    width: 100%;
}
.project-card-bento {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.4s var(--ease);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.project-card-bento.featured {
    grid-row: span 1;
    grid-column: span 1;
}
.project-card-bento:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.project-card-bento .project-thumb {
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    inset: 0;
    z-index: 1;
    transition: transform 0.6s var(--ease);
}
.project-card-bento:hover .project-thumb { transform: scale(1.05); }

.project-card-bento .project-info {
    position: relative;
    z-index: 2;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
}

.project-card-bento .project-tag {
    position: absolute;
    top: 2rem;
    left: 2rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    background: rgba(0,0,0,0.5);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    backdrop-filter: blur(5px);
}

.project-card-bento .project-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}
.project-card-bento:hover .project-title { color: var(--gold); }

.project-card-bento .project-desc {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    max-width: 250px;
}

.view-details-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: letter-spacing 0.3s ease;
}
.project-card-bento:hover .view-details-link { letter-spacing: 0.15em; color: var(--gold); }

/* ─── Cinematic Animations ─── */
/* NOTE: .gradient-text shine removed — gradient is applied per .word-inner span
   (see line ~290) so background-clip:text clips correctly to each word's characters.
   A top-level background-clip on the h1 re-renders the raw text as a ghost before splitText. */
@keyframes shine { to { background-position: 200% center; } }

.word-reveal { display: inline-block; overflow: hidden; vertical-align: bottom; }
.word-inner {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%) skewY(5deg);
    transition: all 0.8s var(--ease);
}
.word-inner.visible { opacity: 1; transform: translateY(0) skewY(0); }

.odometer-digit { display: inline-block; height: 1.1em; overflow: hidden; vertical-align: bottom; }
.odometer-digit span { display: block; line-height: 1.1em; will-change: transform; }

/* ─── Mobile Navigation Toggle ─── */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 18px;
    cursor: pointer;
    z-index: 1001;
    transition: var(--transition);
}
.nav-toggle span {
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { transform: translateY(-8px) rotate(-45deg); }

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s var(--ease);
}
.nav-overlay.active { opacity: 1; visibility: visible; }

.nav-overlay-links { display: flex; flex-direction: column; gap: 2.5rem; text-align: center; }
.nav-overlay-links a {
    text-decoration: none;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s var(--ease);
}
.nav-overlay.active .nav-overlay-links a { opacity: 1; transform: translateY(0); }
.nav-overlay-links a.overlay-cta {
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 1rem 2rem;
    border-radius: 100px;
    font-size: 1.25rem;
}

/* ─── Skills Ticker System ─── */
.skills-ticker-container {
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 0 1.5rem;
    /* Fade left & right edges */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.skills-ticker-row {
    overflow: hidden;
    width: 100%;
}

.skills-ticker-inner {
    display: flex;
    gap: 0.75rem;
    width: max-content;
    will-change: transform;
}

/* Row 1 — left to right */
.skills-ticker-row:nth-child(1) .skills-ticker-inner {
    animation: ticker-ltr 28s linear infinite;
}
/* Row 2 — right to left (mirrored) */
.skills-ticker-row:nth-child(2) .skills-ticker-inner {
    animation: ticker-rtl 32s linear infinite;
}
/* Row 3 — left to right, slower */
.skills-ticker-row:nth-child(3) .skills-ticker-inner {
    animation: ticker-ltr 36s linear infinite;
}

/* Pause on hover of container */
.skills-ticker-container:hover .skills-ticker-inner {
    animation-play-state: paused;
}

@keyframes ticker-ltr {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes ticker-rtl {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* ─── Skill Pill ─── */
.skill-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 1.1rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.25s ease, border-color 0.25s ease,
                transform 0.25s ease, opacity 0.35s ease;
    user-select: none;
    flex-shrink: 0;
}

.skill-pill:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.skill-pill.selected {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12);
}

/* Dimmed state for filtered-out pills */
.skill-pill.dimmed {
    opacity: 0.18;
    pointer-events: none;
}

.skill-emoji {
    font-size: 1rem;
    line-height: 1;
}

.skill-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.01em;
}

/* ─── Skill Level Badges ─── */
.skill-level-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: 100px;
}

.skill-level-badge.vfx    { background: rgba(147, 51, 234, 0.25); color: #c084fc; border: 1px solid rgba(147, 51, 234, 0.4); }
.skill-level-badge.threed     { background: rgba(6, 182, 212, 0.2);   color: #67e8f9; border: 1px solid rgba(6, 182, 212, 0.35); }
.skill-level-badge.video  { background: rgba(245, 158, 11, 0.2);  color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.35); }
.skill-level-badge.design { background: rgba(236, 72, 153, 0.2);  color: #f9a8d4; border: 1px solid rgba(236, 72, 153, 0.35); }
.skill-level-badge.social { background: rgba(16, 185, 129, 0.2);  color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.35); }

/* ─── Skill Detail Panel ─── */
.skill-detail-panel {
    margin-top: 1.25rem;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.35s ease;
    border-radius: 20px;
    position: relative;
}

.skill-detail-panel.open {
    max-height: 220px;
    opacity: 1;
}

.skill-detail-panel > .panel-content-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem 1.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(12px);
}

.panel-emoji {
    font-size: 2.2rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.panel-body {
    flex: 1;
    min-width: 0;
}

.panel-header-line {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.panel-tool-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

/* Reuse badge styles — panel badge inherits category colour via JS class */
.panel-level-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: 100px;
    background: rgba(212, 212, 220, 0.2);
    color: var(--gold);
    border: 1px solid rgba(212, 212, 220, 0.35);
}

.panel-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0.9rem;
}

.panel-percentage-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.panel-percent-value {
    color: #fff;
    font-weight: 700;
}

.panel-progress-bar {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.panel-progress-fill {
    height: 100%;
    width: 0;
    border-radius: 10px;
    background: linear-gradient(90deg, #fff, rgba(255,255,255,0.5));
    transition: width 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Category-tinted progress fills */
.panel-progress-fill.vfx    { background: linear-gradient(90deg, #9333ea, #c084fc); }
.panel-progress-fill.threed     { background: linear-gradient(90deg, #06b6d4, #67e8f9); }
.panel-progress-fill.video  { background: linear-gradient(90deg, #f59e0b, #fcd34d); }
.panel-progress-fill.design { background: linear-gradient(90deg, #ec4899, #f9a8d4); }
.panel-progress-fill.social { background: linear-gradient(90deg, #10b981, #6ee7b7); }

/* Close button */
.panel-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    z-index: 2;
}
.panel-close-btn:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
}

/* Responsive tweaks */
@media (max-width: 600px) {
    .skill-detail-panel.open { max-height: 320px; }
    .skill-detail-panel > .panel-content-wrapper { flex-direction: column; gap: 0.75rem; }
    .panel-emoji { font-size: 1.8rem; }
}

/* ─── Experience Timeline Upgrades ─── */
.exp-timeline-wrap {
    position: relative;
    padding-left: 60px;
}

.exp-spine {
    position: absolute;
    left: 28px;
    top: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(212, 212, 220,0.6), rgba(255,255,255,0.1));
    transform-origin: top;
    transform: scaleY(0);
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.exp-spine.visible { transform: scaleY(1); }

.exp-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.exp-dot {
    position: absolute;
    left: -38px; /* 60px wrapper padding – 22px target = 38px left of item edge */
    top: 50%;
    margin-top: -6.5px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 12px var(--gold-glow), 0 0 24px var(--gold-glow);
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
}
.exp-dot.visible { transform: scale(1); }

/* ── Slide-in cards (overrides .reveal with higher specificity) ── */
.glass-card.exp-card {
    position: relative;
    overflow: hidden;
    border-left: 2px solid transparent;
    /* Slide from left by default */
    opacity: 0;
    transform: translateX(-60px);
    transition:
        border-color 0.4s ease,
        box-shadow 0.4s ease,
        opacity 0.7s var(--ease),
        transform 0.7s var(--ease);
}
.glass-card.exp-card.from-right {
    transform: translateX(60px);
}
.glass-card.exp-card.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ── Gold shimmer hover ── */
.glass-card.exp-card:hover {
    border-left-color: var(--gold);
    box-shadow: 0 0 40px rgba(212, 212, 220,0.08), 0 20px 60px rgba(0,0,0,0.4);
}
.glass-card.exp-card::after {
    content: '';
    position: absolute;
    top: 0; left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent 0%, rgba(212, 212, 220,0.06) 50%, transparent 100%);
    transform: skewX(-20deg);
    transition: left 0.6s var(--ease);
    pointer-events: none;
    z-index: 1;
}
.glass-card.exp-card:hover::after { left: 130%; }

/* ── Stat counter highlight ── */
.exp-counter {
    color: var(--gold);
    font-weight: 700;
}

/* Responsive: collapse left spine padding on small screens */
@media (max-width: 600px) {
    .exp-timeline-wrap { padding-left: 0; }
    .exp-spine, .exp-dot { display: none; }
}

/* ─── Global Responsive Overrides ─── */

/* ═══════════════════════════════════════════════
   VIDEO SHOWCASE GRID  (vsg-*)
   ═══════════════════════════════════════════════ */

/* ── Grid layout ── */
.vsg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

/* ── Individual card ── */
.vsg-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border);
    transition: transform 0.45s var(--ease),
                border-color 0.35s ease,
                box-shadow 0.45s var(--ease);
    aspect-ratio: 16 / 10;   /* taller than old bento — real thumbnail feel */
}
.vsg-card:hover {
    transform: translateY(-10px) scale(1.015);
    border-color: var(--gold);
    box-shadow: 0 32px 64px rgba(0,0,0,0.6),
                0 0 0 1px var(--gold),
                0 0 40px -8px var(--gold-glow);
}

/* ── Thumb / video wrapper ── */
.vsg-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* ── The video itself ── */
.vsg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Smooth crossfade when video starts playing over the poster */
    transition: opacity 0.5s ease;
}

/* ── Overlay gradient + info ── */
.vsg-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.6rem;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.92) 0%,
        rgba(0,0,0,0.35) 50%,
        rgba(0,0,0,0.0) 100%
    );
    z-index: 2;
    pointer-events: none; /* card itself is clickable */
}

/* Category tag — top-left */
.vsg-tag {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--gold);
    background: rgba(0,0,0,0.55);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(212, 212, 220,0.3);
}

/* Central play button — visible on non-touch, fades on hover-video-playing */
.vsg-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, transform 0.4s var(--ease);
}
.vsg-play-btn svg {
    width: 52px;
    height: 52px;
    color: #fff;
    filter: drop-shadow(0 0 14px rgba(212, 212, 220,0.7));
    background: rgba(212, 212, 220,0.15);
    border-radius: 50%;
    padding: 10px;
    border: 1.5px solid rgba(212, 212, 220,0.5);
    transition: background 0.3s ease, transform 0.3s var(--ease);
}
.vsg-card:hover .vsg-play-btn svg {
    background: rgba(212, 212, 220,0.3);
    transform: scale(1.12);
}
/* Hide play btn while card is previewing video (JS adds .is-previewing) */
.vsg-card.is-previewing .vsg-play-btn {
    opacity: 0;
    transform: scale(0.8);
}

/* Bottom meta: title + hint */
.vsg-meta {
    position: relative;
    z-index: 3;
    pointer-events: none;
}
.vsg-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.3rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}
.vsg-card:hover .vsg-title { color: var(--gold); }

.vsg-hint {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    transform: translateY(6px);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s var(--ease);
}
.vsg-card:hover .vsg-hint {
    opacity: 1;
    transform: translateY(0);
}

/* Gold shimmer reveal border on card entry */
.vsg-card.reveal.visible {
    animation: vsg-border-pulse 0.8s var(--ease) forwards;
    animation-delay: calc(var(--card-i, 0) * 80ms);
}
@keyframes vsg-border-pulse {
    0%   { border-color: var(--gold); box-shadow: 0 0 20px -4px var(--gold-glow); }
    100% { border-color: var(--border); box-shadow: none; }
}

/* ═══════════════════════════════════════════════
   VIDEO LIGHTBOX MODAL
   ═══════════════════════════════════════════════ */

.vsg-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Animation */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.vsg-lightbox:not([hidden]) {
    opacity: 1;
    pointer-events: all;
}
/* Keep the element in the accessibility tree but invisible when hidden  */
.vsg-lightbox[hidden] {
    display: flex !important; /* override UA hidden */
    visibility: hidden;
}

.vsg-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}

.vsg-lightbox-inner {
    position: relative;
    width: min(90vw, 1100px);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    z-index: 1;
    transform: translateY(24px) scale(0.97);
    transition: transform 0.4s var(--ease);
}
.vsg-lightbox:not([hidden]) .vsg-lightbox-inner {
    transform: translateY(0) scale(1);
}

/* Close button */
.vsg-lightbox-close {
    position: absolute;
    top: -3rem;
    right: 0;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--border-hover);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    padding: 0;
}
.vsg-lightbox-close svg { width: 18px; height: 18px; }
.vsg-lightbox-close:hover {
    background: rgba(212, 212, 220,0.2);
    border-color: var(--gold);
    transform: rotate(90deg);
}

/* Title bar */
.vsg-lightbox-title-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.vsg-lightbox-tag {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--gold);
    background: rgba(212, 212, 220,0.12);
    border: 1px solid rgba(212, 212, 220,0.3);
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
}
.vsg-lightbox-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

/* The full video player */
.vsg-lightbox-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    background: #000;
    display: block;
    border: 1px solid var(--border);
    box-shadow: 0 40px 80px rgba(0,0,0,0.7),
                0 0 0 1px rgba(212, 212, 220,0.15);
}

@media (max-width: 1024px) {

    .container { padding: 0 7vw; }
    .meet-section { grid-template-columns: 1fr; gap: 40px; padding: 100px 0; }
    .meet-image-container { order: -1; max-width: 500px; margin: 0 auto; }
    .insight-container { flex-direction: column; gap: 40px; }
    .footer-stats { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    /* VSG: 2-column on tablet */
    .vsg-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav { width: 95%; padding: 0 1.5rem; top: 1rem; }
    .nav-links, .nav-cta-container { display: none; }
    .nav-toggle { display: flex; }
    
    .hero { padding-top: 150px; text-align: left; }
    .hero-title { font-size: 3rem; }
    .hero-desc { margin: 0 0 2rem; }
    .hero-actions { flex-direction: column; width: 100%; gap: 1rem; }
    .btn-primary, .btn-secondary { width: 100%; text-align: center; }
    
    .section-title { font-size: 2.5rem; }
    
    .projects-bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .project-card-bento { height: 400px; grid-column: span 1 !important; grid-row: span 1 !important; }
    /* VSG: single column on mobile */
    .vsg-grid { grid-template-columns: 1fr; gap: 16px; }
    .vsg-card { aspect-ratio: 16 / 9; }
    /* Lightbox: tighter on mobile */
    .vsg-lightbox-inner { width: 95vw; }
    .vsg-lightbox-close { top: -2.5rem; }
    
    .toolkit-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    
    .footer { flex-direction: column; gap: 1rem; text-align: center; padding: 3rem 0; }
    
    #experience .glass-card { padding: 1.5rem; flex-direction: column; align-items: flex-start; }
    #experience .glass-card p { max-width: 100%; margin-top: 0.5rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.5rem; }
    .toolkit-grid { grid-template-columns: 1fr; }
    .footer-stats { grid-template-columns: 1fr; }
}

/* ─── App Icon Grid ─── */
.app-icon-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem 4rem;
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.app-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    width: 80px;
}

.app-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4), inset 0 1px 1px rgba(255,255,255,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.app-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.3) 50%, 
        rgba(255,255,255,0) 100%
    );
    transform: translateX(-100%) rotate(20deg);
    transition: transform 0.6s ease;
    pointer-events: none;
    z-index: 2;
}

.app-icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    position: relative;
    z-index: 1;
}

.app-icon-wrapper:hover .app-icon {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px var(--glow, rgba(0,0,0,0.3)), inset 0 1px 1px rgba(255,255,255,0.3);
}

.app-icon-wrapper:hover .app-icon::before {
    transform: translateX(100%) rotate(20deg);
}

@keyframes iconWiggle {
    0% { transform: rotate(0); }
    30% { transform: rotate(-6deg); }
    60% { transform: rotate(6deg); }
    100% { transform: rotate(0); }
}

.app-icon-wrapper:hover .app-icon img {
    animation: iconWiggle 0.4s ease forwards;
}

/* Staggered Pop-in Reveal */
.app-icon-wrapper.reveal {
    opacity: 0;
}

.app-icon-wrapper.reveal.visible {
    animation: appIconBounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes appIconBounce {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-8deg);
    }
    60% {
        opacity: 1;
        transform: scale(1.08) rotate(2deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.app-icon-wrapper:nth-child(1).reveal.visible { animation-delay: 0ms; }
.app-icon-wrapper:nth-child(2).reveal.visible { animation-delay: 80ms; }
.app-icon-wrapper:nth-child(3).reveal.visible { animation-delay: 160ms; }
.app-icon-wrapper:nth-child(4).reveal.visible { animation-delay: 240ms; }
.app-icon-wrapper:nth-child(5).reveal.visible { animation-delay: 320ms; }
.app-icon-wrapper:nth-child(6).reveal.visible { animation-delay: 400ms; }

.app-icon-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    opacity: 0.8;
    text-align: center;
    font-weight: 500;
    transform: translateY(0);
    transition: opacity 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.app-icon-wrapper:hover .app-icon-label {
    opacity: 1;
    color: var(--text-light);
    transform: translateY(-2px);
}


@media (max-width: 600px) {
    .app-icon-grid {
        gap: 2rem 2.5rem;
    }
    .app-icon {
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }
    .app-icon img {
        width: 38px;
        height: 38px;
    }
}


