@import url("https://use.typekit.net/kns3nsn.css");

:root {
    --red: #e22727;
    --black: #000000;
    --gray: #ababab;
    --font-main: "futura-pt", sans-serif;
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-main);
    color: var(--black);
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

/* Global Link Reset - Removes Underlines */
a {
    text-decoration: none;
    color: inherit;
}

/* Header - Sticky */
.sticky-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 1);
    z-index: 1000;
    padding: 1.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

.main-nav a {
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-left: 30px;
    letter-spacing: 1px;
}

.shop-link { color: var(--red) !important; }

/* Content Wrapper */
.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
    margin-bottom: 72px;
}

/* Hero Section - 3 Column Logic */
.hero-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 40px;
    padding: 80px 0 0 0;
    align-items: start;
    /* border-bottom: 1px solid #eee; */
}

.hero-intro {
    grid-column: span 2;
    max-width: 850px;
}

.hero-intro h1 {
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-intro p {
    font-weight: 400;
    font-size: 1.6rem;
    line-height: 1.125;
}

.hero-contact {
    grid-column: span 1;
    text-align: left;
}

.contact-label {
    font-weight: 800;
    font-size: 1.1rem; /* Scaled down for better balance */
    margin-bottom: 1rem;
    line-height: 1;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-links a {
    font-size: 1.8rem;
    margin: 0 12px;
    transition: var(--transition);
}

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

/* Work Grid */
.section-title {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 2.4px;
    margin: 60px 0 30px 0;
    color: var(--red);
    text-transform: uppercase;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.case-study-card {
    display: block;
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.project-meta {
    color: var(--gray);
}

.image-container {
    overflow: hidden;
    background: #f9f9f9;
    border-radius: 9px;
    min-height: 480px;
    background-color: #e22727;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.case-study-card:hover img {
    transform: scale(1.02);
}

.red-text { color: var(--red); }

/* --- MOBILE RESPONSIVENESS --- */

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-intro, .hero-contact {
        grid-column: span 1;
    }

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

@media (max-width: 768px) {
    .content-wrapper { padding: 48px; }
    .header-container { padding: 0 20px; }
    
    .hero-intro h1 { font-size: 2rem; }
    .hero-intro p { font-size: 1.2rem; }
    
    .work-grid {
        grid-template-columns: 1fr;
    }
}

/* Scroll Animation */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Video Embed Container */
.video-section {
    margin: 60px 0;
    width: 100%;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    background: #e22727; /* Fallback brand color */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Bio & Experience Grids */
.bio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 80px 0;
}

.bio-text {
    grid-column: 2 / 4; /* Starts from second column to match wireframe */
    font-size: 1.2rem;
    line-height: 1.225;
}

.bio-text p { margin-bottom: 2rem; }

.experience-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}

.brand-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
    opacity: 0.7;
}

.brand-logos img { max-width: 120px; filter: grayscale(1); opacity: 0.75;}

/* Collaboration Items */
.collab-section .center { text-align: center; margin-bottom: 20px; }

.collab-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.collab-item { text-align: center; font-size: 1.2rem; line-height: 1; padding: 10px 24px; max-width: 360px;}

.svg-placeholder {
    background: #e22727;
    height: 150px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
}

.about-footer {
    text-align: center;
    padding: 64px 0;
    border-top: 0px solid #eee;
}

.footer-socials {
    justify-content: center;
    margin-top: 20px;
}

.footer-socials a {
    font-size: 3.6rem;
    margin: 0 12px;
}

.about-footer .contact-label {
    font-size: 2.4rem;
}

.about-footer .email-address {
    font-size: 1.4rem !important;
}

/* Mobile Stacking */
@media (max-width: 768px) {
    .bio-grid, .experience-grid, .collab-grid {
        grid-template-columns: 1fr;
    }
    .bio-text { grid-column: span 1; }
}

/* 1. Global Line-Height Change */
body {
    font-family: var(--font-main);
    color: var(--black);
    background-color: #fff;
    line-height: 1.225; /* Updated for the entire website */
    -webkit-font-smoothing: antialiased;
}

/* 2. Block A (Bio Grid) Styling */
.bio-grid {
    max-width: 900px; /* Max-width requirement */
    margin: 80px auto; /* Centered to the page */
    display: block; /* Removed grid for simpler centering of text block */
}

.bio-text {
    font-size: 1.6rem;
    /* Removed grid-column: 2 / 4; so it fills its 900px container */
}

.bio-text p { 
    margin-bottom: 2rem; 
}

/* 3. Block B & C (Experience Grid) - 50/50 Layout */
.experience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Exactly 50% each */
    gap: 60px;
    align-items: start;
    margin-bottom: 100px;
}

/* Block C (Image) */
.experience-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Block B (Content) */
.experience-content {
    font-size: 1.6rem; /* Matches Block A font-size */
}

.experience-content .contact-label {
    margin-top: 24px;
    font-size: 1.6rem;
}

/* Ensure brand logos look balanced in the 50% column */
.brand-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 2 columns works better in a 50% width container */
    gap: 36px;
    margin-top: 30px;
}

/* Mobile Responsiveness for 50/50 Grid */
@media (max-width: 1024px) {
    .experience-grid {
        grid-template-columns: 1fr; /* Stacks vertically on smaller screens */
        gap: 40px;
    }

    .bio-text,
    .experience-content {
        font-size: 1.2rem;
    }

    .footer-socials a {
        font-size: 2.4rem;
    }
}

/* --- MOBILE RESPONSIVENESS UPDATES --- */

@media (max-width: 768px) {
    /* ... keep your other mobile styles for hero and work grid ... */

    /* REDUCED GAP FOR COLLABORATION SECTION */
    .collab-grid {
        grid-template-columns: 1fr;
        justify-items: center; 
        gap: 0; /* Reduced from 80px to 30px for tighter spacing */
    }

    .collab-item {
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: auto; /* Removed fixed height to eliminate dead space */
        padding: 20px 24px; /* Reduced vertical padding */
        max-width: 100%;
    }

    .svg-placeholder {
        width: 100%;
        max-width: 280px; /* Slightly smaller for better mobile fit */
        height: 120px; /* Adjusted height to reduce vertical footprint */
        margin-bottom: 10px; /* Less space between image and text */
    }

    .about-footer .contact-label {
    font-size: 1.8rem;
    }

    .video-section {
    margin: 36px 0;
    }

    .bio-grid {
        margin: 36px 0;
    }
}

/* Email Copy Block Styling */
.email-copy-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 10px 16px;
    border: 1px solid #000; /* Matching the black line style in your image */
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    background: #fff;
    border: #eee 1px solid;
}

.email-copy-wrapper:hover {
    border-color: var(--red);
}

.email-address {
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.email-copy-wrapper i {
    font-size: 0.9rem;
    color: var(--gray);
    transition: var(--transition);
}

.email-copy-wrapper:hover i {
    color: var(--red);
}

/* Tooltip Animation */
.copy-tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--black);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.copy-tooltip.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Arrow for tooltip */
.copy-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--black) transparent transparent transparent;
}

/* Container must be relative to contain the absolute overlay */
.image-container {
    position: relative;
    overflow: hidden;
    background-color: var(--red); /* Fallback per your original CSS */
    border-radius: 9px;
}

/* The Grain Overlay */
.image-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Repeatable 200x200 SVG grain pattern */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    
    /* Blending and Opacity */
    opacity: 0.15; /* Adjust this value for subtler or stronger grain */
    mix-blend-mode: multiply; /* Helps the grain sit naturally on the image */
    pointer-events: none; /* Ensures the overlay doesn't block clicks/hovers */
    z-index: 2;
}

/* Updated The Grain Overlay for Fine Gaussian Texture */
.image-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* 1. We use a high baseFrequency (0.8 - 0.9) for "Micro-Grain" texture */
    /* 2. stitchTiles='stitch' ensures no seams in the 200x200 repeat */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.85' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    
    /* 3. Photoshop "Overlay" Blend Mode */
    mix-blend-mode: overlay; 
    
    /* 4. Desaturate to make it monochromatic */
    filter: grayscale(1) contrast(150%); 
    
    /* 5. Set to a very subtle opacity (0.1 to 0.3 is usually the sweet spot) */
    opacity: 0.5; 
    
    pointer-events: none;
    z-index: 2;
}

/* Ensure the image stays behind the grain */
.image-container img {
    position: relative;
    z-index: 1;
    width: 100%;
    display: block;
}

/* Filter Navigation Styling */
.filter-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 60px;
}

.filter-btn {
    background: none;
    border: none;
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 10px 24px;
    transition: var(--transition);
    border-radius: 50px;
    color: var(--black);
}

.filter-btn:hover {
    color: var(--red);
}

.filter-btn.active {
    background: var(--black);
    color: #fff;
}

/* Logic for Hiding/Showing Cards */
.case-study-card.hidden {
    display: none;
}

.projects .section-title {
    text-align: center;
    font-size: 2rem;
}