/* global.css - Shared Design System and Layout styles for redmono */

/* ===== FONTS & VARIABLES ===== */
*{box-sizing:border-box;margin:0;padding:0}
:root {
    --red: #f00;
    --black: #080808;
    --white: #fff;
    --soft: #f4f1eb;
    --muted: #737373;
    --line: #dedbd4;
    --stage-height: 100vh;
    --stage-mask: var(--red);
}

html {
    scroll-behavior: smooth;
    background: var(--soft);
    color: var(--black);
    font-family: "DM Sans", Inter, Arial, Helvetica, sans-serif;
    overflow-x: clip;
    max-width: 100%;
}
body {
    min-height: 100vh;
    background: var(--soft);
    overflow-x: clip;
    max-width: 100%;
}

::selection {
    background: var(--red);
    color: var(--white);
}
.red-card-section ::selection {
    background: var(--white);
    color: var(--red);
}

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

h1, h2, h3, .brand, .massive-slogan, .eyebrow {
    font-family: "Space Grotesk", sans-serif;
}

/* ===== UTILITIES & BUTTONS ===== */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0 1.1rem;
    border: 1px solid currentColor;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: .78rem;
    transition: background-color 0.35s, color 0.35s, border-color 0.35s, letter-spacing 0.35s, transform 0.35s;
    will-change: transform, letter-spacing;
}
.button.primary {
    background: var(--white);
    color: var(--red);
    border-color: var(--white);
}
.button:hover {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
    letter-spacing: .16em;
    transform: scale(1.02);
}

/* ===== TOPBAR HEADER ===== */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 1rem;
    padding: 2.2rem clamp(1rem, 3vw, 2rem) 1.5rem;
    background: transparent;
    border-bottom: 1px solid transparent;
    color: var(--white);
    transition: background 0.35s, border-color 0.35s, color 0.35s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.topbar.red-zone, .topbar.dark-zone {
    background: transparent;
    border-bottom: 1px solid transparent;
    color: var(--white);
}
.topbar.light-zone {
    background: transparent;
    border-bottom: 1px solid transparent;
    color: var(--black);
}

/* ===== BACK HOME BUTTON ===== */
.back-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: inherit;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}
.back-home-btn:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}
.topbar.light-zone .back-home-btn {
    border-color: rgba(0, 0, 0, 0.15);
    background: rgba(0, 0, 0, 0.03);
}
.topbar.light-zone .back-home-btn:hover {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}
.topbar.red-zone .back-home-btn {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}
.topbar.red-zone .back-home-btn:hover {
    background: var(--white);
    color: var(--red);
    border-color: var(--white);
}

@media (max-width: 640px) {
    .back-home-btn span {
        display: none;
    }
    .back-home-btn {
        padding: 0.5rem;
    }
    .back-home-btn svg {
        margin-right: 0 !important;
    }
}


.brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    font-weight: 900;
    letter-spacing: -.04em;
    font-size: 1.25rem;
}
.topbar .brand {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
}
.topbar.red-zone .brand, .topbar.light-zone .brand, .topbar.dark-zone .brand {
    opacity: 1;
    visibility: visible;
}

.mark {
    width: 2rem;
    height: 2rem;
    background: var(--white);
    display: inline-block;
    transition: background-color 0.35s;
}
.topbar.red-zone .mark {
    background: var(--white);
}
.topbar.light-zone .mark, .topbar.dark-zone .mark {
    background: var(--red);
}

.lang {
    display: flex;
    gap: .2rem;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 2rem;
    height: 1.1rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 21;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.menu-toggle:hover {
    transform: scale(1.05);
}
.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--white);
    transition: all 0.3s;
}
.topbar.light-zone .hamburger-line {
    background-color: var(--black);
}
.topbar.red-zone .hamburger-line, .topbar.dark-zone .hamburger-line {
    background-color: var(--white);
}

/* ===== FULLSCREEN OVERLAY MENU ===== */
.mobile-menu-overlay {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(8, 8, 8, 0.98);
    backdrop-filter: blur(24px);
    color: var(--white);
    flex-direction: column;
    padding: 2.5rem clamp(1rem, 5vw, 4rem);
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    visibility: hidden;
    overflow-y: auto;
}
.mobile-menu-overlay.open {
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
}
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 2rem;
}
.mobile-menu-header .brand .mark {
    width: 1.5rem;
    height: 1.5rem;
    background: var(--white) !important;
}
.menu-close {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}
.menu-close:hover {
    transform: rotate(90deg);
}

.menu-overlay-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 6rem;
    margin-top: clamp(2rem, 8vh, 6rem);
    flex-grow: 1;
    align-items: center;
    max-width: 1340px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}
.mobile-nav a {
    font-size: clamp(2.5rem, 5.2vw, 4.8rem);
    font-weight: 950;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: var(--white);
    transition: color 0.2s, transform 0.2s;
    display: inline-block;
}
.mobile-nav a:hover, .mobile-nav a.active {
    color: var(--red);
    transform: translateX(10px);
}

.menu-right-col {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    border-left: 1px solid rgba(255,255,255,0.1);
    padding-left: 4rem;
}
.menu-address {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.menu-address span {
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.4);
    display: block;
    text-transform: uppercase;
}
.menu-address-row {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #b6b6b6;
}
.menu-address-row strong {
    color: var(--white);
    font-weight: 800;
}

.menu-social-lang {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}
.mobile-social {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.mobile-social span, .mobile-lang span {
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
}
.social-icons {
    display: flex;
    gap: 1.25rem;
    margin-top: 0.25rem;
}
.social-icons a {
    color: var(--white);
    opacity: 0.75;
    transition: opacity 0.2s;
}
.social-icons a:hover {
    opacity: 1;
}
.mobile-lang {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.lang-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.25rem;
}
.lang-links a {
    font-size: 0.95rem;
    font-weight: 800;
    color: rgba(255,255,255,0.4);
    padding-bottom: 0.2rem;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}
.lang-links a.active, .lang-links a:hover {
    color: var(--white);
    border-bottom-color: var(--red);
}

/* ===== CUSTOM CURSOR ===== */
.cursor {
    display: none;
    width: 16px;
    height: 16px;
    background: var(--red);
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    will-change: transform;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-radius 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    mix-blend-mode: normal;
    border-radius: 0;
}
.cursor.on-red {
    background: var(--white);
}
.cursor.hover {
    width: 48px;
    height: 48px;
    background: transparent;
    border: 2px solid var(--white);
    mix-blend-mode: normal;
}
.cursor.hover-dark {
    width: 48px;
    height: 48px;
    background: transparent;
    border: 2px solid var(--black);
    mix-blend-mode: normal;
}

@media (hover: hover) and (pointer: fine) {
    body.custom-cursor,
    body.custom-cursor a,
    body.custom-cursor button,
    body.custom-cursor .service-card,
    body.custom-cursor .work-card,
    body.custom-cursor .filter-btn,
    body.custom-cursor .service-list li {
        cursor: none;
    }
    body.custom-cursor .cursor {
        display: block;
    }
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    filter: blur(0px);
    pointer-events: all;
    will-change: opacity, filter;
}
.preloader.fade-out {
    opacity: 0;
    filter: blur(20px);
    pointer-events: none;
}
.loader-content {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.loader-square {
    width: 45px;
    height: 45px;
    background: var(--red);
    transform: scale(0.5);
    opacity: 0;
    animation: growSquareOnce 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards,
               pulseSquare 2.0s ease-in-out infinite alternate 1.2s;
}

@keyframes growSquareOnce {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(4.5);
        opacity: 1;
    }
}
@keyframes pulseSquare {
    0% {
        transform: scale(4.5);
    }
    100% {
        transform: scale(4.1);
    }
}

@keyframes growSquareOnce {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(4.5);
        opacity: 1;
    }
}
@keyframes pulseSquare {
    0% {
        transform: scale(4.5);
    }
    100% {
        transform: scale(4.1);
    }
}
@keyframes fadeBrandIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 0.95;
        transform: translateY(0);
    }
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}
.reveal-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes drawVertical {
    from { height: 0; }
    to { height: 100%; }
}

/* ===== FOOTER BOTTOM ===== */
.footer-bottom {
    margin-top: 9rem;
    border-top: 1px solid var(--line);
    padding-top: 2rem;
}
.footer-bottom-content {
    width: 100%;
    max-width: 1340px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
}
.footer-merged-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.footer-logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
}
.logo-divider {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--muted);
    user-select: none;
}
.footer-copyright-row {
    font-family: "DM Sans", sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #757575;
}
.footer-links-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.footer-social-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.25rem;
}
.footer-social-row a {
    color: #757575;
    transition: color 0.2s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.footer-social-row a:hover {
    color: var(--red);
    transform: translateY(-2px);
}
.footer-bottom-square {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 0.5rem;
}
.footer-logomark {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
.footer-red-square {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: var(--red);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}
.footer-red-square:hover {
    transform: scale(1.15) rotate(90deg);
}
.footer-logomark-text {
    font-family: "Inter", sans-serif;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: var(--black);
}
.coverr-attribution {
    display: inline-flex;
    align-items: center;
    opacity: 0.55;
    transition: opacity 0.2s;
    flex-shrink: 0;
}
.coverr-attribution:hover {
    opacity: 1;
}
.coverr-logo {
    height: 18px;
    width: auto;
    display: block;
}
.draft-note {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 30;
    background: var(--black);
    color: var(--white);
    padding: .7rem .85rem;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* ===== STICKY NAV / QUICK NAV ===== */
.topbar.topbar-hidden {
    transform: translateY(-100%);
}

.quick-nav {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) translateY(-8px);
    display: flex;
    align-items: center;
    gap: 1.8rem;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.quick-nav.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) translateY(0);
}

.quick-nav a {
    color: inherit;
    text-decoration: none;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    position: relative;
    padding: 0.4rem 0;
    transition: opacity 0.25s;
}

.quick-nav a:hover {
    opacity: 0.7;
}

.quick-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.quick-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

@media (max-width: 1024px) {
    .quick-nav {
        display: none !important;
    }
}

/* ===== RESPONSIVE OVERRIDES ===== */
@media (max-width: 640px) {
    .topbar {
        position: fixed;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1rem;
        background: var(--red) !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        color: var(--white) !important;
    }
    .topbar .brand {
        opacity: 1 !important;
        visibility: visible !important;
    }
    .brand {
        font-size: 1.15rem;
    }
    .brand .mark {
        width: 1.25rem;
        height: 1.25rem;
        background: var(--white) !important;
    }
    .hamburger-line {
        background-color: var(--white) !important;
    }
    
    .nav, .lang {
        display: none !important;
    }
    
    .menu-overlay-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-top: 2rem;
    }
    .menu-right-col {
        border-left: none;
        padding-left: 0;
        gap: 2rem;
    }
    .mobile-nav a {
        font-size: 2rem;
    }
    .menu-social-lang {
        gap: 2.5rem;
    }
}

/* ===== CASE STUDY DETAILS & SUBPAGES STYLE ===== */
.subpage-hero {
    position: sticky;
    top: 0;
    z-index: 1;
    height: 80vh;
    min-height: 550px;
    background-color: #0a0a0a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    padding: 2rem;
    overflow: hidden;
}
.subpage-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8,8,8,0.4) 0%, rgba(8,8,8,0.85) 100%);
    z-index: 1;
}
.subpage-hero.dark-hero::after {
    background: rgba(8,8,8,0.78);
}
.subpage-hero .photo-info {
    position: absolute;
    right: clamp(1.5rem, 5vw, 4rem);
    bottom: 1.5rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    opacity: 0;
    transform: translateY(6px);
    animation: fadeCredit 0.6s 1.4s forwards;
    pointer-events: none;
}
.subpage-hero .photo-label {
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
}
.subpage-hero .photo-title {
    font-size: 0.65rem;
    font-weight: 500;
    color: rgba(255,255,255,0.55);
    text-align: right;
    max-width: 260px;
}
.subpage-hero .photo-credit {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.3);
    text-align: right;
    max-width: 260px;
    font-style: italic;
}
@keyframes fadeCredit {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    width: 100%;
}
.hero-content .eyebrow {
    font-size: .85rem;
    font-weight: 900;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 1.5rem;
    display: block;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(.16,1,.3,1) 0.2s;
}
.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 6.8rem);
    font-weight: 950;
    line-height: 1;
    letter-spacing: -0.05em;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(.16,1,.3,1) 0.35s;
    text-transform: lowercase;
}
.hero-content p {
    font-size: clamp(1.1rem, 1.6vw, 1.45rem);
    font-weight: 500;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    max-width: 680px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(.16,1,.3,1) 0.5s;
}
.subpage-hero.start-animations .eyebrow,
.subpage-hero.start-animations h1,
.subpage-hero.start-animations p {
    opacity: 1;
    transform: translateY(0);
}

.project-info-section {
    position: relative;
    z-index: 10;
    background: var(--white);
    padding: 7rem clamp(2rem, 5vw, 5rem);
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    box-shadow: 0 -20px 40px rgba(0,0,0,0.1);
    margin-top: -32px;
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.5s, 
                transform 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
    will-change: opacity, transform;
}
.subpage-hero.start-animations + .project-info-section {
    opacity: 1;
    transform: translateY(0);
}
.project-info-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: clamp(3rem, 6vw, 8rem);
    max-width: 1340px;
    margin: 0 auto;
    width: 100%;
}
.project-narrative h2 {
    font-size: clamp(1.8rem, 3.2vw, 3rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
    text-transform: lowercase;
}
.project-narrative p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 2rem;
}
.project-metadata {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    border-left: 1px solid var(--line);
    padding-left: clamp(2rem, 4vw, 4rem);
}
.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.meta-item label {
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    color: var(--red);
    text-transform: uppercase;
}
.meta-item span, .meta-item a {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--black);
}
.meta-item a:hover {
    color: var(--red);
}

.project-stats-section {
    background: var(--black);
    color: var(--white);
    padding: clamp(6rem, 10vh, 10rem) clamp(2rem, 5vw, 5rem);
    text-align: center;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    margin-top: -32px;
    position: relative;
    z-index: 11;
}
.stats-container {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}
.stat-large-val {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2rem, 5vw, 4.8rem);
    font-weight: 950;
    line-height: 1.1;
    letter-spacing: -0.05em;
    color: var(--white);
}
.stat-large-val span {
    color: var(--red);
}

.project-gallery-section {
    background: var(--white);
    padding: 7rem clamp(2rem, 5vw, 5rem);
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    margin-top: -32px;
    position: relative;
    z-index: 12;
    box-shadow: 0 -20px 40px rgba(0,0,0,0.05);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
    max-width: 1340px;
    margin: 0 auto;
    width: 100%;
}
.gallery-item {
    overflow: hidden;
    border-radius: 12px;
    background: var(--soft);
    position: relative;
}
.gallery-item.full-width {
    grid-column: span 2;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-item:hover img {
    transform: scale(1.03);
}

/* ===== CATALOG PREVIEW SECTION ===== */
.catalog-preview-section {
    background: radial-gradient(circle at 50% 0, rgba(255, 0, 0, 0.16), transparent 34rem), var(--black);
    color: var(--white);
    position: relative;
    z-index: 12;
    padding: clamp(4rem, 8vh, 7rem) clamp(1rem, 4vw, 3rem) clamp(2rem, 5vh, 3.5rem);
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    margin-top: -32px;
    box-shadow: 0 -20px 40px rgba(0,0,0,0.18);
}

.catalog-preview-shell {
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
}

.catalog-preview-header {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    align-items: end;
    gap: clamp(1.5rem, 4vw, 4rem);
    margin-bottom: clamp(2rem, 5vh, 3.5rem);
}

.catalog-preview-title-block {
    grid-column: 1;
    grid-row: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.catalog-preview-desc {
    grid-column: 2;
    grid-row: 1;
    color: rgba(255,255,255,0.68);
    line-height: 1.65;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    margin: 0;
}

.catalog-preview-header h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2rem, 3.8vw, 3.4rem);
    font-weight: 950;
    letter-spacing: -0.05em;
    line-height: 0.96;
    text-transform: lowercase;
    margin: 0;
}

.catalog-preview-reader {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr) 3rem;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1.5rem);
    min-height: min(72svh, 56rem);
}

.catalog-preview-stage {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(72svh, 56rem);
}

.catalog-preview-page {
    display: block;
    width: auto;
    height: auto;
    max-width: min(72vw, calc(72svh * 0.70713));
    max-height: min(72svh, 56rem);
    object-fit: contain;
    background: #f3f0e8;
    border: 1px solid rgba(255,255,255,0.24);
    box-shadow: 0 2rem 7rem rgba(0,0,0,0.65);
}

.catalog-preview-nav {
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.06);
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.catalog-preview-nav:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.catalog-preview-nav:disabled {
    opacity: 0.28;
    cursor: default;
    pointer-events: none;
}

.catalog-preview-controls {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(1rem, 3vw, 2rem);
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.catalog-preview-counter {
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    color: rgba(255,255,255,0.72);
    text-transform: uppercase;
    white-space: nowrap;
}

.catalog-preview-track {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.35rem 0;
    scrollbar-color: var(--red) rgba(255,255,255,0.1);
}

.catalog-preview-thumb {
    width: clamp(3.1rem, 4.5vw, 4.8rem);
    flex: 0 0 auto;
    border: 2px solid transparent;
    background: transparent;
    padding: 0;
    opacity: 0.48;
    cursor: pointer;
    transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
}

.catalog-preview-thumb[aria-current="true"] {
    opacity: 1;
    border-color: var(--red);
}

.catalog-preview-thumb:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.catalog-preview-thumb img {
    width: 100%;
    display: block;
    aspect-ratio: 1200 / 1697;
    object-fit: cover;
}

.catalog-preview-open {
    min-height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.25rem;
    border: 1px solid rgba(255,255,255,0.2);
    background: var(--red);
    color: var(--white);
    text-decoration: none;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s;
}

.catalog-preview-open:hover {
    background: var(--white);
    color: var(--black);
}

.next-project-section {
    background: var(--black);
    color: var(--white);
    position: relative;
    z-index: 13;
    height: auto;
    min-height: 85vh;
    overflow: hidden;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    margin-top: -32px;
    display: flex;
    flex-direction: column;
}
.next-project-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.32;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s;
    z-index: 1;
}
.next-project-card:hover .next-project-bg {
    transform: scale(1.06);
    opacity: 0.42;
}
.next-project-card {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 55vh;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    cursor: pointer;
}
.next-project-label {
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    color: var(--red);
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.next-project-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.5rem, 6vw, 6.5rem);
    font-weight: 950;
    letter-spacing: -0.05em;
    line-height: 1;
    text-transform: lowercase;
    margin-bottom: 2rem;
}
.next-project-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    transition: all 0.3s;
}
.next-project-card:hover .next-project-arrow {
    border-color: var(--red);
    background: var(--red);
    transform: scale(1.08);
}
.next-project-arrow svg {
    transition: transform 0.3s;
}
.next-project-card:hover .next-project-arrow svg {
    transform: translateX(4px);
}

/* ===== RESPONSIVE SUBPAGE OVERRIDES ===== */
@media (max-width: 900px) {
    .project-info-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .project-metadata {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--line);
        padding-top: 3rem;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}
@media (max-width: 640px) {
    .project-metadata {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-item.full-width {
        grid-column: span 1;
    }
    .subpage-hero {
        height: 60vh;
        min-height: 400px;
    }
    .project-info-section, .project-gallery-section, .project-stats-section, .next-project-section, .about-cta-section {
        border-top-left-radius: 24px;
        border-top-right-radius: 24px;
        margin-top: -24px;
    }
}

/* ===== STICKY SECTION OVERRIDES ===== */
.project-info-section,
.project-stats-section,
.project-gallery-section,
.next-project-section {
    position: sticky;
    top: 0;
}

.project-stats-section {
    box-shadow: 0 -20px 40px rgba(0,0,0,0.15);
}
.next-project-section {
    box-shadow: 0 -20px 40px rgba(0,0,0,0.2);
}

.about-cta-section {
    background: var(--black);
    color: var(--white);
    padding: clamp(4rem, 8vh, 6rem) clamp(2rem, 5vw, 5rem) clamp(3rem, 6vh, 4.5rem);
    text-align: center;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    margin-top: -32px;
    position: sticky;
    top: 0;
    z-index: 13;
    box-shadow: 0 -20px 40px rgba(0,0,0,0.2);
}
.about-cta-content {
    max-width: 800px;
    margin: 0 auto;
}
.about-cta-content h2 {
    font-size: clamp(2rem, 5vw, 5rem);
    font-weight: 950;
    letter-spacing: -0.05em;
    line-height: 1.1;
    margin-bottom: clamp(1.5rem, 3vh, 2rem);
}

.about-cta-section .footer-bottom {
    margin-top: clamp(2.5rem, 5vh, 4rem) !important;
    padding-top: 1.4rem;
}

/* ===== DARK FOOTER OVERRIDES ===== */
.footer-bottom.dark {
    border-top-color: rgba(255, 255, 255, 0.08) !important;
    background: transparent !important;
}
.footer-bottom.dark .footer-logomark-text {
    color: var(--white) !important;
}
.footer-bottom.dark .footer-copyright-row {
    color: rgba(255, 255, 255, 0.4) !important;
}
.footer-bottom.dark .footer-social-row a {
    color: rgba(255, 255, 255, 0.4) !important;
}
.footer-bottom.dark .footer-social-row a:hover {
    color: var(--red) !important;
}
.footer-bottom.dark .logo-divider {
    color: rgba(255, 255, 255, 0.2) !important;
}

/* ===== SERVICE DETAILS FLOATING DRAWER (NON-BLOCKING) ===== */
.service-details-pane {
    position: fixed;
    top: 0;
    width: 450px;
    max-width: 100vw;
    height: 100dvh;
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 2000;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                left 0.15s ease, right 0.15s ease;
    display: flex;
    flex-direction: column;
    padding: 4.5rem 3rem;
    pointer-events: auto;
    
    /* Default off-screen state (slides to right) */
    right: 0;
    left: auto;
    transform: translateX(100%);
}

/* Right position styles */
.service-details-pane.position-right {
    right: 0;
    left: auto;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    border-right: none;
    transform: translateX(100%);
    box-shadow: -15px 0 50px rgba(0, 0, 0, 0.06);
}
.service-details-pane.position-right.open {
    transform: translateX(0);
}

/* Left position styles */
.service-details-pane.position-left {
    left: 0;
    right: auto;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    border-left: none;
    transform: translateX(-100%);
    box-shadow: 15px 0 50px rgba(0, 0, 0, 0.06);
}
.service-details-pane.position-left.open {
    transform: translateX(0);
}

/* Hide menu button when details pane is open */
body.details-pane-open .menu-toggle {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    transition: opacity 0.3s, visibility 0.3s;
}

.pane-close-btn {
    position: absolute;
    right: 2rem;
    top: 2rem;
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.08);
    cursor: pointer;
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.3s, 
                background-color 0.3s, 
                color 0.3s;
}

.pane-close-btn:hover {
    transform: rotate(90deg);
    border-color: var(--red);
    background-color: var(--red);
    color: var(--white);
}

.pane-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pane-category {
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    color: var(--red);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.pane-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.8rem, 3.2vw, 2.5rem);
    font-weight: 950;
    line-height: 1.1;
    letter-spacing: -0.05em;
    color: var(--black);
    text-transform: lowercase;
    margin-bottom: 1.5rem;
}

.pane-divider {
    width: 60px;
    height: 2px;
    background: rgba(0, 0, 0, 0.08);
    position: relative;
    margin-bottom: 2rem;
}

.pane-dot {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--red);
}

.pane-desc {
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--black);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.pane-features-wrapper h4 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    color: #757575;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.pane-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 auto 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.pane-features-list li {
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pane-features-list li::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--red);
}

.pane-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1.1rem;
    background: var(--black);
    color: var(--white);
    text-decoration: none;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 100px;
    margin-top: auto;
    transition: background-color 0.25s, transform 0.25s, box-shadow 0.25s;
    text-align: center;
}

.pane-cta-btn:hover {
    background-color: var(--red);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 0, 0, 0.2);
}

/* Active Service List Item Override */
.service-list li.active::before {
    transform: translateY(0) !important;
}

.service-list li.active {
    color: var(--white) !important;
    opacity: 1 !important;
    transform: translateX(6px) !important;
}

.service-card:hover .service-list li.active::before {
    background-color: var(--white) !important;
}

.service-card:hover .service-list li.active {
    color: var(--black) !important;
}

/* Dynamic Fade-in for Content Change */
.pane-content-animate {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.pane-content-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive Drawer override */
@media (max-width: 768px) {
    .service-details-pane {
        right: 0;
        bottom: 0;
        top: auto;
        width: 100%;
        height: 65vh;
        transform: translateY(100%);
        border-left: none;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        border-top-left-radius: 24px;
        border-top-right-radius: 24px;
        padding: 3rem 1.5rem 2.5rem 1.5rem;
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .service-details-pane.open {
        transform: translateY(0);
    }
    
    /* Override position-left/right classes inside mobile view to slide vertically */
    .service-details-pane.position-left,
    .service-details-pane.position-right {
        left: 0;
        right: 0;
        top: auto;
        transform: translateY(100%);
        border-left: none;
        border-right: none;
    }
    
    .service-details-pane.position-left.open,
    .service-details-pane.position-right.open {
        transform: translateY(0);
    }
    
    .pane-close-btn {
        right: 1.5rem;
        top: 1.5rem;
        width: 32px;
        height: 32px;
    }
    
    .pane-title {
        font-size: 1.8rem;
        margin-bottom: 1.25rem;
    }
    
    .pane-divider {
        margin-bottom: 1.5rem;
    }
    
    .pane-desc {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }
    
    .pane-features-wrapper h4 {
        margin-bottom: 0.75rem;
    }
    
    .pane-features-list {
        gap: 0.7rem;
    }
    
    .pane-features-list li {
        font-size: 0.85rem;
    }
    
    .pane-cta-btn {
        padding: 0.9rem;
        font-size: 0.8rem;
        margin-top: 1.5rem;
    }
}

/* ===== OTHER WORKS SECTION ===== */
.other-works-section {
    background: var(--red);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 13;
    padding: 6rem clamp(1.5rem, 5vw, 5rem) 4rem clamp(1.5rem, 5vw, 5rem);
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -20px 40px rgba(0,0,0,0.25);
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    margin-top: -32px;
}

.other-works-section.compact-cta {
    min-height: auto;
    padding-top: clamp(3.5rem, 7vh, 5rem);
    padding-bottom: clamp(2.75rem, 5vh, 4rem);
}

.other-works-section.compact-cta .other-works-container {
    gap: clamp(1.5rem, 3vh, 2.5rem);
}

.other-works-section.compact-cta .footer-bottom {
    margin-top: clamp(2.5rem, 5vh, 4rem) !important;
    padding-top: 1.4rem;
}

.other-works-container {
    max-width: 1340px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.other-works-container h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 950;
    letter-spacing: -0.05em;
    line-height: 1;
    text-transform: lowercase;
    color: var(--white);
    margin: 0;
}

.other-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
}

.other-work-card {
    position: relative;
    height: 200px;
    border-radius: 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    text-decoration: none;
    color: var(--white);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.3s;
    cursor: pointer;
    z-index: 1;
}

.other-work-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.55;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.4s;
    z-index: -1;
}

.other-work-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 8, 8, 0) 30%, rgba(8, 8, 8, 0.85) 100%);
    opacity: 0.75;
    z-index: -1;
    transition: opacity 0.4s;
}

.other-work-card:hover {
    transform: translateY(-5px);
    border-color: var(--white);
}

.other-work-card:hover .other-work-card-bg {
    transform: scale(1.05);
    opacity: 1;
}

.other-work-card:hover::after {
    opacity: 0.85;
}

.other-work-meta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.other-work-category {
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.other-work-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.5rem;
    font-weight: 850;
    letter-spacing: -0.03em;
    text-transform: lowercase;
    margin: 0;
    line-height: 1.1;
}

.other-work-arrow {
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.other-work-card:hover .other-work-arrow {
    background: var(--white);
    color: var(--red);
    border-color: var(--white);
    transform: scale(1.08);
}

.other-work-arrow svg {
    transition: transform 0.3s;
}

.other-work-card:hover .other-work-arrow svg {
    transform: translateX(2px);
}

@media (max-width: 1024px) {
    .other-works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .other-works-section {
        border-top-left-radius: 24px;
        border-top-right-radius: 24px;
        margin-top: -24px;
        padding-top: 4rem;
    }
    .other-works-section.compact-cta {
        padding-top: 3rem;
        padding-bottom: 2.5rem;
    }
    .catalog-preview-section {
        padding: 4rem 1rem 2.5rem;
    }
    .catalog-preview-header {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .catalog-preview-title-block {
        grid-column: auto;
        grid-row: auto;
        text-align: left;
        align-items: flex-start;
    }
    .catalog-preview-desc {
        grid-column: auto;
        grid-row: auto;
    }
    .catalog-preview-reader {
        display: block;
        min-height: auto;
    }
    .catalog-preview-stage {
        min-height: auto;
    }
    .catalog-preview-page {
        max-width: 94vw;
        max-height: 72svh;
    }
    .catalog-preview-nav {
        display: none;
    }
    .catalog-preview-controls {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }
    .catalog-preview-open {
        width: 100%;
    }
    .other-works-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .other-work-card {
        height: 160px;
        padding: 1.5rem;
    }
    .other-work-title {
        font-size: 1.25rem;
    }
}

/* Other Works Header Row and All Works button */
.other-works-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 1.5rem;
}

.all-works-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    color: var(--white);
    text-decoration: none;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background-color 0.3s, border-color 0.3s, transform 0.2s, color 0.3s;
}

.all-works-btn:hover {
    background: var(--white);
    color: var(--red);
    border-color: var(--white);
    transform: translateY(-2px);
}

.all-works-btn svg {
    transition: transform 0.2s;
}

.all-works-btn:hover svg {
    transform: translateX(2px);
}

/* Social media icon white hover override when inside other-works-section */
.other-works-section .footer-bottom.dark .footer-social-row a:hover {
    color: var(--white) !important;
}

@media (max-width: 640px) {
    .other-works-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }
    .all-works-btn {
        width: 100%;
        justify-content: center;
        padding: 0.9rem;
        font-size: 0.8rem;
    }
}

/* ===== PREMIUM BROWSER MOCKUP FOR IFRAME PREVIEWS ===== */
.browser-mockup {
    width: 100%;
    border-radius: 12px;
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: 2rem 0;
}
.browser-bar {
    height: 48px;
    background: #1a1a1a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    position: relative;
}
.browser-dots {
    display: flex;
    gap: 8px;
    position: absolute;
    left: 1.25rem;
}
.browser-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.browser-dots .dot.red { background: #ff5f56; }
.browser-dots .dot.yellow { background: #ffbd2e; }
.browser-dots .dot.green { background: #27c93f; }

.browser-address-bar {
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    height: 28px;
    margin: 0 auto;
    width: 45%;
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.4);
    font-family: monospace;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}
.browser-address-bar svg {
    opacity: 0.5;
}
.browser-content {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #0c0c0c;
}
.browser-content iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: #0c0c0c;
}

@media (max-width: 768px) {
    .browser-content {
        padding-top: 0;
        height: 600px; /* Tall viewport on mobile for optimal browsing */
    }
    .browser-address-bar {
        width: 70%;
    }
}

/* ===== OFFICES SECTION ===== */
.offices-section {
    background: var(--white);
    padding: 7rem clamp(2rem, 5vw, 5rem);
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    margin-top: -32px;
    box-shadow: 0 -20px 40px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 10;
    color: var(--black);
}
.about-offices-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.about-offices-container h2 {
    font-size: clamp(2.2rem, 4.5vw, 4.5rem);
    font-weight: 950;
    letter-spacing: -0.05em;
    margin-bottom: 4rem;
    text-transform: lowercase;
    color: var(--black);
    line-height: 1.1;
    font-family: "Space Grotesk", sans-serif;
}
.about-cities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    width: 100%;
    margin-bottom: 4rem;
}
.about-city-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.about-city-col strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--black);
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    display: block;
}
.about-city-col p {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.6;
    max-width: 280px;
    margin: 0;
}
.flag-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}
.flag-svg {
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

@media (max-width: 900px) {
    .about-cities-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* ===== BRANDS SECTION ===== */
.section-dark {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: clamp(6rem, 10vh, 11rem) clamp(2rem, 5vw, 5rem);
    background: #080808;
    color: var(--white);
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    margin-top: -32px;
    box-shadow: 0 -20px 40px rgba(0,0,0,0.3);
}

.brands-layout {
    width: 100%;
    max-width: 1340px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.brands-header {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: flex-end;
}

.brands-title {
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 950;
    letter-spacing: -0.05em;
    text-transform: lowercase;
    margin: 0;
}

.brands-subtitle {
    font-size: clamp(0.9rem, 1.1vw, 1.1rem);
    line-height: 1.5;
    color: #a0a0a0;
    margin: 0;
    max-width: 480px;
    justify-self: end;
}

.brands-grid {
    display: flex;
    gap: 1.5rem;
    width: 100%;
}

.brand-card {
    flex: 1;
    height: 180px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.2rem;
    transition: flex 0.6s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s, border-color 0.3s;
    cursor: pointer;
    overflow: hidden;
}

.brand-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Default state: first child gets flex: 2 */
.brands-grid:not(:hover) .brand-card:first-child {
    flex: 2;
}

.brands-grid:not(:hover) .brand-card:first-child .brand-logo-content svg {
    opacity: 1;
}

/* Hover state: the hovered item gets flex: 2 */
.brands-grid:hover .brand-card:hover {
    flex: 2;
}

.brand-logo-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.brand-logo-content svg {
    max-width: 100%;
    max-height: 52px;
    fill: currentColor;
    color: var(--white);
    opacity: 0.35;
    transition: opacity 0.3s, transform 0.3s;
}

.brand-card:hover .brand-logo-content svg {
    opacity: 1;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .brands-header {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        align-items: flex-start;
    }
    .brands-subtitle {
        justify-self: start;
        max-width: 100%;
    }
    .brands-grid {
        flex-direction: column;
        height: auto;
    }
    .brand-card {
        height: 120px;
        flex: none !important;
        width: 100%;
    }
}

/* View All button in marquee controls */
.marquee-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 1.25rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: lowercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    text-decoration: none;
}

.marquee-view-all:hover {
    background: var(--red, #e50914);
    border-color: var(--red, #e50914);
    color: #ffffff;
}

/* Draggable Marquee Grab Styles */
.marquee-row-wrapper {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}
.marquee-row-wrapper:active {
    cursor: grabbing;
}
.work-card-new img {
    pointer-events: none;
    -webkit-user-drag: none;
}

@media (max-width: 768px) {
    .section-dark {
        position: relative !important;
        margin-top: 0 !important;
        padding: 4rem 1.5rem !important;
        border-radius: 0 !important;
    }
}




