/* --- VARIABLES & RESET --- */
:root {
    --color-brand-blue: #1e3a8a;
    --color-brand-dark: #050505;
    --color-white: #ffffff;
    --color-gray: #121212;
    --color-text-gray: #9ca3af;
    --color-light-gray: #e5e5e5;
    
    /* optional = use font only if cached, else keep fallback – no layout jump */
    --font-sans: "Roboto", system-ui, sans-serif;
    --font-display: "Roboto", system-ui, sans-serif;
    
    --container-width: 1280px;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

/* Offset anchored sections so fixed nav doesn't cover titles */
.services-section,
.work-section,
.team-section,
.partners-section,
.contact-section {
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

body {
    background-color: var(--color-brand-dark);
    color: var(--color-white);
    font-family: var(--font-sans);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background-color: var(--color-brand-blue);
    color: var(--color-white);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img, video {
    display: block;
    max-width: 100%;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* --- UTILITIES --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.uppercase { text-transform: uppercase; }
.hidden { display: none !important; }
.flex { display: flex; }

/* Typography Defaults */
h1 {
    font-family: var(--font-sans);
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: 0;
}

h2 {
    font-family: var(--font-sans);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0;
}

h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0;
}

/* --- ANIMATIONS & EFFECTS --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    filter: blur(4px);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

@keyframes pulse-slow {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.1); }
}

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

.text-3d-dark {
    text-shadow: 3px 3px 0px rgba(30, 58, 138, 0.4);
}

.text-3d-light {
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.1);
}

.text-outline-md {
    /* Disable outline effect on headings – keep consistent solid text */
    -webkit-text-stroke: 0;
    color: var(--color-white);
    text-shadow: none;
    transition: none;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 1rem 0;
    background-color: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    color: var(--color-white);
}

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

.nav-link {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-gray);
    transition: color 0.3s;
}

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

.nav-link.active,
.btn-contact.active {
    color: var(--color-white);
}

.nav-link.active {
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 2px;
    background: var(--color-brand-blue);
    opacity: 0.9;
    transform-origin: left center;
    transform: scaleX(1);
    animation: underline-in 0.25s ease-out;
}

.mobile-link.active {
    color: var(--color-brand-blue);
}

@keyframes underline-in {
    from {
        transform: scaleX(0);
        opacity: 0.0;
    }
    to {
        transform: scaleX(1);
        opacity: 0.9;
    }
}

.btn-contact {
    padding: 0.5rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s;
}

.btn-contact:hover {
    background-color: var(--color-white);
    color: var(--color-brand-dark);
}

/* Hamburger Animation */
.mobile-menu-btn {
    display: block;
    width: 32px;
    height: 32px;
    position: relative;
    z-index: 1005; /* Above overlay */
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    position: absolute;
    left: 0;
    transition: all 0.3s ease-in-out;
}

.hamburger-line:nth-child(1) { top: 6px; }
.hamburger-line:nth-child(2) { top: 15px; }
.hamburger-line:nth-child(3) { top: 24px; }

/* Active State for Hamburger (X shape) */
.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    top: 15px;
    transform: rotate(45deg);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    top: 15px;
    transform: rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: 100vh;
    background: #050505;
    backdrop-filter: blur(12px);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.35s ease-in-out;
    padding: calc(var(--header-height) + 1.5rem) 1.5rem 2rem;
    overflow-y: auto;
    pointer-events: none;
    visibility: hidden;
}

.mobile-overlay.open {
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
}

.mobile-close-btn {
    display: none;
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    color: var(--color-white);
    opacity: 0.85;
}

.mobile-close-btn:hover { opacity: 1; }

.mobile-link {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-white);
    transition: color 0.3s;
}

.mobile-link:hover {
    color: var(--color-brand-blue);
}

.mobile-link.highlight {
    /* keep same base color; actual highlight handled by .mobile-link.active */
    color: inherit;
}

/* Switch to desktop menu later (more items now) */
@media (min-width: 1024px) {
    .nav-links { display: flex; }
    .mobile-menu-btn { display: none; }
}

/* Show explicit close button on tablet widths where overlay can feel more "modal" */
@media (min-width: 768px) and (max-width: 1023px) {
    .mobile-close-btn {
        display: block;
    }
}

/* Mobile menu footer (contacts) */
.mobile-menu-footer {
    width: 100%;
    max-width: 520px;
    margin-top: 0.5rem;
    text-align: center;
}

.mobile-menu-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0.15), rgba(255,255,255,0));
    margin: 1.75rem 0 1.25rem;
}

.mobile-menu-contacts {
    display: grid;
    gap: 0.75rem;
    justify-items: center;
}

.mobile-contact-name {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.mobile-contact-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 0.2rem;
}

.mobile-contact-val {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 0.15rem;
}

.mobile-contact-link {
    display: inline-block;
    margin-top: 0.25rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.mobile-contact-link:hover { color: var(--color-brand-blue); }

.mobile-menu-meta {
    margin-top: 1.25rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* --- HERO --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), transparent, var(--color-brand-dark));
}

.hero-blob {
    position: absolute;
    top: 0;
    left: 0;
    width: 24rem;
    height: 24rem;
    background-color: var(--color-brand-blue);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    mix-blend-mode: screen;
    animation: pulse-slow 6s infinite;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: var(--container-width);
    padding: 0 1.5rem;
    padding-top: 5.5rem;
}

.hero-meta {
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    padding-top: 3.25rem; /* lets the line start from the top */
}

.hero-line {
    width: 1px;
    height: 3rem;
    background-color: var(--color-white);
    margin-bottom: 0;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.hero-title {
    font-size: clamp(3.4rem, 6.5vw, 6.75rem);
    margin-bottom: 1rem;
    color: var(--color-white);
    font-weight: 800;
}

.hero-title .brand {
    color: var(--color-white);
    display: block;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.hero-desc {
    font-size: 1rem;
    max-width: 36rem;
    line-height: 1.6;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    padding-left: 1.5rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 20;
    opacity: 0.5;
    mix-blend-mode: difference;
    animation: bounce 2s infinite;
}

.scroll-text {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    writing-mode: vertical-rl;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
    40% {transform: translateX(-50%) translateY(-10px);}
    60% {transform: translateX(-50%) translateY(-5px);}
}

@media (min-width: 768px) {
    .hero-title { font-size: clamp(4.5rem, 6.5vw, 7.5rem); }
    .hero-title .brand { font-size: 2.5rem; }
    .scroll-indicator { display: flex; }
    .text-center-md-left { text-align: left; }
    
    .hero-meta { 
        padding-top: 0;
        position: static;
        flex-direction: row; 
        justify-content: flex-start; 
        align-items: center;
    }
    .hero-line {
        width: 3rem;
        height: 1px;
        margin-bottom: 0;
        position: static;
        transform: none;
    }
}

@media (min-width: 1024px) {
    .hero-title { font-size: clamp(5rem, 6vw, 8rem); }
}

/* --- SERVICES --- */
.services-section {
    padding: 6rem 0;
    background-color: var(--color-brand-dark);
    position: relative;
}

/* Default: compact list – icon left, text right, single column (perfect layout) */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
}

.service-card {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 0.55rem 0.6rem;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    gap: 0.75rem;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    aspect-ratio: auto;
}

.service-card:hover {
    transform: translateY(-2px);
    border-color: rgba(30, 58, 138, 0.55);
    background-color: rgba(30, 58, 138, 0.08);
}

.service-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    flex-shrink: 0;
    border-radius: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.service-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--color-white);
    opacity: 0.85;
}

.service-title {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.25;
    color: var(--color-white);
}

@media (max-width: 767px) {
    .services-section {
        padding: 3.5rem 0;
    }
    .services-section .section-header {
        margin-bottom: 1.75rem;
    }
}

/* Desktop: grid of square cards, icon on top */
@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }
    .service-card {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 1rem;
        aspect-ratio: 1 / 1;
    }
    .service-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        border-radius: 14px;
        margin-bottom: 0.5rem;
    }
    .service-icon svg {
        width: 20px;
        height: 20px;
        opacity: 0.9;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 1.25rem;
    }
    .service-card { padding: 1.25rem; }
}

/* --- TEAM --- */
.team-section {
    padding: 6rem 0;
    position: relative;
    background-color: var(--color-brand-dark);
}

.team-container {
    position: relative;
    z-index: 10;
}

.grid-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.2;
    pointer-events: none;
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.85rem;
    margin-bottom: 1.75rem;
    text-transform: uppercase;
    color: var(--color-white);
}

.divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, var(--color-brand-blue), transparent);
}

.team-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.team-member {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.member-image-wrapper {
    display: flex;
    justify-content: center;
}

.member-image {
    position: relative;
    width: 100%;
    max-width: 200px; /* Reduced for mobile */
    aspect-ratio: 3/4;
    overflow: hidden;
    background-color: #0b0b0b;
    box-shadow: 0 25px 50px -12px rgba(30, 58, 138, 0.05);
    transform: translateY(18px);
    opacity: 0;
    transition:
        transform 650ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.member-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('img/team-bg.jpg');
    background-size: cover;
    background-position: center;
    transform: var(--bg-transform, none);
    filter: blur(0px);
    transition: filter 650ms cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 0;
}

.member-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 120% at 50% 35%, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.10) 55%, rgba(0, 0, 0, 0.22) 100%),
        rgba(0, 0, 0, 0.06);
    opacity: 1;
    transition: opacity 650ms cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1;
}

.member-image img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.team-member:hover .member-image img {
    transform: scale(1.01);
}

.team-member:hover .member-image::before {
    filter: blur(1.5px);
    transform: var(--bg-transform, none);
}

.team-member:hover .member-image::after {
    opacity: 0.30;
}

.reveal.active .member-image {
    transform: translateY(0);
    opacity: 1;
}

.member-info {
    text-align: center;
}

@media (max-width: 767px) {
    .member-info,
    .member-desc {
        text-align: left;
    }
    .member-desc {
        margin-left: 0;
        margin-right: 0;
    }
}

.member-name {
    font-size: 2.25rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.member-role {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.member-desc {
    color: var(--color-text-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

.member-line {
    height: 1px;
    width: 3rem;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 auto;
}

@media (min-width: 768px) {
    .section-title { font-size: 4.25rem; }

    .member-image {
        max-width: 280px; /* Restore desktop size */
    }
    
    .team-member {
        grid-template-columns: 280px 1fr;
        text-align: left;
    }
    
    .team-member.reverse {
        grid-template-columns: 1fr 280px;
        text-align: right;
    }
    
    .team-member.reverse .member-image-wrapper {
        order: 2;
        justify-content: flex-end;
    }
    
    .team-member:not(.reverse) .member-image-wrapper {
        justify-content: flex-start;
    }

    .member-info { text-align: inherit; }
    .member-desc { margin-left: 0; margin-right: 0; }
    .team-member.reverse .member-desc { margin-left: auto; }
    .member-line { margin-left: 0; }
    .team-member.reverse .member-line { margin-left: auto; margin-right: 0; }
    .member-name { font-size: 2.65rem; }
}

@media (min-width: 1024px) {
    .section-title { font-size: 5rem; }
}


/* --- WORK --- */
.work-section {
    background-color: var(--color-white);
    color: var(--color-gray);
    position: relative;
}

.work-layout {
    display: flex;
    flex-direction: column;
}

/* Mobile Header (Hidden on Desktop) */
.mobile-work-header {
    padding: 3rem 0;
}
.mobile-work-title {
    color: var(--color-brand-dark);
    font-size: 3rem;
}

/* Work Sidebar */
.work-sidebar {
    display: none;
    background-color: var(--color-white);
    border-right: 1px solid var(--color-light-gray);
    padding: 5rem 0;
    z-index: 20;
}

.work-sidebar-title {
    font-size: 3.5rem;
    margin-bottom: 3rem;
    color: var(--color-brand-dark);
    line-height: 0.9;
}

.work-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    padding-top: 2rem; /* Add some space after the standardized header */
}

.work-tab {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.75rem;
    text-transform: uppercase;
    color: var(--color-light-gray); /* Inactive */
    transition: all 0.3s;
    text-align: left;
    padding-left: 0;
    border-left: 4px solid transparent;
}

.work-tab:hover {
    color: var(--color-gray);
}

.work-tab.active {
    color: var(--color-brand-blue);
    border-left-color: var(--color-brand-blue);
    padding-left: 1.5rem;
}

/* Work Content */
.work-content-wrapper {
    width: 100%;
}

.work-project {
    min-height: auto; /* Changed from 100vh to auto for mobile to reduce gaps */
    padding: 3rem 0 6rem 0;
    border-bottom: 1px solid var(--color-light-gray);
}

/* Tighten vertical spacing for "Our work" on smaller screens */
@media (max-width: 767px) {
    .mobile-work-header {
        padding: 2rem 0 1.5rem 0;
    }

    .work-section .work-project {
        padding: 2rem 0 3rem 0;
    }

    .work-section .work-project:first-of-type {
        padding-top: 1.25rem;
    }
}

.project-tags {
    margin-bottom: 1rem;
}

.project-tag {
    padding: 0.25rem 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-block;
}

/* When used inside .project-tags wrapper, override margin bottom on tag itself if needed */
.project-tags .project-tag {
    margin-bottom: 0;
}
.project-title {
    font-size: 2.65rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    color: var(--color-brand-dark);
}

/* Ensure section titles are DARK on light backgrounds */
.work-section .section-title,
.work-section .section-title.text-3d-light,
.partners-section .section-title,
.partners-section .section-title.text-3d-dark,
.contact-section .section-title,
.contact-section .section-title.text-3d-light {
    color: var(--color-brand-dark);
    text-shadow: none;
}

.project-intro {
    font-size: 1.25rem;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 2rem;
    max-width: 42rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    background-color: #f3f4f6;
    margin-bottom: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

.yt-lite {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    margin: 0;
    background: none;
    cursor: pointer;
    display: block;
}

.yt-lite img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.yt-lite-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.45);
}

.yt-lite-play::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-40%, -50%);
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent #ffffff;
}

.yt-lite:focus-visible .yt-lite-play {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Standardized Content Card */
.work-card {
    background-color: transparent;
    border: 1px solid #e5e7eb;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 4px;
}

.work-card--plain {
    background-color: transparent;
    border: 1px solid #e5e7eb;
    padding: 1.5rem 1.5rem 1.75rem 1.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Objectives Specifics */
.objectives-grid {
    grid-template-columns: 1fr !important; /* Override typical 2 col */
}
.objectives-intro {
    margin-bottom: 1.5rem;
}
.objectives-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.objective-item {
    display: flex;
    gap: 0.75rem;
}
.objective-number {
    width: 1.25rem;
    height: 1.25rem;
    background: rgba(30, 58, 138, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-brand-blue);
    font-weight: bold;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* Metrics variant – compact 3‑column layout for key numbers */
.objectives-list--metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem 1.5rem;
}

.objectives-list--metrics .objective-item {
    align-items: flex-start;
}

.objectives-list--metrics .objective-number {
    width: auto;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.5rem;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .objectives-list--metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Planning Specifics */
.planning-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.planning-item {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Match planning icons to Services/Vendor icon sizing for visual consistency */
.planning-item svg.text-blue {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.challenges-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.challenge-dot {
    width: 0.375rem;
    height: 0.375rem;
    background: #ef4444;
    border-radius: 50%;
}

/* Budget Specifics */
.budget-intro {
    margin-bottom: 1.5rem;
}

.budget-bars-container {
    margin-bottom: 1rem;
}

.budget-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gray);
}

.budget-progress-bar {
    width: 100%;
    height: 25px;
    background-color: #fff;
    border-radius: 99px;
    overflow: visible;
    display: flex;
    gap: 10px;
}

.budget-fill-organizer {
    width: 60%;
    min-width: 0;
    background: linear-gradient(90deg, #020617, #374b9e);
}
.budget-fill-vendor {
    width: 40%;
    min-width: 0;
    background: linear-gradient(90deg, #1d4ed8, #38bdf8);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
}

.budget-note {
    font-size: 0.75rem;
    color: #6b7280;
    font-style: italic;
    margin-top: 1rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 0.5rem;
}

.text-blue { color: var(--color-brand-blue); }
.text-label { font-size: 0.875rem; line-height: 1.6; color: #4b5563; }
.sub-title { font-size: 1.625rem; text-transform: uppercase; margin-bottom: 1rem; font-family: var(--font-display); font-weight: 700;}

/* Stats Box - Kept distinctive */
.stats-box {
    background-color: var(--color-brand-dark);
    color: var(--color-white);
    padding: 2rem;
    margin-bottom: 2rem; /* Consistent margin */
    position: relative;
    overflow: hidden;
}

.stats-title {
    color: var(--color-white);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 1rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

.stat-item-val {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2.15rem;
    margin-bottom: 0.5rem;
}

.stat-item-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-gray);
}

/* Sixdays stats flavour – keep same component, adjust grid + alignment */
.stats-box--sixdays {
    margin-top: 0;
}

.series-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem 2rem;
    margin-top: 1rem;
}

.series-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.series-city {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem; /* 18px */
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-brand-blue);
}

@media (min-width: 768px) {
    .series-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* --- SIXDAYS SPECIFIC --- */
.sixdays-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-top: 1.25rem;
}

.sixdays-metric {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1 1 180px;
    min-width: 0;
}

.sixdays-metric-val {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
}

.sixdays-metric-label {
    font-size: 0.8rem;
    color: #6b7280;
}

.sixdays-metrics--core .sixdays-metric-val {
    font-size: 1.9rem;
    color: var(--color-brand-blue);
}

.sixdays-metrics--stats .sixdays-metric-val {
    font-size: 2.4rem;
}

.sixdays-metrics--stats .sixdays-metric-label {
    font-size: 0.75rem;
}

@media (min-width: 768px) {
    .sixdays-hero-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
        align-items: center;
    }
}

.sixdays-video-secondary {
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}

.stats-quote {
    padding: 1.5rem;
    border-left: 4px solid var(--color-white);
    margin-top: 2rem;
    position: relative;
    z-index: 10;
}

.stats-quote p {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    text-transform: uppercase;
    line-height: 1.4;
}

.stats-bg-glow {
    position: absolute;
    top: -5rem;
    right: -5rem;
    width: 20rem;
    height: 20rem;
    background-color: var(--color-brand-blue);
    filter: blur(80px);
    opacity: 0.2;
}

/* Vendor Grid – 3×3 on all devices */
.vendor-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem 0.6rem;
}

.vendor-item {
    border: none;
    border-left: 3px solid var(--color-brand-blue);
    padding: 0.25rem 0 0.25rem 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
}

.vendor-item:hover { border-left-color: var(--color-brand-dark); }
.vendor-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}
.vendor-val {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-brand-blue);
    line-height: 1.2;
}
.vendor-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-gray);
    margin-top: 0;
}

/* Gallery */
.gallery-wrapper {
    position: relative;
    margin-bottom: 0.5rem;
}

.gallery-container {
    display: flex;
    overflow-x: auto;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
    /* removed scroll-snap for infinite scroll JS control */
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* Keep smooth for clicks, but we might override in JS for jumps */
    scroll-behavior: auto; 
    /* Ensure flex display on desktop too for horizontal scroll */
}
.gallery-container::-webkit-scrollbar { display: none; }

.gallery-item {
    flex-shrink: 0;
    width: 65vw; /* Mobile width */
    aspect-ratio: 1/1;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    /* scroll-snap-align: center; removed */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img { transform: scale(1.1); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(30, 58, 138, 0.2);
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

/* Arrows inside the gallery wrapper */
.gallery-arrow {
    background: rgba(5, 5, 5, 0.8);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    top: calc(50% - 0.5rem);
    transform: translateY(-50%);
    z-index: 20;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: background-color 0.3s, transform 0.1s ease-in-out;
}

.gallery-arrow:hover {
    background: var(--color-brand-blue);
}

.gallery-arrow:active {
    transform: translateY(-50%) scale(0.9);
}

#gallery-prev { left: 0.5rem; }
#gallery-next { right: 0.5rem; }

.gallery-dots-container {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.gallery-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    max-width: 100%;
}
.gallery-dot {
    width: 6px;
    height: 6px;
    padding: 0;
    border: none;
    background-color: var(--color-light-gray);
    border-radius: 50%;
    transition: background-color 0.2s, transform 0.2s;
    cursor: pointer;
    flex-shrink: 0;
}
.gallery-dot.active {
    background-color: var(--color-brand-blue);
    transform: scale(1.3);
}

.btn-view-all {
    display: none; /* hidden on mobile */
    padding: 0.6rem 1.5rem;
    background-color: var(--color-white);
    border: 2px solid var(--color-brand-dark);
    color: var(--color-brand-dark);
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.75rem;
    transition: all 0.3s;
}

.btn-view-all:hover {
    background-color: var(--color-brand-dark);
    color: var(--color-white);
}

@media (min-width: 768px) {
    .project-title { font-size: 3.5rem; }
    .grid-2 { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(5, 1fr); }
    
    /* Gallery Desktop overrides to maintain horizontal scroll but better sizing */
    .gallery-container {
        /* No grid, keep flex */
        padding-bottom: 0;
    }
    .gallery-item {
        width: 300px; /* Fixed width for desktop */
        height: 300px;
    }
    
    /* Allow arrows and dots to show */
    .gallery-arrow { display: flex; }
    .gallery-dots-container { display: flex; }
    
    .btn-view-all { display: inline-block; }
    .gallery-btn-wrapper { display: flex; justify-content: center; }
}

/* Vendors: responsive columns without boxed cards */
@media (min-width: 768px) {
    .vendor-grid {
        gap: 0.6rem 0.85rem;
    }
    .vendor-val { font-size: 1.15rem; }
    .vendor-label { font-size: 0.7rem; }
}

@media (min-width: 1024px) {
    .work-layout { flex-direction: row; }
    
    .work-sidebar {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        width: 33.333%;
        height: 100vh;
        position: sticky;
        top: var(--header-height);
        padding-left: 1.5rem;
        padding-top: 3rem; /* keeps title + tabs stable while scrolling */
    }
    
    .work-content-wrapper { width: 66.666%; }
    
    .work-project { 
        padding-left: 3rem; 
        padding-right: 3rem; 
        padding-top: 4rem;
        min-height: auto;
    }
    
    .work-sidebar-title { font-size: 5rem; }
    .work-tab { font-size: 2.25rem; }
    
    .mobile-work-header { display: none; }
}

/* --- PARTNERS --- */
.partners-section {
    padding: 6rem 0;
    background-color: var(--color-white);
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(15, 23, 42, 0.16);
}

.partners-header {
    margin-bottom: 4rem; /* Increased spacing */
    position: relative;
    z-index: 10;
}

.scroller-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    /* Improved mask */
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.partner-track {
    display: flex;
    width: max-content;
    gap: 4rem; /* Adjusted gap */
    animation: scrollLeft 60s linear infinite; /* Slower, smoother */
}

.partner-item {
    font-family: var(--font-sans);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-gray); /* Darker on white background */
    opacity: 0.5;
    cursor: default;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0; /* Prevent squishing */
}

.partner-item:hover {
    color: var(--color-brand-blue);
    opacity: 1;
    text-shadow: none;
}

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

/* --- CONTACT --- */
.contact-section {
    padding: 6rem 0;
    background-color: var(--color-white);
    color: var(--color-brand-dark);
    position: relative;
    overflow: hidden;
}

.contact-bg-blob {
    position: absolute;
    bottom: -5rem;
    right: -5rem;
    width: 40rem;
    height: 40rem;
    background-color: var(--color-brand-blue);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.1;
    pointer-events: none;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    position: relative;
    z-index: 10;
}

.contact-title {
    color: var(--color-brand-dark);
    margin-bottom: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 3rem;
}

.contact-grid-info {
    display: grid;
    gap: 2rem;
}

.contact-group .contact-name {
    display: block;
    font-size: 1.5rem;
    font-family: var(--font-display);
    color: var(--color-brand-dark);
    margin-bottom: 0.25rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
}

.contact-group .contact-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-gray);
    margin-bottom: 0.5rem;
}

.contact-val {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 1.125rem;
    display: block;
    color: #4b5563;
}

.contact-link {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 1.125rem;
    display: block;
    transition: color 0.3s;
    color: #4b5563;
}

.contact-link.mt-sm {
    margin-top: 0.25rem;
}

.contact-link:hover { color: var(--color-brand-blue); }

.contact-footer {
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.copyright-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
}

.social-links {
    display: flex;
    gap: 1rem;
}
.social-links.is-hidden {
    display: none;
}

.social-icon {
    width: 1.5rem;
    height: 1.5rem;
    transition: color 0.3s;
    cursor: pointer;
}

.social-icon:hover { color: var(--color-brand-blue); }

@media (min-width: 768px) {
    .contact-layout { grid-template-columns: 1fr 1fr; }
}

/* --- LIGHTBOX --- */
.lightbox {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.95);
    z-index: 2000;
    display: none; /* toggled via JS */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.lightbox.visible { display: flex; }

.lightbox-img {
    max-height: 85vh;
    max-width: 90vw;
    object-fit: contain;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.lightbox-close { position: absolute; top: 1.5rem; right: 1.5rem; color: white; }
.lightbox-prev { position: absolute; left: 1.5rem; top: 50%; transform: translateY(-50%); color: white; display: none; }
.lightbox-next { position: absolute; right: 1.5rem; top: 50%; transform: translateY(-50%); color: white; display: none; }
.lightbox-counter { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.7); font-family: var(--font-display); letter-spacing: 0.1em; background: rgba(0,0,0,0.5); padding: 0.5rem 1rem; border-radius: 99px; border: 1px solid rgba(255,255,255,0.1); }

@media (min-width: 768px) {
    .lightbox-prev, .lightbox-next { display: block; }
}