/* =========================================
   mAD Collective - Global Styles
   ========================================= */

:root {
    --bg-color: #F8F4F1;
    /* Nude beige off-white */
    --accent-color: #B42524;
    --text-color: #B42524;
    --placeholder-color: #eee;
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: 0.3s ease-out;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Talinoir Demo', sans-serif;
}

.desktop-only { display: flex; }
.mobile-only { display: none; }

@font-face {
    font-family: 'Talinoir Demo';
    src: url('Talinoir Demo.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scroll-padding-top: 12vh; /* Universally pushes all scroll anchors down so headers aren't hidden under the fixed navbar */
}

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

body {
    background-color: #F8F4F1;
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Color transition only for text/nav, NOT background (JS scrubs bg directly) */
    transition: color 0.6s ease;
}

/* Body turns red when in the red zone */
body.is-red {
    background-color: #B42524;
}

/* Contact syncs its own background with body — transparent when red, beige when not */
body.is-red .contact-section {
    background-color: transparent;
}

/* =========================================
   Section-level color theming
   Red applied directly — no JS class toggling
   ========================================= */
#about,
#services,
.work-section,
#clients {
    background-color: transparent !important;
    color: #F0EBE3;
    position: relative;
    z-index: 1;
}

/* Ensure all text inside red sections is beige/white */
#about h1, #about h2, #about h3, #about p,
#services h1, #services h2, #services h3, #services p,
.work-section h1, .work-section h2, .work-section h3, .work-section p,
#clients h1, #clients h2, #clients h3, #clients p {
    color: #F0EBE3;
}

/* Typography Utilities */
h1,
h2,
h3,
p,
a {
    color: inherit;
    /* Inherits from body for smooth toggle */
    transition: color 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

a {
    text-decoration: none;
}

h2.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 70px); /* Refined from 80px to 70px */
    text-align: center;
    margin-bottom: 5vh;
    font-weight: normal;
    text-transform: none;
    line-height: 1.1;
}

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

/* Layout Utilities */
.full-height {
    min-height: 100vh;
}

.flex-center-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.spacious-section {
    width: 100%;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .spacious-section {
        padding: 5vh 5vw;
    }
}

/* =========================================
   Navbar
   ========================================= */

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2vh 5vw;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity var(--transition-smooth), transform var(--transition-smooth);
    /* Backdrop blur is added dynamically via JS class, or we can just add it here 
     and JS toggles the opacity/transform via a class */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.nav-logo {
    max-width: 150px;
    /* Reduced specific nav logo size as requested */
    height: auto;
    display: block;
    transition: filter var(--transition-smooth);
}

body.is-red .nav-logo {
    filter: brightness(0) invert(1);
}

body:not(.is-red) .nav-logo {
    filter: none;
}

/* Navbar color theming */
body.is-red #navbar {
    color: #F0EBE3;
    background: rgba(180, 37, 36, 0.4); /* highly transparent red for glass blur */
}

body:not(.is-red) #navbar {
    color: var(--text-color);
    background: rgba(248, 244, 241, 0.5); /* translucent beige to match exactly with --bg-color */
}

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

.nav-links a {
    font-weight: 600;
    transition: color 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity var(--transition-fast),
        transform var(--transition-fast);
    display: inline-block;
    font-size: 1.1rem;
    color: inherit;
}



.nav-links a:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

/* Legacy nav links are now handled by the .desktop-only / .mobile-only logic at the end of the file */
        overflow-x: auto;
        white-space: nowrap;
    }

    .nav-links a {
        font-size: 0.6rem;
    }
}

/*****************************************
   Hero Section Animations & Layout
******************************************/

#hero {
    position: relative;
    padding: 10vh 5vw;
    /* No solid background — body color shows through cleanly */
}

/* 
  Container forces exact bounds of the logo (200px max, scalable but respects aspect ratio).
  Fixed top post-animation behavior is tricky purely with CSS on scroll without JS, 
  but the prompt specifies "Post-animation: Logo fixed top 20vh".
  We will handle layout within the flex column to sit at 20vh natively.
*/
.hero-logo-anim-container {
    position: relative;
    width: 200px;
    height: 120px;
    /* Approximate height to hold proportions */
    margin: 0 auto 5vh auto;
    /* We place it conceptually at 20vh via its position in the flex col, actually flex centers it, 
       but we will push it up with a top margin if flex centering is active. 
       Let's use absolute positioning relative to #hero to force "fixed top 20vh" 
       as requested by the user. */
    position: absolute;
    top: 20vh;
    left: 50%;
    transform: translateX(-50%);
}

.relative-hero {
    position: relative;
    width: 100%;
    height: 85vh; /* Shrunk from 100vh to naturally eliminate the empty space under the logo */
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 41.5vh;
    /* Pushed down 6.5vh to center the whole lockup */
    left: 50%;
    transform: translate3d(-50%, -50%, 0);
    -webkit-transform: translate3d(-50%, -50%, 0);
    width: 85vw;
    /* Increased significantly to make main logo much bigger */
    height: 85vh;
    /* Increased significantly to make main logo much bigger */
    object-fit: contain;
    z-index: 0;
    pointer-events: none;
    mix-blend-mode: darken;
    filter: brightness(1.05) contrast(1.05);
    will-change: transform, opacity;
}

.hero-tagline {
    position: absolute;
    left: 50%;
    top: 58.5vh;
    /* Pushed down 6.5vh to perfectly center lockup around 50vh */
    transform: translate(-50%, 25px) scale(0.95);
    font-size: 2vw;
    /* Reverting back to smaller size as requested in previous step (was over-written) */
    color: #B42524;
    text-transform: uppercase;
    font-weight: normal;
    opacity: 0;
    margin: 0;
    text-align: center;
    letter-spacing: 0.05em;
    white-space: nowrap;
    will-change: transform;
    backface-visibility: hidden;
    animation: heroSlideUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 2.4s forwards;
}

@media (max-width: 768px) {
    .relative-hero {
        height: 100vh !important;
        min-height: 100vh !important;
    }

    .hero-video {
        width: 100vw;
    }

    .hero-tagline {
        font-size: 4vw;
        top: 50vh;
        /* Make readable on mobile */
        white-space: normal;
        width: 90vw;
    }
}

@keyframes heroSlideUp {
    0% {
        opacity: 0;
        transform: translate(-50%, 25px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }
}

/* =========================================
   Services Section — Horizontal Scroll v2
   ========================================= */

.services-section {
    position: relative;
    width: 100%;
}

.services-pin-wrapper {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: visible; /* stickers are siblings of clip — they must not be cropped */
}

.services-header-sticky {
    position: absolute;
    top: 12vh; /* Standardized for navigation sync */
    left: 0;
    right: 0;
    text-align: center;
    z-index: 20;
    pointer-events: none;
}

.vertices-title {
    color: #ffffff;
    margin-top: 5vh; /* Shifted down to be closer to subtitle */
    margin-bottom: 0px;
}

.vertices-subtitle {
    color: #ffffff;
    font-family: var(--font-heading); /* Updated to Talinoir brand font */
    font-weight: normal;
    font-size: 1.5rem;
    margin: -15px 0 0 0; /* Shifted up to group tighter with title */
}

/* Sticker float: uses margin-top (not transform) so GSAP x/y don't conflict.
   Each sticker drifts at a unique speed + phase for an organic, non-synchronized feel. */
@keyframes svcStickerDrift {
    0%, 100% { margin-top:  0px; }
    50%       { margin-top: -9px; }
}

.svc-sticker {
    position: absolute;
    top: 62%;
    left: 50%;
    width: 110px;
    height: auto;
    object-fit: contain;
    opacity: 0;
    pointer-events: none;
    z-index: 15;
    will-change: transform, opacity;
    user-select: none;
    /* Float animation — runs always; invisible stickers just don't show the drift */
    animation-name: svcStickerDrift;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

/* Each sticker: different duration + negative delay = phase-offset start = organic */
.svc-sticker:nth-child(1) { animation-duration: 3.4s; animation-delay:  0.0s; }
.svc-sticker:nth-child(2) { animation-duration: 4.1s; animation-delay: -1.7s; }
.svc-sticker:nth-child(3) { animation-duration: 3.7s; animation-delay: -2.4s; }
.svc-sticker:nth-child(4) { animation-duration: 3.0s; animation-delay: -0.9s; }

/* Clip wrapper — contains ONLY the track, not the stickers */
.svc-track-clip {
    position: absolute;
    inset: 0;
    overflow: visible; /* FIXED: Prevents stickers like the director's chair from being cut off */
    pointer-events: none;
}

.svc-track {
    display: flex;
    align-items: center;
    height: 100%;
    width: max-content;
    will-change: transform;
    pointer-events: auto;
}

.svc-slot {
    width: 100vw;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding-top: 15vh; /* Reduced from 18vh to move cards up as requested */
    box-sizing: border-box;
}

.svc-card {
    width: min(620px, 82vw);
    height: 370px;
    background: #F8F4F1;
    border-radius: 24px;
    padding: 26px 42px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.28);
    text-align: center;
    position: relative;
    z-index: 10;
    /* Vertically center content so short-text cards look as intentional as long-text cards */
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.svc-card h3 {
    font-size: clamp(1.3rem, 2.2vw, 1.9rem);
    font-weight: 700;
    color: #B42524 !important; /* override #services h3 { color: #F0EBE3 } */
    margin: 0 0 18px 0;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
}

.svc-card p {
    font-size: clamp(0.88rem, 1.15vw, 1.02rem);
    line-height: 1.85;
    color: #B42524 !important; /* brand red — matches h3 */
    font-weight: 400;
    margin: 0;
}

@media (max-width: 768px) {
    .svc-sticker { display: none; }
    .svc-track { flex-direction: column; width: 100%; height: auto; }
    .svc-slot { width: 100%; height: auto; padding: 8vh 5vw 4vh; }
    .svc-card { width: 100%; }
}

/* =========================================
   Work Section (Horizontal Scroll)
   ========================================= */

/* The outer section that takes up native scroll space. 
   GSAP will pin this wrapper. */
.work-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.work-pin-wrapper {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 12vh; /* Standardized for navigation sync */
    /* Aggressively pad the top to clear navbar completely out of the calculation */
}

.work-title-sticky {
    position: absolute;
    top: 12vh;
    /* Adjusted relative to new padded pin wrapper */
    left: 5vw;
    font-size: 70px; /* Standardized with other section titles */
    z-index: 20;
    pointer-events: none;
    mix-blend-mode: exclusion;
    color: white;
}

/* The long track that moves horizontally */
.work-track {
    display: flex;
    gap: 8vw;
    /* Slightly tighter gap */
    padding: 0 10vw 0 10vw;
    width: fit-content;
    height: 50vh;
    /* Reduced from 60vh to make cards smaller and prevent bleeding off screen */
    align-items: center;
}

/* Individual project cards */
.work-card {
    position: relative;
    /* Remove fixed width to allow aspect-ratio to dictate width */
    height: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Clean, luxurious look */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.work-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #2a2a2a;
    /* Placeholder dark grey */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.work-card:hover .work-image {
    transform: scale(1.05);
    filter: blur(8px) brightness(0.5); /* Severely blurs and darkens the project image so the text description pops */
}

/* Image overlay gradient for text legibility */
.work-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    pointer-events: none;
}

.work-content {
    position: relative;
    z-index: 10;
    padding: 0 30px 40px 30px;
    transform: translateY(20px);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.work-name {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: white;
}

.work-client {
    font-size: 1.2rem;
    font-weight: 300;
    color: #ccc;
    margin-bottom: 0;
    transition: margin-bottom 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.work-description {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 15px;
    max-height: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: max-height 0.6s cubic-bezier(0.25, 1, 0.5, 1),
        opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1),
        transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.work-card:hover .work-content {
    transform: translateY(0);
}

.work-card:hover .work-client {
    margin-bottom: 15px;
}

.work-card:hover .work-description {
    max-height: 150px;
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .work-pin-wrapper {
        height: auto !important;
        min-height: 0 !important;
        padding-top: 5vh;
        padding-bottom: 5vh;
    }

    .work-track {
        height: auto;
        flex-direction: column;
        width: 100%;
        gap: 40px;
        padding: 0;
        align-items: center;
    }

    .work-card {
        width: 90%;
        max-width: 400px;
        margin: 0 auto;
        border-radius: 12px;
    }

    .work-title-sticky {
        position: static !important;
        transform: none !important;
        color: var(--primary-red) !important;
        mix-blend-mode: normal !important;
        font-size: 15vw;
        top: auto !important;
        left: auto !important;
        text-align: center;
        margin-bottom: 30px;
        display: block;
    }

    .work-name {
        font-size: 1.5rem;
    }

    .work-description {
        font-size: 0.9rem;
    }

    .about-stack-container {
        height: auto !important;
        min-height: min-content !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 0;
        overflow: visible !important;
    }

    .work-section {
        position: relative !important;
        height: auto !important;
        clear: both !important;
        display: block !important;
        margin-top: 50px !important;
        overflow: hidden;
    }

    .about-stack-card {
        position: static !important;
        transform: none;
        /* Do not use !important so GSAP can animate Y */
        width: 100% !important;
        box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2) !important;
        max-width: 400px;
        height: auto;
        min-height: 250px;
        margin: 0 auto 30px auto !important;
        padding: 40px !important;
        box-sizing: border-box !important;
        left: auto !important;
        top: auto !important;
        filter: none !important;
        opacity: 1;
        z-index: 1 !important;
    }

    .client-logo {
        height: 40px;
        width: auto;
        max-width: 100px;
        object-fit: contain;
    }
}

/* =========================================
   About Section - 3D Hover Stack
   ========================================= */

#about {
    position: relative;
    padding-top: 12vh; /* Standardized for navigation sync */
    padding-bottom: 20vh; 
}

#services {
    /* Padding handled by wrapper */
}

.about-intro {
    max-width: 65ch;
    font-size: 1.2rem;
    line-height: 1.3;
    text-align: left;
    font-weight: 300;
    margin-bottom: 4vh; /* Slightly tightened margin */
}

/* =========================================
   Services Parallax Pin Component
   ========================================= */

/* OLD services-pin-wrapper block — nullified. New rules live in the
   'Services Section — Horizontal Scroll v2' block above. */
.services-pin-wrapper-legacy-noop {}

/* OLD services-header-sticky block — nullified. New rule uses position:absolute. */
.services-header-sticky-legacy-noop {}

.about-stack-container {
    position: relative; 
    width: 100%;
    max-width: 450px;
    height: 380px; 
    margin: 0 auto;
    z-index: 20;
}

.about-stack-card {
    position: absolute; 
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #e6d5c3; 
    color: var(--accent-color) !important; /* Force Brand Red for readability on beige */
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35); 
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    text-align: center;
    opacity: 0; /* GSAP shows the first card, hides the rest */
    will-change: opacity, transform;
}

.about-stack-card h3,
.about-stack-card p {
    color: var(--accent-color) !important;
}

.services-icons-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 30; /* Overlaps card corners but behind header */
}

/* Removed hover CSS completely to preserve GSAP matrix */

.about-stack-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.about-stack-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 400; /* Bumped slightly to ensure absolute crisp readability on cream */
}

@media (min-width: 768px) {
    /* Removed the explicit huge 2vw override since clamp() handles it perfectly now */
}

/* =========================================
   Founder Section
   ========================================= */

.founder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
    max-width: 900px;
}

.founder-image-placeholder {
    width: 300px;
    height: 400px;
    background-color: var(--placeholder-color);
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

.founder-image-placeholder:hover {
    transform: scale(1.02);
}

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

.founder-name {
    font-size: 6vw;
    /* mobile */
    font-weight: 700;
    margin-bottom: 20px;
}

.founder-bio {
    font-size: 4vw;
    /* mobile */
    line-height: 1.6;
    font-weight: 300;
}

@media (min-width: 768px) {
    .founder-content {
        flex-direction: row;
        text-align: left;
    }

    .founder-info {
        text-align: left;
    }

    .founder-name {
        font-size: 3vw;
    }

    .founder-bio {
        font-size: 1.8vw;
    }
}

/* =========================================
   Clients Section
   ========================================= */

#clients {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 12vh; /* Standardized for navigation sync */
    padding-left: 0;
    padding-right: 0;
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    padding: 40px 0;
    background-color: inherit;
    /* Inherits red from #clients section */
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 5vw;
    width: max-content;
    padding-left: 5vw;
}

.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
}

.client-logo {
    /* Strict dimensions to prevent massive white blocks */
    max-width: 140px;
    max-height: 70px;
    object-fit: contain;
    flex-shrink: 0;

    /* Force all transparent images to translucent white */
    filter: brightness(0) invert(1) opacity(0.8);
    transition: filter 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.client-logo:hover {
    filter: brightness(0) invert(1) opacity(1);
}

body.white-theme .client-logo {
    filter: brightness(0) opacity(0.8);
}

body.white-theme .client-logo:hover {
    filter: brightness(0) opacity(1);
}

/* Specific scale override for Persian Darbar to compensate for its wide aspect ratio */
.client-logo[src*="7.png"] {
    max-width: 180px;
    transform: scale(1.15);
}

/* Specific patch for 4.png to dissolve its solid white background */
.client-logo[src*="4.png"] {
    /* Invert white background to black, then screen it out. Turn colored logo to white. */
    filter: grayscale(1) invert(1) brightness(2) opacity(0.8);
    mix-blend-mode: screen;
}

.client-logo[src*="4.png"]:hover {
    filter: grayscale(1) invert(1) brightness(2) opacity(1);
}

body.white-theme .client-logo[src*="4.png"] {
    /* Special fix for 4.png on white theme to keep it visible */
    filter: grayscale(1) brightness(0.2) opacity(0.8);
    mix-blend-mode: multiply;
}

body.white-theme .client-logo[src*="4.png"]:hover {
    filter: grayscale(1) brightness(0.2) opacity(1);
}

.track-top {
    animation: scrollLtoR 25s linear infinite;
}

.track-bottom {
    animation: scrollRtoL 25s linear infinite;
}

@keyframes scrollRtoL {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 2.5vw));
    }
}

@keyframes scrollLtoR {
    0% {
        transform: translateX(calc(-50% - 2.5vw));
    }

    100% {
        transform: translateX(0);
    }
}

/* =========================================
   Contact Section
   ========================================= */

.contact-section {
    position: relative;
    background-color: transparent;
    transition: none;
    color: var(--text-color);
    padding: 10vh 5vw; /* Adjusted from 15vh to give more top breathing room while keeping layout tight */
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 60px;
    justify-content: center;
    align-items: center;
    z-index: 5;
}


@media (max-width: 768px) {
    .about-content-wrapper {
        padding: 0;
    }
}

.contact-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1vw; /* Further reduced from 2vw to 1vw as requested */
    gap: 10vw;
}

.contact-text-column {
    flex: 1.2;
    padding-top: 0;
}

.contact-form-column {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.contact-label {
    color: #B42524;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1; /* Critical for scroll hit synchronization with input */
    margin: 0 0 20px 0;
    padding: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.contact-headline {
    font-family: var(--font-heading);
    font-size: 80px;
    line-height: 1.2;
    color: #B42524;
    text-transform: none;
    text-align: left;
    margin: 0; /* Ensures no top margin shifts the column lower than its neighbor */
    font-weight: normal;
}

.mad-inline-logo {
    height: 1.5em; 
    vertical-align: middle;
    transform: translateY(-38%); /* Drastically adjusted to lift 'ad' onto the baseline */
    display: inline-block;
    margin: 0 6px 0 -2px; /* Slight negative margin-left to optically align the cursive M with 'Ready' */
}

@media (min-width: 1200px) {
    .contact-headline {
        font-size: 80px;
    }
}

.gradient-text {
    /* Kept structure but stripped gradient to ensure it stays Bold Red */
    color: inherit;
    display: inline-block;
}

.contact-form-column {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.contact-form-column {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.contact-form-box {
    background-color: transparent;
    width: 100%;
    max-width: 500px;
    padding: 0;
}

.mad-form {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.input-group {
    position: relative;
    width: 100%;
}

.mad-form input,
.mad-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(180, 37, 36, 0.4);
    color: #B42524;
    font-size: 1.1rem;
    padding: 0; /* Forced zero padding to ensure top-hit synchronization */
    line-height: 1; /* Match label for perfect Y-alignment */
    margin: 0;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color var(--transition-smooth);
    resize: none;
}

.mad-form input::placeholder,
.mad-form textarea::placeholder {
    color: rgba(180, 37, 36, 0.6);
}

.mad-form input:focus,
.mad-form textarea:focus {
    border-bottom-color: #B42524;
}

.submit-btn {
    background-color: #B42524;
    /* Red button */
    color: white;
    border: none;
    padding: 18px 30px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    letter-spacing: 1px;
    margin-top: 10px;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
    align-self: flex-start;
}

.submit-btn:hover {
    background-color: #050505;
    /* Black on hover */
    color: white;
}

/* Responsive */
@media (max-width: 900px) {
    .contact-container {
        justify-content: center;
    }

    .contact-content-wrapper {
        max-width: 100%;
        align-items: center; /* Center on mobile for better balance */
    }

    .contact-text-column {
        text-align: center;
    }

    .contact-headline {
        font-size: clamp(2.5rem, 10vw, 60px);
        text-align: center;
        line-height: 1.2;
    }

    .contact-form-box {
        padding: 40px 20px;
    }
}

/* =========================================
   Footer Section
   ========================================= */

.site-footer {
    background-color: #B42524 !important;
    color: white;
    padding: 30px 5vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: none;
    position: relative;
    z-index: 10;
}

.footer-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-geo {
    font-size: 0.85rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.05em;
    margin: 0;
}

.footer-bottom-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-bottom-row a, 
.footer-bottom-row p {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    margin: 0;
}

.footer-bottom-row a:hover {
    opacity: 0.7;
}

.footer-sep {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

.footer-copyright {
    opacity: 0.8;
}


/* =========================================
   SEPARATE MOBILE RESET (v120)
   ========================================= */

@media (max-width: 1024px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: flex !important; }

    /* --- Navbar & Hamburger (Guaranteed Visibility) --- */
    #navbar {
        height: 70px !important;
        padding: 0 5vw !important;
        background: rgba(248, 244, 241, 0.98) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        opacity: 1 !important;
        transform: none !important;
        z-index: 9999 !important;
        border-bottom: 1px solid rgba(180, 37, 36, 0.1);
    }

    .nav-logo {
        max-width: 130px !important;
        height: auto !important;
        display: block !important;
    }

    #hamburger {
        display: flex !important;
        width: 30px;
        height: 20px;
        flex-direction: column;
        justify-content: space-between;
        z-index: 10001 !important;
        cursor: pointer;
    }

    #hamburger span {
        display: block;
        width: 100%;
        height: 3px;
        background: #B42524 !important;
        border-radius: 2px;
    }

    #hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    #hamburger.active span:nth-child(2) { opacity: 0; }
    #hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    /* --- Mobile Menu Overlay --- */
    #mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #B42524;
        z-index: 10000;
        display: none !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    #mobile-menu.active {
        display: flex !important;
    }

    .mobile-menu-links {
        display: flex;
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .mobile-menu-links a {
        color: white;
        font-family: var(--font-heading);
        font-size: 3rem;
        text-decoration: none;
    }

    /* --- Sections (The Hard Reset) --- */
    section, main {
        height: auto !important;
        min-height: 100vh !important;
        overflow: visible !important;
        display: block !important;
        position: relative !important;
    }

    .spacious-section {
        padding: 100px 8vw 60px 8vw !important;
    }

    /* Fixing 'Too Huge' Fonts */
    .section-title {
        font-size: 2.8rem !important;
        line-height: 1.1 !important;
        margin-bottom: 2rem !important;
        text-align: left !important;
    }

    #about .about-content p {
        font-size: 1.15rem !important;
        line-height: 1.6 !important;
        width: 100% !important;
        margin-bottom: 20px !important;
    }

    /* --- Services & Work (Forced Vertical Stack) --- */
    .svc-pin-wrapper, .work-pin-wrapper {
        height: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
        overflow: visible !important;
        position: relative !important;
    }

    .svc-track, .work-track {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        height: auto !important;
        gap: 40px !important;
        padding: 0 !important;
        margin: 0 !important;
        transform: none !important;
    }

    .svc-slot, .work-card {
        width: 100% !important;
        height: 480px !important;
        max-width: none !important;
        margin-bottom: 30px !important;
        position: relative !important;
    }

    /* Ensure Headers are always above the stack */
    .svc-title-sticky, .work-title-sticky {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        margin-bottom: 30px !important;
        font-size: 2.5rem !important;
        color: #B42524 !important;
        mix-blend-mode: normal !important;
        display: block !important;
        padding: 0 !important;
    }

    /* --- Stickers Mobile Overhaul --- */
    .svc-sticker {
        width: 85px !important;
        height: 85px !important;
        z-index: 100 !important;
        pointer-events: none;
    }

    /* --- Touch-to-Reveal Logic --- */
    .work-content {
        opacity: 0;
        transform: translateY(20px);
        background: rgba(0,0,0,0.5);
        width: 100% !important;
        height: 100% !important;
        padding: 20px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
    }

    .work-card.touch-active .work-content {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    .work-card.touch-active .work-image {
        filter: blur(5px) brightness(0.4) !important;
    }

    .work-name {
        font-size: 2rem !important;
    }

    /* --- Hero Layout Fixes --- */
    #hero {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        height: 100vh !important;
        padding-top: 50px;
    }

    .hero-video {
        width: 85% !important;
        height: auto !important;
        position: relative !important;
    }

    .hero-tagline {
        position: relative !important;
        top: 0 !important;
        margin-top: 40px !important;
        font-size: 1.1rem !important;
        letter-spacing: 3px !important;
        text-align: center;
        width: 100%;
        color: #B42524;
    }
}
