:root {
    --bg-dark: #050505;
    --bg-darker: #111111;
    --bg-light: #1E1E1E;
    
    --text-main: #ffffff;
    --text-muted: #888888;
    
    --accent-green: #ccff00;
    --accent-blue: #00ffff;
    --accent-orange: #ff5500;
    --accent-red: #ff0033;

    --font-display: 'Anton', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-secondary: 'Syne', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Custom cursor */
}

html, body {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background-color: var(--accent-green);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.custom-cursor.hover {
    width: 60px;
    height: 60px;
    background-color: var(--text-main);
}

/* Noise Overlay (Hero Only) */
.noise {
    position: absolute;
    top: 0;
    left: 0;
    width: 200vw;
    height: 200vh;
    pointer-events: none;
    z-index: 50;
    opacity: 0.05;
    background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    transform: translate(-50%, -50%);
    animation: grain 8s steps(10) infinite;
}

@keyframes grain {
    0%, 100% { transform: translate(-50%, -50%); }
    10% { transform: translate(-45%, -55%); }
    20% { transform: translate(-55%, -45%); }
    30% { transform: translate(-45%, -45%); }
    40% { transform: translate(-55%, -55%); }
    50% { transform: translate(-50%, -60%); }
    60% { transform: translate(-60%, -50%); }
    70% { transform: translate(-40%, -60%); }
    80% { transform: translate(-60%, -40%); }
    90% { transform: translate(-40%, -40%); }
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: flex-end; /* Align menu to right */
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

.logo {
    font-family: var(--font-secondary);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 2px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.menu-toggle {
    background: none;
    border: none;
    width: 40px;
    height: 20px;
    position: relative;
    z-index: 101;
}

.menu-toggle .line {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    left: 0;
    transition: transform 0.3s ease;
}

.menu-toggle .line-1 { top: 0; }
.menu-toggle .line-2 { bottom: 0; }

.menu-toggle.active .line-1 { transform: translateY(9px) rotate(45deg); }
.menu-toggle.active .line-2 { transform: translateY(-9px) rotate(-45deg); }

/* Navigation Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    visibility: hidden;
}

.nav-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    opacity: 0;
}

.nav-content {
    position: relative;
    z-index: 2;
}

.nav-links {
    list-style: none;
    text-align: center;
}

.nav-links li {
    margin: 1rem 0;
    overflow: hidden;
}

.nav-link {
    font-family: var(--font-display);
    font-size: clamp(4rem, 8vw, 8rem);
    color: transparent;
    -webkit-text-stroke: 1px var(--text-muted);
    text-decoration: none;
    display: block;
    line-height: 1;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(100%);
    position: relative;
}

.nav-link::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    color: var(--accent-green);
    -webkit-text-stroke: 0px transparent;
    overflow: hidden;
    white-space: nowrap;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Typography Utilities */
.accent-green { color: var(--accent-green); }
.accent-blue { color: var(--accent-blue); }
.accent-orange { color: var(--accent-orange); }
.accent-red { color: var(--accent-red); }

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-content-left {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 800px;
}

.hero-subtitle {
    font-family: var(--font-secondary);
    font-size: 0.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 100px);
    line-height: 1.1;
    text-transform: uppercase;
    margin: 0 0 2rem 0;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
    text-align: left;
}

.hero-services {
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    letter-spacing: 3px;
    margin-bottom: 3rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-services .dot {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.2rem;
}

.hero-scroll-cta {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-secondary);
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 1rem;
    text-transform: uppercase;
}

.hero-scroll-cta .arrow {
    font-size: 1.2rem;
    animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

.glitch-text {
    animation: sparse-glitch 4s infinite;
}

@keyframes sparse-glitch {
    0%, 92%, 96%, 100% {
        transform: translate(0) skew(0deg);
        filter: hue-rotate(0deg);
        opacity: 1;
    }
    93% {
        transform: translate(-4px, 2px) skew(-5deg);
        filter: hue-rotate(-50deg);
        opacity: 0.8;
    }
    94% {
        transform: translate(4px, -2px) skew(5deg);
        filter: hue-rotate(50deg);
        opacity: 0.9;
    }
    95% {
        transform: translate(0) skew(0deg);
        filter: hue-rotate(0deg);
        opacity: 1;
    }
    97% {
        transform: translate(3px, 0) skew(10deg);
        filter: hue-rotate(-90deg);
        opacity: 0.7;
    }
    98% {
        transform: translate(-3px, 0) skew(-10deg);
        filter: hue-rotate(90deg);
        opacity: 0.9;
    }
    99% {
        transform: translate(0) skew(0deg);
        filter: hue-rotate(0deg);
        opacity: 1;
    }
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transform: scale(1.15); /* Zooms in slightly to push encoded black bars off-screen */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(5,5,5,1) 0%, rgba(5,5,5,0.7) 40%, rgba(5,5,5,0) 100%);
    z-index: 1;
}

/* Right Indicators */
.hero-right-indicators {
    position: absolute;
    right: 4rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6rem;
    z-index: 3;
}

.dots-indicator {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.indicator-dot {
    width: 5px;
    height: 5px;
    background-color: rgba(255,255,255,0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.indicator-dot.active {
    background-color: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue);
}

.scroll-indicator-vertical {
    writing-mode: vertical-rl;
    font-family: var(--font-secondary);
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: rgba(255,255,255,0.5);
}

/* Floating Videos Section */
.floating-videos {
    position: relative;
    width: 100%;
    height: 100vh; /* Fixed height prevents layout collapse during GSAP Flip */
    padding: 10rem 4rem;
    background-color: var(--bg-main);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2vw;
    z-index: 1;
    perspective: 1000px; /* Enhances the 3D cylindrical flip */
}

.float-vid {
    position: relative;
    height: auto;
    aspect-ratio: 9/16;
}

.bounce-vid {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    filter: grayscale(100%) opacity(0.6);
    transition: filter 0.4s ease, transform 0.4s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    cursor: none;
    animation: bounce-eq 2s ease-in-out infinite alternate;
}

.bounce-vid:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05) translateY(0);
}

.vid-1 { width: 8vw; margin-top: -15vh; }
.vid-2 { width: 13vw; margin-top: 25vh; }
.vid-3 { width: 20vw; margin-top: -5vh; }
.vid-4 { width: 0; display: none; }
.vid-5 { width: 13vw; margin-top: 15vh; }
.vid-6 { width: 8vw; margin-top: -25vh; }

@keyframes bounce-eq {
    0% { transform: translateY(-4%); }
    100% { transform: translateY(4%); }
}

.vid-1 .bounce-vid { animation-duration: 2.1s; }
.vid-2 .bounce-vid { animation-duration: 1.7s; }
.vid-3 .bounce-vid { animation-duration: 2.4s; }
.vid-5 .bounce-vid { animation-duration: 1.9s; }
.vid-6 .bounce-vid { animation-duration: 2.2s; }

.floating-text {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 150px);
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    position: absolute;
    z-index: 0;
    pointer-events: none;
    white-space: nowrap;
}

/* Statement Section */
.statement {
    padding: 15rem 4rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.statement-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.massive-text {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 180px);
    line-height: 0.9;
    color: transparent;
    -webkit-text-stroke: 1px var(--text-main);
    text-transform: uppercase;
    margin: 0;
    transition: color 0.5s ease;
    text-align: center;
}

.massive-text:hover {
    color: var(--text-main);
    -webkit-text-stroke: 0px;
}

.massive-text.accent-blue:hover {
    color: var(--accent-blue);
    -webkit-text-stroke: 0px;
}

.statement-subtext {
    margin-top: 4rem;
    max-width: 600px;
    display: flex;
    justify-content: center;
}

.statement-subtext p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-secondary);
    text-align: center;
}

/* Services Section */
.services {
    padding: 10rem 4rem;
    position: relative;
}

.service-item {
    display: flex;
    border-top: 1px solid var(--bg-light);
    padding: 4rem 0;
    position: relative;
    z-index: 2;
    transition: color 0.3s;
}

.service-item:last-child {
    border-bottom: 1px solid var(--bg-light);
}

.service-item:hover {
    color: var(--accent-orange);
}

.service-number {
    font-family: var(--font-display);
    font-size: 2rem;
    width: 10%;
}

.service-details {
    display: flex;
    width: 90%;
    justify-content: space-between;
    align-items: center;
}

.service-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 100px);
    margin: 0;
}

.service-list {
    list-style: none;
    display: flex;
    gap: 2rem;
    font-size: 1.125rem;
    font-weight: 500;
}

.service-image-reveal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 400px;
    height: 500px;
    background-size: cover;
    background-position: center;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    border-radius: 10px;
}

/* Portfolio Intro Mask */
.portfolio-intro {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--accent-green);
    color: var(--bg-dark);
}

.mask-text {
    font-family: var(--font-display);
    font-size: 30vw;
    line-height: 1;
    margin: 0;
}

/* Portfolio Section */
.portfolio {
    padding: 10rem 4rem;
}

.portfolio-item {
    position: relative;
    margin-bottom: 10rem;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
}

.portfolio-title {
    font-family: var(--font-display);
    font-size: clamp(5rem, 15vw, 200px);
    text-align: center;
    position: relative;
    z-index: 2;
    mix-blend-mode: difference;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    margin: 0;
}

.portfolio-meta {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    color: var(--accent-green);
    position: relative;
    z-index: 2;
    margin-top: 1rem;
    mix-blend-mode: difference;
    opacity: 0.8;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-title,
.portfolio-item:hover .portfolio-meta {
    opacity: 0;
}

.portfolio-preview {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 70%;
    height: 70vh;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.portfolio-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.2);
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item:hover .portfolio-preview {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.portfolio-item:hover .portfolio-preview img {
    transform: scale(1);
}

.portfolio-item:hover .portfolio-title {
    transform: scale(1.1);
    color: transparent;
    -webkit-text-stroke: 2px #fff;
}

/* About Section */
.about {
    padding: 10rem 4rem;
    background-color: #0a0a0a;
}

.about-container {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.about-text-left {
    flex: 1;
}

.kinetic-text {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 120px);
    line-height: 0.9;
    margin: 0;
    overflow: hidden;
}

.about-content-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-image {
    width: 100%;
    height: 60vh;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
}

.about-desc {
    font-size: 1.5rem;
    line-height: 1.6;
    max-width: 80%;
}

/* Footer Section */
.site-footer {
    background-color: var(--bg-dark);
    padding: 5rem 0 2rem 0;
    overflow: hidden;
    position: relative;
}

.marquee-container {
    display: flex;
    width: 200%;
    overflow: hidden;
    padding: 2rem 0;
    border-top: 1px solid var(--bg-light);
    border-bottom: 1px solid var(--bg-light);
    margin-bottom: 5rem;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
    font-family: var(--font-display);
    font-size: 4rem;
}

.marquee-content span {
    padding: 0 2rem;
}

.marquee-content .dot {
    color: var(--accent-red);
}

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

.footer-bottom {
    padding: 0 4rem;
    position: relative;
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.huge-wordmark {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: clamp(10rem, 25vw, 400px);
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
}

.cta-container {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 4rem;
}

.cta-button {
    display: inline-block;
    padding: 1.5rem 3rem;
    border: 1px solid var(--text-main);
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s;
    background: transparent;
}

.cta-button:hover {
    background: var(--text-main);
    color: var(--bg-dark);
}

.footer-links {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    font-family: var(--font-body);
    font-size: 0.875rem;
}

.footer-links a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-red);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .site-header { padding: 1.5rem 1.5rem; }
    .hero { padding: 0 1.5rem; }
    
    .hero-right-indicators { display: none; } /* Hide vertical indicators on small screens */
    
    .hero-title {
        font-size: clamp(2.5rem, 12vw, 120px);
    }
    
    .hero-services {
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
    }

    /* Floating Videos (Preserve soundwave layout on mobile) */
    .floating-videos {
        padding: 5rem 1rem;
        gap: 3vw;
    }
    .float-vid {
        aspect-ratio: 9/16;
        border-radius: 6px;
    }
    
    .vid-1 { width: 12vw; margin-top: -5vh; }
    .vid-2 { width: 18vw; margin-top: 10vh; }
    .vid-3 { width: 28vw; margin-top: -5vh; }
    .vid-5 { width: 18vw; margin-top: 5vh; }
    .vid-6 { width: 12vw; margin-top: -10vh; }
    
    .floating-text {
        font-size: clamp(2rem, 15vw, 150px);
        writing-mode: vertical-rl;
        right: 0;
    }

    .statement { padding: 5rem 1.5rem; }
    .massive-text {
        font-size: clamp(3rem, 15vw, 200px);
    }

    .services { padding: 5rem 1.5rem; }
    .service-details { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .service-list { flex-wrap: wrap; gap: 0.5rem; }
    .service-title { font-size: clamp(2rem, 8vw, 100px); }

    .portfolio { padding: 5rem 1.5rem; }
    .portfolio-title { font-size: clamp(3rem, 12vw, 200px); }
    .portfolio-item { margin-bottom: 5rem; }
    
    /* Make Portfolio Images Static on Mobile */
    .portfolio-preview {
        position: relative;
        top: auto;
        left: auto;
        transform: none !important;
        width: 100%;
        height: 300px;
        opacity: 1;
        visibility: visible;
        margin-top: 2rem;
    }
    .portfolio-item:hover .portfolio-title,
    .portfolio-item:hover .portfolio-meta {
        opacity: 1; /* Don't hide text on mobile tap */
    }

    .about { padding: 5rem 1.5rem; }
    .about-container { flex-direction: column; gap: 3rem; }
    .about-image { width: 100%; height: 300px; }

    .site-footer { padding: 5rem 1.5rem; }
    .footer-bottom { padding: 0; flex-direction: column; gap: 3rem; align-items: center; text-align: center; }
    .huge-wordmark { font-size: clamp(3rem, 12vw, 250px); }
    .footer-links { width: 100%; flex-wrap: wrap; gap: 1rem; justify-content: center; }

    .custom-cursor { display: none; }
}
