/* ============================================
   Bay38 - Creative Studio
   V6 BASE - Locked in effects
   ============================================ */

/* CSS Variables */
:root {
    --black: #0a0a0a;
    --black-light: #141414;
    --black-lighter: #1e1e1e;
    --white: #ffffff;
    --yellow: #FFD700;
    --grey: #888888;
    --grey-dark: #333333;
    
    --font-display: 'deuterium-variable', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: 0.3s ease;
    --scrollbar-width: 0px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--white);
    background-color: var(--black);
    overflow-x: clip;
}

/* Modal open state - prevent content shift */
body.modal-open {
    overflow: hidden;
    padding-right: var(--scrollbar-width);
    background-color: var(--black);
}

/* Compensate fixed elements for scrollbar removal */
body.modal-open .nav {
    right: var(--scrollbar-width);
}

/* ============================================
   CROSSFADE BACKGROUND LAYERS
   ============================================ */
.bg-layer {
    position: fixed;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) contrast(1.1);
    z-index: -2;
    opacity: 0;
    transition: opacity 0.8s ease;
    animation: kenBurns 25s ease-in-out infinite alternate;
}

.bg-layer.active {
    opacity: 1;
}

@keyframes kenBurns {
    0% { 
        transform: scale(1) translate(0, 0);
    }
    100% { 
        transform: scale(1.08) translate(-2%, -1%);
    }
}

.bg-1 { background-image: none; background-color: #0a0a0a; }
.bg-2 { background-image: url('../Images/bg-skate-bowl.png'); }
.bg-3 { background-image: url('../Images/bg-bmx.jpg'); }
.bg-4 { background-image: url('../Images/bg-court.png'); }
.bg-5 { background-image: url('../Images/bg-amg.jpg'); }
.bg-6 { background-image: url('../Images/bg-grind.jpg'); }

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.9) 70%);
    z-index: -1;
}

/* ============================================
   SCRATCHY TEXTURE OVERLAY (STATIC)
   ============================================ */
.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.2;
    background-image: url('../Images/texture-overlay.webp');
    background-size: 500px 500px;
    mix-blend-mode: screen;
}

/* Scanlines */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.08;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.5) 2px,
        rgba(0, 0, 0, 0.5) 4px
    );
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 1rem;
    line-height: 1;
    color: var(--yellow);
    position: relative;
    cursor: default;
}

/* ============================================
   GLITCH HOVER EFFECT
   ============================================ */
.glitch-hover {
    position: relative;
}

.glitch-hover::before,
.glitch-hover::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.glitch-hover::before {
    color: #ff00ff;
    z-index: -1;
}

.glitch-hover::after {
    color: #00ffff;
    z-index: -1;
}

.glitch-hover:hover::before {
    opacity: 0.8;
    animation: glitch-1 0.3s infinite;
}

.glitch-hover:hover::after {
    opacity: 0.8;
    animation: glitch-2 0.3s infinite;
}

@keyframes glitch-1 {
    0% { clip-path: inset(40% 0 61% 0); transform: translate(-2px, 2px); }
    20% { clip-path: inset(92% 0 1% 0); transform: translate(2px, -2px); }
    40% { clip-path: inset(43% 0 1% 0); transform: translate(-2px, 2px); }
    60% { clip-path: inset(25% 0 58% 0); transform: translate(2px, -2px); }
    80% { clip-path: inset(54% 0 7% 0); transform: translate(-2px, 2px); }
    100% { clip-path: inset(58% 0 43% 0); transform: translate(2px, -2px); }
}

@keyframes glitch-2 {
    0% { clip-path: inset(65% 0 8% 0); transform: translate(2px, -2px); }
    20% { clip-path: inset(17% 0 63% 0); transform: translate(-2px, 2px); }
    40% { clip-path: inset(79% 0 4% 0); transform: translate(2px, -2px); }
    60% { clip-path: inset(32% 0 28% 0); transform: translate(-2px, 2px); }
    80% { clip-path: inset(12% 0 67% 0); transform: translate(2px, -2px); }
    100% { clip-path: inset(88% 0 2% 0); transform: translate(-2px, 2px); }
}

.section-subtitle {
    font-size: 1.125rem;
    color: #c5c4c4;
    margin-bottom: 3rem;
}

.lead {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 1rem 2.5rem;
    background: var(--white);
    color: var(--black);
    text-decoration: none;
    border: 2px solid var(--white);
    transition: var(--transition);
    cursor: pointer;
}

.btn:hover {
    background: var(--yellow);
    border-color: var(--yellow);
}

/* ============================================
   NAVIGATION WITH UNDERLINE SLIDE
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99;
    padding: 1.5rem 0;
    background: linear-gradient(to bottom, var(--black) 0%, transparent 100%);
    transition: var(--transition);
}

.nav.scrolled {
    background: var(--black);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 40px;
    width: auto;
    opacity: 0;
    transition: var(--transition);
}

.nav.scrolled .nav-logo img {
    opacity: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    font-family: var(--font-display);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white);
    text-decoration: none;
    position: relative;
    transition: var(--transition);
}

/* Yellow underline slide */
.nav-menu a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--yellow);
    transition: width 0.3s ease;
}

.nav-menu a:not(.nav-cta):hover::after {
    width: 100%;
}

/* Active state (scroll spy) */
.nav-menu a:not(.nav-cta).active::after {
    width: 100%;
}

.nav-cta {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--white);
}

.nav-cta:hover {
    background: var(--yellow);
    color: var(--black) !important;
    border-color: var(--yellow);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

/* ============================================
   HERO WITH FISHEYE BG & PARALLAX
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at center, transparent 0%, var(--black) 70%),
        linear-gradient(to bottom, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.8) 100%);
    z-index: 1;
}

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

.hero-logo {
    width: min(400px, 80vw);
    height: auto;
    margin-bottom: 2rem;
}

/* Word-by-word tagline animation */
.hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 3vw, 2rem);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 3rem;
    line-height: 1.5;
}

.hero-tagline .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: wordFadeIn 0.5s ease forwards;
}

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

.hero-btn {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
    animation-delay: 0.05s;
}

.hero-btn.btn-sticker:hover {
    opacity: 1;
    animation: stickerSlam 0.75s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

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

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: 8rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
}

.about-text .lead {
    color: var(--white);
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat {
    border-left: 2px solid var(--yellow);
    padding-left: 1.5rem;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 5rem;
    display: inline;
    line-height: 1;
}

.stat-suffix {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--yellow);
}

.stat-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white);
    display: block;
    margin-top: 0.5rem;
}

/* ============================================
   SERVICES WITH PULSING GRID & HOVER ICONS
   ============================================ */
.services {
    padding: 8rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--grey-dark);
    border: 1px solid var(--grey-dark);
    position: relative;
}

/* Pulsing glow effect */
.services-grid::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border: 1px solid var(--yellow);
    opacity: 0;
    animation: gridPulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.5; }
}

.service-card {
    background: var(--black);
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    background: var(--black-light);
}

.service-number {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--yellow);
    display: block;
    margin-bottom: 1rem;
    line-height: 1;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--yellow);
}

.service-card p {
    font-size: 0.875rem;
    color: var(--grey);
    line-height: 1.6;
}

/* Hover reveal icon - BASE (overridden by themed cards) */
.service-hover {
    position: absolute;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%) scale(0);
    opacity: 0;
    transition: var(--transition);
}

.service-icon {
    font-size: 3rem;
    color: var(--yellow);
    opacity: 0.3;
}

.service-card:hover .service-hover {
    transform: translateY(-50%) scale(1);
    opacity: 1;
}

/* ============================================
   SERVICE CARD THEMED EFFECTS
   ============================================ */

/* 01: VIDEO PRODUCTION - VHS Tracking + Focus Frame */
.card-video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 215, 0, 0.03) 2px,
        rgba(255, 215, 0, 0.03) 4px
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 3;
}

.card-video:hover::before {
    opacity: 1;
    animation: vhsFlicker 0.15s infinite;
}

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

.card-video .vhs-rec {
    position: absolute;
    bottom: 2.5rem;
    right: 2.5rem;
    font-family: var(--font-body);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    font-weight: 600;
    color: var(--yellow);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-video:hover .vhs-rec {
    opacity: 1;
    animation: recBlink 1s infinite;
}

@keyframes recBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.card-video .vhs-timecode {
    position: absolute;
    top: 2.5rem;
    right: 2.5rem;
    font-family: var(--font-body);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    color: var(--yellow);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-video:hover .vhs-timecode {
    opacity: 0.6;
}

/* Video card focus frame corners */
.card-video .corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--yellow);
    border-style: solid;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 4;
}

.card-video .corner-tl {
    top: 1rem;
    left: 1rem;
    border-width: 2px 0 0 2px;
    transform: translate(-10px, -10px);
}

.card-video .corner-tr {
    top: 1rem;
    right: 1rem;
    border-width: 2px 2px 0 0;
    transform: translate(10px, -10px);
}

.card-video .corner-bl {
    bottom: 1rem;
    left: 1rem;
    border-width: 0 0 2px 2px;
    transform: translate(-10px, 10px);
}

.card-video .corner-br {
    bottom: 1rem;
    right: 1rem;
    border-width: 0 2px 2px 0;
    transform: translate(10px, 10px);
}

.card-video:hover .corner {
    opacity: 0.6;
    transform: translate(0, 0);
}

/* 02: AUDIO PRODUCTION - Full Background Equalizer */
.card-audio .waveform {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.card-audio:hover .waveform {
    opacity: 1;
}

.card-audio .bar {
    flex: 1;
    max-width: 8px;
    background: var(--yellow);
    opacity: 0.2;
    animation: equalizer 0.8s ease-in-out infinite;
}

.card-audio .bar:nth-child(1) { height: 50%; animation-delay: 0s; }
.card-audio .bar:nth-child(2) { height: 70%; animation-delay: 0.1s; }
.card-audio .bar:nth-child(3) { height: 55%; animation-delay: 0.2s; }
.card-audio .bar:nth-child(4) { height: 85%; animation-delay: 0.15s; }
.card-audio .bar:nth-child(5) { height: 65%; animation-delay: 0.25s; }
.card-audio .bar:nth-child(6) { height: 90%; animation-delay: 0.05s; }
.card-audio .bar:nth-child(7) { height: 75%; animation-delay: 0.3s; }
.card-audio .bar:nth-child(8) { height: 60%; animation-delay: 0.1s; }
.card-audio .bar:nth-child(9) { height: 80%; animation-delay: 0.2s; }
.card-audio .bar:nth-child(10) { height: 50%; animation-delay: 0.15s; }
.card-audio .bar:nth-child(11) { height: 70%; animation-delay: 0.25s; }
.card-audio .bar:nth-child(12) { height: 85%; animation-delay: 0.05s; }
.card-audio .bar:nth-child(13) { height: 55%; animation-delay: 0.3s; }
.card-audio .bar:nth-child(14) { height: 75%; animation-delay: 0.1s; }
.card-audio .bar:nth-child(15) { height: 45%; animation-delay: 0.2s; }
.card-audio .bar:nth-child(16) { height: 65%; animation-delay: 0.15s; }
.card-audio .bar:nth-child(17) { height: 80%; animation-delay: 0.25s; }
.card-audio .bar:nth-child(18) { height: 60%; animation-delay: 0.05s; }
.card-audio .bar:nth-child(19) { height: 70%; animation-delay: 0.3s; }
.card-audio .bar:nth-child(20) { height: 55%; animation-delay: 0.1s; }

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

/* 03: BRAND IDENTITY - Sketch + Pantone Swatch */
.card-brand .construction {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    background-image: url('../Images/Bay38_Sketch.png');
    background-size: 85%;
    background-position: center bottom -20px;
    background-repeat: no-repeat;
    z-index: 1;
}

.card-brand:hover .construction {
    opacity: 0.5;
}

/* Pantone swatch */
.card-brand .swatch {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 50px;
    background: var(--yellow);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.card-brand:hover .swatch {
    opacity: 1;
    transform: translateY(0);
}

.card-brand .swatch-color {
    height: 40px;
}

.card-brand .swatch-label {
    background: var(--white);
    padding: 0.3rem;
    text-align: center;
}

.card-brand .swatch-label span {
    font-size: 0.45rem;
    font-weight: 600;
    color: var(--black);
    letter-spacing: 0.05em;
    display: block;
}

/* 04: WEB DEVELOPMENT - CRT Effect */
.card-web::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.15) 2px,
        rgba(0, 0, 0, 0.15) 4px
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 3;
}

.card-web:hover::before {
    opacity: 1;
}

/* CRT flicker */
.card-web::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.02);
    opacity: 0;
    pointer-events: none;
    z-index: 4;
}

.card-web:hover::after {
    animation: crtFlicker 0.1s infinite;
}

@keyframes crtFlicker {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Phosphor glow on icon */
.card-web .code-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    transform: none;
    font-family: 'Courier New', monospace;
    font-size: 3.5rem;
    color: var(--yellow);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.card-web:hover .code-icon {
    opacity: 0.7;
    text-shadow: 
        0 0 5px var(--yellow),
        0 0 10px var(--yellow),
        0 0 20px rgba(255, 215, 0, 0.5),
        0 0 40px rgba(255, 215, 0, 0.3);
    animation: phosphorPulse 2s ease-in-out infinite;
}

@keyframes phosphorPulse {
    0%, 100% { 
        text-shadow: 
            0 0 5px var(--yellow),
            0 0 10px var(--yellow),
            0 0 20px rgba(255, 215, 0, 0.5),
            0 0 40px rgba(255, 215, 0, 0.3);
    }
    50% { 
        text-shadow: 
            0 0 8px var(--yellow),
            0 0 15px var(--yellow),
            0 0 30px rgba(255, 215, 0, 0.6),
            0 0 50px rgba(255, 215, 0, 0.4);
    }
}

/* Matrix rain columns */
.card-web .matrix-rain {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.card-web:hover .matrix-rain {
    opacity: 1;
}

.card-web .matrix-col {
    position: absolute;
    top: -100%;
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: var(--yellow);
    opacity: 0.3;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    animation: matrixFall 3s linear infinite;
    letter-spacing: 3px;
}

.card-web .matrix-col:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 2.5s; }
.card-web .matrix-col:nth-child(2) { left: 25%; animation-delay: 0.5s; animation-duration: 3s; }
.card-web .matrix-col:nth-child(3) { left: 40%; animation-delay: 1s; animation-duration: 2.8s; }
.card-web .matrix-col:nth-child(4) { left: 55%; animation-delay: 0.3s; animation-duration: 3.2s; }
.card-web .matrix-col:nth-child(5) { left: 70%; animation-delay: 0.8s; animation-duration: 2.6s; }
.card-web .matrix-col:nth-child(6) { left: 85%; animation-delay: 1.2s; animation-duration: 3.1s; }

@keyframes matrixFall {
    0% { top: -100%; opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { top: 100%; opacity: 0; }
}

/* 05: SOCIAL CONTENT - Notifications + Reactions */
.card-social .notification {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 28px;
    height: 28px;
    background: var(--yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--black);
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 4;
}

.card-social:hover .notification {
    opacity: 1;
    transform: scale(1);
}

.card-social .notification::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--yellow);
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
    z-index: -1;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

.card-social .reactions {
    position: absolute;
    bottom: 0;
    left: 1.5rem;
    right: 1.5rem;
    display: flex;
    justify-content: space-around;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card-social:hover .reactions {
    opacity: 1;
}

.card-social .reaction {
    font-size: 1.2rem;
    opacity: 0.5;
    animation: floatUpHigh 2s ease-out infinite;
}

.card-social .reaction:nth-child(1) { animation-delay: 0s; }
.card-social .reaction:nth-child(2) { animation-delay: 0.3s; }
.card-social .reaction:nth-child(3) { animation-delay: 0.6s; }
.card-social .reaction:nth-child(4) { animation-delay: 0.9s; }
.card-social .reaction:nth-child(5) { animation-delay: 0.15s; }
.card-social .reaction:nth-child(6) { animation-delay: 0.45s; }

@keyframes floatUpHigh {
    0% { transform: translateY(0); opacity: 0; }
    10% { opacity: 0.5; }
    80% { opacity: 0.4; }
    100% { transform: translateY(-180px); opacity: 0; }
}

/* 06: MARKETING STRATEGY - Moving Crosshair */
.card-marketing .crosshair {
    position: absolute;
    width: 60px;
    height: 60px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 4;
    top: 50%;
    right: 3rem;
    transform: translate(0, -50%);
}

.card-marketing:hover .crosshair {
    opacity: 0.5;
    animation: crosshairMove 4s ease-in-out infinite;
}

@keyframes crosshairMove {
    0%, 100% { top: 30%; right: 2rem; }
    25% { top: 60%; right: 4rem; }
    50% { top: 40%; right: 1.5rem; }
    75% { top: 70%; right: 3rem; }
}

.card-marketing .crosshair::before,
.card-marketing .crosshair::after {
    content: '';
    position: absolute;
    background: var(--yellow);
}

.card-marketing .crosshair::before {
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    transform: translateY(-50%);
}

.card-marketing .crosshair::after {
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    transform: translateX(-50%);
}

.card-marketing .crosshair .ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid var(--yellow);
    border-radius: 50%;
}

.card-marketing .ring-1 { width: 15px; height: 15px; }
.card-marketing .ring-2 { width: 35px; height: 35px; }
.card-marketing .ring-3 { width: 55px; height: 55px; }

.card-marketing .scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--yellow), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-marketing:hover .scan-line {
    opacity: 0.5;
    animation: scanDown 2s linear infinite;
}

@keyframes scanDown {
    0% { top: 0; }
    100% { top: 100%; }
}

/* 07: INFLUENCER AGENCY - See bottom of file for paparazzi + follow spot styles */

/* 08: CONSULTANCY - OpesQ-style Canvas Grid */
.card-consult canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.card-consult:hover canvas {
    opacity: 1;
}

/* ============================================
   WORK SECTION WITH 3D TILT & TAPE LABELS
   ============================================ */
.work {
    padding: 8rem 0;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.work-card {
    display: block;
    text-decoration: none;
    color: var(--white);
    background: var(--black);
    border: 1px solid var(--grey-dark);
    overflow: hidden;
    transition: var(--transition);
}

.work-card:hover {
    border-color: var(--yellow);
    transform: translateY(-4px);
}

.work-image {
    aspect-ratio: 16/9;
    background: var(--black-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
    overflow: hidden;
}

.work-image picture,
.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-card:hover .work-image {
    filter: grayscale(0%);
}

.work-placeholder {
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--grey-dark);
}

.work-placeholder-bg {
    background: var(--black-lighter);
}

.work-info {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.work-info h3 {
    font-size: 1.25rem;
}

/* Tape/sticker label effect */
.work-tag.tape {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--black);
    background: var(--yellow);
    padding: 0.4rem 1rem;
    transform: rotate(-2deg);
    box-shadow: 2px 2px 0 rgba(0,0,0,0.3);
    position: relative;
}

.work-tag.tape::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
}

/* ============================================
   TEAM WITH POLAROID FRAMES & HOVER FACTS
   ============================================ */
.team {
    padding: 8rem 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 240px);
    gap: 2rem;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 8rem;
}

.team-card {
    text-align: center;
    position: relative;
}

/* Polaroid frame */
.polaroid {
    position: relative;
    background: var(--white);
    padding: 0.75rem 0.75rem 2.5rem;
    margin-bottom: 1rem;
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.team-card:nth-child(even) .polaroid {
    transform: rotate(2deg);
}

.team-card:hover .polaroid {
    transform: rotate(0deg) scale(1.05);
}

/* Team photo wrapper for layered images */
.team-photo-wrapper {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--black-lighter);
}

.team-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    transition: opacity 0.4s ease, filter 0.4s ease;
}

/* Real photo - base layer */
.team-photo-real {
    z-index: 1;
    filter: grayscale(100%) contrast(1.1);
}

/* Cartoon - top layer, visible by default */
.team-photo-toon {
    z-index: 2;
    opacity: 1;
    filter: none;
}

/* Hover: blur out cartoon, reveal real photo */
.polaroid.has-toon:hover .team-photo-toon {
    opacity: 0;
    filter: blur(10px);
}

.polaroid.has-toon:hover .team-photo-real {
    filter: grayscale(0%);
}

/* Shu (no cartoon) - standard grayscale to colour */
.polaroid:not(.has-toon) .team-photo-real {
    filter: grayscale(100%) contrast(1.1);
}

.polaroid:not(.has-toon):hover .team-photo-real {
    filter: grayscale(0%);
}

/* No filter for cartoon-only team members */
.polaroid.no-filter .team-photo-real {
    filter: none;
}

.team-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.team-role {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--grey);
    display: block;
    transition: opacity 0.3s ease;
}

.team-card:hover .team-role {
    opacity: 0;
}

/* Hover fact reveal */
.team-fact {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--yellow);
    opacity: 0;
    transition: var(--transition);
    white-space: nowrap;
}

.team-card:hover .team-fact {
    opacity: 1;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    padding: 8rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    padding-top: 1rem;
}

.contact-info .section-title {
    margin-bottom: 1rem;
}

.contact-subtext {
    color: var(--grey);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--grey);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--yellow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--grey);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-color: rgba(0,0,0,0.6);
}

.form-group select option {
    background: var(--black);
    color: var(--white);
}

/* Sticker button for contact form - White/cream style */
.contact-info .btn-sticker {
    background: linear-gradient(180deg, #f5f5f0 0%, #e8e8e0 100%);
    border: 4px solid var(--grey-dark);
    box-shadow: 3px 3px 0 rgba(0,0,0,0.4);
    color: var(--black);
}

.contact-info .btn-wrapper:hover .btn-sticker {
    background: var(--yellow) !important;
    border-color: var(--black) !important;
}

/* Mobile submit button - hidden on desktop */
.mobile-submit {
    display: none;
    background: linear-gradient(180deg, #f5f5f0 0%, #e8e8e0 100%);
    border: 4px solid var(--grey-dark);
    box-shadow: 3px 3px 0 rgba(0,0,0,0.4);
    color: var(--black);
}

.btn-wrapper:hover .mobile-submit {
    background: var(--yellow) !important;
    border-color: var(--black) !important;
}

/* Form Success Message */
.form-success {
    text-align: center;
    padding: 3rem 2rem;
}

.form-success h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--yellow);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.form-success p {
    color: var(--grey-light);
    font-size: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 4rem 0 2rem;
    background: var(--black);
    border-top: 1px solid var(--grey-dark);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 4rem;
    align-items: start;
    margin-bottom: 3rem;
}

.footer-brand img {
    height: 30px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.875rem;
    color: var(--grey);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--grey);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-icon {
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.4s ease;
}

.social-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--grey-dark);
    text-align: center;
}

.footer-grunge-logo {
    max-width: 200px;
    height: auto;
    opacity: 0.4;
    margin-bottom: 1.5rem;
    filter: brightness(1.5);
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--grey);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--black);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    /* Staggered menu items */
    .nav-menu.active li {
        opacity: 0;
        animation: menuStagger 0.4s ease forwards;
    }
    
    .nav-menu.active li:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { animation-delay: 0.2s; }
    .nav-menu.active li:nth-child(3) { animation-delay: 0.3s; }
    .nav-menu.active li:nth-child(4) { animation-delay: 0.4s; }
    .nav-menu.active li:nth-child(5) { animation-delay: 0.5s; }
    
    @keyframes menuStagger {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    .nav-menu a {
        font-size: 2rem;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        flex-direction: row;
        gap: 3rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .contact-info .btn-sticker {
        display: none;
    }
    
    .mobile-submit {
        display: block;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
    }
    
    .work-image {
        aspect-ratio: 1/1;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-stats {
        flex-direction: column;
    }
    
    .hero-tagline {
        letter-spacing: 0.05em;
    }
    
    /* V33.2 - Reduce section spacing on mobile */
    .about,
    .services,
    .work,
    .team,
    .contact {
        padding: 4rem 0;
    }
    
    /* V33.2 - Equal polaroid sizing */
    .team-card {
        max-width: 9rem;
        min-width: 9rem;
        margin: 0 auto;
    }
    
    /* V33.3 - Fix team grid spacing */
    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
        padding: 0;
        justify-content: center;
    }
    
    /* V35 - Tap to View on mobile polaroids */
    .polaroid::after {
        content: 'Hold to Reveal\ATap to View';
        position: absolute;
        bottom: 0.3rem;
        left: 50%;
        transform: translateX(-50%) rotate(-3deg);
        font-family: 'Permanent Marker', cursive;
        font-size: 0.6rem;
        line-height: 1.75;
        color: var(--black);
        white-space: pre-wrap;
        text-align: center;
        pointer-events: none;
    }
    
    .team-card:nth-child(even) .polaroid::after {
        transform: translateX(-50%) rotate(3deg);
    }
}

/* ==========================================
   NT89 Tag
   ========================================== */
.nt89-tag {
    position: fixed;
    top: 1.5rem;
    left: 2rem;
    z-index: 99;
    opacity: 1;
    transition: opacity 0.4s ease;
    text-decoration: none;
}

.nt89-tag img {
    opacity: 0.75;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nt89-tag:hover img {
    opacity: 1;
    transform: scale(1.05);
}

.nt89-tag.hidden {
    opacity: 0;
    pointer-events: none;
}

/* NT89 Tooltip */
.nt89-tag::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) rotate(-2deg);
    background: var(--yellow);
    color: var(--black);
    font-family: var(--font-display);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.3rem 0.6rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}

.nt89-tag:hover::after {
    opacity: 1;
}

/* Footer NT89 */
.footer-nt89 {
    text-align: center;
    padding: 1rem 0;
}

.footer-nt89-link {
    display: inline-block;
    text-decoration: none;
    position: relative;
}

.footer-nt89-link img {
    opacity: 0.75;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-nt89-link:hover img {
    opacity: 1;
    transform: scale(1.05);
}

/* Footer NT89 Tooltip */
.footer-nt89-link::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) rotate(-2deg);
    background: var(--yellow);
    color: var(--black);
    font-family: var(--font-display);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.3rem 0.6rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}

.footer-nt89-link:hover::after {
    opacity: 1;
}

/* ==========================================
   Sticker Button Effect
   ========================================== */
.btn-sticker {
    position: relative;
    background: var(--yellow);
    color: var(--black);
    border: 4px solid var(--white);
    box-shadow: 3px 3px 0 rgba(0,0,0,0.4);
    overflow: hidden;
    transition: none !important;
}

.btn-sticker::before {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent 0%, 
        rgba(255,255,255,0.5) 50%, 
        transparent 100%
    );
    transform: skewX(-20deg);
    opacity: 0;
    pointer-events: none;
}

/* Wrapper for extended hover zone */
.btn-wrapper {
    display: inline-flex;
    cursor: pointer;
}

/* Hover triggered by wrapper */
.btn-wrapper:hover .btn-sticker {
    font-family: 'Permanent Marker', cursive;
    letter-spacing: 0.02em;
    text-shadow: 
        1px 1px 0 rgba(0,0,0,0.25),
        -0.5px 0 0 rgba(0,0,0,0.15);
    animation: stickerSlamSoft 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    background: var(--yellow) !important;
    color: var(--black) !important;
    border-color: var(--black) !important;
}

.btn-wrapper:hover .btn-sticker::before {
    opacity: 1;
    animation: sheen 0.4s ease 0.4s forwards;
}

/* Soft slam animation */
@keyframes stickerSlamSoft {
    0% { 
        transform: scale(1) rotate(0) translateY(0); 
        box-shadow: 3px 3px 0 rgba(0,0,0,0.4);
    }
    25% { 
        transform: scale(1.12) rotate(-3deg) translateY(-8px); 
        box-shadow: 8px 12px 15px rgba(0,0,0,0.2);
    }
    55% { 
        transform: scale(0.97) rotate(2deg) translateY(2px); 
        box-shadow: 2px 2px 0 rgba(0,0,0,0.45);
    }
    75% { 
        transform: scale(1.04) rotate(-1deg) translateY(-1px); 
        box-shadow: 3px 4px 6px rgba(0,0,0,0.35);
    }
    100% { 
        transform: scale(1.03) rotate(-1deg) translateY(0); 
        box-shadow: 4px 4px 0 rgba(0,0,0,0.4);
    }
}

@keyframes sheen {
    0% { left: -40%; }
    100% { left: 100%; }
}

/* ==========================================
   Influencer Card - Paparazzi + Follow Spot
   ========================================== */
.card-influencer {
    overflow: hidden;
}

.card-influencer .paparazzi {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../Images/paparazzi.gif');
    background-size: cover;
    background-position: center;
    mix-blend-mode: screen;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.card-influencer:hover .paparazzi {
    opacity: 0.4;
}

.card-influencer .follow-spot {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    z-index: 2;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

.card-influencer:hover .follow-spot {
    opacity: 1;
}

/* ==========================================
   Footer - New Layout with Red Tape Border
   ========================================== */
.footer {
    position: relative;
    background: var(--black);
    padding: 0;
    margin-top: 4rem;
}



.footer-inner {
    padding: 3rem 2rem 2rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-brand-name {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
}

.footer-brand p {
    color: var(--grey);
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--white);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-grunge-logo {
    max-width: 200px;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.footer-bottom p {
    color: var(--grey);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Footer responsive */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-right {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* ============================================
   CHARACTER SHEET MODAL
   ============================================ */
.character-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.character-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.character-modal.visible {
    opacity: 1;
}

.character-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.character-modal-content {
    position: relative;
    z-index: 1;
    max-height: 90vh;
    overflow-y: auto;
    perspective: 1000px;
    /* Hide scrollbar but allow scrolling */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.character-modal-content::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

/* Card flip animation */
.character-modal .character-sheet {
    transform: rotateY(90deg);
    opacity: 0;
    transition: transform 0.5s ease-out, opacity 0.3s;
}

.character-modal.visible .character-sheet {
    transform: rotateY(0deg);
    opacity: 1;
}

.character-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.character-modal-close:hover {
    transform: scale(1.2);
}

/* Character Sheet Styles - Retro Arcade */
.character-sheet {
    background: #0a0a0a;
    width: 320px;
    padding: 1rem;
    border: 3px solid #f5c518;
    position: relative;
    font-family: 'VT323', monospace;
    box-shadow: 0 0 30px rgba(245, 197, 24, 0.3), 0 0 60px rgba(245, 197, 24, 0.15), inset 0 0 40px rgba(0,0,0,0.6);
}

.character-sheet::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255,255,255,0.03) 3px, rgba(255,255,255,0.03) 6px);
    pointer-events: none;
    z-index: 1;
}

.character-sheet > * {
    position: relative;
    z-index: 2;
}

.character-sheet .cs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f5c518;
    padding-bottom: 0.5rem;
    margin-bottom: 0.8rem;
}

.character-sheet .cs-logo {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.85rem;
    color: #f5c518;
    text-shadow: 0 0 10px rgba(245,197,24,0.8);
    letter-spacing: 2px;
}

.character-sheet .cs-class {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 0.15rem 0.4rem;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.character-sheet .cs-portrait-section {
    display: flex;
    gap: 0.7rem;
    margin-bottom: 0.8rem;
}

.character-sheet .cs-portrait {
    width: 65px;
    height: 65px;
    border: 2px solid #f5c518;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
    box-shadow: 0 0 15px rgba(245,197,24,0.3);
}

.character-sheet .cs-name-section {
    flex: 1;
}

.character-sheet .cs-name {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.75rem;
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
    margin-bottom: 0.25rem;
}

.character-sheet .cs-title {
    font-size: 0.9rem;
    color: #f5c518;
    margin-bottom: 0.35rem;
}

.character-sheet .cs-level-xp {
    display: flex;
    gap: 0.4rem;
}

.character-sheet .cs-level-xp span {
    background: rgba(245,197,24,0.15);
    border: 1px solid #f5c518;
    color: #f5c518;
    padding: 0.15rem 0.4rem;
    font-size: 0.8rem;
}

.character-sheet .cs-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.3rem;
    margin-bottom: 0.7rem;
}

.character-sheet .cs-stat {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid #fff;
}

.character-sheet .cs-stat-name {
    background: #f5c518;
    color: #0a0a0a;
    padding: 0.25rem 0.35rem;
    font-size: 0.75rem;
    min-width: 32px;
    text-align: center;
    font-weight: bold;
}

.character-sheet .cs-stat-value {
    flex: 1;
    text-align: center;
    font-size: 1.1rem;
    padding: 0.15rem;
    color: #fff;
}

.character-sheet .cs-section-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.4rem;
    color: #f5c518;
    letter-spacing: 2px;
    margin-bottom: 0.4rem;
    margin-top: 0.6rem;
}

.character-sheet .cs-skill {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
    color: #fff;
}

.character-sheet .cs-skill:last-child {
    border-bottom: none;
}

.character-sheet .cs-skill-dots {
    display: flex;
    gap: 2px;
}

.character-sheet .cs-dot {
    width: 10px;
    height: 10px;
    border: 2px solid #f5c518;
    border-radius: 50%;
}

.character-sheet .cs-dot.filled {
    background: #f5c518;
    box-shadow: 0 0 5px rgba(245,197,24,0.6);
}

.character-sheet .cs-inventory-item {
    font-size: 0.85rem;
    color: #fff;
    padding: 0.15rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.character-sheet .cs-inventory-item:last-child {
    border-bottom: none;
}

.character-sheet .cs-inventory-item::before {
    content: '› ';
    color: #f5c518;
    font-size: 0.9rem;
}

.character-sheet .cs-special {
    background: rgba(245,197,24,0.15);
    border: 1px solid #f5c518;
    padding: 0.5rem;
    margin-top: 0.7rem;
}

.character-sheet .cs-special h4 {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.4rem;
    color: #f5c518;
    margin-bottom: 0.3rem;
}

.character-sheet .cs-special p {
    font-size: 0.8rem;
    line-height: 1.3;
    color: #fff;
}

.character-sheet .cs-notes {
    background: rgba(255,255,255,0.05);
    border: 1px dashed #fff;
    padding: 0.4rem;
    font-size: 0.8rem;
    font-style: italic;
    color: #f5c518;
    margin-top: 0.6rem;
}

.character-sheet .cs-footer {
    text-align: center;
    margin-top: 0.6rem;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.3rem;
    color: #fff;
    opacity: 0.5;
}

.team-card[data-character] {
    cursor: pointer;
}

.team-card[data-character]:hover .polaroid {
    transform: scale(1.02);
}

/* Character sheet responsive - smaller screens */
@media (max-width: 360px) {
    .character-modal-content {
        transform: scale(0.9);
        transform-origin: center center;
    }
}

@media (max-height: 700px) {
    .character-modal-content {
        transform: scale(0.85);
        transform-origin: center center;
    }
}

/* ============================================
   V36 - MOBILE SCROLL TRIGGER EFFECTS
   Mirrors hover effects for touch devices
   ============================================ */
@media (max-width: 768px) {
    
    /* Cards visible immediately - no fade-in on mobile */
    .service-card.fade-in-up,
    .work-card.fade-in-up {
        opacity: 1;
        transform: none;
        animation: none;
    }
    
    /* Smoother transitions for scroll-triggered effects */
    .service-card::before,
    .service-card::after,
    .service-card .vhs-rec,
    .service-card .vhs-timecode,
    .service-card .corner,
    .service-card .waveform,
    .service-card .code-icon,
    .service-card .matrix-rain,
    .service-card .notification,
    .service-card .reactions,
    .service-card .construction,
    .service-card .swatch,
    .service-card .crosshair,
    .service-card .paparazzi,
    .service-card .follow-spot,
    .service-card canvas {
        transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out, filter 0.8s ease-in-out;
    }
    
    /* Service Cards - scroll-active mirrors hover */
    .service-card.scroll-active {
        background: var(--black-light);
        transition: background 0.8s ease-in-out;
    }
    
    /* Video card */
    .card-video.scroll-active::before {
        opacity: 1;
        animation: vhsFlicker 0.15s infinite;
    }
    
    .card-video.scroll-active .vhs-rec {
        opacity: 1;
        animation: recBlink 1s infinite;
    }
    
    .card-video.scroll-active .vhs-timecode {
        opacity: 0.6;
    }
    
    .card-video.scroll-active .corner {
        opacity: 0.6;
        transform: translate(0, 0);
    }
    
    /* Audio card */
    .card-audio.scroll-active .waveform {
        opacity: 1;
    }
    
    /* Web card */
    .card-web.scroll-active::before {
        opacity: 1;
    }
    
    .card-web.scroll-active::after {
        animation: crtFlicker 0.1s infinite;
    }
    
    .card-web.scroll-active .code-icon {
        opacity: 0.7;
        text-shadow: 
            0 0 5px var(--yellow),
            0 0 10px var(--yellow),
            0 0 20px rgba(255, 215, 0, 0.5),
            0 0 40px rgba(255, 215, 0, 0.3);
    }
    
    .card-web.scroll-active .matrix-rain {
        opacity: 1;
    }
    
    /* Social card */
    .card-social.scroll-active .notification {
        opacity: 1;
        transform: scale(1);
    }
    
    .card-social.scroll-active .reactions {
        opacity: 1;
    }
    
    /* Brand card */
    .card-brand.scroll-active .construction {
        opacity: 0.5;
    }
    
    .card-brand.scroll-active .swatch {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Marketing card */
    .card-marketing.scroll-active .crosshair {
        opacity: 0.5;
        animation: crosshairMove 4s ease-in-out infinite;
    }
    
    /* Influencer card */
    .card-influencer.scroll-active .paparazzi {
        opacity: 0.4;
    }
    
    .card-influencer.scroll-active .follow-spot {
        opacity: 1;
    }
    
    /* Consult card */
    .card-consult.scroll-active canvas {
        opacity: 1;
    }
    
    /* Work cards - scroll-active mirrors hover */
    .work-card.scroll-active {
        border-color: var(--yellow);
        transform: translateY(-4px);
    }
    
    .work-card.scroll-active .work-image {
        filter: grayscale(0%);
    }
    
    /* Section titles - scroll-active triggers glitch */
    .glitch-hover.scroll-active::before {
        opacity: 0.8;
        animation: glitch-1 0.3s infinite;
    }
    
    .glitch-hover.scroll-active::after {
        opacity: 0.8;
        animation: glitch-2 0.3s infinite;
    }
}

/* ============================================
   HAL CHAT MODAL
   ============================================ */
.chat-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.chat-modal.active {
    display: flex;
}

.chat-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.chat-modal-container {
    position: relative;
    width: 90%;
    max-width: 500px;
    height: 70vh;
    max-height: 600px;
    background: var(--black);
    border: 1px solid var(--grey-dark);
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.chat-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--grey-dark);
    background: rgba(255, 255, 255, 0.02);
}

.chat-modal-title {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.chat-hal-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--yellow);
}

.chat-hal-status {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--grey-light);
}

.chat-modal-close {
    background: none;
    border: none;
    color: var(--grey-light);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.3s ease;
}

.chat-modal-close:hover {
    color: var(--white);
}

.chat-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    max-width: 85%;
    padding: 0.8rem 1rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

.chat-message.hal {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border-left: 2px solid var(--yellow);
    color: var(--white);
}

.chat-message.user {
    align-self: flex-end;
    background: var(--yellow);
    color: var(--black);
}

.chat-message .soft-prompt {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.6;
    font-style: italic;
}

.chat-typing {
    align-self: flex-start;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-left: 2px solid var(--yellow);
    color: var(--grey-light);
    font-size: 0.9rem;
}

.chat-typing-dots {
    display: inline-flex;
    gap: 4px;
}

.chat-typing-dots span {
    width: 6px;
    height: 6px;
    background: var(--grey-light);
    border-radius: 50%;
    animation: typingDot 1.4s ease-in-out infinite;
}

.chat-typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.chat-typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-4px); opacity: 1; }
}

.chat-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--grey-dark);
    background: rgba(255, 255, 255, 0.02);
}

.chat-input-form {
    display: flex;
    gap: 0.75rem;
}

.chat-input {
    flex: 1;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--grey-dark);
    color: var(--white);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.chat-input:focus {
    outline: none;
    border-color: var(--yellow);
}

.chat-input::placeholder {
    color: var(--grey-light);
}

.chat-send-btn {
    padding: 0.8rem 1.5rem;
    background: var(--yellow);
    border: none;
    color: var(--black);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-send-btn:hover {
    background: var(--white);
}

.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Chat success/end state */
.chat-ended {
    text-align: center;
    padding: 2rem;
}

.chat-ended h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--yellow);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.chat-ended p {
    color: var(--grey-light);
    font-size: 0.95rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .chat-modal-container {
        width: 100%;
        height: 100%;
        max-height: none;
        border: none;
    }
    
    .chat-message {
        max-width: 90%;
    }
}
