/* ═══════════════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════════════ */
:root {
    --bg:       #050505;
    --surface:  #111111;
    --border:   #222222;
    --text:     #F4F4F0;
    --text-dim: #777777;
    --accent:   #FF6B2B;

    --font-display: 'Teko', sans-serif;
    --font-mono:    'Space Mono', monospace;

    --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}

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

a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: var(--accent);
}

/* ═══════════════════════════════════════════════════
   FILM GRAIN OVERLAY
   ═══════════════════════════════════════════════════ */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 256px 256px;
}

/* ═══════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.hero-name {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-name span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18vw;
    line-height: 0.85;
    letter-spacing: -0.02em;
    display: block;
}

.hero-title {
    font-family: var(--font-mono);
    font-size: clamp(0.7rem, 1.5vw, 1.1rem);
    letter-spacing: 0.3em;
    color: var(--accent);
    margin-top: 2rem;
    font-weight: 700;
}

.hero-contact {
    margin-top: 3rem;
    font-size: clamp(0.65rem, 1vw, 0.85rem);
    color: var(--text-dim);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.hero-contact .dot {
    color: var(--border);
}

/* Hero entrance animation */
.reveal-line {
    opacity: 0;
    transform: translateY(40px);
    animation: revealUp 0.9s var(--ease-out) forwards;
}
.hero-name .reveal-line:nth-child(1) { animation-delay: 0.1s; }
.hero-name .reveal-line:nth-child(2) { animation-delay: 0.25s; }
.hero-title.reveal-line              { animation-delay: 0.45s; }
.hero-contact.reveal-line            { animation-delay: 0.65s; }

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

/* ═══════════════════════════════════════════════════
   SHARED SECTION
   ═══════════════════════════════════════════════════ */
.section {
    border-top: 2px solid var(--accent);
    padding-top: 4rem;
    padding-bottom: 6rem;
}

.section-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0 5vw;
    margin-bottom: 3rem;
}

.section-label h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1;
    letter-spacing: 0.02em;
}

.counter {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
}

/* ═══════════════════════════════════════════════════
   SCROLL-TRIGGERED FADE-IN
   ═══════════════════════════════════════════════════ */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════
   SECTION 2: GRAPHIC DESIGN MARQUEE
   ═══════════════════════════════════════════════════ */
.marquee-container {
    overflow: hidden;
    width: 100%;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 45s linear infinite;
}

.marquee-track:hover {
    cursor: pointer;
}

.marquee-track.paused {
    animation-play-state: paused;
}

.marquee-track img {
    height: 55vh;
    width: auto;
    display: block;
    margin-right: 1.5vw;
    border: 2px solid var(--border);
    transition: border-color 0.3s;
}

.marquee-track img:hover {
    border-color: var(--accent);
}

@keyframes marqueeScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════
   SECTION 3: CINEMATOGRAPHY — CINEMA STAGE
   ═══════════════════════════════════════════════════ */
.sec-cinema {
    overflow: hidden;
    position: relative;
    background:
        radial-gradient(ellipse 80% 50% at 50% 60%, rgba(255, 107, 43, 0.04) 0%, transparent 70%),
        var(--bg);
}

.cinema-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2vw;
}

/* Navigation arrows */
.cinema-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-dim);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.cinema-arrow:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(255, 107, 43, 0.06);
    box-shadow: 0 0 20px rgba(255, 107, 43, 0.15);
}

.cinema-arrow:active {
    transform: translateY(-50%) scale(0.92);
}

.cinema-arrow--left {
    left: 3vw;
}

.cinema-arrow--right {
    right: 3vw;
}

.cinema-arrow:disabled {
    opacity: 0.2;
    cursor: default;
    pointer-events: none;
}

/* Carousel track */
.vid-carousel {
    display: flex;
    gap: 3vw;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    padding: 2rem 10vw;
    scrollbar-width: none;
    scroll-behavior: smooth;
}
.vid-carousel::-webkit-scrollbar {
    display: none;
}

/* Video cards */
.vid-card {
    flex-shrink: 0;
    height: 65vh;
    aspect-ratio: var(--aspect, 16 / 9);
    width: auto;
    scroll-snap-align: center;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    transition: all 0.5s var(--ease-out);
    opacity: 0.35;
    filter: brightness(0.5) saturate(0.5);
    transform: scale(0.88);
}

.vid-card.active {
    opacity: 1;
    filter: brightness(1) saturate(1);
    transform: scale(1);
    border-color: var(--accent);
    box-shadow:
        0 0 40px rgba(255, 107, 43, 0.12),
        0 4px 80px rgba(0, 0, 0, 0.5);
}

.vid-card video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}/* Audio unlock overlay */
.audio-unlock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    z-index: 8;
    opacity: 0;
    transition: opacity 0.3s var(--ease-out);
    pointer-events: none;
}

.vid-card.active:not(.unmuted) .audio-unlock-overlay {
    opacity: 1;
    pointer-events: auto;
}

.audio-unlock-btn {
    background: var(--accent);
    color: var(--bg);
    border: 2px solid var(--text);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 4px 4px 0px var(--text);
    transition: transform 0.1s var(--ease-out), box-shadow 0.1s var(--ease-out), background-color 0.2s, color 0.2s;
}

.audio-unlock-btn:hover {
    background: var(--text);
    color: var(--bg);
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--accent);
}

.audio-unlock-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px var(--text);
}
/* ═══════════════════════════════════════════════════
   SECTION 4: COLOR GRADING
   ═══════════════════════════════════════════════════ */
.cg-row {
    display: flex;
    justify-content: center;
    gap: 3vw;
    flex-wrap: wrap;
    padding: 0 5vw;
}

.cg-pair {
    position: relative;
    width: 350px;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    cursor: ew-resize;
    border: 2px solid var(--border);
    background: var(--surface);
}

.cg-before,
.cg-after {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.cg-after {
    clip-path: inset(0 0 0 50%);
}

.cg-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--accent);
    pointer-events: none;
    transform: translateX(-50%);
    box-shadow: 0 0 8px var(--accent);
    z-index: 2;
}

.cg-label {
    position: absolute;
    bottom: 12px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--text);
    background: rgba(5, 5, 5, 0.6);
    padding: 4px 8px;
    pointer-events: none;
    z-index: 3;
}

.cg-label--left {
    left: 12px;
}

.cg-label--right {
    right: 12px;
}

/* ═══════════════════════════════════════════════════
   SECTION 5: 3D MODELS
   ═══════════════════════════════════════════════════ */
.models-row {
    display: flex;
    justify-content: center;
    gap: 3vw;
    flex-wrap: wrap;
    padding: 0 5vw;
}

.model-card {
    flex: 1;
    max-width: 560px;
    min-width: 300px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 2px;
    overflow: hidden;
    transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.model-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(255, 107, 43, 0.1);
}

.model-card model-viewer {
    width: 100%;
    height: 450px;
    display: block;
    --poster-color: var(--surface);
}

.model-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-dim);
    letter-spacing: 0.2em;
    background: var(--surface);
}

.model-label {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 0.15em;
    text-align: center;
    padding: 1.2rem 0;
    color: var(--text-dim);
    border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
.footer {
    border-top: 2px solid var(--accent);
    padding: 4rem 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 0.1em;
}

.footer-links {
    font-size: 0.8rem;
    color: var(--text-dim);
    display: flex;
    gap: 0.5rem;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .hero-name span {
        font-size: 22vw;
    }

    .vid-card {
        width: 80vw;
        height: auto;
        max-height: 65vh;
    }

    .cinema-arrow {
        width: 40px;
        height: 40px;
    }

    .cinema-arrow--left {
        left: 1vw;
    }
    .cinema-arrow--right {
        right: 1vw;
    }

    .vid-card__play-icon {
        width: 56px;
        height: 56px;
    }
    .vid-card__play-icon svg {
        width: 32px;
        height: 32px;
    }

    .cg-row {
        flex-direction: column;
        align-items: center;
    }

    .cg-pair {
        width: 85vw;
        max-width: 350px;
    }

    .models-row {
        flex-direction: column;
        align-items: center;
    }

    .model-card {
        width: 90vw;
        min-width: unset;
    }

    .model-card model-viewer {
        height: 320px;
    }

    .marquee-track img {
        height: 40vh;
    }

    .section-label {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer {
        flex-direction: column;
        text-align: center;
    }
}

/* ═══════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none;
    }
    .reveal-line {
        animation: none;
        opacity: 1;
        transform: none;
    }
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .vid-card {
        transition: none;
    }
}
