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

/* Fullscreen video: always show the whole frame (letterboxed), never crop.
   Cards use object-fit:cover for the thumbnail; in fullscreen a 9:16 video
   scaled to a landscape screen with cover would crop top/bottom — force contain.
   Selectors kept separate so an unknown pseudo-class can't invalidate the rest.
   !important is needed: page styles (.tile video) and inline style="" attributes
   also set object-fit:cover and would otherwise win. */
video:fullscreen { object-fit: contain !important; aspect-ratio: auto !important; width: 100% !important; height: 100% !important; border-radius: 0 !important; background: #000 !important; }
video:-webkit-full-screen { object-fit: contain !important; aspect-ratio: auto !important; width: 100% !important; height: 100% !important; border-radius: 0 !important; background: #000 !important; }
video:-moz-full-screen { object-fit: contain !important; aspect-ratio: auto !important; width: 100% !important; height: 100% !important; border-radius: 0 !important; background: #000 !important; }

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #161616;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent: #ffffff;
    --accent-hover: #cccccc;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.9), transparent);
}

.logo {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
    transition: color var(--transition);
}

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

.contact-btn {
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--text-secondary);
    border-radius: 2rem;
    transition: all var(--transition);
}

.contact-btn:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: color var(--transition);
}

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

.dropdown-arrow {
    font-size: 0.6rem;
    transition: transform 0.3s ease;
}

.nav-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 1rem);
    right: 0;
    min-width: 180px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
}

.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    color: var(--text-secondary) !important;
    transition: all 0.2s ease;
}

.nav-dropdown-menu a:hover {
    color: var(--text-primary) !important;
    background: rgba(255, 255, 255, 0.05);
}

.nav-solid {
    background: var(--bg-primary);
}

/* Project Pages */
.project-hero {
    position: relative;
    height: 85vh;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.project-hero-image {
    position: absolute;
    inset: 0;
}

.project-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.project-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 10, 10, 1) 0%,
        rgba(10, 10, 10, 0.6) 40%,
        rgba(10, 10, 10, 0.2) 70%,
        rgba(10, 10, 10, 0.3) 100%
    );
}

.project-hero-content {
    position: relative;
    z-index: 1;
    padding: 4rem;
    width: 100%;
}

.project-back {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.project-back:hover {
    color: #fff;
}

.project-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.project-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.75rem;
}

.project-meta {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.35);
}

.project-hero-video {
    background: transparent;
}

.project-hero-video .project-hero-image,
.project-hero-video .project-hero-overlay {
    display: none;
}

/* Project Body */
.project-body {
    background: var(--bg-primary);
    padding: 0;
}

.project-section {
    padding: 5rem 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.project-section-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 4rem;
    max-width: 1100px;
}

.project-section-label span {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    position: sticky;
    top: 6rem;
}

.project-text-large {
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.project-text {
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 1.25rem;
}

.project-text:last-child {
    margin-bottom: 0;
}

/* Project Gallery */
.project-gallery {
    padding: 3rem 4rem;
    background: var(--bg-secondary);
}

.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gallery-item {
    border-radius: 0.5rem;
    overflow: hidden;
    aspect-ratio: 9 / 16;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.tech-label {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
}

.tech-value {
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
}

/* Watch CTA */
.project-watch {
    padding: 5rem 4rem;
    text-align: center;
}

.project-watch-btn {
    display: inline-block;
    padding: 1.1rem 3rem;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--bg-primary);
    background: #fff;
    border-radius: 3rem;
    transition: all 0.3s ease;
}

.project-watch-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.15);
}

/* Card Link */
.card-link {
    display: block;
    color: inherit;
}

/* Page Hero (category pages) */
.page-hero {
    padding: 10rem 4rem 3rem;
    background: var(--bg-primary);
    position: relative;
}

.page-number {
    display: block;
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.25);
    margin-bottom: 1rem;
}

.page-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.page-note {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 500px;
}

.page-note a {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.page-note a:hover {
    opacity: 0.8;
}

.page-content {
    padding: 4rem;
    background: var(--bg-secondary);
    min-height: 40vh;
}

/* Fixed Video Background */
.video-bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 10, 0.7) 0%,
        rgba(10, 10, 10, 0.4) 50%,
        rgba(10, 10, 10, 0.3) 100%
    );
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 4rem;
    position: relative;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 400px;
}

.cta-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--text-primary);
    color: var(--bg-primary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 3rem;
    transition: all var(--transition);
}

.cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.15);
}

/* Hero Footer */
.hero-footer {
    position: absolute;
    bottom: 2.5rem;
    left: 4rem;
    right: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
}

.hero-footer-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.hero-footer-left a {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.3s ease;
}

.hero-footer-left a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.hero-footer-divider {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.15);
}

.hero-copyright {
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    right: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    z-index: 1;
}

.scroll-indicator span {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

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

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* About Section */
.about {
    padding: 6rem 4rem;
    background: var(--bg-primary);
    position: relative;
    z-index: 1;
}

.about-content {
    max-width: 700px;
}

.about-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.skill-tag:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* Projects Section */
.projects {
    padding: 8rem 4rem;
    background: var(--bg-secondary);
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 4rem;
}

/* Category Navigation */
.category-nav {
    position: absolute;
    right: 4rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 1;
}

.category-nav a {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.4);
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.4s ease;
    position: relative;
}

.category-nav a:last-child {
    border-bottom: none;
}

.category-nav a::before {
    content: attr(data-number);
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.2);
    min-width: 1.5rem;
    transition: all 0.4s ease;
}

.category-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.4s ease;
}

.category-nav a:hover {
    color: #fff;
    padding-left: 0.5rem;
}

.category-nav a:hover::before {
    color: rgba(255, 255, 255, 0.6);
}

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

.category-nav-label {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    padding-bottom: 0.75rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Category Sections */
.category-section {
    margin-bottom: 5rem;
}

.category-section:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.coming-soon {
    color: var(--text-secondary);
    font-style: italic;
    padding: 2rem 0;
}

.category-note {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: -0.5rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.category-note a {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.category-note a:hover {
    opacity: 0.8;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

/* Horizontal videos (16:9) - takes 6 columns */
.project-card.horizontal {
    grid-column: span 6;
}

.project-card.horizontal .video-placeholder {
    aspect-ratio: 16 / 9;
}

/* Vertical videos (9:16) - takes 4 columns */
.project-card.vertical {
    grid-column: span 4;
}

.project-card.vertical .video-placeholder {
    aspect-ratio: 9 / 16;
}

/* Full width featured video */
.project-card.featured {
    grid-column: span 12;
}

.project-card.featured .video-placeholder {
    aspect-ratio: 16 / 9;
}

/* Project Card */
.project-card {
    /* Hover reveals description overlay */
}

.video-wrapper {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    background: var(--bg-card);
}

.video-placeholder {
    position: relative;
    aspect-ratio: 16 / 9;
}

.video-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition), filter var(--transition);
}

.project-card:hover .video-placeholder img {
    transform: scale(1.05);
    filter: brightness(0.3);
}

.video-placeholder iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-placeholder.is-playing img,
.video-placeholder.is-playing .project-overlay {
    display: none;
}

.project-watch .video-placeholder {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    aspect-ratio: 9 / 16;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #000;
    cursor: pointer;
}

.project-watch .video-placeholder:hover img {
    transform: scale(1.05);
    filter: brightness(0.3);
}

.project-watch .video-placeholder:hover .project-overlay {
    opacity: 1;
}

.project-watch-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    max-width: 760px;
    margin: 0 auto;
}

.project-watch-pair figure {
    margin: 0;
}

.project-watch-pair .video-placeholder {
    max-width: none;
    width: 100%;
}

.project-watch-pair figcaption {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 768px) {
    .project-watch-pair {
        grid-template-columns: 1fr;
        max-width: 360px;
        gap: 3rem;
    }
}

/* Project Overlay */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    max-width: 280px;
}

.watch-link {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--text-primary);
    border-radius: 2rem;
    transition: all var(--transition);
}

.watch-link:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.project-info {
    padding: 1.25rem 0;
}

.project-info h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.project-category {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    padding: 6rem 4rem 3rem;
    text-align: center;
    background: var(--bg-primary);
    position: relative;
    z-index: 1;
}

.footer-content {
    margin-bottom: 4rem;
}

.footer-tagline {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.footer-email {
    display: inline-block;
    font-size: 1.1rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--text-secondary);
    padding-bottom: 0.25rem;
    margin-bottom: 2.5rem;
    transition: all var(--transition);
}

.footer-email:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color var(--transition);
}

.social-links a:hover {
    color: var(--text-primary);
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 2.5rem;
    cursor: pointer;
    transition: transform var(--transition);
}

.modal-close:hover {
    transform: rotate(90deg);
}

.modal-content {
    width: 90%;
    max-width: 1200px;
    aspect-ratio: 16 / 9;
}

#videoContainer {
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    border-radius: 0.5rem;
    overflow: hidden;
}

#videoContainer iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .nav {
        padding: 1.5rem 2rem;
    }

    .hero {
        padding: 0 2rem;
    }

    .about {
        padding: 5rem 2rem;
    }

    .projects {
        padding: 6rem 2rem;
    }

    .footer {
        padding: 5rem 2rem 2rem;
    }

    .scroll-indicator {
        right: 2rem;
    }

    .category-nav {
        right: 2rem;
    }

    .hero-footer {
        left: 2rem;
        right: 2rem;
    }

    .page-hero {
        padding: 8rem 2rem 2rem;
    }

    .page-content {
        padding: 3rem 2rem;
    }

    .project-hero-content {
        padding: 3rem 2rem;
    }

    .project-section {
        padding: 4rem 2rem;
    }

    .project-gallery {
        padding: 2rem;
    }

    .project-watch {
        padding: 4rem 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links > a:not(.contact-btn) {
        display: none;
    }

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

    .category-nav {
        position: static;
        transform: none;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        margin-top: 2.5rem;
        padding: 0 1.25rem;
    }

    .category-nav a {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 0.75rem;
        min-height: 5.5rem;
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
        font-weight: 500;
        letter-spacing: 0.01em;
        color: #fff;
        background: rgba(255, 255, 255, 0.04);
        border: none;
        box-shadow: inset 0 0 0 1px rgba(var(--accent), 0.55);
        border-radius: 0.75rem;
        position: relative;
        transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    }

    .category-nav a::before {
        display: block;
        content: attr(data-number);
        font-size: 0.7rem;
        font-weight: 400;
        letter-spacing: 0.2em;
        color: rgba(255, 255, 255, 0.45);
        min-width: 0;
    }

    .category-nav a::after {
        display: none;
    }

    .category-nav a:nth-child(1) { --accent: 167, 139, 250; }  /* violet */
    .category-nav a:nth-child(2) { --accent: 251, 191, 36; }   /* amber */
    .category-nav a:nth-child(3) { --accent: 34, 211, 238; }   /* cyan */
    .category-nav a:nth-child(4) { --accent: 244, 114, 182; }  /* rose */

    .category-nav a::before {
        color: rgba(var(--accent), 0.85);
    }

    .category-nav a:active {
        background: rgba(var(--accent), 0.12);
        box-shadow: inset 0 0 0 1px rgba(var(--accent), 1);
        transform: translateY(1px);
    }


    .category-nav-label {
        display: none;
    }

    .category-nav a:hover {
        padding-left: 1rem;
    }

    .projects-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 1rem;
    }

    .project-card.horizontal,
    .project-card.featured {
        grid-column: span 6;
    }

    .project-card.vertical {
        grid-column: span 3;
    }

    .scroll-indicator {
        display: none;
    }

    .project-hero {
        height: 70vh;
    }

    .project-section-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .social-links {
        flex-wrap: wrap;
        gap: 1rem 1.5rem;
    }
}

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

    .project-card.horizontal,
    .project-card.vertical,
    .project-card.featured {
        grid-column: span 1;
    }

    .project-card.vertical .video-placeholder {
        aspect-ratio: 9 / 14;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 1rem 1.25rem;
    }

    .hero {
        padding: 0 1.25rem;
    }

    .hero-footer {
        left: 1.25rem;
        right: 1.25rem;
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .about {
        padding: 4rem 1.25rem;
    }

    .about-text {
        font-size: 1.1rem;
    }

    .projects {
        padding: 4rem 1.25rem;
    }

    .footer {
        padding: 4rem 1.25rem 2rem;
    }

    .project-overlay {
        padding: 1rem;
    }

    .page-hero {
        padding: 7rem 1.25rem 2rem;
    }

    .page-content {
        padding: 2rem 1.25rem;
    }

    .project-description {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .watch-link {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .project-hero {
        height: 60vh;
    }

    .project-hero-content {
        padding: 2rem 1.25rem;
    }

    .project-section {
        padding: 3rem 1.25rem;
    }

    .project-gallery {
        padding: 1.5rem 1.25rem;
    }

    .project-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .project-watch {
        padding: 3rem 1.25rem;
    }

    .project-text-large {
        font-size: 1.1rem;
    }
}

/* Category Accents */
body.cat-ai           { --cat-accent: 167, 139, 250; }  /* violet   */
body.cat-ugc          { --cat-accent: 251, 191, 36;  }  /* amber    */
body.cat-commercials  { --cat-accent: 34, 211, 238;  }  /* cyan     */
body.cat-filmmaking   { --cat-accent: 244, 114, 182; }  /* rose     */

body[class*="cat-"] .page-number {
    color: rgba(var(--cat-accent), 0.85);
}

body[class*="cat-"] .page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 4rem;
    width: 2rem;
    height: 2px;
    background: rgba(var(--cat-accent), 0.7);
}

body[class*="cat-"] .page-note a {
    text-decoration-color: rgba(var(--cat-accent), 0.8);
}

body[class*="cat-"] .project-card:hover .video-wrapper {
    box-shadow: 0 0 0 1px rgba(var(--cat-accent), 0.35), 0 12px 40px -10px rgba(var(--cat-accent), 0.25);
}

body[class*="cat-"] .watch-link {
    border-color: rgba(var(--cat-accent), 0.7);
    color: rgba(var(--cat-accent), 1);
}

body[class*="cat-"] .watch-link:hover {
    background: rgba(var(--cat-accent), 1);
    color: var(--bg-primary);
    border-color: rgba(var(--cat-accent), 1);
}

@media (max-width: 1024px) {
    body[class*="cat-"] .page-hero::before {
        left: 2rem;
    }
}

@media (max-width: 480px) {
    body[class*="cat-"] .page-hero::before {
        left: 1.25rem;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Film grain over the whole site */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.12;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 220px 220px;
}
