/* =================================================================
   PIXEL CIRCUS - MAIN STYLESHEET
   Optimized and organized for maintainability
   ================================================================= */

/* =================================================================
   1. CSS CUSTOM PROPERTIES (VARIABLES)
   ================================================================= */

:root {
    /* Color Palette */
    --color-text-primary: #ffffff;
    --color-background: #1f2c34;
    --color-background-primary: var(--color-background);
    --color-background-secondary: #465362;
    --color-background-tertiary: #ED254E;
    --color-background-quaternary: #639FAB;
    --color-background-quinary: var(--color-text-primary);
    --color-text-secondary: rgba(255, 255, 255, 0.7);
    --color-primary: var(--color-background-tertiary);
    --color-accent: var(--color-background-quinary);

    /* Z-Index Layers */
    --z-index-backdrop: 999;
    --z-index-mobile-nav: 1000;
    --z-index-burger-menu: 1001;
    --z-index-header: 1003;

    /* Typography */
    --letter-spacing-default: 0.02em;
    --letter-spacing-heading: 0.04em;
    --font-kerning-default: normal;
    --line-height-body: 1.6;
    --line-height-heading: 1.2;
    --line-height-medium: 1.5;
    --line-height-relaxed: 2.0;

    /* Scroll & Media Sizing */
    --scroll-margin-top: 120px;
    --scroll-padding-top: 0px;
    --project-media-height: 40vh;
    --project-media-width: clamp(calc(40vh * 9 / 16), 40vw, calc(40vh * 16 / 9));

    /* Font Sizes - Headings */
    --font-size-h1-desktop: 100px;
    --font-size-h1-tablet: 80px;
    --font-size-h1-mobile: 45px;
    --font-size-h1-xs: 36px;
    --font-size-h2-desktop: 80px;
    --font-size-h2-tablet: 64px;
    --font-size-h2-mobile: 40px;
    --font-size-h2-xs: 32px;
    --font-size-h3-desktop: 1.8rem;
    --font-size-h3-tablet: 1.7rem;
    --font-size-h3-mobile: 1.6rem;
    --font-size-h3-xs: 1.5rem;
    --font-size-h4-desktop: 1.4rem;
    --font-size-h4-mobile: 1.1rem;

    /* Font Sizes - Body Text */
    --font-size-body-large: 1.1rem;
    --font-size-body: 1rem;
    --font-size-body-small: 0.9rem;
    --font-size-body-xs: 0.6rem;
    --font-size-body-micro: 0.5rem;

    /* Font Sizes - Testimonial Author */
    --font-size-author-desktop: 3rem;
    --font-size-author-tablet: 2.5rem;
    --font-size-author-mobile: 2rem;
    --font-size-author-xs: 1.75rem;
}

/* =================================================================
   2. GLOBAL RESET & BASE STYLES
   ================================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-wrap: break-word;
    hyphens: none;
}

/* Links */
a {
    color: var(--color-text-primary);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 1;
}

/* HTML & Body */
html, body {
    overflow-x: hidden;
    width: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

html {
    scroll-padding-top: var(--scroll-padding-top);
}

body {
    font-family: "Montserrat", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: var(--font-size-body-large);
    line-height: var(--line-height-medium);
    color: var(--color-text-primary);
    background-color: var(--color-background);
    scroll-behavior: smooth;
    min-width: 350px;
    letter-spacing: var(--letter-spacing-default);
    font-kerning: var(--font-kerning-default);
}

body.menu-open {
    overflow: hidden;
}

/* Typography - Headings */
h1 {
    font-size: var(--font-size-h1-desktop);
    line-height: var(--line-height-heading);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-heading);
}

h2 {
    font-size: var(--font-size-h2-desktop);
    line-height: var(--line-height-heading);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-heading);
    hyphens: auto;
}

h3 {
    font-size: var(--font-size-h3-desktop);
    line-height: var(--line-height-heading);
    margin-bottom: 1rem;
}

/* Typography - Paragraphs */
p {
    font-size: var(--font-size-body-large);
    line-height: var(--line-height-medium);
}

/* =================================================================
   3. HEADER & NAVIGATION
   ================================================================= */

/* Header Container */
header {
    background-color: transparent;
    padding: 30px 40px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: var(--z-index-header);
    height: 100px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    transform: translateY(0);
}

header.scrolled {
    background-color: var(--color-background);
}

header.header-tertiary-bg {
    background-color: var(--color-background-tertiary);
}

header.header-hidden {
    transform: translateY(-100%);
}

header.header-drop-shadow {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Navigation Layout */
nav {
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    height: 40px;
    gap: 2rem;
}

/* Navigation Links */
.nav-right {
    display: flex;
    list-style: none;
    gap: 2rem;
    justify-self: end;
}

nav a {
    font-weight: 700;
    font-size: var(--font-size-body-large);
    opacity: 0.8;
    text-transform: uppercase;
    margin-bottom: -16px;
}

nav a.active {
    opacity: 1;
    color: var(--color-background-quinary);
}


/* Logo */
.logo-left {
    height: 80px;
    justify-self: start;
}

nav > a:first-child {
    display: inline-block;
    height: 80px;
    width: auto;
}

/* Mobile Navigation */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    justify-self: end;
    z-index: var(--z-index-burger-menu);
    padding: 10px;
    min-height: 44px;
    min-width: 44px;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    margin-bottom: -16px;
}

.burger-menu.active {
    transform: scale(1.1);
}

.burger-icon {
    color: var(--color-text-primary);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.burger-menu:hover .burger-icon {
    opacity: 1;
}

.burger-icon .hamburger,
.burger-icon .close-icon {
    transition: opacity 0.15s ease;
}

.burger-icon .close-icon {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.burger-menu.active .hamburger {
    opacity: 0;
    transition-delay: 0s;
}

.burger-menu.active .close-icon {
    opacity: 1;
    transition-delay: 0.15s;
}

/* Mobile Menu Backdrop */
.mobile-menu-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: var(--z-index-backdrop);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    backdrop-filter: blur(2px);
}

.mobile-menu-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile Submenu */
.mobile-submenu {
    display: none;
}

/* Scroll Margins for Anchor Links */
#reel-a, #characters, #product, #motion {
    scroll-margin-top: var(--scroll-margin-top);
}

/* =================================================================
   4. MAIN CONTENT & LAYOUT
   ================================================================= */

/* Main Layout */
main {
    width: 100%;
}

/* =================================================================
   5. REEL SECTIONS
   ================================================================= */

/* Reel Header Sections */
section.reel-header {
    min-height: 45vh;
    height: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 2rem;
}

section.reel-header h1 {
    color: var(--color-text-primary);
    z-index: 2;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

section.reel-header p {
    max-width: 600px;
    color: var(--color-text-primary);
    opacity: 0.9;
    z-index: 2;
}

/* Individual Reel Background Colors */
#characters {
    background-color: var(--color-background-tertiary);
}

#product {
    background-color: var(--color-background);
}

#motion {
    background-color: var(--color-background-quaternary);
}

section.reel {
    position: relative;
    margin: 0;
    padding: 0;
}

#reel-a.sticky-parent {
    position: relative;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#reel-a .sticky-child {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

#reel-a .vimeo-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.sticky-child h3 {
    position: absolute;
    bottom: 40px;
    left: 40px;
    color: rgba(255, 255, 255, 0.70);
}

.vimeo-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
}

.vimeo-container iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

video.background-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
    object-position: center;
}

.vimeo-container.show-poster {
    background-image: var(--poster-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.vimeo-container.playing {
    background-image: none;
}

#vimeo-reel-a {
    --poster-image: url("media/img/video-thumbs/Reel_A_poster.jpg");
}

#vimeo-character {
    --poster-image: url("media/img/video-thumbs/Reel_Character_poster.jpg");
}

#vimeo-product {
    --poster-image: url("media/img/video-thumbs/Reel_Product_poster.jpg");
}

#vimeo-motion {
    --poster-image: url("media/img/video-thumbs/Reel_Motion_poster.jpg");
}

#reel-a .vimeo-container > iframe.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: auto;
    min-width: 100%;
    min-height: 100%;
    aspect-ratio: 16 / 9;
    transform: translate(-50%, -50%);
    border: 0;
    z-index: 1;
    pointer-events: none;
}

.flex-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    padding: 0 2rem;
    gap: 5rem;
}

.flex-container > div {
    flex: 1;
}

.image-panel {
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 500px;
    align-self: center;
}

.image-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* =================================================================
   6. FOOTER
   ================================================================= */

footer {
    background-color: var(--color-background-primary);
    color: var(--color-text-primary);
    padding: 3rem 2rem 1rem;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 5rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 3rem;
    margin-top: 3rem;
}

.footer-section {
    padding-left: clamp(0rem, 7rem + (100vw - 1400px) * 0.15, 7rem);
}

.footer-section h3 {
    font-size: var(--font-size-h4-desktop);
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.footer-section h4 {
    font-size: var(--font-size-h4-desktop);
    line-height: var(--line-height-heading);
    margin-bottom: 1rem;
    color: var(--color-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
    font-size: var(--font-size-body);
    line-height: var(--line-height-body);
    color: var(--color-text-primary);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.2rem;
    opacity: 0.9;
    line-height: var(--line-height-medium);
    font-size: var(--font-size-body);
}

.footer-section a {
    opacity: 0.8;
}

.footer-section a svg {
    margin-right: 0.5rem;
    vertical-align: middle;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    max-width: 1400px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 auto;
}

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

.footer-legal p {
    font-size: var(--font-size-body-xs);
}

.footer-logo img {
    height: 80px;
    opacity: 0.5;
}

/* Welcome Hero Section */
#welcome {
    background-color: var(--color-background);
    min-height: auto;
    text-align: center;
    padding: 0;
    margin: 0;
}

#welcome h1 {
    line-height: var(--line-height-heading);
    text-transform: uppercase;
}

#welcome h1 .highlight {
    color: var(--color-background-tertiary);
}

#welcome p {
    max-width: 600px;
    text-align: center;
    margin: 0 auto;
}

.welcome-text {
    text-align: center;
    padding: 14rem 0 4rem;
    margin: 0 auto;
    z-index: -1;
}

.bar-projects,
.bar-clients {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.bar-projects {
    background-color: var(--color-background-primary);
    height: 70vh;
    padding-top: 6rem;
    padding-bottom: 18rem;
}

/* Prevent text selection and highlighting in bar-projects */
.bar-projects,
.bar-projects * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.projects-container {
    width: 100%;
    position: relative;
}

.projects-track {
    display: flex;
    align-items: center;
    gap: max(40px, 3vw);
    width: max-content;
    padding: 0;
    cursor: grab;
    touch-action: pan-y;
}

.project-item {
    flex-shrink: 0;
    position: relative;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
}

.project-image {
    height: var(--project-media-height);
    width: var(--project-media-width);
    object-fit: cover;
    border-radius: 50px;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
    margin: 0 auto;
    display: block;
}

.project-video {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: var(--project-media-height);
    width: var(--project-media-width);
    object-fit: cover;
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
    /* background: red; */ /* Uncomment to see video position */
}

.project-video.playing {
    opacity: 1 !important;
}

/* Responsive video sizing to match project-image dimensions */

/* Desktop mid: 768px - 1440px */
@media (min-width: 768px) and (max-width: 1440px) {
    :root {
        --project-media-height: 50vh;
        --project-media-width: clamp(calc(50vh * 9 / 16), 40vw, calc(50vh * 16 / 9));
    }
}

/* Removed CSS hover effects - drag effects handled by JavaScript */

/* Project info overlay on hover */
.project-info {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.05));
    padding: 3rem;
    color: white;
    opacity: 0;
    transition: all 1s ease;
    border-radius: 50px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Overlay now controlled by JavaScript - removed hover trigger */

.project-title {
    font-size: 2.2vh;
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    text-align: left;
}

.project-client {
    font-size: 1.8vh;
    opacity: 0.8;
    font-weight: 400;
    text-align: left;
}

/* =================================================================
   7. CLIENTS SECTION
   ================================================================= */

.bar-clients {
    background-color: var(--color-background-tertiary);
    height: 35vh;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.clients-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.clients-track {
    display: flex;
    align-items: center;
    gap: 5rem;
    width: max-content;
    padding: 0;
    cursor: grab;
    touch-action: pan-y;
}

.client-logo {
    flex-shrink: 0;
    height: 90px;
    width: auto;
    max-width: 220px;
    opacity: 0.7;
    filter: brightness(0) invert(1);
    mix-blend-mode: normal;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.client-logo:hover {
    opacity: 1;
}

/* =================================================================
   8. TESTIMONIALS SECTION
   ================================================================= */

#testimonials {
    background-color: var(--color-background);
    min-height: 50vh;
    padding: 12rem 5rem;
    align-items: flex-start;
}

#testimonials h1 {
    text-transform: uppercase;
    text-align: center;
    width: 100%;
    margin-bottom: 3rem;
}

#testimonials h1 .highlight {
    color: var(--color-background-tertiary);
}

.testimonials-carousel {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.testimonials-container {
    overflow: hidden;
    flex: 1;
    border-radius: 8px;
    position: relative;
}

.testimonials-track {
    display: flex;
    transition: transform 0.3s ease-in-out;
}

.testimonial-item {
    flex: 0 0 50%;
    padding: 0 4rem;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    opacity: 1;
    transition: opacity 0.4s ease-in-out;
}

.testimonial-item p:first-child {
    margin-bottom: 0.5rem;
}

.carousel-nav {
    background: var(--color-background-secondary);
    color: var(--color-accent);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.carousel-nav svg {
    width: 20px;
    height: 20px;
}

#testimonials .testimonial-author {
    font-family: "Dancing Script", cursive;
    font-weight: 700;
    margin-top: 2rem;
    color: var(--color-text-primary);
    font-size: var(--font-size-author-desktop);
}

#testimonials .testimonial-author-title {
    color: var(--color-text-primary);
    opacity: 0.5;
    margin-top: 0.25rem;
}

/* =================================================================
   9. CONTACT SECTION
   ================================================================= */

#contact {
    background-color: var(--color-background-secondary);
    min-height: 55vh;
    padding: 8rem 4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#contact h1 {
    font-size: var(--font-size-h1-desktop);
    line-height: var(--line-height-heading);
    margin-bottom: 2rem;
    text-transform: none;
    letter-spacing: var(--letter-spacing-default);
}

#contact p {
    line-height: var(--line-height-body);
    max-width: 700px;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.contact-hero-content h1, #contact h1 {
    font-size: var(--font-size-h1-desktop);
}

.contact-form-section h2, .contact-info-section h2 {
    font-size: var(--font-size-h2-desktop) !important;
    margin-bottom: 1rem;
    text-transform: uppercase;
    text-align: center;
    color: var(--color-background);
}

.contact-faq h2 {
    font-size: var(--font-size-h3-desktop);
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.contact-method-content h3 {
    font-size: var(--font-size-h3-desktop);
    margin-bottom: 0.5rem;
    color: var(--color-background);
}

.contact-details {
    display: flex;
    flex-direction: row;
    gap: 4rem;
    margin-top: 2rem;
    align-items: center;
    justify-content: center;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-background-tertiary);
    border-radius: 50%;
    margin-bottom: 0.5rem;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-text-primary);
}

.contact-label {
    font-size: var(--font-size-body-large);
    color: var(--color-text-primary);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-link {
    font-size: var(--font-size-body-large);
    color: var(--color-text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.contact-link:hover {
    opacity: 0.8;
}

.contact-cta {
    margin-top: 2rem;
    text-align: center;
}

.get-in-touch-btn {
    display: inline-flex;
    padding: 16px 40px;
    background: var(--color-background-tertiary);
    color: #ffffff;
    text-decoration: none;
    font-size: var(--font-size-h4-desktop);
    font-weight: 800;
    border: none;
    border-radius: 50px;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(31, 44, 52, 0.2), 0 6px 18px rgba(237, 37, 78, 0.4);
}

.get-in-touch-btn span {
    display: block;
    position: relative;
    z-index: 1;
}

.get-in-touch-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.get-in-touch-btn:hover {
    background: #d11c42;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 28px rgba(31, 44, 52, 0.4), 0 10px 32px rgba(237, 37, 78, 0.5);
}

.get-in-touch-btn:hover::before {
    left: 100%;
}

/* =================================================================
   11. REEL CONTENT SECTIONS
   ================================================================= */

section.reel-content {
    display: grid;
    grid-template-columns: 30% 70%;
    height: 100vh;
    align-items: stretch;
    background-color: var(--color-background-secondary);
    overflow: hidden;
}

#reel-product.reel-content {
    grid-template-columns: 70% 30%;
    background: linear-gradient(to bottom,
        var(--color-background) 0%,           /* Dark blue top half */
        var(--color-background) 50%,          /* Dark blue until middle */
        var(--color-background-quaternary) 50%,  /* Light blue from middle */
        var(--color-background-quaternary) 100%  /* Light blue bottom half */
    );
}

#reel-characters.reel-content {
    background: linear-gradient(to bottom,
        var(--color-background-tertiary) 0%,   /* Red top half */
        var(--color-background-tertiary) 50%,  /* Red until middle */
        var(--color-background) 50%,           /* Dark blue from middle */
        var(--color-background) 100%           /* Dark blue bottom half */
    );
}

#reel-motion.reel-content {
    background: linear-gradient(to bottom,
        var(--color-background-quaternary) 0%,   /* Light blue top half */
        var(--color-background-quaternary) 50%,  /* Light blue until middle */
        var(--color-background) 50%,             /* Dark blue from middle */
        var(--color-background) 100%             /* Dark blue bottom half */
    );
}

#reel-product .reel-left {
    order: 2;
}

#reel-product .reel-right {
    order: 1;
    border-radius: 0 150px 150px 0;
}

.reel-left {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.reel-s1 {
    flex: 0 0 40%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background-color: var(--color-background);
    box-sizing: border-box;
    padding: 3rem 4rem 3rem 4rem;
}

#reel-characters .reel-s1 {
    background-color: var(--color-background-tertiary);
}

#reel-characters .reel-s1 {
    justify-content: flex-end;
}

#reel-characters .reel-s1 h3 {
    text-align: right;
}

#reel-characters .reel-s2 {
    justify-content: flex-end;
}

#reel-characters .reel-s2 p {
    text-align: right;
}

#reel-motion .reel-s1 {
    justify-content: flex-end;
}

#reel-motion .reel-s1 h3 {
    text-align: right;
}

#reel-motion .reel-s2 {
    justify-content: flex-end;
}

#reel-motion .reel-s2 p {
    text-align: right;
}

#reel-product .reel-s1 {
    justify-content: flex-start;
}

#reel-product .reel-s1 h3 {
    text-align: left;
}

#reel-product .reel-s2 {
    justify-content: flex-start;
}

#reel-product .reel-s2 p {
    text-align: left;
}

#reel-product .reel-s2 {
    background-color: var(--color-background-tertiary);
}

#reel-motion .reel-s1 {
    background-color: var(--color-background-quaternary);
}

#reel-motion .reel-s2 {
    background-color: var(--color-background);
}

.reel-s1 h3 {
    font-size: var(--font-size-h3-desktop);
    text-transform: uppercase;
    margin: 0;
    color: var(--color-text-primary);
    line-height: var(--line-height-heading);
    overflow-wrap: break-word;
    word-wrap: break-word;
    text-align: center;
    max-width: 650px;
}

.reel-s2 {
    flex: 0 0 60%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background-color: var(--color-background-secondary);
    box-sizing: border-box;
    padding: 3rem 4rem 3rem 4rem;
}

.reel-s2 p {
    color: var(--color-text-primary);
    opacity: 0.9;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: none;
    text-align: center;
    margin: 0;
    max-width: 650px;
}

.reel-s1 .highlight {
    color: var(--color-background-tertiary);
}

.reel-images {
    flex: 1;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    min-height: 0;
    width: 100%;
    padding: clamp(0.8rem, 1.5vw, 4rem);
    box-sizing: border-box;
}

.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(0.05rem, 0.8vw, 2rem);
    width: 100%;
    box-sizing: border-box;
    place-items: center;
}

.image-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.image-item img {
    display: block;
    width: 100%;
    height: clamp(10px, 12vw, 400px);
    object-fit: cover;
}

.reel-right {
    position: relative;
    height: 100%;
    overflow: hidden;
}

#reel-characters .reel-right {
    border-radius: 150px 0 0 0;
}

#reel-motion .reel-right {
    border-radius: 150px 0 0 150px;
}

.reel-right .vimeo-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.reel-right .vimeo-container > iframe.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: auto;
    min-width: 100%;
    min-height: 100%;
    aspect-ratio: 16 / 9;
    transform: translate(-50%, -50%);
    border: 0;
    z-index: 1;
    pointer-events: none;
}

/* =================================================================
   10. FAQ SECTION
   ================================================================= */

#faq {
    background-color: var(--color-background-quinary);
    min-height: 35vh;
    padding: 8rem 4rem;
    text-align: center;
}

#faq h1 {
    text-transform: none;
    letter-spacing: var(--letter-spacing-default);
    margin-bottom: 3rem;
    color: var(--color-background);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

#faq h1 .highlight {
    color: var(--color-background-tertiary);
}

#faq > p {
    max-width: 700px;
    color: var(--color-background);
    opacity: 0.9;
    margin-bottom: 3rem;
    margin-left: auto;
    margin-right: auto;
}

#faq > p a {
    color: var(--color-background);
    text-decoration: underline;
    font-weight: bold;
}

#faq > p a:hover {
    opacity: 0.8;
}

.contact-page-link {
    color: #ED254E !important;
}

.faq-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.faq-navigation a {
    color: var(--color-background);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-body-large);
    transition: opacity 0.3s ease;
}

.faq-navigation a:hover {
    opacity: 0.8;
}

.faq-navigation a.active {
    color: var(--color-background-tertiary);
    font-weight: 700;
}

.faq-container {
    display: flex;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    opacity: 1 !important;
    visibility: visible !important;
}

.faq-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    opacity: 1 !important;
    visibility: visible !important;
    flex: 1;
}

.faq-item {
    background-color: rgba(31, 44, 52, 0.05);
    border-radius: 12px;
    padding: 1.3rem;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 0.75rem;
    opacity: 1 !important;
    visibility: visible !important;
}

.faq-item:hover {
    background-color: rgba(31, 44, 52, 0.08);
    transform: translateY(-2px);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-height: 45px;
}

.faq-question span {
    font-size: var(--font-size-body-large);
    font-weight: 600;
    color: var(--color-background);
    text-align: left;
    flex: 1;
    line-height: var(--line-height-body);
}

.faq-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    color: var(--color-background);
    pointer-events: auto;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.faq-toggle:hover {
    transform: scale(1.1);
}

.faq-icon {
    color: var(--color-background);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
    opacity: 0;
    margin-top: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    opacity: 1;
    margin-top: 1rem;
}

.faq-answer p {
    color: var(--color-background);
    opacity: 0.9;
    text-align: left;
    margin-bottom: 1rem;
}

/* =================================================================
   13. CONTACT PAGE SECTIONS
   ================================================================= */

.contact-hero {
    background: linear-gradient(135deg, var(--color-background) 0%, var(--color-background-secondary) 100%);
    min-height: 35vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    padding: 6rem 6rem 12rem 6rem;
    position: relative;
    overflow: hidden;
}

.hero-background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.6;
}

.contact-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.contact-hero-content h1 {
    margin-bottom: 1.5rem;
    text-align: center;
    padding: 8rem 0 0 0;
    line-height: var(--line-height-heading);
    text-transform: uppercase;
}

.contact-hero-content p,
.about-hero-content .about-subtitle {
    margin-top: 0;
    text-align: center;
    font-size: var(--font-size-h4-desktop);
    line-height: var(--line-height-body);
    max-width: 1000px;
    margin: 0 auto;
    opacity: 0.9;
    font-weight: 400;
}

.contact-hero-content h1 .highlight {
    color: var(--color-background-tertiary);
}

.contact-main {
    padding: 8rem 4rem;
    background-color: var(--color-background-quinary);
}

.contact-main h2 {
    font-size: var(--font-size-h1-desktop);
    line-height: var(--line-height-heading);
    margin-bottom: 3rem;
    text-transform: none !important;
    letter-spacing: var(--letter-spacing-default);
}

.contact-map {
    background-color: var(--color-background);
    width: 100%;
    margin: 0;
    padding: 0;
}

.contact-map-wrapper {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
    background-color: var(--color-background);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    clip-path: inset(0);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.contact-map-canvas {
    width: 100%;
    height: 100%;
    background-color: var(--color-background);
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.contact-map .leaflet-container {
    background-color: var(--color-background);
    will-change: transform;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.contact-map .leaflet-tile-pane {
    filter: grayscale(0.85) saturate(0.85) contrast(1.05) brightness(0.9);
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
}

.contact-map .leaflet-pane {
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
}

.contact-map .leaflet-control-attribution {
    background: rgba(31, 44, 52, 0.55);
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-body-micro);
    padding: 2px 6px;
    border-radius: 6px;
}

.contact-map .leaflet-control-attribution a {
    color: rgba(255, 255, 255, 0.7);
}

.contact-map-marker {
    width: 56px;
    height: 64px;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.contact-map-marker:hover {
    transform: translateY(-2px);
}

.contact-map-marker__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-background-tertiary);
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.02em;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.contact-map-marker__icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--color-text-primary);
    stroke-width: 2;
}

.contact-map-marker::after {
    content: "";
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 16px;
    height: 16px;
    background: var(--color-background-tertiary);
    transform: translateX(-50%) rotate(45deg);
    border-radius: 3px;
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact-form-section p, .contact-info-section p {
    margin-bottom: 2rem;
    opacity: 0.9;
    text-align: center;
    color: var(--color-background);
}


.contact-info-section {
    background-color: var(--color-text-primary);
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    max-width: 100%;
}


.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-row:last-of-type {
    grid-template-columns: 1fr 1fr 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group.message-group {
    grid-column: 1 / -1;
}

.form-group.attachments-group {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: var(--font-size-body-large);
    font-weight: 600;
    color: var(--color-background);
}

.form-group input, .form-group select, .form-group textarea {
    padding: 1rem;
    border: transparent;
    border-radius: 4px;
    background-color: rgba(31, 44, 52, 0.05);
    color: var(--color-background);
    font-size: var(--font-size-body-large);
    transition: all 0.3s ease;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    background-color: rgba(31, 44, 52, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(31, 44, 52, 0.1);
}

.form-group select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%231f2c34' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5em;
    padding-right: 2.5rem;
}

.form-group select option {
    background-color: var(--color-background-quinary);
    color: var(--color-background);
    padding: 0.75rem;
    font-size: var(--font-size-body-large);
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: var(--color-background);
    opacity: 0.6;
}

.form-group small {
    font-size: var(--font-size-body-xs);
    opacity: 0.7;
    margin-top: 0.25rem;
    color: var(--color-background);
}

.submit-btn {
    background-color: var(--color-background-tertiary);
    color: var(--color-background-quinary);
    border: none;
    padding: 1.25rem 3rem;
    font-size: var(--font-size-body-large);
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    align-self: center;
    min-width: 200px;
    margin-top: 1rem;
}

.submit-btn:hover {
    background-color: var(--color-background-tertiary);
    filter: brightness(0.9);
    transform: translateY(-2px);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    padding-top: 3rem;
}

.contact-method {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-direction: column;
}

.contact-method-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-background-tertiary);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-method-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    opacity: 1;
}

.contact-method-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-text-primary);
}

.contact-method-content {
    text-align: center;
}

.contact-method-content a {
    color: var(--color-background);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-body-large);
    transition: opacity 0.3s ease;
}

.contact-method-content p a {
    color: var(--color-background);
}

.contact-method-content a:hover {
    opacity: 0.8;
}

.contact-method-content p {
    font-size: var(--font-size-body-xs);
    opacity: 0.8;
    margin-top: 0.25rem;
    color: var(--color-background);
    text-align: center;
}

.contact-faq {
    background-color: var(--color-background-secondary);
    padding: 6rem 4rem;
    text-align: center;
}

.contact-faq .faq-item {
    background-color: var(--color-background);
    border-radius: 12px;
    padding: 1.3rem;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 0.75rem;
    opacity: 1 !important;
}

.contact-faq .faq-item:hover {
    background-color: var(--color-background);
    opacity: 0.8;
    transform: translateY(-2px);
}

.contact-faq .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-height: 45px;
}

.contact-faq .faq-question span {
    font-size: var(--font-size-body-large);
    font-weight: 600;
    color: var(--color-text-primary);
    text-align: left;
    flex: 1;
    line-height: var(--line-height-body);
}

.contact-faq .faq-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    color: var(--color-text-primary);
}

.contact-faq .faq-toggle:hover {
    transform: scale(1.1);
}

.contact-faq .faq-icon {
    color: var(--color-text-primary);
    transition: transform 0.3s ease;
}

.contact-faq .faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.contact-faq .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
    opacity: 0;
    margin-top: 0;
}

.contact-faq .faq-item.active .faq-answer {
    max-height: 500px;
    opacity: 1;
    margin-top: 1rem;
}

.contact-faq .faq-answer p {
    line-height: var(--line-height-body);
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

/* =================================================================
   12. ABOUT PAGE SECTIONS
   ================================================================= */

.about-hero {
    min-height: 35vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    padding: 6rem 6rem 12rem 6rem;
    background: linear-gradient(135deg, var(--color-background) 0%, var(--color-background-secondary) 100%);
}

.about-hero-content {
    position: relative;
    width: 100%;
}

.about-hero-content h1 {
    margin-bottom: 1rem;
    text-align: center;
    padding: 8rem 0 0 0;
    font-size: var(--font-size-h1-desktop);
    line-height: var(--line-height-heading);
    text-transform: uppercase;
}

.about-hero-content h1 .highlight {
    color: var(--color-background-tertiary);
}

.about-story {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 0;
    height: 100vh;
    align-items: stretch;
    overflow: hidden;
    background-color: var(--color-background);
    margin-bottom: 8rem;
}


.about-ambition {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 0;
    height: 100vh;
    align-items: stretch;
    overflow: hidden;
    background-color: var(--color-background-primary);
    margin-top: 8rem;
}

.about-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
}

.about-story .about-text {
    text-align: right;
    overflow-x: visible;
}

.about-story .about-text h1 {
    white-space: nowrap;
}

.about-story .about-text p {
    text-align: right;
    align-self: flex-end;
}

.about-text {
    display: flex;
    padding: 0 8rem 0 8rem;
    flex-direction: column;
    gap: 2rem;
    margin-top: 8rem;
    margin-bottom: 8rem;
}



.about-text p {
    margin-bottom: 0;
    line-height: var(--line-height-body);
    max-width: 500px;
    white-space: normal;
}

.about-text p > br {
    display: none;
}


/* Text wrapping */


.about-text .highlight {
    color: var(--color-background-tertiary);
}

.about-image {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-story .about-image {
    border-radius: 0 0 0 150px;
}

.about-ambition .about-image {
    border-radius: 0 150px 0 0;
}

.about-ambition .about-text h1 {
    white-space: normal;
}

.workflow-section {
    background-color: var(--color-background-secondary);
    padding-top: 10rem;
}

.workflow-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.workflow-container p {
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.workflow-container .highlight {
    color: var(--color-background-tertiary);
}


.workflow-intro {
    line-height: var(--line-height-body);
    padding-bottom: 6rem;
    opacity: 0.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.workflow-step {
    background-color: var(--color-background);
    padding: 2rem;
    border-radius: 12px;
    text-align: left;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-number {
    font-size: var(--font-size-h2-desktop);
    font-weight: 900;
    color: var(--color-background-tertiary);
    margin-bottom: 1rem;
    line-height: var(--line-height-body);
}

.workflow-step h3 {
    font-size: var(--font-size-h3-desktop);
    line-height: var(--line-height-heading);
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.workflow-step p {
    line-height: var(--line-height-body);
    color: var(--color-text-primary);
    opacity: 0.9;
}

.values-section {
    padding: 6rem 2rem;
    background-color: var(--color-background);
}

.values-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.value-item {
    padding: 2rem;
    background-color: var(--color-background-secondary);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
}

.value-item h3 {
    font-size: var(--font-size-h3-desktop);
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.value-item p {
    line-height: var(--line-height-body);
    color: var(--color-text-primary);
    opacity: 0.9;
}

.footer-bottom p {
    font-size: var(--font-size-body-xs);
    line-height: var(--line-height-body);
    text-align: left;
    color: var(--color-text-primary);
    opacity: 0.6;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--color-background-tertiary);
    color: var(--color-text-primary);
    border: none;
    border-radius: 50%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top.over-tertiary-bg {
    background-color: var(--color-background-primary);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* =================================================================
   14. INTERACTIVE COMPONENTS
   ================================================================= */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-background);
    border-top: 2px solid var(--color-background-tertiary);
    padding: 1.5rem 2rem;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-text h3 {
    font-size: var(--font-size-h3-desktop);
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
    text-transform: uppercase;
}

.cookie-banner-text p {
    color: var(--color-text-primary);
    opacity: 0.9;
    line-height: var(--line-height-body);
    margin: 0;
}

.cookie-banner-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    font-size: var(--font-size-body-large);
    font-weight: 600;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    min-width: 120px;
    font-family: inherit;
}

.cookie-btn-accept {
    background-color: var(--color-background-tertiary);
    color: var(--color-text-primary);
}

.cookie-btn-accept:hover {
    background-color: var(--color-background-tertiary);
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.cookie-btn-reject {
    background-color: transparent;
    color: var(--color-text-primary);
    border: 2px solid var(--color-text-primary);
    opacity: 0.8;
}

.cookie-btn-reject:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
}

.cookie-btn-preferences {
    background-color: var(--color-background-secondary);
    color: var(--color-text-primary);
}

.cookie-btn-preferences:hover {
    background-color: var(--color-background-secondary);
    filter: brightness(1.1);
}

.cookie-btn-secondary {
    background-color: transparent;
    color: var(--color-text-primary);
    border: 2px solid var(--color-text-primary);
}

.cookie-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.cookie-preferences-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-preferences-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-preferences-content {
    background-color: var(--color-background);
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cookie-preferences-modal.show .cookie-preferences-content {
    transform: scale(1);
}

.cookie-preferences-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-preferences-header h2 {
    font-size: var(--font-size-h2-desktop);
    margin: 0;
    text-transform: uppercase;
    color: var(--color-text-primary);
}

.cookie-close {
    background: none;
    border: none;
    color: var(--color-text-primary);
    font-size: var(--font-size-h3-desktop);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.cookie-close:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
}

.cookie-preferences-body {
    padding: 2rem;
}

.cookie-description {
    color: var(--color-text-primary);
    opacity: 0.9;
    line-height: var(--line-height-body);
    margin-bottom: 2rem;
}

.cookie-category {
    margin-bottom: 2rem;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.cookie-category-header h3 {
    font-size: var(--font-size-h3-desktop);
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}

.cookie-category-header p {
    color: var(--color-text-primary);
    opacity: 0.8;
    line-height: var(--line-height-body);
    margin: 0;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-background-secondary);
    transition: 0.3s;
    border-radius: 34px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: var(--color-text-primary);
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: var(--color-background-tertiary);
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(26px);
}

.cookie-preferences-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}


/* Preserved non-media at-rules */











/* =================================================================
   15. RESPONSIVE DESIGN
   =================================================================
   Breakpoints (4 categories):
   - Desktop: min-width 1441px
   - Tablet:  min-width 768px and max-width 1440px
   - Mobile:  min-width 481px and max-width 768px
   - XS:      max-width 480px

   Note: 768px matches both Mobile and Tablet. The Tablet query is declared
   after Mobile so Tablet rules win at exactly 768px.
   ================================================================= */

/* Tablet and up */
@media (min-width: 768px) {
    .welcome-text br {
        display: none;
    }

    .footer-legal {
        padding-left: 40px;
    }
}

/* Desktop (1441px and up) */
@media (min-width: 1441px) {
    #reel-product .reel-right {
        border-radius: 0 150px 0 0;
    }

    .about-text h1 {
        font-size: var(--font-size-h1-tablet);
        margin-bottom: 1rem;
        text-transform: uppercase;
        line-height: var(--line-height-heading);
    }

    .about-ambition .about-container h1 {
        white-space: nowrap;
    }

    .workflow-container h1 {
        font-size: var(--font-size-h1-tablet);
        line-height: var(--line-height-heading);
        margin-bottom: 1rem;
        text-transform: uppercase;
    }

    .values-container h1 {
        font-size: var(--font-size-h1-tablet);
        line-height: var(--line-height-body);
        margin-bottom: 4rem;
        text-transform: uppercase;
    }
}

/* Tablet and down */
@media (max-width: 1440px) {
    .workflow-intro {
        padding-bottom: 4rem;
    }

    #contact {
        padding: 8rem 2rem;
        min-height: 45vh;
    }

    .contact-main {
        padding: 10rem 4rem;
    }

    section.reel-content {
        display: flex;
        flex-direction: column;
        min-height: 175vh;
    }

    .reel-left {
        order: 1;
    }

    .reel-right {
        order: -1;
    }

    .reel-left,
    .reel-right {
        flex: 1 1 auto;
        height: 100%;
    }

    #reel-product.reel-content {
        background: var(--color-background);
    }

    #reel-motion.reel-content {
        background: var(--color-background-quaternary);
    }

    #reel-characters.reel-content {
        background: var(--color-background-tertiary);
    }

    .testimonial-item {
        flex: 0 0 100%;
        padding: 0 2rem;
    }

    .contact-methods {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section {
        padding-left: 0;
    }

    .about-story, .about-ambition {
        display: flex;
        flex-direction: column;
        height: 150vh;
        margin: 0;
    }

    .about-ambition {
        margin-bottom: 8rem;
    }

    .about-ambition .about-image {
        order: 1;
    }

    .about-ambition .about-container {
        order: -1;
    }
}

/* Mobile (481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    header {
        padding: 20px 20px;
        height: 80px;
    }

    .logo-left {
        height: 60px;
        z-index: var(--z-index-header);
        position: relative;
    }

    nav > a:first-child {
        height: 60px;
    }

    .clients-track {
        gap: 4rem;
        padding: 0 0.5rem;
    }

    .client-logo {
        height: 75px;
        max-width: 180px;
    }

    #testimonials {
        padding: 6rem 2rem 8rem 2rem;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
    }

    .carousel-nav svg {
        width: 16px;
        height: 16px;
    }

    .image-panel {
        max-width: 400px;
    }


    #reel-motion .reel-left {
        height: 100%;
    }

    #reel-motion .reel-right {
        height: 100%;
    }

    .reel-images {
        gap: 1rem;
    }

    .image-grid {
        gap: 1rem;
    }

    .image-item img {
        height: 250px;
    }

    .reel-s2 {
        min-height: 1000px !important;
    }

    .reel-s1 h3 {
        max-width: 500px;
    }

    .reel-s2 p {
        max-width: 500px;
    }

}

/* Small screens (768px and down) */
@media (max-width: 768px) {
    :root {
        --scroll-padding-top: 100px;
        --scroll-margin-top: 80px;
        --project-media-height: 60vh;
        --project-media-width: clamp(calc(60vh * 9 / 16), 40vw, calc(60vh * 16 / 9));
        --letter-spacing-heading: 0.035em;
    }

    p {
        font-size: var(--font-size-body);
    }

    nav {
        grid-template-columns: auto auto;
        gap: 1rem;
    }

    .burger-menu {
        display: flex;
        min-height: 48px;
        min-width: 48px;
    }

    .mobile-menu-backdrop {
        display: block;
    }

    .nav-right {
        position: fixed;
        top: -100vh;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-background);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 100px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        z-index: var(--z-index-mobile-nav);
        transform: translateY(-100%);
    }

    .nav-right.active {
        top: 0;
        transform: translateY(0);
    }

    .nav-right li {
        margin: 0;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
        transition-delay: 0.1s;
    }

    .nav-right.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-right.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-right.active li:nth-child(2) {
        transition-delay: 0.15s;
    }

    .nav-right.active li:nth-child(3) {
        transition-delay: 0.2s;
    }

    .nav-right.active li:nth-child(4) {
        transition-delay: 0.25s;
    }

    .nav-right.active li:nth-child(5) {
        transition-delay: 0.3s;
    }

    .nav-right.active li:nth-child(6) {
        transition-delay: 0.35s;
    }

    .nav-right.active li:nth-child(7) {
        transition-delay: 0.4s;
    }

    .nav-right a {
        font-size: var(--font-size-body-large);
        padding: 1rem 2rem;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        text-align: center;
    }

    .mobile-submenu {
        display: none;
        list-style: none;
        padding: 0;
        margin: 0;
        width: 100%;
    }

    .nav-right.active .mobile-submenu {
        display: block;
    }

    .mobile-submenu li {
        margin: 0;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
        margin-top: 0.5rem;
    }

    .nav-right.active .mobile-submenu li:nth-child(1) {
        transition-delay: 0.15s;
    }

    .nav-right.active .mobile-submenu li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-right.active .mobile-submenu li:nth-child(3) {
        transition-delay: 0.25s;
    }

    .nav-right.active .mobile-submenu li:nth-child(4) {
        transition-delay: 0.3s;
    }

    .nav-right.active .mobile-submenu li {
        opacity: 1;
        transform: translateY(0);
    }

    .mobile-submenu a {
        font-size: var(--font-size-body-small);
        padding: 0.5rem 1rem;
        font-weight: 400;
        color: var(--color-text-secondary);
        opacity: 0.3;
        transition: opacity 0.3s ease;
    }

    .mobile-submenu a:hover {
        color: var(--color-primary);
        opacity: 1;
    }

    h1 {
        font-size: var(--font-size-h1-mobile);
    }

    h2 {
        font-size: var(--font-size-h2-mobile);
    }

    .about-text h1, .about-hero-content h1, .workflow-container h1, .values-container h1 {
        font-size: var(--font-size-h1-mobile);
    }

    .about-ambition .about-text h1 {
        white-space: nowrap;
    }

    .contact-hero-content h1, #contact h1 {
        font-size: var(--font-size-h1-mobile);
    }

    .contact-form-section h2, .contact-info-section h2 {
        font-size: var(--font-size-h2-mobile) !important;
    }

    .contact-faq h2 {
        font-size: var(--font-size-h3-mobile);
    }

    .contact-method-content h3 {
        font-size: var(--font-size-h3-mobile);
    }

    section.reel-header h1 {
        font-size: var(--font-size-h1-mobile);
    }

    #testimonials .testimonial-author {
        font-size: var(--font-size-author-mobile);
    }

    .testimonial-item {
        padding: 0 1rem;
    }

    .workflow-container {
        max-width: 400px;
    }

    section.reel-content {
        padding: 0;
        overflow: visible;
    }

    .reel-right {
        margin-bottom: 1rem;
        margin-left: calc(50% - 50vw);
        margin-right: 2rem;
        width: 100vw;
    }

    #reel-motion.reel-content {
        min-height: 175vh;
    }

    #reel-characters .reel-right {
        margin-left: 2rem;
        margin-right: 0;
        border-radius: 150px 0 0 150px;
    }

    #reel-motion .reel-right {
        margin-left: 2rem;
        margin-right: 0;
    }

    #reel-product .reel-right {
        margin-right: 2rem !important;
        margin-left: 0 !important;
        width: auto !important;
    }

    .image-grid {
        grid-template-columns: 1fr 1fr;
        width: 100%;
        max-width: 100%;
    }

    .image-item img {
        width: 100%;
        max-width: 100%;
        border-radius: 10px;
    }

    .testimonials-carousel {
        gap: 0.5rem;
    }

    .contact-methods {
        gap: 1.5rem;
        margin-bottom: 0;
    }

    .contact-form {
        gap: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-row:last-of-type {
        grid-template-columns: 1fr;
    }

    .contact-container {
        gap: 2rem;
    }

    .contact-faq .faq-item {
        padding: 1.5rem;
    }

    .contact-info-section {
        padding: 3rem 0;
    }

    .hero-background-video {
        opacity: 0.2;
    }

    .contact-hero {
        padding: 3rem 2rem 10rem;
        min-height: 35vh;
    }

    .contact-hero-content p,
    .about-hero-content .about-subtitle {
        font-size: var(--font-size-body);
    }

    .contact-main {
        padding: 8rem 4rem;
    }

    .contact-map-wrapper {
        background-color: var(--color-background);
    }

    .contact-map .leaflet-tile-pane {
        filter: none;
    }

    .contact-map .leaflet-tile {
        outline: 1px solid transparent;
        backface-visibility: hidden;
    }

    .contact-method {
        flex-direction: column;
        text-align: center;
    }

    .contact-method-content p {
        text-align: center;
    }

    .contact-faq {
        padding: 4rem 2rem;
    }

    .faq-grid {
        gap: 1.5rem;
    }

    .about-story .about-image {
        margin-left: 2rem;
        border-radius: 150px 0 0 150px;
    }

    .about-ambition .about-image {
        margin-right: 2rem;
        border-radius: 0 150px 150px 0;
    }

    .about-image {
        min-height: var(--project-media-height);
        height: var(--project-media-height);
    }

    .workflow-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .about-hero {
        padding: 3rem 3rem 10rem;
        min-height: 35vh;
    }


    .about-story, .about-ambition, .values-section {
        padding: 0;
    }

    .about-story,
    .about-ambition {
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .about-text {
        padding: 0 3rem;
    }

    .about-story .about-text {
        text-align: right;
    }

    .about-story .about-text p {
        text-align: right;
        align-self: flex-end;
    }

    .about-container {
        min-height: auto;
        gap: 2rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-legal {
        text-align: center;
    }

    .footer-legal p {
        text-align: center !important;
    }

    section {
        padding: 2rem 1rem;
    }

    .welcome-text {
        padding: 10rem 0 4rem !important;
    }

    .bar-projects {
        height: 90vh;
        padding-bottom: 14rem;
    }

    #faq {
        padding: 8rem 2rem;
    }

    .faq-container {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        flex-direction: column;
    }

    .faq-item {
        padding: 1rem;
    }

    .faq-question span {
        font-size: var(--font-size-body-large);
    }

    .workflow-step {
        padding: 1.5rem;
    }

    .step-number {
        font-size: var(--font-size-h3-desktop);
    }

    footer {
        padding: 2rem 2rem 1rem;
    }

    section.reel-header {
        padding: 5rem 3rem;
    }

    .reel-images img {
        cursor: pointer;
        transition: transform 0.2s ease;
    }

    .reel-images img:active {
        transform: scale(0.98);
    }

    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .back-to-top svg {
        width: 20px;
        height: 20px;
    }

    .cookie-banner {
        padding: 1.5rem 1rem;
    }

    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }

    .cookie-banner-text {
        min-width: auto;
    }

    .cookie-banner-actions {
        flex-direction: column;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
    }

    .cookie-preferences-modal {
        padding: 1rem;
    }

    .cookie-preferences-content {
        max-height: 95vh;
    }

    .cookie-preferences-header {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }

    .cookie-preferences-header h2 {
        font-size: var(--font-size-h3-desktop);
    }

    .cookie-preferences-body {
        padding: 1.5rem;
    }

    .cookie-category-header {
        flex-direction: column;
        gap: 1rem;
    }

    .cookie-preferences-footer {
        flex-direction: column;
    }

    .cookie-preferences-footer .cookie-btn {
        width: 100%;
    }

    .reel-s1,
    .reel-s2 {
        padding: 3rem 2rem 3rem 2rem;
    }
}

/* Tablet (768px to 1440px) */
@media (min-width: 768px) and (max-width: 1440px) {
    .workflow-container {
        max-width: 800px;
    }


    #reel-motion.reel-content {
        min-height: 175vh;
    }

    #reel-motion .reel-left {
        height: 100%;
    }

    #reel-motion .reel-right {
        height: 100%;
    }

    .reel-right {
        margin-right: 4rem;
    }

    .reel-s1 {
        padding: 3rem 4rem 3rem 4rem;
        flex: 0 1 40%;
    }

    .reel-s2 {
        padding: 3rem 4rem 3rem 4rem;
        flex: 0 1 60%;
    }

    #reel-characters .reel-right {
        margin-left: 4rem;
        margin-right: 0;
        border-radius: 150px 0 0 150px !important;
    }

    #reel-motion .reel-right {
        margin-left: 4rem;
        margin-right: 0;
    }

    h1 {
        font-size: var(--font-size-h1-tablet);
    }

    h2 {
        font-size: var(--font-size-h2-tablet);
    }

    section.reel-header h1 {
        font-size: var(--font-size-h1-tablet);
    }

    #testimonials .testimonial-author {
        font-size: var(--font-size-author-tablet);
    }

    .about-text h1, .about-hero-content h1, .workflow-container h1, .values-container h1 {
        font-size: var(--font-size-h1-tablet) !important;
    }

    .about-ambition .about-text h1 {
        white-space: nowrap;
    }

    .contact-hero-content h1, #contact h1 {
        font-size: var(--font-size-h1-tablet);
    }

    .contact-form-section h2, .contact-info-section h2 {
        font-size: var(--font-size-h2-tablet) !important;
    }

    .contact-faq h2 {
        font-size: var(--font-size-h3-tablet);
    }

    .contact-method-content h3 {
        font-size: var(--font-size-h3-tablet);
    }

    .bar-projects {
        height: 80vh;
    }

    #testimonials {
        padding: 12rem 5rem 8rem 5rem;
    }

    .testimonials-carousel {
        gap: 1rem;
    }

    .faq-container {
        flex-direction: column;
        gap: 0.75rem;
        max-width: 700px !important;
    }

    .about-story .about-image {
        margin-left: 6rem;
        border-radius: 150px 0 0 150px;
    }

    .about-ambition .about-image {
        margin-right: 6rem;
        border-radius: 0 150px 150px 0;
    }

    .about-image {
        min-height: 300px;
    }

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

    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .reel-s1 h3 {
        max-width: 650px;
    }

    .reel-s2 p {
        max-width: 650px;
    }
}

/* XS (480px and below) */
@media (max-width: 480px) {
    .contact-info-section p br {
        display: none;
    }

    :root {
        --scroll-margin-top: 0px;
        --letter-spacing-heading: 0.03em;
    }

    p {
        font-size: var(--font-size-body-small);
    }

    .contact-hero-content p,
    .about-hero-content .about-subtitle {
        font-size: var(--font-size-body-small);
    }

    .footer-legal p {
        font-size: var(--font-size-body-micro);
    }

    .contact-info-section p {
        font-size: var(--font-size-body-small);
    }

    header {
        padding: 15px 15px;
        height: 70px;
    }

    .logo-left {
        height: 50px;
        z-index: var(--z-index-header);
        position: relative;
    }

    nav > a:first-child {
        height: 50px;
    }

    .clients-track {
        gap: 3rem;
        padding: 0 0.25rem;
    }

    .client-logo {
        height: 70px;
        max-width: 160px;
    }

    #testimonials {
        padding: 6rem 1rem 8rem 1rem;
    }

    .carousel-nav {
        width: 35px;
        height: 35px;
    }

    .carousel-nav svg {
        width: 14px;
        height: 14px;
    }

    .image-panel {
        max-width: 300px;
    }

    h1 {
        font-size: var(--font-size-h1-xs);
    }

    h2 {
        font-size: var(--font-size-h2-xs);
    }

    #testimonials .testimonial-author {
        font-size: var(--font-size-author-xs);
    }

    section.reel-header h1 {
        font-size: var(--font-size-h1-xs);
    }

    .contact-hero-content h1, #contact h1 {
        font-size: var(--font-size-h1-xs);
    }

    .contact-form-section h2, .contact-info-section h2 {
        font-size: var(--font-size-h2-xs) !important;
    }

    .contact-faq h2 {
        font-size: var(--font-size-h3-xs);
    }

    .contact-method-content h3 {
        font-size: var(--font-size-h3-xs);
    }

    .reel-content {
        height: 150vh !important;
    }

    .reel-right {
        margin-right: calc(50% - 50vw);
        width: 100vw;
        height: 90%;
    }

    .reel-s1 h3 {
        font-size: var(--font-size-h3-tablet);
    }

    .reel-images {
        gap: 0.75rem;
    }

    .image-grid {
        gap: 0.75rem;
    }

    .image-item img {
        height: 220px;
    }

    .about-text h1, .about-hero-content h1, .workflow-container h1, .values-container h1 {
        font-size: var(--font-size-h1-xs) !important;
    }

    #faq h1 {
        margin-left: 1.5rem;
        margin-right: 1.5rem;
    }

    h3 {
        font-size: var(--font-size-h3-xs);
    }

    .reel-s2 p {
        line-height: var(--line-height-medium);
    }

    .clients-container {
        padding: 0;
    }

    section.reel-header {
        min-height: 35vh;
        height: auto;
    }

    section.reel-header p {
        opacity: 0.9;
    }
}

/* Landscape small-height overrides */
@media (max-height: 768px) and (orientation: landscape) {

    .project-title {
        font-size: clamp(0.95rem, 2.4vw, 1.2rem);
    }

    .project-client {
        font-size: clamp(0.85rem, 2.1vw, 1.05rem);
    }

    .reel-content {
        min-height: 1100px !important;
    }

    .reel-left {
        min-height: 700px !important;
    }

    .reel-right {
        min-height: 400px !important;
    }

    .reel-right .vimeo-container {
        position: absolute;
        inset: 0;
        height: 100%;
        width: 100%;
    }

    .nav-right {
        padding-top: 0;
        padding-bottom: 0;
        justify-content: center;
    }

    .nav-right a,
    .mobile-submenu a {
        line-height: 1.1;
    }

    .nav-right a {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        min-height: 32px;
    }

    .nav-right > li + li {
        margin-top: 0.1rem;
    }

    .mobile-submenu li {
        margin-top: 0.6rem;
    }

    .mobile-submenu a {
        padding: 0.2rem 0.8rem;
    }

    .about-image {
        min-height: 90vh;
        height: 90vh;
    }

    .bar-projects {
        padding-top: 8rem;
    }

    .bar-clients {
        min-height: 300px;
    }

    .clients-container {
        height: 100%;
        display: flex;
        align-items: center;
    }

    .clients-track {
        height: 45%;
    }

    .about-ambition, .about-story {
        height: auto;
    }
}
