/* ═══════════════════════════════════════════════════════════════
   Portfolio 2026 — Pure 4:3 Frameless System + Glass Lightbox
   ═══════════════════════════════════════════════════════════════ */

/* ── Global Design Tokens ── */
:root {
    /* Portfolio grid */
    --p-glass-border: rgba(255, 255, 255, 0.1);
    --p-accent: #3b82f6;
    --p-easing: cubic-bezier(0.16, 1, 0.3, 1);
    --p-ratio: 4 / 3;

    /* Lightbox */
    --lb-blur: 60px;
    --lb-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --lb-smooth: cubic-bezier(0.22, 1, 0.36, 1);
    --lb-ease: cubic-bezier(0.4, 0, 0.2, 1);

    /* Kinetic Typography */
    --k-wght: 900;
    --k-stretch: 100%;
    --k-tracking: -0.04em;
}

/* ═══════════════════════════════════
   1. HERO SECTION — Background Layers
   ═══════════════════════════════════ */
.portfolio-hero-2026 {
    position: relative;
    padding: clamp(120px, 14vh, 180px) 0 80px;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

/* Canvas background (gradient blob + noise) */
.hero-canvas-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-mesh-container {
    position: absolute;
    inset: 0;
    filter: blur(100px);
    opacity: 0.6;
    z-index: -1;
}

.mesh-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    mix-blend-mode: screen;
    animation: meshMove 20s infinite alternate;
}

.blob-1 {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    top: -10%;
    left: -10%;
}

.blob-2 {
    background: radial-gradient(circle, rgba(147, 51, 234, 0.2) 0%, transparent 70%);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

.blob-3 {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    top: 50%;
    left: 40%;
    width: 800px;
    height: 800px;
    animation-delay: -10s;
}

.blob-4 {
    background: radial-gradient(circle, rgba(30, 64, 175, 0.25) 0%, transparent 70%);
    bottom: 20%;
    left: 10%;
    animation-delay: -15s;
}

@keyframes meshMove {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    33% {
        transform: translate(100px, 50px) rotate(120deg) scale(1.1);
    }

    66% {
        transform: translate(-50px, 100px) rotate(240deg) scale(0.9);
    }

    100% {
        transform: translate(0, 0) rotate(360deg) scale(1);
    }
}

.hero-noise-overlay {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    background-size: 200px;
    opacity: 0.5;
}

/* Content sits above background */
.hero-content-layer {
    position: relative;
    z-index: 2;
}


/* ═══════════════════════════════════
   1b. HERO — Meta Badge
   ═══════════════════════════════════ */
.hero-meta {
    margin-bottom: 24px;
}

.meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    padding: 8px 20px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.pulsing-icon {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--p-accent);
    box-shadow: 0 0 12px var(--p-accent);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 12px var(--p-accent);
    }

    50% {
        opacity: 0.4;
        box-shadow: 0 0 4px var(--p-accent);
    }
}


/* ═══════════════════════════════════
   1c. HERO — Heading
   ═══════════════════════════════════ */
.hero-main-title {
    margin-bottom: 40px;
}

.hero-main-title h1 {
    font-family: 'Unbounded', sans-serif;
    font-weight: 900;
    /* Reduced size as requested */
    font-size: clamp(2rem, 5vw, 4.2rem);
    line-height: 1.1;
    margin: 0;

    /* OPTION 4: Soft Matte White (No Glow, No Center) */
    color: rgba(255, 255, 255, 0.9);
    /* 90% White */
    text-shadow: none;
    /* No Glow */

    /* Align Center */
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.hero-main-title .line-1 {
    display: block;
    font-size: 0.55em;
    font-weight: 700;
    opacity: 1;
    margin-bottom: 4px;
}

.hero-main-title .line-2 {
    display: block;
    font-size: 0.8em;
    background: linear-gradient(to bottom, #fff 30%, rgba(255, 255, 255, 0.35) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 1;
}






/* ═══════════════════════════════════
   1d. HERO — Bottom Row (Description + Stats)
   ═══════════════════════════════════ */
/* ═══════════════════════════════════
   1c. HERO — HOMEPAGE PATTERN REPLICATION
   ═══════════════════════════════════ */

/* 1. Hero Orb (Background) */
/* 1. Hero Orb (Background) */
.hero-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

/* 1b. Badge Row (Homepage Pattern) */
.hero-badge-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
}

.hero-eyebrow {
    font-size: 0.9rem;
    font-weight: 600;
    color: #3b82f6;
    /* Exact match for var(--highlight) */
    background: rgba(59, 130, 246, 0.1);
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
    /* Added glow for matching effect */
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    padding: 6px 12px;
    border-radius: 100px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 10px #4ade80;
    animation: iconPulse 2s ease-in-out infinite;
}

/* 2. Kinetic Text (Char Split) */
.kinetic-text {
    font-family: 'Unbounded', sans-serif;
    /* Fallback if var not set */
    opacity: 1;
    visibility: visible;
}

.kinetic-text .word {
    display: inline-block;
    overflow: visible;
}

.kinetic-text .char {
    display: inline-block;
    transform: translateY(0);
    opacity: 1;
    color: inherit;
    /* Inherit gradient from parent */
    filter: blur(0);
    transition:
        transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.8s ease,
        filter 1s ease;
    will-change: transform, opacity, filter;
}

/* Initial State (Hidden) */
.reveal .kinetic-text .char {
    transform: translateY(15px);
    opacity: 0;
    filter: blur(10px);
}

/* Reveal State (Visible) */
.reveal.visible .kinetic-text .char {
    transform: translateY(0);
    opacity: 1;
    filter: blur(0);
}


/* 3. General Scroll Reveal (Standard Elements) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(10px);
    transition:
        opacity 1.0s ease,
        transform 1.0s cubic-bezier(0.16, 1, 0.3, 1),
        filter 1.0s ease;
    will-change: opacity, transform, filter;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Stagger Item for Lists */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-description {
    flex: 1 1 100%;
    max-width: 800px;
    text-align: left;
    /* Ensure left alignment */
}

.hero-description p {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.15rem;
    line-height: 1.6;
    /* Applying the DigitalGrowthArchitect blue style */
    color: #3b82f6;
    font-weight: 300;
    /* Modern Light (Not Bold) */
    font-family: 'Unbounded', sans-serif;
    /* Modern Font */
    margin: 0;
    text-shadow: 0 0 15px rgba(59, 130, 246, 0.25);
    /* Glow effect */
    font-size: 1rem;
    /* Slightly smaller for Unbounded */
}

.text-highlight {
    color: #ffffff;
    font-weight: 500;
    /* Distinct but not bold */
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

/* Stats Dashboard */
.hero-stats-dashboard {
    flex: 1 1 320px;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 24px 28px;
}

.dashboard-inner {
    display: flex;
    gap: 0;
}

/* Spatial Actions */
.spatial-card {
    transition: transform 0.2s ease-out;
    will-change: transform;
}

/* Vertical dividers hidden in spatial mode or adjusted */
.stat-unit+.stat-unit::before {
    display: none;
}

.stat-unit {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 16px 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    margin: 0 8px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.stat-unit:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
}

.unit-val {
    display: block;
    font-family: 'Unbounded', sans-serif;
    font-weight: 900;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 6px;
}

.unit-label {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}


/* ═══════════════════════════════════
   2. GALLERY GRID (4:3 Frameless)
   ═══════════════════════════════════ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 150px;
    max-width: 1100px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    aspect-ratio: var(--p-ratio);
    background: #000;
    overflow: hidden;
    cursor: pointer;
    border-radius: 12px;
    /* PERF: explicit properties instead of 'all' */
    transition:
        box-shadow 0.6s var(--p-easing),
        border-color 0.6s var(--p-easing);
    border: 1px solid transparent;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.6s var(--p-easing);
    /* PERF: promote to own layer for filter changes */
    will-change: filter;
}

.gallery-item:hover {
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.4), 0 0 40px rgba(59, 130, 246, 0.1);
    z-index: 10;
    border-color: rgba(59, 130, 246, 0.3);
}

.gallery-item:hover img {
    filter: blur(2px) saturate(1.2) brightness(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0.4) 40%, transparent 100%);
    opacity: 0;
    /* PERF: only animate opacity */
    transition: opacity 0.5s var(--p-easing);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    font-family: 'Space Grotesk', sans-serif;
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: 2px;
}

.gallery-overlay span {
    color: var(--p-accent);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}


/* ═══════════════════════════════════
   3. CONTROL TABS
   ═══════════════════════════════════ */
.portfolio-tabs-shell {
    background: rgba(10, 15, 30, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 100px;
    padding: 4px;
    margin: -30px auto 50px;
    max-width: fit-content;
    border: 1px solid var(--p-glass-border);
}

.tab-btn {
    padding: 10px 28px;
    border-radius: 100px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

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


/* ═══════════════════════════════════
   3b. VIDEO GALLERY GRID
   ═══════════════════════════════════ */
.video-gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding-bottom: 120px;
    max-width: 1400px;
    margin: 0 auto;
}

.video-item {
    position: relative;
    aspect-ratio: 9 / 16;
    background: #000;
    overflow: hidden;
    cursor: pointer;
    border-radius: 12px;
    border: 1px solid transparent;
    transition:
        box-shadow 0.5s var(--p-easing),
        border-color 0.5s var(--p-easing);
}

.video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    transition: filter 0.5s var(--p-easing);
}

.video-item:hover {
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4), 0 0 40px rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
}

.video-item:hover video {
    filter: brightness(0.6) saturate(1.2);
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: opacity 0.4s var(--p-easing);
    pointer-events: none;
}

.video-item:hover .video-overlay {
    opacity: 1;
}

.video-play-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
    transition: transform 0.3s var(--p-easing);
}

.video-item:hover .video-play-icon {
    transform: scale(1.08);
}

.video-info {
    text-align: center;
}

.video-info h4 {
    font-family: 'Space Grotesk', sans-serif;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 2px;
}

.video-info span {
    font-size: 0.68rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}


/* ═══════════════════════════════════
   4. LIGHTBOX — Backdrop
   PERF: blur via pseudo-element (compositor-only opacity animation)
   ═══════════════════════════════════ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Dark tint — animates opacity only (cheap) */
.lightbox::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(2, 4, 12, 0.75);
    backdrop-filter: blur(var(--lb-blur)) saturate(1.3);
    -webkit-backdrop-filter: blur(var(--lb-blur)) saturate(1.3);
    opacity: 0;
    transition: opacity 0.5s var(--lb-ease);
    z-index: -1;
}

.lightbox.active {
    display: flex;
}

.lightbox.active::before {
    opacity: 1;
}


/* ═══════════════════════════════════
   5. LIGHTBOX — Viewer Shell
   ═══════════════════════════════════ */
.viewer-shell {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: auto;
}

.tablet-viewer {
    position: relative;
    width: clamp(300px, 82vw, 680px);
    aspect-ratio: 4 / 3;
    /* PERF: solid dark bg instead of nested backdrop-filter */
    background: rgba(8, 8, 14, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 6px;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 0 120px rgba(59, 130, 246, 0.04);
    transform: scale(0.92) translateY(12px);
    opacity: 0;
    transition:
        transform 0.55s var(--lb-spring),
        opacity 0.4s ease;
    will-change: transform, opacity;
}

.lightbox.active .tablet-viewer {
    transform: scale(1) translateY(0);
    opacity: 1;
}


/* ═══════════════════════════════════
   6. LIGHTBOX — Image Canvas & Track
   ═══════════════════════════════════ */
.tablet-horizon {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 22px;
    overflow: hidden;
    background: #050508;
}

.tablet-track {
    display: flex;
    height: 100%;
    will-change: transform;
}

.tablet-track.is-dragging {
    cursor: grabbing;
    transition: none !important;
}


/* ═══════════════════════════════════
   7. LIGHTBOX — Slides
   Features: Skeleton Shimmer | Depth Morphing
   ═══════════════════════════════════ */
.tablet-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transform: scale(0.92);
    opacity: 0.4;
    transition:
        transform 0.45s var(--lb-smooth),
        opacity 0.45s var(--lb-smooth);
    will-change: transform, opacity;
}

.tablet-slide.is-active {
    transform: scale(1);
    opacity: 1;
}

/* Skeleton shimmer — ONLY on unloaded slides */
.tablet-slide:not(.is-loaded)::before {
    content: '';
    position: absolute;
    inset: 8%;
    border-radius: 12px;
    background: linear-gradient(110deg,
            rgba(255, 255, 255, 0.03) 0%,
            rgba(255, 255, 255, 0.06) 40%,
            rgba(255, 255, 255, 0.03) 60%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.tablet-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.tablet-slide.is-loaded img {
    opacity: 1;
}


/* ═══════════════════════════════════
   8. LIGHTBOX — Progress Bar
   ═══════════════════════════════════ */
.viewer-progress {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
    margin-top: -8px;
}

.viewer-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--p-accent), rgba(99, 155, 255, 0.8));
    border-radius: 2px;
    width: 0%;
    transition: width 0.4s var(--lb-smooth);
    will-change: width;
}


/* ═══════════════════════════════════
   9. LIGHTBOX — Info Strip (bottom overlay)
   ═══════════════════════════════════ */
.viewer-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 20px 14px;
    background: linear-gradient(to top, rgba(2, 4, 12, 0.85) 0%, transparent 100%);
    border-radius: 0 0 22px 22px;
    text-align: center;
    z-index: 15;
    opacity: 0;
    transform: translateY(4px);
    transition:
        opacity 0.4s ease 0.15s,
        transform 0.4s var(--lb-spring) 0.15s;
    pointer-events: none;
}

.lightbox.active .viewer-info {
    opacity: 1;
    transform: translateY(0);
}

.viewer-info h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}


/* ═══════════════════════════════════
   10. LIGHTBOX — Navigation Arrows
   ═══════════════════════════════════ */
.tablet-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    /* PERF: solid bg instead of nested backdrop-filter */
    background: rgba(12, 12, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s var(--lb-spring);
    z-index: 10100;
}

.tablet-nav:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    color: #fff;
    transform: translateY(-50%) scale(1.08);
}

.tablet-nav:active {
    transform: translateY(-50%) scale(0.95);
    transition-duration: 0.1s;
}

.tablet-prev {
    left: -64px;
}

.tablet-next {
    right: -64px;
}


/* ═══════════════════════════════════
   11. LIGHTBOX — Close Button & Counter
   ═══════════════════════════════════ */
.tablet-close {
    position: absolute;
    top: -52px;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.45);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
    padding: 0;
    line-height: 1;
}

.tablet-close:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.deck-counter {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.08em;
    margin-top: -4px;
}


/* ═══════════════════════════════════
   12. RESPONSIVE — Unified Breakpoints
   1024 → 900 → 768 → 480
   ═══════════════════════════════════ */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 20px 100px;
    }

    .video-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 900px) {

    /* Lightbox nav inset */
    .tablet-prev {
        left: 8px;
    }

    .tablet-next {
        right: 8px;
    }

    .tablet-nav {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        font-size: 1.1rem;
        background: rgba(0, 0, 0, 0.5);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .tablet-close {
        top: -44px;
        right: 4px;
    }

    /* Hero responsive */
    .hero-bottom-row {
        flex-direction: column;
        gap: 28px;
    }

    .hero-description {
        max-width: 100%;
    }

    .hero-stats-dashboard {
        max-width: 100%;
    }

    /* Video lightbox close */
    .video-lightbox .lightbox-close {
        top: -44px;
        right: 4px;
    }
}

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

    .video-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Hero compact */
    .portfolio-hero-2026 {
        padding: clamp(100px, 12vh, 140px) 0 50px;
        min-height: 50vh;
    }

    .kinetic-heading {
        font-size: clamp(2rem, 9vw, 3.5rem);
    }

    .kinetic-heading .line-1 {
        font-size: 0.6em;
    }

    .hero-main-title {
        margin-bottom: 28px;
    }

    .dashboard-inner {
        flex-wrap: wrap;
    }

    .stat-unit {
        flex: 1 1 33%;
        min-width: 0;
    }

    /* Footer dock stacking */
    .footer-dock {
        flex-direction: column;
        padding: 16px 20px;
        border-radius: 24px;
        gap: 16px;
    }

    .footer-brand {
        border-right: none;
        padding: 0;
    }

    .footer-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {

    /* Image lightbox compact */
    .tablet-viewer {
        width: 94vw;
        border-radius: 20px;
        padding: 4px;
    }

    .tablet-horizon {
        border-radius: 16px;
    }

    .tablet-nav {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: 1rem;
    }

    .viewer-info {
        padding: 20px 14px 10px;
    }

    .viewer-info h4 {
        font-size: 0.85rem;
    }

    /* Hero micro */
    .meta-tag {
        font-size: 0.6rem;
        padding: 6px 14px;
    }

    .unit-val {
        font-size: 1.2rem;
    }

    .unit-label {
        font-size: 0.58rem;
    }

    .hero-stats-dashboard {
        padding: 16px;
    }

    /* Video lightbox compact */
    .video-lightbox-panel {
        width: 95vw;
        border-radius: 18px;
    }

    .video-lightbox-panel video {
        border-radius: 14px;
    }

    .video-lightbox .lightbox-close {
        top: -40px;
        right: 4px;
    }
}


/* ═══════════════════════════════════
   13. UTILITIES
   ═══════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.8s var(--p-easing);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ═══════════════════════════════════
   14. FOOTER OVERRIDES (portfolio-specific)
   Fixes conflicts from home-main.css duplicates
   ═══════════════════════════════════ */
/* Global Footer Styles inherited from home-main.css */



/* ═══════════════════════════════════
   16. VIDEO LIGHTBOX (Vertical/Portrait Mode)
   ═══════════════════════════════════ */
.video-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.video-lightbox::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(2, 4, 12, 0.9);
    backdrop-filter: blur(20px);
    z-index: -1;
}

.video-lightbox.active {
    display: flex;
}

.video-lightbox-panel {
    position: relative;
    width: auto;
    height: 85vh;
    aspect-ratio: 9/16;
    max-width: 90vw;
    background: #000;
    border-radius: 20px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-lightbox-panel video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

/* Close button - Top Right Outside or Corner */
.video-lightbox .lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}

.video-lightbox .lightbox-close:hover {
    background: rgba(239, 68, 68, 0.8);
    border-color: #ef4444;
}

/* Metadata - Subtle Side Caption */
.video-lightbox-meta {
    position: absolute;
    bottom: 30px;
    left: 30px;
    max-width: 300px;
    color: #fff;
    z-index: 10;
    text-align: left;
    pointer-events: none;
    background: none;
}

.video-lightbox-meta h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 2px;
    color: var(--p-accent);
}

.video-lightbox-meta p {
    font-size: 0.75rem;
    opacity: 0.6;
    margin: 0;
    font-weight: 500;
    line-height: 1.4;
}

/* Navigation Controls - Side Flanks */
.video-lightbox-controls {
    position: absolute;
    inset: 0;
    pointer-events: none;
    /* Let clicks pass through to video/meta */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.video-nav-prev,
.video-nav-next {
    pointer-events: auto;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s var(--lb-smooth);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.video-nav-prev {
    left: -75px;
}

.video-nav-next {
    right: -75px;
}

.video-nav-prev:hover,
.video-nav-next:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: var(--p-accent);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
    transform: translateY(-50%) scale(1.12);
}

/* Mobile Adjustments for Controls */
@media (max-width: 768px) {
    .video-lightbox-panel {
        width: 100%;
        height: 100%;
        max-width: 100%;
        border-radius: 0;
    }

    .video-lightbox-panel video {
        border-radius: 0;
    }

    .video-nav-prev,
    .video-nav-next {
        position: absolute;
        top: auto;
        bottom: 30px;
        transform: none;
        width: 44px;
        height: 44px;
        background: rgba(0, 0, 0, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .video-nav-prev {
        left: 20px;
    }

    .video-nav-next {
        right: 20px;
    }

    .video-nav-prev:hover,
    .video-nav-next:hover {
        transform: scale(1);
    }

    .video-lightbox-meta {
        bottom: 80px;
        /* Push up above buttons */
    }
}