:root {
    /* Default Palette (matches data-theme="default") */
    --black: #0A0A0A;
    --white: #FAFAFA;
    --gray: #666666;
    --accent: #FF4400;
    --font-heading: 'Space Grotesk', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* Palette Overrides */

/* --- CORE THEMES --- */
:root[data-theme="ocean"] {
    --black: #001B2E; /* Deep Blue */
    --white: #F0F8FF; /* Alice Blue */
    --gray: #587B8D;
    --accent: #FF3366; /* Vibrant Pink/Red */
}

:root[data-theme="pine"] {
    --black: #1B2B21; /* Deep Forest */
    --white: #F3F7F4; /* Mint White */
    --gray: #6B7F74;
    --accent: #2E8B57; /* Sea Green */
}

:root[data-theme="gold"] {
    --black: #1A1A1A;
    --white: #FAFAFA;
    --gray: #A0A0A0;
    --accent: #D4AF37; /* Metallic Gold */
}

/* --- NEW THEMES --- */
:root[data-theme="terminal"] {
    --black: #000000;
    --white: #00FF00; /* Green Screen */
    --gray: #004400;
    --accent: #00FF00;
}

:root[data-theme="paper"] {
    --black: #2A2A2A; /* Ink */
    --white: #F6F3E6; /* Warm Paper */
    --gray: #988F80;
    --accent: #4A4A4A;
}

:root[data-theme="concrete"] {
    --black: #262626;
    --white: #E5E5E5; /* Light Concrete */
    --gray: #737373;
    --accent: #FFFF00; /* Safety Yellow */
}

:root[data-theme="crimson"] {
    --black: #0A0F14;
    --white: #F2F5F8;
    --gray: #576574;
    --accent: #FF0000; /* Pure Red */
}

:root[data-theme="vapor"] {
    --black: #2D0036;
    --white: #E0FFFF; /* Light Cyan */
    --gray: #A29BFE;
    --accent: #FF00FF; /* Magenta */
}

:root[data-theme="royal"] {
    --black: #1E002E; /* Deep Indigo */
    --white: #F8F0FF;
    --gray: #8860D0;
    --accent: #FFD700; /* Bright Gold */
}

:root[data-theme="carbon"] {
    --black: #121212;
    --white: #CCCCCC;
    --gray: #333333;
    --accent: #FF6600; /* Safety Orange */
}

:root[data-theme="lavender"] {
    --black: #1A1A2E;
    --white: #E6E6FA; /* Lavender */
    --gray: #6A6A8B;
    --accent: #FF7096; /* Soft Pink */
}

:root[data-theme="night"] {
    --black: #CCCCCC; /* Inverted Text */
    --white: #000000; /* Inverted BG */
    --gray: #444444;
    --accent: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { 
    scroll-behavior: smooth; 
    font-size: 16px;
}

body {
    font-family: var(--font-heading);
    background: var(--white);
    color: var(--black);
    overflow-x: hidden;
    line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Navigation --- */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    border-bottom: 2px solid var(--black);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
}

.nav-link:hover { color: var(--accent); }

.btn-sm {
    padding: 0.5rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 2px solid var(--black);
    background: var(--black);
    color: var(--white);
    cursor: pointer;
    transition: all 0.2s;
}

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

/* --- Palette Control --- */
.palette-control {
    position: relative;
    margin-left: 2rem;
    display: flex;
    align-items: center;
}

#palette-toggle {
    display: flex;
    gap: -4px; /* Slight overlap */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#palette-toggle:hover {
    transform: scale(1.1);
}

.palette-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--black);
    position: relative;
    /* transition: background-color 0.3s; - removed to snap */
}

.palette-circle:nth-child(1) { background-color: var(--white); z-index: 3; }
.palette-circle:nth-child(2) { background-color: var(--accent); margin-left: -8px; z-index: 2; }
.palette-circle:nth-child(3) { background-color: var(--black); margin-left: -8px; z-index: 1; }

.palette-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 1rem;
    background: var(--white);
    border: 3px solid var(--black);
    padding: 1rem;
    min-width: 460px; /* Wider for grid */
    box-shadow: 12px 12px 0 var(--black);
    z-index: 200;
    
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 Column Grid */
    gap: 0.75rem;
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.palette-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.palette-option {
    background: var(--white);
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    text-align: left;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s;
}

.palette-option:hover {
    border-color: var(--black);
    background: #f0f0f0;
}

.palette-preview {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent); /* Default fall back */
    border: 1px solid currentColor;
}

/* --- Hero Section (Viewport Header) --- */
.viewport-header {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-bottom: none;
}

.hero-grid {
    flex-grow: 1;
    padding: 8rem 2rem 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Split content and visual */
    position: relative;
    background-color: var(--white);
    gap: 4rem; /* Gap between text and laptop */
    overflow: visible; /* Allow floating elements to extend */
}

/* --- Hero Visual (Simple Browser Window) --- */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100%;
    min-height: 400px;
}

/* The Main Window Container */
.browser-mockup {
    width: 100%;
    max-width: 450px;
    position: relative;
    animation: float-laptop 6s ease-in-out infinite; /* Keep the gentle float */
}

/* The Window Frame */
.browser-frame {
    background: var(--white);
    border: 3px solid var(--black);
    border-radius: 8px;
    padding: 0;
    position: relative;
    box-shadow: 12px 12px 0 var(--black); /* Brutalist hard shadow */
    z-index: 10;
    overflow: hidden;
    /* Removed 3D transforms for cleaner look */
}

.browser-header {
    background: var(--white);
    border-bottom: 3px solid var(--black);
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
}

.browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--black);
    background: var(--white); /* Minimalist style */
}
.browser-dot:nth-child(1) { background: var(--black); }

/* Screen Content - Skeleton Loader */
.browser-body {
    padding: 20px;
    background: var(--white);
    min-height: 240px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

.skeleton-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.skeleton-logo {
    width: 24px;
    height: 24px;
    background: var(--black);
    border-radius: 50%;
}
.skeleton-link {
    width: 40px;
    height: 8px;
    background: var(--gray);
    opacity: 0.3;
    border-radius: 4px;
}

.skeleton-hero {
    width: 100%;
    height: 80px;
    background: var(--black);
    opacity: 0.1;
    border-radius: 4px;
}

.skeleton-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-text {
    height: 8px;
    background: var(--gray);
    opacity: 0.2;
    border-radius: 4px;
    width: 100%;
}
.skeleton-text.title { 
    height: 16px; 
    width: 70%; 
    background: var(--black); 
    opacity: 0.8; 
    margin-bottom: 4px; 
}
.skeleton-text.short { width: 40%; }

.skeleton-btn {
    margin-top: 8px;
    width: 80px;
    height: 24px;
    background: var(--accent);
    border-radius: 4px;
}

.content-block {
    height: 12px;
    background: var(--black);
    width: 100%;
    opacity: 0.1;
    border-radius: 2px;
}
.content-block.title { height: 24px; width: 60%; opacity: 1; background: var(--accent); margin-bottom: 10px; }
.content-block.sub { width: 80%; }
.content-block.half { width: 45%; display: inline-block; }

/* Floating Elements Common Styles */
.float-element {
    position: absolute;
    z-index: 20;
    animation: float-card 6s ease-in-out infinite;
}

/* All Components Removed - Bubbles Only */

.ui-bubble {
    background: var(--white);
    border: 2px solid var(--black);
    padding: 0.5rem 1rem;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--black);
    position: relative;
    box-shadow: 4px 4px 0 var(--accent); /* Orange shadow */
    white-space: nowrap;
}

/* Speech Bubble Tail - boxy style */
.ui-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 15px;
    width: 0; 
    height: 0; 
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--black);
}
.ui-bubble::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 17px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--white);
    z-index: 1;
}

/* Spread Positions - No Rotation, Smooth Placement */
/* Top Right */
.pos-1 { top: -40px; right: -80px; animation-delay: 0s; }
/* Mid Left (High) */
.pos-2 { top: 20px; left: -100px; animation-delay: 1.2s; z-index: 25; }
/* Bottom Right */
.pos-3 { bottom: 80px; right: -90px; animation-delay: 2.5s; }
/* Bottom Left */
.pos-4 { bottom: -40px; left: -60px; animation-delay: 0.8s; }
/* Top Left (High) */
.pos-5 { top: -70px; left: 20px; animation-delay: 3s; }
/* Mid Right (Low) */
.pos-6 { bottom: 30px; right: -120px; animation-delay: 1.8s; }

/* Animations */
@keyframes float-laptop {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes float-card {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@media (max-width: 900px) {
    .hero-grid {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 4rem;
    }
    
    .hero-content {
        margin: 0 auto;
    }

    .hero-visual {
        width: 100%;
        min-height: 300px;
    }
    
    .browser-mockup {
        width: 80%;
        max-width: 350px;
    }
    
    /* Pull them in on mobile so they don't overflow */
    .pos-1 { right: -10px; }
    .pos-2 { left: -10px; }
    .pos-3 { right: -10px; }
    .pos-6 { display: none; }
}

.hero-content h1 {
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
}

.hero-content h1 span { display: block; color: var(--accent); }

.hero-content p {
    font-size: 1.25rem;
    line-height: 1.4;
    color: var(--gray);
    max-width: 500px;
    margin-bottom: 3rem;
}

.cta-group { display: flex; gap: 1rem; }

.btn {
    padding: 1rem 2rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 2px solid var(--black);
    background: var(--black);
    color: var(--white);
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
}

.btn:hover { background: var(--accent); border-color: var(--accent); }
/* .btn-secondary styles removed or merged? Checking context below */
.btn-secondary { background: transparent; color: var(--black); }
.btn-secondary:hover { background: var(--black); color: var(--white); }

/* hero-visual styles removed as component was deleted */

/* --- Stats --- */
.stats {
    padding: 6rem 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    border-bottom: 2px solid var(--black);
}

.stat h3 { font-size: 4rem; font-weight: 700; line-height: 1; }
.stat p { font-family: var(--font-mono); font-size: 0.875rem; color: var(--gray); text-transform: uppercase; margin-top: 0.5rem; }

/* --- Marquee --- */
.partner-marquee {
    overflow: hidden;
    border-top: 2px solid var(--black);
    border-bottom: 2px solid var(--black); /* Restoring structure for brutalist look */
    background: var(--white);
    position: relative;
    z-index: 10;
    display: flex; /* Flex layout */
    align-items: stretch;
}

.marquee-label {
    background: var(--black);
    color: var(--white);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    white-space: nowrap;
    z-index: 20; /* Sit above scrolling content if overlap */
}

.marquee-track {
    display: flex;
    width: fit-content;
    gap: 0;
    animation: marquee 40s linear infinite; /* Slower, smoother scroll */
    padding: 1.5rem 0; /* Padding moved to inside track */
    align-items: center;
}

.marquee-content {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.partner-logo {
    height: 2.5rem;
    width: auto;
    margin: 0 2.5rem;
    /* Force logo to flat black to match the site's typography */
    filter: grayscale(100%) brightness(0);
    opacity: 0.8; 
    transition: all 0.3s ease;
}

/* Hover Effect: Reveal true brand colors */
.partner-marquee:hover .partner-logo {
    filter: none;
    opacity: 1;
}

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

/* --- Work Section --- */
.work-preview { padding: 8rem 2rem; border-bottom: 2px solid var(--black); }
.section-header { margin-bottom: 4rem; }
.section-header h2 { font-size: 3rem; font-weight: 700; text-transform: uppercase; }

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border: 2px solid var(--black);
}

.work-item {
    border-right: 2px solid var(--black);
    border-bottom: 2px solid var(--black);
    aspect-ratio: 16/10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    transition: background 0.3s;
}

.work-item:nth-child(2n) { border-right: none; }
.work-item:nth-last-child(-n+2) { border-bottom: none; }
.work-item:hover { background: #f0f0f0; }

.work-item h3 { font-size: 2rem; margin-bottom: 0.5rem; }
.work-item p { font-family: var(--font-mono); color: var(--gray); }

/* --- Legal Pages (Privacy, Terms, Sitemap) --- */
.legal-container {
    max-width: 900px;
    margin: 8rem auto 4rem;
    padding: 0 2rem;
}

.legal-header {
    border-bottom: 2px solid var(--black);
    padding-bottom: 3rem;
    margin-bottom: 4rem;
}

.legal-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 1rem;
}

.legal-header p {
    font-family: var(--font-mono);
    color: var(--accent);
    font-weight: 700;
}

.legal-content section {
    margin-bottom: 4rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.legal-content h2::before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    background: var(--accent);
    margin-right: 1rem;
}

.legal-content p {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: #333;
}

.legal-content ul {
    margin-left: 1rem;
    margin-bottom: 1rem;
}

.legal-content li {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.legal-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.text-link {
    border-bottom: 1px solid var(--black);
    transition: color 0.2s, border-color 0.2s;
}

.text-link:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.legal-footer {
    padding-top: 4rem;
    border-top: 2px solid var(--black);
    text-align: center;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--black);
    color: var(--white);
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
    border: 2px solid var(--black);
    transition: all 0.2s;
}

.cta-button:hover {
    background: var(--white);
    color: var(--black);
}

/* --- Services / Capabilities Section --- */
.services-section {
    padding: 8rem 2rem;
    border-bottom: 3px solid var(--black);
    background: #f4f4f4; /* Light grey for contrast against white work section */
    position: relative;
    overflow: hidden;
}

/* Background Pattern for Services */
.services-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Graph paper pattern */
    background-image: 
        linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    border-bottom: 3px solid var(--black);
    padding-bottom: 2rem;
}

.services-header h2 {
    font-size: clamp(3rem, 5vw, 4rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.header-decoration {
    display: flex;
    gap: 0.5rem;
}

.header-decoration .circle {
    width: 20px;
    height: 20px;
    border: 2px solid var(--black);
    border-radius: 50%;
    background: var(--white);
}

.header-decoration .circle:nth-child(2) { background: var(--black); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border: 3px solid var(--black);
    padding: 2.5rem;
    box-shadow: 10px 10px 0px 0px var(--black);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.service-card:hover {
    transform: translate(-5px, -5px);
    box-shadow: 15px 15px 0px 0px var(--black);
}

.card-icon {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 700;
    color: #ddd;
    margin-bottom: 1rem;
    line-height: 1;
}

.service-card h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.checklist {
    font-family: var(--font-mono);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checklist li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.checklist span {
    color: var(--accent);
    font-weight: 800;
}

/* Accent Card Variant */
.accent-card {
    background: var(--black);
    color: var(--white);
}

.accent-card .card-icon { color: #333; }
.accent-card .checklist li { color: #ccc; }
.accent-card .checklist span { color: var(--accent); }
.accent-card:hover {
    box-shadow: 15px 15px 0px 0px var(--accent);
}

/* --- Redesigned CTA Section --- */
.cta-section {
    padding: 6rem 2rem;
    background: var(--accent);
    border-bottom: 3px solid var(--black);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    /* Diagonal stripe pattern */
    background-image: repeating-linear-gradient(
        45deg,
        rgba(0,0,0,0.05),
        rgba(0,0,0,0.05) 10px,
        transparent 10px,
        transparent 20px
    );
}

.cta-box {
    background: var(--white);
    border: 4px solid var(--black);
    padding: 4rem;
    max-width: 900px;
    width: 100%;
    text-align: center;
    box-shadow: 20px 20px 0px 0px var(--black);
    position: relative;
}

.cta-content h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 0.9;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.cta-content span {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 5px;
}

.cta-content p {
    font-size: 1.25rem;
    font-family: var(--font-heading);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.cta-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.brutalist-btn {
    display: inline-block;
    cursor: pointer;
    font-family: inherit;
    background: var(--black);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 1.5rem 4rem;
    border: 3px solid var(--black);
    box-shadow: 8px 8px 0px 0px var(--white), 8px 8px 0px 3px var(--black);
    transition: transform 0.2s, box-shadow 0.2s;
}

.brutalist-btn:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0px 0px var(--white), 12px 12px 0px 3px var(--black);
    background: var(--accent);
    color: var(--black);
}

.avail-badge {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--black);
    background: #f4f4f4;
    border-radius: 20px;
}

.avail-badge .dot {
    width: 10px;
    height: 10px;
    background: #00FF00;
    border-radius: 50%;
    border: 1px solid var(--black);
    animation: blink 1s infinite alternate;
}

@keyframes blink { from { opacity: 0.5; } to { opacity: 1; } }


/* --- Redesigned Footer --- */
.site-footer {
    background: var(--black);
    color: var(--white);
    padding: 6rem 2rem 2rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid #333;
}

.footer-brand p {
    font-family: var(--font-mono);
    color: #666;
    margin-top: 1rem;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.link-col h4 {
    font-family: var(--font-mono);
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
}

.link-col a {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    transition: color 0.2s, transform 0.2s;
}

.link-col a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.footer-tech {
    font-family: var(--font-mono);
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.footer-tech span:first-child {
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.tech-tag {
    display: block;
    border: 1px solid #444;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    color: #aaa;
    transition: all 0.2s;
}

.tech-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(255, 68, 0, 0.1);
}

.footer-copyright {
    text-align: center;
    padding-top: 2rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #666;
}

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
    .footer-tech { align-items: flex-start; text-align: left; flex-direction: row; flex-wrap: wrap; }
    .footer-links { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
    .hero { grid-template-columns: 1fr; padding-top: 6rem; }
    .hero-visual { display: none; }
    .stats { grid-template-columns: 1fr; padding: 4rem 2rem; }
    .work-grid { grid-template-columns: 1fr; }
    .work-item { border-right: none; border-bottom: 2px solid var(--black); }
    .marquee-content span { font-size: 2.5rem; padding: 0 1rem; }
}

/* --- Horizontal Scroll Work Section --- */
.horizontal-scroll-section {
    padding: 8rem 0;
    border-bottom: 3px solid var(--black);
    overflow: hidden;
    background-color: var(--white);
    position: relative;
    /* Add a subtle grid background pattern to the section */
    background-image: radial-gradient(var(--black) 1px, transparent 1px);
    background-size: 20px 20px;
    background-opacity: 0.1; /* Note: background-opacity isn't valid, handling via color rgba below */
}
/* Workaround for background opacity pattern */
.horizontal-scroll-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(rgba(0,0,0,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
}

.scroll-header {
    padding: 0 2rem 4rem;
    position: relative;
    z-index: 1;
}

.scroll-header h2 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    text-transform: uppercase;
    display: inline-block;
    background: var(--white);
    border: 3px solid var(--black);
    padding: 1rem 2rem;
    box-shadow: 8px 8px 0px 0px var(--accent);
    transform: rotate(-1deg);
}

.scroll-footer {
    padding: 2rem 2rem 0; /* Add top padding to separate from items */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem; /* Reduced space around control group */
}

.scroll-indicators {
    display: flex;
    gap: 0.5rem;
    padding: 0 1rem;
    height: 48px;
    align-items: center;
    border: 3px solid var(--black);
    background: var(--white);
    box-shadow: 4px 4px 0 var(--black);
}

.scroll-dot {
    width: 14px;
    height: 14px;
    border: 2px solid var(--black);
    border-radius: 0; /* Square "bits" like a progress bar */
    cursor: pointer;
    background: var(--white);
    transition: all 0.2s;
    box-shadow: 2px 2px 0 var(--black);
}

.scroll-dot:hover {
    transform: translate(-1px, -1px);
    background: var(--accent);
    box-shadow: 3px 3px 0 var(--black);
    border-color: var(--black);
}

.scroll-dot.active {
    background: var(--black);
    transform: scale(1.1);
    box-shadow: none;
}

.scroll-btn {
    width: 60px;
    height: 60px;
    border: 3px solid var(--black);
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 6px 6px 0 var(--black);
    z-index: 10;
}

.scroll-btn.small {
    width: 48px;
    height: 48px;
    box-shadow: 4px 4px 0 var(--black);
}

.scroll-btn:hover {
    background: var(--black);
    color: var(--white);
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 var(--accent);
}

.scroll-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--black);
}

@media (max-width: 768px) {
    .scroll-controls {
        width: 100%;
        justify-content: center;
    }
}

.scroll-container {
    display: flex;
    overflow-x: hidden; /* Hide scrollbar but keep functionality */
    gap: 3rem; /* Increased gap spacing */
    padding: 1rem 2rem 2rem; /* Reduced bottom padding */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    scroll-snap-type: x mandatory;
    position: relative;
    z-index: 1;
    user-select: none;
    -webkit-user-select: none;
}

.scroll-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.scroll-container::-webkit-scrollbar {
    height: 12px;
    display: block;
}

.scroll-container::-webkit-scrollbar-track {
    background: transparent;
    border-top: 2px solid var(--black);
    margin: 0 2rem;
}

.scroll-container::-webkit-scrollbar-thumb {
    background: var(--black);
    border: 3px solid transparent; /* Creates padding around thumb */
    background-clip: content-box;
    cursor: grab;
}

.scroll-container::-webkit-scrollbar-thumb:hover {
    background-color: var(--accent);
}

.scroll-item {
    min-width: 85vw;
    border: 3px solid var(--black);
    scroll-snap-align: center;
    background: var(--white);
    position: relative;
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.2s;
    box-shadow: 10px 10px 0px 0px var(--black);
    /* Prevent layout shifting from z-index or pseudo elements */
    isolation: isolate;
}

.scroll-item:hover {
    /* Removed transform to prevent visual shifting */
    box-shadow: 14px 14px 0px 0px var(--black);
    z-index: 10;
}

/* Disable hover effects while dragging to prevent layout jitter */
.scroll-container.is-dragging .scroll-item {
    transform: none !important;
    box-shadow: 10px 10px 0px 0px var(--black) !important;
    pointer-events: none;
}

.scroll-image {
    aspect-ratio: 16/9;
    background: var(--white);
    border-bottom: 3px solid var(--black);
    position: relative;
    overflow: hidden;
}

.scroll-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Removed transition and grayscale for static display */
}

/* Removed hover zoom and color shift */

.scroll-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.scroll-info h3 {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1;
    margin: 0;
}

/* Tag Container */
.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Individual Tags */
.tag {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    background: var(--white);
    border: 2px solid var(--black);
    box-shadow: 3px 3px 0px 0px #ccc;
}

.scroll-item:hover .tag {
    background: var(--accent);
    color: var(--white);
    border-color: var(--black);
    box-shadow: 3px 3px 0px 0px var(--black);
}

@media (min-width: 768px) {
    .scroll-item {
        min-width: 45vw; /* Adjust for larger screens */
    }
}

/* --- Project Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

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

.modal-container {
    background: var(--white);
    border: 3px solid var(--black);
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    box-shadow: 16px 16px 0 var(--black);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: 2px solid var(--black); /* Boxed close button */
    width: 32px;
    height: 32px;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

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

.modal-header {
    border-bottom: 2px solid var(--black);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

.modal-header h2 {
    font-size: 2rem;
    line-height: 0.9;
    margin-bottom: 0.5rem;
}

.modal-decoration {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 700;
}

.modal-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1 1 100%;
}

.form-group.half {
    flex: 1 1 calc(50% - 0.75rem);
}

.form-group label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gray);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 2px solid var(--black);
    background: var(--white);
    font-family: var(--font-heading);
    font-size: 1rem;
    transition: all 0.2s;
    outline: none;
    color: var(--black);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 4px 4px 0 var(--accent);
}

.btn-full {
    width: 100%;
    margin-top: 1rem;
    text-align: center;
}

@media (max-width: 600px) {
    .form-group.half {
        flex: 1 1 100%;
    }
    
    .modal-container {
        padding: 1.5rem;
    }
}