/* ============================================
   DIPTANU DEBNATH — PORTFOLIO HERO
   Premium Editorial Design System
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Monochrome palette with accent */
    --bg-primary: #f5f3f0;
    --bg-secondary: #eae7e2;
    --text-primary: #0a0a0a;
    --text-secondary: #3a3a3a;
    --text-muted: #8a8a8a;
    --accent: #0a0a0a;
    --accent-subtle: rgba(10, 10, 10, 0.06);
    --white: #ffffff;
    --border: rgba(10, 10, 10, 0.1);

    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;
    --space-3xl: 8rem;

    /* Transitions */
    --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-quart: cubic-bezier(0.76, 0, 0.24, 1);
    --duration-fast: 0.3s;
    --duration-medium: 0.6s;
    --duration-slow: 1s;
    --duration-slower: 1.6s;

    /* Layout */
    --nav-height: 80px;
    --container-padding: clamp(1.5rem, 4vw, 4rem);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    cursor: none;
}

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

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

/* ---------- Custom Cursor ---------- */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 9px;
    height: 9px;
    background: #0a0a0a;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 1.2px rgba(245, 243, 240, 0.8), 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: width 0.2s var(--ease-out-expo),
        height 0.2s var(--ease-out-expo),
        background-color 0.2s,
        box-shadow 0.2s,
        opacity 0.2s;
}

.custom-cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 38px;
    height: 38px;
    border: 1.5px solid rgba(10, 10, 10, 0.65);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
    transition: width 0.35s var(--ease-out-expo),
        height 0.35s var(--ease-out-expo),
        border-color 0.25s,
        background-color 0.25s,
        box-shadow 0.25s,
        opacity 0.2s;
}

.custom-cursor.cursor-hover {
    width: 14px;
    height: 14px;
    background: #0a0a0a;
}

.custom-cursor-follower.cursor-hover {
    width: 52px;
    height: 52px;
    border-color: rgba(10, 10, 10, 0.85);
    background-color: rgba(10, 10, 10, 0.07);
}

/* ---------- Noise Overlay ---------- */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.03;
    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: 256px 256px;
}

/* ---------- Preloader ---------- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--text-primary);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 1.2s var(--ease-in-out-quart);
}

.preloader.done {
    transform: translateY(-100%);
}

.preloader-inner {
    text-align: center;
    position: relative;
}

.preloader-text {
    display: flex;
    gap: 0.1em;
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--bg-primary);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    overflow: hidden;
}

.preloader-letter {
    display: inline-block;
    transform: translateY(110%);
    animation: preloaderLetterIn 0.6s var(--ease-out-expo) forwards;
    animation-delay: calc(var(--i) * 0.06s + 0.2s);
}

@keyframes preloaderLetterIn {
    to {
        transform: translateY(0);
    }
}

.preloader-counter {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    margin-top: var(--space-md);
    opacity: 0;
    animation: fadeIn 0.5s 0.8s forwards;
}

.preloader-line {
    position: absolute;
    bottom: -20px;
    left: 0;
    height: 1px;
    background: var(--bg-primary);
    width: 0%;
    transition: width 0.1s linear;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ---------- Navigation ---------- */
.nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--container-padding);
    z-index: 100;
    mix-blend-mode: difference;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    opacity: 0;
    transform: translateY(-20px);
}

.revealed .nav-brand {
    animation: navItemIn 0.8s var(--ease-out-expo) 0.3s forwards;
}

.nav-brand-symbol {
    font-size: 1.25rem;
    color: var(--white);
}

.nav-brand-text {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--white);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: var(--space-xl);
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--white);
    position: relative;
    padding: 0.25rem 0;
    opacity: 0;
    transform: translateY(-20px);
    cursor: none;
}

.revealed .nav-link {
    animation: navItemIn 0.8s var(--ease-out-expo) forwards;
}

.revealed .nav-link:nth-child(1) {
    animation-delay: 0.4s;
}

.revealed .nav-link:nth-child(2) {
    animation-delay: 0.5s;
}

.revealed .nav-link:nth-child(3) {
    animation-delay: 0.6s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--white);
    transition: width 0.4s var(--ease-out-expo);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    opacity: 0;
    transform: translateY(-20px);
}

.revealed .nav-cta {
    animation: navItemIn 0.8s var(--ease-out-expo) 0.7s forwards;
}

.nav-cta-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    background: var(--white);
    padding: 0.625rem 1.25rem;
    border-radius: 100px;
    transition: all 0.4s var(--ease-out-expo);
    cursor: none;
}

.nav-cta-btn:hover {
    background: var(--text-primary);
    color: var(--white);
    transform: scale(1.05);
}

.nav-cta-btn svg {
    transition: transform 0.3s var(--ease-out-expo);
}

.nav-cta-btn:hover svg {
    transform: translateX(3px);
}

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

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hero-content {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--nav-height) var(--container-padding) 0;
}

/* ---------- Giant Name — Back Layer ---------- */
.hero-name-back {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    pointer-events: none;
    user-select: none;
    z-index: 1;
}

.hero-name-line {
    overflow: hidden;
    line-height: 0.88;
}

.hero-name-word {
    display: inline-block;
    font-family: var(--font-display);
    font-size: clamp(5rem, 14vw, 16rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    transform: translateY(110%);
}

.hero-name-back .hero-name-word {
    color: var(--text-primary);
}

.hero-name-line-1 {
    transform: translateX(-50%);
    opacity: 0;
}

.hero-name-line-2 {
    transform: translateX(50%);
    opacity: 0;
}

/* Animations triggered after preloader */
.revealed .hero-name-word {
    animation: nameReveal 1.2s var(--ease-out-expo) forwards;
}

.revealed .hero-name-line-1 .hero-name-word {
    animation-delay: 0.1s;
}

.revealed .hero-name-line-2 .hero-name-word {
    animation-delay: 0.25s;
}

.revealed .hero-name-line-1 {
    animation: slideFromLeft 1.4s var(--ease-out-expo) forwards;
}

.revealed .hero-name-line-2 {
    animation: slideFromRight 1.4s var(--ease-out-expo) 0.15s forwards;
}

@keyframes nameReveal {
    to {
        transform: translateY(0);
    }
}

@keyframes slideFromLeft {
    to {
        transform: translateX(-12%);
        opacity: 1;
    }
}

@keyframes slideFromRight {
    to {
        transform: translateX(12%);
        opacity: 1;
    }
}

/* ---------- Photo Layer ---------- */
.hero-photo-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-top: -18vh;
}

.hero-photo {
    position: relative;
    width: clamp(540px, 62vw, 950px);
    height: auto;
    opacity: 0;
    transform: translateY(60px) scale(0.95);
}

.revealed .hero-photo {
    animation: photoReveal 1.4s var(--ease-out-expo) 0.2s forwards;
}

.hero-photo-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) contrast(1.08);
    transition: filter 0.6s var(--ease-out-expo);
}

.hero-photo:hover .hero-photo-img {
    filter: grayscale(0%) contrast(1.05);
}

.hero-photo-glow {
    position: absolute;
    bottom: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(10, 10, 10, 0.06) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

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

/* ---------- Role Titles ---------- */
.hero-roles {
    position: absolute;
    bottom: clamp(80px, 12vh, 140px);
    right: var(--container-padding);
    z-index: 5;
    text-align: right;
}

.hero-role-line {
    overflow: hidden;
}

.hero-role {
    display: inline-block;
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.75rem);
    font-weight: 300;
    letter-spacing: 0.01em;
    color: var(--text-secondary);
    transform: translateY(110%);
    line-height: 1.5;
}

.revealed .hero-role {
    animation: roleReveal 0.8s var(--ease-out-expo) forwards;
}

.revealed .hero-role-line:nth-child(1) .hero-role {
    animation-delay: 0.8s;
}

.revealed .hero-role-line:nth-child(2) .hero-role {
    animation-delay: 0.95s;
}

@keyframes roleReveal {
    to {
        transform: translateY(0);
    }
}

/* ---------- Social Links ---------- */
.hero-socials {
    position: absolute;
    left: var(--container-padding);
    bottom: clamp(80px, 12vh, 140px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    z-index: 5;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-primary);
    transition: all 0.4s var(--ease-out-expo);
    opacity: 0;
    transform: translateY(20px);
    animation: socialIn 0.6s var(--ease-out-expo) forwards;
    cursor: none;
    position: relative;
}

.revealed .social-link {
    animation: socialIn 0.6s var(--ease-out-expo) forwards;
}

.revealed .social-link:nth-child(1) {
    animation-delay: 0.9s;
}

.revealed .social-link:nth-child(2) {
    animation-delay: 1.0s;
}

.revealed .social-link:nth-child(3) {
    animation-delay: 1.1s;
}

.revealed .social-link:nth-child(4) {
    animation-delay: 1.2s;
}

.social-link:hover {
    background: var(--text-primary);
    color: var(--white);
    border-color: var(--text-primary);
    transform: translateY(-3px) scale(1.1);
}

.social-line {
    width: 1px;
    height: 50px;
    background: var(--border);
    opacity: 0;
}

.revealed .social-line {
    animation: socialIn 0.6s var(--ease-out-expo) 1.3s forwards;
}

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

/* ---------- Scroll Indicator ---------- */
.hero-scroll {
    position: absolute;
    right: var(--container-padding);
    bottom: clamp(80px, 12vh, 140px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    z-index: 5;
    opacity: 0;
    animation: fadeIn 0.6s var(--ease-out-expo) 2.8s forwards;
    display: none;
    /* hidden on bottom-right, we use marquee instead */
}

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

.hero-scroll-text {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    writing-mode: vertical-rl;
}

@keyframes scrollPulse {

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

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

/* ---------- Floating Tags ---------- */
.floating-tags {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
}

.floating-tag {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(10, 10, 10, 0.06);
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(20px);
    animation: tagFloat 0.8s var(--ease-out-expo) forwards;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    pointer-events: auto;
    cursor: none;
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s;
}

.floating-tag:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.tag-icon {
    font-size: 1rem;
}

.tag-1 {
    top: 22%;
    left: 8%;
    animation-delay: 2.6s;
}

.tag-2 {
    top: 18%;
    right: 8%;
    animation-delay: 2.8s;
}

.tag-3 {
    bottom: 32%;
    left: 12%;
    animation-delay: 3.0s;
}

.tag-4 {
    bottom: 28%;
    right: 10%;
    animation-delay: 3.2s;
}

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

/* Continuous gentle float — triggered after preloader */
.revealed .tag-1 {
    animation: tagFloat 0.8s var(--ease-out-expo) 1.1s forwards, tagHover1 6s ease-in-out 1.9s infinite;
}

.revealed .tag-2 {
    animation: tagFloat 0.8s var(--ease-out-expo) 1.3s forwards, tagHover2 7s ease-in-out 2.1s infinite;
}

.revealed .tag-3 {
    animation: tagFloat 0.8s var(--ease-out-expo) 1.5s forwards, tagHover3 5s ease-in-out 2.3s infinite;
}

.revealed .tag-4 {
    animation: tagFloat 0.8s var(--ease-out-expo) 1.7s forwards, tagHover4 8s ease-in-out 2.5s infinite;
}

@keyframes tagHover1 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(8px, -12px);
    }
}

@keyframes tagHover2 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-10px, -8px);
    }
}

@keyframes tagHover3 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(6px, 10px);
    }
}

@keyframes tagHover4 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-8px, -14px);
    }
}

/* ---------- Status Badge ---------- */
.status-badge {
    position: absolute;
    top: calc(var(--nav-height) + var(--space-lg));
    left: var(--container-padding);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    z-index: 5;
    opacity: 0;
}

.revealed .status-badge {
    animation: fadeIn 0.6s var(--ease-out-expo) 1.0s forwards;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }
}

/* ---------- Marquee ---------- */
.hero-marquee {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--space-md) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 5;
    background: linear-gradient(90deg, #450a0a 0%, #6b1016 50%, #450a0a 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 20px rgba(69, 10, 10, 0.2);
    opacity: 0;
}

.revealed .hero-marquee {
    animation: fadeIn 0.5s var(--ease-out-expo) 1.1s forwards;
}

.marquee-track {
    display: flex;
    gap: var(--space-lg);
    white-space: nowrap;
    animation: marqueeScroll 25s linear infinite;
    width: max-content;
}

.marquee-item {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: #fee2e2;
    text-shadow: 0 0 12px rgba(239, 68, 68, 0.35);
}

.marquee-separator {
    font-size: 0.65rem;
    color: #f87171;
    opacity: 0.9;
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

@keyframes marqueeScroll {
    from {
        transform: translateX(0);
    }

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

/* ============================================
   DRONE 360° SCROLL ANIMATION SECTION
   ============================================ */

.drone-sequence {
    position: relative;
    /* Tall section to give enough scroll room for 300 frames */
    height: 500vh;
    background: var(--bg-primary);
}

.drone-canvas-container {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-primary);
}

#droneCanvas {
    position: relative;
    z-index: 2;
    max-width: 65%;
    max-height: 70vh;
    object-fit: contain;
    /* blend with bg */
    mix-blend-mode: multiply;
    filter: contrast(1.05) saturate(1.1);
    transition: filter 0.3s ease;
}

/* --- Particle canvas behind drone --- */
.drone-particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* --- Ambient glow --- */
.drone-ambient-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle,
            rgba(255, 100, 50, 0.08) 0%,
            rgba(255, 80, 40, 0.04) 30%,
            transparent 70%);
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0.7;
    }
}

/* --- Scan line sweeping effect --- */
.drone-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 100, 50, 0.0) 20%,
            rgba(255, 100, 50, 0.5) 50%,
            rgba(255, 100, 50, 0.0) 80%,
            transparent 100%);
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    animation: scanSweep 4s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(255, 100, 50, 0.3), 0 0 60px rgba(255, 100, 50, 0.1);
}

@keyframes scanSweep {
    0% {
        top: -2px;
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* ============================================
   HUD OVERLAY
   ============================================ */

.drone-hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.drone-hud.active {
    opacity: 1;
}

/* --- Corner brackets --- */
.hud-corner {
    position: absolute;
    width: 40px;
    height: 40px;
}

.hud-bracket-h {
    position: absolute;
    width: 100%;
    height: 1px;
    background: rgba(10, 10, 10, 0.25);
}

.hud-bracket-v {
    position: absolute;
    width: 1px;
    height: 100%;
    background: rgba(10, 10, 10, 0.25);
}

.hud-corner-tl {
    top: 40px;
    left: 40px;
}

.hud-corner-tl .hud-bracket-h {
    top: 0;
    left: 0;
}

.hud-corner-tl .hud-bracket-v {
    top: 0;
    left: 0;
}

.hud-corner-tr {
    top: 40px;
    right: 40px;
}

.hud-corner-tr .hud-bracket-h {
    top: 0;
    right: 0;
}

.hud-corner-tr .hud-bracket-v {
    top: 0;
    right: 0;
}

.hud-corner-bl {
    bottom: 40px;
    left: 40px;
}

.hud-corner-bl .hud-bracket-h {
    bottom: 0;
    left: 0;
}

.hud-corner-bl .hud-bracket-v {
    bottom: 0;
    left: 0;
}

.hud-corner-br {
    bottom: 40px;
    right: 40px;
}

.hud-corner-br .hud-bracket-h {
    bottom: 0;
    right: 0;
}

.hud-corner-br .hud-bracket-v {
    bottom: 0;
    right: 0;
}

/* --- Telemetry readouts --- */
.hud-telemetry {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hud-telemetry-left {
    top: 100px;
    left: 50px;
}

.hud-telemetry-right {
    top: 100px;
    right: 50px;
    text-align: right;
}

.hud-data-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
}

.hud-telemetry-right .hud-data-row {
    justify-content: flex-end;
}

.hud-label {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    min-width: 50px;
}

.hud-value {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.hud-value-active {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary);
}

.hud-status-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ff6432;
    animation: hudDotPulse 1.5s ease-in-out infinite;
}

@keyframes hudDotPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 100, 50, 0.6);
        opacity: 1;
    }

    50% {
        box-shadow: 0 0 0 5px rgba(255, 100, 50, 0);
        opacity: 0.6;
    }
}

/* --- Center crosshair --- */
.hud-crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    opacity: 0.15;
}

.hud-crosshair-h {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--text-primary);
    transform: translateY(-50%);
}

.hud-crosshair-v {
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background: var(--text-primary);
    transform: translateX(-50%);
}

.hud-crosshair-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 1px solid var(--text-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: crosshairSpin 10s linear infinite;
}

@keyframes crosshairSpin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* --- Bottom title bar --- */
.hud-title-bar {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
    white-space: nowrap;
}

.hud-title-accent {
    font-size: 0.7rem;
    font-weight: 600;
    color: #ff6432;
    letter-spacing: 0.05em;
}

.hud-title-text {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* --- Progress bar --- */
.hud-progress-track {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: rgba(10, 10, 10, 0.08);
    border-radius: 2px;
    overflow: visible;
}

.hud-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #ff6432, #ff8c64);
    border-radius: 2px;
    transition: width 0.05s linear;
    box-shadow: 0 0 8px rgba(255, 100, 50, 0.4);
}

.hud-progress-label {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

/* --- Scroll hint --- */
.drone-scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 10;
    opacity: 0;
    animation: fadeIn 0.8s ease 1s forwards;
}

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

.drone-scroll-hint-text {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ============================================
   DRONE SCROLL-REVEAL BOLD TEXT
   ============================================ */

.drone-text-column {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.drone-text-left {
    left: clamp(20px, 4vw, 60px);
    align-items: flex-start;
}

.drone-text-right {
    right: clamp(20px, 4vw, 60px);
    align-items: flex-end;
    text-align: right;
}

/* Each text block — stacked words */
.drone-bold-text {
    display: flex;
    flex-direction: column;
    gap: 0px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    /* HIDDEN state — scaled down, blurred, invisible */
    opacity: 0;
    filter: blur(12px);
    transition: opacity 0.55s var(--ease-out-expo),
        filter 0.55s var(--ease-out-expo);
}

.drone-text-left .drone-bold-text {
    left: 0;
}

.drone-text-right .drone-bold-text {
    right: 0;
}

/* ACTIVE state — fully visible */
.drone-bold-text.active {
    opacity: 1;
    filter: blur(0px);
}

/* Each word inside the block */
.dbt-word {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.2vw, 3.4rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--text-primary);
    line-height: 1.0;
    display: block;
    opacity: 0;
    transform: translateY(20px) scaleY(0.8);
    transition: opacity 0.4s var(--ease-out-expo),
        transform 0.5s var(--ease-out-expo);
}

/* Stagger each word by nth-child — up to 4 words */
.drone-bold-text.active .dbt-word:nth-child(2) {
    transition-delay: 0.08s;
}

.drone-bold-text.active .dbt-word:nth-child(3) {
    transition-delay: 0.16s;
}

.drone-bold-text.active .dbt-word:nth-child(4) {
    transition-delay: 0.24s;
}

.drone-bold-text.active .dbt-word {
    opacity: 1;
    transform: translateY(0) scaleY(1);
}

/* Highlighted / accent word — outlined text with orange */
.dbt-highlight {
    color: transparent !important;
    -webkit-text-stroke: 1.5px #ff6432;
}

/* The // accent marker */
.dbt-accent {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #ff6432;
    margin-bottom: 6px;
    display: block;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s var(--ease-out-expo),
        transform 0.3s var(--ease-out-expo);
}

.drone-text-right .dbt-accent {
    transform: translateX(10px);
    margin-bottom: 0;
    margin-top: 6px;
    order: 99;
    /* push to bottom */
}

.drone-bold-text.active .dbt-accent {
    opacity: 1;
    transform: translateX(0);
}

/* Subtle glow effect on active text */
.drone-bold-text.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 160%;
    height: 200%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(255, 100, 50, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    animation: textGlowPulse 2s ease-in-out infinite;
}

@keyframes textGlowPulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* Decorative vertical line beside column */
.drone-text-left::before,
.drone-text-right::before {
    content: '';
    position: absolute;
    top: -30px;
    height: calc(100% + 60px);
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(10, 10, 10, 0.06) 20%, rgba(10, 10, 10, 0.06) 80%, transparent);
    pointer-events: none;
}

.drone-text-left::before {
    right: -20px;
}

.drone-text-right::before {
    left: -20px;
}

/* --- CRT-style fine scanlines overlay on canvas --- */
.drone-canvas-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(10, 10, 10, 0.015) 2px,
            rgba(10, 10, 10, 0.015) 4px);
    pointer-events: none;
    z-index: 8;
}

/* ---------- Parallax / Mouse move (applied via JS) ---------- */

/* ---------- Media Queries ---------- */
@media (max-width: 1024px) {
    .floating-tag {
        display: none;
    }

    .hero-name-word {
        font-size: clamp(4rem, 12vw, 10rem);
    }

    .hero-photo {
        width: clamp(320px, 55vw, 500px);
    }

    #droneCanvas {
        max-width: 80%;
    }

    .hud-telemetry {
        display: none;
    }

    .hud-corner {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .hero-name-word {
        font-size: clamp(3rem, 15vw, 6rem);
    }

    .hero-photo {
        width: clamp(280px, 65vw, 420px);
    }

    .hero-roles {
        right: var(--container-padding);
        bottom: 100px;
        text-align: right;
    }

    .hero-role {
        font-size: clamp(0.875rem, 3.5vw, 1.25rem);
    }

    .hero-socials {
        left: var(--container-padding);
        bottom: 100px;
        flex-direction: row;
        gap: var(--space-sm);
    }

    .social-line {
        width: 40px;
        height: 1px;
    }

    .status-badge {
        display: none;
    }

    #droneCanvas {
        max-width: 90%;
    }

    .drone-hud {
        display: none;
    }

    .drone-sequence {
        height: 350vh;
    }
}

@media (max-width: 480px) {
    .hero-name-word {
        font-size: clamp(2.5rem, 18vw, 4.5rem);
    }

    .hero-photo {
        width: clamp(240px, 75vw, 340px);
    }

    .hero-socials {
        bottom: 80px;
    }

    .hero-roles {
        bottom: 80px;
    }

    .drone-sequence {
        height: 250vh;
    }

    #droneCanvas {
        max-width: 95%;
    }
}

/* ---------- Selection ---------- */
::selection {
    background: var(--text-primary);
    color: var(--bg-primary);
}

/* ============================================
   WEB DESIGNER & FRONTEND DEVELOPER INTRO
   Section between Hero and Drone
   ============================================ */

.webdev-intro {
    position: relative;
    width: 100%;
    padding: clamp(5rem, 9vw, 9rem) 0;
    background-color: var(--bg-primary);
    overflow: hidden;
}

/* Ambient grid background */
.webdev-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(to right, rgba(10, 10, 10, 0.028) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(10, 10, 10, 0.028) 1px, transparent 1px);
    background-size: 55px 55px;
    mask-image: radial-gradient(ellipse at 40% 50%, black 25%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 40% 50%, black 25%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* Floating ambient orbs */
.webdev-glow-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    filter: blur(60px);
}

.webdev-glow-1 {
    top: 10%;
    right: -5%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(10, 10, 10, 0.03) 0%, transparent 70%);
    animation: webdevOrbFloat 12s ease-in-out infinite;
}

.webdev-glow-2 {
    bottom: 15%;
    left: -8%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(10, 10, 10, 0.025) 0%, transparent 70%);
    animation: webdevOrbFloat 16s ease-in-out infinite reverse;
}

@keyframes webdevOrbFloat {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(20px, -15px);
    }

    66% {
        transform: translate(-15px, 10px);
    }
}

.webdev-container {
    position: relative;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    z-index: 2;
}

/* --- Header --- */
.webdev-header {
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.webdev-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border);
}

/* Cyber Dev Badge & Animations */
.cyber-dev-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1.15rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(10, 10, 10, 0.12);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: default;
    transition: all 0.35s var(--ease-out-expo);
}

.cyber-dev-badge:hover {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 24px rgba(239, 68, 68, 0.25), 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.dev-title-text {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--text-primary);
    text-transform: uppercase;
    transition: text-shadow 0.3s;
}

.cyber-dev-badge:hover .dev-title-text {
    animation: cyberGlitchDev 0.35s ease infinite alternate;
}

@keyframes cyberGlitchDev {
    0% {
        text-shadow: 1.5px 0 0 rgba(239, 68, 68, 0.8), -1.5px 0 0 rgba(236, 72, 153, 0.8);
    }

    100% {
        text-shadow: -1.5px 0 0 rgba(239, 68, 68, 0.8), 1.5px 0 0 rgba(236, 72, 153, 0.8);
    }
}

.dev-scan-beam {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.3), rgba(248, 113, 113, 0.4), transparent);
    animation: devLaserSweep 3.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    pointer-events: none;
}

@keyframes devLaserSweep {

    0%,
    20% {
        left: -100%;
    }

    50%,
    70% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

.webdev-tagline {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.online-pulse-beacon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    position: relative;
    box-shadow: 0 0 8px #10b981;
}

.pulse-core {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid #10b981;
    animation: beaconPulse 1.8s ease-out infinite;
}

@keyframes beaconPulse {
    0% {
        transform: scale(0.6);
        opacity: 1;
    }

    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.dev-fps-badge {
    font-family: monospace;
    font-size: 0.65rem;
    font-weight: 700;
    color: #059669;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 0.08em;
}

/* Headline Wrapper & Viewfinder Reticles */
.webdev-headline-wrapper {
    position: relative;
    padding: 1.5rem 1.8rem;
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(10, 10, 10, 0.05);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.15));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.4s var(--ease-out-expo);
}

.webdev-headline-wrapper:hover {
    border-color: rgba(239, 68, 68, 0.35);
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.06);
}

.webdev-headline-wrapper:hover .viewfinder-bracket {
    border-color: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.webdev-headline-wrapper:hover .viewfinder-bracket.tl {
    transform: translate(-3px, -3px);
}

.webdev-headline-wrapper:hover .viewfinder-bracket.tr {
    transform: translate(3px, -3px);
}

.webdev-headline-wrapper:hover .viewfinder-bracket.bl {
    transform: translate(-3px, 3px);
}

.webdev-headline-wrapper:hover .viewfinder-bracket.br {
    transform: translate(3px, 3px);
}

.webdev-headline {
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    margin-bottom: 0;
}

.headline-word.design-word {
    display: inline-block;
    position: relative;
    transition: transform 0.3s;
}

.headline-word.develop-word {
    display: inline-block;
    -webkit-text-stroke: 1.5px var(--text-primary);
    color: transparent;
    background: linear-gradient(115deg, transparent 15%, rgba(10, 10, 10, 0.95) 45%, #ef4444 50%, #dc2626 55%, transparent 85%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: devHolographicSweep 5s linear infinite;
    filter: drop-shadow(0 0 1px rgba(239, 68, 68, 0.35));
    transition: filter 0.3s;
}

@keyframes devHolographicSweep {
    0% {
        background-position: 150% 0;
    }

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

.headline-word.develop-word:hover {
    filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.8));
}

.headline-word.experiences-word {
    display: inline-block;
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #7f1d1d 50%, #dc2626 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.headline-word.experiences-word::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #dc2626, #ef4444, #f87171);
    border-radius: 2px;
    transform-origin: left;
    animation: devLaserLine 3.5s ease-in-out infinite alternate;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
}

@keyframes devLaserLine {
    0% {
        opacity: 0.4;
        transform: scaleX(0.75);
    }

    50% {
        opacity: 1;
        transform: scaleX(1);
    }

    100% {
        opacity: 0.6;
        transform: scaleX(0.9);
    }
}

.webdev-subtext {
    max-width: 720px;
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 1.2vw, 1.05rem);
    line-height: 1.75;
    color: var(--text-secondary);
}

.webdev-subtext strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ====================================================
   WEB DEVELOPER ANIMATED WORKSTATION & VIDEO SHOWCASE
   ==================================================== */

.webdev-workstation {
    position: relative;
    width: 100%;
    margin-bottom: clamp(3.5rem, 6vw, 5.5rem);
    border-radius: 18px;
    background: #090a0f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(239, 68, 68, 0.15),
        0 0 40px rgba(239, 68, 68, 0.08);
    overflow: hidden;
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.webdev-workstation:hover {
    border-color: rgba(239, 68, 68, 0.35);
    box-shadow:
        0 35px 100px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(239, 68, 68, 0.25),
        0 0 60px rgba(239, 68, 68, 0.15);
}

.workstation-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* --- Workstation Top Browser Chrome --- */
.workstation-chrome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #11131a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 10;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.chrome-controls-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.browser-traffic-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chrome-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.chrome-dot:hover {
    transform: scale(1.2);
}

.chrome-dot.dot-red {
    background: #ff5f56;
    box-shadow: 0 0 8px rgba(255, 95, 86, 0.5);
}

.chrome-dot.dot-yellow {
    background: #ffbd2e;
    box-shadow: 0 0 8px rgba(255, 189, 46, 0.5);
}

.chrome-dot.dot-green {
    background: #27c93f;
    box-shadow: 0 0 8px rgba(39, 201, 63, 0.5);
}

.workstation-app-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: monospace;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.app-icon {
    color: #ef4444;
}

.app-branch-chip {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.65rem;
}

/* Responsive Viewport Mode Switcher */
.workstation-viewport-toggles {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.45);
    padding: 3px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.viewport-toggle-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.viewport-toggle-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.06);
}

.viewport-toggle-btn.active {
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.25);
}

/* Interactive URL Bar */
.workstation-url-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: monospace;
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.6);
    min-width: 220px;
    max-width: 320px;
    transition: border-color 0.3s ease;
}

.workstation-url-bar:hover {
    border-color: rgba(239, 68, 68, 0.4);
}

.url-lock-icon {
    font-size: 0.65rem;
    color: #10b981;
}

.url-protocol {
    color: rgba(255, 255, 255, 0.35);
}

.url-domain {
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.url-launch-btn {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.45);
    display: flex;
    align-items: center;
    transition: color 0.2s, transform 0.2s;
}

.url-launch-btn:hover {
    color: #ef4444;
    transform: translate(2px, -2px);
}

.telemetry-pill-live {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-family: monospace;
    font-size: 0.65rem;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.06em;
}

.telemetry-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: beaconPulse 1.8s ease-out infinite;
}

/* --- Workstation Main Screen Stage --- */
.workstation-screen-stage {
    padding: clamp(1.5rem, 3vw, 2.5rem);
    background: radial-gradient(circle at 50% 20%, rgba(239, 68, 68, 0.04), transparent 60%), #0c0d13;
    display: flex;
    justify-content: center;
    width: 100%;
}

.workstation-viewport-wrapper {
    width: 100%;
    transition: max-width 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s ease;
}

.workstation-viewport-wrapper.mode-desktop {
    max-width: 100%;
}

.workstation-viewport-wrapper.mode-tablet {
    max-width: 768px;
    border-left: 2px dashed rgba(239, 68, 68, 0.25);
    border-right: 2px dashed rgba(239, 68, 68, 0.25);
    padding: 0 1rem;
}

.workstation-viewport-wrapper.mode-mobile {
    max-width: 410px;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-radius: 36px;
    padding: 1.5rem 1rem;
    background: #000;
    box-shadow: 0 0 35px rgba(239, 68, 68, 0.2);
}

/* Category Filter Bar */
.workstation-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.filter-headline {
    font-family: monospace;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.45);
}

.filter-buttons-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.65);
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    color: #fff;
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.08);
}

.filter-btn.active {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.4);
}

/* Featured Display: Split Video Stage & Spec Deck */
.workstation-featured-display {
    display: grid;
    grid-template-columns: 1.35fr 0.95fr;
    gap: clamp(1.5rem, 2.5vw, 2.25rem);
    align-items: stretch;
}

/* --- Featured Video Monitor Screen --- */
.featured-video-monitor {
    position: relative;
    border-radius: 14px;
    background: #050608;
    border: 1px solid rgba(239, 68, 68, 0.25);
    overflow: hidden;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(239, 68, 68, 0.15) inset;
    display: flex;
    flex-direction: column;
    min-height: 420px;
}

.screen-reticle {
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(239, 68, 68, 0.7);
    pointer-events: none;
    z-index: 12;
    transition: border-color 0.3s;
}

.screen-reticle.tl { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.screen-reticle.tr { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.screen-reticle.bl { bottom: 10px; left: 10px; border-right: none; border-top: none; }
.screen-reticle.br { bottom: 10px; right: 10px; border-left: none; border-top: none; }

.monitor-scanline-beam {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(239, 68, 68, 0.05) 50%, transparent 100%);
    background-size: 100% 8px;
    opacity: 0.6;
    pointer-events: none;
    z-index: 8;
}

.monitor-video-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 420px;
    background: #020204;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.webdev-main-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    z-index: 2;
    background: #000;
}

/* Simulated Fallback Stage (Visible if video is loading or awaiting user video upload) */
.video-interactive-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: #07090e;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sim-webpage-canvas {
    width: 100%;
    height: 100%;
    padding: clamp(1.2rem, 2.5vw, 2rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    background: radial-gradient(circle at 75% 25%, rgba(239, 68, 68, 0.12), transparent 50%);
}

.sim-canvas-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.sim-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.sim-logo-mark {
    font-family: monospace;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #ef4444;
}

.sim-nav-pills {
    display: flex;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
}

.sim-nav-pills span.active {
    color: #fff;
    font-weight: 600;
}

.sim-edge-badge {
    font-family: monospace;
    font-size: 0.62rem;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.sim-hero-content {
    position: relative;
    z-index: 2;
    margin: 1.5rem 0;
}

.sim-pill-tag {
    font-family: monospace;
    font-size: 0.62rem;
    font-weight: 700;
    color: #f87171;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.sim-project-title {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.4vw, 1.85rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
    line-height: 1.15;
}

.sim-project-desc {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    max-width: 480px;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.sim-metrics-bar {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: rgba(0, 0, 0, 0.55);
    padding: 0.75rem 1.2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: fit-content;
}

.sim-metric-item {
    display: flex;
    flex-direction: column;
}

.sim-metric-val {
    font-family: monospace;
    font-size: 1rem;
    font-weight: 800;
    color: #ef4444;
}

.sim-metric-lbl {
    font-size: 0.55rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.05em;
}

.sim-metric-divider {
    width: 1px;
    height: 25px;
    background: rgba(255, 255, 255, 0.1);
}

.sim-grid-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    position: relative;
    z-index: 2;
}

.sim-stat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.stat-card-title {
    font-family: monospace;
    font-size: 0.58rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.45rem;
    letter-spacing: 0.06em;
}

.stat-card-graph {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 24px;
}

.stat-card-graph .bar {
    flex: 1;
    background: #ef4444;
    border-radius: 2px;
    animation: barGraphBounce 1.8s ease-in-out infinite alternate;
}

.stat-card-graph .bar-1 { height: 40%; animation-delay: 0.1s; }
.stat-card-graph .bar-2 { height: 75%; animation-delay: 0.3s; }
.stat-card-graph .bar-3 { height: 50%; animation-delay: 0.2s; }
.stat-card-graph .bar-4 { height: 90%; animation-delay: 0.4s; }
.stat-card-graph .bar-5 { height: 60%; animation-delay: 0.15s; }
.stat-card-graph .bar-6 { height: 100%; animation-delay: 0.5s; }

@keyframes barGraphBounce {
    0% { transform: scaleY(0.5); }
    100% { transform: scaleY(1); }
}

.stat-card-counter {
    font-family: monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
}

.stat-card-counter .sparkle {
    color: #10b981;
    font-size: 0.7rem;
    margin-left: 4px;
}

/* Video Top Telemetry HUD */
.video-hud-overlay-top {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    pointer-events: none;
}

.video-live-rec {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    padding: 3px 9px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: monospace;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
}

.rec-dot-blink {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 6px #ef4444;
    animation: beaconPulse 1.2s infinite;
}

.video-spec-chip {
    font-family: monospace;
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.6);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Custom Video Player Controls Overlay */
.webdev-player-hud-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 16px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.hud-btn-action {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hud-btn-action:hover {
    background: #ef4444;
    border-color: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}

.hud-scrubber-track {
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.hud-scrubber-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 15%;
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
    border-radius: 10px;
    transition: width 0.1s linear;
}

.hud-time-display {
    font-family: monospace;
    font-size: 0.68rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
}

/* --- Featured Project Info Deck & Specs --- */
.featured-project-deck {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: clamp(1.4rem, 2vw, 2rem);
    backdrop-filter: blur(10px);
}

.deck-top-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.deck-project-number {
    font-family: monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ef4444;
    letter-spacing: 0.1em;
}

.deck-category-badge {
    font-family: monospace;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 0.08em;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.35);
}

.deck-project-title {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 0.85rem;
    letter-spacing: -0.02em;
}

.deck-project-desc {
    font-family: var(--font-body);
    font-size: 0.85rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 1.25rem;
}

.deck-features-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 1.25rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
}

.feat-check {
    color: #ef4444;
    font-weight: 800;
}

.deck-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 1.5rem;
}

.tech-chip {
    font-family: monospace;
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3px 9px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.tech-chip:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

.deck-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: auto;
}

.deck-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s var(--ease-out-expo);
}

.deck-btn.github-code-btn {
    background: #181c26;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.deck-btn.github-code-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.5);
}

.deck-btn.primary {
    background: #ef4444;
    color: #fff;
    border: 1px solid #ef4444;
    box-shadow: 0 4px 18px rgba(239, 68, 68, 0.4);
}

.deck-btn.primary:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(239, 68, 68, 0.6);
}

.deck-btn.secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
}

.deck-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.deck-btn.theater {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.deck-btn.theater:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.3);
}

/* ====================================================
   WEBSITE SHOWCASE GALLERY & VIDEO CARDS
   ==================================================== */

.webdev-projects-carousel-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.carousel-index-tag {
    font-family: monospace;
    font-size: 0.72rem;
    font-weight: 700;
    color: #ef4444;
    letter-spacing: 0.14em;
    display: block;
    margin-bottom: 0.35rem;
}

.carousel-heading {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin: 0;
}

.carousel-hint-wrap {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.add-website-guide-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #0d0f17;
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
    padding: 6px 14px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.add-website-guide-trigger:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.35);
    transform: translateY(-1px);
}

.add-website-guide-trigger .add-icon-plus {
    font-size: 1rem;
    line-height: 1;
    font-weight: 800;
}

.carousel-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: monospace;
    font-size: 0.68rem;
    color: var(--text-muted);
}

.hint-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
    animation: beaconPulse 1.6s infinite;
}

.webdev-projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1.1rem, 1.8vw, 1.6rem);
    margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
}

/* High-Contrast Obsidian Dark Website Card */
.project-video-card {
    background: #0c0e17;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.35s var(--ease-out-expo), border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
    position: relative;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.15);
}

.project-video-card:hover {
    transform: translateY(-6px);
    border-color: rgba(239, 68, 68, 0.65);
    box-shadow:
        0 22px 48px rgba(0, 0, 0, 0.38),
        0 0 30px rgba(239, 68, 68, 0.22);
}

.project-video-card.active {
    border-color: #ef4444;
    background: #0f1220;
    box-shadow:
        0 24px 50px rgba(0, 0, 0, 0.42),
        0 0 0 2px #ef4444,
        0 0 32px rgba(239, 68, 68, 0.32);
}

/* Card Video Viewport Preview */
.card-video-viewport {
    position: relative;
    width: 100%;
    height: 155px;
    background: #05060a;
    overflow: hidden;
}

.card-mini-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.4s ease;
}

.project-video-card:hover .card-mini-video {
    opacity: 1;
    transform: scale(1.04);
}

.card-mock-visual {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.mock-gradient-1 { background: linear-gradient(135deg, #090a12, #1c0f18, #2a0a0f); }
.mock-gradient-2 { background: linear-gradient(135deg, #080d16, #0e1a24, #12091c); }
.mock-gradient-3 { background: linear-gradient(135deg, #07120e, #0c1c14, #1a0812); }
.mock-gradient-4 { background: linear-gradient(135deg, #150914, #240b15, #0a0812); }

.mock-cyber-badge {
    font-family: monospace;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(239, 68, 68, 0.4);
    padding: 3px 9px;
    border-radius: 4px;
}

.card-viewport-overlay {
    position: absolute;
    inset: 0;
    padding: 9px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 5;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
}

.card-time-pill {
    font-family: monospace;
    font-size: 0.62rem;
    font-weight: 700;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 2px 7px;
    border-radius: 4px;
}

.card-play-pill {
    font-family: monospace;
    font-size: 0.6rem;
    font-weight: 700;
    color: #f87171;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(239, 68, 68, 0.4);
    padding: 2px 7px;
    border-radius: 4px;
    transition: all 0.25s ease;
}

.card-play-pill.active-badge {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}

.card-scanline-fx {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.35) 51%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 4;
    opacity: 0.4;
}

/* Card Content Details & High-Contrast Typography */
.card-info-pane {
    padding: 1.1rem 1.15rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
    background: #0c0e17;
}

.card-header-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.45rem;
}

.card-index-num {
    font-family: monospace;
    font-size: 0.68rem;
    font-weight: 800;
    color: #ef4444;
    letter-spacing: 0.05em;
}

.card-type-tag {
    font-family: monospace;
    font-size: 0.6rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.04em;
}

.card-project-name {
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.45rem;
    line-height: 1.3;
}

.card-project-summary {
    font-family: var(--font-body);
    font-size: 0.8rem;
    line-height: 1.55;
    color: #cbd5e1;
    margin-bottom: 0.85rem;
}

.card-tech-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 1rem;
}

.card-tech-chips span {
    font-family: monospace;
    font-size: 0.62rem;
    font-weight: 600;
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    padding: 2px 7px;
    border-radius: 4px;
}

/* Dedicated Action Buttons Below Every Card */
.card-action-footer {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.card-github-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #181c26;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 7px 11px;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    flex: 1;
    transition: all 0.25s ease;
}

.card-github-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.45);
}

.card-demo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 7px 11px;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.card-demo-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ====================================================
   DEDICATED GITHUB EXPLORER BANNER
   ==================================================== */

.webdev-github-banner {
    position: relative;
    background: linear-gradient(135deg, #0d101a 0%, #151824 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 1.75rem 2.25rem;
    margin-bottom: clamp(3.5rem, 6vw, 5.5rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28), 0 0 35px rgba(239, 68, 68, 0.08);
    overflow: hidden;
}

.github-banner-glow {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.14) 0%, transparent 70%);
    pointer-events: none;
    filter: blur(50px);
}

.github-banner-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    z-index: 2;
}

.github-banner-avatar {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.github-banner-copy {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.github-banner-title {
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
    margin: 0;
}

.github-banner-desc {
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: #94a3b8;
    margin: 0;
}

.github-banner-cta {
    position: relative;
    z-index: 2;
}

.github-profile-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: #ef4444;
    color: #ffffff;
    border: 1px solid #ef4444;
    padding: 11px 20px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(239, 68, 68, 0.4);
    transition: all 0.3s var(--ease-out-expo);
}

.github-profile-link-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(239, 68, 68, 0.6);
}

/* ====================================================
   HOW TO ADD MORE WEBSITES GUIDE MODAL
   ==================================================== */

.webdev-guide-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.webdev-guide-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.guide-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.guide-modal-container {
    position: relative;
    z-index: 2;
    background: #0f121e;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    width: 100%;
    max-width: 760px;
    max-height: 88vh;
    overflow-y: auto;
    padding: 2rem 2.25rem;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 40px rgba(239, 68, 68, 0.15);
}

.guide-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1rem;
}

.guide-badge-title .guide-tag {
    font-family: monospace;
    font-size: 0.7rem;
    font-weight: 700;
    color: #ef4444;
    letter-spacing: 0.12em;
    display: block;
    margin-bottom: 0.35rem;
}

.guide-headline {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.guide-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.guide-close-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
}

.guide-modal-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.guide-step-card {
    display: flex;
    gap: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
}

.step-badge {
    font-family: monospace;
    font-size: 0.7rem;
    font-weight: 800;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    padding: 4px 8px;
    height: fit-content;
    white-space: nowrap;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.4rem;
}

.step-content p {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.step-content code {
    font-family: monospace;
    font-size: 0.75rem;
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.guide-code-box {
    background: #080a12;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
}

.guide-code-box pre {
    margin: 0;
}

.guide-code-box code {
    font-family: monospace;
    font-size: 0.72rem;
    color: #7dd3fc;
    line-height: 1.45;
    background: none;
    padding: 0;
}

@media (max-width: 1100px) {
    .webdev-projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .webdev-projects-grid {
        grid-template-columns: 1fr;
    }
    .webdev-github-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    .card-action-footer {
        flex-direction: column;
    }
    .card-github-btn,
    .card-demo-btn {
        width: 100%;
        text-align: center;
    }
}

/* ====================================================
   WEB DEVELOPER ARCHITECTURE & CORE CAPABILITIES
   ==================================================== */

.webdev-architecture-section {
    margin-bottom: clamp(3.5rem, 6vw, 5.5rem);
}

.arch-section-header {
    margin-bottom: 2rem;
}

.arch-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: monospace;
    font-size: 0.7rem;
    font-weight: 700;
    color: #ef4444;
    letter-spacing: 0.12em;
    margin-bottom: 0.45rem;
}

.arch-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.8vw, 2.2rem);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin: 0;
}

.webdev-service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: 2rem;
}

.webdev-service-item {
    position: relative;
    padding: clamp(1.4rem, 2.2vw, 2rem);
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: all 0.4s var(--ease-out-expo);
    overflow: hidden;
}

.webdev-service-item:hover {
    transform: translateY(-4px);
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25), 0 0 24px rgba(239, 68, 68, 0.15);
}

.service-glow-edge {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ef4444, #dc2626, transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.webdev-service-item:hover .service-glow-edge {
    opacity: 1;
}

.service-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    margin-bottom: 1.15rem;
    transition: transform 0.3s, background 0.3s;
}

.webdev-service-item:hover .service-icon-wrap {
    transform: rotate(6deg) scale(1.1);
    background: #ef4444;
    color: #fff;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.service-title {
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.service-desc {
    font-family: var(--font-body);
    font-size: clamp(0.78rem, 0.9vw, 0.88rem);
    line-height: 1.65;
    color: var(--text-muted);
}

.service-micro-tag {
    font-family: monospace;
    font-size: 0.62rem;
    font-weight: 700;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 4px;
    padding: 0.25rem 0.65rem;
    margin-top: 1rem;
    display: inline-block;
    letter-spacing: 0.08em;
}

/* --- Tech Stack Pills with Brand Accents --- */
.webdev-tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 0.5rem;
}

.webdev-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    transition: all 0.3s var(--ease-out-expo);
    cursor: default;
}

.pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    background: #ef4444;
    transition: transform 0.3s;
}

.webdev-pill:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: #ef4444;
    color: #fff;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
}

.webdev-pill:hover .pill-dot {
    transform: scale(1.4);
    box-shadow: 0 0 8px #ef4444;
}

/* --- Stats Bar --- */
.webdev-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    padding: clamp(1.5rem, 3vw, 2.5rem) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.webdev-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    text-align: center;
}

.webdev-stat-num {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    line-height: 1;
}

.infinity-glow {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #f87171 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: infinityPulse 3s ease-in-out infinite alternate;
    display: inline-block;
}

@keyframes infinityPulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.5));
    }
    100% {
        transform: scale(1.12);
        filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.8));
    }
}

.webdev-stat-label {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.webdev-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* ====================================================
   FULLSCREEN 4K THEATER VIDEO MODAL
   ==================================================== */

.webdev-theater-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.webdev-theater-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.theater-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.theater-modal-content {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1040px;
    background: #0d0f17;
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8), 0 0 50px rgba(239, 68, 68, 0.25);
    transform: scale(0.95);
    transition: transform 0.35s var(--ease-out-expo);
}

.webdev-theater-modal.active .theater-modal-content {
    transform: scale(1);
}

.theater-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #151824;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.theater-modal-tag {
    font-family: monospace;
    font-size: 0.65rem;
    font-weight: 700;
    color: #ef4444;
    letter-spacing: 0.12em;
    display: block;
}

.theater-modal-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.theater-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theater-close-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
    transform: rotate(90deg);
}

.theater-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.theater-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ====================================================
   RESPONSIVE STYLING FOR WEB DEVELOPER SECTION
   ==================================================== */

@media (max-width: 1180px) {
    .webdev-projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .workstation-featured-display {
        grid-template-columns: 1fr;
    }
}

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

    .workstation-chrome {
        flex-direction: column;
        align-items: flex-start;
    }

    .workstation-viewport-toggles {
        width: 100%;
        justify-content: space-around;
    }

    .workstation-url-bar {
        max-width: 100%;
        width: 100%;
    }

    .webdev-projects-grid {
        grid-template-columns: 1fr;
    }

    .webdev-stats {
        gap: 1.5rem;
    }

    .webdev-stat-divider {
        display: none;
    }
}

@media (max-width: 480px) {
    .webdev-headline {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .featured-video-monitor {
        min-height: 300px;
    }

    .monitor-video-container {
        min-height: 300px;
    }

    .webdev-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ============================================
   CINEMATIC VIDEO EDITING & MOTION LAB
   Interactive NLE Timeline, Studio & Retention
   ============================================ */

.video-editing-section {
    position: relative;
    width: 100%;
    padding: clamp(5rem, 9vw, 9rem) 0;
    background-color: var(--bg-primary);
    overflow: hidden;
    z-index: 10;
}

/* Ambient Cyber & Film Grain Background */
.video-grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(10, 10, 10, 0.04) 1px, transparent 0),
        linear-gradient(to right, rgba(10, 10, 10, 0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(10, 10, 10, 0.015) 1px, transparent 1px);
    background-size: 32px 32px, 96px 96px, 96px 96px;
    pointer-events: none;
    z-index: 0;
}

.video-ambient-glow-1 {
    position: absolute;
    top: 15%;
    left: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, rgba(236, 72, 153, 0.04) 50%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    animation: glowFloatVideo 14s ease-in-out infinite alternate;
}

.video-ambient-glow-2 {
    position: absolute;
    bottom: 20%;
    right: -10%;
    width: 650px;
    height: 650px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.12) 0%, rgba(185, 28, 28, 0.05) 50%, transparent 70%);
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
    animation: glowFloatVideo 16s ease-in-out infinite alternate-reverse;
}

@keyframes glowFloatVideo {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -30px) scale(1.15); }
}

/* Film Strip Sprocket Border on edges */
.video-film-strip-edge {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 24px;
    background: repeating-linear-gradient(
        to bottom,
        rgba(10, 10, 10, 0.06) 0px,
        rgba(10, 10, 10, 0.06) 12px,
        transparent 12px,
        transparent 28px
    );
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}

.video-film-strip-edge.left { left: 8px; }
.video-film-strip-edge.right { right: 8px; }

.video-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    z-index: 2;
}

/* Header Elements */
.video-header {
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.video-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border);
}

.cyber-film-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1.15rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(168, 85, 247, 0.25);
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.08);
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: default;
    transition: all 0.35s var(--ease-out-expo);
}

.cyber-film-badge:hover {
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 0 24px rgba(168, 85, 247, 0.3), 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.film-title-text {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--text-primary);
    text-transform: uppercase;
}

.film-scan-beam {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.35), rgba(236, 72, 153, 0.45), transparent);
    animation: filmLaserSweep 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes filmLaserSweep {
    0% { left: -100%; }
    50%, 100% { left: 160%; }
}

.video-status-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.rec-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
}

.rec-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #ef4444;
    box-shadow: 0 0 8px #ef4444;
    animation: recPulseLive 1s infinite alternate ease-in-out;
}

@keyframes recPulseLive {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0.25; transform: scale(0.8); }
}

.film-audio-levels {
    display: flex;
    align-items: flex-end;
    gap: 2.5px;
    height: 14px;
}

.film-audio-levels .level-bar {
    width: 3px;
    border-radius: 1px;
    background: #10b981;
    animation: levelBounce 1.2s infinite ease-in-out alternate;
}

.film-audio-levels .lvl-1 { height: 60%; animation-delay: 0.1s; }
.film-audio-levels .lvl-2 { height: 85%; animation-delay: 0.3s; }
.film-audio-levels .lvl-3 { height: 100%; animation-delay: 0.15s; }
.film-audio-levels .lvl-4 { height: 75%; animation-delay: 0.4s; }
.film-audio-levels .lvl-5 { height: 90%; background: #f59e0b; animation-delay: 0.25s; }
.film-audio-levels .lvl-6 { height: 40%; background: #ef4444; animation-delay: 0.05s; }

@keyframes levelBounce {
    0% { transform: scaleY(0.3); }
    100% { transform: scaleY(1); }
}

.video-codec-tag {
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: var(--text-muted);
    font-weight: 500;
}

/* Headline Wrapper */
.video-headline-wrapper {
    position: relative;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: var(--space-md);
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(10, 10, 10, 0.06);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s var(--ease-out-expo);
}

.video-headline-wrapper:hover {
    border-color: rgba(239, 68, 68, 0.35);
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.06);
}

.video-headline-wrapper:hover .viewfinder-bracket {
    border-color: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.video-headline-wrapper:hover .viewfinder-bracket.tl {
    transform: translate(-3px, -3px);
}

.video-headline-wrapper:hover .viewfinder-bracket.tr {
    transform: translate(3px, -3px);
}

.video-headline-wrapper:hover .viewfinder-bracket.bl {
    transform: translate(-3px, 3px);
}

.video-headline-wrapper:hover .viewfinder-bracket.br {
    transform: translate(3px, 3px);
}

.video-headline {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5.5vw, 4.4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
}

.video-headline .headline-row {
    display: block;
}

.video-headline .cut-word {
    color: var(--text-primary);
    display: inline-block;
    position: relative;
    transition: transform 0.3s;
}

.video-headline .stop-word {
    display: inline-block;
    -webkit-text-stroke: 1.5px var(--text-primary);
    color: transparent;
    background: linear-gradient(115deg, transparent 15%, rgba(10, 10, 10, 0.95) 45%, #ef4444 50%, #dc2626 55%, transparent 85%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: holographicSweep 5s linear infinite;
    filter: drop-shadow(0 0 1px rgba(239, 68, 68, 0.35));
    transition: filter 0.3s;
}

.video-headline .stop-word:hover {
    filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.8));
}

.video-headline .convert-word {
    display: inline-block;
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #7f1d1d 50%, #dc2626 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 2px 14px rgba(239, 68, 68, 0.2));
}

.video-headline .convert-word::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #dc2626, #ef4444, #f87171);
    border-radius: 2px;
    transform-origin: left;
    animation: devLaserLine 3.5s ease-in-out infinite alternate;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
}

.video-subtext {
    max-width: 820px;
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.65;
    color: var(--text-secondary);
}

.video-subtext strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ============================================
   APEX NLE STUDIO WORKSTATION CARD
   ============================================ */
.video-studio-card {
    position: relative;
    margin-bottom: clamp(3rem, 6vw, 5rem);
    border-radius: 16px;
    background: #0d0e12;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 24px 64px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 0 50px rgba(168, 85, 247, 0.12);
    overflow: hidden;
    color: #e2e8f0;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

/* Bass Drop Shake Keyframe */
.video-studio-card.bass-shaking {
    animation: bassShake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes bassShake {
    10%, 90% { transform: translate3d(-2px, 0, 0) scale(1.002); }
    20%, 80% { transform: translate3d(3px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

.studio-card-inner {
    position: relative;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Studio Topbar */
.studio-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.studio-controls-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.studio-window-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.studio-window-dots .s-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.studio-window-dots .s-dot.red { background: #ff5f56; }
.studio-window-dots .s-dot.yellow { background: #ffbd2e; }
.studio-window-dots .s-dot.green { background: #27c93f; }

.studio-title-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
}

.nle-app-title {
    font-weight: 700;
    color: #94a3b8;
}

.nle-project-chip {
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    font-weight: 600;
    font-size: 0.68rem;
    letter-spacing: 0.05em;
}

/* Studio Genre Tabs */
.studio-genre-tabs {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.25rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.genre-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #94a3b8;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.genre-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.genre-tab.active {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(185, 28, 28, 0.3));
    color: #ffffff;
    border: 1px solid rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.25);
}

/* Drop the Bass FX button */
.studio-fx-impact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    border-radius: 6px;
    border: 1px solid rgba(236, 72, 153, 0.5);
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.35);
    transition: all 0.2s var(--ease-out-expo);
}

.studio-fx-impact-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.6);
}

.studio-fx-impact-btn:active {
    transform: scale(0.96);
}

.fx-spark-icon {
    animation: fxSparkSpin 2s infinite ease-in-out;
}

@keyframes fxSparkSpin {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3) rotate(15deg); }
}

/* Main Studio Stage */
.studio-main-stage {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 980px) {
    .studio-main-stage {
        grid-template-columns: 1fr;
    }
}

/* Studio Monitor */
.studio-monitor-wrap {
    position: relative;
    border-radius: 12px;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.studio-monitor {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 380px;
}

.monitor-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.015) 0px,
        rgba(255, 255, 255, 0.015) 1px,
        transparent 1px,
        transparent 3px
    );
    pointer-events: none;
    z-index: 5;
}

.monitor-vignette {
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.7);
    pointer-events: none;
    z-index: 6;
}

.monitor-crosshairs span {
    position: absolute;
    width: 10px;
    height: 10px;
    border-color: rgba(255, 255, 255, 0.25);
    border-style: solid;
    pointer-events: none;
    z-index: 7;
}

.monitor-crosshairs .ch-tl { top: 12px; left: 12px; border-width: 2px 0 0 2px; }
.monitor-crosshairs .ch-tr { top: 12px; right: 12px; border-width: 2px 2px 0 0; }
.monitor-crosshairs .ch-bl { bottom: 60px; left: 12px; border-width: 0 0 2px 2px; }
.monitor-crosshairs .ch-br { bottom: 60px; right: 12px; border-width: 0 2px 2px 0; }
.monitor-crosshairs .ch-center {
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

.monitor-canvas-container {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    overflow: hidden;
}

.video-preview-stage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-editing-player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 3;
    background: #000000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.video-editing-player.has-media {
    opacity: 1;
}

.preview-backdrop {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at center, rgba(239, 68, 68, 0.35) 0%, rgba(185, 28, 28, 0.15) 50%, #050608 85%);
    background-size: 200% 200%;
    animation: previewBackdropShift 8s ease infinite alternate;
    transition: all 0.5s ease;
}

@keyframes previewBackdropShift {
    0% { background-position: 0% 50%; filter: hue-rotate(0deg); }
    100% { background-position: 100% 50%; filter: hue-rotate(30deg); }
}

/* Shockwave Flash Effect */
.preview-shockwave {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(236, 72, 153, 0.5) 40%, transparent 70%);
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}

.preview-shockwave.active {
    animation: shockwaveExplode 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes shockwaveExplode {
    0% { opacity: 0.9; transform: scale(0.6); }
    100% { opacity: 0; transform: scale(2.2); }
}

/* Kinetic Motion Graphics inside Preview */
.preview-motion-layer {
    position: relative;
    z-index: 8;
    text-align: center;
    padding: 1rem;
}

.kinetic-text-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.kinetic-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    padding: 0.3rem 0.8rem;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.6);
    color: #f87171;
    border-radius: 4px;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.3);
    text-transform: uppercase;
}

.kinetic-headline {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.8vw, 2.8rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-shadow: 
        0 0 20px rgba(168, 85, 247, 0.6),
        0 4px 10px rgba(0, 0, 0, 0.8);
    transition: all 0.3s;
}

.kinetic-headline.pop-animate {
    animation: headlinePop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes headlinePop {
    0% { transform: scale(0.85); opacity: 0.5; }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); opacity: 1; }
}

.kinetic-sub {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #cbd5e1;
    text-transform: uppercase;
    opacity: 0.85;
}

/* Floating HUD telemetry */
.preview-hud-telemetry {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    pointer-events: none;
    z-index: 9;
    font-family: var(--font-body);
}

.hud-top-row,
.hud-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hud-tc {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #f87171;
    background: rgba(0, 0, 0, 0.65);
    padding: 0.25rem 0.55rem;
    border-radius: 4px;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.hud-fps-pill {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #4ade80;
    background: rgba(0, 0, 0, 0.65);
    padding: 0.25rem 0.55rem;
    border-radius: 4px;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.retention-score-badge {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #f43f5e;
    background: rgba(0, 0, 0, 0.65);
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    border: 1px solid rgba(244, 63, 94, 0.35);
}

.hud-resolution {
    font-size: 0.68rem;
    color: #94a3b8;
    letter-spacing: 0.06em;
    background: rgba(0, 0, 0, 0.65);
    padding: 0.25rem 0.55rem;
    border-radius: 4px;
}

/* Monitor Toolbar */
.monitor-toolbar {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem 1rem;
    background: rgba(15, 17, 23, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 10;
}

.monitor-play-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: #ffffff;
    color: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s var(--ease-out-expo);
    flex-shrink: 0;
}

.monitor-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.5);
}

.monitor-tc-scrub {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-family: 'Courier New', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    color: #e2e8f0;
}

.monitor-tc-scrub .tc-current { color: #f87171; }
.monitor-tc-scrub .tc-slash { color: #64748b; }
.monitor-tc-scrub .tc-total { color: #94a3b8; }

.monitor-audio-wave-wrap {
    flex: 1;
    height: 22px;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 0 0.5rem;
    border-radius: 4px;
    overflow: hidden;
}

.audio-wave-bars {
    display: flex;
    align-items: center;
    gap: 3px;
    width: 100%;
    height: 100%;
}

.audio-bar-item {
    flex: 1;
    background: linear-gradient(to top, #ef4444, #dc2626);
    border-radius: 2px;
    min-height: 4px;
    transition: height 0.1s ease;
}

.monitor-speed-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 2px;
    border-radius: 6px;
}

.speed-pill {
    border: none;
    background: transparent;
    color: #94a3b8;
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.speed-pill.active {
    background: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* ============================================
   RIGHT SIDEBAR SCOPES
   ============================================ */
.studio-sidebar-scopes {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.scope-card {
    background: rgba(18, 20, 29, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.scope-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.scope-title {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #94a3b8;
    text-transform: uppercase;
}

.scope-status {
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #64748b;
}

.scope-status.active {
    color: #f87171;
}

.scope-metric-val {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: 800;
    color: #4ade80;
}

/* Scope 1: Spectrum visualizer */
.spectrum-visualizer {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 55px;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.spectrum-col {
    flex: 1;
    height: var(--h, 50%);
    background: linear-gradient(to top, #ef4444, #dc2626, #f87171);
    border-radius: 2px 2px 0 0;
    animation: spectrumDance 1.4s ease-in-out infinite alternate;
}

.spectrum-col:nth-child(odd) { animation-duration: 0.9s; }
.spectrum-col:nth-child(3n) { animation-duration: 1.3s; }
.spectrum-col:nth-child(4n) { animation-duration: 1.7s; }

@keyframes spectrumDance {
    0% { height: 25%; }
    50% { height: 95%; }
    100% { height: 40%; }
}

.spectrum-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.6rem;
    font-family: monospace;
    color: #64748b;
}

/* Scope 2: Retention meter */
.retention-bar-track {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.retention-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444, #f87171);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    transition: width 0.4s ease;
}

.retention-factor-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.r-tag {
    font-size: 0.62rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.r-tag.active {
    background: rgba(168, 85, 247, 0.12);
    border-color: rgba(168, 85, 247, 0.3);
    color: #d8b4fe;
}

/* Scope 3: SFX triggers */
.sfx-trigger-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
}

.sfx-btn {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.35);
    color: #e2e8f0;
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.sfx-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(239, 68, 68, 0.4);
    transform: translateY(-1px);
}

.sfx-btn:active,
.sfx-btn.triggered {
    background: rgba(239, 68, 68, 0.25);
    border-color: #f87171;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.4);
    transform: scale(0.96);
}

/* ============================================
   MULTI-TRACK NLE TIMELINE SCRUBBER
   ============================================ */
.studio-timeline-deck {
    background: #08090d;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.timeline-header-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.timeline-tools {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.tool-btn {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    border-radius: 4px;
    color: #64748b;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: all 0.2s;
}

.tool-btn.active,
.tool-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.timeline-mode-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #64748b;
    margin-left: 0.5rem;
}

.timeline-ruler {
    display: flex;
    justify-content: space-between;
    flex: 1;
    max-width: 75%;
    font-family: monospace;
    font-size: 0.65rem;
    color: #64748b;
    padding: 0 0.5rem;
}

/* Timeline Tracks Arena */
.timeline-tracks-arena {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 5px;
    user-select: none;
    cursor: crosshair;
    padding-top: 6px;
}

/* Playhead */
.timeline-playhead {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ef4444;
    z-index: 20;
    pointer-events: none;
    box-shadow: 0 0 10px #ef4444;
    transition: left 0.08s linear;
}

.playhead-handle {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.playhead-top {
    width: 14px;
    height: 10px;
    background: #ef4444;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.playhead-time {
    font-family: monospace;
    font-size: 0.58rem;
    font-weight: 700;
    color: #000;
    background: #ef4444;
    padding: 1px 3px;
    border-radius: 2px;
    margin-top: -1px;
}

/* Track rows */
.timeline-track {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 8px;
    align-items: center;
    height: 28px;
}

.timeline-track .track-header {
    font-family: monospace;
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.track-header .track-id {
    color: #94a3b8;
    font-weight: 800;
    padding: 1px 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
}

.timeline-track .track-lane {
    position: relative;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Clip Blocks */
.clip-block {
    position: absolute;
    top: 2px;
    bottom: 2px;
    border-radius: 3px;
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* V3 FX blocks (neon violet / purple) */
.clip-fx {
    background: linear-gradient(90deg, #9333ea, #a855f7);
    color: #ffffff;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

.clip-fx.pulse {
    animation: fxBlockGlow 2s infinite alternate ease-in-out;
}

@keyframes fxBlockGlow {
    0% { box-shadow: 0 0 5px rgba(168, 85, 247, 0.4); }
    100% { box-shadow: 0 0 14px rgba(168, 85, 247, 0.9); }
}

/* V2 Graphics blocks (teal/emerald) */
.clip-gfx {
    background: linear-gradient(90deg, #0d9488, #14b8a6);
    color: #ffffff;
    border: 1px solid rgba(20, 184, 166, 0.4);
}

/* V1 4K Footage blocks (amber/gold) */
.clip-video {
    background: linear-gradient(90deg, #b45309, #d97706);
    color: #ffffff;
    border: 1px solid rgba(217, 119, 6, 0.4);
}

/* A1 SFX blocks (rose/pink) */
.clip-sfx {
    background: linear-gradient(90deg, #e11d48, #f43f5e);
    color: #ffffff;
    border: 1px solid rgba(244, 63, 94, 0.4);
}

/* A2 Music block (indigo/blue with waveform) */
.clip-music {
    background: linear-gradient(90deg, #3730a3, #4f46e5);
    color: #e0e7ff;
    border: 1px solid rgba(79, 70, 229, 0.4);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.music-waveform-mock {
    width: 60px;
    height: 12px;
    background: repeating-linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.6) 0px,
        rgba(255, 255, 255, 0.6) 2px,
        transparent 2px,
        transparent 5px
    );
    opacity: 0.7;
}

/* ============================================
   PREVIOUS VIDEO PROJECTS & SHOWREEL VAULT
   ============================================ */
.video-showreel-vault {
    margin-bottom: clamp(3rem, 5.5vw, 4.5rem);
}

.vault-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: clamp(1.5rem, 2.5vw, 2.2rem);
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.vault-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-width: 700px;
}

.vault-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: #ef4444;
}

.vault-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
}

.vault-headline {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.6vw, 1.95rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.vault-subtext {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #94a3b8;
}

.vault-actions-right {
    display: flex;
    align-items: center;
}

.vault-guide-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.15rem;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.25s var(--ease-out-expo);
}

.vault-guide-btn:hover {
    background: rgba(239, 68, 68, 0.18);
    border-color: #ef4444;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.25);
    transform: translateY(-2px);
}

.video-projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1.1rem, 1.8vw, 1.6rem);
}

@media (max-width: 1200px) {
    .video-projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .video-projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Video Project Card */
.video-project-card {
    background: #0c0e17;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.35s var(--ease-out-expo), border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
    position: relative;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.15);
}

.video-project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(239, 68, 68, 0.65);
    box-shadow:
        0 22px 48px rgba(0, 0, 0, 0.38),
        0 0 30px rgba(239, 68, 68, 0.22);
}

.video-project-card.active {
    border-color: #ef4444;
    background: #0f1220;
    box-shadow:
        0 24px 50px rgba(0, 0, 0, 0.42),
        0 0 0 2px #ef4444,
        0 0 32px rgba(239, 68, 68, 0.32);
}

.video-project-card:hover .card-mini-video {
    opacity: 1;
    transform: scale(1.04);
}

.mock-gradient-video-1 { background: linear-gradient(135deg, #150918, #2a0b1c, #0d091a); }
.mock-gradient-video-2 { background: linear-gradient(135deg, #180d09, #2c150b, #0d0c14); }
.mock-gradient-video-3 { background: linear-gradient(135deg, #091512, #0b281f, #071018); }
.mock-gradient-video-4 { background: linear-gradient(135deg, #12091c, #1f0b2a, #0b0718); }

.card-metrics-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.2rem 0;
}

.metric-chip {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 700;
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.genre-reels { color: #f43f5e; border-color: rgba(244, 63, 94, 0.4); background: rgba(244, 63, 94, 0.12); }
.genre-commercial { color: #fbbf24; border-color: rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.12); }
.genre-drone { color: #34d399; border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.12); }
.genre-vfx { color: #c084fc; border-color: rgba(192, 132, 252, 0.4); background: rgba(192, 132, 252, 0.12); }

.load-nle-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.25s ease;
}

.video-project-card:hover .load-nle-btn,
.video-project-card.active .load-nle-btn {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.4);
}

/* ============================================
   RETENTION FORMULA BENTO GRID
   ============================================ */
.video-bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1.25rem, 2.5vw, 2rem);
    margin-bottom: clamp(3rem, 6vw, 5rem);
}

@media (max-width: 860px) {
    .video-bento-grid {
        grid-template-columns: 1fr;
    }
}

.video-bento-card {
    position: relative;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
    transition: all 0.35s var(--ease-out-expo);
}

.video-bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(168, 85, 247, 0.3);
}

.bento-card-inner {
    position: relative;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    height: 100%;
}

.bento-badge {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #a855f7;
    text-transform: uppercase;
}

.bento-title {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.2vw, 1.65rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
}

.bento-text {
    font-family: var(--font-body);
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.bento-text strong {
    color: var(--text-primary);
}

/* Card 1: Retention Graph */
.retention-graph-container {
    margin-top: auto;
    padding-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.graph-legend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-item.diptanu .legend-dot { background: #ef4444; box-shadow: 0 0 8px #ef4444; }
.legend-item.standard .legend-dot { background: #ef4444; }

.graph-svg-wrap {
    width: 100%;
    height: 110px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    padding: 6px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.retention-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Card 2: Color Palette Swatches */
.color-palette-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

.color-swatch-box {
    position: relative;
    height: 65px;
    border-radius: 8px;
    background: var(--swatch-color);
    display: flex;
    align-items: flex-end;
    padding: 0.4rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s var(--ease-out-expo);
    cursor: default;
}

.color-swatch-box:hover {
    transform: translateY(-3px) scale(1.02);
}

.swatch-label {
    font-family: var(--font-body);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.6);
    padding: 2px 4px;
    border-radius: 3px;
    width: 100%;
    text-align: center;
    backdrop-filter: blur(4px);
}

/* Card 3: Sound Design Badges */
.sound-spec-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

.spec-pill {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.45rem 0.85rem;
    border-radius: 6px;
    background: rgba(10, 10, 10, 0.04);
    border: 1px solid rgba(10, 10, 10, 0.1);
    color: var(--text-primary);
}

/* Card 4: Horizontal Pipeline Steps */
.pipeline-steps-horizontal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    margin-top: auto;
    padding-top: 0.5rem;
    flex-wrap: wrap;
}

.pipeline-step {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    background: rgba(0, 0, 0, 0.03);
    padding: 0.5rem 0.7rem;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    flex: 1;
    min-width: 80px;
}

.pipeline-step .step-num {
    font-family: monospace;
    font-size: 0.68rem;
    font-weight: 800;
    color: #a855f7;
}

.pipeline-step .step-title {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-primary);
}

.step-arrow {
    color: #94a3b8;
    font-weight: 800;
    font-size: 0.8rem;
}

/* ============================================
   CLIENT CONVERSION CTA STRIP
   ============================================ */
.video-client-cta {
    position: relative;
    border-radius: 16px;
    background: linear-gradient(135deg, #0d0e15 0%, #171626 50%, #0d131f 100%);
    border: 1px solid rgba(168, 85, 247, 0.35);
    box-shadow: 
        0 24px 60px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(168, 85, 247, 0.15);
    margin-bottom: clamp(3rem, 6vw, 4.5rem);
    overflow: hidden;
    color: #ffffff;
}

.cta-glow-flare {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.25) 0%, rgba(185, 28, 28, 0.15) 50%, transparent 70%);
    pointer-events: none;
}

.client-cta-inner {
    position: relative;
    padding: clamp(2rem, 4vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    z-index: 2;
}

.cta-left-content {
    flex: 1;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cta-badge {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #f87171;
    text-transform: uppercase;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
}

.cta-desc {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #94a3b8;
    max-width: 620px;
    line-height: 1.5;
}

.cta-project-types {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.cta-type-pill {
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cta-type-pill:hover,
.cta-type-pill.active {
    background: rgba(168, 85, 247, 0.25);
    border-color: rgba(168, 85, 247, 0.6);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.3);
}

.cta-right-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.6rem;
}

@media (max-width: 860px) {
    .cta-right-action {
        align-items: flex-start;
        width: 100%;
    }
}

.video-hire-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.4);
    transition: all 0.35s var(--ease-out-expo);
}

.video-hire-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 40px rgba(236, 72, 153, 0.5);
}

.video-hire-btn .btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: btnShineSweep 3s infinite;
}

@keyframes btnShineSweep {
    0% { left: -100%; }
    40%, 100% { left: 180%; }
}

.cta-guarantee-text {
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: #94a3b8;
    letter-spacing: 0.04em;
}

/* ============================================
   BOTTOM VIDEO STATS
   ============================================ */
.video-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.video-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.video-stat-num {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
}

.video-stat-num.fire-glow {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 2px 10px rgba(239, 68, 68, 0.35));
}

.video-stat-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.video-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

@media (max-width: 640px) {
    .video-stat-divider {
        display: none;
    }
}

/* ============================================
   PHOTOGRAPHY SKILLS SECTION
   Bento Gallery with HUD Overlays
   ============================================ */

.photography-section {
    position: relative;
    width: 100%;
    padding: clamp(5rem, 9vw, 9rem) 0;
    background-color: var(--bg-primary);
    overflow: hidden;
}

.photo-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(to right, rgba(10, 10, 10, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(10, 10, 10, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 75%);
    pointer-events: none;
    z-index: 1;
}

.photo-ambient-glow {
    position: absolute;
    top: 20%;
    left: -8%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(10, 10, 10, 0.035) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    filter: blur(50px);
}

.photo-container {
    position: relative;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    z-index: 2;
}

/* Photo Section Header */
.photo-header {
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.photo-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border);
}

.photo-index {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.photo-experience {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

/* Photo Headline Wrapper & Viewfinder Reticles */
.photo-headline-wrapper {
    position: relative;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    margin-top: 0.5rem;
    margin-bottom: clamp(1.5rem, 3vw, 2.2rem);
    border: 1px solid rgba(10, 10, 10, 0.05);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.15));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.4s var(--ease-out-expo);
}

.photo-headline-wrapper:hover {
    border-color: rgba(239, 68, 68, 0.35);
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.06);
}

.photo-headline-wrapper:hover .viewfinder-bracket {
    border-color: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.photo-headline-wrapper:hover .viewfinder-bracket.tl {
    transform: translate(-3px, -3px);
}

.photo-headline-wrapper:hover .viewfinder-bracket.tr {
    transform: translate(3px, -3px);
}

.photo-headline-wrapper:hover .viewfinder-bracket.bl {
    transform: translate(-3px, 3px);
}

.photo-headline-wrapper:hover .viewfinder-bracket.br {
    transform: translate(3px, 3px);
}

.photo-headline {
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    margin-bottom: 0;
}

.photo-headline .shoot-word {
    display: inline-block;
    position: relative;
    color: var(--text-primary);
    transition: transform 0.3s, text-shadow 0.3s;
}

.photo-headline .shoot-word:hover {
    transform: translateX(4px);
    animation: cyberGlitchDev 0.35s ease infinite alternate;
}

.photo-headline .frames-word {
    display: inline-block;
    -webkit-text-stroke: 1.5px var(--text-primary);
    color: transparent;
    background: linear-gradient(115deg, transparent 15%, rgba(10, 10, 10, 0.95) 45%, #ef4444 50%, #dc2626 55%, transparent 85%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: holographicSweep 5s linear infinite;
    filter: drop-shadow(0 0 1px rgba(239, 68, 68, 0.35));
    transition: filter 0.3s, transform 0.3s;
}

.photo-headline .frames-word:hover {
    filter: drop-shadow(0 0 14px rgba(239, 68, 68, 0.95));
    transform: scale(1.02);
}

.photo-headline .speak-word {
    display: inline-block;
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #7f1d1d 50%, #dc2626 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 2px 14px rgba(239, 68, 68, 0.25));
    transition: filter 0.3s, transform 0.3s;
}

.photo-headline .speak-word:hover {
    filter: drop-shadow(0 0 18px rgba(239, 68, 68, 0.95));
    transform: scale(1.03);
}

.photo-headline .speak-word::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #dc2626, #ef4444, #f87171);
    border-radius: 2px;
    transform-origin: left;
    animation: devLaserLine 3.5s ease-in-out infinite alternate;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
}

.photo-subtext {
    max-width: 640px;
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 1.2vw, 1.05rem);
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ---------- Bento Grid ---------- */
.photo-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 14px;
    margin-bottom: clamp(2.5rem, 4vw, 4rem);
}

.bento-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--border);
    cursor: pointer;
    background: #0d0d10;
    transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo), border-color 0.4s ease;
}

.bento-item:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    z-index: 5;
}

/* Grid placements */
.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-portrait {
    grid-column: span 1;
    grid-row: span 2;
}

.bento-square {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-wide {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-small {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-tall {
    grid-column: span 1;
    grid-row: span 2;
}

.bento-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Real photo image styling */
.bento-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.bento-item:hover .bento-photo-img {
    transform: scale(1.06);
    filter: brightness(1.06) contrast(1.03);
}

/* Telemetry Badge */
.bento-telemetry-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    font-family: monospace;
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    color: #fff;
    background: rgba(239, 68, 68, 0.25);
    border: 1px solid rgba(239, 68, 68, 0.6);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
}

/* Placeholder styled containers */
.bento-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(145deg, #18181f 0%, #121217 50%, #0d0d10 100%);
    transition: transform 0.6s var(--ease-out-expo);
}

.bento-item:hover .bento-placeholder {
    transform: scale(1.05);
}

.bento-placeholder-icon {
    color: var(--text-muted);
    opacity: 0.5;
}

.bento-placeholder-label {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    opacity: 0.6;
}

/* HUD Overlay on hover */
.bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 14, 0.25) 0%, rgba(10, 10, 14, 0.88) 60%, rgba(8, 8, 10, 0.95) 100%);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out-expo);
    z-index: 2;
}

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

.bento-overlay .bento-corner {
    position: absolute;
    font-family: monospace;
    font-size: 0.65rem;
    color: rgba(239, 68, 68, 0.7);
    line-height: 1;
}

.bento-overlay .bento-corner.tl {
    top: 8px;
    left: 10px;
}

.bento-overlay .bento-corner.tr {
    top: 8px;
    right: 10px;
}

.bento-overlay .bento-corner.bl {
    bottom: 8px;
    left: 10px;
}

.bento-overlay .bento-corner.br {
    bottom: 8px;
    right: 10px;
}

.bento-meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.bento-meta-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bento-meta-label {
    font-family: monospace;
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.45);
    min-width: 50px;
}

.bento-meta-value {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.95);
}

.bento-title-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: #fff;
}

.bento-title-accent {
    color: var(--accent);
    font-weight: 800;
}

/* ---------- Photo Stats Bar ---------- */
.photo-stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1.5rem, 3vw, 3rem);
    flex-wrap: wrap;
    padding: clamp(1.5rem, 3vw, 2.5rem) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}

.photo-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.photo-stat-num {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.photo-stat-label {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.photo-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* ---------- Photo Genre Marquee ---------- */
.photo-marquee {
    width: 100%;
    overflow: hidden;
    padding: 1.5rem 0;
    margin-top: 1rem;
}

.photo-marquee-track {
    display: flex;
    gap: 0;
    white-space: nowrap;
    animation: photoMarquee 30s linear infinite;
}

.photo-marquee-item {
    font-family: var(--font-display);
    font-size: clamp(0.8rem, 1.5vw, 1.1rem);
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    padding: 0 1rem;
    opacity: 0.5;
}

.photo-marquee-sep {
    color: var(--text-muted);
    opacity: 0.3;
    padding: 0 0.5rem;
}

@keyframes photoMarquee {
    from {
        transform: translateX(0);
    }

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

/* ============================================
   PHOTO EDITING SKILLS SECTION
   Before/After Slider + Tool Proficiency
   ============================================ */

.editing-section {
    position: relative;
    width: 100%;
    padding: clamp(5rem, 9vw, 9rem) 0;
    background-color: var(--bg-secondary);
    overflow: hidden;
}

.editing-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(to right, rgba(10, 10, 10, 0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(10, 10, 10, 0.025) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at 60% 50%, black 25%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 60% 50%, black 25%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.editing-ambient-glow {
    position: absolute;
    bottom: 10%;
    right: -10%;
    width: 550px;
    height: 550px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(10, 10, 10, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    filter: blur(50px);
}

.editing-container {
    position: relative;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    z-index: 2;
}

/* Editing Header */
.editing-header {
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.editing-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border);
}

/* Cyber Lab Badge & Crazy Title Animations */
.cyber-lab-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1.15rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(10, 10, 10, 0.12);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: default;
    transition: all 0.35s var(--ease-out-expo);
}

.cyber-lab-badge:hover {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 24px rgba(239, 68, 68, 0.25), 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.lab-title-text {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--text-primary);
    text-transform: uppercase;
    transition: text-shadow 0.3s;
}

.cyber-lab-badge:hover .lab-title-text {
    animation: cyberGlitchText 0.35s ease infinite alternate;
}

@keyframes cyberGlitchText {
    0% {
        text-shadow: 1.5px 0 0 rgba(239, 68, 68, 0.8), -1.5px 0 0 rgba(244, 63, 94, 0.8);
    }

    100% {
        text-shadow: -1.5px 0 0 rgba(239, 68, 68, 0.8), 1.5px 0 0 rgba(244, 63, 94, 0.8);
    }
}

.lab-scan-beam {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.3), rgba(248, 113, 113, 0.4), transparent);
    animation: labLaserSweep 3.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    pointer-events: none;
}

@keyframes labLaserSweep {

    0%,
    20% {
        left: -100%;
    }

    50%,
    70% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

/* Editing Status Meta */
.editing-status {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.rec-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.65rem;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 4px;
    font-family: monospace;
    font-weight: 700;
    font-size: 0.65rem;
    color: #dc2626;
    letter-spacing: 0.1em;
}

.rec-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
    animation: recBlink 1.2s ease-in-out infinite;
}

@keyframes recBlink {

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

    50% {
        opacity: 0.25;
        transform: scale(0.85);
    }
}

.lab-eq-visualizer {
    display: inline-flex;
    align-items: flex-end;
    gap: 3px;
    height: 14px;
    padding: 0 4px;
}

.eq-bar {
    width: 2.5px;
    border-radius: 1px;
    background: var(--text-primary);
    animation: eqBounce 0.8s ease-in-out infinite alternate;
}

.eq-bar:nth-child(1) {
    height: 40%;
    animation-duration: 0.65s;
}

.eq-bar:nth-child(2) {
    height: 85%;
    animation-duration: 0.9s;
    animation-delay: 0.1s;
}

.eq-bar:nth-child(3) {
    height: 60%;
    animation-duration: 0.75s;
    animation-delay: 0.2s;
}

.eq-bar:nth-child(4) {
    height: 100%;
    animation-duration: 1.1s;
    animation-delay: 0.15s;
}

.eq-bar:nth-child(5) {
    height: 50%;
    animation-duration: 0.8s;
    animation-delay: 0.3s;
}

@keyframes eqBounce {
    0% {
        height: 20%;
        opacity: 0.5;
    }

    100% {
        height: 100%;
        opacity: 1;
    }
}

.editing-pipeline-tag {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--text-muted);
}

/* Editing Headline Wrapper & Viewfinder */
.editing-headline-wrapper {
    position: relative;
    padding: 1.5rem 1.8rem;
    margin-top: 0.5rem;
    border: 1px solid rgba(10, 10, 10, 0.05);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.15));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.4s var(--ease-out-expo);
}

.editing-headline-wrapper:hover {
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.06);
}

.viewfinder-bracket {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(10, 10, 10, 0.3);
    pointer-events: none;
    transition: all 0.4s var(--ease-out-expo);
}

.viewfinder-bracket.tl {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.viewfinder-bracket.tr {
    top: -1px;
    right: -1px;
    border-left: none;
    border-bottom: none;
}

.viewfinder-bracket.bl {
    bottom: -1px;
    left: -1px;
    border-right: none;
    border-top: none;
}

.viewfinder-bracket.br {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

.editing-headline-wrapper:hover .viewfinder-bracket {
    border-color: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.editing-headline-wrapper:hover .viewfinder-bracket.tl {
    transform: translate(-3px, -3px);
}

.editing-headline-wrapper:hover .viewfinder-bracket.tr {
    transform: translate(3px, -3px);
}

.editing-headline-wrapper:hover .viewfinder-bracket.bl {
    transform: translate(-3px, 3px);
}

.editing-headline-wrapper:hover .viewfinder-bracket.br {
    transform: translate(3px, 3px);
}

.editing-headline {
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-size: clamp(2.5rem, 6.2vw, 5.8rem);
    margin: 0;
}

.headline-word.raw-word {
    display: inline-block;
    position: relative;
    transition: transform 0.3s;
}

.headline-word.refined-word {
    display: inline-block;
    -webkit-text-stroke: 1.5px var(--text-primary);
    color: transparent;
    background: linear-gradient(115deg, transparent 15%, rgba(10, 10, 10, 0.95) 45%, #ef4444 50%, #dc2626 55%, transparent 85%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: holographicSweep 5s linear infinite;
    filter: drop-shadow(0 0 1px rgba(239, 68, 68, 0.35));
    transition: filter 0.3s;
}

@keyframes holographicSweep {
    0% {
        background-position: 150% 0;
    }

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

.headline-word.refined-word:hover {
    filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.8));
}

.headline-word.excellence-word {
    display: inline-block;
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #7f1d1d 50%, #dc2626 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.headline-word.excellence-word::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #dc2626, #ef4444, #f87171);
    border-radius: 2px;
    transform-origin: left;
    animation: laserLineScan 3.5s ease-in-out infinite alternate;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
}

@keyframes laserLineScan {
    0% {
        opacity: 0.4;
        transform: scaleX(0.75);
    }

    50% {
        opacity: 1;
        transform: scaleX(1);
    }

    100% {
        opacity: 0.6;
        transform: scaleX(0.9);
    }
}

.headline-telemetry {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
    padding-top: 0.85rem;
    border-top: 1px dashed rgba(10, 10, 10, 0.1);
    font-family: monospace;
    font-size: 0.68rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.headline-telemetry .hud-label {
    color: var(--text-secondary);
    font-weight: 700;
    margin-right: 0.35rem;
}

/* ---------- Editing Layout (Balanced Heights) ---------- */
.editing-layout {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: stretch;
}

/* Before/After Comparison Card */
.editing-comparison-card {
    position: relative;
    height: 100%;
}

.comparison-card-inner {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: clamp(1.4rem, 2.5vw, 1.85rem);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.04);
    transition: border-color 0.3s;
}

.comparison-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.comp-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sensor-info-chip {
    font-family: monospace;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #dc2626;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
}

.live-pulse-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: recBlink 1.5s ease-in-out infinite;
}

/* Comparison Slider */
.comparison-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10.5;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(10, 10, 10, 0.12);
    cursor: ew-resize;
    user-select: none;
    touch-action: none;
    container-type: inline-size;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    margin-bottom: 0.85rem;
}

.comparison-before,
.comparison-after {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
}

.comparison-after {
    width: 100%;
    z-index: 1;
}

.comparison-before {
    z-index: 2;
    width: 50%;
    overflow: hidden;
}

.comp-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.comparison-before .comp-img {
    width: var(--comp-slider-width, 100cqw);
    min-width: var(--comp-slider-width, 100cqw);
    max-width: none;
    height: 100%;
    filter: saturate(0.45) contrast(0.78) brightness(0.95) sepia(0.08);
}

.comparison-after .comp-img {
    filter: saturate(1.3) contrast(1.15) brightness(1.03) sepia(0.12);
    transition: filter 0.45s ease;
}

/* Comparison HUD Overlays */
.comparison-badge {
    position: absolute;
    top: 12px;
    font-family: monospace;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.before-badge {
    left: 12px;
    background: rgba(10, 10, 10, 0.8);
    color: #f4f4f5;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.after-badge {
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    border: 1px solid rgba(10, 10, 10, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.badge-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.raw-dot {
    background: #94a3b8;
}

.graded-dot {
    background: #ef4444;
    box-shadow: 0 0 6px #ef4444;
}

.comp-hud-telemetry {
    position: absolute;
    bottom: 12px;
    font-family: monospace;
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 0.25rem 0.55rem;
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    pointer-events: none;
    z-index: 4;
}

.raw-hud {
    left: 12px;
}

.graded-hud {
    right: 12px;
    text-align: right;
}

/* Comparison Drag Handle */
.comparison-handle {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.handle-line {
    flex: 1;
    width: 2px;
    background: #ffffff;
    opacity: 0.85;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
}

.handle-laser {
    width: 2px;
    height: 35px;
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
}

.handle-grip {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #0a0a0a;
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(239, 68, 68, 0.4);
    flex-shrink: 0;
    pointer-events: auto;
    cursor: ew-resize;
    position: relative;
    transition: transform 0.2s var(--ease-out-expo), box-shadow 0.2s;
}

.handle-grip-ring {
    position: absolute;
    inset: -4px;
    border: 1px dashed rgba(239, 68, 68, 0.7);
    border-radius: 50%;
    animation: rotateRing 12s linear infinite;
    pointer-events: none;
}

@keyframes rotateRing {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.comparison-slider:active .handle-grip {
    transform: scale(1.15);
    box-shadow: 0 6px 24px rgba(239, 68, 68, 0.6);
}

/* Comparison Controls & LUT Switcher */
.comparison-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 0.4rem;
}

.comparison-hint {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.comparison-hint-icon {
    font-size: 0.85rem;
    animation: hintSlide 2s ease-in-out infinite;
}

@keyframes hintSlide {

    0%,
    100% {
        transform: translateX(-3px);
    }

    50% {
        transform: translateX(3px);
    }
}

.lut-selector-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lut-label {
    font-family: monospace;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.lut-buttons {
    display: flex;
    gap: 0.35rem;
}

.lut-btn {
    font-family: monospace;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.65rem;
    border-radius: 4px;
    border: 1px solid rgba(10, 10, 10, 0.12);
    background: rgba(10, 10, 10, 0.03);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.lut-btn:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.lut-btn.active {
    background: var(--text-primary);
    color: #ffffff;
    border-color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

/* ---------- Tool Proficiency & Right Panel ---------- */
.editing-tools-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.25rem;
    height: 100%;
}

.editing-card {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: clamp(1.3rem, 2vw, 1.65rem) clamp(1.4rem, 2.2vw, 1.85rem);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.35s var(--ease-out-expo),
        box-shadow 0.35s var(--ease-out-expo),
        border-color 0.35s;
}

.editing-card:hover {
    transform: translateY(-2px);
    border-color: rgba(10, 10, 10, 0.25);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

/* Skill Bars (Tool Proficiency) */
.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    margin-top: 0.75rem;
}

.skill-bar-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.skill-bar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.skill-bar-name {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-primary);
}

.skill-bar-pct {
    font-family: monospace;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-primary);
    background: rgba(10, 10, 10, 0.05);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.skill-bar-track {
    position: relative;
    width: 100%;
    height: 8px;
    background: rgba(10, 10, 10, 0.06);
    border: 1px solid rgba(10, 10, 10, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.track-ticks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-evenly;
    pointer-events: none;
    z-index: 2;
}

.track-ticks span {
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
}

.skill-bar-fill {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #18181b 0%, #7f1d1d 70%, #ef4444 100%);
    border-radius: 3px;
    transition: width 1.3s var(--ease-out-expo);
    position: relative;
}

.fill-glow-tip {
    position: absolute;
    right: 0;
    top: 0;
    width: 6px;
    height: 100%;
    background: #ffffff;
    box-shadow: 0 0 8px #ef4444;
    border-radius: 2px;
}

.skill-bar-fill.animated {
    width: var(--fill-width);
}

/* Capability Pills */
.capability-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.65rem;
}

.capability-pill {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(10, 10, 10, 0.1);
    padding: 0.4rem 0.9rem;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.25s var(--ease-out-expo);
}

.pill-bullet {
    font-size: 0.65rem;
    color: #ef4444;
    transition: color 0.25s;
}

.capability-pill:hover {
    background: var(--text-primary);
    color: #ffffff;
    border-color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.capability-pill:hover .pill-bullet {
    color: #ef4444;
}

/* Scope Telemetry Card */
.scope-telemetry-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 1rem;
    align-items: center;
    margin-top: 0.65rem;
}

.scope-monitor-box {
    background: #09090b;
    border-radius: 8px;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.scope-header {
    display: flex;
    justify-content: space-between;
    font-family: monospace;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
    letter-spacing: 0.08em;
}

.parade-bars {
    display: flex;
    justify-content: space-between;
    height: 38px;
    align-items: flex-end;
    padding: 0 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.parade-channel {
    display: flex;
    align-items: flex-end;
    gap: 2px;
}

.r-channel .p-bar {
    background: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.7);
}

.g-channel .p-bar {
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.7);
}

.b-channel .p-bar {
    background: #ef4444;
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.7);
}

.p-bar {
    width: 3px;
    border-radius: 1px;
    animation: paradeOscillate 1.5s ease-in-out infinite alternate;
}

.p-bar:nth-child(1) {
    height: 60%;
    animation-duration: 1.2s;
}

.p-bar:nth-child(2) {
    height: 90%;
    animation-duration: 1.6s;
    animation-delay: 0.2s;
}

.p-bar:nth-child(3) {
    height: 45%;
    animation-duration: 1.4s;
    animation-delay: 0.4s;
}

@keyframes paradeOscillate {
    0% {
        height: 35%;
        opacity: 0.7;
    }

    100% {
        height: 95%;
        opacity: 1;
    }
}

.color-spec-stats {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.spec-stat-item {
    display: flex;
    justify-content: space-between;
    font-family: monospace;
    font-size: 0.68rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(10, 10, 10, 0.06);
}

.spec-label {
    color: var(--text-muted);
    font-size: 0.62rem;
}

.spec-val {
    font-weight: 700;
    color: var(--text-primary);
}

/* ============================================
   RESPONSIVE — CREATIVE SECTIONS
   ============================================ */

@media (max-width: 1024px) {
    .photo-bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
    }

    .bento-large {
        grid-column: span 2;
        grid-row: span 2;
    }

    .bento-portrait {
        grid-column: span 1;
        grid-row: span 2;
    }

    .bento-wide {
        grid-column: span 2;
        grid-row: span 1;
    }

    .bento-tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .editing-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

}

@media (max-width: 768px) {
    .photo-bento-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 160px;
    }

    .bento-large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .bento-portrait {
        grid-column: span 1;
        grid-row: span 1;
    }

    .bento-tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .photo-stats-bar {
        gap: 1.5rem;
    }

    .photo-meta-row,
    .editing-meta-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .photo-bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 180px;
    }

    .bento-large,
    .bento-portrait,
    .bento-wide,
    .bento-tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .photo-stats-bar {
        flex-direction: column;
        gap: 1rem;
    }

    .photo-stat-divider {
        width: 40px;
        height: 1px;
    }

    .comparison-slider {
        aspect-ratio: 4 / 3;
    }
}

/* ============================================
   CONTACT SECTION & COMMAND CONSOLE
   Aggressive High-Tech Editorial Design
   ============================================ */


.contact {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    padding: clamp(5rem, 9vw, 9rem) 0 0;
    overflow: hidden;
}

/* Ambient Grid Pattern */
.contact-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(to right, rgba(10, 10, 10, 0.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(10, 10, 10, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at 50% 30%, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at 50% 30%, black 40%, transparent 80%);
    pointer-events: none;
    z-index: 1;
}

.contact-ambient-glow {
    position: absolute;
    top: 15%;
    right: -5%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(10, 10, 10, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    filter: blur(40px);
}

.contact-container {
    position: relative;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    z-index: 2;
}

/* ---------- Contact Section Header ---------- */
.contact-header {
    margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.contact-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border);
}

.contact-index {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.index-accent {
    color: var(--text-primary);
    font-weight: 800;
    margin-right: 0.25rem;
}

.contact-coords {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.coords-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
    animation: statusPulse 2.5s infinite;
}

/* Contact Headline Wrapper & Viewfinder Reticles */
.contact-headline-wrapper {
    position: relative;
    padding: clamp(1.5rem, 3.5vw, 2.8rem);
    margin-top: 0.5rem;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
    border: 1px solid rgba(10, 10, 10, 0.05);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.15));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.4s var(--ease-out-expo);
}

.contact-headline-wrapper:hover {
    border-color: rgba(239, 68, 68, 0.35);
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.06);
}

.contact-headline-wrapper:hover .viewfinder-bracket {
    border-color: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.contact-headline-wrapper:hover .viewfinder-bracket.tl {
    transform: translate(-3px, -3px);
}

.contact-headline-wrapper:hover .viewfinder-bracket.tr {
    transform: translate(3px, -3px);
}

.contact-headline-wrapper:hover .viewfinder-bracket.bl {
    transform: translate(-3px, 3px);
}

.contact-headline-wrapper:hover .viewfinder-bracket.br {
    transform: translate(3px, 3px);
}

/* Massive Aggressive Headline */
.contact-headline {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7.8vw, 7.2rem);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    margin-bottom: 0;
}

.contact-headline .build-word {
    display: inline-block;
    position: relative;
    color: var(--text-primary);
    transition: transform 0.3s, text-shadow 0.3s;
}

.contact-headline .build-word:hover {
    transform: translateX(4px);
    animation: cyberGlitchDev 0.35s ease infinite alternate;
}

.contact-headline .something-word {
    display: inline-block;
    -webkit-text-stroke: 1.5px var(--text-primary);
    color: transparent;
    background: linear-gradient(115deg, transparent 15%, rgba(10, 10, 10, 0.95) 45%, #ef4444 50%, #dc2626 55%, transparent 85%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: holographicSweep 5s linear infinite;
    filter: drop-shadow(0 0 1px rgba(239, 68, 68, 0.35));
    transition: filter 0.3s, transform 0.3s;
}

.contact-headline .something-word:hover {
    filter: drop-shadow(0 0 18px rgba(239, 68, 68, 1));
    transform: scale(1.02);
}

.contact-headline .unreasonable-word {
    display: inline-block;
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #7f1d1d 50%, #dc2626 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 2px 14px rgba(239, 68, 68, 0.25));
    transition: filter 0.3s, transform 0.3s;
}

.contact-headline .unreasonable-word:hover {
    filter: drop-shadow(0 0 22px rgba(239, 68, 68, 1));
    transform: scale(1.03);
}

.contact-headline .unreasonable-word::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #dc2626, #ef4444, #f87171);
    border-radius: 2px;
    transform-origin: left;
    animation: devLaserLine 3.5s ease-in-out infinite alternate;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.7);
}

.headline-row {
    display: block;
    overflow: hidden;
}

.headline-word {
    display: inline-block;
    transition: transform 0.4s var(--ease-out-expo);
}

.headline-word.outline-text {
    color: transparent;
    -webkit-text-stroke: 2px var(--text-primary);
    transition: color 0.4s, -webkit-text-stroke 0.4s;
    margin-right: 0.25em;
}

.headline-word.outline-text:hover {
    color: var(--text-primary);
}

.headline-word.highlight-accent {
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

/* Subhead Info Bar */
.contact-subhead-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.contact-availability {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.availability-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    animation: statusPulse 2s ease-in-out infinite;
}

.availability-text {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    text-transform: uppercase;
}

.contact-time-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-body);
}

.time-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.time-display {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    background: rgba(10, 10, 10, 0.06);
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
}

/* ---------- Main Contact Grid Layout ---------- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.28fr;
    gap: clamp(1.75rem, 3.5vw, 3.5rem);
    align-items: start;
    margin-bottom: clamp(4rem, 8vw, 7rem);
}

/* ---------- Left Deck: Cards & Specs ---------- */
.contact-deck {
    display: flex;
    flex-direction: column;
    gap: clamp(1.25rem, 2vw, 1.75rem);
}

.contact-card {
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: clamp(1.4rem, 2.5vw, 1.85rem);
    transition: transform 0.4s var(--ease-out-expo),
        box-shadow 0.4s var(--ease-out-expo),
        border-color 0.4s;
}

.contact-card:hover {
    border-color: rgba(10, 10, 10, 0.35);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.05);
}

/* Technical Corner Crosshairs */
.card-corner,
.console-corner {
    position: absolute;
    font-family: monospace;
    font-size: 0.75rem;
    line-height: 1;
    color: rgba(10, 10, 10, 0.3);
    pointer-events: none;
    user-select: none;
    transition: color 0.3s, transform 0.3s;
}

.card-corner.tl,
.console-corner.tl {
    top: 8px;
    left: 8px;
}

.card-corner.tr,
.console-corner.tr {
    top: 8px;
    right: 8px;
}

.card-corner.bl,
.console-corner.bl {
    bottom: 8px;
    left: 8px;
}

.card-corner.br,
.console-corner.br {
    bottom: 8px;
    right: 8px;
}

.editing-card .card-corner.tl,
.comparison-card-inner .card-corner.tl {
    top: 12px;
    left: 12px;
}

.editing-card .card-corner.tr,
.comparison-card-inner .card-corner.tr {
    top: 12px;
    right: 12px;
}

.editing-card .card-corner.bl,
.comparison-card-inner .card-corner.bl {
    bottom: 12px;
    left: 12px;
}

.editing-card .card-corner.br,
.comparison-card-inner .card-corner.br {
    bottom: 12px;
    right: 12px;
}

.contact-card:hover .card-corner,
.editing-card:hover .card-corner,
.editing-comparison-card:hover .card-corner,
.console-box:hover .console-corner {
    color: var(--text-primary);
    transform: scale(1.15);
}

.card-inner {
    position: relative;
    z-index: 2;
}

.card-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
}

.card-tag {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Click to Copy Card */
.email-card {
    cursor: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 243, 240, 0.8));
    border-left: 3px solid var(--text-primary);
}

.email-card:hover {
    transform: translateY(-3px);
}

.copy-action-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    background: rgba(10, 10, 10, 0.06);
    padding: 0.25rem 0.55rem;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.email-card:hover .copy-action-indicator {
    background: var(--text-primary);
    color: var(--white);
}

.email-card.copied .copy-action-indicator {
    background: #22c55e;
    color: var(--white);
}

.email-address {
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 1.8vw, 1.4rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    word-break: break-all;
    margin-bottom: 0.35rem;
}

.card-hint {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Capabilities Specs Card */
.card-status-badge {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: #15803d;
    background: rgba(34, 197, 94, 0.12);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.specs-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.spec-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px dashed rgba(10, 10, 10, 0.1);
}

.spec-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.spec-num {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    padding-top: 0.1rem;
}

.spec-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.spec-info strong {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.spec-info span {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Socials Matrix Card */
.matrix-freq {
    font-family: monospace;
    font-size: 0.65rem;
    color: var(--text-muted);
}

.socials-matrix {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.matrix-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 0.95rem;
    background: rgba(10, 10, 10, 0.025);
    border: 1px solid rgba(10, 10, 10, 0.08);
    border-radius: 6px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    cursor: none;
    transition: all 0.3s var(--ease-out-expo);
}

.matrix-link-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.matrix-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-primary);
    transition: background-color 0.3s;
}

.matrix-arrow {
    font-size: 0.9rem;
    transition: transform 0.3s var(--ease-out-expo);
}

.matrix-link:hover {
    background: var(--text-primary);
    color: var(--white);
    border-color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.matrix-link:hover .matrix-dot {
    background: var(--white);
}

.matrix-link:hover .matrix-arrow {
    transform: translate(3px, -3px);
}

/* ---------- Right: High-Tech Command Console (Form) ---------- */
.contact-console {
    position: relative;
}

.console-box {
    position: relative;
    background: #ffffff;
    border: 1.5px solid rgba(10, 10, 10, 0.16);
    border-radius: 12px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: border-color 0.4s;
}

.console-box:hover {
    border-color: rgba(10, 10, 10, 0.35);
}

/* Console Top Bar */
.console-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.console-dots {
    display: flex;
    gap: 6px;
}

.console-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.dot-red {
    background: #ef4444;
}

.dot-yellow {
    background: #f59e0b;
}

.dot-green {
    background: #22c55e;
}

.console-terminal-title {
    font-family: monospace;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    font-weight: 600;
}

.console-indicator {
    font-family: monospace;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #15803d;
}

/* Project Scope Selector */
.console-scope-selector {
    margin-bottom: 1.75rem;
}

.scope-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.scope-icon {
    font-size: 0.85rem;
}

.scope-title {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.scope-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.scope-pill {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
    background: rgba(10, 10, 10, 0.03);
    border: 1px solid rgba(10, 10, 10, 0.1);
    border-radius: 100px;
    padding: 0.45rem 1rem;
    cursor: none;
    transition: all 0.3s var(--ease-out-expo);
}

.scope-pill:hover {
    background: rgba(10, 10, 10, 0.08);
    color: var(--text-primary);
    border-color: rgba(10, 10, 10, 0.25);
    transform: translateY(-1px);
}

.scope-pill.active {
    background: var(--text-primary);
    color: var(--white);
    border-color: var(--text-primary);
    box-shadow: 0 4px 14px rgba(10, 10, 10, 0.18);
    transform: translateY(-1px);
}

/* Form Fields */
.console-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.form-label {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.label-idx {
    font-family: monospace;
    color: var(--text-muted);
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.console-input,
.console-textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--text-primary);
    background: rgba(10, 10, 10, 0.025);
    border: 1px solid rgba(10, 10, 10, 0.12);
    border-radius: 6px;
    padding: 0.85rem 1rem;
    outline: none;
    transition: all 0.3s var(--ease-out-expo);
    cursor: none;
}

.console-input::placeholder,
.console-textarea::placeholder {
    color: rgba(10, 10, 10, 0.35);
    font-size: 0.82rem;
}

.console-textarea {
    resize: vertical;
    min-height: 105px;
    line-height: 1.5;
}

.input-focus-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s var(--ease-out-expo);
    border-radius: 0 0 6px 6px;
    pointer-events: none;
}

.console-input:focus,
.console-textarea:focus {
    background: #ffffff;
    border-color: rgba(10, 10, 10, 0.4);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.console-input:focus+.input-focus-line,
.console-textarea:focus+.input-focus-line {
    transform: scaleX(1);
}

/* Form Status Message */
.form-status-msg {
    font-family: var(--font-body);
    font-size: 0.75rem;
    padding: 0;
    min-height: 0;
    transition: all 0.3s;
}

.form-status-msg.error {
    color: #ef4444;
    padding: 0.5rem 0.75rem;
    background: rgba(239, 68, 68, 0.08);
    border-radius: 4px;
}

/* Action Row & Magnetic Submit Button */
.form-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 0.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.action-telemetry {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.telemetry-bar {
    width: 14px;
    height: 3px;
    background: #22c55e;
    border-radius: 2px;
}

.telemetry-txt {
    font-family: monospace;
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.console-submit-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--text-primary);
    color: var(--white);
    border: none;
    border-radius: 6px;
    padding: 0.95rem 1.85rem;
    cursor: none;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s;
}

.btn-text {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.btn-arrow {
    transition: transform 0.3s var(--ease-out-expo);
}

.console-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(10, 10, 10, 0.28);
}

.console-submit-btn:hover .btn-arrow {
    transform: translateX(4px);
}

.console-submit-btn:active {
    transform: translateY(0);
}

.console-submit-btn.sending {
    pointer-events: none;
    opacity: 0.8;
}

.console-submit-btn.sending .btn-arrow {
    animation: planeFly 1s infinite linear;
}

@keyframes planeFly {
    0% {
        transform: translateX(-4px);
        opacity: 0.2;
    }

    50% {
        transform: translateX(2px);
        opacity: 1;
    }

    100% {
        transform: translateX(8px);
        opacity: 0;
    }
}

/* Success Overlay */
.console-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    text-align: center;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.96);
    transition: all 0.5s var(--ease-out-expo);
}

.console-success-overlay.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.success-content {
    max-width: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.success-desc {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.reset-console-btn {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    background: transparent;
    border: 1.5px solid var(--text-primary);
    border-radius: 6px;
    padding: 0.65rem 1.25rem;
    margin-top: 0.5rem;
    cursor: none;
    transition: all 0.3s;
}

.reset-console-btn:hover {
    background: var(--text-primary);
    color: var(--white);
}

/* ---------- Notification Toast ---------- */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translate(-50%, 40px);
    background: #0a0a0a;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 100000;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease-out-expo), opacity 0.4s;
}

.toast-notification.show {
    transform: translate(-50%, 0);
    opacity: 1;
}

.toast-symbol {
    color: #22c55e;
}

/* ---------- Site Footer ---------- */
.site-footer {
    position: relative;
    border-top: 1px solid var(--border);
    padding: clamp(2.5rem, 4vw, 4rem) 0 3rem;
    background: rgba(245, 243, 240, 0.7);
    backdrop-filter: blur(8px);
    z-index: 5;
}

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

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(10, 10, 10, 0.08);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-symbol {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.footer-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--text-primary);
}

.footer-tagline {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.back-to-top-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-primary);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 0.6rem 1.25rem;
    cursor: none;
    transition: all 0.3s var(--ease-out-expo);
}

.back-to-top-btn:hover {
    background: var(--text-primary);
    color: var(--white);
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

.back-to-top-btn svg {
    transition: transform 0.3s var(--ease-out-expo);
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.75rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-tech {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: monospace;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
}

.footer-tech .sep {
    opacity: 0.4;
}

/* ---------- Scroll Reveal Animations ---------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}

[data-reveal].is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered entry for columns */
.contact-layout .contact-deck.is-revealed {
    transition-delay: 0.15s;
}

.contact-layout .contact-console.is-revealed {
    transition-delay: 0.3s;
}

/* ---------- Media Queries for Contact Section ---------- */
@media (max-width: 1024px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-deck {
        order: 2;
    }

    .contact-console {
        order: 1;
    }
}

@media (max-width: 768px) {
    .contact-subhead-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-grid-2 {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .socials-matrix {
        grid-template-columns: 1fr;
    }

    .form-action-row {
        flex-direction: column;
        align-items: stretch;
    }

    .console-submit-btn {
        width: 100%;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* ============================================
   PHOTO LIGHTBOX MODAL (OPTICAL INSPECTOR)
   ============================================ */
.photo-lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.75rem, 3vw, 2.5rem);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
}

.photo-lightbox-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.photo-lightbox-modal .lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 4, 7, 0.9);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.photo-lightbox-modal .lightbox-dialog {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1100px;
    max-height: 92vh;
    background: rgba(14, 14, 18, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85), 0 0 40px rgba(239, 68, 68, 0.15);
    overflow: hidden;
    transform: scale(0.96) translateY(12px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.photo-lightbox-modal.active .lightbox-dialog {
    transform: scale(1) translateY(0);
}

.lightbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(20, 20, 26, 0.7);
}

.lightbox-badge {
    font-family: monospace;
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    color: var(--accent);
}

.lightbox-title {
    font-family: var(--font-display);
    font-size: clamp(0.85rem, 1.3vw, 1.05rem);
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #fff;
    margin-top: 0.15rem;
}

.lightbox-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.lightbox-counter {
    font-family: monospace;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.5);
}

.lightbox-close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.lightbox-close-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.6);
    transform: scale(1.06);
}

.lightbox-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    min-height: 280px;
    max-height: 60vh;
    background: #08080a;
    overflow: hidden;
}

.lightbox-image-wrap {
    position: relative;
    max-width: 100%;
    max-height: 56vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-main-img {
    max-width: 100%;
    max-height: 56vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.7);
    transition: opacity 0.25s ease, transform 0.3s ease;
}

.lightbox-corners {
    position: absolute;
    inset: -8px;
    pointer-events: none;
}

.lightbox-corners span {
    position: absolute;
    font-family: monospace;
    font-size: 0.8rem;
    color: rgba(239, 68, 68, 0.7);
}

.lightbox-corners .lc-tl { top: 0; left: 0; }
.lightbox-corners .lc-tr { top: 0; right: 0; }
.lightbox-corners .lc-bl { bottom: 0; left: 0; }
.lightbox-corners .lc-br { bottom: 0; right: 0; }

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(20, 20, 28, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.lightbox-nav-btn:hover {
    background: rgba(239, 68, 68, 0.35);
    border-color: rgba(239, 68, 68, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav-btn.prev { left: 1rem; }
.lightbox-nav-btn.next { right: 1rem; }

.lightbox-hud-strip {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0.85rem 1.25rem;
    background: rgba(18, 18, 24, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    overflow-x: auto;
}

.lightbox-hud-strip .hud-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    text-align: center;
    min-width: 90px;
}

.lightbox-hud-strip .hud-label {
    font-family: monospace;
    font-size: 0.55rem;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.45);
}

.lightbox-hud-strip .hud-value {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.04em;
}

.lightbox-hud-strip .hud-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   MOBILE & TOUCH ENHANCEMENTS
   ============================================ */
@media (max-width: 768px) {
    /* Hero floating tags converted into mobile skill chip bar */
    .floating-tags {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 0.5rem !important;
        margin: 1.25rem 0 1rem !important;
        pointer-events: auto !important;
        z-index: 10 !important;
    }

    .floating-tag {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        display: inline-flex !important;
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        padding: 0.35rem 0.75rem !important;
        font-size: 0.7rem !important;
        background: rgba(255, 255, 255, 0.85) !important;
        border: 1px solid rgba(10, 10, 10, 0.08) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
    }

    /* DaVinci Timeline Ruler optimization */
    .timeline-mode-label {
        display: none !important;
    }

    .timeline-ruler {
        max-width: 100% !important;
        font-size: 0.58rem !important;
    }

    .timeline-ruler span:nth-child(2),
    .timeline-ruler span:nth-child(4) {
        display: none !important;
    }

    /* Bento overlay visible on touch with tap indicator */
    .bento-overlay {
        opacity: 1 !important;
        background: linear-gradient(0deg, rgba(8, 8, 12, 0.9) 0%, rgba(8, 8, 12, 0.4) 45%, transparent 100%) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        padding: 0.9rem !important;
        pointer-events: none;
    }

    .bento-overlay .bento-meta {
        display: none !important;
    }

    .bento-overlay .bento-corner {
        display: none !important;
    }

    .bento-telemetry-tag {
        top: 8px !important;
        right: 8px !important;
        font-size: 0.55rem !important;
        padding: 0.2rem 0.45rem !important;
    }

    .bento-title-bar {
        font-size: 0.72rem !important;
        border-top: none !important;
        padding-top: 0 !important;
    }

    /* Lightbox Modal on mobile */
    .photo-lightbox-modal {
        padding: 0.4rem;
    }

    .photo-lightbox-modal .lightbox-dialog {
        max-height: 96vh;
    }

    .lightbox-stage {
        padding: 0.5rem;
        max-height: 48vh;
        min-height: 220px;
    }

    .lightbox-main-img {
        max-height: 46vh;
    }

    .lightbox-nav-btn {
        width: 36px;
        height: 36px;
    }

    .lightbox-nav-btn.prev { left: 0.4rem; }
    .lightbox-nav-btn.next { right: 0.4rem; }

    .lightbox-hud-strip {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.6rem 0.4rem;
        padding: 0.75rem 0.85rem;
    }

    .lightbox-hud-strip .hud-divider {
        display: none;
    }

    .lightbox-hud-strip .hud-item {
        min-width: auto;
    }
}

@media (max-width: 580px) {
    .photo-bento-grid {
        grid-template-columns: 1fr !important;
        grid-auto-rows: 250px !important;
        gap: 14px !important;
    }

    .bento-large,
    .bento-tall,
    .bento-square,
    .bento-wide {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
}

/* ---------- Smooth scroll for cursor: none override on touch ---------- */
@media (hover: none) {
    body {
        cursor: auto;
    }

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

    .nav-link,
    .nav-cta-btn,
    .social-link,
    .floating-tag,
    .scope-pill,
    .console-submit-btn,
    .email-card,
    .matrix-link,
    .reset-console-btn,
    .back-to-top-btn,
    .console-input,
    .console-textarea {
        cursor: pointer !important;
    }
}