/* ============================================
   DESIGN SYSTEM — Renaissance Portfolio
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* --- Custom Properties --- */
:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-tertiary: #1a1a24;
    --bg-card: #15151f;

    --accent: #c9a84c;
    --accent-light: #e8d5a3;
    --accent-glow: rgba(201, 168, 76, 0.25);
    --accent-dim: rgba(201, 168, 76, 0.08);

    --text-primary: #f5f0e8;
    --text-secondary: rgba(245, 240, 232, 0.65);
    --text-tertiary: rgba(245, 240, 232, 0.35);

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-bg-hover: rgba(255, 255, 255, 0.07);

    --white-10: rgba(255, 255, 255, 0.1);
    --white-05: rgba(255, 255, 255, 0.05);

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --fs-display: clamp(3.5rem, 8vw, 9rem);
    --fs-h1: clamp(2.5rem, 5vw, 5rem);
    --fs-h2: clamp(2rem, 4vw, 3.5rem);
    --fs-h3: clamp(1.25rem, 2vw, 1.75rem);
    --fs-body: clamp(1rem, 1.2vw, 1.125rem);
    --fs-body-lg: clamp(1.125rem, 1.5vw, 1.375rem);
    --fs-small: clamp(0.8rem, 1vw, 0.875rem);
    --fs-label: 0.75rem;

    --lh-tight: 0.95;
    --lh-snug: 1.15;
    --lh-normal: 1.6;

    --ls-tight: -0.03em;
    --ls-normal: -0.01em;
    --ls-wide: 0.08em;

    /* Spacing */
    --section-pad-y: clamp(80px, 12vh, 180px);
    --section-pad-x: clamp(20px, 5vw, 80px);
    --gap-sm: clamp(8px, 1vw, 12px);
    --gap-md: clamp(16px, 2vw, 24px);
    --gap-lg: clamp(32px, 4vw, 64px);
    --gap-xl: clamp(48px, 6vw, 96px);

    /* Layout */
    --max-width: 1400px;
    --nav-height: 60px;

    /* Animation */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration-fast: 0.3s;
    --duration-normal: 0.6s;
    --duration-slow: 1s;
    --duration-xslow: 1.6s;

    /* Misc */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 999px;

    --cursor-size: 12px;
    --cursor-follower-size: 40px;
}

/* Final project showcase: vertical, calm, no horizontal motion */
@media (min-width: 1025px) {
    .projects.vanilla-projects {
        height: auto !important;
        min-height: auto !important;
        padding: clamp(118px, 14vh, 170px) var(--section-pad-x) clamp(120px, 15vh, 190px) !important;
        overflow: visible !important;
        background:
            radial-gradient(circle at 82% 8%, rgba(242, 210, 154, 0.12), transparent 24%),
            linear-gradient(180deg, #08080d 0%, #11100f 42%, #07070b 100%) !important;
    }

    .projects.vanilla-projects::before {
        content: "SELECTED WORK" !important;
        top: clamp(90px, 11vw, 160px) !important;
        right: -0.12em !important;
        left: auto !important;
        font-size: clamp(5.8rem, 15vw, 16rem) !important;
        color: rgba(255, 255, 255, 0.025) !important;
        transform: translateY(var(--work-index-y, 0px)) !important;
    }

    .projects.vanilla-projects::after {
        display: none !important;
    }

    .projects.vanilla-projects .projects-header {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        z-index: 3 !important;
        max-width: var(--max-width) !important;
        margin: 0 auto clamp(76px, 9vw, 130px) !important;
        pointer-events: auto !important;
        mix-blend-mode: normal !important;
    }

    .projects.vanilla-projects .projects-title {
        font-size: clamp(4.4rem, 8.8vw, 9.5rem) !important;
        line-height: 0.86 !important;
        color: rgba(255, 255, 255, 0.94) !important;
    }

    .projects.vanilla-projects .projects-count {
        font-size: clamp(4.4rem, 9vw, 9rem) !important;
        color: rgba(242, 210, 154, 0.34) !important;
    }

    .projects.vanilla-projects .projects-track-wrapper {
        position: relative !important;
        top: auto !important;
        width: 100% !important;
        max-width: var(--max-width) !important;
        height: auto !important;
        margin: 0 auto !important;
        overflow: visible !important;
    }

    .projects.vanilla-projects .projects-track {
        position: relative !important;
        display: grid !important;
        gap: clamp(92px, 12vw, 165px) !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        transform: none !important;
    }

    .projects.vanilla-projects .project-card,
    .projects.vanilla-projects .project-card:nth-child(even),
    .projects.vanilla-projects .project-card.project-inspire,
    .projects.vanilla-projects .project-card.project-sajilo {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: clamp(650px, 84vh, 850px) !important;
        padding: clamp(34px, 4.2vw, 70px) 0 !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(390px, 0.58fr) !important;
        gap: clamp(34px, 5vw, 86px) !important;
        align-items: center !important;
        opacity: 1;
        visibility: visible;
        overflow: visible !important;
        clip-path: none !important;
    }

    .projects.vanilla-projects .project-card::before,
    .projects.vanilla-projects .project-card:nth-child(even)::before,
    .projects.vanilla-projects .project-inspire::before,
    .projects.vanilla-projects .project-sajilo::before {
        inset: clamp(22px, 4vh, 46px) 3.5% clamp(22px, 4vh, 46px) 7% !important;
        border: 1px solid rgba(242, 210, 154, 0.17) !important;
        background:
            linear-gradient(120deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.014)),
            rgba(255, 255, 255, 0.018) !important;
        transform: skewX(-2.5deg) !important;
    }

    .projects.vanilla-projects .project-card-image,
    .projects.vanilla-projects .project-lab-visual,
    .projects.vanilla-projects .project-card:nth-child(even) .project-card-image,
    .projects.vanilla-projects .project-card:nth-child(even) .project-lab-visual,
    .projects.vanilla-projects .project-card.project-inspire .project-card-image,
    .projects.vanilla-projects .project-card.project-sajilo .project-card-image {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 100% !important;
        height: min(64vh, 640px) !important;
        min-height: 430px !important;
        margin: 0 !important;
        clip-path: polygon(0 0, 98% 0, 100% 100%, 0 100%) !important;
        transform: none;
        border: 1px solid rgba(242, 210, 154, 0.22) !important;
    }

    .projects.vanilla-projects .project-card-content,
    .projects.vanilla-projects .project-card:nth-child(even) .project-card-content,
    .projects.vanilla-projects .project-card.project-inspire .project-card-content,
    .projects.vanilla-projects .project-card.project-sajilo .project-card-content {
        grid-column: 2 !important;
        grid-row: 1 !important;
        width: 100% !important;
        padding: clamp(30px, 3.4vw, 54px) !important;
        border: 1px solid rgba(255, 255, 255, 0.09) !important;
        border-left: 1px solid rgba(242, 210, 154, 0.72) !important;
        transform: none;
    }

    .projects.vanilla-projects .project-card-title,
    .projects.vanilla-projects .project-card.project-inspire .project-card-title,
    .projects.vanilla-projects .project-card.project-sajilo .project-card-title {
        max-width: 10.5ch !important;
        font-size: clamp(3rem, 5vw, 6rem) !important;
        line-height: 0.92 !important;
        letter-spacing: 0 !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }

    .projects.vanilla-projects .project-card-desc {
        max-width: 520px !important;
        font-size: clamp(1rem, 1.14vw, 1.18rem) !important;
        line-height: 1.6 !important;
    }

    .projects.vanilla-projects .projects-scroll-rail {
        position: sticky !important;
        top: 28vh !important;
        left: auto !important;
        right: auto !important;
        width: 1px !important;
        height: 44vh !important;
        margin: 0 0 -44vh clamp(4px, 1.2vw, 16px) !important;
    }

    .projects.vanilla-projects .projects-scroll-fill {
        transform: scaleY(0);
        transform-origin: center top;
        background: linear-gradient(180deg, rgba(242, 210, 154, 0.15), rgba(242, 210, 154, 0.95), rgba(255, 255, 255, 0.76));
    }
}

/* ============================================
   CODEX PROJECT SHOWCASE DESIGN LOCK
   Keeps the premium art-gallery direction while preventing captions
   from covering the project screenshots.
   ============================================ */
@media (min-width: 1025px) {
    .projects.vanilla-projects {
        position: relative !important;
        display: block !important;
        height: auto !important;
        min-height: auto !important;
        padding: clamp(112px, 13vh, 168px) var(--section-pad-x) clamp(128px, 16vh, 210px) !important;
        overflow: visible !important;
        background:
            radial-gradient(circle at 78% 8%, rgba(242, 210, 154, 0.11), transparent 24%),
            radial-gradient(circle at 10% 55%, rgba(86, 70, 45, 0.16), transparent 34%),
            linear-gradient(180deg, #08080d 0%, #11100f 46%, #07070b 100%) !important;
    }

    .projects.vanilla-projects::before {
        content: "SELECTED WORK" !important;
        position: absolute !important;
        top: clamp(88px, 10vw, 152px) !important;
        right: -0.14em !important;
        left: auto !important;
        z-index: 0 !important;
        font-family: var(--font-heading) !important;
        font-size: clamp(6rem, 15vw, 16rem) !important;
        line-height: 0.78 !important;
        color: rgba(255, 255, 255, 0.024) !important;
        white-space: nowrap !important;
        pointer-events: none !important;
        transform: translateY(var(--work-index-y, 0px)) !important;
    }

    .projects.vanilla-projects::after {
        display: none !important;
    }

    .projects.vanilla-projects .projects-header {
        position: relative !important;
        inset: auto !important;
        z-index: 3 !important;
        max-width: var(--max-width) !important;
        margin: 0 auto clamp(72px, 8vw, 124px) !important;
        mix-blend-mode: normal !important;
        pointer-events: auto !important;
    }

    .projects.vanilla-projects .projects-title {
        max-width: 8ch !important;
        font-size: clamp(4.6rem, 8.8vw, 9.6rem) !important;
        line-height: 0.86 !important;
        letter-spacing: 0 !important;
        color: rgba(255, 255, 255, 0.94) !important;
    }

    .projects.vanilla-projects .projects-count {
        font-size: clamp(4.4rem, 8.8vw, 9rem) !important;
        color: rgba(242, 210, 154, 0.34) !important;
    }

    .projects.vanilla-projects .projects-track-wrapper,
    .projects.vanilla-projects .projects-track {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        max-width: var(--max-width) !important;
        height: auto !important;
        margin: 0 auto !important;
        overflow: visible !important;
        transform: none !important;
    }

    .projects.vanilla-projects .projects-track {
        display: grid !important;
        gap: clamp(100px, 13vw, 180px) !important;
        perspective: 1400px !important;
    }

    .projects.vanilla-projects .project-card,
    .projects.vanilla-projects .project-card:nth-child(even),
    .projects.vanilla-projects .project-card.project-inspire,
    .projects.vanilla-projects .project-card.project-sajilo,
    .projects.vanilla-projects .project-card.project-suresh,
    .projects.vanilla-projects .project-card.project-skin,
    .projects.vanilla-projects .project-card.project-book {
        position: relative !important;
        inset: auto !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        display: grid !important;
        grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
        gap: clamp(24px, 3.8vw, 56px) !important;
        align-items: center !important;
        width: 100% !important;
        height: auto !important;
        min-height: clamp(640px, 82vh, 850px) !important;
        padding: clamp(30px, 4vw, 68px) 0 !important;
        overflow: visible !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        isolation: isolate !important;
        clip-path: none !important;
    }

    .projects.vanilla-projects .project-card::before,
    .projects.vanilla-projects .project-card:nth-child(even)::before,
    .projects.vanilla-projects .project-inspire::before,
    .projects.vanilla-projects .project-sajilo::before {
        content: "" !important;
        position: absolute !important;
        inset: clamp(20px, 3.5vh, 44px) 4% clamp(20px, 3.5vh, 44px) 6% !important;
        z-index: -1 !important;
        border: 1px solid rgba(242, 210, 154, 0.18) !important;
        background:
            linear-gradient(120deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
            rgba(255, 255, 255, 0.018) !important;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.026), 0 54px 150px rgba(0, 0, 0, 0.36) !important;
        transform: skewX(-2.4deg) !important;
    }

    .projects.vanilla-projects .project-card::after,
    .projects.vanilla-projects .project-card:nth-child(even)::after {
        left: clamp(0px, 0.5vw, 8px) !important;
        right: auto !important;
        bottom: clamp(68px, 9vh, 112px) !important;
        z-index: 5 !important;
        opacity: 0.72 !important;
    }

    .projects.vanilla-projects .project-card-image,
    .projects.vanilla-projects .project-lab-visual {
        position: relative !important;
        grid-column: 1 / 8 !important;
        grid-row: 1 !important;
        justify-self: stretch !important;
        width: 100% !important;
        height: min(64vh, 640px) !important;
        min-height: 420px !important;
        margin: 0 !important;
        overflow: hidden !important;
        border: 1px solid rgba(242, 210, 154, 0.22) !important;
        background:
            radial-gradient(circle at 24% 18%, rgba(242, 210, 154, 0.12), transparent 32%),
            linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.016)),
            #08080d !important;
        box-shadow: 0 52px 140px rgba(0, 0, 0, 0.5), 0 0 70px rgba(202, 168, 106, 0.06) !important;
        clip-path: polygon(0 0, 97.5% 0, 100% 100%, 0 100%) !important;
        transform: rotate(-0.45deg) translateY(-6px) !important;
        z-index: 1 !important;
    }

    .projects.vanilla-projects .project-card-content {
        position: relative !important;
        grid-column: 9 / 13 !important;
        grid-row: 1 !important;
        justify-self: stretch !important;
        align-self: center !important;
        width: 100% !important;
        max-width: none !important;
        min-height: auto !important;
        padding: clamp(28px, 3.2vw, 52px) !important;
        border: 1px solid rgba(255, 255, 255, 0.09) !important;
        border-left: 1px solid rgba(242, 210, 154, 0.74) !important;
        border-right: 1px solid rgba(255, 255, 255, 0.09) !important;
        background:
            linear-gradient(135deg, rgba(9, 9, 14, 0.97), rgba(9, 9, 14, 0.86) 64%, rgba(42, 34, 23, 0.54)),
            rgba(9, 9, 14, 0.9) !important;
        box-shadow: 0 36px 110px rgba(0, 0, 0, 0.38), 0 0 55px rgba(202, 168, 106, 0.07) !important;
        backdrop-filter: blur(20px) saturate(1.08) !important;
        transform: none !important;
        z-index: 4 !important;
    }

    .projects.vanilla-projects .project-card:nth-child(even) .project-card-image,
    .projects.vanilla-projects .project-card:nth-child(even) .project-lab-visual,
    .projects.vanilla-projects .project-card.project-inspire .project-card-image,
    .projects.vanilla-projects .project-card.project-sajilo .project-card-image {
        grid-column: 6 / 13 !important;
        clip-path: polygon(2.5% 0, 100% 0, 100% 100%, 0 100%) !important;
        transform: rotate(0.45deg) translateY(-6px) !important;
    }

    .projects.vanilla-projects .project-card:nth-child(even) .project-card-content,
    .projects.vanilla-projects .project-card.project-inspire .project-card-content,
    .projects.vanilla-projects .project-card.project-sajilo .project-card-content {
        grid-column: 1 / 5 !important;
        border-left: 1px solid rgba(255, 255, 255, 0.09) !important;
        border-right: 1px solid rgba(242, 210, 154, 0.74) !important;
    }

    .projects.vanilla-projects .project-card-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
        filter: saturate(1.06) contrast(1.04) brightness(0.94) !important;
        transform: none !important;
    }

    .projects.vanilla-projects .project-card.project-inspire .project-card-image img,
    .projects.vanilla-projects .project-card.project-sajilo .project-card-image img {
        object-fit: contain !important;
        object-position: center center !important;
    }

    .projects.vanilla-projects .project-card-title,
    .projects.vanilla-projects .project-card.project-inspire .project-card-title,
    .projects.vanilla-projects .project-card.project-sajilo .project-card-title {
        max-width: 9.8ch !important;
        margin-bottom: clamp(18px, 2vw, 28px) !important;
        font-size: clamp(2.7rem, 4.8vw, 5.7rem) !important;
        line-height: 0.92 !important;
        letter-spacing: 0 !important;
        color: rgba(255, 250, 240, 0.96) !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
        text-wrap: balance !important;
    }

    .projects.vanilla-projects .project-card-desc {
        max-width: 520px !important;
        font-size: clamp(0.98rem, 1.08vw, 1.16rem) !important;
        line-height: 1.62 !important;
        color: rgba(255, 255, 255, 0.68) !important;
    }

    .projects.vanilla-projects .project-card-tags {
        gap: 10px !important;
        margin-bottom: clamp(24px, 2.4vw, 36px) !important;
    }

    .projects.vanilla-projects .project-tag {
        border-color: rgba(242, 210, 154, 0.38) !important;
        background: rgba(0, 0, 0, 0.18) !important;
        color: rgba(242, 210, 154, 0.88) !important;
    }

    .projects.vanilla-projects .project-card-number,
    .projects.vanilla-projects .project-card.project-inspire .project-card-number,
    .projects.vanilla-projects .project-card.project-sajilo .project-card-number {
        top: auto !important;
        right: clamp(34px, 5vw, 82px) !important;
        bottom: clamp(22px, 4vh, 48px) !important;
        left: auto !important;
        z-index: 0 !important;
        font-size: clamp(8rem, 17vw, 18rem) !important;
        line-height: 0.72 !important;
        color: rgba(255, 255, 255, 0.043) !important;
        transform: none !important;
    }

    .projects.vanilla-projects .project-card:nth-child(even) .project-card-number,
    .projects.vanilla-projects .project-card.project-inspire .project-card-number,
    .projects.vanilla-projects .project-card.project-sajilo .project-card-number {
        left: clamp(34px, 5vw, 82px) !important;
        right: auto !important;
    }

    .projects.vanilla-projects .projects-scroll-rail {
        position: sticky !important;
        top: 28vh !important;
        left: auto !important;
        right: auto !important;
        z-index: 8 !important;
        width: 1px !important;
        height: 44vh !important;
        margin: 0 0 -44vh clamp(4px, 1.2vw, 16px) !important;
        background: rgba(255, 255, 255, 0.1) !important;
        transform: none !important;
    }

    .projects.vanilla-projects .projects-scroll-fill {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        transform: scaleY(0);
        transform-origin: center top !important;
        background: linear-gradient(180deg, rgba(242, 210, 154, 0.15), rgba(242, 210, 154, 0.95), rgba(255, 255, 255, 0.76)) !important;
        box-shadow: 0 0 22px rgba(242, 210, 154, 0.42) !important;
    }
}

@media (min-width: 1025px) and (max-width: 1240px) {

    .projects.vanilla-projects .project-card,
    .projects.vanilla-projects .project-card:nth-child(even) {
        grid-template-columns: repeat(10, minmax(0, 1fr)) !important;
    }

    .projects.vanilla-projects .project-card-image,
    .projects.vanilla-projects .project-lab-visual {
        grid-column: 1 / 7 !important;
    }

    .projects.vanilla-projects .project-card-content {
        grid-column: 7 / 11 !important;
    }

    .projects.vanilla-projects .project-card:nth-child(even) .project-card-image,
    .projects.vanilla-projects .project-card:nth-child(even) .project-lab-visual,
    .projects.vanilla-projects .project-card.project-inspire .project-card-image,
    .projects.vanilla-projects .project-card.project-sajilo .project-card-image {
        grid-column: 5 / 11 !important;
    }

    .projects.vanilla-projects .project-card:nth-child(even) .project-card-content,
    .projects.vanilla-projects .project-card.project-inspire .project-card-content,
    .projects.vanilla-projects .project-card.project-sajilo .project-card-content {
        grid-column: 1 / 5 !important;
    }
}

@media (max-width: 1024px) {
    .projects.vanilla-projects {
        height: auto !important;
        min-height: auto !important;
        padding: clamp(84px, 12vh, 124px) var(--section-pad-x) clamp(96px, 12vh, 140px) !important;
        overflow: hidden !important;
    }

    .projects.vanilla-projects .projects-header,
    .projects.vanilla-projects .projects-track-wrapper,
    .projects.vanilla-projects .projects-track {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        height: auto !important;
        max-width: var(--max-width) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        overflow: visible !important;
        transform: none !important;
    }

    .projects.vanilla-projects .projects-track {
        display: grid !important;
        gap: clamp(56px, 9vw, 92px) !important;
    }

    .projects.vanilla-projects .project-card,
    .projects.vanilla-projects .project-card:nth-child(even),
    .projects.vanilla-projects .project-card.project-inspire,
    .projects.vanilla-projects .project-card.project-sajilo {
        position: relative !important;
        inset: auto !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        padding: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        overflow: visible !important;
    }

    .projects.vanilla-projects .project-card-image,
    .projects.vanilla-projects .project-lab-visual,
    .projects.vanilla-projects .project-card:nth-child(even) .project-card-image,
    .projects.vanilla-projects .project-card:nth-child(even) .project-lab-visual,
    .projects.vanilla-projects .project-card.project-inspire .project-card-image,
    .projects.vanilla-projects .project-card.project-sajilo .project-card-image {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 16 / 10 !important;
        clip-path: none !important;
        transform: none !important;
    }

    .projects.vanilla-projects .project-card-content,
    .projects.vanilla-projects .project-card:nth-child(even) .project-card-content,
    .projects.vanilla-projects .project-card.project-inspire .project-card-content,
    .projects.vanilla-projects .project-card.project-sajilo .project-card-content {
        grid-column: 1 !important;
        grid-row: 2 !important;
        width: calc(100% - 24px) !important;
        margin: -18px auto 0 !important;
        padding: clamp(24px, 7vw, 36px) !important;
        border: 1px solid rgba(242, 210, 154, 0.24) !important;
        transform: none !important;
        z-index: 4 !important;
    }

    .projects.vanilla-projects .projects-scroll-rail {
        display: none !important;
    }
}

/* Premium vertical project showcase */
@media (min-width: 1025px) {
    .projects.vanilla-projects {
        height: auto !important;
        min-height: auto !important;
        padding: clamp(118px, 14vh, 170px) var(--section-pad-x) clamp(120px, 15vh, 190px) !important;
        overflow: visible !important;
        background:
            radial-gradient(circle at 82% 8%, rgba(242, 210, 154, 0.12), transparent 24%),
            linear-gradient(180deg, #08080d 0%, #11100f 42%, #07070b 100%) !important;
    }

    .projects.vanilla-projects::before {
        content: "SELECTED WORK" !important;
        position: absolute;
        top: clamp(90px, 11vw, 160px);
        right: -0.12em;
        left: auto;
        z-index: 0;
        font-family: var(--font-heading);
        font-size: clamp(5.8rem, 15vw, 16rem);
        line-height: 0.78;
        color: rgba(255, 255, 255, 0.025);
        transform: translateY(var(--work-index-y, 0px));
        white-space: nowrap;
        pointer-events: none;
    }

    .projects.vanilla-projects::after {
        display: none !important;
    }

    .projects.vanilla-projects .projects-header {
        position: relative !important;
        top: auto !important;
        left: auto;
        right: auto;
        z-index: 3;
        max-width: var(--max-width);
        margin: 0 auto clamp(76px, 9vw, 130px) !important;
        pointer-events: auto;
        mix-blend-mode: normal;
    }

    .projects.vanilla-projects .projects-title {
        font-size: clamp(4.4rem, 8.8vw, 9.5rem);
        line-height: 0.86;
        color: rgba(255, 255, 255, 0.94);
    }

    .projects.vanilla-projects .projects-count {
        font-size: clamp(4.4rem, 9vw, 9rem);
        color: rgba(242, 210, 154, 0.34);
    }

    .projects.vanilla-projects .projects-track-wrapper {
        position: relative !important;
        top: auto !important;
        z-index: 2;
        width: 100% !important;
        max-width: var(--max-width) !important;
        height: auto !important;
        margin: 0 auto !important;
        overflow: visible !important;
    }

    .projects.vanilla-projects .projects-track {
        position: relative !important;
        display: grid !important;
        gap: clamp(92px, 12vw, 165px) !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        perspective: 1400px !important;
    }

    .projects.vanilla-projects .project-card,
    .projects.vanilla-projects .project-card:nth-child(even),
    .projects.vanilla-projects .project-card.project-inspire,
    .projects.vanilla-projects .project-card.project-sajilo {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: clamp(650px, 84vh, 850px) !important;
        padding: clamp(34px, 4.2vw, 70px) 0 !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(390px, 0.58fr) !important;
        gap: clamp(34px, 5vw, 86px) !important;
        align-items: center !important;
        opacity: 1;
        visibility: visible;
        overflow: visible !important;
        pointer-events: auto !important;
        isolation: isolate;
        transform: none;
        clip-path: none !important;
    }

    .projects.vanilla-projects .project-card::before,
    .projects.vanilla-projects .project-card:nth-child(even)::before,
    .projects.vanilla-projects .project-inspire::before,
    .projects.vanilla-projects .project-sajilo::before {
        inset: clamp(22px, 4vh, 46px) 3.5% clamp(22px, 4vh, 46px) 7% !important;
        z-index: -1 !important;
        border: 1px solid rgba(242, 210, 154, 0.17) !important;
        background:
            linear-gradient(120deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.014)),
            rgba(255, 255, 255, 0.018) !important;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.028), 0 54px 150px rgba(0, 0, 0, 0.36) !important;
        transform: skewX(-2.5deg) !important;
    }

    .projects.vanilla-projects .project-card::after,
    .projects.vanilla-projects .project-card:nth-child(even)::after {
        left: clamp(0px, 0.5vw, 8px) !important;
        right: auto !important;
        bottom: clamp(70px, 9vh, 112px) !important;
        z-index: 5 !important;
        opacity: 0.76;
    }

    .projects.vanilla-projects .project-card-image,
    .projects.vanilla-projects .project-lab-visual,
    .projects.vanilla-projects .project-card:nth-child(even) .project-card-image,
    .projects.vanilla-projects .project-card:nth-child(even) .project-lab-visual,
    .projects.vanilla-projects .project-card.project-inspire .project-card-image,
    .projects.vanilla-projects .project-card.project-sajilo .project-card-image {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 100% !important;
        height: min(64vh, 640px) !important;
        min-height: 430px !important;
        aspect-ratio: auto !important;
        margin: 0 !important;
        clip-path: polygon(0 0, 98% 0, 100% 100%, 0 100%) !important;
        transform: none;
        border: 1px solid rgba(242, 210, 154, 0.22) !important;
        background:
            radial-gradient(circle at 24% 18%, rgba(242, 210, 154, 0.12), transparent 32%),
            linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.016)),
            #08080d !important;
        box-shadow: 0 52px 140px rgba(0, 0, 0, 0.5), 0 0 70px rgba(202, 168, 106, 0.06) !important;
    }

    .projects.vanilla-projects .project-card-image img,
    .projects.vanilla-projects .project-card.project-inspire .project-card-image img,
    .projects.vanilla-projects .project-card.project-sajilo .project-card-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center center !important;
        filter: saturate(1.06) contrast(1.04) brightness(0.94) !important;
        transform: none !important;
    }

    .projects.vanilla-projects .project-card-content,
    .projects.vanilla-projects .project-card:nth-child(even) .project-card-content,
    .projects.vanilla-projects .project-card.project-inspire .project-card-content,
    .projects.vanilla-projects .project-card.project-sajilo .project-card-content {
        grid-column: 2 !important;
        grid-row: 1 !important;
        justify-self: stretch !important;
        align-self: center !important;
        width: 100% !important;
        min-height: auto !important;
        padding: clamp(30px, 3.4vw, 54px) !important;
        border: 1px solid rgba(255, 255, 255, 0.09) !important;
        border-left: 1px solid rgba(242, 210, 154, 0.72) !important;
        background:
            linear-gradient(135deg, rgba(9, 9, 14, 0.96), rgba(9, 9, 14, 0.84) 62%, rgba(42, 34, 23, 0.58)),
            rgba(9, 9, 14, 0.88) !important;
        box-shadow: 0 36px 110px rgba(0, 0, 0, 0.38), 0 0 55px rgba(202, 168, 106, 0.07) !important;
        backdrop-filter: blur(20px) saturate(1.08) !important;
        transform: none;
        z-index: 4 !important;
    }

    .projects.vanilla-projects .project-card-title,
    .projects.vanilla-projects .project-card.project-inspire .project-card-title,
    .projects.vanilla-projects .project-card.project-sajilo .project-card-title {
        max-width: 10.5ch !important;
        font-size: clamp(3rem, 5vw, 6rem) !important;
        line-height: 0.92 !important;
        letter-spacing: 0 !important;
        margin-bottom: clamp(18px, 2vw, 28px) !important;
        overflow-wrap: normal;
        word-break: normal;
        text-wrap: balance;
    }

    .projects.vanilla-projects .project-card-desc {
        max-width: 520px;
        font-size: clamp(1rem, 1.14vw, 1.18rem);
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.68);
    }

    .projects.vanilla-projects .project-card-number,
    .projects.vanilla-projects .project-card.project-inspire .project-card-number,
    .projects.vanilla-projects .project-card.project-sajilo .project-card-number {
        top: auto !important;
        right: clamp(34px, 5vw, 82px) !important;
        bottom: clamp(24px, 4vh, 48px) !important;
        z-index: 0 !important;
        font-size: clamp(8rem, 17vw, 18rem) !important;
        color: rgba(255, 255, 255, 0.045) !important;
    }

    .projects.vanilla-projects .projects-scroll-rail {
        position: sticky !important;
        top: 28vh !important;
        left: auto;
        right: auto;
        z-index: 8;
        width: 1px !important;
        height: 44vh !important;
        margin: 0 0 -44vh clamp(4px, 1.2vw, 16px) !important;
        background: rgba(255, 255, 255, 0.1) !important;
        transform: none !important;
    }

    .projects.vanilla-projects .projects-scroll-fill {
        display: block;
        width: 100%;
        height: 100%;
        transform: scaleY(0);
        transform-origin: center top;
        background: linear-gradient(180deg, rgba(242, 210, 154, 0.15), rgba(242, 210, 154, 0.95), rgba(255, 255, 255, 0.76));
        box-shadow: 0 0 22px rgba(242, 210, 154, 0.42);
    }
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: auto;
    /* Lenis handles smooth scroll */
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: var(--lh-normal);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    cursor: none;
    /* Hide default cursor */
}

/* For users without JS or who want default cursor */
@media (pointer: coarse) {
    body {
        cursor: auto;
    }

    .cursor,
    .cursor-follower {
        display: none !important;
    }
}

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--duration-fast) ease;
}

a:hover {
    color: var(--accent-light);
}

::selection {
    background: var(--accent);
    color: var(--bg-primary);
}

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 24px;
    transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-text {
    font-family: var(--font-heading);
    font-size: var(--fs-h3);
    color: var(--accent);
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
}

.preloader-bar {
    width: 200px;
    height: 2px;
    background: var(--white-10);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.preloader-bar-inner {
    position: absolute;
    inset: 0;
    background: var(--accent);
    border-radius: var(--radius-full);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.4s var(--ease-out-expo);
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor {
    position: fixed;
    width: var(--cursor-size);
    height: var(--cursor-size);
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-out-expo),
        height 0.3s var(--ease-out-expo),
        background 0.3s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    position: fixed;
    width: var(--cursor-follower-size);
    height: var(--cursor-follower-size);
    border: 1px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-out-expo),
        height 0.3s var(--ease-out-expo),
        border-color 0.3s ease,
        opacity 0.3s ease;
    opacity: 0.5;
}

body.cursor-hover .cursor {
    width: 60px;
    height: 60px;
    background: rgba(201, 168, 76, 0.15);
    mix-blend-mode: normal;
}

body.cursor-hover .cursor-follower {
    width: 80px;
    height: 80px;
    opacity: 0;
}

/* ============================================
   NOISE / GRAIN OVERLAY
   ============================================ */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9000;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 8000;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(16px, 1.8vw, 32px);
    transition: background var(--duration-normal) ease,
        backdrop-filter var(--duration-normal) ease,
        border-color var(--duration-normal) ease;
    border-bottom: 1px solid transparent;
}

.nav.scrolled {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-color: transparent;
}

/* Brand logo styling */
.nav-brand {
    display: flex;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    opacity: 0;
    transform: translateY(-20px);
    animation: navItemIn 0.8s var(--ease-out-expo) 0.4s forwards;
}

.nav-logo .logo-name {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0;
}

.nav-logo .logo-accent {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-style: italic;
    font-weight: 500;
    color: var(--accent);
    margin-left: 5px;
    margin-right: 2px;
}

.nav-logo .logo-badge {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(245, 240, 232, 0.5);
    border-left: none;
    padding-left: 0;
    margin-left: 10px;
    letter-spacing: 0;
    text-transform: none;
}

/* Center Menu (Shopify Editions style flat links) */
.nav-center {
    position: absolute;
    left: clamp(260px, 18vw, 350px);
    top: 50%;
    display: flex;
    align-items: center;
    gap: clamp(28px, 3vw, 52px);
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    opacity: 0;
    transform: translateY(calc(-50% - 20px));
    animation: navItemIn 0.8s var(--ease-out-expo) 0.6s forwards;
}

.nav-dropdown-wrapper {
    position: relative;
}

.nav-dropdown-trigger {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 0;
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 700;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
    cursor: none;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.nav-dropdown-trigger:hover,
.nav-dropdown-wrapper:hover .nav-dropdown-trigger {
    color: var(--text-primary);
}

.chevron-icon {
    transition: transform 0.3s ease;
    stroke-width: 2px;
}

.nav-dropdown-wrapper:hover .chevron-icon {
    transform: rotate(180deg);
}

/* Dropdown list */
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.95);
    background: rgba(15, 15, 22, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 8px;
    list-style: none;
    min-width: 170px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-out-expo), transform 0.3s var(--ease-out-expo);
    z-index: 8100;
}

.nav-dropdown-wrapper:hover .nav-dropdown-menu {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
}

.nav-dropdown-menu li {
    margin-bottom: 2px;
}

.nav-dropdown-menu li:last-child {
    margin-bottom: 0;
}

.nav-dropdown-menu li a {
    display: block;
    padding: 8px 14px;
    color: var(--text-secondary);
    font-size: var(--fs-small);
    font-weight: 500;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown-menu li a:hover {
    background: var(--accent-dim);
    color: var(--accent-light);
}

/* Search button styling inside center pill */
.nav-search-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 0;
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
    cursor: none;
    border-left: 0;
    border-radius: 0;
    padding-left: 0;
    margin-left: 0;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.nav-search-btn:hover {
    color: var(--text-primary);
}

.nav-search-btn svg {
    color: currentColor;
}

/* Right side menu links */
.nav-right {
    display: flex;
    align-items: center;
    gap: clamp(24px, 3vw, 48px);
    opacity: 0;
    transform: translateY(-20px);
    animation: navItemIn 0.8s var(--ease-out-expo) 0.8s forwards;
}

.nav-text-link {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0;
    text-decoration: none;
    transition: color 0.2s ease;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.nav-text-link:hover {
    color: var(--text-primary);
}

.nav-btn {
    font-size: 1rem;
    font-weight: 800;
    color: #050507 !important;
    background: #f8f8f5;
    padding: 12px 22px;
    border-radius: var(--radius-full);
    text-transform: none;
    letter-spacing: 0;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-btn:hover {
    background: #ffffff;
    transform: translateY(-1px) scale(1.02);
}

/* Mobile Links - Hidden by default on Desktop */
.nav-links {
    display: none;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: none;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    margin: 5px 0;
    transition: transform var(--duration-fast) ease, opacity var(--duration-fast) ease;
}

@keyframes navItemIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-center {
    animation-name: navCenterIn;
}

@keyframes navCenterIn {
    to {
        opacity: 1;
        transform: translateY(-50%);
    }
}

/* ============================================
   COMMAND PALETTE (SEARCH MODAL)
   ============================================ */
.cmd-palette {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.cmd-palette.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cmd-palette-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 8, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.cmd-palette-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 600px;
    background: rgba(18, 18, 26, 0.85);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 35px 100px rgba(0, 0, 0, 0.85);
    overflow: hidden;
    transform: scale(0.97) translateY(-15px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cmd-palette.active .cmd-palette-container {
    transform: scale(1) translateY(0);
}

.cmd-palette-header {
    display: flex;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid var(--glass-border);
    gap: 14px;
}

.cmd-search-icon {
    color: var(--text-tertiary);
    stroke-width: 2.5px;
}

.cmd-palette-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1.05rem;
}

.cmd-palette-input::placeholder {
    color: var(--text-tertiary);
}

.cmd-esc-badge {
    font-size: 0.65rem;
    font-family: var(--font-body);
    color: var(--text-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.05);
}

.cmd-palette-body {
    max-height: 400px;
    overflow-y: auto;
    padding: 16px 20px 24px;
}

.cmd-group-title {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--ls-wide);
    color: var(--accent);
    margin-bottom: 8px;
    margin-top: 16px;
}

.cmd-group:first-child .cmd-group-title {
    margin-top: 0;
}

.cmd-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cmd-item {
    display: flex;
    align-items: center;
    padding: 11px 16px;
    border-radius: var(--radius-md);
    cursor: none;
    gap: 14px;
    transition: background 0.15s ease, color 0.15s ease;
}

.cmd-item-icon {
    font-size: 1.15rem;
    width: 24px;
    display: flex;
    justify-content: center;
}

.cmd-item-text {
    flex: 1;
    font-size: var(--fs-small);
    color: var(--text-secondary);
    font-weight: 500;
}

.cmd-item-shortcut {
    font-size: 0.7rem;
    font-family: var(--font-body);
    color: var(--text-tertiary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 1px 5px;
    border-radius: 3px;
}

.cmd-item:hover,
.cmd-item.selected {
    background: var(--accent-dim);
}

.cmd-item:hover .cmd-item-text,
.cmd-item.selected .cmd-item-text {
    color: var(--accent-light);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: radial-gradient(ellipse at center,
            transparent 0%,
            rgba(10, 10, 15, 0.3) 50%,
            rgba(10, 10, 15, 0.7) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 0 var(--section-pad-x);
}

.hero-label {
    font-size: var(--fs-label);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var(--ls-wide);
    color: var(--accent);
    margin-bottom: var(--gap-md);
    opacity: 0;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: var(--fs-display);
    font-weight: 700;
    line-height: var(--lh-tight);
    letter-spacing: var(--ls-tight);
    color: var(--text-primary);
    margin-bottom: var(--gap-md);
}

.hero-title .line-wrapper {
    display: block;
    overflow: hidden;
    padding-bottom: 0.05em;
}

.hero-title .line-inner {
    display: block;
    transform: translateY(105%);
}

.hero-title .line-accent {
    font-style: italic;
    color: var(--accent);
}

.hero-subtitle {
    font-size: var(--fs-body-lg);
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: var(--ls-normal);
    opacity: 0;
    max-width: 500px;
    margin: 0 auto;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
}

.scroll-indicator-text {
    font-size: var(--fs-label);
    text-transform: uppercase;
    letter-spacing: var(--ls-wide);
    color: var(--text-tertiary);
}

.scroll-indicator-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 1;
        transform: scaleY(1);
    }

    50% {
        opacity: 0.3;
        transform: scaleY(0.6);
    }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    position: relative;
    padding: var(--section-pad-y) var(--section-pad-x);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.about-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-xl);
    align-items: center;
}

.about-text {
    max-width: 600px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: var(--fs-label);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var(--ls-wide);
    color: var(--accent);
    margin-bottom: var(--gap-lg);
}

.section-label::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--accent);
}

.about-heading {
    font-family: var(--font-heading);
    font-size: var(--fs-h1);
    font-weight: 500;
    line-height: var(--lh-snug);
    letter-spacing: var(--ls-tight);
    margin-bottom: var(--gap-lg);
}

.about-heading .line-wrapper {
    display: block;
    overflow: hidden;
    padding-bottom: 0.08em;
}

.about-heading .line-inner {
    display: block;
    transform: translateY(105%);
}

.about-description {
    font-size: var(--fs-body-lg);
    color: var(--text-secondary);
    line-height: var(--lh-normal);
    margin-bottom: var(--gap-lg);
}

.about-description .line-wrapper {
    display: block;
    overflow: hidden;
    padding-bottom: 0.15em;
}

.about-description .line-inner {
    display: block;
    transform: translateY(105%);
}

.about-stats {
    display: flex;
    gap: var(--gap-lg);
    padding-top: var(--gap-md);
    border-top: 1px solid var(--white-10);
}

.stat {
    opacity: 0;
    transform: translateY(20px);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: var(--fs-h2);
    font-weight: 600;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: var(--fs-small);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: var(--ls-wide);
}

.about-image-wrapper {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: var(--radius-md);
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
}

.about-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    pointer-events: none;
}



/* ============================================
   SKILL LANGUAGE MAP SECTION
   ============================================ */
.skill-atlas {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    padding: clamp(96px, 12vh, 150px) var(--section-pad-x);
    overflow: hidden;
    isolation: isolate;
    display: flex;
    align-items: center;
    background: #08070a;
    scroll-margin-top: 80px;
}

.skill-atlas-media,
.skill-atlas-shade,
.skill-atlas-frame {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.skill-atlas-media {
    z-index: 0;
}

.skill-atlas-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: brightness(0.9) contrast(1.05) saturate(0.95);
    transform: scale(1.02);
}

.skill-atlas-shade {
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(6, 5, 7, 0.35) 0%, rgba(6, 5, 7, 0.1) 40%, rgba(6, 5, 7, 0.1) 70%, rgba(6, 5, 7, 0.4) 100%),
        linear-gradient(180deg, rgba(6, 5, 7, 0.8) 0%, rgba(6, 5, 7, 0.14) 34%, rgba(6, 5, 7, 0.88) 100%);
}

.skill-atlas-frame {
    inset: clamp(28px, 4vw, 58px);
    z-index: 2;
    border: 1px solid rgba(242, 210, 154, 0.17);
    transform: skewX(-2deg);
}

.skill-atlas-frame::before,
.skill-atlas-frame::after {
    content: "";
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(128, 190, 174, 0.42), transparent);
}

.skill-atlas-frame::before {
    top: 18%;
    left: -4%;
    width: 42%;
}

.skill-atlas-frame::after {
    right: -5%;
    bottom: 20%;
    width: 46%;
}

.skill-atlas-copy {
    position: absolute;
    top: clamp(75px, 9vh, 100px);
    left: clamp(20px, 5vw, 80px);
    z-index: 4;
    width: min(100%, 460px);
    transform: none;
}

.skill-atlas-label {
    letter-spacing: 0;
}

.skill-atlas-title {
    margin-top: clamp(12px, 1.8vw, 20px);
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 3.2rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: 0;
    max-width: 12ch;
    text-wrap: balance;
}

.skill-atlas-desc {
    margin-top: clamp(18px, 2.2vw, 28px);
    max-width: 34rem;
    color: rgba(245, 240, 232, 0.72);
    font-size: clamp(0.98rem, 1.1vw, 1.12rem);
    line-height: 1.65;
}

.skill-constellation {
    position: absolute;
    top: clamp(108px, 15vh, 168px);
    right: clamp(28px, 7vw, 142px);
    z-index: 5;
    width: min(52vw, 760px);
    min-width: 510px;
    height: min(54vh, 540px);
    min-height: 390px;
    pointer-events: none;
}

.skill-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.skill-lines path {
    fill: none;
    stroke: rgba(232, 213, 163, 0.62);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 10px rgba(232, 213, 163, 0.28));
    stroke-dasharray: 12 12;
    animation: skillLineFlow 12s linear infinite;
}

.skill-node,
.skill-core {
    position: absolute;
    pointer-events: auto;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.skill-node {
    width: 12px;
    height: 12px;
    background: #fff;
    border: 2px solid #e8d5a3;
    box-shadow:
        0 0 0 3px rgba(232, 213, 163, 0.2),
        0 0 12px rgba(255, 255, 255, 0.8);
    display: block;
}

.skill-node::before {
    display: none;
}

.skill-node b {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
    transition: all 0.3s ease;
}

.skill-node small {
    display: block;
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-family: var(--font-body);
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.55);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    transition: all 0.3s ease;
}

.skill-node:hover {
    width: 18px;
    height: 18px;
    background: #80beae;
    border-color: #80beae;
    box-shadow:
        0 0 0 5px rgba(128, 190, 174, 0.3),
        0 0 18px rgba(128, 190, 174, 0.9);
}

.skill-node:hover b {
    color: #80beae;
    font-weight: 700;
    transform: translateX(-50%) translateY(-2px);
}

.skill-node:hover small {
    color: rgba(128, 190, 174, 0.8);
    transform: translateX(-50%) translateY(-2px);
}

.skill-core {
    left: 25%;
    top: 86%;
    width: 32px;
    height: 32px;
    background: #08070a;
    border: 2px solid #80beae;
    box-shadow:
        0 0 0 4px rgba(128, 190, 174, 0.15),
        0 0 20px rgba(128, 190, 174, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-core span:not(.skill-core-icon) {
    display: none;
}

.skill-core-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-bottom: 0;
    font-size: 9px;
    font-weight: 800;
    color: #08070a;
    background: #80beae;
    box-shadow: 0 0 8px rgba(128, 190, 174, 0.4);
}

.skill-node-python {
    left: 23%;
    top: 26%;
}

.skill-node-js {
    left: 89%;
    top: 19%;
}

.skill-node-react {
    left: 16%;
    top: 64%;
}

.skill-node-ai {
    left: 87%;
    top: 71%;
}

.skill-node-api {
    left: 61%;
    top: 26%;
}

.skill-node-css {
    left: 50%;
    top: 81%;
}

.skill-node-node {
    left: 45%;
    top: 17%;
}

.skill-node-ui {
    left: 69%;
    top: 50%;
}

.skill-atlas-index {
    position: absolute;
    right: clamp(28px, 5vw, 86px);
    bottom: clamp(28px, 5vw, 72px);
    z-index: 4;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    max-width: min(520px, 46vw);
}

.skill-atlas-index span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 10px;
    border: 1px solid rgba(245, 240, 232, 0.16);
    border-radius: 999px;
    color: rgba(245, 240, 232, 0.68);
    background: rgba(6, 5, 7, 0.36);
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
}

@keyframes skillLineFlow {
    to {
        stroke-dashoffset: -96;
    }
}

@media (max-width: 1024px) {
    .skill-atlas {
        min-height: 960px;
        align-items: flex-start;
        padding-top: 92px;
        padding-bottom: 92px;
    }

    .skill-atlas-media img {
        object-position: 48% center;
    }

    .skill-atlas-shade {
        background:
            linear-gradient(180deg, rgba(6, 5, 7, 0.88) 0%, rgba(6, 5, 7, 0.3) 48%, rgba(6, 5, 7, 0.9) 100%),
            linear-gradient(90deg, rgba(6, 5, 7, 0.35), rgba(6, 5, 7, 0.1) 55%, rgba(6, 5, 7, 0.4));
    }

    .skill-atlas-copy {
        position: relative;
        top: auto;
        left: auto;
        width: min(100%, 560px);
        margin-left: 0;
        transform: none;
    }

    .skill-atlas-title {
        max-width: 12ch;
    }

    .skill-constellation {
        top: auto;
        right: 50%;
        bottom: 120px;
        width: min(88vw, 650px);
        min-width: 0;
        height: min(48vh, 460px);
        min-height: 380px;
        transform: translateX(50%);
    }

    .skill-atlas-index {
        left: var(--section-pad-x);
        right: var(--section-pad-x);
        bottom: 34px;
        justify-content: flex-start;
        max-width: none;
    }
}

@media (max-width: 640px) {
    .skill-atlas {
        min-height: 900px;
        padding-top: 84px;
    }

    .skill-atlas-media img {
        object-position: 43% center;
    }

    .skill-atlas-frame {
        inset: 18px;
        transform: none;
    }

    .skill-atlas-title {
        font-size: clamp(2.18rem, 11vw, 3.35rem);
        max-width: 11ch;
    }

    .skill-atlas-desc {
        max-width: 22rem;
    }

    .skill-constellation {
        bottom: 120px;
        width: min(96vw, 430px);
        height: 390px;
        min-height: 0;
    }

    .skill-node {
        width: 10px;
        height: 10px;
        box-shadow:
            0 0 0 2px rgba(232, 213, 163, 0.2),
            0 0 8px rgba(255, 255, 255, 0.8);
    }

    .skill-core {
        width: 26px;
        height: 26px;
    }

    .skill-core-icon {
        width: 16px;
        height: 16px;
        font-size: 8px;
    }

    .skill-node small {
        display: none;
    }

    .skill-node b {
        font-size: 9px;
        bottom: 14px;
    }

    .skill-lines path {
        stroke-width: 1.25;
    }
}



/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects {
    position: relative;
    min-height: 100vh;
    padding: clamp(74px, 10vh, 110px) var(--section-pad-x) clamp(42px, 7vh, 76px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 86% 9%, rgba(202, 168, 106, 0.16), transparent 24%),
        radial-gradient(circle at 7% 42%, rgba(255, 255, 255, 0.06), transparent 28%),
        linear-gradient(180deg, rgba(10, 10, 15, 0), rgba(202, 168, 106, 0.035) 46%, rgba(10, 10, 15, 0));
}

.projects::before {
    content: "WORK INDEX";
    position: absolute;
    top: clamp(70px, 9vw, 140px);
    right: -0.18em;
    z-index: 0;
    font-family: var(--font-heading);
    font-size: clamp(5rem, 15vw, 17rem);
    font-weight: 500;
    line-height: 0.8;
    color: rgba(255, 255, 255, 0.025);
    pointer-events: none;
    white-space: nowrap;
}

.projects-header {
    position: relative;
    z-index: 6;
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto clamp(22px, 3vh, 40px);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--gap-lg);
}

.projects-title {
    font-family: var(--font-heading);
    font-size: var(--fs-h2);
    font-weight: 500;
    line-height: var(--lh-snug);
}

.projects-count {
    font-family: var(--font-heading);
    font-size: var(--fs-h1);
    font-weight: 300;
    color: var(--text-tertiary);
    line-height: 1;
}

.projects-track-wrapper {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    width: 100%;
    height: clamp(500px, 68vh, 760px);
    margin: 0 auto;
}

.projects.vanilla-projects {
    min-height: 640vh;
    justify-content: flex-start;
}

.projects.vanilla-projects .projects-header {
    position: sticky;
    top: clamp(74px, 10vh, 106px);
}

.projects.vanilla-projects .projects-track-wrapper {
    position: sticky;
    top: clamp(160px, 23vh, 220px);
}

.projects-scroll-rail {
    position: absolute;
    top: 28vh;
    right: clamp(18px, 3vw, 58px);
    z-index: 7;
    width: 1px;
    height: 44vh;
    margin: 0;
    background: rgba(255, 255, 255, 0.09);
    pointer-events: none;
}

.projects-scroll-fill {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleY(0);
    transform-origin: top;
    background: linear-gradient(180deg, rgba(242, 210, 154, 1), rgba(202, 168, 106, 0.28));
    box-shadow: 0 0 28px rgba(202, 168, 106, 0.32);
}

.projects-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
    perspective: 1400px;
}

.project-card {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: center;
    position: absolute;
    inset: 0;
    min-height: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    isolation: isolate;
    transform-style: preserve-3d;
    transition: transform var(--duration-fast) var(--ease-out-expo);
    will-change: transform, opacity;
}

.projects.vanilla-projects .project-card {
    transition: opacity 0.45s ease, visibility 0.45s ease, transform 0.65s var(--ease-out-expo);
}

.project-card:first-child {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.project-card.is-active {
    pointer-events: auto;
}

.project-card::before {
    content: "";
    position: absolute;
    inset: clamp(46px, 8vh, 90px) 6% 0 11%;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
        rgba(255, 255, 255, 0.018);
    transform: skewX(-5deg);
    transition: border-color var(--duration-normal) ease, background var(--duration-normal) ease;
}

.project-card::after {
    content: "CASE STUDY";
    position: absolute;
    left: 0;
    top: 28%;
    z-index: 2;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.32em;
    color: rgba(202, 168, 106, 0.8);
    transition: color var(--duration-normal) ease, opacity var(--duration-normal) ease;
}

.project-card:nth-child(even) .project-card-image,
.project-card:nth-child(even) .project-lab-visual {
    grid-column: 5 / 13;
    clip-path: polygon(4% 0, 100% 0, 100% 100%, 0 100%);
    transform: rotate(1deg);
}

.project-card:nth-child(even) .project-card-content {
    grid-column: 1 / 7;
    justify-self: start;
    transform: translate(0, 11%);
}

.project-card:nth-child(even)::before {
    inset: clamp(46px, 8vh, 90px) 11% 0 6%;
    transform: skewX(5deg);
}

.project-card:nth-child(even)::after {
    left: auto;
    right: 0;
}

.project-card:hover {
    transform: translateY(-6px);
}

.project-card.is-active::before {
    border-color: rgba(202, 168, 106, 0.34);
    background:
        linear-gradient(115deg, rgba(202, 168, 106, 0.09), rgba(255, 255, 255, 0.018)),
        rgba(255, 255, 255, 0.026);
}

.project-card.is-active::after {
    color: rgba(242, 210, 154, 0.95);
}

.project-card-number {
    position: absolute;
    top: 3%;
    right: 3%;
    z-index: 1;
    font-family: var(--font-heading);
    font-size: clamp(8rem, 24vw, 25rem);
    font-weight: 300;
    line-height: 0.68;
    color: rgba(255, 255, 255, 0.055);
    pointer-events: none;
    will-change: transform, opacity;
}

.project-card-image {
    grid-column: 1 / 9;
    grid-row: 1;
    z-index: 2;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 54px 120px rgba(0, 0, 0, 0.46);
    clip-path: polygon(0 0, 96% 0, 100% 100%, 0 100%);
    transform: rotate(-1deg);
    will-change: transform, clip-path;
    transition: border-color var(--duration-normal) ease, box-shadow var(--duration-normal) ease;
}

.project-card-image::before {
    content: "";
    position: absolute;
    inset: 12px;
    z-index: 2;
    border: 1px solid rgba(10, 10, 15, 0.18);
    pointer-events: none;
}

.project-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.18), transparent 34%, rgba(0, 0, 0, 0.24));
    mix-blend-mode: multiply;
    pointer-events: none;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out-expo);
}

.project-card:hover .project-card-image img {
    transform: scale(1.035);
}

.project-card-content {
    grid-column: 7 / 13;
    grid-row: 1;
    justify-self: end;
    position: relative;
    z-index: 2;
    min-width: 0;
    width: min(100%, 560px);
    padding: clamp(24px, 3vw, 46px);
    border-left: 1px solid rgba(202, 168, 106, 0.55);
    background: rgba(10, 10, 15, 0.74);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
    transform: translate(0, 13%);
    will-change: transform, opacity;
    transition: border-color var(--duration-normal) ease, box-shadow var(--duration-normal) ease, background var(--duration-normal) ease;
}

.project-card.is-active .project-card-image,
.project-card.is-active .project-lab-visual {
    border-color: rgba(242, 210, 154, 0.34);
    box-shadow: 0 64px 150px rgba(0, 0, 0, 0.56), 0 0 42px rgba(202, 168, 106, 0.08);
}

.project-card.is-active .project-card-content {
    border-left-color: rgba(242, 210, 154, 0.92);
    background: rgba(10, 10, 15, 0.82);
    box-shadow: 0 36px 100px rgba(0, 0, 0, 0.36), 0 0 32px rgba(202, 168, 106, 0.07);
}

.project-card-kicker {
    display: block;
    margin-bottom: var(--gap-sm);
    font-size: var(--fs-label);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--ls-wider);
    color: var(--accent);
}

.project-card-tags {
    display: flex;
    gap: 8px;
    margin-bottom: var(--gap-md);
    flex-wrap: wrap;
}

.project-tag {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var(--ls-wide);
    color: var(--accent);
    padding: 4px 10px;
    border: 1px solid var(--accent-dim);
    border-radius: var(--radius-full);
}

.project-card-title {
    font-family: var(--font-heading);
    font-size: clamp(2.45rem, 4.6vw, 5.2rem);
    font-weight: 500;
    line-height: 0.98;
    margin-bottom: var(--gap-md);
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

.project-card-desc {
    max-width: 520px;
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    color: var(--text-secondary);
    line-height: 1.55;
}

.project-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: var(--gap-md);
    font-size: var(--fs-small);
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: var(--ls-wide);
    text-decoration: none;
    transition: gap var(--duration-fast) var(--ease-out-expo);
}

.project-card-link:hover {
    gap: 12px;
}

.project-card-link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--duration-fast) var(--ease-out-expo);
}

.project-card-link:hover svg {
    transform: translateX(2px);
}

.project-card-lab {
    min-height: clamp(600px, 82vh, 820px);
}

.project-lab-visual {
    grid-column: 1 / 9;
    grid-row: 1;
    min-height: clamp(280px, 42vw, 520px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(10px, 1.4vw, 18px);
    padding: clamp(28px, 4vw, 56px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    background:
        linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        radial-gradient(circle at 18% 20%, rgba(202, 168, 106, 0.28), transparent 34%),
        radial-gradient(circle at 78% 72%, rgba(255, 255, 255, 0.12), transparent 30%),
        linear-gradient(135deg, rgba(18, 18, 24, 0.92), rgba(58, 50, 38, 0.72));
    background-size: 46px 46px, 46px 46px, auto, auto, auto;
    box-shadow: 0 54px 120px rgba(0, 0, 0, 0.38);
    clip-path: polygon(0 0, 96% 0, 100% 100%, 0 100%);
    transform: rotate(-1deg);
    will-change: transform, clip-path;
    transition: border-color var(--duration-normal) ease, box-shadow var(--duration-normal) ease;
}

.project-lab-visual span {
    font-family: var(--font-heading);
    font-size: clamp(2.1rem, 6vw, 6.8rem);
    font-weight: 500;
    line-height: 0.88;
    color: var(--text-primary);
}

@media (min-width: 1025px) {
    .projects {
        height: 100vh;
        min-height: 100vh;
        padding: 0;
        display: block;
        background: #07070b;
    }

    .projects::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        background:
            radial-gradient(circle at 74% 18%, rgba(202, 168, 106, 0.16), transparent 30%),
            linear-gradient(90deg, rgba(7, 7, 11, 0.92) 0%, rgba(7, 7, 11, 0.62) 38%, rgba(7, 7, 11, 0.16) 72%, rgba(7, 7, 11, 0.72) 100%),
            linear-gradient(180deg, rgba(7, 7, 11, 0.92) 0%, transparent 24%, transparent 70%, rgba(7, 7, 11, 0.9) 100%);
        pointer-events: none;
    }

    .projects-header {
        position: absolute;
        top: clamp(78px, 9vh, 112px);
        left: var(--section-pad-x);
        right: var(--section-pad-x);
        z-index: 12;
        width: auto;
        max-width: none;
        margin: 0;
        pointer-events: none;
    }

    .projects-title {
        max-width: 8ch;
        font-size: clamp(3.2rem, 7.8vw, 8.6rem);
        line-height: 0.84;
        color: rgba(255, 255, 255, 0.92);
        text-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
    }

    .projects-count {
        position: absolute;
        top: 0;
        right: 0;
        font-size: clamp(4rem, 9vw, 9rem);
        color: rgba(255, 255, 255, 0.2);
    }

    .projects-scroll-rail {
        top: 50%;
        right: clamp(22px, 3vw, 58px);
        height: 52vh;
        transform: translateY(-50%);
        z-index: 14;
        background: rgba(255, 255, 255, 0.14);
    }

    .projects-track-wrapper {
        position: absolute;
        inset: 0;
        z-index: 2;
        width: 100%;
        max-width: none;
        height: 100vh;
        margin: 0;
    }

    .projects.vanilla-projects .projects-header {
        position: sticky;
        top: clamp(78px, 9vh, 112px);
    }

    .projects.vanilla-projects .projects-track-wrapper {
        position: sticky;
        top: 0;
    }

    .projects-track {
        width: 100%;
        height: 100%;
        overflow: hidden;
        perspective: 1600px;
    }

    .project-card {
        inset: 0;
        width: 100%;
        height: 100%;
        padding: 0;
        display: block;
        overflow: hidden;
        background: #07070b;
    }

    .project-card::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 5;
        border: 0;
        transform: none;
        background:
            linear-gradient(90deg, rgba(7, 7, 11, 0.95) 0%, rgba(7, 7, 11, 0.74) 28%, rgba(7, 7, 11, 0.22) 64%, rgba(7, 7, 11, 0.82) 100%),
            linear-gradient(180deg, rgba(7, 7, 11, 0.72), transparent 42%, rgba(7, 7, 11, 0.84));
    }

    .project-card::after {
        left: auto;
        right: clamp(28px, 4.5vw, 82px);
        top: auto;
        bottom: clamp(34px, 5vh, 70px);
        z-index: 11;
        writing-mode: horizontal-tb;
        transform: none;
        color: rgba(242, 210, 154, 0.86);
    }

    .project-card-image,
    .project-card:nth-child(even) .project-card-image,
    .project-lab-visual,
    .project-card:nth-child(even) .project-lab-visual {
        position: absolute;
        inset: 0;
        z-index: 1;
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
        border: 0;
        clip-path: none;
        transform: none;
        box-shadow: none;
        margin: 0;
    }

    .project-card-image::before {
        inset: clamp(18px, 2vw, 32px);
        z-index: 3;
        border-color: rgba(255, 255, 255, 0.08);
    }

    .project-card-image::after {
        z-index: 2;
        background: linear-gradient(115deg, rgba(255, 255, 255, 0.12), transparent 24%, rgba(0, 0, 0, 0.46));
        mix-blend-mode: normal;
    }

    .project-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: saturate(0.92) contrast(1.08) brightness(0.78);
        transform-origin: center center;
    }

    .project-card-content,
    .project-card:nth-child(even) .project-card-content {
        position: absolute;
        left: var(--section-pad-x);
        bottom: clamp(54px, 8vh, 96px);
        z-index: 10;
        width: min(720px, 55vw);
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        transform: none;
    }

    .project-card-kicker {
        margin-bottom: clamp(12px, 1.7vh, 18px);
        color: rgba(242, 210, 154, 0.95);
    }

    .project-card-tags {
        margin-bottom: clamp(16px, 2.5vh, 28px);
    }

    .project-tag {
        background: rgba(7, 7, 11, 0.4);
        border-color: rgba(242, 210, 154, 0.32);
        color: rgba(242, 210, 154, 0.94);
        backdrop-filter: blur(12px);
    }

    .project-card-title {
        max-width: 9.4ch;
        font-size: clamp(4rem, 8vw, 10rem);
        line-height: 0.82;
        margin-bottom: clamp(20px, 3vh, 34px);
        text-shadow: 0 26px 90px rgba(0, 0, 0, 0.76);
        overflow-wrap: normal;
    }

    .project-card-desc {
        max-width: 620px;
        font-size: clamp(1.05rem, 1.25vw, 1.28rem);
        color: rgba(255, 255, 255, 0.72);
        text-shadow: 0 8px 34px rgba(0, 0, 0, 0.75);
    }

    .project-card-link {
        color: rgba(242, 210, 154, 0.95);
    }

    .project-card-number {
        top: auto;
        right: clamp(64px, 8vw, 140px);
        bottom: clamp(74px, 9vh, 130px);
        z-index: 6;
        font-size: clamp(9rem, 25vw, 27rem);
        color: rgba(255, 255, 255, 0.13);
        text-shadow: 0 24px 90px rgba(0, 0, 0, 0.6);
    }

    .project-lab-visual {
        align-items: flex-end;
        padding: clamp(90px, 11vh, 140px) clamp(96px, 10vw, 170px);
        background:
            linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
            radial-gradient(circle at 72% 22%, rgba(202, 168, 106, 0.34), transparent 28%),
            radial-gradient(circle at 18% 70%, rgba(255, 255, 255, 0.12), transparent 32%),
            linear-gradient(135deg, #09090f, #2a2319 58%, #09090f);
        background-size: 58px 58px, 58px 58px, auto, auto, auto;
    }

    .project-lab-visual span {
        font-size: clamp(5rem, 12vw, 14rem);
        color: rgba(255, 255, 255, 0.86);
        text-shadow: 0 30px 110px rgba(0, 0, 0, 0.66);
    }
}

/* Cinematic vertical project gallery */
.projects {
    position: relative;
    height: auto;
    min-height: auto;
    padding: clamp(110px, 14vh, 180px) var(--section-pad-x);
    display: block;
    overflow: visible;
    background:
        radial-gradient(circle at 86% 8%, rgba(202, 168, 106, 0.13), transparent 24%),
        linear-gradient(180deg, rgba(10, 10, 15, 0), rgba(202, 168, 106, 0.035) 38%, rgba(10, 10, 15, 0));
    --work-index-y: 0px;
}

.projects::before {
    content: "WORK INDEX";
    position: absolute;
    top: clamp(72px, 9vw, 150px);
    right: -0.18em;
    z-index: 0;
    font-family: var(--font-heading);
    font-size: clamp(5rem, 16vw, 17rem);
    font-weight: 500;
    line-height: 0.8;
    color: rgba(255, 255, 255, 0.026);
    pointer-events: none;
    white-space: nowrap;
    transform: translateY(var(--work-index-y, 0px));
    will-change: transform;
    transition: transform 0s linear;
}

/* === Premium animation enhancement styles === */
.project-card {
    will-change: transform, opacity;
}

.project-card::before {
    transition: border-color 0.6s var(--ease-out-expo), box-shadow 0.6s var(--ease-out-expo);
}

.project-card:hover::before {
    border-color: rgba(242, 210, 154, 0.28) !important;
    box-shadow: 0 0 45px rgba(202, 168, 106, 0.12) !important;
}

.project-card .project-card-image,
.project-card .project-lab-visual {
    will-change: transform;
}

.project-card .project-card-content {
    will-change: transform, opacity;
}

.project-card .project-card-image img {
    will-change: transform;
}


/* Accent line glow animation on active */
.project-card.is-active .project-card-content {
    border-left-color: rgba(242, 210, 154, 1);
    box-shadow:
        0 36px 100px rgba(0, 0, 0, 0.36),
        -2px 0 24px rgba(242, 210, 154, 0.12),
        0 0 32px rgba(202, 168, 106, 0.07);
    transition: border-left-color 0.6s var(--ease-out-expo),
        box-shadow 0.8s var(--ease-out-expo),
        background 0.6s ease;
}

/* Hover magnetic lift enhancement */
.project-card:hover .project-card-image {
    box-shadow: 0 64px 140px rgba(0, 0, 0, 0.52), 0 0 50px rgba(202, 168, 106, 0.1);
}

.project-card:hover .project-card-content {
    box-shadow:
        0 36px 100px rgba(0, 0, 0, 0.36),
        -3px 0 32px rgba(242, 210, 154, 0.15),
        0 0 40px rgba(202, 168, 106, 0.09);
}

.projects-header {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto clamp(70px, 11vw, 150px);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--gap-lg);
    pointer-events: auto;
}

.projects-title {
    font-family: var(--font-heading);
    font-size: var(--fs-h2);
    font-weight: 500;
    line-height: var(--lh-snug);
    color: var(--text-primary);
    text-shadow: none;
}

.projects-count {
    position: static;
    font-family: var(--font-heading);
    font-size: var(--fs-h1);
    font-weight: 300;
    color: var(--text-tertiary);
    line-height: 1;
}

.projects.vanilla-projects .projects-track-wrapper {
    position: relative;
    top: auto;
    z-index: 1;
    max-width: var(--max-width);
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.projects.vanilla-projects {
    min-height: auto;
    justify-content: initial;
}

.projects.vanilla-projects .projects-header {
    position: relative;
    top: auto;
}

.projects-scroll-rail {
    position: sticky;
    top: 24vh;
    right: auto;
    z-index: 4;
    width: 1px;
    height: 48vh;
    margin: 0 0 -48vh clamp(4px, 1.2vw, 16px);
    transform: none;
    background: rgba(255, 255, 255, 0.09);
    pointer-events: none;
}

.projects.vanilla-projects .projects-track {
    position: relative;
    width: 100%;
    height: auto;
    display: grid;
    gap: clamp(96px, 16vw, 220px);
    overflow: visible;
    perspective: 1400px;
}

.projects.vanilla-projects .project-card {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    min-height: clamp(680px, 90vh, 940px);
    padding: clamp(24px, 4vw, 72px) 0;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: center;
    overflow: visible;
    background: transparent;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    isolation: isolate;
}

@media (min-width: 1025px) {
    .projects.vanilla-projects .project-card {
        position: sticky;
        top: clamp(80px, 11vh, 125px);
        transform-origin: center top;
    }
}

.project-card::before {
    content: "";
    position: absolute;
    inset: clamp(40px, 7vh, 84px) 5% 0 10%;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
        rgba(255, 255, 255, 0.018);
    transform: skewX(-4deg);
}

.project-card::after {
    content: "CASE STUDY";
    position: absolute;
    left: 0;
    top: 30%;
    z-index: 3;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.32em;
    color: rgba(202, 168, 106, 0.8);
}

.project-card:nth-child(even)::before {
    inset: clamp(40px, 7vh, 84px) 10% 0 5%;
    transform: skewX(4deg);
}

.project-card:nth-child(even)::after {
    left: auto;
    right: 0;
}

.project-card-image,
.project-card:nth-child(even) .project-card-image,
.project-lab-visual,
.project-card:nth-child(even) .project-lab-visual {
    position: relative;
    inset: auto;
    grid-column: 1 / 9;
    grid-row: 1;
    z-index: 2;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.17);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 54px 120px rgba(0, 0, 0, 0.42);
    clip-path: polygon(0 0, 96% 0, 100% 100%, 0 100%);
    transform: rotate(-1deg);
}

.project-card:nth-child(even) .project-card-image,
.project-card:nth-child(even) .project-lab-visual {
    grid-column: 5 / 13;
    clip-path: polygon(4% 0, 100% 0, 100% 100%, 0 100%);
    transform: rotate(1deg);
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none;
}

.project-card-content,
.project-card:nth-child(even) .project-card-content {
    position: relative;
    grid-column: 7 / 13;
    grid-row: 1;
    justify-self: end;
    z-index: 3;
    min-width: 0;
    width: min(100%, 560px);
    padding: clamp(24px, 3vw, 46px);
    border-left: 1px solid rgba(202, 168, 106, 0.6);
    background: rgba(10, 10, 15, 0.76);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(18px);
    transform: translate(0, 12%);
}

.project-card:nth-child(even) .project-card-content {
    grid-column: 1 / 7;
    justify-self: start;
}

.project-card-title {
    max-width: none;
    font-size: clamp(2.5rem, 4.8vw, 5.6rem);
    line-height: 0.96;
    margin-bottom: var(--gap-md);
    overflow-wrap: anywhere;
    text-shadow: none;
}

.project-card-desc {
    max-width: 540px;
    color: var(--text-secondary);
    text-shadow: none;
}

.project-card-number {
    position: absolute;
    top: 2%;
    right: 3%;
    bottom: auto;
    z-index: 1;
    font-size: clamp(8rem, 24vw, 25rem);
    color: rgba(255, 255, 255, 0.06);
    text-shadow: none;
}

.project-lab-visual {
    min-height: auto;
}

/* Premium per-project art direction */
.project-inspire::before {
    border-color: rgba(229, 54, 42, 0.2);
    background:
        radial-gradient(circle at 70% 45%, rgba(229, 54, 42, 0.12), transparent 34%),
        linear-gradient(115deg, rgba(255, 255, 255, 0.05), rgba(202, 168, 106, 0.02)),
        rgba(255, 255, 255, 0.018);
}

.project-card.project-inspire .project-card-image {
    grid-column: 6 / 13;
    aspect-ratio: 16 / 9;
    clip-path: polygon(3% 0, 100% 0, 98% 100%, 0 100%);
    transform: rotate(0.45deg) translateY(-8px) !important;
    box-shadow: 0 58px 140px rgba(0, 0, 0, 0.48), 0 0 60px rgba(229, 54, 42, 0.08);
}

.project-card.project-inspire .project-card-image img {
    object-fit: contain;
    object-position: center center;
    transform: none !important;
    filter: saturate(1.08) contrast(1.04);
}

.project-card.project-inspire .project-card-content {
    grid-column: 1 / 5;
    width: 100%;
    padding: clamp(24px, 2.7vw, 42px);
    transform: translate(0, 0);
    border-left-color: rgba(229, 54, 42, 0.58);
    background:
        linear-gradient(96deg, rgba(11, 11, 14, 0.96), rgba(11, 11, 14, 0.84) 62%, rgba(70, 16, 15, 0.5));
}

.project-card.project-inspire .project-card-number {
    color: rgba(229, 54, 42, 0.09);
}

.project-sajilo::before {
    border-color: rgba(63, 112, 255, 0.22);
    background:
        radial-gradient(circle at 76% 36%, rgba(58, 101, 255, 0.16), transparent 36%),
        linear-gradient(115deg, rgba(255, 255, 255, 0.045), rgba(63, 112, 255, 0.025)),
        rgba(255, 255, 255, 0.018);
}

.project-card.project-sajilo .project-card-image {
    grid-column: 6 / 13;
    aspect-ratio: 16 / 9;
    clip-path: polygon(2% 0, 100% 0, 98% 100%, 0 100%);
    transform: rotate(0.42deg) translateY(-8px) !important;
    box-shadow: 0 58px 140px rgba(0, 0, 0, 0.5), 0 0 70px rgba(63, 112, 255, 0.1);
}

.project-card.project-sajilo .project-card-image img {
    object-fit: contain;
    object-position: center center;
    transform: none !important;
    filter: saturate(1.06) contrast(1.03);
}

.project-card.project-sajilo .project-card-content {
    grid-column: 1 / 5;
    width: 100%;
    transform: translate(0, 0);
    border-left-color: rgba(91, 136, 255, 0.75);
    background:
        linear-gradient(96deg, rgba(11, 11, 15, 0.96), rgba(12, 16, 31, 0.88) 62%, rgba(29, 65, 168, 0.36));
}

.project-card.project-inspire .project-card-title,
.project-card.project-sajilo .project-card-title {
    font-size: clamp(2.35rem, 4.25vw, 4.9rem);
}

.project-card.project-sajilo .project-card-number {
    color: rgba(83, 123, 255, 0.1);
}

.project-card-lab .project-lab-visual {
    position: relative;
    overflow: hidden;
    min-height: clamp(470px, 48vw, 680px);
    border-color: rgba(242, 210, 154, 0.18);
    background:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        radial-gradient(circle at 72% 30%, rgba(202, 168, 106, 0.22), transparent 30%),
        radial-gradient(circle at 22% 70%, rgba(255, 255, 255, 0.1), transparent 34%),
        linear-gradient(135deg, #08080d, #211c16 58%, #09090f);
    background-size: 42px 42px, 42px 42px, auto, auto, auto;
}

.project-card-lab .project-lab-visual::before {
    content: "";
    position: absolute;
    inset: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.project-card-lab .project-lab-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.1) 48%, transparent 54%);
    opacity: 0.28;
    transform: translateX(-28%) skewX(-12deg);
    pointer-events: none;
}

.project-lab-visual .lab-eyebrow {
    position: absolute;
    top: clamp(28px, 4vw, 54px);
    left: clamp(30px, 4.4vw, 70px);
    z-index: 4;
    font-family: var(--font-body);
    font-size: clamp(0.72rem, 0.9vw, 0.9rem);
    font-weight: 800;
    letter-spacing: 0.28em;
    color: rgba(242, 210, 154, 0.9);
}

.project-lab-visual .lab-word {
    position: absolute;
    z-index: 3;
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 0.82;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 34px 110px rgba(0, 0, 0, 0.72);
}

.lab-skin {
    background:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        radial-gradient(circle at 72% 34%, rgba(70, 154, 130, 0.22), transparent 28%),
        radial-gradient(circle at 28% 76%, rgba(202, 168, 106, 0.18), transparent 34%),
        linear-gradient(135deg, #080b0d, #18231f 54%, #09090f) !important;
}

.lab-skin .lab-word-main {
    top: 26%;
    left: 11%;
    font-size: clamp(5.8rem, 11vw, 12rem);
}

.lab-skin .lab-word-side {
    right: 18%;
    bottom: 15%;
    font-size: clamp(4.2rem, 8vw, 9rem);
    color: rgba(255, 255, 255, 0.78);
}

.lab-skin .lab-orbit {
    position: absolute;
    right: 10%;
    top: 14%;
    z-index: 2;
    width: clamp(170px, 24vw, 310px);
    aspect-ratio: 1;
    border: 1px solid rgba(242, 210, 154, 0.36);
    border-radius: 50%;
    box-shadow: inset 0 0 38px rgba(70, 154, 130, 0.16), 0 0 42px rgba(202, 168, 106, 0.1);
}

.lab-skin .lab-orbit-small {
    right: 19%;
    top: 27%;
    width: clamp(90px, 13vw, 170px);
    border-color: rgba(255, 255, 255, 0.16);
}

.lab-skin .lab-node {
    position: absolute;
    z-index: 5;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(242, 210, 154, 0.95);
    box-shadow: 0 0 26px rgba(242, 210, 154, 0.6);
}

.lab-skin .lab-node-a {
    right: 16%;
    top: 22%;
}

.lab-skin .lab-node-b {
    right: 32%;
    top: 47%;
}

.lab-skin .lab-node-c {
    right: 13%;
    bottom: 25%;
}

.project-book .project-lab-visual {
    background:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        radial-gradient(circle at 76% 26%, rgba(202, 168, 106, 0.18), transparent 30%),
        radial-gradient(circle at 28% 72%, rgba(120, 96, 255, 0.14), transparent 32%),
        linear-gradient(135deg, #08080d, #1f1a22 58%, #09090f) !important;
}

.lab-book .lab-word-main {
    top: 18%;
    left: 35%;
    font-size: clamp(5.5rem, 9.6vw, 10.8rem);
}

.lab-book .lab-word-side {
    top: 42%;
    left: 31%;
    font-size: clamp(4.4rem, 7.8vw, 9.4rem);
    color: rgba(255, 255, 255, 0.8);
}

.lab-book .lab-word-low {
    right: 10%;
    bottom: 13%;
    font-size: clamp(4.2rem, 7.5vw, 9rem);
    color: rgba(255, 255, 255, 0.74);
}

.lab-book .lab-bars {
    position: absolute;
    left: 30%;
    bottom: 11%;
    z-index: 2;
    width: min(42%, 360px);
    height: 140px;
    background:
        linear-gradient(to top, rgba(242, 210, 154, 0.64) 0 38%, transparent 38%),
        linear-gradient(to top, rgba(242, 210, 154, 0.42) 0 58%, transparent 58%),
        linear-gradient(to top, rgba(242, 210, 154, 0.72) 0 82%, transparent 82%),
        linear-gradient(to top, rgba(242, 210, 154, 0.34) 0 48%, transparent 48%);
    background-size: 16% 100%;
    background-position: 0 0, 28% 0, 56% 0, 84% 0;
    background-repeat: no-repeat;
    opacity: 0.55;
}

.lab-book .lab-card {
    position: absolute;
    z-index: 2;
    width: clamp(86px, 12vw, 150px);
    height: clamp(116px, 16vw, 190px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.lab-book .lab-card-a {
    right: 14%;
    top: 15%;
    transform: rotate(6deg);
}

.lab-book .lab-card-b {
    right: 24%;
    top: 23%;
    transform: rotate(-8deg);
    opacity: 0.72;
}

.lab-book .lab-card-c {
    right: 8%;
    top: 33%;
    transform: rotate(12deg);
    opacity: 0.48;
}

/* ============================================
   EXPERIENCE / TIMELINE SECTION
   ============================================ */
.experience {
    position: relative;
    padding: var(--section-pad-y) var(--section-pad-x);
}

.experience-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.experience-header {
    text-align: center;
    margin-bottom: var(--gap-xl);
}

.experience-title {
    font-family: var(--font-heading);
    font-size: var(--fs-h2);
    font-weight: 500;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--white-10);
    transform: translateX(-50%);
}

.timeline-line-progress {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0%;
    background: var(--accent);
    transition: height 0.1s linear;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 40px var(--gap-xl);
    opacity: 0;
    transform: translateY(30px);
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-right: 50px;
    padding-left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
    padding-left: 50px;
    padding-right: 0;
}

.timeline-dot {
    position: absolute;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: var(--bg-primary);
    z-index: 2;
    transition: background var(--duration-fast) ease,
        box-shadow var(--duration-fast) ease;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -6px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -6px;
}

.timeline-item.active .timeline-dot {
    background: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.timeline-date {
    font-size: var(--fs-label);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var(--ls-wide);
    color: var(--accent);
    margin-bottom: 8px;
}

.timeline-role {
    font-family: var(--font-heading);
    font-size: var(--fs-h3);
    font-weight: 500;
    margin-bottom: 4px;
}

.timeline-company {
    font-size: var(--fs-body);
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.timeline-desc {
    font-size: var(--fs-small);
    color: var(--text-tertiary);
    line-height: var(--lh-normal);
}

/* ============================================
   TESTIMONIAL / QUOTE SECTION
   ============================================ */
.testimonial {
    position: relative;
    padding: var(--section-pad-y) var(--section-pad-x);
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.testimonial-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center,
            var(--accent-dim) 0%,
            transparent 70%);
    pointer-events: none;
}

.testimonial-inner {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    text-align: center;
}

.testimonial-quote {
    font-family: var(--font-heading);
    font-size: var(--fs-h1);
    font-weight: 400;
    font-style: italic;
    line-height: var(--lh-snug);
    letter-spacing: var(--ls-tight);
    color: var(--text-primary);
    margin-bottom: var(--gap-lg);
}

.testimonial-quote .word {
    display: inline-block;
    margin-right: 0.25em;
    opacity: 0.15;
    transition: opacity 0.4s ease;
}

.testimonial-quote .word.active {
    opacity: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--gap-md);
    opacity: 0;
    transform: translateY(20px);
}

.testimonial-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    overflow: hidden;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.testimonial-author-info {
    text-align: left;
}

.testimonial-author-name {
    font-weight: 500;
    font-size: var(--fs-body);
    color: var(--text-primary);
}

.testimonial-author-role {
    font-size: var(--fs-small);
    color: var(--text-tertiary);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    position: relative;
    width: 100%;
    height: 200vh;
    /* Scroll-pinned height on desktop */
    scroll-margin-top: 90px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        radial-gradient(circle at 16% 22%, rgba(202, 168, 106, 0.12), transparent 28%),
        radial-gradient(circle at 86% 70%, rgba(69, 118, 104, 0.14), transparent 30%),
        linear-gradient(135deg, rgba(10, 10, 15, 0), rgba(202, 168, 106, 0.045) 44%, rgba(10, 10, 15, 0));
    background-size: 54px 54px, 54px 54px, auto, auto, auto;
}

.contact-pinned {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0 var(--section-pad-x);
    box-sizing: border-box;
}

.contact-pinned::before {
    content: "CONTACT";
    position: absolute;
    top: 8%;
    left: 50%;
    z-index: 0;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-size: clamp(5.8rem, 17vw, 18rem);
    font-weight: 500;
    line-height: 0.8;
    color: rgba(255, 255, 255, 0.022);
    pointer-events: none;
    white-space: nowrap;
}

.contact-pinned::after {
    content: "";
    position: absolute;
    inset: 9% 5% 9%;
    z-index: 0;
    border: 1px solid rgba(202, 168, 106, 0.14);
    transform: skewX(-3deg);
    pointer-events: none;
}

.contact-art {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

#contact-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.42;
}


.contact-art-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(242, 210, 154, 0.42), transparent);
    transform-origin: center;
}

.contact-art-line-a {
    top: 24%;
    left: -8%;
    width: 52%;
    transform: rotate(-10deg);
}

.contact-art-line-b {
    right: -8%;
    bottom: 20%;
    width: 54%;
    transform: rotate(-12deg);
}

.contact-art-ring {
    position: absolute;
    border: 1px solid rgba(242, 210, 154, 0.18);
    border-radius: 50%;
    box-shadow: inset 0 0 52px rgba(69, 118, 104, 0.08), 0 0 70px rgba(202, 168, 106, 0.07);
}

.contact-art-ring-a {
    top: 18%;
    right: 12%;
    width: clamp(160px, 22vw, 320px);
    aspect-ratio: 1;
}

.contact-art-ring-b {
    left: 7%;
    bottom: 11%;
    width: clamp(110px, 16vw, 220px);
    aspect-ratio: 1;
    border-color: rgba(255, 255, 255, 0.08);
}

.contact-art-mark {
    position: absolute;
    right: clamp(30px, 6vw, 110px);
    bottom: clamp(46px, 8vw, 120px);
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 8rem);
    color: rgba(255, 255, 255, 0.045);
}

.contact-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: min(760px, calc(100vh - 160px));
}

.contact-copy {
    min-width: 0;
}

.contact-label {
    justify-content: flex-start;
    margin-bottom: clamp(18px, 3vw, 34px);
}

.contact-heading {
    font-family: var(--font-heading);
    font-size: clamp(3.1rem, 7.2vw, 8.4rem);
    font-weight: 500;
    line-height: 0.9;
    margin-bottom: clamp(22px, 3.5vw, 42px);
    letter-spacing: 0;
    text-wrap: balance;
}

.contact-heading .line-wrapper {
    display: block;
    overflow: hidden;
    padding-bottom: 0.08em;
}

.contact-heading .line-inner {
    display: block;
    transform: translateY(0);
}

.contact-heading em {
    color: var(--accent-light);
    font-style: italic;
}

.contact-subtext {
    font-size: clamp(1.05rem, 1.4vw, 1.35rem);
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 0 clamp(24px, 4vw, 46px);
    opacity: 1;
    transform: translateY(0);
}

.contact-notes {
    display: grid;
    gap: 10px;
    max-width: 540px;
    list-style: none;
    opacity: 1;
    transform: translateY(0);
}

.contact-notes li {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 46px;
    padding: 10px 14px;
    border-left: 1px solid rgba(202, 168, 106, 0.38);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
    color: rgba(245, 240, 232, 0.72);
    font-size: var(--fs-small);
}

.contact-notes span {
    font-family: var(--font-heading);
    color: var(--accent);
    font-size: 1rem;
}

.contact-panel {
    position: relative;
    min-width: 0;
    width: min(100%, clamp(500px, 40vw, 720px));
    padding: clamp(24px, 2.6vw, 40px);
    border: 1px solid rgba(242, 210, 154, 0.28);
    border-left-color: rgba(242, 210, 154, 0.78);
    border-radius: 6px;
    background:
        radial-gradient(circle at 12% 12%, rgba(242, 210, 154, 0.1), transparent 28%),
        linear-gradient(135deg, rgba(9, 9, 14, 0.95), rgba(16, 16, 23, 0.9) 56%, rgba(37, 31, 22, 0.76)),
        rgba(10, 10, 15, 0.88);
    box-shadow: 0 38px 110px rgba(0, 0, 0, 0.48), 0 0 72px rgba(202, 168, 106, 0.1);
    backdrop-filter: blur(22px);
    opacity: 1;
    transform: translateY(0);
    overflow: hidden;
    isolation: isolate;
}

.contact-panel::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    pointer-events: none;
}

.contact-panel::after {
    content: "";
    position: absolute;
    top: 0;
    right: 17%;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(242, 210, 154, 0.22), transparent);
    transform: rotate(7deg);
    transform-origin: center;
    opacity: 0.72;
    pointer-events: none;
}

.contact-panel-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: clamp(28px, 3.4vw, 44px);
}

.contact-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(245, 240, 232, 0.74);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
}

.contact-status span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7fd7a2;
    box-shadow: 0 0 18px rgba(127, 215, 162, 0.75);
}

.contact-year {
    font-family: var(--font-heading);
    color: rgba(255, 255, 255, 0.18);
    font-size: clamp(2rem, 4.3vw, 3.9rem);
    line-height: 0.8;
}

.contact-panel-label {
    position: relative;
    z-index: 1;
    margin-bottom: 12px;
    color: var(--accent);
    font-size: var(--fs-label);
    font-weight: 800;
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
}

.contact-email {
    display: block;
    position: relative;
    z-index: 1;
    font-family: var(--font-heading);
    font-size: clamp(1.45rem, 2.18vw, 2.28rem);
    font-weight: 500;
    line-height: 1;
    color: var(--text-primary);
    text-decoration: none;
    width: fit-content;
    max-width: 100%;
    margin-bottom: clamp(16px, 2.4vw, 24px);
    opacity: 1;
    transform: translateY(0);
    word-break: break-word;
    transition: color var(--duration-fast) ease, transform var(--duration-fast) var(--ease-out-expo);
}

.contact-email::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), rgba(127, 215, 162, 0.65));
    transform: scaleX(1);
    transform-origin: right;
    transition: transform var(--duration-fast) var(--ease-out-expo);
}

.contact-email:hover {
    color: var(--accent-light);
    transform: translateY(-3px);
}

.contact-email:hover::after {
    transform: scaleX(0.82);
    transform-origin: left;
}

.contact-panel-copy {
    position: relative;
    z-index: 1;
    max-width: 510px;
    margin: 0 0 clamp(18px, 2.6vw, 26px);
    color: rgba(245, 240, 232, 0.68);
    font-size: clamp(0.95rem, 1.05vw, 1.05rem);
    line-height: 1.7;
}

.contact-meta {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: clamp(24px, 3vw, 34px);
}

.contact-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 7px 11px;
    border: 1px solid rgba(242, 210, 154, 0.16);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.035);
    color: rgba(245, 240, 232, 0.62);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.contact-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: clamp(20px, 2.8vw, 32px);
}

.contact-primary,
.contact-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 20px;
    border-radius: var(--radius-full);
    font-size: var(--fs-small);
    font-weight: 800;
    text-decoration: none;
    transition: transform var(--duration-fast) var(--ease-out-expo),
        border-color var(--duration-fast) ease,
        background var(--duration-fast) ease,
        color var(--duration-fast) ease;
}

.contact-primary {
    color: #07070b;
    background: var(--text-primary);
}

.contact-secondary {
    color: var(--accent-light);
    border: 1px solid rgba(242, 210, 154, 0.28);
    background: rgba(255, 255, 255, 0.04);
}

.contact-primary:hover,
.contact-secondary:hover {
    transform: translateY(-3px);
}

.contact-secondary:hover {
    border-color: rgba(242, 210, 154, 0.62);
    background: rgba(202, 168, 106, 0.09);
}

.contact-socials {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: clamp(16px, 2vw, 22px);
    border-top: 1px solid rgba(255, 255, 255, 0.075);
    list-style: none;
}

.contact-socials li {
    opacity: 1;
    transform: translateY(0);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    transition: border-color var(--duration-fast) ease,
        color var(--duration-fast) ease,
        transform var(--duration-fast) var(--ease-out-expo),
        background var(--duration-fast) ease;
}

.social-link svg {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
}

.social-link:hover {
    border-color: var(--accent);
    color: var(--accent-light);
    background: var(--accent-dim);
    transform: translateY(-3px);
}

@media (max-width: 1024px) {
    .contact {
        height: auto;
        min-height: auto;
    }

    .contact-pinned {
        position: relative;
        top: auto;
        height: auto;
        overflow: hidden;
        display: block;
        padding: clamp(120px, 15vh, 180px) var(--section-pad-x) clamp(60px, 8vh, 100px);
    }

    .contact-inner {
        justify-content: center;
        min-height: auto;
    }

    .contact-panel {
        width: min(100%, 720px);
        max-width: 720px;
    }
}

@media (max-width: 768px) {
    .contact-pinned {
        padding: clamp(88px, 13vh, 130px) var(--section-pad-x);
    }

    .contact-art-line {
        display: none;
    }

    .contact-pinned::after {
        inset: 6% 4%;
        transform: none;
    }

    .contact-heading {
        font-size: clamp(2.6rem, 15vw, 4.4rem);
    }

    .contact-panel-top {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 36px;
    }

    .contact-email {
        font-size: clamp(1.65rem, 8vw, 2.35rem);
    }

    .contact-actions {
        flex-direction: column;
    }

    .contact-primary,
    .contact-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .contact-panel {
        padding: 24px 18px;
    }

    .contact-notes li {
        align-items: flex-start;
    }

    .social-link {
        width: 100%;
        justify-content: flex-start;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    position: relative;
    z-index: 2;
    padding: var(--gap-lg) var(--section-pad-x);
    border-top: 1px solid var(--white-05);
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.96), var(--bg-primary));
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-left {
    font-size: var(--fs-small);
    color: var(--text-tertiary);
}

.footer-right {
    font-size: var(--fs-small);
    color: var(--text-tertiary);
}

.footer-right a {
    color: var(--accent);
    text-decoration: none;
}

/* ============================================
   UTILITIES
   ============================================ */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.magnetic-area {
    display: inline-block;
    position: relative;
}

/* ============================================
   UNIFIED PROJECT GALLERY POLISH
   ============================================ */
@media (min-width: 1025px) {
    .projects {
        padding: clamp(96px, 12vh, 150px) var(--section-pad-x);
        overflow: visible;
    }

    .projects-header {
        margin-bottom: clamp(54px, 7vw, 110px);
    }

    .projects-track {
        gap: clamp(88px, 12vw, 160px);
    }

    .project-card,
    .projects.vanilla-projects .project-card {
        position: sticky !important;
        top: clamp(72px, 10vh, 108px) !important;
        display: grid !important;
        min-height: clamp(640px, 88vh, 900px);
        padding: clamp(34px, 4.2vw, 70px) 0;
        grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
        align-items: center !important;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .project-card::before,
    .project-inspire::before {
        inset: clamp(18px, 3vw, 42px) 4% clamp(18px, 3vw, 42px) 8% !important;
        border-color: rgba(202, 168, 106, 0.2) !important;
        background:
            radial-gradient(circle at 76% 26%, rgba(202, 168, 106, 0.12), transparent 30%),
            linear-gradient(115deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.014)),
            rgba(8, 8, 13, 0.72) !important;
        transform: skewX(-3deg) !important;
        z-index: -1 !important;
    }

    .project-card:nth-child(even)::before,
    .project-sajilo::before {
        inset: clamp(18px, 3vw, 42px) 8% clamp(18px, 3vw, 42px) 4% !important;
        border-color: rgba(202, 168, 106, 0.2) !important;
        background:
            radial-gradient(circle at 24% 26%, rgba(202, 168, 106, 0.12), transparent 30%),
            linear-gradient(115deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.014)),
            rgba(8, 8, 13, 0.72) !important;
        transform: skewX(3deg) !important;
        z-index: -1 !important;
    }

    .project-card::after {
        left: clamp(0px, 0.6vw, 10px) !important;
        right: auto !important;
        top: auto !important;
        bottom: clamp(58px, 8vh, 96px) !important;
        writing-mode: vertical-rl !important;
        transform: rotate(180deg) !important;
        z-index: 10 !important;
    }

    .project-card:nth-child(even)::after {
        left: auto !important;
        right: clamp(0px, 0.6vw, 10px) !important;
        top: auto !important;
        bottom: clamp(58px, 8vh, 96px) !important;
        writing-mode: vertical-rl !important;
        transform: rotate(180deg) !important;
        z-index: 10 !important;
    }

    /* --- Alternating Project Cards Layout --- */
    /* Odd cards (image left, content right) */
    .project-card-image,
    .project-lab-visual {
        position: relative !important;
        inset: auto !important;
        height: auto !important;
        grid-column: 1 / 9 !important;
        grid-row: 1 !important;
        width: 100% !important;
        aspect-ratio: 16 / 10 !important;
        clip-path: polygon(0 0, 97% 0, 100% 100%, 0 100%) !important;
        transform: rotate(-0.7deg) !important;
        border: 1px solid rgba(242, 210, 154, 0.18) !important;
        background:
            radial-gradient(circle at 18% 18%, rgba(242, 210, 154, 0.11), transparent 30%),
            linear-gradient(135deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.018)),
            #09090f !important;
        box-shadow: 0 54px 130px rgba(0, 0, 0, 0.48) !important;
        z-index: 2 !important;
    }

    .project-card-content {
        position: relative !important;
        inset: auto !important;
        left: auto !important;
        bottom: auto !important;
        grid-column: 7 / 13 !important;
        grid-row: 1 !important;
        justify-self: end !important;
        width: min(620px, 46vw) !important;
        min-height: clamp(390px, 45vh, 500px) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        padding: clamp(30px, 3vw, 48px) !important;
        border-left: 1px solid rgba(242, 210, 154, 0.72) !important;
        border-right: 0 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
        background:
            linear-gradient(110deg, rgba(10, 10, 15, 0.94), rgba(10, 10, 15, 0.82) 68%, rgba(38, 32, 23, 0.78)),
            rgba(10, 10, 15, 0.86) !important;
        box-shadow: 0 36px 100px rgba(0, 0, 0, 0.36), 0 0 44px rgba(202, 168, 106, 0.06) !important;
        backdrop-filter: blur(18px) !important;
        transform: translate(0, 0) !important;
        z-index: 3 !important;
    }

    /* Even cards (image right, content left) */
    .project-card:nth-child(even) .project-card-image,
    .project-card:nth-child(even) .project-lab-visual,
    .project-card.project-inspire .project-card-image,
    .project-card.project-sajilo .project-card-image {
        position: relative !important;
        inset: auto !important;
        height: auto !important;
        grid-column: 5 / 13 !important;
        grid-row: 1 !important;
        width: 100% !important;
        aspect-ratio: 16 / 10 !important;
        clip-path: polygon(3% 0, 100% 0, 100% 100%, 0 100%) !important;
        transform: rotate(0.7deg) !important;
        border: 1px solid rgba(242, 210, 154, 0.18) !important;
        background:
            radial-gradient(circle at 82% 18%, rgba(242, 210, 154, 0.11), transparent 30%),
            linear-gradient(135deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.018)),
            #09090f !important;
        box-shadow: 0 54px 130px rgba(0, 0, 0, 0.48) !important;
        z-index: 2 !important;
    }

    .project-card:nth-child(even) .project-card-content,
    .project-card.project-inspire .project-card-content,
    .project-card.project-sajilo .project-card-content {
        position: relative !important;
        inset: auto !important;
        left: auto !important;
        bottom: auto !important;
        grid-column: 1 / 7 !important;
        grid-row: 1 !important;
        justify-self: start !important;
        width: min(620px, 46vw) !important;
        min-height: clamp(390px, 45vh, 500px) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        padding: clamp(30px, 3vw, 48px) !important;
        border-right: 1px solid rgba(242, 210, 154, 0.72) !important;
        border-left: 0 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
        background:
            linear-gradient(-110deg, rgba(10, 10, 15, 0.94), rgba(10, 10, 15, 0.82) 68%, rgba(38, 32, 23, 0.78)),
            rgba(10, 10, 15, 0.86) !important;
        box-shadow: 0 36px 100px rgba(0, 0, 0, 0.36), 0 0 44px rgba(202, 168, 106, 0.06) !important;
        backdrop-filter: blur(18px) !important;
        transform: translate(0, 0) !important;
        z-index: 3 !important;
    }

    .project-card-image::before {
        inset: clamp(10px, 1.1vw, 18px);
        border-color: rgba(255, 255, 255, 0.11);
    }

    .project-card-image::after {
        background:
            linear-gradient(115deg, rgba(255, 255, 255, 0.12), transparent 32%, rgba(0, 0, 0, 0.26)),
            linear-gradient(90deg, transparent 56%, rgba(10, 10, 15, 0.2));
        mix-blend-mode: normal;
    }

    .project-card-image img,
    .project-card.project-inspire .project-card-image img,
    .project-card.project-sajilo .project-card-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center top;
        filter: saturate(1.02) contrast(1.04) brightness(0.94);
        transform: none;
    }

    .project-card.project-inspire .project-card-content {
        border-right-color: rgba(229, 54, 42, 0.58) !important;
        border-left: 0 !important;
        background:
            linear-gradient(-96deg, rgba(11, 11, 14, 0.96), rgba(11, 11, 14, 0.84) 62%, rgba(70, 16, 15, 0.5)) !important;
    }

    .project-card.project-sajilo .project-card-content {
        border-right-color: rgba(91, 136, 255, 0.75) !important;
        border-left: 0 !important;
        background:
            linear-gradient(-96deg, rgba(11, 11, 15, 0.96), rgba(12, 16, 31, 0.88) 62%, rgba(29, 65, 168, 0.36)) !important;
    }

    .project-card-kicker {
        margin-bottom: clamp(10px, 1.2vw, 16px);
    }

    .project-card-tags {
        margin-bottom: clamp(18px, 2vw, 28px);
    }

    .project-tag {
        background: rgba(10, 10, 15, 0.34);
        border-color: rgba(242, 210, 154, 0.32);
    }

    .project-card-title,
    .project-card.project-inspire .project-card-title,
    .project-card.project-sajilo .project-card-title {
        max-width: 12.8ch;
        font-size: clamp(3.1rem, 4.9vw, 5.8rem);
        line-height: 0.94;
        margin-bottom: clamp(16px, 2vw, 26px);
        overflow-wrap: normal;
        word-break: normal;
        text-wrap: balance;
    }

    .project-card-desc {
        max-width: 520px;
        font-size: clamp(1rem, 1.18vw, 1.22rem);
        line-height: 1.58;
    }

    .project-card-number,
    .project-card.project-inspire .project-card-number,
    .project-card.project-sajilo .project-card-number {
        top: clamp(22px, 4vw, 58px);
        right: clamp(26px, 4vw, 68px);
        color: rgba(255, 255, 255, 0.055);
    }

    .project-card-lab .project-lab-visual {
        min-height: auto;
        overflow: hidden;
    }

    .project-card-lab .project-lab-visual::before {
        inset: clamp(14px, 1.5vw, 24px);
    }

    .project-lab-visual .lab-eyebrow {
        top: clamp(28px, 3.2vw, 48px);
        left: clamp(34px, 4.2vw, 64px);
    }

    .lab-skin .lab-word-main {
        top: 27%;
        left: 10%;
        font-size: clamp(4.8rem, 8vw, 9rem);
    }

    .lab-skin .lab-word-side {
        right: 16%;
        bottom: 16%;
        font-size: clamp(3.8rem, 6.8vw, 7.6rem);
    }

    .lab-book .lab-word-main {
        top: 18%;
        left: 34%;
        font-size: clamp(4.6rem, 7.8vw, 8.8rem);
    }

    .lab-book .lab-word-side {
        top: 42%;
        left: 30%;
        font-size: clamp(3.8rem, 6.6vw, 7.4rem);
    }

    .lab-book .lab-word-low {
        right: 10%;
        bottom: 14%;
        font-size: clamp(3.6rem, 6.2vw, 7rem);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
/* Hide custom cursor on tablets, mobile screens, or touch devices */
@media (max-width: 1024px),
(pointer: coarse) {

    .cursor,
    .cursor-follower {
        display: none !important;
    }

    /* Re-enable native cursor on hoverable elements for mobile backup */
    * {
        cursor: auto !important;
    }

    a,
    button,
    [data-cursor-hover],
    [role="button"] {
        cursor: pointer !important;
    }
}

@media (max-width: 1024px) {
    .nav-center {
        display: none;
    }

    /* Hide Best Buddy sidebar on medium screens to prevent overlapping */
    .buddy-sidebar {
        display: none !important;
    }

    .projects-track-wrapper {
        height: auto;
        overflow: visible !important;
    }

    .projects-scroll-rail {
        display: none;
    }

    .projects-track {
        display: grid !important;
        gap: 48px !important;
        height: auto;
        transform: none !important;
        /* Cancel horizontal GSAP translations */
        width: 100% !important;
    }

    .project-card,
    .project-card:nth-child(even) {
        position: relative;
        inset: auto;
        grid-template-columns: 1fr !important;
        width: 100% !important;
        max-width: none !important;
        min-height: auto;
        padding: 24px 0;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .project-card:nth-child(even) .project-card-image,
    .project-card:nth-child(even) .project-lab-visual {
        order: 0;
    }

    .project-card::before {
        inset: 0;
        transform: none;
    }

    .project-card::after {
        display: none;
    }

    .project-card-image,
    .project-card:nth-child(even) .project-card-image,
    .project-lab-visual,
    .project-card:nth-child(even) .project-lab-visual {
        grid-column: 1 !important;
        grid-row: auto !important;
        aspect-ratio: 16 / 9;
        min-height: auto !important;
        height: auto;
        clip-path: none;
        transform: none;
    }

    .project-card-lab .project-lab-visual {
        min-height: auto !important;
    }

    .project-card-content,
    .project-card:nth-child(even) .project-card-content {
        grid-column: 1 !important;
        grid-row: auto !important;
        justify-self: stretch;
        width: 100%;
        transform: none;
        margin-top: -1px;
    }

    .project-card-title {
        overflow-wrap: normal;
        word-break: normal;
        hyphens: none;
    }

    .project-card-number {
        z-index: 1;
        font-size: clamp(5rem, 24vw, 10rem);
        opacity: 0.9;
    }

    .about-inner {
        grid-template-columns: 1fr;
        gap: var(--gap-lg);
    }

    .about-image-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        width: 100%;
        left: 0;
        text-align: left;
        padding-left: 60px;
        padding-right: 0;
    }

    .timeline-dot,
    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 14px;
        right: auto;
    }
}

@media (max-width: 768px) {
    .nav {
        height: 64px;
        padding: 0 18px;
    }

    .nav-center,
    .nav-right {
        display: none;
    }

    .nav-logo .logo-name {
        font-size: 0.95rem;
    }

    .nav-logo .logo-badge {
        display: none;
    }

    /* --- Lock Scroll --- */
    body.nav-lock-scroll {
        overflow: hidden !important;
        touch-action: none;
    }

    /* --- Mobile Menu Drawer (Premium Shopify-Editions Style) --- */
    .nav-links {
        display: flex !important;
        position: fixed !important;
        inset: 0 !important;
        z-index: 7999 !important;

        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 32px !important;

        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;

        background: rgba(10, 10, 15, 0.96) !important;
        backdrop-filter: blur(24px) !important;
        -webkit-backdrop-filter: blur(24px) !important;

        /* Slide in from top-right for a slick feel */
        transform: translate3d(100%, 0, 0);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
            opacity 0.4s ease,
            visibility 0.4s ease;
        will-change: transform, opacity;
    }

    .nav-links.nav-open {
        transform: translate3d(0, 0, 0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        opacity: 0;
        transform: translate3d(0, 24px, 0);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
        will-change: transform, opacity;
    }

    /* Stagger entry animations when active */
    .nav-links.nav-open li:nth-child(1) {
        transition-delay: 0.1s;
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }

    .nav-links.nav-open li:nth-child(2) {
        transition-delay: 0.16s;
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }

    .nav-links.nav-open li:nth-child(3) {
        transition-delay: 0.22s;
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }

    .nav-links.nav-open li:nth-child(4) {
        transition-delay: 0.28s;
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }

    .nav-links.nav-open li:nth-child(5) {
        transition-delay: 0.34s;
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }

    .nav-links li a {
        color: var(--text-primary) !important;
        text-decoration: none !important;
        font-family: var(--font-heading) !important;
        font-size: clamp(2.4rem, 8vw, 3.8rem) !important;
        font-weight: 500 !important;
        font-style: italic !important;
        line-height: 1 !important;
        letter-spacing: -0.02em !important;
        transition: color 0.3s ease, transform 0.25s ease !important;
        display: inline-block;
    }

    .nav-links li a:hover,
    .nav-links li a:focus-visible {
        color: var(--accent-light) !important;
        transform: skewX(-6deg) scale(1.05);
    }

    /* Special style for mobile CTA */
    .nav-links li a.nav-cta {
        font-family: var(--font-body) !important;
        font-style: normal !important;
        font-weight: 800 !important;
        font-size: 1.15rem !important;
        letter-spacing: var(--ls-wide) !important;
        text-transform: uppercase !important;
        color: var(--bg-primary) !important;
        background: var(--text-primary) !important;
        padding: 14px 34px !important;
        border-radius: var(--radius-full) !important;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
        margin-top: 12px;
    }

    .nav-links li a.nav-cta:hover {
        background: var(--accent-light) !important;
        color: var(--bg-primary) !important;
        transform: translateY(-2px) !important;
    }

    /* --- Hamburger Toggle Animation (Transitioning to "X") --- */
    .nav-toggle {
        display: block !important;
        position: relative !important;
        z-index: 8000 !important;
        /* Above drawer */
        width: 32px;
        height: 32px;
        padding: 0 !important;
        cursor: pointer !important;
    }

    .nav-toggle span {
        position: absolute;
        left: 4px;
        width: 24px;
        height: 2px;
        background: var(--text-primary);
        margin: 0 !important;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
            opacity 0.3s ease,
            top 0.3s cubic-bezier(0.16, 1, 0.3, 1),
            background-color 0.3s ease;
    }

    /* Hamburger normal states */
    .nav-toggle span:nth-child(1) {
        top: 9px;
    }

    .nav-toggle span:nth-child(2) {
        top: 15px;
    }

    .nav-toggle span:nth-child(3) {
        top: 21px;
    }

    /* Transforming to close "X" */
    .nav-toggle.nav-active span {
        background-color: var(--text-primary);
    }

    .nav-toggle.nav-active span:nth-child(1) {
        transform: rotate(45deg);
        top: 15px;
    }

    .nav-toggle.nav-active span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }

    .nav-toggle.nav-active span:nth-child(3) {
        transform: rotate(-45deg);
        top: 15px;
    }


    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .projects-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--gap-sm);
    }

    .about-stats {
        flex-wrap: wrap;
    }

    .contact-email {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
    }

    .footer {
        flex-direction: column;
        gap: var(--gap-sm);
        text-align: center;
    }
}

@media (max-width: 480px) {

    .project-card,
    .project-card:nth-child(even) {
        padding: 16px 0;
    }

    .project-card-title {
        max-width: 100%;
        font-size: clamp(2rem, 9.8vw, 2.55rem);
        line-height: 0.98;
    }

    .project-lab-visual .lab-eyebrow {
        top: 20px;
        left: 20px;
        font-size: 0.58rem;
    }

    .lab-skin .lab-word-main {
        top: 32%;
        left: 9%;
        font-size: clamp(2.9rem, 14vw, 4rem);
    }

    .lab-skin .lab-word-side {
        right: 12%;
        bottom: 15%;
        font-size: clamp(2.2rem, 11vw, 3.1rem);
    }

    .lab-skin .lab-orbit {
        right: 8%;
        top: 15%;
        width: clamp(90px, 34vw, 126px);
    }

    .lab-skin .lab-orbit-small {
        right: 18%;
        top: 28%;
        width: clamp(48px, 18vw, 72px);
    }

    .lab-skin .lab-node {
        width: 7px;
        height: 7px;
    }

    .lab-book .lab-word-main {
        top: 19%;
        left: 31%;
        font-size: clamp(2.9rem, 13vw, 3.9rem);
    }

    .lab-book .lab-word-side {
        top: 43%;
        left: 27%;
        font-size: clamp(2.35rem, 11vw, 3.25rem);
    }

    .lab-book .lab-word-low {
        right: 8%;
        bottom: 15%;
        font-size: clamp(2.2rem, 10vw, 3rem);
    }

    .lab-book .lab-bars {
        left: 25%;
        bottom: 8%;
        width: 48%;
        height: 58px;
    }

    .lab-book .lab-card {
        width: clamp(42px, 15vw, 58px);
        height: clamp(58px, 20vw, 76px);
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .marquee-row {
        animation: none !important;
    }

    .hero-title .line-inner,
    .about-heading .line-inner,
    .about-description .line-inner,
    .contact-heading .line-inner {
        transform: none !important;
    }

    .stat,
    .hero-label,
    .hero-subtitle,
    .scroll-indicator,
    .about-image-wrapper,
    .testimonial-author,
    .contact-subtext,
    .contact-email,
    .contact-socials li,
    .timeline-item {
        opacity: 1 !important;
        transform: none !important;
    }

    .testimonial-quote .word {
        opacity: 1 !important;
    }
}

/* ============================================
   BEST BUDDY SCROLL SEQUENCE SECTION
   (Shopify Winter Edition-style scroll animation)
   ============================================ */
.best-buddy {
    position: relative;
    width: 100%;
    height: 180vh;
    background-color: var(--bg-primary);
}

.best-buddy-pinned {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#best-buddy-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Canvas dimensions are set via JS for HiDPI support */
}

#buddy-transition-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: normal;
    will-change: opacity, filter;
}

.best-buddy-overlay {
    position: absolute;
    inset: 0;
    /* Very subtle vignette — just enough to not wash out the edges */
    background:
        linear-gradient(rgba(8, 10, 12, 0.2), rgba(8, 10, 12, 0.2)),
        radial-gradient(ellipse at center, transparent 42%, rgba(10, 10, 15, 0.26) 100%);
    z-index: 4;
    pointer-events: none;
}

.buddy-welcome-title {
    position: absolute;
    left: 50%;
    top: 56%;
    z-index: 5;
    width: min(calc(100vw - 64px), 1000px);
    margin: 0;
    font-family: var(--font-body);
    font-size: clamp(3.4rem, 9.2vw, 10rem);
    font-weight: 900;
    line-height: 0.84;
    letter-spacing: 0;
    color: #fffdf2;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 6px 34px rgba(0, 0, 0, 0.44);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(-50%, calc(-50% + 280px), 0) scale(0.97);
    will-change: opacity, transform;
    backface-visibility: hidden;
    contain: layout paint style;
}

.best-buddy-content {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    pointer-events: none;
}

/* Center box styling matching Shopify Editions border box */
.buddy-center-box {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    pointer-events: none;
}

.buddy-step {
    position: absolute;
    top: 45px;
    left: 35px;
    right: 35px;
    bottom: 45px;
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    pointer-events: none;
    will-change: opacity, transform;
    transition: opacity 0.05s linear, transform 0.05s linear;
    display: flex;
    flex-direction: column;
    justify-content: center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.buddy-step.active {
    pointer-events: auto;
}

.buddy-step .section-label {
    margin-bottom: var(--gap-sm);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.buddy-title {
    font-family: var(--font-heading);
    font-size: var(--fs-h3);
    font-weight: 500;
    line-height: var(--lh-snug);
    color: var(--text-primary);
    margin-bottom: var(--gap-sm);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
}

.buddy-desc {
    font-size: var(--fs-small);
    color: var(--text-secondary);
    line-height: var(--lh-normal);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
}

.buddy-intro-card {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 5;
    width: clamp(360px, 33vw, 430px);
    min-height: clamp(330px, 43vh, 450px);
    transform: translate(-50%, -45%);
    border: 1px solid rgba(255, 255, 255, 0.64);
    padding: clamp(24px, 2vw, 30px) clamp(24px, 2.1vw, 34px);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.48);
    pointer-events: auto;
    will-change: opacity, transform;
    backface-visibility: hidden;
    contain: layout paint style;
}

.buddy-intro-title {
    display: flex;
    flex-direction: column;
    font-family: var(--font-body);
    font-size: clamp(1.7rem, 2.45vw, 2.25rem);
    font-weight: 850;
    line-height: 0.88;
    letter-spacing: 0;
}

.buddy-intro-title em {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 500;
}

.buddy-intro-copy {
    margin-top: auto;
    margin-bottom: clamp(20px, 3vh, 28px);
    font-family: var(--font-heading);
    font-size: clamp(1rem, 1.32vw, 1.25rem);
    font-weight: 600;
    line-height: 1.02;
}

.buddy-intro-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.buddy-intro-list li {
    display: block;
}

.buddy-intro-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-primary);
    text-decoration: none;
    font-size: clamp(1.12rem, 1.42vw, 1.5rem);
    font-weight: 850;
    line-height: 0.95;
    transition: color 0.25s ease, transform 0.25s ease;
}

.buddy-intro-list a:hover,
.buddy-intro-list a:focus-visible {
    color: var(--accent-light);
    transform: translateX(5px);
}

.buddy-intro-list a:focus-visible {
    outline: 1px solid rgba(242, 210, 154, 0.72);
    outline-offset: 5px;
}

.buddy-intro-list a span:last-child {
    padding-left: 28px;
    font-family: var(--font-heading);
    font-size: clamp(0.86rem, 0.95vw, 1rem);
    font-style: italic;
    font-weight: 700;
    opacity: 0.86;
}

/* Left Sidebar (Shopify Editions style navigation) */
.buddy-sidebar {
    position: fixed;
    left: clamp(16px, 1.8vw, 32px);
    bottom: clamp(18px, 2.4vh, 32px);
    z-index: 12;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: clamp(28px, 4vh, 46px);
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, 20px, 0);
    will-change: opacity, transform;
    backface-visibility: hidden;
    contain: layout paint style;
}

.buddy-sidebar-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.buddy-sidebar-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: clamp(180px, 13vw, 240px);
    font-size: clamp(1.1rem, 1.36vw, 1.48rem);
    font-weight: 800;
    line-height: 0.96;
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease, opacity 0.3s ease, transform 0.25s ease;
    padding: 0;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.58);
}

.buddy-sidebar-item.active {
    color: var(--text-primary);
}

.buddy-sidebar-item:hover,
.buddy-sidebar-item:focus-visible {
    color: var(--accent-light);
    transform: translateX(5px);
}

.buddy-sidebar-item:focus-visible {
    outline: 1px solid rgba(242, 210, 154, 0.72);
    outline-offset: 5px;
}

.buddy-sidebar-item .sidebar-num {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(0.84rem, 0.94vw, 1rem);
    font-weight: 700;
    opacity: 0.78;
    margin-left: auto;
    padding-left: 24px;
}

.buddy-sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: clamp(0.72rem, 0.84vw, 0.84rem);
    line-height: 1.1;
    color: var(--text-primary);
    margin-top: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.buddy-copyright {
    font-weight: 800;
}

.buddy-policy-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.buddy-policy-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.buddy-policy-link:hover {
    color: var(--text-secondary);
}

/* --- Frame counter (for dev/debug, hidden by default) --- */
.buddy-frame-counter {
    position: absolute;
    bottom: 40px;
    right: 40px;
    font-family: var(--font-body);
    font-size: var(--fs-label);
    color: var(--text-tertiary);
    letter-spacing: var(--ls-wide);
    z-index: 5;
    display: none;
}

/* --- Scroll progress indicator on the side --- */
.best-buddy-progress {
    display: none;
}

.best-buddy-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--accent);
    border-radius: var(--radius-full);
    transition: height 0.1s ease-out;
}

/* Responsiveness for Best Buddy & Mobile Layouts */
@media (max-width: 768px) {
    .nav {
        padding: 0 20px !important;
    }

    .nav-toggle {
        margin-right: -8px !important;
    }

    .best-buddy {
        height: 200vh;
        /* Reduced height on mobile since scrolling can feel longer */
    }

    @media (max-width: 480px) {
        .best-buddy {
            height: 155vh;
        }
    }

    .best-buddy-pinned {
        align-items: flex-end;
        padding-bottom: clamp(40px, 6vh, 80px);
    }

    .buddy-sidebar {
        display: none !important;
    }

    .buddy-welcome-title {
        top: 56%;
        width: calc(100vw - 28px);
        font-size: clamp(2.7rem, 12.8vw, 5.4rem);
    }

    .buddy-intro-card {
        width: min(390px, 90vw) !important;
        min-height: auto !important;
        padding: 24px 20px !important;
        transform: translate(-50%, -40%) scale(0.95) !important;
    }

    .best-buddy-content {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .buddy-center-box {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        pointer-events: none;
    }

    .buddy-step {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        max-width: 100%;
        opacity: 0;
        transform: translateY(20px);
        margin: 0 auto;
        text-align: center;
    }

    .buddy-step.active {
        opacity: 1;
        transform: translateY(0);
    }

    .buddy-step .section-label {
        justify-content: center;
    }

    .best-buddy-progress {
        display: none !important;
    }
}

/* Force update */

/* Premium right-to-left project cinema */
@media (min-width: 1025px) {
    .projects.vanilla-projects {
        min-height: 100vh !important;
        height: 100vh !important;
        padding: 0 !important;
        overflow: hidden !important;
        display: block !important;
        background:
            radial-gradient(circle at 76% 18%, rgba(242, 210, 154, 0.13), transparent 28%),
            radial-gradient(circle at 18% 70%, rgba(91, 136, 255, 0.11), transparent 30%),
            linear-gradient(180deg, #08080d 0%, #11100f 46%, #07070b 100%) !important;
    }

    .projects.vanilla-projects::before {
        top: 50%;
        right: auto;
        left: 50%;
        z-index: 0;
        font-size: clamp(7rem, 20vw, 20rem);
        color: rgba(255, 255, 255, 0.028);
        transform: translate(-50%, -50%) translateY(var(--work-index-y, 0px));
        letter-spacing: 0.02em;
    }

    .projects.vanilla-projects::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        background:
            linear-gradient(90deg, rgba(7, 7, 11, 0.96), transparent 16%, transparent 84%, rgba(7, 7, 11, 0.96)),
            linear-gradient(180deg, rgba(7, 7, 11, 0.88), transparent 24%, transparent 76%, rgba(7, 7, 11, 0.9));
    }

    .projects.vanilla-projects .projects-header {
        position: absolute !important;
        top: clamp(88px, 11vh, 126px) !important;
        left: var(--section-pad-x);
        right: var(--section-pad-x);
        z-index: 9;
        max-width: none;
        margin: 0 !important;
        pointer-events: none;
        mix-blend-mode: screen;
    }

    .projects.vanilla-projects .projects-title {
        font-size: clamp(3.2rem, 7vw, 8.5rem);
        line-height: 0.82;
        color: rgba(255, 255, 255, 0.18);
    }

    .projects.vanilla-projects .section-label {
        color: rgba(242, 210, 154, 0.72);
    }

    .projects.vanilla-projects .projects-count {
        color: rgba(242, 210, 154, 0.4);
        font-size: clamp(4rem, 10vw, 10rem);
    }

    .projects.vanilla-projects .projects-track-wrapper {
        position: relative !important;
        top: auto !important;
        z-index: 3;
        width: 100vw !important;
        max-width: none !important;
        height: 100vh !important;
        margin: 0 !important;
        overflow: hidden !important;
    }

    .projects.vanilla-projects .projects-track {
        position: relative !important;
        display: block !important;
        gap: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        overflow: hidden !important;
        perspective: none !important;
        will-change: transform;
    }

    .projects.vanilla-projects .project-card,
    .projects.vanilla-projects .project-card:nth-child(even) {
        position: absolute !important;
        inset: 0 !important;
        top: auto !important;
        width: 100vw !important;
        height: 100vh !important;
        min-height: 720px !important;
        padding: clamp(108px, 14vh, 150px) var(--section-pad-x) clamp(58px, 8vh, 86px) !important;
        display: grid !important;
        grid-template-columns: minmax(0, 0.95fr) minmax(500px, 0.72fr) !important;
        gap: clamp(28px, 4vw, 72px) !important;
        align-items: center !important;
        opacity: 1;
        visibility: visible;
        overflow: hidden !important;
        pointer-events: auto !important;
        isolation: isolate;
        transform: none;
    }

    .projects.vanilla-projects .project-card:nth-child(even),
    .projects.vanilla-projects .project-card.project-inspire,
    .projects.vanilla-projects .project-card.project-sajilo {
        grid-template-columns: minmax(500px, 0.72fr) minmax(0, 0.95fr) !important;
    }

    .projects.vanilla-projects .project-card::before,
    .projects.vanilla-projects .project-card:nth-child(even)::before,
    .projects.vanilla-projects .project-inspire::before,
    .projects.vanilla-projects .project-sajilo::before {
        inset: clamp(96px, 12vh, 132px) clamp(34px, 4vw, 78px) clamp(38px, 5vh, 62px) !important;
        z-index: -1 !important;
        border-color: rgba(242, 210, 154, 0.18) !important;
        background:
            linear-gradient(120deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018)),
            rgba(255, 255, 255, 0.018) !important;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035), 0 70px 160px rgba(0, 0, 0, 0.36) !important;
        transform: skewX(-2deg) !important;
    }

    .projects.vanilla-projects .project-card:nth-child(even)::before,
    .projects.vanilla-projects .project-inspire::before,
    .projects.vanilla-projects .project-sajilo::before {
        transform: skewX(2deg) !important;
    }

    .projects.vanilla-projects .project-card::after,
    .projects.vanilla-projects .project-card:nth-child(even)::after {
        left: clamp(36px, 5vw, 90px) !important;
        right: auto !important;
        bottom: clamp(50px, 7vh, 84px) !important;
        z-index: 5 !important;
        opacity: 0.72;
    }

    .projects.vanilla-projects .project-card:nth-child(even)::after {
        left: auto !important;
        right: clamp(36px, 5vw, 90px) !important;
    }

    .projects.vanilla-projects .project-card-image,
    .projects.vanilla-projects .project-lab-visual,
    .projects.vanilla-projects .project-card:nth-child(even) .project-card-image,
    .projects.vanilla-projects .project-card:nth-child(even) .project-lab-visual,
    .projects.vanilla-projects .project-card.project-inspire .project-card-image,
    .projects.vanilla-projects .project-card.project-sajilo .project-card-image {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 100% !important;
        height: min(66vh, 660px) !important;
        min-height: 430px !important;
        aspect-ratio: auto !important;
        margin: 0 !important;
        clip-path: polygon(0 0, 97.5% 0, 100% 100%, 0 100%) !important;
        transform: none !important;
        border: 1px solid rgba(242, 210, 154, 0.24) !important;
        background:
            radial-gradient(circle at 20% 22%, rgba(242, 210, 154, 0.12), transparent 32%),
            linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.018)),
            #08080d !important;
        box-shadow: 0 58px 150px rgba(0, 0, 0, 0.5), 0 0 80px rgba(202, 168, 106, 0.06) !important;
    }

    .projects.vanilla-projects .project-card:nth-child(even) .project-card-image,
    .projects.vanilla-projects .project-card:nth-child(even) .project-lab-visual,
    .projects.vanilla-projects .project-card.project-inspire .project-card-image,
    .projects.vanilla-projects .project-card.project-sajilo .project-card-image {
        grid-column: 2 !important;
        clip-path: polygon(2.5% 0, 100% 0, 100% 100%, 0 100%) !important;
    }

    .projects.vanilla-projects .project-card-image img,
    .projects.vanilla-projects .project-card.project-inspire .project-card-image img,
    .projects.vanilla-projects .project-card.project-sajilo .project-card-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center center !important;
        filter: saturate(1.08) contrast(1.04) brightness(0.92) !important;
        transform: none !important;
    }

    .projects.vanilla-projects .project-card-content,
    .projects.vanilla-projects .project-card:nth-child(even) .project-card-content,
    .projects.vanilla-projects .project-card.project-inspire .project-card-content,
    .projects.vanilla-projects .project-card.project-sajilo .project-card-content {
        grid-column: 2 !important;
        grid-row: 1 !important;
        justify-self: stretch !important;
        align-self: center !important;
        width: 100% !important;
        min-height: auto !important;
        padding: clamp(32px, 3.8vw, 62px) !important;
        border: 1px solid rgba(255, 255, 255, 0.09) !important;
        border-left: 1px solid rgba(242, 210, 154, 0.68) !important;
        background:
            linear-gradient(135deg, rgba(9, 9, 14, 0.96), rgba(9, 9, 14, 0.82) 62%, rgba(42, 34, 23, 0.58)),
            rgba(9, 9, 14, 0.88) !important;
        box-shadow: 0 44px 130px rgba(0, 0, 0, 0.44), 0 0 70px rgba(202, 168, 106, 0.08) !important;
        backdrop-filter: blur(22px) saturate(1.1) !important;
        transform: none !important;
        z-index: 4 !important;
    }

    .projects.vanilla-projects .project-card:nth-child(even) .project-card-content,
    .projects.vanilla-projects .project-card.project-inspire .project-card-content,
    .projects.vanilla-projects .project-card.project-sajilo .project-card-content {
        grid-column: 1 !important;
        border-left-color: rgba(255, 255, 255, 0.09) !important;
        border-right: 1px solid rgba(242, 210, 154, 0.68) !important;
    }

    .projects.vanilla-projects .project-card-title,
    .projects.vanilla-projects .project-card.project-inspire .project-card-title,
    .projects.vanilla-projects .project-card.project-sajilo .project-card-title {
        max-width: 11.6ch !important;
        font-size: clamp(2.65rem, 4.45vw, 5.85rem) !important;
        line-height: 0.9 !important;
        letter-spacing: 0 !important;
        margin-bottom: clamp(18px, 2.2vw, 32px) !important;
        overflow-wrap: anywhere;
        word-break: normal;
        text-wrap: balance;
    }

    .projects.vanilla-projects .project-card-desc {
        max-width: 620px;
        font-size: clamp(1.02rem, 1.18vw, 1.28rem);
        line-height: 1.62;
        color: rgba(255, 255, 255, 0.68);
    }

    .projects.vanilla-projects .project-card-number,
    .projects.vanilla-projects .project-card.project-inspire .project-card-number,
    .projects.vanilla-projects .project-card.project-sajilo .project-card-number {
        top: auto !important;
        right: clamp(38px, 5vw, 88px) !important;
        bottom: clamp(28px, 4vh, 52px) !important;
        z-index: 0 !important;
        font-size: clamp(10rem, 18vw, 20rem) !important;
        color: rgba(255, 255, 255, 0.045) !important;
    }

    .projects.vanilla-projects .project-card:nth-child(even) .project-card-number,
    .projects.vanilla-projects .project-card.project-inspire .project-card-number,
    .projects.vanilla-projects .project-card.project-sajilo .project-card-number {
        right: auto !important;
        left: clamp(38px, 5vw, 88px) !important;
    }

    .projects.vanilla-projects .project-card.is-active .project-card-content {
        border-color: rgba(242, 210, 154, 0.3) !important;
        border-left-color: rgba(242, 210, 154, 0.92) !important;
    }

    .projects.vanilla-projects .project-card:nth-child(even).is-active .project-card-content,
    .projects.vanilla-projects .project-card.project-inspire.is-active .project-card-content,
    .projects.vanilla-projects .project-card.project-sajilo.is-active .project-card-content {
        border-right-color: rgba(242, 210, 154, 0.92) !important;
    }

    .projects.vanilla-projects .projects-scroll-rail {
        position: absolute !important;
        left: var(--section-pad-x);
        right: var(--section-pad-x);
        bottom: clamp(24px, 4vh, 44px);
        top: auto !important;
        z-index: 12;
        width: auto !important;
        height: 1px !important;
        margin: 0 !important;
        background: rgba(255, 255, 255, 0.12) !important;
        transform: none !important;
    }

    .projects.vanilla-projects .projects-scroll-fill {
        display: block;
        width: 100%;
        height: 100%;
        transform: scaleX(0);
        transform-origin: left center;
        background: linear-gradient(90deg, rgba(242, 210, 154, 0.15), rgba(242, 210, 154, 0.95), rgba(255, 255, 255, 0.76));
        box-shadow: 0 0 22px rgba(242, 210, 154, 0.42);
    }
}

/* Final override: vertical project showcase, no left/right motion */
@media (min-width: 1025px) {
    .projects.vanilla-projects {
        height: auto !important;
        min-height: auto !important;
        padding: clamp(118px, 14vh, 170px) var(--section-pad-x) clamp(120px, 15vh, 190px) !important;
        overflow: visible !important;
    }

    .projects.vanilla-projects::before {
        content: "SELECTED WORK" !important;
        top: clamp(90px, 11vw, 160px) !important;
        right: -0.12em !important;
        left: auto !important;
        transform: translateY(var(--work-index-y, 0px)) !important;
    }

    .projects.vanilla-projects::after {
        display: none !important;
    }

    .projects.vanilla-projects .projects-header {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        max-width: var(--max-width) !important;
        margin: 0 auto clamp(76px, 9vw, 130px) !important;
        mix-blend-mode: normal !important;
        pointer-events: auto !important;
    }

    .projects.vanilla-projects .projects-title {
        font-size: clamp(4.4rem, 8.8vw, 9.5rem) !important;
        line-height: 0.86 !important;
        color: rgba(255, 255, 255, 0.94) !important;
    }

    .projects.vanilla-projects .projects-track-wrapper,
    .projects.vanilla-projects .projects-track {
        position: relative !important;
        top: auto !important;
        width: 100% !important;
        max-width: var(--max-width) !important;
        height: auto !important;
        margin: 0 auto !important;
        overflow: visible !important;
        transform: none !important;
    }

    .projects.vanilla-projects .projects-track {
        display: grid !important;
        gap: clamp(92px, 12vw, 165px) !important;
    }

    .projects.vanilla-projects .project-card,
    .projects.vanilla-projects .project-card:nth-child(even),
    .projects.vanilla-projects .project-card.project-inspire,
    .projects.vanilla-projects .project-card.project-sajilo {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: clamp(650px, 84vh, 850px) !important;
        padding: clamp(34px, 4.2vw, 70px) 0 !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(390px, 0.58fr) !important;
        gap: clamp(34px, 5vw, 86px) !important;
        align-items: center !important;
        overflow: visible !important;
        clip-path: none !important;
    }

    .projects.vanilla-projects .project-card-image,
    .projects.vanilla-projects .project-lab-visual,
    .projects.vanilla-projects .project-card:nth-child(even) .project-card-image,
    .projects.vanilla-projects .project-card:nth-child(even) .project-lab-visual,
    .projects.vanilla-projects .project-card.project-inspire .project-card-image,
    .projects.vanilla-projects .project-card.project-sajilo .project-card-image {
        grid-column: 1 !important;
        grid-row: 1 !important;
        height: min(64vh, 640px) !important;
        min-height: 430px !important;
        clip-path: polygon(0 0, 98% 0, 100% 100%, 0 100%) !important;
    }

    .projects.vanilla-projects .project-card-content,
    .projects.vanilla-projects .project-card:nth-child(even) .project-card-content,
    .projects.vanilla-projects .project-card.project-inspire .project-card-content,
    .projects.vanilla-projects .project-card.project-sajilo .project-card-content {
        grid-column: 2 !important;
        grid-row: 1 !important;
        width: 100% !important;
        padding: clamp(30px, 3.4vw, 54px) !important;
        border-left: 1px solid rgba(242, 210, 154, 0.72) !important;
    }

    .projects.vanilla-projects .project-card-title,
    .projects.vanilla-projects .project-card.project-inspire .project-card-title,
    .projects.vanilla-projects .project-card.project-sajilo .project-card-title {
        max-width: 10.5ch !important;
        font-size: clamp(3rem, 5vw, 6rem) !important;
        line-height: 0.92 !important;
        letter-spacing: 0 !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }

    .projects.vanilla-projects .projects-scroll-rail {
        position: sticky !important;
        top: 28vh !important;
        left: auto !important;
        right: auto !important;
        width: 1px !important;
        height: 44vh !important;
        margin: 0 0 -44vh clamp(4px, 1.2vw, 16px) !important;
    }

    .projects.vanilla-projects .projects-scroll-fill {
        transform: scaleY(0);
        transform-origin: center top;
        background: linear-gradient(180deg, rgba(242, 210, 154, 0.15), rgba(242, 210, 154, 0.95), rgba(255, 255, 255, 0.76));
    }
}

/* ============================================
   LUXURY FOOTER STYLES
   ============================================ */
.footer {
    position: relative;
    background: linear-gradient(180deg, #0a0a0f 0%, #050508 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: clamp(60px, 8vh, 100px) var(--section-pad-x) 36px;
    color: var(--text-primary);
    overflow: hidden;
    z-index: 10;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: clamp(40px, 6vh, 60px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: clamp(24px, 4vh, 36px);
    flex-wrap: wrap;
}

.footer-brand-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    display: block;
}

.footer-brand-subtitle {
    display: block;
    font-size: var(--fs-small);
    color: var(--accent-light);
    margin-top: 4px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: var(--fs-small);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.35s var(--ease-out-quart);
}

.footer-back-to-top:hover {
    background: var(--accent-dim);
    border-color: var(--accent);
    color: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.footer-back-to-top svg {
    transition: transform 0.3s ease;
}

.footer-back-to-top:hover svg {
    transform: translateY(-2px);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(30px, 4vw, 60px);
    margin-bottom: clamp(40px, 6vh, 70px);
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-col-wide {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-col-wide {
        grid-column: span 1;
    }
}

.footer-col-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-tertiary);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--fs-body);
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-light);
    transform: translateX(6px);
}

.footer-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: var(--radius-md);
    padding: clamp(20px, 3vw, 32px);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.footer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.footer-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
    font-weight: 500;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #4caf50;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(76, 175, 80, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

.footer-card-text {
    font-size: var(--fs-small);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 18px;
}

.footer-card-email {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-card-email:hover {
    color: var(--accent-light);
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 24px;
    font-size: var(--fs-small);
    color: var(--text-tertiary);
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-divider {
    color: rgba(255, 255, 255, 0.2);
}

.footer-legal-link {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal-link:hover {
    color: var(--text-secondary);
}

/* ============================================
   ART SHOWCASE ("OM") STYLES (FULLSCREEN)
   ============================================ */
.art-showcase {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    padding: 0;
    margin: 0;
    background: #07070b;
    overflow: hidden;
}

.art-showcase-full {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.art-showcase-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.8s var(--ease-out-expo);
}

.art-showcase-full:hover .art-showcase-image {
    transform: scale(1.025);
}

.art-showcase-title {
    position: absolute;
    left: 50%;
    top: 56%;
    z-index: 2;
    width: min(calc(100vw - 64px), 1080px);
    margin: 0;
    font-family: var(--font-body);
    font-size: clamp(3.25rem, 8.8vw, 9.8rem);
    font-weight: 900;
    line-height: 0.84;
    letter-spacing: 0;
    color: #fffdf2;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 8px 34px rgba(26, 38, 18, 0.34);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(-50%, calc(-50% + 240px), 0) scale(0.97);
    will-change: opacity, transform;
    backface-visibility: hidden;
}

@media (max-width: 768px) {
    .art-showcase-title {
        width: calc(100vw - 28px);
        font-size: clamp(2.5rem, 11.8vw, 5.2rem);
    }
}

/* ============================================
   GIANT KINETIC TYPOGRAPHY BANNER STYLES (FOOTER)
   ============================================ */
.giant-typo-section {
    position: relative;
    width: 100%;
    background: transparent;
    color: var(--text-primary);
    padding: clamp(20px, 4vh, 50px) 0;
    margin: clamp(30px, 5vh, 60px) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    user-select: none;
}

.giant-typo-track-wrapper {
    display: flex;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.giant-typo-track {
    display: flex;
    gap: 0.15em;
    animation: giantMarquee 28s linear infinite;
    will-change: transform;
}

.giant-typo-track-wrapper.reverse .giant-typo-track {
    animation-direction: reverse;
}

.giant-typo-text {
    font-family: var(--font-body);
    font-size: clamp(4.5rem, 16vw, 22rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.06em;
    line-height: 0.82;
    color: var(--text-primary);
    display: inline-block;
    padding: 0 0.05em;
}

.giant-typo-text.stroke {
    color: transparent;
    -webkit-text-stroke: 2px rgba(245, 240, 232, 0.35);
}

@keyframes giantMarquee {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}