:root {
    --bg: #ffffff;
    --text: #000000;
    --font-heading: "Helvetica Neue", Helvetica, Arial, sans-serif; /* Mimics their custom font */
}

[data-theme='dark'] {
    --bg: #000000;
    --text: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-heading);
    overflow-x: hidden;
    line-height: 1.2;
}

.container { padding: 0 4vw; }

/* --- Desktop Header Base --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #fff;
    padding: 25px 5vw;
}

.header-inner {
    display: flex;
    justify-content: space-between; /* Logo left, Nav/Search right */
    align-items: center;
    max-width: 1800px;
    margin: 0 auto;
}

/* Logo Styling */
.text-logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: -0.07em; /* The Wolff Olins tight kerning */
}

/* Desktop Navigation Links */
.desktop-nav {
    display: flex;
    gap: 35px;
    margin-left: auto; /* Pushes nav to the right */
    margin-right: 40px; /* Space between nav and search */
}

.desktop-nav a {
    text-decoration: none;
    color: #000;
    font-size: 18px;
    font-weight: 500;
    transition: opacity 0.3s;
}

.desktop-nav a:hover {
    opacity: 0.6;
}

/* Header Right Area */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-btn, .menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

/* Hide Mobile Elements on Desktop */
.menu-toggle, .nav-overlay {
    display: none;
}

/* --- Mobile Responsive Styles --- */
@media (max-width: 900px) {
    .desktop-nav {
        display: none; /* Hide horizontal links */
    }

    .menu-toggle {
        display: flex; /* Show hamburger */
        flex-direction: column;
        gap: 6px;
    }

    .menu-toggle .line {
        width: 24px;
        height: 2px;
        background: #000;
    }

    /* --- Mobile Navigation Overlay (The Grey Card) --- */
.nav-overlay {
    display: flex;
    position: fixed;
    top: 10px; 
    left: 10px; 
    right: 10px; 
    bottom: 10px;
    background: #E6E6E6;
    border-radius: 35px;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    
    /* FIX: Added opacity and visibility to ensure it's 100% hidden */
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Prevents clicking on it while hidden */
    
    /* FIX: Increased translation and added a slight scale for a smoother effect */
    transform: translateY(-150%) scale(0.95); 
    
    transition: transform 0.7s cubic-bezier(0.85, 0, 0.15, 1), 
                opacity 0.4s ease, 
                visibility 0.7s;
    z-index: 10000;
}

/* --- State when Mobile Menu is Active --- */
.main-header.is-active .nav-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0) scale(1);
}

/* Ensure the logo/hamburger stay above the overlay */
.header-inner {
    position: relative;
    z-index: 10001; /* Must be higher than nav-overlay z-index */
}

    .mobile-nav-links {
        list-style: none;
    }

    .mobile-nav-links a {
        font-size: 50px;
        font-weight: 600;
        color: #4A4A4A;
        text-decoration: none;
        display: block;
        margin-bottom: 20px;
        letter-spacing: -0.02em;
    }
}

/* Slider Container */
.project-slider-section {
    width: 100%;
    height: 100vh;
    background: #000;
    overflow: hidden;
    position: relative;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.slide-content {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide-content img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Change to 'contain' if you want to show full logo like the reference */
    opacity: 0.8;
}

/* Bottom Left Info */
.slide-info {
    position: absolute;
    bottom: 40px;
    left: 5vw;
    z-index: 10;
    color: #fff;
    text-align: left;
}

.project-name {
    font-size: 14px;
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
}

.project-desc {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
    max-width: 400px;
    letter-spacing: -0.02em;
}

/* Bottom Right Counter */
.slider-counter {
    position: absolute;
    bottom: 40px;
    right: 5vw;
    z-index: 10;
    color: #fff;
    font-family: monospace;
    font-size: 18px;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .project-desc {
        font-size: 18px;
    }
    .slide-info, .slider-counter {
        bottom: 30px;
    }
}


/* Ambition Section Styles */
.ambition-section {
    padding: 150px 5vw; /* Large vertical spacing typical of agency sites */
    background-color: #fff;
    color: #000;
}

.ambition-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

/* Left Label */
.ambition-label {
    flex: 0 0 150px; /* Fixed width for the label column */
    padding-top: 15px; /* Aligns with the first line of the big text */
}

.ambition-label span {
    font-size: 20px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    text-transform: none;
}

/* Right Content */
.ambition-content {
    flex: 1;
}

.serif-text {
    font-family: "Times New Roman", Times, serif; /* Using system serif to match the look */
    font-size: clamp(2.5rem, 5vw, 4.5rem); /* Responsive fluid typography */
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0;
}

/* Custom Underline Style */
.underlined {
    display: inline-block;
    position: relative;
    border-bottom: 2px solid #000; /* Fine line seen in your image */
    line-height: 0.95; /* Brings the line closer to the text */
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .ambition-section {
        padding: 80px 5vw;
    }

    .ambition-wrapper {
        flex-direction: column; /* Stacks label above text on mobile */
        gap: 20px;
    }

    .ambition-label {
        flex: none;
        padding-top: 0;
    }

    .serif-text {
        font-size: 32px; /* Smaller but still impactful on mobile */
        line-height: 1.2;
    }
    
    .underlined {
        border-bottom-width: 1.5px; /* Slightly thinner line for mobile */
    }
}

/* --- Showreel Section (Aligned with Ambition) --- */
.showreel-section {
    width: 100%;
    /* Apply exactly same vertical padding as Ambition section */
    padding: 30px 5vw; 
    background-color: #fff; /* Match white background of Ambition */
    overflow: hidden;
    cursor: pointer;
}

.showreel-wrapper {
    width: 100%;
    /* Instead of fixed height, we use aspect-ratio to keep it responsive */
    aspect-ratio: 16 / 9; 
    position: relative;
    border-radius: 0; /* Change to 20px if you want rounded corners on the image */
    overflow: hidden;
}

/* --- Mobile Alignment --- */
@media (max-width: 900px) {
    .showreel-section {
        /* Apply exactly same mobile vertical padding as Ambition */
        padding: 80px 5vw; 
    }
    
    .showreel-wrapper {
        aspect-ratio: 4 / 3; /* Slightly taller for mobile screens */
    }
}

/* Background Image styling */
.showreel-bg {
    width: 100%;
    height: 100%;
}

.showreel-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1); /* Matches the wolf image look */
}

/* UI Positioning */
.showreel-ui {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
}

.showreel-flex {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Text Labels */
.showreel-label {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: #fff;
    letter-spacing: -0.02em;
}

/* Play Button Styling */
.play-trigger {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 120px; /* Large play button */
    height: 120px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.play-icon {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(0,0,0,0.1));
}

/* Hover Effect */
.showreel-section:hover .play-trigger {
    transform: translate(-50%, -50%) scale(1.15);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .showreel-section {
        height: 50vh;
    }

    .showreel-label {
        font-size: 16px;
    }

    .play-trigger {
        width: 80px;
        height: 80px;
    }
}

/* --- Selected Work Section --- */
.selected-work-section {
    padding: 180px 1vw; /* Matches Ambition & Showreel vertical padding */
    background-color: #fff;
}

.work-header {
    border-top: 1px solid #000; /* Line above the title */
    padding-top: 20px;
    margin-bottom: 60px;
}

.work-header h2 {
    font-family: 'Inter', sans-serif;
    font-size: 42px;
    font-weight: 500;
    letter-spacing: -0.02em;
}

/* Grid Layout */
.work-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px 40px; /* Space between cards */
}

.work-card {
    display: flex;
    flex-direction: column;
}

.work-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    margin-bottom: 25px;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card:hover img {
    transform: scale(1.03);
}

/* Ensure the video behaves exactly like the image */
.work-image video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This ensures the video fills the 4:3 box without stretching */
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Maintain the hover effect on the video as well */
.work-card:hover video {
    transform: scale(1.03);
}

/* Typography */
.work-details h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #000;
}

.work-details .sub-title {
    font-size: 22px;
    color: #888; /* Muted grey from image */
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
}

/* Tags Styling */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags span {
    border: 1px solid #ccc; /* Fine grey border */
    padding: 6px 14px;
    border-radius: 100px; /* Rounded pill shape */
    font-size: 13px;
    color: #666;
    font-family: 'Inter', sans-serif;
}

/* --- Mobile Responsive --- */
@media (max-width: 900px) {
    .selected-work-section {
        padding: 80px 5vw; /* Smaller padding for mobile */
    }

    .work-grid {
        grid-template-columns: 1fr; /* Stack cards vertically */
        gap: 50px;
    }

    .work-header h2 {
        font-size: 32px;
    }

    .work-details h3 {
        font-size: 20px;
    }

    .work-details .sub-title {
        font-size: 18px;
    }
}

/* --- Featured Project Section --- */
.featured-project-section {
    padding: 10px 1vw; /* Matches the vertical padding of Ambition/Showreel */
    background-color: #fff;
}

.featured-image {
    width: 100%;
    aspect-ratio: 16 / 9; /* Cinematic wide ratio */
    overflow: hidden;
    margin-bottom: 30px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover effect on the large image */
.featured-project-section:hover .featured-image img {
    transform: scale(1.02);
}

/* Typography */
.featured-title {
    font-family: 'Inter', sans-serif;
    font-size: 26px;
    font-weight: 600;
    color: #000;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.featured-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    color: #888; /* Muted grey matching your reference */
    margin-bottom: 25px;
    font-weight: 400;
}

/* Tags (Pill buttons) */
.featured-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.featured-tags span {
    border: 1px solid #ccc; /* Fine border matching reference */
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    color: #666;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    cursor: default;
}

.featured-tags span:hover {
    border-color: #000;
    color: #000;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
    .featured-project-section {
        padding: 80px 5vw; /* Consistent mobile padding */
    }

    .featured-image {
        aspect-ratio: 4 / 3; /* Taller image for mobile screens */
    }

    .featured-title {
        font-size: 22px;
    }

    .featured-subtitle {
        font-size: 18px;
    }
}

/* --- Two Column Work Grid --- */
.work-grid-section {
    padding: 80px 1vw; /* Consistent with previous sections */
    background-color: #fff;
}

.work-grid-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px 40px; /* Large gap for breathable layout */
}

/* Card Styling (Reusing established patterns) */
.work-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.work-image {
    width: 100%;
    aspect-ratio: 4 / 3; /* Matches standard agency project thumbnails */
    overflow: hidden;
    margin-bottom: 25px;
    background-color: #f9f9f9;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* For graphic-heavy projects like Lloyds */
.work-image.graphic-bg .contain-img {
    object-fit: contain;
    padding: 15%; /* Gives space for the logo/graphic */
}

.work-card:hover img {
    transform: scale(1.03);
}

/* Details Typography */
.work-details h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #000;
    letter-spacing: -0.01em;
}

.work-details .sub-title {
    font-size: 20px;
    color: #888; /* Muted grey matches reference */
    margin-bottom: 25px;
    font-family: 'Inter', sans-serif;
}

/* Pill Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags span {
    border: 1px solid #ccc;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 13px;
    color: #666;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s;
}

.tags span:hover {
    border-color: #000;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
    .work-grid-section {
        padding: 80px 5vw;
    }

    .work-grid-two-col {
        grid-template-columns: 1fr; /* Stack items on mobile */
        gap: 60px;
    }

    .work-image {
        aspect-ratio: 1 / 1; /* Squarer on mobile for better visibility */
    }

    .work-details h3 {
        font-size: 20px;
    }

    .work-details .sub-title {
        font-size: 18px;
    }
}

/* --- Wolff Olins Yellow Footer --- */
.site-footer {
    background-color: #fff84b; /* Precise Wolff Olins Yellow */
    color: #000;
    padding: 60px 5vw 20px 5vw;
    font-family: 'Inter', sans-serif;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

.footer-col {
    font-size: 15px;
    font-weight: 500;
}

.col-heading {
    margin-bottom: 15px;
    font-weight: 700;
}

/* Links and Arrows */
.link-list {
    list-style: none;
    padding: 0;
}

.link-list li {
    margin-bottom: 8px;
}

.link-list a {
    text-decoration: none;
    color: #000;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease;
}

.link-list a span {
    font-size: 18px;
}

.link-list a:hover {
    transform: translateX(5px);
}

/* Back to Top Button */
.top-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 13px;
    margin-left: auto;
}

/* Massive Logo Styling */
.footer-bottom {
    overflow: hidden;
}

.massive-logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(70px, 14vw, 400px); /* Massive scaling */
    font-weight: 800;
    line-height: 0.75;
    margin: 0;
    letter-spacing: -0.08em; /* The signature tight kerning */
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
    .site-footer {
        padding: 40px 5vw 10px 5vw;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr; /* 2x2 grid on tablet/mobile */
        gap: 30px;
    }

    .copyright {
        grid-area: 2 / 1 / 3 / 2; /* Bottom left */
    }

    .back-top {
        grid-area: 2 / 2 / 3 / 3; /* Bottom right */
    }

    .massive-logo {
        font-size: 13vw;
        letter-spacing: -0.06em;
    }
}

/* --- Mobile Footer Fix (Only for screens below 600px) --- */
@media (max-width: 600px) {
    .site-footer {
        padding: 40px 5vw 20px 5vw;
    }

    .footer-top {
        display: grid;
        /* Create two equal columns for the top row */
        grid-template-columns: 1fr 1fr; 
        /* Vertical spacing between rows, no horizontal gap */
        gap: 40px 0; 
    }

    /* 1. Copyright - Top Left */
    .footer-col.copyright {
        grid-column: 1;
        grid-row: 1;
        align-self: start;
    }

    /* 2. Back to Top - Top Right */
    .footer-col.back-top {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        justify-content: flex-end;
    }

    .top-btn {
        margin-left: auto;
        margin-right: 0;
        align-items: flex-end; /* Align arrow and text to the right */
        text-align: right;
    }

    /* 3. Contact Links - Full Width Middle */
    .footer-col.contact-links {
        grid-column: 1 / span 2;
        grid-row: 2;
    }

    /* 4. Social Links - Full Width Bottom */
    .footer-col.social-links {
        grid-column: 1 / span 2;
        grid-row: 3;
    }

    /* Adjusting text sizes for the mobile reference look */
    .col-heading, .link-list li a {
        font-size: 20px; 
        line-height: 1.4;
    }

    .massive-logo {
        font-size: 12vw; /* Adjust to ensure it fits mobile width without overflow */
        letter-spacing: -0.05em;
        margin-top: 20px;
    }
}

/* --- Global Work Card Link Fix --- */
.work-card, 
.featured-card-link {
    display: flex;             /* Forces vertical layout */
    flex-direction: column;    /* Elements stack top-to-bottom */
    text-decoration: none;     /* Removes link underline */
    color: inherit;            /* Keeps text color black/white as defined */
    width: 100%;               /* Ensures it fills the grid column */
    cursor: pointer;
}

/* Ensure no color change on hover from browser defaults */
.work-card:hover, 
.featured-card-link:hover {
    color: inherit;
    text-decoration: none;
}

/* For the graphic-bg project (Lloyds) to keep its layout */
.work-image.graphic-bg {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Featured Card specific alignment */
.featured-card-link {
    gap: 20px;
}