/* --- PREMIUM BASE --- */

body {
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    font-size: var(--fs-body);
    line-height: 1.5; /* Readability standard */
    background-color: #231F20;
    color: #e5e5e5;
    overflow-x: hidden;
    /* Fix "going out of page" */
}

html {
    overflow-x: hidden;
    /* Fix "going out of page" */
}

/* Cinematic Noise Overlay */
/* bg-noise: removed (remote texture fetch stripped for performance) */

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4,
h5,
h6,
.font-heading,
.btn,
.nav-link,
button,
label,
input,
textarea {
    font-family: 'Barlow Condensed', Helvetica, Arial, sans-serif;
}

h1 { font-size: var(--fs-h1); line-height: 1.1; }
h2 { font-size: var(--fs-h2); line-height: 1.2; }
h3 { font-size: var(--fs-h3); line-height: 1.3; }
h4 { font-size: var(--fs-h4); line-height: 1.4; }

/* Hero headline — Oswald (Tungsten-style condensed industrial) */
.font-hero {
    font-family: 'Oswald', 'Agency FB', 'Barlow Condensed', Impact, Helvetica, Arial, sans-serif !important;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.text-gradient-gold,
.gold-gradient-text {
    background: none;
    background-clip: initial;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: currentColor;
    color: #EFBF04;
    animation: none;
    text-shadow: none;
}

/* --- ACCESSIBILITY & UX --- */
/* Target sizes for touch */
button, 
.btn,
.nav-social-link,
.menu-btn {
    min-width: 44px;
    min-height: 44px;
    /* Ensure flex/grid centers contents */
}

/* Base text readability */
p:not([class*="max-w"]) {
    max-width: 65ch;
}

/* Base Image Optimization for CLS */
img {
    max-width: 100%;
    height: auto;
    /* By default, try to preserve space if aspect-ratio is not given inline */
}

/* --- GLASSMORPHISM --- */
.glass-header {
    background: rgba(5, 5, 5, 0.6);
    
    
    border-bottom: 1px solid rgba(239, 191, 4, 0.12);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.04);
    /* Subtle fill */
    
    /* Heavy Blur */
    
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    /* Top light highlight */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.glass-panel:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(239, 191, 4, 0.35);
    /* Gold tint on hover */
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 20px rgba(239, 191, 4, 0.15);
    /* Glow */
}

/* --- UTILITIES --- */

/* --- TIMELINE --- */
.timeline-container {
    position: relative;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(239, 191, 4, 0.25);
    transform: translateX(-50%);
}

.timeline-progress {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom, #EFBF04, #EFBF04);
    box-shadow: 0 0 15px #EFBF04;
    transition: height 0.1s linear;
}

/* --- ANIMATIONS --- */
/* --- SIDE MENU & OVERLAY --- */
.menu-btn {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(239, 191, 4, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    
    transition: all 0.3s ease;
    z-index: 101;
    /* Above overlay */
    display: flex;
    opacity: 1;
    visibility: visible;
}

.menu-btn:hover {
    border-color: #EFBF04;
    transform: scale(1.05);
}

.menu-icon {
    width: 24px;
    height: 14px;
    position: relative;
}

.menu-icon span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.menu-icon span:nth-child(1) {
    top: 0;
}

.menu-icon span:nth-child(2) {
    top: 6px;
    width: 70%;
    right: 0;
}

.menu-icon span:nth-child(3) {
    top: 12px;
}

/* Menu Active State (X icon) */
.menu-btn.active .menu-icon span:nth-child(1) {
    top: 6px;
    transform: rotate(45deg);
}

.menu-btn.active .menu-icon span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active .menu-icon span:nth-child(3) {
    top: 6px;
    transform: rotate(-45deg);
}

/* --- RIGHT SIDEBAR DRAWER --- */
.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    display: flex;
    justify-content: flex-end;
}

.nav-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    
    
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.nav-overlay.active {
    pointer-events: auto;
}

.nav-overlay.active .nav-overlay-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.nav-overlay-content {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 100%;
    background: linear-gradient(180deg, rgba(8, 8, 8, 0.97) 0%, rgba(5, 5, 3, 0.99) 100%);
    
    
    border-left: 1px solid rgba(239, 191, 4, 0.18);
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    pointer-events: auto;
    box-shadow: -30px 0 80px rgba(0, 0, 0, 0.6);
    z-index: 10;
}

.nav-overlay.active .nav-overlay-content {
    transform: translateX(0);
}

/* Close button */
.nav-close-btn {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(239, 191, 4, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: transparent;
    transition: all 0.4s ease;
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.nav-close-btn:hover {
    border-color: #EFBF04;
    color: #EFBF04;
    transform: rotate(90deg);
    background: rgba(239, 191, 4, 0.08);
}

/* Link numbering */
.nav-link-num {
    font-family: 'Barlow Condensed', Helvetica, Arial, sans-serif;
    font-size: 0.6rem;
    color: rgba(239, 191, 4, 0.5);
    letter-spacing: 0.15em;
    margin-right: 12px;
    transition: color 0.3s ease;
    min-width: 18px;
    display: inline-block;
}

/* Sidebar Links Animation */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav-overlay.active .sidebar-link,
.nav-overlay.active .sidebar-dropdown-btn {
    animation: slideInRight 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

/* Stagger Delays */
.nav-overlay.active li:nth-child(1) .sidebar-link,
.nav-overlay.active li:nth-child(1) .sidebar-dropdown-btn { animation-delay: 0.08s; }
.nav-overlay.active li:nth-child(2) .sidebar-link,
.nav-overlay.active li:nth-child(2) .sidebar-dropdown-btn { animation-delay: 0.14s; }
.nav-overlay.active li:nth-child(3) .sidebar-link,
.nav-overlay.active li:nth-child(3) .sidebar-dropdown-btn { animation-delay: 0.20s; }
.nav-overlay.active li:nth-child(4) .sidebar-link,
.nav-overlay.active li:nth-child(4) .sidebar-dropdown-btn { animation-delay: 0.26s; }
.nav-overlay.active li:nth-child(5) .sidebar-link,
.nav-overlay.active li:nth-child(5) .sidebar-dropdown-btn { animation-delay: 0.32s; }
.nav-overlay.active li:nth-child(6) .sidebar-link,
.nav-overlay.active li:nth-child(6) .sidebar-dropdown-btn { animation-delay: 0.38s; }
.nav-overlay.active li:nth-child(7) .sidebar-link,
.nav-overlay.active li:nth-child(7) .sidebar-dropdown-btn { animation-delay: 0.44s; }
.nav-overlay.active li:nth-child(8) .sidebar-link,
.nav-overlay.active li:nth-child(8) .sidebar-dropdown-btn { animation-delay: 0.50s; }
.nav-overlay.active li:nth-child(9) .sidebar-link,
.nav-overlay.active li:nth-child(9) .sidebar-dropdown-btn { animation-delay: 0.56s; }

/* Sidebar Links */
.sidebar-link {
    display: block;
    font-size: 1.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Barlow Condensed', Helvetica, Arial, sans-serif;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    letter-spacing: 0.03em;
}

.sidebar-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(to right, #EFBF04, transparent);
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-link:hover {
    color: #fff;
    padding-left: 8px;
    text-shadow: 0 0 30px rgba(239, 191, 4, 0.15);
}

.sidebar-link:hover .nav-link-num {
    color: #EFBF04;
}

.sidebar-link:hover::after {
    width: 50px;
}

/* Sidebar Accordions */
.sidebar-dropdown-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Barlow Condensed', Helvetica, Arial, sans-serif;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 0;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 0.03em;
}

.sidebar-dropdown-btn:hover {
    color: #fff;
    padding-left: 8px;
}

.sidebar-dropdown-btn.active {
    color: #EFBF04;
}

.sidebar-dropdown-btn i {
    font-size: 0.55em;
    transition: transform 0.4s ease;
    color: rgba(239, 191, 4, 0.45);
}

.sidebar-dropdown-btn:hover i {
    color: #EFBF04;
}

.sidebar-dropdown-btn.active i {
    transform: rotate(180deg);
    color: #EFBF04;
}

.sidebar-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    padding-left: 30px;
}

.sidebar-submenu.open {
    max-height: 500px;
}

.sidebar-sublink {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.50);
    padding: 10px 0;
    transition: all 0.3s ease;
}

.sidebar-sublink::before {
    content: '';
    width: 14px;
    height: 1px;
    background: rgba(239, 191, 4, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sidebar-sublink:hover {
    color: #EFBF04;
    transform: translateX(6px);
}

.sidebar-sublink:hover::before {
    width: 22px;
    background: #EFBF04;
}

/* Nav social links */
.nav-social-link {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.50);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nav-social-link:hover {
    border-color: #EFBF04;
    color: #EFBF04;
    background: rgba(239, 191, 4, 0.08);
    transform: translateY(-2px);
}

/* Contact info in sidebar */
.nav-info-block {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.nav-info-item {
    padding: 0.6rem 0;
}

.nav-info-label {
    font-family: 'Barlow Condensed', Helvetica, Arial, sans-serif;
    font-size: 0.55rem;
    color: rgba(239, 191, 4, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.3rem;
    display: block;
}

.nav-info-value {
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
}

/* --- RESPONSIVE NAV ADJUSTMENTS --- */
/* Goal: fit the entire mobile menu (8 links + contact + socials) on one viewport without scrolling */
@media (max-width: 640px) {
    .nav-overlay-content {
        max-width: 100% !important;
        border-left: none;
        padding: 1rem 1.25rem !important;
    }

    /* Compact the header row (logo + close button) */
    .nav-overlay-content > div:first-child {
        margin-bottom: 1rem !important;
    }
    .nav-overlay-content > div:first-child img {
        height: 3.5rem !important;
    }

    .sidebar-link,
    .sidebar-dropdown-btn {
        font-size: 1.45rem !important;
        padding: 11px 0 !important;
        letter-spacing: 0.04em;
    }

    .sidebar-sublink {
        font-size: 0.95rem !important;
        padding: 8px 0 !important;
    }

    /* Tighten contact info block */
    .nav-info-block {
        margin-top: 0.75rem !important;
        padding-top: 0.75rem !important;
    }
    .nav-info-block .grid {
        grid-template-columns: 1fr;
        gap: 0.4rem !important;
        margin-bottom: 0.5rem !important;
    }
    .nav-info-label {
        font-size: 0.55rem !important;
    }
    .nav-info-value {
        font-size: 0.7rem !important;
        word-break: break-word;
    }
    .nav-social-link {
        width: 44px !important;
        height: 44px !important;
        font-size: 0.9rem !important;
    }
}

/* --- GLOBAL MOBILE RESPONSIVE FIXES --- */
/* aligns with Tailwind sm: 640px breakpoint */
@media (max-width: 639px) {
    /* Prevent any element from causing horizontal overflow */
    img, video, iframe, canvas, svg {
        max-width: 100%;
    }

    /* Scale down glass panels padding on very small screens */
    .glass-panel {
        padding: 1rem;
    }

    /* Reduce decorative blur elements that might overflow */
    .bg-glow {
        width: 300px;
        height: 300px;
    }
}


.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-active,
.reveal.active,
.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 5px #EFBF04, 0 0 10px #EFBF04;
    }

    50% {
        box-shadow: 0 0 20px #EFBF04, 0 0 30px #EFBF04;
    }
}

/* Ambient Glow Utility */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(239, 191, 4, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(60px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1718;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #EFBF04;
}

/* --- GLOBAL ANIMATIONS --- */
.animate-ken-burns {
    animation: kenBurns 20s ease-out infinite alternate;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}

.animate-fade-in-down {
    animation: fadeInDown 1s ease-out forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-bounce-slow {
    animation: bounceSlow 3s infinite;
}

@keyframes bounceSlow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes scroll-down {
    0% {
        transform: translate(-50%, 0);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 20px);
        opacity: 0;
    }
}

.animate-scroll-down {
    animation: scroll-down 2s infinite;
}

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

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

.animate-marquee {
    animation: marquee 30s linear infinite;
}

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

/* --- LIGHTBOX --- */
#lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.98);
    
}

.lightbox-content {
    margin: auto;
    display: block;
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: zoom 0.4s;
    border: 1px solid rgba(239, 191, 4, 0.3);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

@keyframes zoom {
    from {
        transform: scale(0.9);
        opacity: 0
    }

    to {
        transform: scale(1);
        opacity: 1
    }
}

.close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: 300;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10001;
}

.close:hover {
    color: #EFBF04;
    transform: rotate(90deg);
}

/* --- FILTER BUTTONS --- */
.filter-btn {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #EFBF04;
    transition: width 0.3s ease;
    z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    width: 100%;
}

.filter-btn:hover,
.filter-btn.active {
    color: #000;
    border-color: #EFBF04;
    box-shadow: 0 0 20px rgba(239, 191, 4, 0.3);
}

/* Utility Components */
.caution-tape {
    background: repeating-linear-gradient(45deg, #EFBF04, #EFBF04 10px, #000 10px, #000 20px);
}

/* --- LENIS SMOOTH SCROLL --- */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* --- PRELOADER ANIMATIONS --- */
@keyframes loading-bar {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

.animate-loading-bar {
    animation: loading-bar 1.5s ease-in-out forwards;
}

.animate-pulse-slow {
    animation: pulseSlow 3s infinite;
}

@keyframes pulseSlow {

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

    50% {
        opacity: 0.8;
        transform: scale(0.95);
    }
}

.animate-ping-slow {
    animation: pingSlow 3s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pingSlow {

    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* --- TABLET RESPONSIVE ADJUSTMENTS --- */
/* aligns with Tailwind md..lg range (768–1023) */
@media (min-width: 768px) and (max-width: 1023px) {
    .nav-overlay-content {
        max-width: 400px;
    }

    .sidebar-link,
    .sidebar-dropdown-btn {
        font-size: 1.7rem;
        padding: 12px 0;
    }

    .sidebar-sublink {
        font-size: 0.95rem;
    }

    .menu-btn {
        width: 45px;
        height: 45px;
    }
}

/* --- SWIPER NAVIGATION OVERRIDES --- */

.swiper-button-next::after, 
.swiper-button-prev::after {
    display: none !important;
    content: "" !important;
    opacity: 0 !important;
    visibility: hidden !important;
}


.swiper-button-next, 
.swiper-button-prev {
    width: 50px !important;
    height: 50px !important;
    background: rgba(0, 0, 0, 0.4) !important;
    
    border: 1px solid rgba(239, 191, 4, 0.18);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.swiper-button-next:hover, 
.swiper-button-prev:hover {
    background: rgba(239, 191, 4, 0.12) !important;
    border-color: #EFBF04 !important;
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(239, 191, 4, 0.2);
}

.swiper-button-next i, 
.swiper-button-prev i {
    font-size: 1.25rem !important;
    line-height: 1 !important;
    margin: 0 !important;
    transition: transform 0.3s ease;
}

.swiper-button-next:hover i {
    transform: translateX(2px);
}

.swiper-button-prev:hover i {
    transform: translateX(-2px);
}

/* Full color across the whole site — neutralize Tailwind filter variables so grayscale/brightness/contrast utilities can't desaturate or dim anything */
*,
*::before,
*::after {
    --tw-grayscale: grayscale(0) !important;
    --tw-sepia: sepia(0) !important;
    --tw-brightness: brightness(1) !important;
    --tw-contrast: contrast(1) !important;
    --tw-saturate: saturate(1) !important;
    --tw-hue-rotate: hue-rotate(0deg) !important;
    --tw-invert: invert(0) !important;
}

/* Strip inline/legacy filter rules on media + known card wrappers (preserves intentional blur glows on decorative orbs) */
img,
video,
picture,
.grayscale,
.brightness-50,
.brightness-75,
.brightness-90,
.contrast-125,
.opacity-50.grayscale,
.opacity-60,
.client-logo,
.leader-card img,
.leader-card:hover img,
.project-card .img-wrap,
.project-card:hover .img-wrap,
.img-wrap {
    filter: none !important;
    -webkit-filter: none !important;
}

/* ── Native <select> dropdown options — force legible dark-theme styling site-wide.
   Chrome on Windows/Linux ignores CSS on <option> when the page background is dark,
   producing invisible white-on-white text. Explicit bg/color fixes it. */
select option {
    background-color: #1a1718;
    color: #EEEEEE;
    padding: 8px;
}
select option:disabled {
    color: #9CA3AF;
}
select option:hover,
select option:checked {
    background-color: #EFBF04;
    color: #1a1718;
}

/* Hide Swiper navigation arrows on mobile — touch users swipe instead */
@media (max-width: 767px) {
    .swiper-button-prev,
    .swiper-button-next {
        display: none !important;
    }
}

/* Mobile paragraph density — slim down body copy on small screens. !important needed because Tailwind CDN injects after styles.css */
@media (max-width: 767px) {
    body {
        font-size: 0.9375rem !important;
    }
    p {
        font-size: 0.875rem !important;
        line-height: 1.55 !important;
    }
    .text-lg,
    p.text-lg {
        font-size: 0.9rem !important;
        line-height: 1.55 !important;
    }
    .text-xl,
    p.text-xl {
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }
    .text-base {
        font-size: 0.85rem !important;
        line-height: 1.55 !important;
    }
    .text-sm {
        font-size: 0.8rem !important;
        line-height: 1.5 !important;
    }
}

/* ─────────────────────────────────────────────
   SONAR CURSOR (site-wide)
   Solid gold dot + continuous pulse rings
   ───────────────────────────────────────────── */
@media (hover: hover) and (pointer: fine) {
    html.sb-sonar,
    html.sb-sonar body,
    html.sb-sonar a,
    html.sb-sonar button,
    html.sb-sonar [role="button"],
    html.sb-sonar input,
    html.sb-sonar textarea,
    html.sb-sonar select,
    html.sb-sonar label {
        cursor: none;
    }
}

.sb-cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #EFBF04;
    box-shadow: 0 0 12px #EFBF04, 0 0 24px rgba(239, 191, 4, 0.4);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 99999;
    opacity: 0;
    transition: opacity .3s ease, width .25s ease, height .25s ease, background .25s ease;
    will-change: transform, left, top;
    mix-blend-mode: screen;
}
.sb-cursor-dot.sb-active { opacity: 1; }
.sb-cursor-dot.sb-hover {
    width: 30px; height: 30px;
    background: #EFBF04;
    box-shadow: 0 0 18px #EFBF04, 0 0 36px rgba(239, 191, 4, 0.6);
}

.sb-cursor-pulse {
    position: fixed;
    top: 0; left: 0;
    width: 14px; height: 14px;
    border-radius: 50%;
    border: 2px solid #EFBF04;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 99998;
    opacity: 0.7;
    animation: sbCursorPulse 1.6s cubic-bezier(.16, 1, .3, 1) forwards;
    mix-blend-mode: screen;
}
@keyframes sbCursorPulse {
    to { width: 240px; height: 240px; opacity: 0; border-width: 1px; }
}

@media (prefers-reduced-motion: reduce) {
    .sb-cursor-pulse { animation: none; opacity: 0; }
}
@media (hover: none), (pointer: coarse) {
    .sb-cursor-dot, .sb-cursor-pulse { display: none; }
}

/* ─────────────────────────────────────────────
   SITE-WIDE YELLOW TEXT COLOR — solid #EFBF04
   Override every gold/yellow text utility to one flat tone
   ───────────────────────────────────────────── */
.text-brand-gold,
.text-brand-darkGold,
.text-brand-lightGold,
.text-yellow-300,
.text-yellow-400,
.text-yellow-500,
.text-yellow-600,
.text-\[\#EFBF04\],
.text-\[\#EFBF04\],
.text-\[\#EFBF04\] {
    color: #EFBF04 !important;
}
.text-gradient-gold,
.gold-gradient-text {
    color: #EFBF04 !important;
    -webkit-text-fill-color: #EFBF04 !important;
    background: none !important;
    animation: none !important;
    text-shadow: none !important;
}

/* ═════════════════════════════════════════════════════════════════
   RESPONSIVE POLISH — fluid type, CLS guards, hover gating, touch UX
   Added as part of the responsive-rollout roadmap. Keep at the end
   of the file so it overrides everything above it.
   ═════════════════════════════════════════════════════════════════ */

/* ── 1. Fluid design tokens ────────────────────────────────────── */
:root {
    /* Original Fluid Typography Scale: Mobile -> Desktop */
    --fs-hero: clamp(4rem, 15vw + 1rem, 9rem);
    --fs-h1: clamp(2.5rem, 7vw + 1rem, 6.5rem);
    --fs-h2: clamp(2rem, 5vw + 0.5rem, 4.5rem);
    --fs-h3: clamp(1.5rem, 3.5vw + 0.5rem, 3rem);
    --fs-h4: clamp(1.25rem, 2vw + 0.5rem, 2rem);
    --fs-body: clamp(1rem, 0.5vw + 0.9rem, 1.15rem);
    --fs-small: clamp(0.75rem, 0.25vw + 0.6rem, 0.9rem);

    /* Font-size scale: clamp(min, preferred, max) — scales 320→2560px */
    --fs-xs:   clamp(0.72rem, 0.68rem + 0.18vw, 0.82rem);
    --fs-sm:   clamp(0.82rem, 0.78rem + 0.22vw, 0.95rem);
    --fs-base: clamp(0.95rem, 0.90rem + 0.28vw, 1.10rem);
    --fs-lg:   clamp(1.05rem, 0.97rem + 0.40vw, 1.30rem);
    --fs-xl:   clamp(1.20rem, 1.08rem + 0.60vw, 1.55rem);
    --fs-2xl:  clamp(1.40rem, 1.20rem + 1.00vw, 2.00rem);
    --fs-3xl:  clamp(1.80rem, 1.45rem + 1.75vw, 2.75rem);
    --fs-4xl:  clamp(2.20rem, 1.75rem + 2.25vw, 3.50rem);
    --fs-5xl:  clamp(2.60rem, 2.00rem + 3.00vw, 4.50rem);
    --fs-6xl:  clamp(3.00rem, 2.30rem + 3.50vw, 5.50rem);
    --fs-7xl:  clamp(3.40rem, 2.60rem + 4.00vw, 6.50rem);
    --fs-8xl:  clamp(4.00rem, 3.00rem + 5.00vw, 8.00rem);
    --fs-9xl:  clamp(5.00rem, 3.50rem + 7.50vw, 10.0rem);

    /* Swiper navigation override */
    --swiper-navigation-size: 0px !important;

    /* Fluid spacing — section rhythm + gutters */
    --space-section: clamp(3rem, 2rem + 5vw, 7rem);
    --space-gutter:  clamp(1rem, 0.75rem + 1.5vw, 2.5rem);

    /* Container — single source of truth */
    --container-max: 1400px;
}

/* ── 2. Override Tailwind text-* utilities to fluid ────────────── */
.text-xs   { font-size: var(--fs-xs) !important; }
.text-sm   { font-size: var(--fs-sm) !important; }
.text-base { font-size: var(--fs-base) !important; }
.text-lg   { font-size: var(--fs-lg) !important; }
.text-xl   { font-size: var(--fs-xl) !important; }
.text-2xl  { font-size: var(--fs-2xl) !important; }
.text-3xl  { font-size: var(--fs-3xl) !important; }
.text-4xl  { font-size: var(--fs-4xl) !important; }
.text-5xl  { font-size: var(--fs-5xl) !important; }
.text-6xl  { font-size: var(--fs-6xl) !important; }
.text-7xl  { font-size: var(--fs-7xl) !important; }
.text-8xl  { font-size: var(--fs-8xl) !important; }
.text-9xl  { font-size: var(--fs-9xl) !important; }

/* Body copy gets fluid sizing by default */
body { font-size: var(--fs-base); }

/* ── 3. Shared container utility ───────────────────────────────── */
.sb-container {
    max-width: min(var(--container-max), 100% - 2rem);
    margin-inline: auto;
}

/* ── 4. CLS guards — reserve space for media ──────────────────── */
img, video {
    max-width: 100%;
    height: auto;
}
/* Project-card polaroid images — lock aspect so cards never reflow */
.ix-stack-card img,
.v2-card img,
.vB-card img,
.vC-frame img,
.vD-card img,
.vE-card img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

/* ── 5. Touch-first interaction defaults ──────────────────────── */
a, button, [role="button"], .btn {
    touch-action: manipulation;  /* eliminates 300ms tap delay + double-tap-zoom */
}
/* Minimum tap target safety net (WCAG 2.5.5) */
@media (hover: none) and (pointer: coarse) {
    a:not(.sidebar-sublink):not(.chooser a),
    button,
    .stage-cta,
    .v2-cta,
    .cx-cta,
    .filter-btn {
        min-height: 44px;
        min-width: 44px;
    }
}

/* ── 6. Gate hover-only effects ────────────────────────────────── */
@media (hover: none) {
    /* Disable transforms that "stick" after tap on touch devices */
    .v2-card:hover,
    .vB-card:hover,
    .vC-frame:hover,
    .vD-card:hover,
    .vE-card:hover,
    .glass-panel:hover,
    .ix-stack-card:hover,
    .project-card:hover {
        transform: none !important;
    }
    /* Cursor follower effects are useless without a pointer */
    .sb-cursor-dot,
    .sb-cursor-pulse,
    .cursor-glow { display: none !important; }
}

/* ── 7. Prevent hero from feeling oppressive in mobile landscape  */
@media (max-height: 500px) and (orientation: landscape) {
    .ix-hero,
    .v2.h-screen-safe,
    .h-screen-safe {
        height: auto !important;
        min-height: 100svh;
        padding-top: clamp(4rem, 10vh, 6rem);
        padding-bottom: clamp(2rem, 8vh, 4rem);
    }
}

/* ── 8. Typography polish: smoothing + wrap balance ──────────── */
html {
    -webkit-text-size-adjust: 100%;   /* iOS: don't auto-enlarge text on rotate */
    text-size-adjust: 100%;
}
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
    text-wrap: balance;   /* supported browsers balance headline line-breaks */
}
p {
    text-wrap: pretty;    /* prevents orphaned last word */
}

/* ── 9. Accessibility — visible focus ring on keyboard nav ────── */
:focus-visible {
    outline: 2px solid #EFBF04;
    outline-offset: 3px;
    border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }  /* hide ring on mouse click */

/* ── 10. Reveal-on-scroll SAFETY FALLBACK ─────────────────────
   Forces content visible after 2s even if the IntersectionObserver
   fails, JS is slow/disabled, or a delay chain gets interrupted.
   Keeps reveal animations working for normal cases. */
.reveal-up, .reveal {
    animation: sbRevealFallback 0.01s linear 2s forwards;
}
.reveal-up.active, .reveal.active { animation: none; }
@keyframes sbRevealFallback {
    to { opacity: 1; transform: none; }
}
html.no-js .reveal-up,
html.no-js .reveal { opacity: 1 !important; transform: none !important; }

/* ── HERO HARD VISIBILITY ──────────────────────────────────────
   Hero headline, eyebrow, lede, CTAs, polaroid deck must ALWAYS
   render — no dependency on JS observers. */
.ix-hero .ix-hero-eyebrow,
.ix-hero .ix-hero-title,
.ix-hero-eyebrow,
.ix-hero-title {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    visibility: visible !important;
}
.ix-hero .reveal-up,
.ix-hero .reveal {
    opacity: 1 !important;
    transform: none !important;
}

/* ── 11. MOBILE HERO POLISH (< 768px) ────────────────────────
   Tighter typography, better spacing, prevent eyebrow overflow */
@media (max-width: 767px) {
    /* Prevent eyebrow with 0.5em letter-spacing from overflowing */
    .ix-hero [style*="transition-delay: 100ms"] {
        letter-spacing: 0.25em !important;
        white-space: normal;
        word-spacing: 0.1em;
    }

    /* Hero section: full page on mobile too */
    .ix-hero {
        padding-top: clamp(5rem, 18vw, 7rem) !important;
        padding-bottom: clamp(3rem, 8vw, 5rem) !important;
        min-height: 100svh;
    }

    /* Rule divider: make it sit tighter to headline */
    .ix-hero .h-px.w-24 {
        margin-top: 1.25rem !important;
        margin-bottom: 1.25rem !important;
    }

    /* Lede paragraph — slightly smaller, tighter leading */
    .ix-hero p.text-lg {
        font-size: clamp(0.95rem, 3.8vw, 1.05rem) !important;
        line-height: 1.55 !important;
        max-width: 32ch;
    }

    /* Polaroid deck breathing room */
    .ix-hero-grid { gap: 2.5rem; }
    .ix-stack { margin-top: 1rem; }

    /* CTAs: full-width stack feels cleaner on narrow phones */
    .ix-hero .flex.flex-row.flex-wrap { gap: 0.75rem !important; }
    .ix-hero .flex.flex-row.flex-wrap > a {
        flex: 1 1 auto;
        min-width: 140px;
        text-align: center;
        justify-content: center;
        display: inline-flex;
        align-items: center;
    }

    /* Hide the "Scroll" indicator on small phones — it obscures content */
    .ix-hero .animate-bounce-slow { display: none !important; }
}

/* ═════════════════════════════════════════════════════════════════
   COLOR CONTRAST & VISUAL DEPTH ENHANCEMENTS
   Alternating section backgrounds, gold ramp utilities, improved
   dark-on-dark layering for scroll rhythm and visual hierarchy.
   ═════════════════════════════════════════════════════════════════ */

/* ── Alternating section backgrounds for scroll rhythm ────────── */
.section-alt {
    background-color: #1e1b1c;
    border-top: 1px solid rgba(239, 191, 4, 0.06);
    border-bottom: 1px solid rgba(239, 191, 4, 0.06);
}

/* ── Gold ramp utilities ──────────────────────────────────────── */
.border-soft-gold {
    border-color: #D4A84B;
}
.text-soft-gold {
    color: #D4A84B;
}
.text-light-gold {
    color: #F7D94E;
}
.bg-soft-gold {
    background-color: #D4A84B;
}

/* ── Elevated card surface ────────────────────────────────────── */
.bg-elevated {
    background-color: #383234;
}

/* ── Image placeholder — replaces removed stock/generic images ── */
.img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1718 0%, #231F20 50%, #1a1718 100%);
    border: 1px solid rgba(239, 191, 4, 0.10);
    color: rgba(239, 191, 4, 0.25);
    font-size: 2rem;
    min-height: 200px;
    width: 100%;
    overflow: hidden;
    position: relative;
}
.img-placeholder::before {
    content: '\f03e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
}
.img-placeholder-sm {
    min-height: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1rem;
}
.img-placeholder-sm::before {
    content: '\f007';
}

/* ═════════════════════════════════════════════════════════════════
   UNIFIED COMPONENT SYSTEM — buttons, heroes, headers
   Standardized patterns for cross-page consistency.
   ═════════════════════════════════════════════════════════════════ */

/* ── Buttons ─────────────────────────────────────────────────── */
.sb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Barlow Condensed', Helvetica, Arial, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.875rem 2.5rem;
    border: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    min-height: 44px;
    min-width: 44px;
}
.sb-btn-primary {
    background-color: #EFBF04;
    color: #000;
    border-color: #EFBF04;
}
.sb-btn-primary:hover {
    background-color: #d4a800;
    box-shadow: 0 0 20px rgba(239, 191, 4, 0.3);
    transform: translateY(-2px);
}
.sb-btn-secondary {
    background-color: transparent;
    color: #EEEEEE;
    border-color: rgba(238, 238, 238, 0.25);
}
.sb-btn-secondary:hover {
    border-color: #EFBF04;
    color: #EFBF04;
    background-color: rgba(239, 191, 4, 0.06);
    transform: translateY(-2px);
}
.sb-btn-sm {
    padding: 0.625rem 1.5rem;
    font-size: var(--fs-sm);
}
.sb-btn-lg {
    padding: 1rem 3rem;
    font-size: var(--fs-lg);
}

/* ── Standardized page header bar ────────────────────────────── */
.sb-page-header {
    height: 5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
@media (min-width: 768px) {
    .sb-page-header {
        height: 6rem;
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

/* ── Standardized hero section ───────────────────────────────── */
.sb-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding-top: clamp(6rem, 15vh, 10rem);
    padding-bottom: clamp(3rem, 8vh, 6rem);
    overflow: hidden;
}
.sb-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(35, 31, 32, 0.85), rgba(35, 31, 32, 0.95));
    z-index: 1;
}
.sb-hero-content {
    position: relative;
    z-index: 2;
}
.sb-hero-eyebrow {
    font-family: 'Barlow Condensed', Helvetica, Arial, sans-serif;
    font-size: var(--fs-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    color: #EFBF04;
    margin-bottom: 1rem;
}
.sb-hero-title {
    font-family: 'Oswald', 'Agency FB', 'Barlow Condensed', Impact, Helvetica, Arial, sans-serif;
    font-weight: 700;
    line-height: 1.05;
    color: #EEEEEE;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}
.sb-hero-lede {
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    color: rgba(238, 238, 238, 0.7);
    max-width: 55ch;
    line-height: 1.6;
    margin-top: 1.5rem;
}

/* ── Unified CTA section ─────────────────────────────────────── */
.sb-cta {
    position: relative;
    overflow: hidden;
    padding: clamp(4rem, 8vw, 7rem) 0;
    background: linear-gradient(160deg, #1a1718 0%, #231F20 40%, #1a1718 100%);
    border-top: 1px solid rgba(239, 191, 4, 0.10);
    border-bottom: 1px solid rgba(239, 191, 4, 0.10);
}
.sb-cta-noise {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 256px 256px;
    pointer-events: none;
}
.sb-cta-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
}
.sb-cta-orb-1 {
    width: 500px; height: 500px;
    top: -200px; right: -100px;
    background: radial-gradient(circle, rgba(239, 191, 4, 0.10) 0%, transparent 70%);
}
.sb-cta-orb-2 {
    width: 350px; height: 350px;
    bottom: -150px; left: -50px;
    background: radial-gradient(circle, rgba(239, 191, 4, 0.08) 0%, transparent 70%);
}
.sb-cta-orb-3 {
    width: 250px; height: 250px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(239, 191, 4, 0.05) 0%, transparent 70%);
}
.sb-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Barlow Condensed', Helvetica, Arial, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 1rem 3rem;
    background: #EFBF04;
    color: #000;
    border: 1px solid #EFBF04;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 44px;
}
.sb-cta-btn:hover {
    background: transparent;
    color: #EFBF04;
    box-shadow: 0 0 30px rgba(239, 191, 4, 0.25);
    transform: translateY(-2px);
}
@media (max-width: 639px) {
    .sb-cta-orb-1 { width: 250px; height: 250px; }
    .sb-cta-orb-2 { width: 180px; height: 180px; }
    .sb-cta-orb-3 { width: 120px; height: 120px; }
}